|
|
|
@ -86,7 +86,7 @@ public class ReportDataMgr
|
|
|
|
|
// 提升投票 |
|
|
|
|
public static Dictionary<string, float> LevelUpScore = new Dictionary<string, float>(); |
|
|
|
|
public static List<ChatTaskMessage> AllChatMessage = new List<ChatTaskMessage>(); |
|
|
|
|
public static void ResertReportDataMgr() |
|
|
|
|
public static void ResertReportDataMgr() |
|
|
|
|
{ |
|
|
|
|
allTrucks.Clear(); |
|
|
|
|
allTrappedPerson.Clear(); |
|
|
|
@ -94,67 +94,67 @@ public class ReportDataMgr
|
|
|
|
|
allSendCommand.Clear(); |
|
|
|
|
allReceiverCommand.Clear(); |
|
|
|
|
allSubId.Clear(); |
|
|
|
|
totalTruckCount = 0.0f; |
|
|
|
|
waterTankerCount = 0.0f; |
|
|
|
|
foamTruckCount = 0.0f; |
|
|
|
|
aerialTowerTruckCount = 0.0f; |
|
|
|
|
highSprayingTruckCount = 0.0f; |
|
|
|
|
ladderTruckCount = 0.0f; |
|
|
|
|
smokeExhaustTruckCount = 0.0f; |
|
|
|
|
rescueVehicleCount = 0.0f; |
|
|
|
|
apparatusCount = 0.0f; |
|
|
|
|
lightingApplianceCount = 0.0f; |
|
|
|
|
repairCarCount = 0.0f; |
|
|
|
|
forcibleEntryTruckCount = 0.0f; |
|
|
|
|
totalTruckCount = 0.0f; |
|
|
|
|
waterTankerCount = 0.0f; |
|
|
|
|
foamTruckCount = 0.0f; |
|
|
|
|
aerialTowerTruckCount = 0.0f; |
|
|
|
|
highSprayingTruckCount = 0.0f; |
|
|
|
|
ladderTruckCount = 0.0f; |
|
|
|
|
smokeExhaustTruckCount = 0.0f; |
|
|
|
|
rescueVehicleCount = 0.0f; |
|
|
|
|
apparatusCount = 0.0f; |
|
|
|
|
lightingApplianceCount = 0.0f; |
|
|
|
|
repairCarCount = 0.0f; |
|
|
|
|
forcibleEntryTruckCount = 0.0f; |
|
|
|
|
|
|
|
|
|
totalFireman = 0; |
|
|
|
|
|
|
|
|
|
totalUseWater = 0.0f; |
|
|
|
|
|
|
|
|
|
totalSaveTrappedCount = 0.0f; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
totalUseWater = 0.0f; |
|
|
|
|
|
|
|
|
|
totalSaveTrappedCount = 0.0f; |
|
|
|
|
|
|
|
|
|
totalSaveWoundedCount = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
totalSendCommand = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
totalReceiverCommand = 0; |
|
|
|
|
IsVictory = false; |
|
|
|
|
QuestionnaireNumber = 0; |
|
|
|
|
SubmitQuestionnaireNumber = 0; |
|
|
|
|
AllQuestionnaire.Clear(); |
|
|
|
|
FireScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
SaveScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
LookAtScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
CoolScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
WaterScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
ActInScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
ZhongDuiScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
ZhiHuiScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
StrengthScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
WeaknessesScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
NeedCarScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
NeedFireEquipScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
NeedSaveEquipScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
VictoryScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
DefeatScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
LevelUpScore = new Dictionary<string, float>(); |
|
|
|
|
FireScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
SaveScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
LookAtScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
CoolScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
WaterScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
ActInScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
ZhongDuiScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
ZhiHuiScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
StrengthScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
WeaknessesScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
NeedCarScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
NeedFireEquipScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
NeedSaveEquipScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
AllChatMessage = new List<ChatTaskMessage>(); |
|
|
|
|
VictoryScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
DefeatScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
LevelUpScore = new Dictionary<string, float>(); |
|
|
|
|
|
|
|
|
|
AllChatMessage = new List<ChatTaskMessage>(); |
|
|
|
|
} |
|
|
|
|
public static void SetSendCommand(ChatTaskMessage chatTaskMessage) |
|
|
|
|
{ |
|
|
|
@ -176,7 +176,7 @@ public class ReportDataMgr
|
|
|
|
|
{ |
|
|
|
|
chatidlist.Add(allSendCommand[i].ID); |
|
|
|
|
} |
|
|
|
|
if (!chatidlist.Contains(chatTaskMessage.ID)) |
|
|
|
|
if (!chatidlist.Contains(chatTaskMessage.ID)) |
|
|
|
|
{ |
|
|
|
|
allSendCommand.Add(chatTaskMessage); |
|
|
|
|
} |
|
|
|
@ -189,7 +189,7 @@ public class ReportDataMgr
|
|
|
|
|
{ |
|
|
|
|
chatidlist.Add(allReceiverCommand[i].ID); |
|
|
|
|
} |
|
|
|
|
if (!chatidlist.Contains(chatTaskMessage.ID)) |
|
|
|
|
if (!chatidlist.Contains(chatTaskMessage.ID)) |
|
|
|
|
{ |
|
|
|
|
allReceiverCommand.Add(chatTaskMessage); |
|
|
|
|
} |
|
|
|
@ -216,7 +216,7 @@ public class ReportDataMgr
|
|
|
|
|
GetAllCommandCount(); |
|
|
|
|
GetActInPersonCount(); |
|
|
|
|
} |
|
|
|
|
public static void GetAllCommand() |
|
|
|
|
public static void GetAllCommand() |
|
|
|
|
{ |
|
|
|
|
totalSendCommand = 0; |
|
|
|
|
totalReceiverCommand = 0; |
|
|
|
@ -309,7 +309,7 @@ public class ReportDataMgr
|
|
|
|
|
// 获取救助被困人员字符串 |
|
|
|
|
public static string GetAllSaveCountString() |
|
|
|
|
{ |
|
|
|
|
return string.Format("轻伤员{0}人,重伤员{1}人", totalSaveTrappedCount,totalSaveWoundedCount); |
|
|
|
|
return string.Format("轻伤员{0}人,重伤员{1}人", totalSaveTrappedCount, totalSaveWoundedCount); |
|
|
|
|
} |
|
|
|
|
// 获取用液量字符串 |
|
|
|
|
public static string GetAllUserWaterString() |
|
|
|
@ -392,6 +392,19 @@ public class ReportDataMgr
|
|
|
|
|
// // 检测是什么车 |
|
|
|
|
// CheckedTruckData(cloneGameObjInfo); |
|
|
|
|
//} |
|
|
|
|
//List<FireCarEngine> allivecar = new List<FireCarEngine>(); |
|
|
|
|
//foreach (var item in ArrivedPowerTotal.arrivedCars.Values) |
|
|
|
|
//{ |
|
|
|
|
// foreach (var item1 in item) |
|
|
|
|
// { |
|
|
|
|
// int num = item1.Value; |
|
|
|
|
// for (int i = 0; i < num; i++) |
|
|
|
|
// { |
|
|
|
|
// allivecar.Add(item1.Key); |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
//} |
|
|
|
|
|
|
|
|
|
Transform allparent = GameObject.Find("P_AllParent").transform.Find("P_Cars"); |
|
|
|
|
TruckMessage[] allcar = allparent.GetComponentsInChildren<TruckMessage>(); |
|
|
|
|
foreach (var item in allcar) |
|
|
|
@ -433,23 +446,42 @@ public class ReportDataMgr
|
|
|
|
|
if (CurrentUserInfo.role == Role.导调组 || CurrentUserInfo.role == Role.观察团) |
|
|
|
|
{ |
|
|
|
|
// 轻伤员 |
|
|
|
|
foreach (var item in allTrappedPerson) |
|
|
|
|
//foreach (var item in allTrappedPerson) |
|
|
|
|
//{ |
|
|
|
|
// TrappedMoveFree cloneGameObjInfo = item.GetComponent<TrappedMoveFree>(); |
|
|
|
|
// if (cloneGameObjInfo.SaveFrirmanUserId != 0) |
|
|
|
|
// { |
|
|
|
|
// totalSaveTrappedCount += 1; |
|
|
|
|
// } |
|
|
|
|
//} |
|
|
|
|
//// 重伤员 |
|
|
|
|
//foreach (var item in allWoundedPerson) |
|
|
|
|
//{ |
|
|
|
|
// WoundedSave cloneGameObjInfo = item.GetComponent<WoundedSave>(); |
|
|
|
|
// if (cloneGameObjInfo.SaveFrirmanUserId != 0) |
|
|
|
|
// { |
|
|
|
|
// totalSaveWoundedCount += 1; |
|
|
|
|
// } |
|
|
|
|
//} |
|
|
|
|
totalSaveTrappedCount = 0; |
|
|
|
|
totalSaveWoundedCount = 0; |
|
|
|
|
Transform p_trapped = GameObject.Find("P_AllParent").transform.Find("P_Disasters/P_TrappedPerson"); |
|
|
|
|
Transform p_wound = GameObject.Find("P_AllParent").transform.Find("P_Disasters/P_Wounded"); |
|
|
|
|
for (int i = 0; i < p_trapped.childCount; i++) |
|
|
|
|
{ |
|
|
|
|
TrappedMoveFree cloneGameObjInfo = item.GetComponent<TrappedMoveFree>(); |
|
|
|
|
if (cloneGameObjInfo.SaveFrirmanUserId != 0) |
|
|
|
|
if (p_trapped.GetChild(i).GetComponent<TrappedMoveFree>().OverMoveOrGuidance) |
|
|
|
|
{ |
|
|
|
|
totalSaveTrappedCount += 1; |
|
|
|
|
totalSaveTrappedCount++; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// 重伤员 |
|
|
|
|
foreach (var item in allWoundedPerson) |
|
|
|
|
for (int i = 0; i < p_wound.childCount; i++) |
|
|
|
|
{ |
|
|
|
|
WoundedSave cloneGameObjInfo = item.GetComponent<WoundedSave>(); |
|
|
|
|
if (cloneGameObjInfo.SaveFrirmanUserId != 0) |
|
|
|
|
if (p_wound.GetChild(i).GetComponent<WoundedSave>().OverMoveOrGuidance) |
|
|
|
|
{ |
|
|
|
|
totalSaveWoundedCount += 1; |
|
|
|
|
totalSaveWoundedCount++; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
@ -1127,11 +1159,11 @@ public class ReportDataMgr
|
|
|
|
|
} |
|
|
|
|
return receivechatlist; |
|
|
|
|
} |
|
|
|
|
public static string GetReceiveMsgCount() |
|
|
|
|
public static string GetReceiveMsgCount() |
|
|
|
|
{ |
|
|
|
|
return string.Format("{0}条", GetReceiveMsg().Count); |
|
|
|
|
} |
|
|
|
|
public static string GetSendMsgCount() |
|
|
|
|
public static string GetSendMsgCount() |
|
|
|
|
{ |
|
|
|
|
return string.Format("{0}条", GetSendMsg().Count); |
|
|
|
|
} |
|
|
|
|