merge-update-with-lab-changes
haroon amjad 3 years ago
parent 2d93b9753d
commit 3fda1da16a

@ -104,8 +104,11 @@ class AskDoctorService extends BaseService {
body['EditedBy'] = 102; body['EditedBy'] = 102;
body['EditedOn'] = DateUtil.convertDateToString(DateTime.now()); body['EditedOn'] = DateUtil.convertDateToString(DateTime.now());
body['isDentalAllowedBackend'] = false; body['isDentalAllowedBackend'] = false;
body['AppointmentNo'] = doctorList.appointmentNo;
body['ClinicID'] = doctorList.clinicID;
body['QuestionType'] = num.parse(requestType); body['QuestionType'] = num.parse(requestType);
await baseAppClient.post(INSERT_APPOINTMENT_QUESTION, onSuccess: (dynamic response, int statusCode) {}, onFailure: (String error, int statusCode) {
await baseAppClient.post(INSERT_CALL_INFO, onSuccess: (dynamic response, int statusCode) {}, onFailure: (String error, int statusCode) {
hasError = true; hasError = true;
super.error = error; super.error = error;
}, body: body); }, body: body);

@ -1,5 +1,6 @@
class DoctorList { class DoctorList {
num clinicID; num clinicID;
dynamic appointmentNo;
String clinicName; String clinicName;
String doctorTitle; String doctorTitle;
num iD; num iD;
@ -45,6 +46,7 @@ class DoctorList {
DoctorList( DoctorList(
{this.clinicID, {this.clinicID,
this.appointmentNo,
this.clinicName, this.clinicName,
this.doctorTitle, this.doctorTitle,
this.iD, this.iD,
@ -90,6 +92,7 @@ class DoctorList {
DoctorList.fromJson(Map<String, dynamic> json) { DoctorList.fromJson(Map<String, dynamic> json) {
clinicID = json['ClinicID']; clinicID = json['ClinicID'];
appointmentNo = json['AppointmentNo'];
clinicName = json['ClinicName']; clinicName = json['ClinicName'];
doctorTitle = json['DoctorTitle']; doctorTitle = json['DoctorTitle'];
iD = json['ID']; iD = json['ID'];
@ -138,6 +141,7 @@ class DoctorList {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['ClinicID'] = this.clinicID; data['ClinicID'] = this.clinicID;
data['AppointmentNo'] = this.appointmentNo;
data['ClinicName'] = this.clinicName; data['ClinicName'] = this.clinicName;
data['DoctorTitle'] = this.doctorTitle; data['DoctorTitle'] = this.doctorTitle;
data['ID'] = this.iD; data['ID'] = this.iD;

Loading…
Cancel
Save