|
|
|
@ -216,9 +216,24 @@ class WorkListApiClient {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<MemberInformationListModel> getUserInformation(int pSelectedResopID, String selectedEmployeeNumber) async {
|
|
|
|
// Future<MemberInformationListModel> getUserInformation(int pSelectedResopID, String selectedEmployeeNumber) async {
|
|
|
|
String url = "${ApiConsts.erpRest}Get_UserInformation";
|
|
|
|
// String url = "${ApiConsts.erpRest}Get_UserInformation";
|
|
|
|
Map<String, dynamic> postParams = {"P_SELECTED_RESP_ID": pSelectedResopID, "P_PAGE_LIMIT": 100, "P_PAGE_NUM": 1};
|
|
|
|
// Map<String, dynamic> postParams = {"P_SELECTED_RESP_ID": pSelectedResopID, "P_PAGE_LIMIT": 100, "P_PAGE_NUM": 1};
|
|
|
|
|
|
|
|
// postParams.addAll(AppState().postParamsJson);
|
|
|
|
|
|
|
|
// if (selectedEmployeeNumber != null) postParams["P_SELECTED_EMPLOYEE_NUMBER"] = selectedEmployeeNumber;
|
|
|
|
|
|
|
|
// return await ApiClient().postJsonForObject(
|
|
|
|
|
|
|
|
// (json) {
|
|
|
|
|
|
|
|
// GenericResponseModel responseData = GenericResponseModel.fromJson(json);
|
|
|
|
|
|
|
|
// return responseData.memberInformationList![0];
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// url,
|
|
|
|
|
|
|
|
// postParams,
|
|
|
|
|
|
|
|
// );
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Future<MemberInformationListModel> getNotificationUserInformation(int pSelectedResopID, String selectedEmployeeNumber, int pNotificationID) async {
|
|
|
|
|
|
|
|
String url = "${ApiConsts.erpRest}Get_Notification_UserInformation";
|
|
|
|
|
|
|
|
Map<String, dynamic> postParams = {"P_SELECTED_RESP_ID": pSelectedResopID, "P_PAGE_LIMIT": 100, "P_PAGE_NUM": 1, "P_NOTIFICATION_ID": pNotificationID};
|
|
|
|
postParams.addAll(AppState().postParamsJson);
|
|
|
|
postParams.addAll(AppState().postParamsJson);
|
|
|
|
if (selectedEmployeeNumber != null) postParams["P_SELECTED_EMPLOYEE_NUMBER"] = selectedEmployeeNumber;
|
|
|
|
if (selectedEmployeeNumber != null) postParams["P_SELECTED_EMPLOYEE_NUMBER"] = selectedEmployeeNumber;
|
|
|
|
return await ApiClient().postJsonForObject(
|
|
|
|
return await ApiClient().postJsonForObject(
|
|
|
|
|