v2 up auoago
This commit is contained in:
@@ -1532,37 +1532,49 @@ class AutomaticDispose {
|
||||
self._ADisVehiclesNeed["56"] = 1;
|
||||
}
|
||||
|
||||
//$.each(Patients, function (Key, Patient) {
|
||||
for (var Key in self.Patients) {
|
||||
var Patient = self.Patients[Key];
|
||||
if (self.MissionConfig.emergency_medical_service.use_KTW == true) {
|
||||
if (!Patient.need_RTW && !Patient.need_NEF && !Patient.need_RTH)
|
||||
self._ADisVehiclesNeed["38"]++;
|
||||
if (Object.keys(self.Patients).length == 0) {
|
||||
if (self.MissionConfig.emergency_medical_service.use_RTW == true) {
|
||||
self._ADisVehiclesNeed["28"]++;
|
||||
}
|
||||
|
||||
if (Patient.need_LNA && self._ADisVehiclesNeed["55"] < 1)
|
||||
self._ADisVehiclesNeed["55"]++;
|
||||
|
||||
if (Patient.need_OrgL && self._ADisVehiclesNeed["56"] < 1)
|
||||
self._ADisVehiclesNeed["56"]++;
|
||||
|
||||
if (Patient.need_Tragehilfe == true)
|
||||
self._ADisVehiclesNeed["0"]++;
|
||||
|
||||
if (Patient.need_Tragehilfe == true)
|
||||
self._ADisVehiclesNeed["0"]++;
|
||||
|
||||
if (self.MissionConfig.emergency_medical_service.use_RTW == true || Patient.need_RTW == true)
|
||||
self._ADisVehiclesNeed["28"]++;
|
||||
|
||||
if ((self.MissionConfig.emergency_medical_service.use_NEF == true && Patient.need_NEF == true) || Patient.need_NEF == true)
|
||||
if (self.MissionConfig.emergency_medical_service.use_NEF == true) {
|
||||
self._ADisVehiclesNeed["29"]++;
|
||||
}
|
||||
|
||||
if ((self.MissionConfig.emergency_medical_service.use_RTH == true && Patient.need_RTH == true) || Patient.need_RTH == true)
|
||||
if (self.MissionConfig.emergency_medical_service.use_RTH == true) {
|
||||
self._ADisVehiclesNeed["31"]++;
|
||||
};
|
||||
}
|
||||
} else {
|
||||
for (var Key in self.Patients) {
|
||||
var Patient = self.Patients[Key];
|
||||
if (self.MissionConfig.emergency_medical_service.use_KTW == true) {
|
||||
if (!Patient.need_RTW && !Patient.need_NEF && !Patient.need_RTH) {
|
||||
self._ADisVehiclesNeed["38"]++;
|
||||
}
|
||||
}
|
||||
|
||||
if (Patient.need_LNA && self._ADisVehiclesNeed["55"] < 1) {
|
||||
self._ADisVehiclesNeed["55"]++;
|
||||
}
|
||||
|
||||
if (Patient.need_OrgL && self._ADisVehiclesNeed["56"] < 1) {
|
||||
self._ADisVehiclesNeed["56"]++;
|
||||
}
|
||||
if (Patient.need_Tragehilfe == true) {
|
||||
self._ADisVehiclesNeed["0"]++;
|
||||
}
|
||||
if (self.MissionConfig.emergency_medical_service.use_RTW == true || Patient.need_RTW == true) {
|
||||
self._ADisVehiclesNeed["28"]++;
|
||||
}
|
||||
if (self.MissionConfig.emergency_medical_service.use_NEF == true || Patient.need_NEF == true) {
|
||||
self._ADisVehiclesNeed["29"]++;
|
||||
}
|
||||
if (self.MissionConfig.emergency_medical_service.use_RTH == true || Patient.need_RTH == true) {
|
||||
self._ADisVehiclesNeed["31"]++;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
// TODO: need to be refactored to make sure first KTW Typ B before RTW.
|
||||
if (self.MissionConfig.emergency_medical_service.use_SEG_ELW1_Only == "true") {
|
||||
|
||||
Reference in New Issue
Block a user