wokrlist api's added & improvements
							parent
							
								
									83b26c1f77
								
							
						
					
					
						commit
						384aa8d9b4
					
				| @ -0,0 +1,97 @@ | ||||
| 
 | ||||
| class GetAbsenceCollectionNotificationBodyList { | ||||
|   List<CollectionNotification>? collectionNotification; | ||||
| 
 | ||||
|   GetAbsenceCollectionNotificationBodyList({this.collectionNotification}); | ||||
| 
 | ||||
|   GetAbsenceCollectionNotificationBodyList.fromJson(Map<String, dynamic> json) { | ||||
|     if (json['Collection_Notification'] != null) { | ||||
|       collectionNotification = <CollectionNotification>[]; | ||||
|       json['Collection_Notification'].forEach((v) { | ||||
|         collectionNotification!.add(new CollectionNotification.fromJson(v)); | ||||
|       }); | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   Map<String, dynamic> toJson() { | ||||
|     final Map<String, dynamic> data = new Map<String, dynamic>(); | ||||
|     if (this.collectionNotification != null) { | ||||
|       data['Collection_Notification'] = | ||||
|           this.collectionNotification!.map((v) => v.toJson()).toList(); | ||||
|     } | ||||
|     return data; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| class CollectionNotification { | ||||
|   String? aCTION; | ||||
|   String? aPPLICATIONCOLUMNNAME; | ||||
|   String? dATATYPE; | ||||
|   String? dATEVALUE; | ||||
|   String? dESCFLEXCONTEXTCODE; | ||||
|   String? dESCFLEXNAME; | ||||
|   String? dISPLAYFLAG; | ||||
|   int? nUMBERVALUE; | ||||
|   String? pREVSEGMENTVALUEDSP; | ||||
|   String? sEGMENTNAME; | ||||
|   String? sEGMENTPROMPT; | ||||
|   int? sEGMENTSEQNUM; | ||||
|   String? sEGMENTVALUEDSP; | ||||
|   int? tRANSACTIONNUMBER; | ||||
|   String? vARCHAR2VALUE; | ||||
| 
 | ||||
|   CollectionNotification( | ||||
|       {this.aCTION, | ||||
|         this.aPPLICATIONCOLUMNNAME, | ||||
|         this.dATATYPE, | ||||
|         this.dATEVALUE, | ||||
|         this.dESCFLEXCONTEXTCODE, | ||||
|         this.dESCFLEXNAME, | ||||
|         this.dISPLAYFLAG, | ||||
|         this.nUMBERVALUE, | ||||
|         this.pREVSEGMENTVALUEDSP, | ||||
|         this.sEGMENTNAME, | ||||
|         this.sEGMENTPROMPT, | ||||
|         this.sEGMENTSEQNUM, | ||||
|         this.sEGMENTVALUEDSP, | ||||
|         this.tRANSACTIONNUMBER, | ||||
|         this.vARCHAR2VALUE}); | ||||
| 
 | ||||
|   CollectionNotification.fromJson(Map<String, dynamic> json) { | ||||
|     aCTION = json['ACTION']; | ||||
|     aPPLICATIONCOLUMNNAME = json['APPLICATION_COLUMN_NAME']; | ||||
|     dATATYPE = json['DATATYPE']; | ||||
|     dATEVALUE = json['DATE_VALUE']; | ||||
|     dESCFLEXCONTEXTCODE = json['DESC_FLEX_CONTEXT_CODE']; | ||||
|     dESCFLEXNAME = json['DESC_FLEX_NAME']; | ||||
|     dISPLAYFLAG = json['DISPLAY_FLAG']; | ||||
|     nUMBERVALUE = json['NUMBER_VALUE']; | ||||
|     pREVSEGMENTVALUEDSP = json['PREV_SEGMENT_VALUE_DSP']; | ||||
|     sEGMENTNAME = json['SEGMENT_NAME']; | ||||
|     sEGMENTPROMPT = json['SEGMENT_PROMPT']; | ||||
|     sEGMENTSEQNUM = json['SEGMENT_SEQ_NUM']; | ||||
|     sEGMENTVALUEDSP = json['SEGMENT_VALUE_DSP']; | ||||
|     tRANSACTIONNUMBER = json['TRANSACTION_NUMBER']; | ||||
|     vARCHAR2VALUE = json['VARCHAR2_VALUE']; | ||||
|   } | ||||
| 
 | ||||
|   Map<String, dynamic> toJson() { | ||||
|     final Map<String, dynamic> data = new Map<String, dynamic>(); | ||||
|     data['ACTION'] = this.aCTION; | ||||
|     data['APPLICATION_COLUMN_NAME'] = this.aPPLICATIONCOLUMNNAME; | ||||
|     data['DATATYPE'] = this.dATATYPE; | ||||
|     data['DATE_VALUE'] = this.dATEVALUE; | ||||
|     data['DESC_FLEX_CONTEXT_CODE'] = this.dESCFLEXCONTEXTCODE; | ||||
|     data['DESC_FLEX_NAME'] = this.dESCFLEXNAME; | ||||
|     data['DISPLAY_FLAG'] = this.dISPLAYFLAG; | ||||
|     data['NUMBER_VALUE'] = this.nUMBERVALUE; | ||||
|     data['PREV_SEGMENT_VALUE_DSP'] = this.pREVSEGMENTVALUEDSP; | ||||
|     data['SEGMENT_NAME'] = this.sEGMENTNAME; | ||||
|     data['SEGMENT_PROMPT'] = this.sEGMENTPROMPT; | ||||
|     data['SEGMENT_SEQ_NUM'] = this.sEGMENTSEQNUM; | ||||
|     data['SEGMENT_VALUE_DSP'] = this.sEGMENTVALUEDSP; | ||||
|     data['TRANSACTION_NUMBER'] = this.tRANSACTIONNUMBER; | ||||
|     data['VARCHAR2_VALUE'] = this.vARCHAR2VALUE; | ||||
|     return data; | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,76 @@ | ||||
| class GetActionHistoryList { | ||||
|   String? aCTION; | ||||
|   String? aCTIONCODE; | ||||
|   String? eMAILADDRESS; | ||||
|   String? eMPLOYEEIMAGE; | ||||
|   int? fROMROWNUM; | ||||
|   bool? isFavorite; | ||||
|   String? nAME; | ||||
|   String? nOTE; | ||||
|   String? nOTIFICATIONDATE; | ||||
|   int? nOTIFICATIONID; | ||||
|   int? nOOFROWS; | ||||
|   String? pOSITIONTITLE; | ||||
|   int? rOWNUM; | ||||
|   int? sEQUENCE; | ||||
|   int? tOROWNUM; | ||||
|   String? uSERNAME; | ||||
| 
 | ||||
|   GetActionHistoryList( | ||||
|       {this.aCTION, | ||||
|         this.aCTIONCODE, | ||||
|         this.eMAILADDRESS, | ||||
|         this.eMPLOYEEIMAGE, | ||||
|         this.fROMROWNUM, | ||||
|         this.isFavorite, | ||||
|         this.nAME, | ||||
|         this.nOTE, | ||||
|         this.nOTIFICATIONDATE, | ||||
|         this.nOTIFICATIONID, | ||||
|         this.nOOFROWS, | ||||
|         this.pOSITIONTITLE, | ||||
|         this.rOWNUM, | ||||
|         this.sEQUENCE, | ||||
|         this.tOROWNUM, | ||||
|         this.uSERNAME}); | ||||
| 
 | ||||
|   GetActionHistoryList.fromJson(Map<String, dynamic> json) { | ||||
|     aCTION = json['ACTION']; | ||||
|     aCTIONCODE = json['ACTION_CODE']; | ||||
|     eMAILADDRESS = json['EMAIL_ADDRESS']; | ||||
|     eMPLOYEEIMAGE = json['EMPLOYEE_IMAGE']; | ||||
|     fROMROWNUM = json['FROM_ROW_NUM']; | ||||
|     isFavorite = json['IsFavorite']; | ||||
|     nAME = json['NAME']; | ||||
|     nOTE = json['NOTE']; | ||||
|     nOTIFICATIONDATE = json['NOTIFICATION_DATE']; | ||||
|     nOTIFICATIONID = json['NOTIFICATION_ID']; | ||||
|     nOOFROWS = json['NO_OF_ROWS']; | ||||
|     pOSITIONTITLE = json['POSITION_TITLE']; | ||||
|     rOWNUM = json['ROW_NUM']; | ||||
|     sEQUENCE = json['SEQUENCE']; | ||||
|     tOROWNUM = json['TO_ROW_NUM']; | ||||
|     uSERNAME = json['USER_NAME']; | ||||
|   } | ||||
| 
 | ||||
|   Map<String, dynamic> toJson() { | ||||
|     final Map<String, dynamic> data = new Map<String, dynamic>(); | ||||
|     data['ACTION'] = this.aCTION; | ||||
|     data['ACTION_CODE'] = this.aCTIONCODE; | ||||
|     data['EMAIL_ADDRESS'] = this.eMAILADDRESS; | ||||
|     data['EMPLOYEE_IMAGE'] = this.eMPLOYEEIMAGE; | ||||
|     data['FROM_ROW_NUM'] = this.fROMROWNUM; | ||||
|     data['IsFavorite'] = this.isFavorite; | ||||
|     data['NAME'] = this.nAME; | ||||
|     data['NOTE'] = this.nOTE; | ||||
|     data['NOTIFICATION_DATE'] = this.nOTIFICATIONDATE; | ||||
|     data['NOTIFICATION_ID'] = this.nOTIFICATIONID; | ||||
|     data['NO_OF_ROWS'] = this.nOOFROWS; | ||||
|     data['POSITION_TITLE'] = this.pOSITIONTITLE; | ||||
|     data['ROW_NUM'] = this.rOWNUM; | ||||
|     data['SEQUENCE'] = this.sEQUENCE; | ||||
|     data['TO_ROW_NUM'] = this.tOROWNUM; | ||||
|     data['USER_NAME'] = this.uSERNAME; | ||||
|     return data; | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,24 @@ | ||||
| class GetBasicDetNtfBodyList { | ||||
|   String? prevSegmentValueDsp; | ||||
|   String? segmentPrompt; | ||||
|   String? segmentValueDsp; | ||||
|   String? updatedFlag; | ||||
| 
 | ||||
|   GetBasicDetNtfBodyList({this.prevSegmentValueDsp, this.segmentPrompt, this.segmentValueDsp, this.updatedFlag}); | ||||
| 
 | ||||
|   GetBasicDetNtfBodyList.fromJson(Map<String, dynamic> json) { | ||||
|     prevSegmentValueDsp = json['PREV_SEGMENT_VALUE_DSP']; | ||||
|     segmentPrompt = json['SEGMENT_PROMPT']; | ||||
|     segmentValueDsp = json['SEGMENT_VALUE_DSP']; | ||||
|     updatedFlag = json['UPDATED_FLAG']; | ||||
|   } | ||||
| 
 | ||||
|   Map<String, dynamic> toJson() { | ||||
|     final Map<String, dynamic> data = new Map<String, dynamic>(); | ||||
|     data['PREV_SEGMENT_VALUE_DSP'] = this.prevSegmentValueDsp; | ||||
|     data['SEGMENT_PROMPT'] = this.segmentPrompt; | ||||
|     data['SEGMENT_VALUE_DSP'] = this.segmentValueDsp; | ||||
|     data['UPDATED_FLAG'] = this.updatedFlag; | ||||
|     return data; | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,104 @@ | ||||
| class GetMoNotificationBodyList { | ||||
|   String? dATEREQUIRED; | ||||
|   String? dESCRIPTION; | ||||
|   String? fROMLOCATOR; | ||||
|   int? fROMROWNUM; | ||||
|   String? fROMSUBINVENTORY; | ||||
|   String? iTEMCODE; | ||||
|   int? iTEMID; | ||||
|   int? lINENUMBER; | ||||
|   String? lINESTATUS; | ||||
|   int? nOOFROWS; | ||||
|   String? oPERATINGUNIT; | ||||
|   String? oRGANIZATIONCODE; | ||||
|   String? oRGANIZATIONNAME; | ||||
|   int? oRGID; | ||||
|   int? qUANTITY; | ||||
|   int? rOWNUM; | ||||
|   String? sHIPTOLOCATION; | ||||
|   String? sTATUSDATE; | ||||
|   String? tOLOCATOR; | ||||
|   int? tOROWNUM; | ||||
|   String? tOSUBINVENTORY; | ||||
|   String? tRANSACTIONTYPENAME; | ||||
|   String? uOM; | ||||
| 
 | ||||
|   GetMoNotificationBodyList( | ||||
|       {this.dATEREQUIRED, | ||||
|         this.dESCRIPTION, | ||||
|         this.fROMLOCATOR, | ||||
|         this.fROMROWNUM, | ||||
|         this.fROMSUBINVENTORY, | ||||
|         this.iTEMCODE, | ||||
|         this.iTEMID, | ||||
|         this.lINENUMBER, | ||||
|         this.lINESTATUS, | ||||
|         this.nOOFROWS, | ||||
|         this.oPERATINGUNIT, | ||||
|         this.oRGANIZATIONCODE, | ||||
|         this.oRGANIZATIONNAME, | ||||
|         this.oRGID, | ||||
|         this.qUANTITY, | ||||
|         this.rOWNUM, | ||||
|         this.sHIPTOLOCATION, | ||||
|         this.sTATUSDATE, | ||||
|         this.tOLOCATOR, | ||||
|         this.tOROWNUM, | ||||
|         this.tOSUBINVENTORY, | ||||
|         this.tRANSACTIONTYPENAME, | ||||
|         this.uOM}); | ||||
| 
 | ||||
|   GetMoNotificationBodyList.fromJson(Map<String, dynamic> json) { | ||||
|     dATEREQUIRED = json['DATE_REQUIRED']; | ||||
|     dESCRIPTION = json['DESCRIPTION']; | ||||
|     fROMLOCATOR = json['FROM_LOCATOR']; | ||||
|     fROMROWNUM = json['FROM_ROW_NUM']; | ||||
|     fROMSUBINVENTORY = json['FROM_SUBINVENTORY']; | ||||
|     iTEMCODE = json['ITEM_CODE']; | ||||
|     iTEMID = json['ITEM_ID']; | ||||
|     lINENUMBER = json['LINE_NUMBER']; | ||||
|     lINESTATUS = json['LINE_STATUS']; | ||||
|     nOOFROWS = json['NO_OF_ROWS']; | ||||
|     oPERATINGUNIT = json['OPERATING_UNIT']; | ||||
|     oRGANIZATIONCODE = json['ORGANIZATION_CODE']; | ||||
|     oRGANIZATIONNAME = json['ORGANIZATION_NAME']; | ||||
|     oRGID = json['ORG_ID']; | ||||
|     qUANTITY = json['QUANTITY']; | ||||
|     rOWNUM = json['ROW_NUM']; | ||||
|     sHIPTOLOCATION = json['SHIP_TO_LOCATION']; | ||||
|     sTATUSDATE = json['STATUS_DATE']; | ||||
|     tOLOCATOR = json['TO_LOCATOR']; | ||||
|     tOROWNUM = json['TO_ROW_NUM']; | ||||
|     tOSUBINVENTORY = json['TO_SUBINVENTORY']; | ||||
|     tRANSACTIONTYPENAME = json['TRANSACTION_TYPE_NAME']; | ||||
|     uOM = json['UOM']; | ||||
|   } | ||||
| 
 | ||||
|   Map<String, dynamic> toJson() { | ||||
|     final Map<String, dynamic> data = new Map<String, dynamic>(); | ||||
|     data['DATE_REQUIRED'] = this.dATEREQUIRED; | ||||
|     data['DESCRIPTION'] = this.dESCRIPTION; | ||||
|     data['FROM_LOCATOR'] = this.fROMLOCATOR; | ||||
|     data['FROM_ROW_NUM'] = this.fROMROWNUM; | ||||
|     data['FROM_SUBINVENTORY'] = this.fROMSUBINVENTORY; | ||||
|     data['ITEM_CODE'] = this.iTEMCODE; | ||||
|     data['ITEM_ID'] = this.iTEMID; | ||||
|     data['LINE_NUMBER'] = this.lINENUMBER; | ||||
|     data['LINE_STATUS'] = this.lINESTATUS; | ||||
|     data['NO_OF_ROWS'] = this.nOOFROWS; | ||||
|     data['OPERATING_UNIT'] = this.oPERATINGUNIT; | ||||
|     data['ORGANIZATION_CODE'] = this.oRGANIZATIONCODE; | ||||
|     data['ORGANIZATION_NAME'] = this.oRGANIZATIONNAME; | ||||
|     data['ORG_ID'] = this.oRGID; | ||||
|     data['QUANTITY'] = this.qUANTITY; | ||||
|     data['ROW_NUM'] = this.rOWNUM; | ||||
|     data['SHIP_TO_LOCATION'] = this.sHIPTOLOCATION; | ||||
|     data['STATUS_DATE'] = this.sTATUSDATE; | ||||
|     data['TO_LOCATOR'] = this.tOLOCATOR; | ||||
|     data['TO_ROW_NUM'] = this.tOROWNUM; | ||||
|     data['TO_SUBINVENTORY'] = this.tOSUBINVENTORY; | ||||
|     data['TRANSACTION_TYPE_NAME'] = this.tRANSACTIONTYPENAME; | ||||
|     data['UOM'] = this.uOM; | ||||
|     return data; | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,25 @@ | ||||
| class GetNotificationButtonsList { | ||||
|   String? bUTTONACTION; | ||||
|   String? bUTTONICON; | ||||
|   String? bUTTONLABEL; | ||||
|   int? bUTTONSEQ; | ||||
| 
 | ||||
|   GetNotificationButtonsList( | ||||
|       {this.bUTTONACTION, this.bUTTONICON, this.bUTTONLABEL, this.bUTTONSEQ}); | ||||
| 
 | ||||
|   GetNotificationButtonsList.fromJson(Map<String, dynamic> json) { | ||||
|     bUTTONACTION = json['BUTTON_ACTION']; | ||||
|     bUTTONICON = json['BUTTON_ICON']; | ||||
|     bUTTONLABEL = json['BUTTON_LABEL']; | ||||
|     bUTTONSEQ = json['BUTTON_SEQ']; | ||||
|   } | ||||
| 
 | ||||
|   Map<String, dynamic> toJson() { | ||||
|     final Map<String, dynamic> data = new Map<String, dynamic>(); | ||||
|     data['BUTTON_ACTION'] = this.bUTTONACTION; | ||||
|     data['BUTTON_ICON'] = this.bUTTONICON; | ||||
|     data['BUTTON_LABEL'] = this.bUTTONLABEL; | ||||
|     data['BUTTON_SEQ'] = this.bUTTONSEQ; | ||||
|     return data; | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,132 @@ | ||||
| class GetStampMsNotificationBodyList { | ||||
|   int? aCTUALWOBHRS; | ||||
|   int? aCTUALWOBSEC; | ||||
|   String? aPPROVEDENDREASONDESC; | ||||
|   String? aPPROVEDSTARTDATETIME; | ||||
|   String? aPPROVEDSTARTREASON; | ||||
|   String? aPPROVEDSTARTTIME; | ||||
|   int? aSSIGNMENTID; | ||||
|   int? aSSIGNMENTNUMBER; | ||||
|   String? bREAKNAME; | ||||
|   String? bUSINESSGROUPID; | ||||
|   String? eMPLOYEENAME; | ||||
|   int? eMPLOYEENUMBER; | ||||
|   String? eMPLOYMENTCATEGORY; | ||||
|   int? pAYROLLID; | ||||
|   String? pAYROLLNAME; | ||||
|   String? sCHEDULEDATE; | ||||
|   int? sEQNO; | ||||
|   String? sHTACTUALENDDATETIME; | ||||
|   String? sHTACTUALENDTIME; | ||||
|   String? sHTACTUALHRS; | ||||
|   int? sHTACTUALSEC; | ||||
|   String? sHTACTUALSTARTDATETIME; | ||||
|   String? sHTACTUALSTARTTIME; | ||||
|   String? sHTCODE; | ||||
|   int? sHTID; | ||||
|   String? sHTNAME; | ||||
|   String? sHTTYPE; | ||||
|   String? sHTTYPEDESC; | ||||
|   int? sUPERVISORID; | ||||
|   int? tKPERSONID; | ||||
| 
 | ||||
|   GetStampMsNotificationBodyList( | ||||
|       {this.aCTUALWOBHRS, | ||||
|       this.aCTUALWOBSEC, | ||||
|       this.aPPROVEDENDREASONDESC, | ||||
|       this.aPPROVEDSTARTDATETIME, | ||||
|       this.aPPROVEDSTARTREASON, | ||||
|       this.aPPROVEDSTARTTIME, | ||||
|       this.aSSIGNMENTID, | ||||
|       this.aSSIGNMENTNUMBER, | ||||
|       this.bREAKNAME, | ||||
|       this.bUSINESSGROUPID, | ||||
|       this.eMPLOYEENAME, | ||||
|       this.eMPLOYEENUMBER, | ||||
|       this.eMPLOYMENTCATEGORY, | ||||
|       this.pAYROLLID, | ||||
|       this.pAYROLLNAME, | ||||
|       this.sCHEDULEDATE, | ||||
|       this.sEQNO, | ||||
|       this.sHTACTUALENDDATETIME, | ||||
|       this.sHTACTUALENDTIME, | ||||
|       this.sHTACTUALHRS, | ||||
|       this.sHTACTUALSEC, | ||||
|       this.sHTACTUALSTARTDATETIME, | ||||
|       this.sHTACTUALSTARTTIME, | ||||
|       this.sHTCODE, | ||||
|       this.sHTID, | ||||
|       this.sHTNAME, | ||||
|       this.sHTTYPE, | ||||
|       this.sHTTYPEDESC, | ||||
|       this.sUPERVISORID, | ||||
|       this.tKPERSONID}); | ||||
| 
 | ||||
|   GetStampMsNotificationBodyList.fromJson(Map<String, dynamic> json) { | ||||
|     aCTUALWOBHRS = json['ACTUAL_WOB_HRS']; | ||||
|     aCTUALWOBSEC = json['ACTUAL_WOB_SEC']; | ||||
|     aPPROVEDENDREASONDESC = json['APPROVED_END_REASON_DESC']; | ||||
|     aPPROVEDSTARTDATETIME = json['APPROVED_START_DATETIME']; | ||||
|     aPPROVEDSTARTREASON = json['APPROVED_START_REASON']; | ||||
|     aPPROVEDSTARTTIME = json['APPROVED_START_TIME']; | ||||
|     aSSIGNMENTID = json['ASSIGNMENT_ID']; | ||||
|     aSSIGNMENTNUMBER = json['ASSIGNMENT_NUMBER']; | ||||
|     bREAKNAME = json['BREAK_NAME']; | ||||
|     bUSINESSGROUPID = json['BUSINESS_GROUP_ID']; | ||||
|     eMPLOYEENAME = json['EMPLOYEE_NAME']; | ||||
|     eMPLOYEENUMBER = json['EMPLOYEE_NUMBER']; | ||||
|     eMPLOYMENTCATEGORY = json['EMPLOYMENT_CATEGORY']; | ||||
|     pAYROLLID = json['PAYROLL_ID']; | ||||
|     pAYROLLNAME = json['PAYROLL_NAME']; | ||||
|     sCHEDULEDATE = json['SCHEDULE_DATE']; | ||||
|     sEQNO = json['SEQ_NO']; | ||||
|     sHTACTUALENDDATETIME = json['SHT_ACTUAL_END_DATETIME']; | ||||
|     sHTACTUALENDTIME = json['SHT_ACTUAL_END_TIME']; | ||||
|     sHTACTUALHRS = json['SHT_ACTUAL_HRS']; | ||||
|     sHTACTUALSEC = json['SHT_ACTUAL_SEC']; | ||||
|     sHTACTUALSTARTDATETIME = json['SHT_ACTUAL_START_DATETIME']; | ||||
|     sHTACTUALSTARTTIME = json['SHT_ACTUAL_START_TIME']; | ||||
|     sHTCODE = json['SHT_CODE']; | ||||
|     sHTID = json['SHT_ID']; | ||||
|     sHTNAME = json['SHT_NAME']; | ||||
|     sHTTYPE = json['SHT_TYPE']; | ||||
|     sHTTYPEDESC = json['SHT_TYPE_DESC']; | ||||
|     sUPERVISORID = json['SUPERVISOR_ID']; | ||||
|     tKPERSONID = json['TK_PERSON_ID']; | ||||
|   } | ||||
| 
 | ||||
|   Map<String, dynamic> toJson() { | ||||
|     final Map<String, dynamic> data = new Map<String, dynamic>(); | ||||
|     data['ACTUAL_WOB_HRS'] = this.aCTUALWOBHRS; | ||||
|     data['ACTUAL_WOB_SEC'] = this.aCTUALWOBSEC; | ||||
|     data['APPROVED_END_REASON_DESC'] = this.aPPROVEDENDREASONDESC; | ||||
|     data['APPROVED_START_DATETIME'] = this.aPPROVEDSTARTDATETIME; | ||||
|     data['APPROVED_START_REASON'] = this.aPPROVEDSTARTREASON; | ||||
|     data['APPROVED_START_TIME'] = this.aPPROVEDSTARTTIME; | ||||
|     data['ASSIGNMENT_ID'] = this.aSSIGNMENTID; | ||||
|     data['ASSIGNMENT_NUMBER'] = this.aSSIGNMENTNUMBER; | ||||
|     data['BREAK_NAME'] = this.bREAKNAME; | ||||
|     data['BUSINESS_GROUP_ID'] = this.bUSINESSGROUPID; | ||||
|     data['EMPLOYEE_NAME'] = this.eMPLOYEENAME; | ||||
|     data['EMPLOYEE_NUMBER'] = this.eMPLOYEENUMBER; | ||||
|     data['EMPLOYMENT_CATEGORY'] = this.eMPLOYMENTCATEGORY; | ||||
|     data['PAYROLL_ID'] = this.pAYROLLID; | ||||
|     data['PAYROLL_NAME'] = this.pAYROLLNAME; | ||||
|     data['SCHEDULE_DATE'] = this.sCHEDULEDATE; | ||||
|     data['SEQ_NO'] = this.sEQNO; | ||||
|     data['SHT_ACTUAL_END_DATETIME'] = this.sHTACTUALENDDATETIME; | ||||
|     data['SHT_ACTUAL_END_TIME'] = this.sHTACTUALENDTIME; | ||||
|     data['SHT_ACTUAL_HRS'] = this.sHTACTUALHRS; | ||||
|     data['SHT_ACTUAL_SEC'] = this.sHTACTUALSEC; | ||||
|     data['SHT_ACTUAL_START_DATETIME'] = this.sHTACTUALSTARTDATETIME; | ||||
|     data['SHT_ACTUAL_START_TIME'] = this.sHTACTUALSTARTTIME; | ||||
|     data['SHT_CODE'] = this.sHTCODE; | ||||
|     data['SHT_ID'] = this.sHTID; | ||||
|     data['SHT_NAME'] = this.sHTNAME; | ||||
|     data['SHT_TYPE'] = this.sHTTYPE; | ||||
|     data['SHT_TYPE_DESC'] = this.sHTTYPEDESC; | ||||
|     data['SUPERVISOR_ID'] = this.sUPERVISORID; | ||||
|     data['TK_PERSON_ID'] = this.tKPERSONID; | ||||
|     return data; | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,24 @@ | ||||
| class NotificationGetRespondAttributesList { | ||||
|   String? attributeDisplayName; | ||||
|   String? attributeFormat; | ||||
|   String? attributeName; | ||||
|   String? attributeType; | ||||
| 
 | ||||
|   NotificationGetRespondAttributesList({this.attributeDisplayName, this.attributeFormat, this.attributeName, this.attributeType}); | ||||
| 
 | ||||
|   NotificationGetRespondAttributesList.fromJson(Map<String, dynamic> json) { | ||||
|     attributeDisplayName = json['ATTRIBUTE_DISPLAY_NAME']; | ||||
|     attributeFormat = json['ATTRIBUTE_FORMAT']; | ||||
|     attributeName = json['ATTRIBUTE_NAME']; | ||||
|     attributeType = json['ATTRIBUTE_TYPE']; | ||||
|   } | ||||
| 
 | ||||
|   Map<String, dynamic> toJson() { | ||||
|     final Map<String, dynamic> data = <String, dynamic>{}; | ||||
|     data['ATTRIBUTE_DISPLAY_NAME'] = attributeDisplayName; | ||||
|     data['ATTRIBUTE_FORMAT'] = attributeFormat; | ||||
|     data['ATTRIBUTE_NAME'] = attributeName; | ||||
|     data['ATTRIBUTE_TYPE'] = attributeType; | ||||
|     return data; | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,68 @@ | ||||
| class SubordinatesLeavesList { | ||||
|   String? aBSENCEATTENDANCETYPENAME; | ||||
|   String? cALENDARENTRYDESC; | ||||
|   String? dATEEND; | ||||
|   String? dATESTART; | ||||
|   String? eMPLOYEEIMAGE; | ||||
|   String? eMPLOYEENAME; | ||||
|   String? eMPLOYEENUMBER; | ||||
|   String? eVENTDATE; | ||||
|   String? lEAVETYPE; | ||||
|   int? oRGANIZATIONID; | ||||
|   String? oRGANIZATIONNAME; | ||||
|   String? pOSITIONTITLE; | ||||
|   String? rEPLACEMENTNAME; | ||||
|   String? sTATUS; | ||||
| 
 | ||||
|   SubordinatesLeavesList( | ||||
|       {this.aBSENCEATTENDANCETYPENAME, | ||||
|       this.cALENDARENTRYDESC, | ||||
|       this.dATEEND, | ||||
|       this.dATESTART, | ||||
|       this.eMPLOYEEIMAGE, | ||||
|       this.eMPLOYEENAME, | ||||
|       this.eMPLOYEENUMBER, | ||||
|       this.eVENTDATE, | ||||
|       this.lEAVETYPE, | ||||
|       this.oRGANIZATIONID, | ||||
|       this.oRGANIZATIONNAME, | ||||
|       this.pOSITIONTITLE, | ||||
|       this.rEPLACEMENTNAME, | ||||
|       this.sTATUS}); | ||||
| 
 | ||||
|   SubordinatesLeavesList.fromJson(Map<String, dynamic> json) { | ||||
|     aBSENCEATTENDANCETYPENAME = json['ABSENCE_ATTENDANCE_TYPE_NAME']; | ||||
|     cALENDARENTRYDESC = json['CALENDAR_ENTRY_DESC']; | ||||
|     dATEEND = json['DATE_END']; | ||||
|     dATESTART = json['DATE_START']; | ||||
|     eMPLOYEEIMAGE = json['EMPLOYEE_IMAGE']; | ||||
|     eMPLOYEENAME = json['EMPLOYEE_NAME']; | ||||
|     eMPLOYEENUMBER = json['EMPLOYEE_NUMBER']; | ||||
|     eVENTDATE = json['EVENT_DATE']; | ||||
|     lEAVETYPE = json['LEAVE_TYPE']; | ||||
|     oRGANIZATIONID = json['ORGANIZATION_ID']; | ||||
|     oRGANIZATIONNAME = json['ORGANIZATION_NAME']; | ||||
|     pOSITIONTITLE = json['POSITION_TITLE']; | ||||
|     rEPLACEMENTNAME = json['REPLACEMENT_NAME']; | ||||
|     sTATUS = json['STATUS']; | ||||
|   } | ||||
| 
 | ||||
|   Map<String, dynamic> toJson() { | ||||
|     final Map<String, dynamic> data = new Map<String, dynamic>(); | ||||
|     data['ABSENCE_ATTENDANCE_TYPE_NAME'] = this.aBSENCEATTENDANCETYPENAME; | ||||
|     data['CALENDAR_ENTRY_DESC'] = this.cALENDARENTRYDESC; | ||||
|     data['DATE_END'] = this.dATEEND; | ||||
|     data['DATE_START'] = this.dATESTART; | ||||
|     data['EMPLOYEE_IMAGE'] = this.eMPLOYEEIMAGE; | ||||
|     data['EMPLOYEE_NAME'] = this.eMPLOYEENAME; | ||||
|     data['EMPLOYEE_NUMBER'] = this.eMPLOYEENUMBER; | ||||
|     data['EVENT_DATE'] = this.eVENTDATE; | ||||
|     data['LEAVE_TYPE'] = this.lEAVETYPE; | ||||
|     data['ORGANIZATION_ID'] = this.oRGANIZATIONID; | ||||
|     data['ORGANIZATION_NAME'] = this.oRGANIZATIONNAME; | ||||
|     data['POSITION_TITLE'] = this.pOSITIONTITLE; | ||||
|     data['REPLACEMENT_NAME'] = this.rEPLACEMENTNAME; | ||||
|     data['STATUS'] = this.sTATUS; | ||||
|     return data; | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,69 @@ | ||||
| import 'package:easy_localization/src/public_ext.dart'; | ||||
| import 'package:flutter/material.dart'; | ||||
| import 'package:mohem_flutter_app/app_state/app_state.dart'; | ||||
| import 'package:mohem_flutter_app/classes/colors.dart'; | ||||
| import 'package:mohem_flutter_app/extensions/int_extensions.dart'; | ||||
| import 'package:mohem_flutter_app/extensions/string_extensions.dart'; | ||||
| import 'package:mohem_flutter_app/extensions/widget_extensions.dart'; | ||||
| import 'package:mohem_flutter_app/generated/locale_keys.g.dart'; | ||||
| import 'package:mohem_flutter_app/models/member_information_list_model.dart'; | ||||
| import 'package:mohem_flutter_app/models/worklist_response_model.dart'; | ||||
| 
 | ||||
| class DetailFragment extends StatefulWidget { | ||||
|   WorkListResponseModel? workListData; | ||||
|   MemberInformationListModel? memberInformationListModel; | ||||
|   DetailFragment(this.workListData, this.memberInformationListModel); | ||||
|   @override | ||||
|   State<DetailFragment> createState() => _DetailFragmentState(); | ||||
| } | ||||
| 
 | ||||
| class _DetailFragmentState extends State<DetailFragment> { | ||||
|   bool isOpened = false; | ||||
| 
 | ||||
|   @override | ||||
|   Widget build(BuildContext context) { | ||||
|     return Column( | ||||
|       children: [ | ||||
|         Column( | ||||
|           crossAxisAlignment: CrossAxisAlignment.start, | ||||
|           mainAxisSize: MainAxisSize.min, | ||||
|           children: [ | ||||
|             detailListItem(LocaleKeys.from.tr(), widget.workListData!.fROMUSER ?? ""), | ||||
|             detailListItem(LocaleKeys.to.tr(), widget.workListData!.tOUSER ?? ""), | ||||
|             detailListItem(LocaleKeys.sent.tr(), widget.workListData!.bEGINDATE ?? ""), | ||||
|             detailListItem(LocaleKeys.closed.tr(), widget.workListData!.eNDDATE ?? ""), | ||||
|             detailListItem(LocaleKeys.id.tr(), widget.workListData!.nOTIFICATIONID?.toString() ?? ""), | ||||
|             detailListItem(LocaleKeys.responder.tr(), widget.workListData!.rESPONDER ?? ""), | ||||
|           ], | ||||
|         ).objectContainerView(), | ||||
|         12.height, | ||||
|         Column( | ||||
|           crossAxisAlignment: CrossAxisAlignment.start, | ||||
|           mainAxisSize: MainAxisSize.min, | ||||
|           children: [ | ||||
|             detailListItem(LocaleKeys.employeeNumber.tr(), widget.memberInformationListModel!.eMPLOYEENUMBER ?? ""), | ||||
|             detailListItem(LocaleKeys.employeeName.tr(), | ||||
|                 (AppState().isArabic(context) ? widget.memberInformationListModel!.eMPLOYEEDISPLAYNAMEAr : widget.memberInformationListModel!.eMPLOYEEDISPLAYNAMEEn) ?? ""), | ||||
|             detailListItem(LocaleKeys.jobTitle.tr(), widget.memberInformationListModel!.pOSITIONNAME ?? ""), | ||||
|             detailListItem(LocaleKeys.grade.tr(), widget.memberInformationListModel!.gRADENAME ?? ""), | ||||
|             detailListItem(LocaleKeys.jobCategory.tr(), widget.memberInformationListModel!.pOSITIONNAME?.toString() ?? ""), | ||||
|             detailListItem(LocaleKeys.category.tr(), widget.memberInformationListModel!.eMPLOYMENTCATEGORYMEANING ?? ""), | ||||
|             detailListItem(LocaleKeys.employeeEmailAddress.tr(), widget.memberInformationListModel!.eMPLOYEEEMAILADDRESS ?? ""), | ||||
|             detailListItem(LocaleKeys.payrollBranch.tr(), widget.memberInformationListModel!.pAYROLLNAME ?? ""), | ||||
|           ], | ||||
|         ).objectContainerView(), | ||||
|       ], | ||||
|     ).paddingAll(21); | ||||
|   } | ||||
| 
 | ||||
|   Widget detailListItem(String title, String value) { | ||||
|     return Row( | ||||
|       crossAxisAlignment: CrossAxisAlignment.start, | ||||
|       children: [ | ||||
|         "$title:".toText12(isBold: true, color: const Color(0xff2D3238)), | ||||
|         6.width, | ||||
|         (value.isEmpty ? "--" : value).toText12(color: MyColors.normalTextColor).expanded, | ||||
|       ], | ||||
|     ); | ||||
|   } | ||||
| } | ||||
| @ -1,69 +1,80 @@ | ||||
| import 'package:easy_localization/src/public_ext.dart'; | ||||
| import 'package:flutter/material.dart'; | ||||
| import 'package:mohem_flutter_app/classes/colors.dart'; | ||||
| import 'package:mohem_flutter_app/classes/date_uitl.dart'; | ||||
| import 'package:mohem_flutter_app/extensions/int_extensions.dart'; | ||||
| import 'package:mohem_flutter_app/extensions/string_extensions.dart'; | ||||
| import 'package:mohem_flutter_app/extensions/widget_extensions.dart'; | ||||
| import 'package:mohem_flutter_app/generated/locale_keys.g.dart'; | ||||
| import 'package:mohem_flutter_app/models/get_absence_collection_notification_body_list_model.dart'; | ||||
| import 'package:mohem_flutter_app/models/get_stamp_ms_notification_body_list_model.dart'; | ||||
| 
 | ||||
| class InfoFragment extends StatelessWidget { | ||||
|   List<GetAbsenceCollectionNotificationBodyList>? getAbsenceCollectionNotifications; | ||||
|   List<GetStampMsNotificationBodyList>? getStampNotifications; | ||||
| 
 | ||||
|   InfoFragment({this.getAbsenceCollectionNotifications, this.getStampNotifications}); | ||||
| 
 | ||||
|   @override | ||||
|   Widget build(BuildContext context) { | ||||
|     return Container( | ||||
|       width: double.infinity, | ||||
|       height: double.infinity, | ||||
|       child: Column( | ||||
|       child: ListView( | ||||
|         padding: const EdgeInsets.all(21), | ||||
|         children: [ | ||||
|           Container( | ||||
|             width: double.infinity, | ||||
|             decoration: BoxDecoration( | ||||
|               color: Colors.white, | ||||
|               borderRadius: BorderRadius.circular(15), | ||||
|               boxShadow: [ | ||||
|                 BoxShadow( | ||||
|                   color: const Color(0xff000000).withOpacity(.05), | ||||
|                   blurRadius: 26, | ||||
|                   offset: const Offset(0, -3), | ||||
|                 ), | ||||
|               ], | ||||
|             ), | ||||
|             margin: EdgeInsets.all(21), | ||||
|             padding: EdgeInsets.only(top: 21, bottom: 21, right: 16, left: 16), | ||||
|             child: Column( | ||||
|               children: [ | ||||
|                 Row( | ||||
|                   children: [ | ||||
|                     Expanded( | ||||
|                       child: "Info Details".toText16(), | ||||
|                     ), | ||||
|                     // Icon(Icons.keyboard_arrow_down_rounded), | ||||
|                   ], | ||||
|                 ), | ||||
|                 Column( | ||||
|                   children: [ | ||||
|                     12.height, | ||||
|                     showItem("From:", "Alma Linde Mendoza"), | ||||
|                     showItem("To:", "Al Yabis, Norah"), | ||||
|                     showItem("Sent:", "1/26/2020 10:41:07 AM"), | ||||
|                     showItem("ID:", "30581045"), | ||||
|                     showItem("Closed:", "-"), | ||||
|                   ], | ||||
|                 ), | ||||
|               ], | ||||
|             ), | ||||
|           ), | ||||
|           if ((getAbsenceCollectionNotifications?.length ?? 0) > 0) | ||||
|             getAbsenceCollectionNotificationsListView(getAbsenceCollectionNotifications ?? []).objectContainerView(title: "Absence Notifications"), | ||||
|           if ((getStampNotifications?.length ?? 0) > 0) getStampNotificationsListView(getStampNotifications ?? []).objectContainerView(title: "Stamp Notifications") | ||||
|         ], | ||||
|       ), | ||||
|     ); | ||||
|   } | ||||
| 
 | ||||
|   Widget showItem(String title, String value) { | ||||
|     return Padding( | ||||
|       padding: const EdgeInsets.only(top: 2, bottom: 2), | ||||
|       child: Row( | ||||
|         children: [ | ||||
|           title.toText12(isBold: true), | ||||
|           6.width, | ||||
|           title.toText12(isBold: false, color: MyColors.normalTextColor), | ||||
|         ], | ||||
|       ), | ||||
|   Widget getAbsenceCollectionNotificationsListView(List<GetAbsenceCollectionNotificationBodyList> list) { | ||||
|     List<CollectionNotification> dataList = list.isEmpty ? [] : (list.first.collectionNotification ?? []); | ||||
|     return ListView.separated( | ||||
|         shrinkWrap: true, | ||||
|         physics: const NeverScrollableScrollPhysics(), | ||||
|         itemBuilder: (cxt, index) => detailListItem(dataList[index].sEGMENTPROMPT!, dataList[index].sEGMENTVALUEDSP!), | ||||
|         separatorBuilder: (cxt, index) => 4.height, | ||||
|         itemCount: dataList.length); | ||||
|   } | ||||
| 
 | ||||
|   Widget getStampNotificationsListView(List<GetStampMsNotificationBodyList> list) { | ||||
|     return ListView.separated( | ||||
|         shrinkWrap: true, | ||||
|         physics: const NeverScrollableScrollPhysics(), | ||||
|         itemBuilder: (cxt, index) => Column( | ||||
|               mainAxisSize: MainAxisSize.min, | ||||
|               children: [ | ||||
|                 detailListItem(LocaleKeys.employeeNumber.tr(), list[index].eMPLOYEENUMBER.toString()), | ||||
|                 detailListItem(LocaleKeys.assignmentNumber.tr(), list[index].aSSIGNMENTNUMBER.toString()), | ||||
|                 detailListItem(LocaleKeys.employeeName.tr(), list[index].eMPLOYEENAME.toString()), | ||||
|                 detailListItem(LocaleKeys.scheduleDate.tr(), DateUtil.formatDateToDate(DateUtil.convertStringToDate(list[index].sCHEDULEDATE.toString()), false)), | ||||
|                 detailListItem(LocaleKeys.shiftType.tr(), list[index].sHTTYPEDESC.toString()), | ||||
|                 detailListItem(LocaleKeys.shift.tr(), list[index].sHTNAME.toString()), | ||||
|                 detailListItem(LocaleKeys.breakText.tr(), list[index].bREAKNAME.toString()), | ||||
|                 detailListItem(LocaleKeys.actualSwipeStart.tr(), list[index].sHTACTUALSTARTTIME.toString()), | ||||
|                 detailListItem(LocaleKeys.actualSwipeEnd.tr(), list[index].sHTACTUALENDTIME.toString()), | ||||
|                 detailListItem(LocaleKeys.approvedSwipeStart.tr(), list[index].aPPROVEDSTARTTIME.toString()), | ||||
|                 detailListItem(LocaleKeys.approvedSwipeStartReason.tr(), list[index].aPPROVEDSTARTREASON.toString()), | ||||
|                 detailListItem(LocaleKeys.approvedSwipeEnd.tr(), ""), | ||||
|                 detailListItem(LocaleKeys.approvedSwipeEndReason.tr(), list[index].aPPROVEDENDREASONDESC.toString()), | ||||
|               ], | ||||
|             ), | ||||
|         separatorBuilder: (cxt, index) => 18.height, | ||||
|         itemCount: list.length); | ||||
|   } | ||||
| 
 | ||||
|   Widget detailListItem(String title, String value) { | ||||
|     return Row( | ||||
|       crossAxisAlignment: CrossAxisAlignment.start, | ||||
|       children: [ | ||||
|         "$title:".toText12(isBold: true, color: const Color(0xff2D3238)), | ||||
|         6.width, | ||||
|         (value.isEmpty ? "--" : value).toText12(color: MyColors.normalTextColor).expanded, | ||||
|       ], | ||||
|     ); | ||||
|   } | ||||
| } | ||||
|  | ||||
					Loading…
					
					
				
		Reference in New Issue