Index: simulator/plugins/createtreatment/loader.py =================================================================== diff -u -rf4523ffcaff0d27f7392c943f0a487fcb01a7d34 -r587822f6461dce6f46302875b09abb552532f698 --- simulator/plugins/createtreatment/loader.py (.../loader.py) (revision f4523ffcaff0d27f7392c943f0a487fcb01a7d34) +++ simulator/plugins/createtreatment/loader.py (.../loader.py) (revision 587822f6461dce6f46302875b09abb552532f698) @@ -10,6 +10,7 @@ from simulator.dynamicloader import DynamicLoader # hd Simulator from dialin.ui.hd_simulator import HDSimulator +from dialin.ui.hd_simulator import RequestRejectReasons # plugin specific # -- None -- @@ -32,7 +33,6 @@ def __init__(self, hd_simulator: HDSimulator): super().__init__(os.path.dirname(__file__), hd_simulator) - print(" ---------- ", self.hd_simulator) def _init_loader(self): """ @@ -74,7 +74,12 @@ the slot for accept button :return: none """ - self.hd_simulator.cmd_send_start_treatment_response(1, 0) + self.hd_simulator.cmd_send_treatment_parameter_manual_validation_response([ + 1, + 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0 + ]) self.lblCreateAction.setText('Accepted ') @Slot() @@ -84,7 +89,13 @@ :return: none """ reason = self.spnCreateRejectReason.value() - self.hd_simulator.cmd_send_start_treatment_response(False, 0) + print(reason) + self.hd_simulator.cmd_send_treatment_parameter_manual_validation_response([ + reason, + 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1 + ]) self.lblCreateAction.setText('Rejected ' + "{}".format(reason)) @Slot()