Merge branch 'master' into development_mirza
# Conflicts: # lib/extensions/string_extensions.dart # lib/main.dart # lib/ui/landing/today_attendance_screen.dart # lib/ui/landing/widget/app_drawer.dart # pubspec.yamlmerge-requests/1/merge
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 7.8 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 721 B After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 9.5 KiB |
After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 7.3 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 9.1 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 15 KiB |
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="ic_launcher_background">#ffffff</color>
|
||||
</resources>
|
@ -0,0 +1,8 @@
|
||||
<svg id="user_21_" data-name="user (21)" xmlns="http://www.w3.org/2000/svg" width="110.999" height="110.999" viewBox="0 0 110.999 110.999">
|
||||
<path id="Path_4696" data-name="Path 4696" d="M272.482,267.883a25.756,25.756,0,0,0,5.549-15.868,26.015,26.015,0,1,0-26.015,26.015,25.756,25.756,0,0,0,15.868-5.549l14.569,14.569a3.252,3.252,0,1,0,4.6-4.6ZM260.818,256.22a3.252,3.252,0,1,1-4.6,4.6l-4.2-4.2-4.2,4.2a3.252,3.252,0,0,1-4.6-4.6l4.2-4.2-4.2-4.2a3.252,3.252,0,0,1,4.6-4.6l4.2,4.2,4.2-4.2a3.252,3.252,0,1,1,4.6,4.6l-4.2,4.2Z" transform="translate(-177.004 -177.004)" fill="#ddd"/>
|
||||
<circle id="Ellipse_165" data-name="Ellipse 165" cx="3.5" cy="3.5" r="3.5" transform="translate(35.5 19.499)" fill="#ddd"/>
|
||||
<path id="Path_4697" data-name="Path 4697" d="M197.516,362h0Z" transform="translate(-154.695 -283.52)" fill="#ddd"/>
|
||||
<path id="Path_4698" data-name="Path 4698" d="M197.516,332h0Z" transform="translate(-154.695 -260.021)" fill="#ddd"/>
|
||||
<path id="Path_4699" data-name="Path 4699" d="M3.252,111H75.011a3.25,3.25,0,0,0,3.252-3.252v-.329a31.763,31.763,0,0,1-3.252.329,32.393,32.393,0,0,1-23.165-9.756H16.476a3.252,3.252,0,0,1,0-6.5H47.016v0a32.2,32.2,0,0,1-2.865-6.507H16.476a3.252,3.252,0,0,1,0-6.5H42.821c-.454-4.484-.454-2.022,0-6.5H16.476a3.252,3.252,0,1,1,0-6.5H44.152a32.468,32.468,0,0,1,7.694-13.009H26.232a3.25,3.25,0,0,1-3.252-3.252V45.96A13.021,13.021,0,0,1,35.988,32.953H39.24A9.756,9.756,0,1,1,49,23.2a9.767,9.767,0,0,1-9.756,9.756h3.252A13.021,13.021,0,0,1,55.5,45.96v3.252c0,.071-.036.13-.04.2a32.2,32.2,0,0,1,19.552-6.7,31.762,31.762,0,0,1,3.252.329V3.252A3.25,3.25,0,0,0,75.011,0H3.252A3.25,3.25,0,0,0,0,3.252v104.5A3.25,3.25,0,0,0,3.252,111Z" fill="#ddd"/>
|
||||
<path id="Path_4700" data-name="Path 4700" d="M142.5,182a6.512,6.512,0,0,0-6.5,6.5h19.512a6.512,6.512,0,0,0-6.5-6.5Z" transform="translate(-106.516 -142.543)" fill="#ddd"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.8 KiB |
@ -1,122 +1,128 @@
|
||||
{
|
||||
"images":[
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom":"iphone",
|
||||
"filename" : "Icon-App-20x20@2x.png",
|
||||
"scale" : "2x"
|
||||
"size":"20x20",
|
||||
"scale":"2x",
|
||||
"filename":"Icon-App-20x20@2x.png"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom":"iphone",
|
||||
"filename" : "Icon-App-20x20@3x.png",
|
||||
"scale" : "3x"
|
||||
"size":"20x20",
|
||||
"scale":"3x",
|
||||
"filename":"Icon-App-20x20@3x.png"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom":"iphone",
|
||||
"filename" : "Icon-App-29x29@1x.png",
|
||||
"scale" : "1x"
|
||||
"size":"29x29",
|
||||
"scale":"1x",
|
||||
"filename":"Icon-App-29x29@1x.png"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom":"iphone",
|
||||
"filename" : "Icon-App-29x29@2x.png",
|
||||
"scale" : "2x"
|
||||
"size":"29x29",
|
||||
"scale":"2x",
|
||||
"filename":"Icon-App-29x29@2x.png"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom":"iphone",
|
||||
"filename" : "Icon-App-29x29@3x.png",
|
||||
"scale" : "3x"
|
||||
"size":"29x29",
|
||||
"scale":"3x",
|
||||
"filename":"Icon-App-29x29@3x.png"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom":"iphone",
|
||||
"filename" : "Icon-App-40x40@2x.png",
|
||||
"scale" : "2x"
|
||||
"size":"40x40",
|
||||
"scale":"2x",
|
||||
"filename":"Icon-App-40x40@2x.png"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom":"iphone",
|
||||
"filename" : "Icon-App-40x40@3x.png",
|
||||
"scale" : "3x"
|
||||
"size":"40x40",
|
||||
"scale":"3x",
|
||||
"filename":"Icon-App-40x40@3x.png"
|
||||
},
|
||||
{
|
||||
"size" : "60x60",
|
||||
"idiom":"iphone",
|
||||
"filename" : "Icon-App-60x60@2x.png",
|
||||
"scale" : "2x"
|
||||
"size":"60x60",
|
||||
"scale":"2x",
|
||||
"filename":"Icon-App-60x60@2x.png"
|
||||
},
|
||||
{
|
||||
"idiom":"iphone",
|
||||
"size":"60x60",
|
||||
"scale":"3x",
|
||||
"filename":"Icon-App-60x60@3x.png"
|
||||
},
|
||||
{
|
||||
"idiom":"iphone",
|
||||
"filename" : "Icon-App-60x60@3x.png",
|
||||
"scale" : "3x"
|
||||
"size":"76x76",
|
||||
"scale":"2x",
|
||||
"filename":"Icon-App-76x76@2x.png"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom":"ipad",
|
||||
"filename" : "Icon-App-20x20@1x.png",
|
||||
"scale" : "1x"
|
||||
"size":"20x20",
|
||||
"scale":"1x",
|
||||
"filename":"Icon-App-20x20@1x.png"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom":"ipad",
|
||||
"filename" : "Icon-App-20x20@2x.png",
|
||||
"scale" : "2x"
|
||||
"size":"20x20",
|
||||
"scale":"2x",
|
||||
"filename":"Icon-App-20x20@2x.png"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom":"ipad",
|
||||
"filename" : "Icon-App-29x29@1x.png",
|
||||
"scale" : "1x"
|
||||
"size":"29x29",
|
||||
"scale":"1x",
|
||||
"filename":"Icon-App-29x29@1x.png"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom":"ipad",
|
||||
"filename" : "Icon-App-29x29@2x.png",
|
||||
"scale" : "2x"
|
||||
"size":"29x29",
|
||||
"scale":"2x",
|
||||
"filename":"Icon-App-29x29@2x.png"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom":"ipad",
|
||||
"filename" : "Icon-App-40x40@1x.png",
|
||||
"scale" : "1x"
|
||||
"size":"40x40",
|
||||
"scale":"1x",
|
||||
"filename":"Icon-App-40x40@1x.png"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom":"ipad",
|
||||
"filename" : "Icon-App-40x40@2x.png",
|
||||
"scale" : "2x"
|
||||
"size":"40x40",
|
||||
"scale":"2x",
|
||||
"filename":"Icon-App-40x40@2x.png"
|
||||
},
|
||||
{
|
||||
"size" : "76x76",
|
||||
"idiom":"ipad",
|
||||
"filename" : "Icon-App-76x76@1x.png",
|
||||
"scale" : "1x"
|
||||
"size":"76x76",
|
||||
"scale":"1x",
|
||||
"filename":"Icon-App-76x76@1x.png"
|
||||
},
|
||||
{
|
||||
"size" : "76x76",
|
||||
"idiom":"ipad",
|
||||
"filename" : "Icon-App-76x76@2x.png",
|
||||
"scale" : "2x"
|
||||
"size":"76x76",
|
||||
"scale":"2x",
|
||||
"filename":"Icon-App-76x76@2x.png"
|
||||
},
|
||||
{
|
||||
"size" : "83.5x83.5",
|
||||
"idiom":"ipad",
|
||||
"filename" : "Icon-App-83.5x83.5@2x.png",
|
||||
"scale" : "2x"
|
||||
"size":"83.5x83.5",
|
||||
"scale":"2x",
|
||||
"filename":"Icon-App-83.5x83.5@2x.png"
|
||||
},
|
||||
{
|
||||
"size" : "1024x1024",
|
||||
"idiom" : "ios-marketing",
|
||||
"filename" : "Icon-App-1024x1024@1x.png",
|
||||
"scale" : "1x"
|
||||
"scale" : "1x",
|
||||
"filename" : "ItunesArtwork@2x.png"
|
||||
}
|
||||
],
|
||||
"info":{
|
||||
"version":1,
|
||||
"author" : "xcode"
|
||||
"author":"easyappicon"
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 564 B After Width: | Height: | Size: 684 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 61 KiB |
@ -0,0 +1,68 @@
|
||||
import 'package:mohem_flutter_app/api/api_client.dart';
|
||||
import 'package:mohem_flutter_app/app_state/app_state.dart';
|
||||
import 'package:mohem_flutter_app/classes/consts.dart';
|
||||
import 'package:mohem_flutter_app/models/generic_response_model.dart';
|
||||
import 'package:mohem_flutter_app/models/monthly_pay_slip/get_deductions_List_model.dart';
|
||||
import 'package:mohem_flutter_app/models/monthly_pay_slip/get_earnings_list_model.dart';
|
||||
import 'package:mohem_flutter_app/models/monthly_pay_slip/get_pay_slip_list_model.dart';
|
||||
import 'package:mohem_flutter_app/models/monthly_pay_slip/get_payment_information_list_model.dart';
|
||||
import 'package:mohem_flutter_app/models/monthly_pay_slip/get_summary_of_payment_list_model.dart';
|
||||
|
||||
class MonthlyPaySlipApiClient {
|
||||
static final MonthlyPaySlipApiClient _instance = MonthlyPaySlipApiClient._internal();
|
||||
|
||||
MonthlyPaySlipApiClient._internal();
|
||||
|
||||
factory MonthlyPaySlipApiClient() => _instance;
|
||||
|
||||
Future<List<GetPayslipList>> getPaySlip() async {
|
||||
String url = "${ApiConsts.erpRest}GET_PAYSLIP";
|
||||
Map<String, dynamic> postParams = {"P_MENU_TYPE": "E", "P_SELECTED_RESP_ID": -999};
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
print(postParams);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.getPayslipList ?? [];
|
||||
}, url, postParams);
|
||||
}
|
||||
|
||||
Future<List<GetSummaryOfPaymentList>> getSummaryOfPayment(int pActionContextID) async {
|
||||
String url = "${ApiConsts.erpRest}GET_SUMMARY_OF_PAYMENT";
|
||||
Map<String, dynamic> postParams = {"P_ACTION_CONTEXT_ID": pActionContextID};
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.getSummaryOfPaymentList ?? [];
|
||||
}, url, postParams);
|
||||
}
|
||||
|
||||
Future<List<GetPaymentInformationList>> getPaymentInformation(int pActionContextID) async {
|
||||
String url = "${ApiConsts.erpRest}GET_PAYMENT_INFORMATION";
|
||||
Map<String, dynamic> postParams = {"P_ACTION_CONTEXT_ID": pActionContextID};
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.getPaymentInformationList ?? [];
|
||||
}, url, postParams);
|
||||
}
|
||||
|
||||
Future<List<GetDeductionsList>> getDeductions(int pActionContextID) async {
|
||||
String url = "${ApiConsts.erpRest}GET_DEDUCTIONS";
|
||||
Map<String, dynamic> postParams = {"P_ACTION_CONTEXT_ID": pActionContextID, "P_PAGE_LIMIT": 100, "P_PAGE_NUM": 1};
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.getDeductionsList ?? [];
|
||||
}, url, postParams);
|
||||
}
|
||||
|
||||
Future<List<GetEarningsList>> getEarnings(int pActionContextID) async {
|
||||
String url = "${ApiConsts.erpRest}GET_EARNINGS";
|
||||
Map<String, dynamic> postParams = {"P_ACTION_CONTEXT_ID": pActionContextID, "P_PAGE_LIMIT": 100, "P_PAGE_NUM": 1};
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.getEarningsList ?? [];
|
||||
}, url, postParams);
|
||||
}
|
||||
}
|
@ -0,0 +1,135 @@
|
||||
import 'package:mohem_flutter_app/api/api_client.dart';
|
||||
import 'package:mohem_flutter_app/app_state/app_state.dart';
|
||||
import 'package:mohem_flutter_app/classes/consts.dart';
|
||||
import 'package:mohem_flutter_app/models/generic_response_model.dart';
|
||||
import 'package:mohem_flutter_app/models/mowadhafhi/get_department_sections.dart';
|
||||
import 'package:mohem_flutter_app/models/mowadhafhi/get_project_departments.dart';
|
||||
import 'package:mohem_flutter_app/models/mowadhafhi/get_projects.dart';
|
||||
import 'package:mohem_flutter_app/models/mowadhafhi/get_section_topics.dart';
|
||||
import 'package:mohem_flutter_app/models/mowadhafhi/get_ticket_details.dart';
|
||||
import 'package:mohem_flutter_app/models/mowadhafhi/get_ticket_transactions.dart';
|
||||
import 'package:mohem_flutter_app/models/mowadhafhi/get_ticket_types.dart';
|
||||
import 'package:mohem_flutter_app/models/mowadhafhi/get_tickets_list.dart';
|
||||
|
||||
class MowadhafhiApiClient {
|
||||
static final MowadhafhiApiClient _instance = MowadhafhiApiClient._internal();
|
||||
|
||||
MowadhafhiApiClient._internal();
|
||||
|
||||
factory MowadhafhiApiClient() => _instance;
|
||||
|
||||
Future<List<GetTicketsByEmployeeList>> getTicketsByEmployee() async {
|
||||
String url = "${ApiConsts.cocRest}Mohemm_ITG_GetTicketsByEmployee";
|
||||
Map<String, dynamic> postParams = {"EmployeeNumber": AppState().memberInformationList?.eMPLOYEENUMBER, "ItgPageSize": 10, "ItgPageNo": 1};
|
||||
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.getTicketsByEmployeeList ?? [];
|
||||
}, url, postParams);
|
||||
}
|
||||
|
||||
Future<List<GetTicketDetailsByEmployee>> getTicketDetailsByEmployee(String? itgTicketID) async {
|
||||
String url = "${ApiConsts.cocRest}Mohemm_ITG_GetTicketDetails";
|
||||
Map<String, dynamic> postParams = {"EmployeeNumber": AppState().memberInformationList?.eMPLOYEENUMBER, "ItgTicketId": itgTicketID};
|
||||
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.getTicketDetailsByEmployee ?? [];
|
||||
}, url, postParams);
|
||||
}
|
||||
|
||||
Future<List<GetTicketTransactions>> getTicketTransactions(String? itgTicketID) async {
|
||||
String url = "${ApiConsts.cocRest}Mohemm_ITG_GetTicketTransaction";
|
||||
Map<String, dynamic> postParams = {"EmployeeNumber": AppState().memberInformationList?.eMPLOYEENUMBER, "ItgTicketId": itgTicketID};
|
||||
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.getTicketTransactions ?? [];
|
||||
}, url, postParams);
|
||||
}
|
||||
|
||||
Future<List<GetTicketTypes>> getTicketTypes() async {
|
||||
String url = "${ApiConsts.cocRest}Mohemm_ITG_GetTicketTypes";
|
||||
Map<String, dynamic> postParams = {"EmployeeNumber": AppState().memberInformationList?.eMPLOYEENUMBER};
|
||||
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.getTicketTypes ?? [];
|
||||
}, url, postParams);
|
||||
}
|
||||
|
||||
Future<List<GetMowadhafhiProjects>> getProjects() async {
|
||||
String url = "${ApiConsts.cocRest}Mohemm_ITG_GetProjects";
|
||||
Map<String, dynamic> postParams = {"EmployeeNumber": AppState().memberInformationList?.eMPLOYEENUMBER, "ItgProjectCode": AppState().memberInformationList?.pAYROLLCODE};
|
||||
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.getMowadhafhiProjects ?? [];
|
||||
}, url, postParams);
|
||||
}
|
||||
|
||||
Future<List<GetProjectDepartments>> getProjectDepartments(int projectID) async {
|
||||
String url = "${ApiConsts.cocRest}Mohemm_ITG_GetProjectDepartments";
|
||||
Map<String, dynamic> postParams = {"EmployeeNumber": AppState().memberInformationList?.eMPLOYEENUMBER, "ItgProjectId": projectID};
|
||||
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.getProjectDepartments ?? [];
|
||||
}, url, postParams);
|
||||
}
|
||||
|
||||
Future<List<GetDepartmentSections>> getDepartmentSections(int? projectDepartmentID) async {
|
||||
String url = "${ApiConsts.cocRest}Mohemm_ITG_GetDepartmentSections";
|
||||
Map<String, dynamic> postParams = {
|
||||
"EmployeeNumber": AppState().memberInformationList?.eMPLOYEENUMBER,
|
||||
"ItgDepartmentSectionId": projectDepartmentID,
|
||||
"ItgProjectDepartmentId": projectDepartmentID
|
||||
};
|
||||
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.getDepartmentSections ?? [];
|
||||
}, url, postParams);
|
||||
}
|
||||
|
||||
Future<List<GetSectionTopics>> getSectionTopics(int? departmentSectionID) async {
|
||||
String url = "${ApiConsts.cocRest}Mohemm_ITG_GetSectionTopics";
|
||||
Map<String, dynamic> postParams = {"EmployeeNumber": AppState().memberInformationList?.eMPLOYEENUMBER, "ItgDepartmentSectionId": departmentSectionID};
|
||||
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.getSectionTopics ?? [];
|
||||
}, url, postParams);
|
||||
}
|
||||
|
||||
Future<int?> submitRequest(int? departmentID, String description, int? projectID, String? sectionID, String? sectionTopicID, int? ticketTypeID, List<Map<String, dynamic>> attachmentList) async {
|
||||
String url = "${ApiConsts.cocRest}Mohemm_ITG_CreateTicketMobile";
|
||||
Map<String, dynamic> postParams = {
|
||||
"EmployeeNumber": AppState().memberInformationList?.eMPLOYEENUMBER,
|
||||
"ItgImageCollList": attachmentList,
|
||||
"channelId": 3,
|
||||
"departmentId": departmentID,
|
||||
"description": description,
|
||||
"employeeNumber": AppState().memberInformationList?.eMPLOYEENUMBER,
|
||||
"projectId": projectID,
|
||||
"sectionId": sectionID,
|
||||
"sectionTopicId": sectionTopicID,
|
||||
"ticketStatus": "new",
|
||||
"ticketTypeId": ticketTypeID
|
||||
};
|
||||
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.messageStatus;
|
||||
}, url, postParams);
|
||||
}
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
import 'package:mohem_flutter_app/api/api_client.dart';
|
||||
import 'package:mohem_flutter_app/app_state/app_state.dart';
|
||||
import 'package:mohem_flutter_app/classes/consts.dart';
|
||||
import 'package:mohem_flutter_app/models/generic_response_model.dart';
|
||||
import 'package:mohem_flutter_app/models/pending_transactions/get_pending_transactions_details.dart';
|
||||
import 'package:mohem_flutter_app/models/pending_transactions/get_req_functions.dart';
|
||||
|
||||
// todo '@haroon' kindly format code
|
||||
|
||||
class PendingTransactionsApiClient {
|
||||
static final PendingTransactionsApiClient _instance = PendingTransactionsApiClient._internal();
|
||||
|
||||
PendingTransactionsApiClient._internal();
|
||||
|
||||
factory PendingTransactionsApiClient() => _instance;
|
||||
|
||||
Future<List<GetPendingTransactionsFunctions>> getPendingReqFunctions() async {
|
||||
String url = "${ApiConsts.erpRest}GET_PENDING_REQ_FUNCTIONS";
|
||||
Map<String, dynamic> postParams = {};
|
||||
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.getPendingTransactionsFunctions ?? [];
|
||||
}, url, postParams);
|
||||
}
|
||||
|
||||
Future<List<GetPendingTransactionsDetails>> getPendingTransactionsDetails(String functionID, String dateFrom, String dateTo) async {
|
||||
String url = "${ApiConsts.erpRest}GET_PENDING_REQ_DETAILS";
|
||||
Map<String, dynamic> postParams = {"P_FUNCTION_ID": functionID, "P_PAGE_LIMIT": 20, "P_PAGE_NUM": 1, "P_CREATION_DATE_FROM": dateFrom, "P_CREATION_DATE_TO": dateTo};
|
||||
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.getPendingTransactionsDetails ?? [];
|
||||
}, url, postParams);
|
||||
}
|
||||
|
||||
Future<String> getAnnouncements(int itgAwarenessID, int itgPageNo, int itgRowID) async {
|
||||
String url = "${ApiConsts.cocRest}GetAnnouncementDiscountsConfigData";
|
||||
Map<String, dynamic> postParams = {"EmployeeNumber": AppState().memberInformationList?.eMPLOYEENUMBER.toString(), "ItgAwarenessID": itgAwarenessID, "ItgPageNo": itgPageNo, "ItgPageSize": 5, "ItgRowID": itgRowID};
|
||||
postParams.addAll(AppState().postParamsJson);
|
||||
return await ApiClient().postJsonForObject((json) {
|
||||
GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
||||
return responseData.mohemmITGResponseItem ?? "";
|
||||
}, url, postParams);
|
||||
}
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:mohem_flutter_app/classes/consts.dart';
|
||||
import 'package:mohem_flutter_app/models/content_info_model.dart';
|
||||
import 'package:mohem_flutter_app/models/member_login_list_model.dart';
|
||||
import 'package:mohem_flutter_app/models/surah_model.dart';
|
||||
|
||||
import 'api_client.dart';
|
||||
|
||||
class TangheemUserApiClient {
|
||||
static final TangheemUserApiClient _instance = TangheemUserApiClient._internal();
|
||||
|
||||
TangheemUserApiClient._internal();
|
||||
|
||||
factory TangheemUserApiClient() => _instance;
|
||||
|
||||
// Future<SurahModel> getSurahs() async {
|
||||
// String url = "${ApiConsts.tangheemUsers}AlSuar_Get";
|
||||
// var postParams = {};
|
||||
// return await ApiClient().postJsonForObject((json) => SurahModel.fromJson(json), url, postParams);
|
||||
// }
|
||||
//
|
||||
// Future<MemberModel> getMembers() async {
|
||||
// String url = "${ApiConsts.tangheemUsers}Committee_Get";
|
||||
// var postParams = {};
|
||||
// return await ApiClient().postJsonForObject((json) => MemberModel.fromJson(json), url, postParams);
|
||||
// }
|
||||
//
|
||||
// Future<ContentInfoModel> getContentInfo(int contentId) async {
|
||||
// String url = "${ApiConsts.tangheemUsers}ContentInfo_Get";
|
||||
// var postParams = {"contentTypeId": contentId};
|
||||
// return await ApiClient().postJsonForObject((json) => ContentInfoModel.fromJson(json), url, postParams);
|
||||
// }
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
class AddAttSuccessList {
|
||||
bool? addSuccess;
|
||||
int? attachmentID;
|
||||
|
||||
AddAttSuccessList({this.addSuccess, this.attachmentID});
|
||||
|
||||
AddAttSuccessList.fromJson(Map<String, dynamic> json) {
|
||||
addSuccess = json['AddSuccess'];
|
||||
attachmentID = json['AttachmentID'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['AddSuccess'] = this.addSuccess;
|
||||
data['AttachmentID'] = this.attachmentID;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
class AddAttachmentList {
|
||||
String? pRETURNMSG;
|
||||
String? pRETURNSTATUS;
|
||||
|
||||
AddAttachmentList({this.pRETURNMSG, this.pRETURNSTATUS});
|
||||
|
||||
AddAttachmentList.fromJson(Map<String, dynamic> json) {
|
||||
pRETURNMSG = json['P_RETURN_MSG'];
|
||||
pRETURNSTATUS = json['P_RETURN_STATUS'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['P_RETURN_MSG'] = this.pRETURNMSG;
|
||||
data['P_RETURN_STATUS'] = this.pRETURNSTATUS;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
class AttachmentModel {
|
||||
int? attachmentID;
|
||||
String? pFILECONTENTTYPE;
|
||||
String? pFILEDATA;
|
||||
String? pFILENAME;
|
||||
int? pTRANSACTIONID;
|
||||
|
||||
AttachmentModel({this.attachmentID, this.pFILECONTENTTYPE, this.pFILEDATA, this.pFILENAME, this.pTRANSACTIONID});
|
||||
|
||||
AttachmentModel.fromJson(Map<String, dynamic> json) {
|
||||
attachmentID = json['AttachmentID'];
|
||||
pFILECONTENTTYPE = json['P_FILE_CONTENT_TYPE'];
|
||||
pFILEDATA = json['P_FILE_DATA'];
|
||||
pFILENAME = json['P_FILE_NAME'];
|
||||
pTRANSACTIONID = json['P_TRANSACTION_ID'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['AttachmentID'] = this.attachmentID;
|
||||
data['P_FILE_CONTENT_TYPE'] = this.pFILECONTENTTYPE;
|
||||
data['P_FILE_DATA'] = this.pFILEDATA;
|
||||
data['P_FILE_NAME'] = this.pFILENAME;
|
||||
data['P_TRANSACTION_ID'] = this.pTRANSACTIONID;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
class ValidateEitTransactionModel {
|
||||
int? tRANSACTIONNUMBER;
|
||||
String? nAME;
|
||||
String? vARCHAR2VALUE;
|
||||
int? nUMBERVALUE;
|
||||
String? dATEVALUE;
|
||||
|
||||
ValidateEitTransactionModel({this.tRANSACTIONNUMBER, this.nAME, this.vARCHAR2VALUE, this.nUMBERVALUE, this.dATEVALUE});
|
||||
|
||||
ValidateEitTransactionModel.fromJson(Map<String, dynamic> json) {
|
||||
tRANSACTIONNUMBER = json['TRANSACTION_NUMBER'];
|
||||
nAME = json['NAME'];
|
||||
vARCHAR2VALUE = json['VARCHAR2_VALUE'];
|
||||
nUMBERVALUE = json['NUMBER_VALUE'];
|
||||
dATEVALUE = json['DATE_VALUE'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['TRANSACTION_NUMBER'] = this.tRANSACTIONNUMBER;
|
||||
data['NAME'] = this.nAME;
|
||||
data['VARCHAR2_VALUE'] = this.vARCHAR2VALUE;
|
||||
data['NUMBER_VALUE'] = this.nUMBERVALUE;
|
||||
data['DATE_VALUE'] = this.dATEVALUE;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
class GetAnnouncementDetails {
|
||||
String? titleEN;
|
||||
String? titleAR;
|
||||
String? emailBodyEN;
|
||||
String? emailBodyAR;
|
||||
String? bodyEN;
|
||||
String? bodyAR;
|
||||
String? bannerImage;
|
||||
String? rowID;
|
||||
String? awarenessName;
|
||||
String? created;
|
||||
String? publishedDesc;
|
||||
String? published;
|
||||
String? twoLanguageTemplateDesc;
|
||||
String? wFStatus;
|
||||
String? totalItems;
|
||||
|
||||
GetAnnouncementDetails(
|
||||
{this.titleEN,
|
||||
this.titleAR,
|
||||
this.emailBodyEN,
|
||||
this.emailBodyAR,
|
||||
this.bodyEN,
|
||||
this.bodyAR,
|
||||
this.bannerImage,
|
||||
this.rowID,
|
||||
this.awarenessName,
|
||||
this.created,
|
||||
this.publishedDesc,
|
||||
this.published,
|
||||
this.twoLanguageTemplateDesc,
|
||||
this.wFStatus,
|
||||
this.totalItems});
|
||||
|
||||
GetAnnouncementDetails.fromJson(Map<String, dynamic> json) {
|
||||
titleEN = json['Title_EN'];
|
||||
titleAR = json['Title_AR'];
|
||||
emailBodyEN = json['EmailBody_EN'];
|
||||
emailBodyAR = json['EmailBody_AR'];
|
||||
bodyEN = json['Body_EN'];
|
||||
bodyAR = json['Body_AR'];
|
||||
bannerImage = json['Banner_Image'];
|
||||
rowID = json['rowID'];
|
||||
awarenessName = json['awarenessName'];
|
||||
created = json['created'];
|
||||
publishedDesc = json['PublishedDesc'];
|
||||
published = json['Published'];
|
||||
twoLanguageTemplateDesc = json['TwoLanguageTemplateDesc'];
|
||||
wFStatus = json['WFStatus'];
|
||||
totalItems = json['TotalItems'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['Title_EN'] = this.titleEN;
|
||||
data['Title_AR'] = this.titleAR;
|
||||
data['EmailBody_EN'] = this.emailBodyEN;
|
||||
data['EmailBody_AR'] = this.emailBodyAR;
|
||||
data['Body_EN'] = this.bodyEN;
|
||||
data['Body_AR'] = this.bodyAR;
|
||||
data['Banner_Image'] = this.bannerImage;
|
||||
data['rowID'] = this.rowID;
|
||||
data['awarenessName'] = this.awarenessName;
|
||||
data['created'] = this.created;
|
||||
data['PublishedDesc'] = this.publishedDesc;
|
||||
data['Published'] = this.published;
|
||||
data['TwoLanguageTemplateDesc'] = this.twoLanguageTemplateDesc;
|
||||
data['WFStatus'] = this.wFStatus;
|
||||
data['TotalItems'] = this.totalItems;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
class GetAnnouncementsObject {
|
||||
String? titleEN;
|
||||
String? titleAR;
|
||||
String? bannerImage;
|
||||
String? rowID;
|
||||
String? awarenessName;
|
||||
String? created;
|
||||
String? publishedDesc;
|
||||
String? published;
|
||||
String? twoLanguageTemplateDesc;
|
||||
String? wFStatus;
|
||||
String? totalItems;
|
||||
String? emailBodyEN;
|
||||
String? emailBodyAR;
|
||||
String? bodyEN;
|
||||
String? bodyAR;
|
||||
|
||||
GetAnnouncementsObject(
|
||||
{this.titleEN,
|
||||
this.titleAR,
|
||||
this.bannerImage,
|
||||
this.rowID,
|
||||
this.awarenessName,
|
||||
this.created,
|
||||
this.publishedDesc,
|
||||
this.published,
|
||||
this.twoLanguageTemplateDesc,
|
||||
this.wFStatus,
|
||||
this.totalItems,
|
||||
this.emailBodyEN,
|
||||
this.emailBodyAR,
|
||||
this.bodyEN,
|
||||
this.bodyAR});
|
||||
|
||||
GetAnnouncementsObject.fromJson(Map<String, dynamic> json) {
|
||||
titleEN = json['Title_EN'];
|
||||
titleAR = json['Title_AR'];
|
||||
bannerImage = json['Banner_Image'];
|
||||
rowID = json['rowID'];
|
||||
awarenessName = json['awarenessName'];
|
||||
created = json['created'];
|
||||
publishedDesc = json['PublishedDesc'];
|
||||
published = json['Published'];
|
||||
twoLanguageTemplateDesc = json['TwoLanguageTemplateDesc'];
|
||||
wFStatus = json['WFStatus'];
|
||||
totalItems = json['TotalItems'];
|
||||
emailBodyEN = json['EmailBody_EN'];
|
||||
emailBodyAR = json['EmailBody_AR'];
|
||||
bodyEN = json['Body_EN'];
|
||||
bodyAR = json['Body_AR'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['Title_EN'] = this.titleEN;
|
||||
data['Title_AR'] = this.titleAR;
|
||||
data['Banner_Image'] = this.bannerImage;
|
||||
data['rowID'] = this.rowID;
|
||||
data['awarenessName'] = this.awarenessName;
|
||||
data['created'] = this.created;
|
||||
data['PublishedDesc'] = this.publishedDesc;
|
||||
data['Published'] = this.published;
|
||||
data['TwoLanguageTemplateDesc'] = this.twoLanguageTemplateDesc;
|
||||
data['WFStatus'] = this.wFStatus;
|
||||
data['TotalItems'] = this.totalItems;
|
||||
data['EmailBody_EN'] = this.emailBodyEN;
|
||||
data['EmailBody_AR'] = this.emailBodyAR;
|
||||
data['Body_EN'] = this.bodyEN;
|
||||
data['Body_AR'] = this.bodyAR;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
class GetApprovesList {
|
||||
String? aPPROVALSTATUS;
|
||||
String? aPPROVER;
|
||||
String? aPPROVERCATEGORY;
|
||||
int? aPPROVERORDERNUMBER;
|
||||
String? aPPROVERTYPE;
|
||||
String? eMPLOYEEIMAGE;
|
||||
int? fROMROWNUM;
|
||||
int? lINENO;
|
||||
int? nOOFROWS;
|
||||
String? pOSITIONTITLE;
|
||||
int? rOWNUM;
|
||||
int? tOROWNUM;
|
||||
|
||||
GetApprovesList(
|
||||
{this.aPPROVALSTATUS,
|
||||
this.aPPROVER,
|
||||
this.aPPROVERCATEGORY,
|
||||
this.aPPROVERORDERNUMBER,
|
||||
this.aPPROVERTYPE,
|
||||
this.eMPLOYEEIMAGE,
|
||||
this.fROMROWNUM,
|
||||
this.lINENO,
|
||||
this.nOOFROWS,
|
||||
this.pOSITIONTITLE,
|
||||
this.rOWNUM,
|
||||
this.tOROWNUM});
|
||||
|
||||
GetApprovesList.fromJson(Map<String, dynamic> json) {
|
||||
aPPROVALSTATUS = json['APPROVAL_STATUS'];
|
||||
aPPROVER = json['APPROVER'];
|
||||
aPPROVERCATEGORY = json['APPROVER_CATEGORY'];
|
||||
aPPROVERORDERNUMBER = json['APPROVER_ORDER_NUMBER'];
|
||||
aPPROVERTYPE = json['APPROVER_TYPE'];
|
||||
eMPLOYEEIMAGE = json['EMPLOYEE_IMAGE'];
|
||||
fROMROWNUM = json['FROM_ROW_NUM'];
|
||||
lINENO = json['LINE_NO'];
|
||||
nOOFROWS = json['NO_OF_ROWS'];
|
||||
pOSITIONTITLE = json['POSITION_TITLE'];
|
||||
rOWNUM = json['ROW_NUM'];
|
||||
tOROWNUM = json['TO_ROW_NUM'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['APPROVAL_STATUS'] = this.aPPROVALSTATUS;
|
||||
data['APPROVER'] = this.aPPROVER;
|
||||
data['APPROVER_CATEGORY'] = this.aPPROVERCATEGORY;
|
||||
data['APPROVER_ORDER_NUMBER'] = this.aPPROVERORDERNUMBER;
|
||||
data['APPROVER_TYPE'] = this.aPPROVERTYPE;
|
||||
data['EMPLOYEE_IMAGE'] = this.eMPLOYEEIMAGE;
|
||||
data['FROM_ROW_NUM'] = this.fROMROWNUM;
|
||||
data['LINE_NO'] = this.lINENO;
|
||||
data['NO_OF_ROWS'] = this.nOOFROWS;
|
||||
data['POSITION_TITLE'] = this.pOSITIONTITLE;
|
||||
data['ROW_NUM'] = this.rOWNUM;
|
||||
data['TO_ROW_NUM'] = this.tOROWNUM;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
class GetDefaultValueList {
|
||||
String? pIDCOLUMNNAME;
|
||||
String? pRETURNMSG;
|
||||
String? pRETURNSTATUS;
|
||||
String? pVALUECOLUMNNAME;
|
||||
|
||||
GetDefaultValueList(
|
||||
{this.pIDCOLUMNNAME,
|
||||
this.pRETURNMSG,
|
||||
this.pRETURNSTATUS,
|
||||
this.pVALUECOLUMNNAME});
|
||||
|
||||
GetDefaultValueList.fromJson(Map<String, dynamic> json) {
|
||||
pIDCOLUMNNAME = json['P_ID_COLUMN_NAME'];
|
||||
pRETURNMSG = json['P_RETURN_MSG'];
|
||||
pRETURNSTATUS = json['P_RETURN_STATUS'];
|
||||
pVALUECOLUMNNAME = json['P_VALUE_COLUMN_NAME'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['P_ID_COLUMN_NAME'] = this.pIDCOLUMNNAME;
|
||||
data['P_RETURN_MSG'] = this.pRETURNMSG;
|
||||
data['P_RETURN_STATUS'] = this.pRETURNSTATUS;
|
||||
data['P_VALUE_COLUMN_NAME'] = this.pVALUECOLUMNNAME;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
class GetDeductionsList {
|
||||
int? aMOUNT;
|
||||
String? eLEMENTNAME;
|
||||
int? fROMROWNUM;
|
||||
int? nOOFROWS;
|
||||
int? rOWNUM;
|
||||
int? tOROWNUM;
|
||||
|
||||
GetDeductionsList(
|
||||
{this.aMOUNT,
|
||||
this.eLEMENTNAME,
|
||||
this.fROMROWNUM,
|
||||
this.nOOFROWS,
|
||||
this.rOWNUM,
|
||||
this.tOROWNUM});
|
||||
|
||||
GetDeductionsList.fromJson(Map<String, dynamic> json) {
|
||||
aMOUNT = json['AMOUNT'];
|
||||
eLEMENTNAME = json['ELEMENT_NAME'];
|
||||
fROMROWNUM = json['FROM_ROW_NUM'];
|
||||
nOOFROWS = json['NO_OF_ROWS'];
|
||||
rOWNUM = json['ROW_NUM'];
|
||||
tOROWNUM = json['TO_ROW_NUM'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['AMOUNT'] = this.aMOUNT;
|
||||
data['ELEMENT_NAME'] = this.eLEMENTNAME;
|
||||
data['FROM_ROW_NUM'] = this.fROMROWNUM;
|
||||
data['NO_OF_ROWS'] = this.nOOFROWS;
|
||||
data['ROW_NUM'] = this.rOWNUM;
|
||||
data['TO_ROW_NUM'] = this.tOROWNUM;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
class GetEarningsList {
|
||||
int? aMOUNT;
|
||||
String? eLEMENTNAME;
|
||||
int? fROMROWNUM;
|
||||
int? nOOFROWS;
|
||||
int? rOWNUM;
|
||||
int? tOROWNUM;
|
||||
|
||||
GetEarningsList(
|
||||
{this.aMOUNT,
|
||||
this.eLEMENTNAME,
|
||||
this.fROMROWNUM,
|
||||
this.nOOFROWS,
|
||||
this.rOWNUM,
|
||||
this.tOROWNUM});
|
||||
|
||||
GetEarningsList.fromJson(Map<String, dynamic> json) {
|
||||
aMOUNT = json['AMOUNT'];
|
||||
eLEMENTNAME = json['ELEMENT_NAME'];
|
||||
fROMROWNUM = json['FROM_ROW_NUM'];
|
||||
nOOFROWS = json['NO_OF_ROWS'];
|
||||
rOWNUM = json['ROW_NUM'];
|
||||
tOROWNUM = json['TO_ROW_NUM'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['AMOUNT'] = this.aMOUNT;
|
||||
data['ELEMENT_NAME'] = this.eLEMENTNAME;
|
||||
data['FROM_ROW_NUM'] = this.fROMROWNUM;
|
||||
data['NO_OF_ROWS'] = this.nOOFROWS;
|
||||
data['ROW_NUM'] = this.rOWNUM;
|
||||
data['TO_ROW_NUM'] = this.tOROWNUM;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
class GetPayslipList {
|
||||
int? aCTIONCONTEXTID;
|
||||
String? pAYMENTDATE;
|
||||
String? pAYSLIPCHOICE;
|
||||
String? pERIODENDDATE;
|
||||
String? pERIODNAME;
|
||||
String? pERIODSTARTDATE;
|
||||
|
||||
GetPayslipList(
|
||||
{this.aCTIONCONTEXTID,
|
||||
this.pAYMENTDATE,
|
||||
this.pAYSLIPCHOICE,
|
||||
this.pERIODENDDATE,
|
||||
this.pERIODNAME,
|
||||
this.pERIODSTARTDATE});
|
||||
|
||||
GetPayslipList.fromJson(Map<String, dynamic> json) {
|
||||
aCTIONCONTEXTID = json['ACTION_CONTEXT_ID'];
|
||||
pAYMENTDATE = json['PAYMENT_DATE'];
|
||||
pAYSLIPCHOICE = json['PAYSLIP_CHOICE'];
|
||||
pERIODENDDATE = json['PERIOD_END_DATE'];
|
||||
pERIODNAME = json['PERIOD_NAME'];
|
||||
pERIODSTARTDATE = json['PERIOD_START_DATE'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['ACTION_CONTEXT_ID'] = this.aCTIONCONTEXTID;
|
||||
data['PAYMENT_DATE'] = this.pAYMENTDATE;
|
||||
data['PAYSLIP_CHOICE'] = this.pAYSLIPCHOICE;
|
||||
data['PERIOD_END_DATE'] = this.pERIODENDDATE;
|
||||
data['PERIOD_NAME'] = this.pERIODNAME;
|
||||
data['PERIOD_START_DATE'] = this.pERIODSTARTDATE;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
class GetPaymentInformationList {
|
||||
String? aCCOUNTNUMBER;
|
||||
String? aMOUNT;
|
||||
String? bANKNAME;
|
||||
String? bRANCHNAME;
|
||||
String? pAYMENTMETHODNAME;
|
||||
|
||||
GetPaymentInformationList(
|
||||
{this.aCCOUNTNUMBER,
|
||||
this.aMOUNT,
|
||||
this.bANKNAME,
|
||||
this.bRANCHNAME,
|
||||
this.pAYMENTMETHODNAME});
|
||||
|
||||
GetPaymentInformationList.fromJson(Map<String, dynamic> json) {
|
||||
aCCOUNTNUMBER = json['ACCOUNT_NUMBER'];
|
||||
aMOUNT = json['AMOUNT'];
|
||||
bANKNAME = json['BANK_NAME'];
|
||||
bRANCHNAME = json['BRANCH_NAME'];
|
||||
pAYMENTMETHODNAME = json['PAYMENT_METHOD_NAME'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['ACCOUNT_NUMBER'] = this.aCCOUNTNUMBER;
|
||||
data['AMOUNT'] = this.aMOUNT;
|
||||
data['BANK_NAME'] = this.bANKNAME;
|
||||
data['BRANCH_NAME'] = this.bRANCHNAME;
|
||||
data['PAYMENT_METHOD_NAME'] = this.pAYMENTMETHODNAME;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
class GetSummaryOfPaymentList {
|
||||
int? tOTALDEDUCTIONSAMOUNT;
|
||||
int? tOTALDEDUCTIONSPERCENTAGE;
|
||||
int? tOTALEARNINGSAMOUNT;
|
||||
int? tOTALEARNINGSPERCENTAGE;
|
||||
int? tOTALPAYAMOUNT;
|
||||
int? tOTALPAYPERCENTAGE;
|
||||
|
||||
GetSummaryOfPaymentList(
|
||||
{this.tOTALDEDUCTIONSAMOUNT,
|
||||
this.tOTALDEDUCTIONSPERCENTAGE,
|
||||
this.tOTALEARNINGSAMOUNT,
|
||||
this.tOTALEARNINGSPERCENTAGE,
|
||||
this.tOTALPAYAMOUNT,
|
||||
this.tOTALPAYPERCENTAGE});
|
||||
|
||||
GetSummaryOfPaymentList.fromJson(Map<String, dynamic> json) {
|
||||
tOTALDEDUCTIONSAMOUNT = json['TOTAL_DEDUCTIONS_AMOUNT'];
|
||||
tOTALDEDUCTIONSPERCENTAGE = json['TOTAL_DEDUCTIONS_PERCENTAGE'];
|
||||
tOTALEARNINGSAMOUNT = json['TOTAL_EARNINGS_AMOUNT'];
|
||||
tOTALEARNINGSPERCENTAGE = json['TOTAL_EARNINGS_PERCENTAGE'];
|
||||
tOTALPAYAMOUNT = json['TOTAL_PAY_AMOUNT'];
|
||||
tOTALPAYPERCENTAGE = json['TOTAL_PAY_PERCENTAGE'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['TOTAL_DEDUCTIONS_AMOUNT'] = this.tOTALDEDUCTIONSAMOUNT;
|
||||
data['TOTAL_DEDUCTIONS_PERCENTAGE'] = this.tOTALDEDUCTIONSPERCENTAGE;
|
||||
data['TOTAL_EARNINGS_AMOUNT'] = this.tOTALEARNINGSAMOUNT;
|
||||
data['TOTAL_EARNINGS_PERCENTAGE'] = this.tOTALEARNINGSPERCENTAGE;
|
||||
data['TOTAL_PAY_AMOUNT'] = this.tOTALPAYAMOUNT;
|
||||
data['TOTAL_PAY_PERCENTAGE'] = this.tOTALPAYPERCENTAGE;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
class GetDepartmentSections {
|
||||
int? departmentId;
|
||||
String? departmentName;
|
||||
int? departmentSectionId;
|
||||
String? projectCode;
|
||||
int? projectId;
|
||||
String? projectName;
|
||||
int? sectionId;
|
||||
String? sectionName;
|
||||
|
||||
GetDepartmentSections(
|
||||
{this.departmentId,
|
||||
this.departmentName,
|
||||
this.departmentSectionId,
|
||||
this.projectCode,
|
||||
this.projectId,
|
||||
this.projectName,
|
||||
this.sectionId,
|
||||
this.sectionName});
|
||||
|
||||
GetDepartmentSections.fromJson(Map<String, dynamic> json) {
|
||||
departmentId = json['departmentId'];
|
||||
departmentName = json['departmentName'];
|
||||
departmentSectionId = json['departmentSectionId'];
|
||||
projectCode = json['projectCode'];
|
||||
projectId = json['projectId'];
|
||||
projectName = json['projectName'];
|
||||
sectionId = json['sectionId'];
|
||||
sectionName = json['sectionName'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['departmentId'] = this.departmentId;
|
||||
data['departmentName'] = this.departmentName;
|
||||
data['departmentSectionId'] = this.departmentSectionId;
|
||||
data['projectCode'] = this.projectCode;
|
||||
data['projectId'] = this.projectId;
|
||||
data['projectName'] = this.projectName;
|
||||
data['sectionId'] = this.sectionId;
|
||||
data['sectionName'] = this.sectionName;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
class GetProjectDepartments {
|
||||
int? departmentId;
|
||||
String? departmentName;
|
||||
String? projectCode;
|
||||
int? projectDepartmentId;
|
||||
String? projectName;
|
||||
|
||||
GetProjectDepartments(
|
||||
{this.departmentId,
|
||||
this.departmentName,
|
||||
this.projectCode,
|
||||
this.projectDepartmentId,
|
||||
this.projectName});
|
||||
|
||||
GetProjectDepartments.fromJson(Map<String, dynamic> json) {
|
||||
departmentId = json['departmentId'];
|
||||
departmentName = json['departmentName'];
|
||||
projectCode = json['projectCode'];
|
||||
projectDepartmentId = json['projectDepartmentId'];
|
||||
projectName = json['projectName'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['departmentId'] = this.departmentId;
|
||||
data['departmentName'] = this.departmentName;
|
||||
data['projectCode'] = this.projectCode;
|
||||
data['projectDepartmentId'] = this.projectDepartmentId;
|
||||
data['projectName'] = this.projectName;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
class GetMowadhafhiProjects {
|
||||
int? projectId;
|
||||
String? projectName;
|
||||
|
||||
GetMowadhafhiProjects({this.projectId, this.projectName});
|
||||
|
||||
GetMowadhafhiProjects.fromJson(Map<String, dynamic> json) {
|
||||
projectId = json['projectId'];
|
||||
projectName = json['projectName'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['projectId'] = this.projectId;
|
||||
data['projectName'] = this.projectName;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
class GetSectionTopics {
|
||||
int? departmentId;
|
||||
String? departmentName;
|
||||
String? projectCode;
|
||||
int? projectDepartmentId;
|
||||
int? projectId;
|
||||
String? projectName;
|
||||
int? sectionId;
|
||||
String? sectionName;
|
||||
int? sectionTopicId;
|
||||
int? tatInHours;
|
||||
int? topicId;
|
||||
String? topicName;
|
||||
|
||||
GetSectionTopics(
|
||||
{this.departmentId,
|
||||
this.departmentName,
|
||||
this.projectCode,
|
||||
this.projectDepartmentId,
|
||||
this.projectId,
|
||||
this.projectName,
|
||||
this.sectionId,
|
||||
this.sectionName,
|
||||
this.sectionTopicId,
|
||||
this.tatInHours,
|
||||
this.topicId,
|
||||
this.topicName});
|
||||
|
||||
GetSectionTopics.fromJson(Map<String, dynamic> json) {
|
||||
departmentId = json['departmentId'];
|
||||
departmentName = json['departmentName'];
|
||||
projectCode = json['projectCode'];
|
||||
projectDepartmentId = json['projectDepartmentId'];
|
||||
projectId = json['projectId'];
|
||||
projectName = json['projectName'];
|
||||
sectionId = json['sectionId'];
|
||||
sectionName = json['sectionName'];
|
||||
sectionTopicId = json['sectionTopicId'];
|
||||
tatInHours = json['tatInHours'];
|
||||
topicId = json['topicId'];
|
||||
topicName = json['topicName'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['departmentId'] = this.departmentId;
|
||||
data['departmentName'] = this.departmentName;
|
||||
data['projectCode'] = this.projectCode;
|
||||
data['projectDepartmentId'] = this.projectDepartmentId;
|
||||
data['projectId'] = this.projectId;
|
||||
data['projectName'] = this.projectName;
|
||||
data['sectionId'] = this.sectionId;
|
||||
data['sectionName'] = this.sectionName;
|
||||
data['sectionTopicId'] = this.sectionTopicId;
|
||||
data['tatInHours'] = this.tatInHours;
|
||||
data['topicId'] = this.topicId;
|
||||
data['topicName'] = this.topicName;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
class GetTicketDetailsByEmployee {
|
||||
String? closedBy;
|
||||
String? created;
|
||||
int? departmentId;
|
||||
String? departmentName;
|
||||
String? description;
|
||||
String? positionTitle;
|
||||
int? projectId;
|
||||
String? projectName;
|
||||
int? sectionId;
|
||||
String? sectionName;
|
||||
String? ticketId;
|
||||
String? ticketReferenceNo;
|
||||
String? ticketStatusInternalName;
|
||||
String? ticketStatusName;
|
||||
int? ticketTypeId;
|
||||
int? topicId;
|
||||
String? topicName;
|
||||
|
||||
GetTicketDetailsByEmployee(
|
||||
{this.closedBy,
|
||||
this.created,
|
||||
this.departmentId,
|
||||
this.departmentName,
|
||||
this.description,
|
||||
this.positionTitle,
|
||||
this.projectId,
|
||||
this.projectName,
|
||||
this.sectionId,
|
||||
this.sectionName,
|
||||
this.ticketId,
|
||||
this.ticketReferenceNo,
|
||||
this.ticketStatusInternalName,
|
||||
this.ticketStatusName,
|
||||
this.ticketTypeId,
|
||||
this.topicId,
|
||||
this.topicName});
|
||||
|
||||
GetTicketDetailsByEmployee.fromJson(Map<String, dynamic> json) {
|
||||
closedBy = json['closedBy'];
|
||||
created = json['created'];
|
||||
departmentId = json['departmentId'];
|
||||
departmentName = json['departmentName'];
|
||||
description = json['description'];
|
||||
positionTitle = json['positionTitle'];
|
||||
projectId = json['projectId'];
|
||||
projectName = json['projectName'];
|
||||
sectionId = json['sectionId'];
|
||||
sectionName = json['sectionName'];
|
||||
ticketId = json['ticketId'];
|
||||
ticketReferenceNo = json['ticketReferenceNo'];
|
||||
ticketStatusInternalName = json['ticketStatusInternalName'];
|
||||
ticketStatusName = json['ticketStatusName'];
|
||||
ticketTypeId = json['ticketTypeId'];
|
||||
topicId = json['topicId'];
|
||||
topicName = json['topicName'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['closedBy'] = this.closedBy;
|
||||
data['created'] = this.created;
|
||||
data['departmentId'] = this.departmentId;
|
||||
data['departmentName'] = this.departmentName;
|
||||
data['description'] = this.description;
|
||||
data['positionTitle'] = this.positionTitle;
|
||||
data['projectId'] = this.projectId;
|
||||
data['projectName'] = this.projectName;
|
||||
data['sectionId'] = this.sectionId;
|
||||
data['sectionName'] = this.sectionName;
|
||||
data['ticketId'] = this.ticketId;
|
||||
data['ticketReferenceNo'] = this.ticketReferenceNo;
|
||||
data['ticketStatusInternalName'] = this.ticketStatusInternalName;
|
||||
data['ticketStatusName'] = this.ticketStatusName;
|
||||
data['ticketTypeId'] = this.ticketTypeId;
|
||||
data['topicId'] = this.topicId;
|
||||
data['topicName'] = this.topicName;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
class GetTicketTransactions {
|
||||
String? actionBy;
|
||||
String? actionDate;
|
||||
String? comments;
|
||||
String? statusDisplayText;
|
||||
String? statusName;
|
||||
String? ticketId;
|
||||
int? ticketTransactionId;
|
||||
|
||||
GetTicketTransactions(
|
||||
{this.actionBy,
|
||||
this.actionDate,
|
||||
this.comments,
|
||||
this.statusDisplayText,
|
||||
this.statusName,
|
||||
this.ticketId,
|
||||
this.ticketTransactionId});
|
||||
|
||||
GetTicketTransactions.fromJson(Map<String, dynamic> json) {
|
||||
actionBy = json['actionBy'];
|
||||
actionDate = json['actionDate'];
|
||||
comments = json['comments'];
|
||||
statusDisplayText = json['statusDisplayText'];
|
||||
statusName = json['statusName'];
|
||||
ticketId = json['ticketId'];
|
||||
ticketTransactionId = json['ticketTransactionId'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['actionBy'] = this.actionBy;
|
||||
data['actionDate'] = this.actionDate;
|
||||
data['comments'] = this.comments;
|
||||
data['statusDisplayText'] = this.statusDisplayText;
|
||||
data['statusName'] = this.statusName;
|
||||
data['ticketId'] = this.ticketId;
|
||||
data['ticketTransactionId'] = this.ticketTransactionId;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
class GetTicketTypes {
|
||||
String? ticketIdPrefix;
|
||||
int? ticketTypeId;
|
||||
String? typeName;
|
||||
|
||||
GetTicketTypes({this.ticketIdPrefix, this.ticketTypeId, this.typeName});
|
||||
|
||||
GetTicketTypes.fromJson(Map<String, dynamic> json) {
|
||||
ticketIdPrefix = json['ticketIdPrefix'];
|
||||
ticketTypeId = json['ticketTypeId'];
|
||||
typeName = json['typeName'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['ticketIdPrefix'] = this.ticketIdPrefix;
|
||||
data['ticketTypeId'] = this.ticketTypeId;
|
||||
data['typeName'] = this.typeName;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,184 @@
|
||||
class GetTicketsByEmployeeList {
|
||||
dynamic agentRating;
|
||||
dynamic assignedSpecialist;
|
||||
String? assignedSpecialistName;
|
||||
String? assignedToSpecialistAt;
|
||||
int? channelId;
|
||||
String? channelName;
|
||||
String? closedBy;
|
||||
String? closedDate;
|
||||
String? created;
|
||||
int? departmentId;
|
||||
String? departmentName;
|
||||
String? description;
|
||||
String? employeeEmail;
|
||||
String? employeeName;
|
||||
int? employeeNumber;
|
||||
String? firstName;
|
||||
dynamic isActive;
|
||||
bool? isClosedDirectly;
|
||||
dynamic isEscalated;
|
||||
bool? isExceedTAT;
|
||||
String? lastName;
|
||||
String? mobileNumber;
|
||||
dynamic pageNo;
|
||||
dynamic pageSize;
|
||||
String? positionTitle;
|
||||
int? projectId;
|
||||
String? projectManager;
|
||||
String? projectName;
|
||||
String? providedSolution;
|
||||
int? sectionId;
|
||||
String? sectionName;
|
||||
dynamic serviceRating;
|
||||
String? specialistDeadline;
|
||||
String? ticketId;
|
||||
String? ticketReferenceNo;
|
||||
int? ticketStatusId;
|
||||
String? ticketStatusInternalName;
|
||||
String? ticketStatusName;
|
||||
int? ticketTypeId;
|
||||
String? ticketTypeName;
|
||||
int? topicId;
|
||||
String? topicName;
|
||||
int? totalItemsCount;
|
||||
|
||||
GetTicketsByEmployeeList(
|
||||
{this.agentRating,
|
||||
this.assignedSpecialist,
|
||||
this.assignedSpecialistName,
|
||||
this.assignedToSpecialistAt,
|
||||
this.channelId,
|
||||
this.channelName,
|
||||
this.closedBy,
|
||||
this.closedDate,
|
||||
this.created,
|
||||
this.departmentId,
|
||||
this.departmentName,
|
||||
this.description,
|
||||
this.employeeEmail,
|
||||
this.employeeName,
|
||||
this.employeeNumber,
|
||||
this.firstName,
|
||||
this.isActive,
|
||||
this.isClosedDirectly,
|
||||
this.isEscalated,
|
||||
this.isExceedTAT,
|
||||
this.lastName,
|
||||
this.mobileNumber,
|
||||
this.pageNo,
|
||||
this.pageSize,
|
||||
this.positionTitle,
|
||||
this.projectId,
|
||||
this.projectManager,
|
||||
this.projectName,
|
||||
this.providedSolution,
|
||||
this.sectionId,
|
||||
this.sectionName,
|
||||
this.serviceRating,
|
||||
this.specialistDeadline,
|
||||
this.ticketId,
|
||||
this.ticketReferenceNo,
|
||||
this.ticketStatusId,
|
||||
this.ticketStatusInternalName,
|
||||
this.ticketStatusName,
|
||||
this.ticketTypeId,
|
||||
this.ticketTypeName,
|
||||
this.topicId,
|
||||
this.topicName,
|
||||
this.totalItemsCount});
|
||||
|
||||
GetTicketsByEmployeeList.fromJson(Map<String, dynamic> json) {
|
||||
agentRating = json['agentRating'];
|
||||
assignedSpecialist = json['assignedSpecialist'];
|
||||
assignedSpecialistName = json['assignedSpecialistName'];
|
||||
assignedToSpecialistAt = json['assignedToSpecialistAt'];
|
||||
channelId = json['channelId'];
|
||||
channelName = json['channelName'];
|
||||
closedBy = json['closedBy'];
|
||||
closedDate = json['closedDate'];
|
||||
created = json['created'];
|
||||
departmentId = json['departmentId'];
|
||||
departmentName = json['departmentName'];
|
||||
description = json['description'];
|
||||
employeeEmail = json['employeeEmail'];
|
||||
employeeName = json['employeeName'];
|
||||
employeeNumber = json['employeeNumber'];
|
||||
firstName = json['firstName'];
|
||||
isActive = json['isActive'];
|
||||
isClosedDirectly = json['isClosedDirectly'];
|
||||
isEscalated = json['isEscalated'];
|
||||
isExceedTAT = json['isExceedTAT'];
|
||||
lastName = json['lastName'];
|
||||
mobileNumber = json['mobileNumber'];
|
||||
pageNo = json['pageNo'];
|
||||
pageSize = json['pageSize'];
|
||||
positionTitle = json['positionTitle'];
|
||||
projectId = json['projectId'];
|
||||
projectManager = json['projectManager'];
|
||||
projectName = json['projectName'];
|
||||
providedSolution = json['providedSolution'];
|
||||
sectionId = json['sectionId'];
|
||||
sectionName = json['sectionName'];
|
||||
serviceRating = json['serviceRating'];
|
||||
specialistDeadline = json['specialistDeadline'];
|
||||
ticketId = json['ticketId'];
|
||||
ticketReferenceNo = json['ticketReferenceNo'];
|
||||
ticketStatusId = json['ticketStatusId'];
|
||||
ticketStatusInternalName = json['ticketStatusInternalName'];
|
||||
ticketStatusName = json['ticketStatusName'];
|
||||
ticketTypeId = json['ticketTypeId'];
|
||||
ticketTypeName = json['ticketTypeName'];
|
||||
topicId = json['topicId'];
|
||||
topicName = json['topicName'];
|
||||
totalItemsCount = json['totalItemsCount'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['agentRating'] = agentRating;
|
||||
data['assignedSpecialist'] = assignedSpecialist;
|
||||
data['assignedSpecialistName'] = assignedSpecialistName;
|
||||
data['assignedToSpecialistAt'] = assignedToSpecialistAt;
|
||||
data['channelId'] = channelId;
|
||||
data['channelName'] = channelName;
|
||||
data['closedBy'] = closedBy;
|
||||
data['closedDate'] = closedDate;
|
||||
data['created'] = created;
|
||||
data['departmentId'] = departmentId;
|
||||
data['departmentName'] = departmentName;
|
||||
data['description'] = description;
|
||||
data['employeeEmail'] = employeeEmail;
|
||||
data['employeeName'] = employeeName;
|
||||
data['employeeNumber'] = employeeNumber;
|
||||
data['firstName'] = firstName;
|
||||
data['isActive'] = isActive;
|
||||
data['isClosedDirectly'] = isClosedDirectly;
|
||||
data['isEscalated'] = isEscalated;
|
||||
data['isExceedTAT'] = isExceedTAT;
|
||||
data['lastName'] = lastName;
|
||||
data['mobileNumber'] = mobileNumber;
|
||||
data['pageNo'] = pageNo;
|
||||
data['pageSize'] = pageSize;
|
||||
data['positionTitle'] = positionTitle;
|
||||
data['projectId'] = projectId;
|
||||
data['projectManager'] = projectManager;
|
||||
data['projectName'] = projectName;
|
||||
data['providedSolution'] = providedSolution;
|
||||
data['sectionId'] = sectionId;
|
||||
data['sectionName'] = sectionName;
|
||||
data['serviceRating'] = serviceRating;
|
||||
data['specialistDeadline'] = specialistDeadline;
|
||||
data['ticketId'] = ticketId;
|
||||
data['ticketReferenceNo'] = ticketReferenceNo;
|
||||
data['ticketStatusId'] = ticketStatusId;
|
||||
data['ticketStatusInternalName'] = ticketStatusInternalName;
|
||||
data['ticketStatusName'] = ticketStatusName;
|
||||
data['ticketTypeId'] = ticketTypeId;
|
||||
data['ticketTypeName'] = ticketTypeName;
|
||||
data['topicId'] = topicId;
|
||||
data['topicName'] = topicName;
|
||||
data['totalItemsCount'] = totalItemsCount;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
class MowadhafhiRequestAttachment {
|
||||
String? base64Data;
|
||||
String? fileName;
|
||||
String? contentType;
|
||||
|
||||
MowadhafhiRequestAttachment(
|
||||
{this.base64Data, this.fileName, this.contentType});
|
||||
|
||||
MowadhafhiRequestAttachment.fromJson(Map<String, dynamic> json) {
|
||||
base64Data = json['Base64Data'];
|
||||
fileName = json['FileName'];
|
||||
contentType = json['ContentType'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['Base64Data'] = this.base64Data;
|
||||
data['FileName'] = this.fileName;
|
||||
data['ContentType'] = this.contentType;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
class GetPendingTransactionsDetails {
|
||||
String? cREATIONDATE;
|
||||
int? fROMROWNUM;
|
||||
String? iTEMKEY;
|
||||
int? nOOFROWS;
|
||||
String? rEQUESTTYPE;
|
||||
int? rOWNUM;
|
||||
int? tOROWNUM;
|
||||
String? tRANSACTIONCREATEDFOR;
|
||||
int? tRANSACTIONID;
|
||||
String? tRANSACTIONINITIATOR;
|
||||
String? uSERFUNCTIONNAME;
|
||||
|
||||
GetPendingTransactionsDetails(
|
||||
{this.cREATIONDATE,
|
||||
this.fROMROWNUM,
|
||||
this.iTEMKEY,
|
||||
this.nOOFROWS,
|
||||
this.rEQUESTTYPE,
|
||||
this.rOWNUM,
|
||||
this.tOROWNUM,
|
||||
this.tRANSACTIONCREATEDFOR,
|
||||
this.tRANSACTIONID,
|
||||
this.tRANSACTIONINITIATOR,
|
||||
this.uSERFUNCTIONNAME});
|
||||
|
||||
GetPendingTransactionsDetails.fromJson(Map<String, dynamic> json) {
|
||||
cREATIONDATE = json['CREATION_DATE'];
|
||||
fROMROWNUM = json['FROM_ROW_NUM'];
|
||||
iTEMKEY = json['ITEM_KEY'];
|
||||
nOOFROWS = json['NO_OF_ROWS'];
|
||||
rEQUESTTYPE = json['REQUEST_TYPE'];
|
||||
rOWNUM = json['ROW_NUM'];
|
||||
tOROWNUM = json['TO_ROW_NUM'];
|
||||
tRANSACTIONCREATEDFOR = json['TRANSACTION_CREATED_FOR'];
|
||||
tRANSACTIONID = json['TRANSACTION_ID'];
|
||||
tRANSACTIONINITIATOR = json['TRANSACTION_INITIATOR'];
|
||||
uSERFUNCTIONNAME = json['USER_FUNCTION_NAME'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['CREATION_DATE'] = this.cREATIONDATE;
|
||||
data['FROM_ROW_NUM'] = this.fROMROWNUM;
|
||||
data['ITEM_KEY'] = this.iTEMKEY;
|
||||
data['NO_OF_ROWS'] = this.nOOFROWS;
|
||||
data['REQUEST_TYPE'] = this.rEQUESTTYPE;
|
||||
data['ROW_NUM'] = this.rOWNUM;
|
||||
data['TO_ROW_NUM'] = this.tOROWNUM;
|
||||
data['TRANSACTION_CREATED_FOR'] = this.tRANSACTIONCREATEDFOR;
|
||||
data['TRANSACTION_ID'] = this.tRANSACTIONID;
|
||||
data['TRANSACTION_INITIATOR'] = this.tRANSACTIONINITIATOR;
|
||||
data['USER_FUNCTION_NAME'] = this.uSERFUNCTIONNAME;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
class GetPendingTransactionsFunctions {
|
||||
int? fUNCTIONID;
|
||||
String? fUNCTIONNAME;
|
||||
String? fUNCTIONPROMPT;
|
||||
|
||||
GetPendingTransactionsFunctions(
|
||||
{this.fUNCTIONID, this.fUNCTIONNAME, this.fUNCTIONPROMPT});
|
||||
|
||||
GetPendingTransactionsFunctions.fromJson(Map<String, dynamic> json) {
|
||||
fUNCTIONID = json['FUNCTION_ID'];
|
||||
fUNCTIONNAME = json['FUNCTION_NAME'];
|
||||
fUNCTIONPROMPT = json['FUNCTION_PROMPT'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['FUNCTION_ID'] = this.fUNCTIONID;
|
||||
data['FUNCTION_NAME'] = this.fUNCTIONNAME;
|
||||
data['FUNCTION_PROMPT'] = this.fUNCTIONPROMPT;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
class StartEitApprovalProcess {
|
||||
String? pRETURNMSG;
|
||||
String? pRETURNSTATUS;
|
||||
|
||||
StartEitApprovalProcess({this.pRETURNMSG, this.pRETURNSTATUS});
|
||||
|
||||
StartEitApprovalProcess.fromJson(Map<String, dynamic> json) {
|
||||
pRETURNMSG = json['P_RETURN_MSG'];
|
||||
pRETURNSTATUS = json['P_RETURN_STATUS'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['P_RETURN_MSG'] = this.pRETURNMSG;
|
||||
data['P_RETURN_STATUS'] = this.pRETURNSTATUS;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
class SubmitEITTransactionList {
|
||||
String? pITEMKEY;
|
||||
String? pRETURNMSG;
|
||||
String? pRETURNSTATUS;
|
||||
int? pTRANSACTIONID;
|
||||
|
||||
SubmitEITTransactionList(
|
||||
{this.pITEMKEY,
|
||||
this.pRETURNMSG,
|
||||
this.pRETURNSTATUS,
|
||||
this.pTRANSACTIONID});
|
||||
|
||||
SubmitEITTransactionList.fromJson(Map<String, dynamic> json) {
|
||||
pITEMKEY = json['P_ITEM_KEY'];
|
||||
pRETURNMSG = json['P_RETURN_MSG'];
|
||||
pRETURNSTATUS = json['P_RETURN_STATUS'];
|
||||
pTRANSACTIONID = json['P_TRANSACTION_ID'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['P_ITEM_KEY'] = this.pITEMKEY;
|
||||
data['P_RETURN_MSG'] = this.pRETURNMSG;
|
||||
data['P_RETURN_STATUS'] = this.pRETURNSTATUS;
|
||||
data['P_TRANSACTION_ID'] = this.pTRANSACTIONID;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
class ValidateEITTransactionList {
|
||||
String? pRETURNMSG;
|
||||
String? pRETURNSTATUS;
|
||||
|
||||
ValidateEITTransactionList({this.pRETURNMSG, this.pRETURNSTATUS});
|
||||
|
||||
ValidateEITTransactionList.fromJson(Map<String, dynamic> json) {
|
||||
pRETURNMSG = json['P_RETURN_MSG'];
|
||||
pRETURNSTATUS = json['P_RETURN_STATUS'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['P_RETURN_MSG'] = this.pRETURNMSG;
|
||||
data['P_RETURN_STATUS'] = this.pRETURNSTATUS;
|
||||
return data;
|
||||
}
|
||||
}
|