Fixing some issues in progress_note_screen and update_note

merge-requests/970/head
RoaaGhali98 4 years ago
parent dceefadc06
commit 7812d5081e

@ -135,7 +135,7 @@ const ADD_SICK_LEAVE = 'Services/DoctorApplication.svc/REST/PostSickLeave';
const GET_SICK_LEAVE = 'Services/Patients.svc/REST/GetPatientSickLeave';
const EXTEND_SICK_LEAVE = 'Services/DoctorApplication.svc/REST/ExtendSickLeave';
const GET_OFFTIME = 'Services/DoctorApplication.svc/REST/GetMasterLookUpList';
const GET_MASTER_LOOKUP_LIST = 'Services/DoctorApplication.svc/REST/GetMasterLookUpList';
const GET_COVERING_DOCTORS =
'Services/DoctorApplication.svc/REST/GetCoveringDoctor';
const ADD_RESCHDEULE = 'Services/DoctorApplication.svc/REST/PostRequisition';

@ -1140,6 +1140,6 @@ const Map<String, Map<String, String>> localizedValues = {
"doseDetails": {"en": "Dose Details", "ar":"تفاصيل الجرعة"},
"selectCondition": {"en": "Select Condition", "ar":"قم بتحديد الشرط"},
"yourOrderAddedSuccessfully": {"en": "Your Order Added Successfully", "ar":"تم إضافة طلبك بنجاح"},
"youCannotAddOnlySpaces": {"en": "You Can't Add Only Spaces", "ar":"تم إضافة طلبك بنجاح"},
"conditionDescription": {"en": "Condition Description", "ar":"وصف الحالة"},
"youCannotAddOnlySpaces": {"en": "You Can't Add Only Spaces", "ar":""},
"conditionDescription": {"en": "Condition Description", "ar":"لا يمكنك إضافة مسافات فقط"},
};

@ -60,7 +60,7 @@ class LookupService extends BaseService {
Map<String, dynamic> body = {
"MasterInput": masterKeys.getMasterKeyService()
};
await baseAppClient.post(GET_OFFTIME,
await baseAppClient.post(GET_MASTER_LOOKUP_LIST,
onSuccess: (dynamic response, int statusCode) {
setMasterLookupInCorrectArray(
response['MasterLookUpList']['entityList'], masterKeys);

@ -82,8 +82,6 @@ class PatientService extends BaseService {
List<dynamic> stpMasterList = [];
// TODO: replace var with model
var _insuranceApporvalsList = [];
@ -574,10 +572,6 @@ class PatientService extends BaseService {
onSuccess: (dynamic response, int statusCode) {
stpMasterList = [];
stpMasterList = response['List_STPMasterList'];
// response['List_STPMasterList'].forEach((v) {
// _stpMasterList
// .add(StpMasterListResponseModel.fromJson(v));
// });
},
onFailure: (String error, int statusCode) {
hasError = true;

@ -186,7 +186,7 @@ class SickLeaveService extends BaseService {
hasError = false;
await baseAppClient.post(
GET_OFFTIME,
GET_MASTER_LOOKUP_LIST,
onSuccess: (dynamic response, int statusCode) {
offTime = [];
response['MasterLookUpList']['entityList'].forEach((item) => {
@ -208,7 +208,7 @@ class SickLeaveService extends BaseService {
hasError = false;
await baseAppClient.post(
GET_OFFTIME,
GET_MASTER_LOOKUP_LIST,
onSuccess: (dynamic response, int statusCode) {
reasonse = [];
reasonse = response['MasterLookUpList']['entityList'];

@ -361,7 +361,7 @@ class PatientViewModel extends BaseViewModel {
if (isLocalBusy)
setState(ViewState.ErrorLocal);
else
setState(ViewState.ErrorLocal);
setState(ViewState.Error);
} else {
setState(ViewState.Idle);
}

Loading…
Cancel
Save