leave reschedule change

merge-requests/393/head
Sultan Khan 5 years ago
parent 9c111b07dd
commit 5256c9633f

@ -9,7 +9,7 @@ class GetRescheduleLeavesResponse {
int requisitionNo; int requisitionNo;
int requisitionType; int requisitionType;
int status; int status;
String createdOn;
GetRescheduleLeavesResponse( GetRescheduleLeavesResponse(
{this.clinicId, {this.clinicId,
this.coveringDoctorId, this.coveringDoctorId,
@ -20,7 +20,8 @@ class GetRescheduleLeavesResponse {
this.reasonId, this.reasonId,
this.requisitionNo, this.requisitionNo,
this.requisitionType, this.requisitionType,
this.status}); this.status,
this.createdOn});
GetRescheduleLeavesResponse.fromJson(Map<String, dynamic> json) { GetRescheduleLeavesResponse.fromJson(Map<String, dynamic> json) {
clinicId = json['clinicId']; clinicId = json['clinicId'];
@ -33,6 +34,7 @@ class GetRescheduleLeavesResponse {
requisitionNo = json['requisitionNo']; requisitionNo = json['requisitionNo'];
requisitionType = json['requisitionType']; requisitionType = json['requisitionType'];
status = json['status']; status = json['status'];
createdOn = json['createdOn'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@ -47,6 +49,7 @@ class GetRescheduleLeavesResponse {
data['requisitionNo'] = this.requisitionNo; data['requisitionNo'] = this.requisitionNo;
data['requisitionType'] = this.requisitionType; data['requisitionType'] = this.requisitionType;
data['status'] = this.status; data['status'] = this.status;
data['createdOn'] = this.createdOn;
return data; return data;
} }
} }

@ -133,7 +133,7 @@ class AddRescheduleLeavScreen extends StatelessWidget {
child: AppText( child: AppText(
DateUtils DateUtils
.convertStringToDateFormat( .convertStringToDateFormat(
item.dateTimeTo, item.createdOn,
'yyyy-MM-dd HH:mm'), 'yyyy-MM-dd HH:mm'),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
)) ))

Loading…
Cancel
Save