dev_3.16.3_Lab_CheckIn_6718
haroon amjad 1 year ago
parent 7fbcee856a
commit 19dab0179d

@ -71,6 +71,7 @@ class AncillaryOrderList {
bool? isQueued; bool? isQueued;
String? orderDate; String? orderDate;
int? orderNo; int? orderNo;
int? invoiceNo;
AncillaryOrderList( AncillaryOrderList(
{this.ancillaryProcedureListModels, {this.ancillaryProcedureListModels,
@ -83,7 +84,8 @@ class AncillaryOrderList {
this.isCheckInAllow, this.isCheckInAllow,
this.isQueued, this.isQueued,
this.orderDate, this.orderDate,
this.orderNo}); this.orderNo,
this.invoiceNo});
AncillaryOrderList.fromJson(Map<String, dynamic> json) { AncillaryOrderList.fromJson(Map<String, dynamic> json) {
if (json['AncillaryProcedureListModels'] != null) { if (json['AncillaryProcedureListModels'] != null) {
@ -103,6 +105,7 @@ class AncillaryOrderList {
isQueued = json['IsQueued']; isQueued = json['IsQueued'];
orderDate = json['OrderDate']; orderDate = json['OrderDate'];
orderNo = json['OrderNo']; orderNo = json['OrderNo'];
invoiceNo = json['Invoiceno'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@ -121,6 +124,7 @@ class AncillaryOrderList {
data['IsQueued'] = this.isQueued; data['IsQueued'] = this.isQueued;
data['OrderDate'] = this.orderDate; data['OrderDate'] = this.orderDate;
data['OrderNo'] = this.orderNo; data['OrderNo'] = this.orderNo;
data['Invoiceno'] = this.invoiceNo;
return data; return data;
} }
} }

@ -455,6 +455,7 @@ class _ToDoState extends State<ToDo> with SingleTickerProviderStateMixin {
date: DateUtil.convertStringToDate(ancillaryLists[0].ancillaryOrderList![index].orderDate), date: DateUtil.convertStringToDate(ancillaryLists[0].ancillaryOrderList![index].orderDate),
isSortByClinic: true, isSortByClinic: true,
isAllowCheckInAncillary: ancillaryLists[0].ancillaryOrderList![index].isCheckInAllow!, isAllowCheckInAncillary: ancillaryLists[0].ancillaryOrderList![index].isCheckInAllow!,
// isAllowCheckInAncillary: true,
onAncillaryCheckInTap: () { onAncillaryCheckInTap: () {
AppoitmentAllHistoryResultList appo = new AppoitmentAllHistoryResultList(); AppoitmentAllHistoryResultList appo = new AppoitmentAllHistoryResultList();
appo.doctorTitle = TranslationBase.of(context).dr.toString(); appo.doctorTitle = TranslationBase.of(context).dr.toString();
@ -1686,11 +1687,11 @@ class _ToDoState extends State<ToDo> with SingleTickerProviderStateMixin {
DoctorsListService service = new DoctorsListService(); DoctorsListService service = new DoctorsListService();
service service
.getLabQueueNumber(projectID, projectViewModel.authenticatedUserObject.user.patientID!, Utils.isVidaPlusProject(projectViewModel, projectID), ancillaryOrderList.orderNo.toString(), .getLabQueueNumber(projectID, projectViewModel.authenticatedUserObject.user.patientID!, Utils.isVidaPlusProject(projectViewModel, projectID), ancillaryOrderList.invoiceNo.toString(),
ancillaryOrderList.orderNo.toString()) ancillaryOrderList.orderNo.toString())
.then((res) { .then((res) {
GifLoaderDialogUtils.hideDialog(context); GifLoaderDialogUtils.hideDialog(context);
showAlertDialog(res['QLineResponse']['PatientCallNo']); showAlertDialog(res['QLineResponse']['patientCallNo']);
}).catchError((err) { }).catchError((err) {
GifLoaderDialogUtils.hideDialog(context); GifLoaderDialogUtils.hideDialog(context);
AppToast.showErrorToast(message: err); AppToast.showErrorToast(message: err);

Loading…
Cancel
Save