Replace static data

merge-requests/957/head
RoaaGhali98 4 years ago
parent 19d981d9e0
commit 4ef41e0c5a

@ -44,14 +44,10 @@ class InterventionMedicationViewModel extends BaseViewModel {
}) async { }) async {
InterventionMedicationReqModel interventionMedicationReqModel = InterventionMedicationReqModel interventionMedicationReqModel =
InterventionMedicationReqModel( InterventionMedicationReqModel(
projectID: 15, projectID: projectId,
//projectId, patientID: patientId,
patientID: 79941, fromDate: AppDateUtils.convertDateToServerFormat(fromDate),
//patientId, toDate: AppDateUtils.convertDateToServerFormat(toDate),
fromDate: "\/Date(1488322922)\/",
//AppDateUtils.convertDateToServerFormat(fromDate),
toDate:
"\/Date(1635886800000)\/", //AppDateUtils.convertDateToServerFormat(toDate),
); );
hasError = false; hasError = false;
setState(ViewState.Busy); setState(ViewState.Busy);
@ -75,15 +71,11 @@ class InterventionMedicationViewModel extends BaseViewModel {
InterventionMedicationHistoryReqModel InterventionMedicationHistoryReqModel
interventionMedicationHistoryReqModel = interventionMedicationHistoryReqModel =
InterventionMedicationHistoryReqModel( InterventionMedicationHistoryReqModel(
projectID: 15, projectID: projectId,
//projectId, patientID: patientId,
patientID: 79941, admissionNo: admissionNo,
//patientId, prescriptionNo: prescriptionNo,
admissionNo: 2018013900, orderNo: orderNo,
//admissionNo,
prescriptionNo: 2045165,
//prescriptionNo,
orderNo: 1171570, //orderNo,
); );
hasError = false; hasError = false;
if (isBusyLocal) if (isBusyLocal)
@ -116,21 +108,15 @@ class InterventionMedicationViewModel extends BaseViewModel {
int status, int status,
}) async { }) async {
AcceptOrRejectReqModel acceptOrRejectReqModel = AcceptOrRejectReqModel( AcceptOrRejectReqModel acceptOrRejectReqModel = AcceptOrRejectReqModel(
projectID: 15, projectID: projectId,
//projectId, patientID: patientID,
patientID: 79941, admissionNo: admissionNo,
//patientID, prescriptionNo: prescriptionNo,
admissionNo: 2018013900, orderNo: orderNo,
//admissionNo,
prescriptionNo: 2045165,
//prescriptionNo,
orderNo: 1171570,
//orderNo,
accessLevel: 4, accessLevel: 4,
lineItemNo: 1, lineItemNo: 1,
remarks: remarks, remarks: remarks,
memberID: 2804, memberID: memberId,
//memberId,
interventionStatus: interventionStatus, interventionStatus: interventionStatus,
status: status status: status
); );

Loading…
Cancel
Save