add sick leave
parent
4f96cff585
commit
e61f3f0281
@ -0,0 +1,32 @@
|
||||
class AddSickLeaveRequest {
|
||||
String patientMRN;
|
||||
String appointmentNo;
|
||||
String startDate;
|
||||
String noOfDays;
|
||||
String remarks;
|
||||
|
||||
AddSickLeaveRequest(
|
||||
{this.patientMRN,
|
||||
this.appointmentNo,
|
||||
this.startDate,
|
||||
this.noOfDays,
|
||||
this.remarks});
|
||||
|
||||
AddSickLeaveRequest.fromJson(Map<String, dynamic> json) {
|
||||
patientMRN = json['PatientMRN'];
|
||||
appointmentNo = json['AppointmentNo'];
|
||||
startDate = json['StartDate'];
|
||||
noOfDays = json['NoOfDays'];
|
||||
remarks = json['Remarks'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['PatientMRN'] = this.patientMRN;
|
||||
data['AppointmentNo'] = this.appointmentNo;
|
||||
data['StartDate'] = this.startDate;
|
||||
data['NoOfDays'] = this.noOfDays;
|
||||
data['Remarks'] = this.remarks;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
class ExtendSickLeaveRequest {
|
||||
String patientMRN;
|
||||
String previousRequestNo;
|
||||
String noOfDays;
|
||||
String remarks;
|
||||
|
||||
ExtendSickLeaveRequest(
|
||||
{this.patientMRN, this.previousRequestNo, this.noOfDays, this.remarks});
|
||||
|
||||
ExtendSickLeaveRequest.fromJson(Map<String, dynamic> json) {
|
||||
patientMRN = json['PatientMRN'];
|
||||
previousRequestNo = json['PreviousRequestNo'];
|
||||
noOfDays = json['NoOfDays'];
|
||||
remarks = json['Remarks'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['PatientMRN'] = this.patientMRN;
|
||||
data['PreviousRequestNo'] = this.previousRequestNo;
|
||||
data['NoOfDays'] = this.noOfDays;
|
||||
data['Remarks'] = this.remarks;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
class GetAllSickLeaveResponse {
|
||||
int appointmentNo;
|
||||
bool isExtendedLeave;
|
||||
int noOfDays;
|
||||
int patientMRN;
|
||||
String remarks;
|
||||
int requestNo;
|
||||
String startDate;
|
||||
int status;
|
||||
|
||||
GetAllSickLeaveResponse(
|
||||
{this.appointmentNo,
|
||||
this.isExtendedLeave,
|
||||
this.noOfDays,
|
||||
this.patientMRN,
|
||||
this.remarks,
|
||||
this.requestNo,
|
||||
this.startDate,
|
||||
this.status});
|
||||
|
||||
GetAllSickLeaveResponse.fromJson(Map<String, dynamic> json) {
|
||||
appointmentNo = json['appointmentNo'];
|
||||
isExtendedLeave = json['isExtendedLeave'];
|
||||
noOfDays = json['noOfDays'];
|
||||
patientMRN = json['patientMRN'];
|
||||
remarks = json['remarks'];
|
||||
requestNo = json['requestNo'];
|
||||
startDate = json['startDate'];
|
||||
status = json['status'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['appointmentNo'] = this.appointmentNo;
|
||||
data['isExtendedLeave'] = this.isExtendedLeave;
|
||||
data['noOfDays'] = this.noOfDays;
|
||||
data['patientMRN'] = this.patientMRN;
|
||||
data['remarks'] = this.remarks;
|
||||
data['requestNo'] = this.requestNo;
|
||||
data['startDate'] = this.startDate;
|
||||
data['status'] = this.status;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue