v2 up dau9u03292
This commit is contained in:
+154
-2414
File diff suppressed because it is too large
Load Diff
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+155
-2415
File diff suppressed because it is too large
Load Diff
Vendored
+187
-2435
File diff suppressed because it is too large
Load Diff
@@ -131,7 +131,7 @@ function emsDepartment($data)
|
||||
}
|
||||
if ($key == "Benötigte GW-San") {
|
||||
$pd["use_SEG_FULL"] = true;
|
||||
} elseif ($key == "Benötigte RTW" || "Wahrscheinlichkeit, dass ein Patient transportiert werden muss") {
|
||||
} elseif ($key == "Benötigte RTW" || $key == "Wahrscheinlichkeit, dass ein Patient transportiert werden muss") {
|
||||
$pd["use_RTW"] = true;
|
||||
} elseif ($key == "NEF Anforderungswahrscheinlichkeit") {
|
||||
$pd["use_NEF"] = true;
|
||||
|
||||
+32
-20
@@ -125,7 +125,7 @@ class AutomaticDispose {
|
||||
await self.genSettings()
|
||||
setInterval(self.genSettings.bind(self), 1000);
|
||||
|
||||
if (window.location.pathname === "/" || window.location.pathname === "/#" || window.location.pathname === "/#_=_" ) {
|
||||
if (window.location.pathname === "/" || window.location.pathname === "/#" || window.location.pathname === "/#_=_") {
|
||||
self.GetAvailableMissions()
|
||||
self.IndexPage()
|
||||
setInterval(self.CollectRescueSprechwuensche.bind(self), 2500);
|
||||
@@ -1188,7 +1188,7 @@ class AutomaticDispose {
|
||||
|
||||
WorkVerbandMission(myself) {
|
||||
if (typeof myself === 'undefined') {
|
||||
myself=false
|
||||
myself = false
|
||||
}
|
||||
const self = this;
|
||||
return self.ADSettings().then((setting) => {
|
||||
@@ -1340,7 +1340,7 @@ class AutomaticDispose {
|
||||
}
|
||||
|
||||
// TODO check cars driving or already there
|
||||
if (self.MissionConfig.share){
|
||||
if (self.MissionConfig.share) {
|
||||
// console.log('self.MissionConfig.share',self.MissionConfig.share)
|
||||
const elems = $('#vehicle_show_table_all tr input[type="checkbox"]:checked')
|
||||
// console.log('elems', elems)
|
||||
@@ -1355,10 +1355,10 @@ class AutomaticDispose {
|
||||
// console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').length, $('#vehicle_show_table_all input[type="checkbox"]:checked'));
|
||||
// console.log("WILL KLICK SEND")
|
||||
setTimeout(() => {
|
||||
self.UpdateMissionsToDone(self.MissionID).then( async () => {
|
||||
self.UpdateMissionsToDone(self.MissionID).then(async () => {
|
||||
tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');},500);`);
|
||||
if (window.$("a[title='Alarmieren, im Verband freigeben und nächsten Einsatz aufrufen']").length > 0 && self.MissionConfig.share) {
|
||||
window.$('input[type=checkbox]').prop('checked',false);
|
||||
window.$('input[type=checkbox]').prop('checked', false);
|
||||
await self.WorkVerbandMission(true);
|
||||
window.$("a[title='Alarmieren, im Verband freigeben und nächsten Einsatz aufrufen']")[0].click();
|
||||
} else {
|
||||
@@ -1424,10 +1424,10 @@ class AutomaticDispose {
|
||||
if ($(elem).find(".alert-danger").length > 0 && $(elem).find(".alert-danger").text().indexOf("Wir benötigen einen RTW oder KTW Typ B") != -1) {
|
||||
PatientNeedSEGKTWB = true;
|
||||
} else
|
||||
// Wir benötigen einen RTW.
|
||||
if ($(elem).find(".alert-danger").length > 0 && $(elem).find(".alert-danger").text().indexOf("Wir benötigen ein RTW") != -1) {
|
||||
PatientNeedRTW = true;
|
||||
}
|
||||
// Wir benötigen einen RTW.
|
||||
if ($(elem).find(".alert-danger").length > 0 && $(elem).find(".alert-danger").text().indexOf("Wir benötigen ein RTW") != -1) {
|
||||
PatientNeedRTW = true;
|
||||
}
|
||||
|
||||
// Wir benötigen einen NEF.
|
||||
if ($(elem).find(".alert-danger").length > 0 && $(elem).find(".alert-danger").text().indexOf("Wir benötigen ein NEF") != -1) {
|
||||
@@ -1511,31 +1511,43 @@ class AutomaticDispose {
|
||||
self._ADisVehiclesNeed["56"] = 1;
|
||||
}
|
||||
|
||||
if (self.MissionConfig.emergency_medical_service.use_RTW == true)
|
||||
self._ADisVehiclesNeed["28"]++;
|
||||
|
||||
if (self.MissionConfig.emergency_medical_service.use_NEF == true)
|
||||
self._ADisVehiclesNeed["29"]++;
|
||||
|
||||
if (self.MissionConfig.emergency_medical_service.use_RTH == true)
|
||||
self._ADisVehiclesNeed["31"]++;
|
||||
|
||||
//$.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)
|
||||
if (!Patient.need_RTW && !Patient.need_NEF && !Patient.need_RTH) {
|
||||
self._ADisVehiclesNeed["38"]++;
|
||||
}
|
||||
}
|
||||
|
||||
if (Patient.need_LNA && self._ADisVehiclesNeed["55"] < 1)
|
||||
if (Patient.need_LNA && self._ADisVehiclesNeed["55"] < 1) {
|
||||
self._ADisVehiclesNeed["55"]++;
|
||||
}
|
||||
|
||||
if (Patient.need_OrgL && self._ADisVehiclesNeed["56"] < 1)
|
||||
if (Patient.need_OrgL && self._ADisVehiclesNeed["56"] < 1) {
|
||||
self._ADisVehiclesNeed["56"]++;
|
||||
|
||||
if (Patient.need_Tragehilfe == true)
|
||||
}
|
||||
if (Patient.need_Tragehilfe == true) {
|
||||
self._ADisVehiclesNeed["0"]++;
|
||||
|
||||
if (self.MissionConfig.emergency_medical_service.use_RTW == true || Patient.need_RTW == true)
|
||||
}
|
||||
if (self.MissionConfig.emergency_medical_service.use_RTW == true || Patient.need_RTW == true) {
|
||||
self._ADisVehiclesNeed["28"]++;
|
||||
|
||||
if (self.MissionConfig.emergency_medical_service.use_NEF || Patient.need_NEF == true)
|
||||
}
|
||||
if (self.MissionConfig.emergency_medical_service.use_NEF == true || Patient.need_NEF == true) {
|
||||
self._ADisVehiclesNeed["29"]++;
|
||||
|
||||
if (self.MissionConfig.emergency_medical_service.use_RTH || Patient.need_RTH == true)
|
||||
}
|
||||
if (self.MissionConfig.emergency_medical_service.use_RTH == true || Patient.need_RTH == true) {
|
||||
self._ADisVehiclesNeed["31"]++;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user