fix perscription pages bugs
parent
a613fe08e4
commit
e5474b3062
@ -1,127 +1,193 @@
|
|||||||
import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
|
import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
|
||||||
|
|
||||||
class PrescriptionReport {
|
class PrescriptionReport {
|
||||||
|
String address;
|
||||||
|
int appointmentNo;
|
||||||
|
String clinic;
|
||||||
|
String companyName;
|
||||||
|
int days;
|
||||||
|
String doctorName;
|
||||||
|
var doseDailyQuantity;
|
||||||
|
String frequency;
|
||||||
|
int frequencyNumber;
|
||||||
|
String image;
|
||||||
|
String imageExtension;
|
||||||
|
String imageSRCUrl;
|
||||||
|
String imageString;
|
||||||
|
String imageThumbUrl;
|
||||||
|
String isCovered;
|
||||||
|
String itemDescription;
|
||||||
|
int itemID;
|
||||||
|
String orderDate;
|
||||||
int patientID;
|
int patientID;
|
||||||
String patientName;
|
String patientName;
|
||||||
|
String phoneOffice1;
|
||||||
|
String prescriptionQR;
|
||||||
|
int prescriptionTimes;
|
||||||
|
String productImage;
|
||||||
|
String productImageBase64;
|
||||||
|
String productImageString;
|
||||||
|
int projectID;
|
||||||
|
String projectName;
|
||||||
|
String remarks;
|
||||||
|
String route;
|
||||||
|
String sKU;
|
||||||
|
int scaleOffset;
|
||||||
|
String startDate;
|
||||||
|
|
||||||
String patientAge;
|
String patientAge;
|
||||||
String patientGender;
|
String patientGender;
|
||||||
String address;
|
|
||||||
String phoneOffice;
|
String phoneOffice;
|
||||||
String itemDescription;
|
|
||||||
int doseTimingID;
|
int doseTimingID;
|
||||||
int frequencyID;
|
int frequencyID;
|
||||||
int routeID;
|
int routeID;
|
||||||
String clinic;
|
|
||||||
String doctorName;
|
|
||||||
String route;
|
|
||||||
String frequency;
|
|
||||||
String remarks;
|
|
||||||
String name;
|
String name;
|
||||||
int days;
|
|
||||||
String startDate;
|
|
||||||
String orderDate;
|
|
||||||
int doseDailyQuantity;
|
|
||||||
int itemID;
|
|
||||||
Null productImage;
|
|
||||||
String sKU;
|
|
||||||
String itemDescriptionN;
|
String itemDescriptionN;
|
||||||
String routeN;
|
String routeN;
|
||||||
String frequencyN;
|
String frequencyN;
|
||||||
String imageSRCUrl;
|
|
||||||
String imageThumbUrl;
|
|
||||||
|
|
||||||
PrescriptionReport(
|
PrescriptionReport({
|
||||||
{this.patientID,
|
this.address,
|
||||||
this.patientName,
|
this.appointmentNo,
|
||||||
this.patientAge,
|
this.clinic,
|
||||||
this.patientGender,
|
this.companyName,
|
||||||
this.address,
|
this.days,
|
||||||
this.phoneOffice,
|
this.doctorName,
|
||||||
this.itemDescription,
|
this.doseDailyQuantity,
|
||||||
this.doseTimingID,
|
this.frequency,
|
||||||
this.frequencyID,
|
this.frequencyNumber,
|
||||||
this.routeID,
|
this.image,
|
||||||
this.clinic,
|
this.imageExtension,
|
||||||
this.doctorName,
|
this.imageSRCUrl,
|
||||||
this.route,
|
this.imageString,
|
||||||
this.frequency,
|
this.imageThumbUrl,
|
||||||
this.remarks,
|
this.isCovered,
|
||||||
this.name,
|
this.itemDescription,
|
||||||
this.days,
|
this.itemID,
|
||||||
this.startDate,
|
this.orderDate,
|
||||||
this.orderDate,
|
this.patientID,
|
||||||
this.doseDailyQuantity,
|
this.patientName,
|
||||||
this.itemID,
|
this.phoneOffice1,
|
||||||
this.productImage,
|
this.prescriptionQR,
|
||||||
this.sKU,
|
this.prescriptionTimes,
|
||||||
this.itemDescriptionN,
|
this.productImage,
|
||||||
this.routeN,
|
this.productImageBase64,
|
||||||
this.frequencyN,
|
this.productImageString,
|
||||||
this.imageSRCUrl,
|
this.projectID,
|
||||||
this.imageThumbUrl});
|
this.projectName,
|
||||||
|
this.remarks,
|
||||||
|
this.route,
|
||||||
|
this.sKU,
|
||||||
|
this.scaleOffset,
|
||||||
|
this.startDate,
|
||||||
|
this.patientAge,
|
||||||
|
this.patientGender,
|
||||||
|
this.phoneOffice,
|
||||||
|
this.doseTimingID,
|
||||||
|
this.frequencyID,
|
||||||
|
this.routeID,
|
||||||
|
this.name,
|
||||||
|
this.itemDescriptionN,
|
||||||
|
this.routeN,
|
||||||
|
this.frequencyN,
|
||||||
|
});
|
||||||
|
|
||||||
PrescriptionReport.fromJson(Map<String, dynamic> json) {
|
PrescriptionReport.fromJson(Map<String, dynamic> json) {
|
||||||
patientID = json['PatientID'];
|
|
||||||
patientName = json['PatientName'];
|
|
||||||
patientAge = json['PatientAge'];
|
|
||||||
patientGender = json['PatientGender'];
|
|
||||||
address = json['Address'];
|
address = json['Address'];
|
||||||
phoneOffice = json['PhoneOffice'];
|
appointmentNo = json['AppointmentNo'];
|
||||||
itemDescription = json['ItemDescription'];
|
|
||||||
doseTimingID = json['DoseTimingID'];
|
|
||||||
frequencyID = json['FrequencyID'];
|
|
||||||
routeID = json['RouteID'];
|
|
||||||
clinic = json['Clinic'];
|
clinic = json['Clinic'];
|
||||||
doctorName = json['DoctorName'];
|
companyName = json['CompanyName'];
|
||||||
route = json['Route'];
|
|
||||||
frequency = json['Frequency'];
|
|
||||||
remarks = json['Remarks'];
|
|
||||||
name = json['Name'];
|
|
||||||
days = json['Days'];
|
days = json['Days'];
|
||||||
startDate = json['StartDate'];
|
doctorName = json['DoctorName'];
|
||||||
orderDate = json['OrderDate'];
|
|
||||||
doseDailyQuantity = json['DoseDailyQuantity'];
|
doseDailyQuantity = json['DoseDailyQuantity'];
|
||||||
|
frequency = json['Frequency'];
|
||||||
|
frequencyNumber = json['FrequencyNumber'];
|
||||||
|
image = json['Image'];
|
||||||
|
imageExtension = json['ImageExtension'];
|
||||||
|
imageSRCUrl = json['ImageSRCUrl'];
|
||||||
|
imageString = json['ImageString'];
|
||||||
|
imageThumbUrl = json['ImageThumbUrl'];
|
||||||
|
isCovered = json['IsCovered'];
|
||||||
|
itemDescription = json['ItemDescription'];
|
||||||
itemID = json['ItemID'];
|
itemID = json['ItemID'];
|
||||||
|
orderDate = json['OrderDate'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
patientName = json['PatientName'];
|
||||||
|
phoneOffice1 = json['PhoneOffice1'];
|
||||||
|
prescriptionQR = json['PrescriptionQR'];
|
||||||
|
prescriptionTimes = json['PrescriptionTimes'];
|
||||||
productImage = json['ProductImage'];
|
productImage = json['ProductImage'];
|
||||||
|
productImageBase64 = json['ProductImageBase64'];
|
||||||
|
productImageString = json['ProductImageString'];
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
projectName = json['ProjectName'];
|
||||||
|
remarks = json['Remarks'];
|
||||||
|
route = json['Route'];
|
||||||
sKU = json['SKU'];
|
sKU = json['SKU'];
|
||||||
itemDescriptionN = json['ItemDescriptionN'];
|
scaleOffset = json['ScaleOffset'];
|
||||||
routeN = json['RouteN'];
|
startDate = json['StartDate'];
|
||||||
frequencyN = json['FrequencyN'];
|
|
||||||
imageSRCUrl = json['ImageSRCUrl'];
|
patientAge = json['patientAge'];
|
||||||
imageThumbUrl = json['ImageThumbUrl'];
|
patientGender = json['patientGender'];
|
||||||
|
phoneOffice = json['phoneOffice'];
|
||||||
|
doseTimingID = json['doseTimingID'];
|
||||||
|
frequencyID = json['frequencyID'];
|
||||||
|
routeID = json['routeID'];
|
||||||
|
name = json['name'];
|
||||||
|
itemDescriptionN = json['itemDescriptionN'];
|
||||||
|
routeN = json['routeN'];
|
||||||
|
frequencyN = json['frequencyN'];
|
||||||
}
|
}
|
||||||
|
|
||||||
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['Address'] = this.address;
|
||||||
|
data['AppointmentNo'] = this.appointmentNo;
|
||||||
|
data['Clinic'] = this.clinic;
|
||||||
|
data['CompanyName'] = this.companyName;
|
||||||
|
data['Days'] = this.days;
|
||||||
|
data['DoctorName'] = this.doctorName;
|
||||||
|
data['DoseDailyQuantity'] = this.doseDailyQuantity;
|
||||||
|
data['Frequency'] = this.frequency;
|
||||||
|
data['FrequencyNumber'] = this.frequencyNumber;
|
||||||
|
data['Image'] = this.image;
|
||||||
|
data['ImageExtension'] = this.imageExtension;
|
||||||
|
data['ImageSRCUrl'] = this.imageSRCUrl;
|
||||||
|
data['ImageString'] = this.imageString;
|
||||||
|
data['ImageThumbUrl'] = this.imageThumbUrl;
|
||||||
|
data['IsCovered'] = this.isCovered;
|
||||||
|
data['ItemDescription'] = this.itemDescription;
|
||||||
|
data['ItemID'] = this.itemID;
|
||||||
|
data['OrderDate'] = this.orderDate;
|
||||||
data['PatientID'] = this.patientID;
|
data['PatientID'] = this.patientID;
|
||||||
data['PatientName'] = this.patientName;
|
data['PatientName'] = this.patientName;
|
||||||
|
data['PhoneOffice1'] = this.phoneOffice1;
|
||||||
|
data['PrescriptionQR'] = this.prescriptionQR;
|
||||||
|
data['PrescriptionTimes'] = this.prescriptionTimes;
|
||||||
|
data['ProductImage'] = this.productImage;
|
||||||
|
data['ProductImageBase64'] = this.productImageBase64;
|
||||||
|
data['ProductImageString'] = this.productImageString;
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['ProjectName'] = this.projectName;
|
||||||
|
data['Remarks'] = this.remarks;
|
||||||
|
data['Route'] = this.route;
|
||||||
|
data['SKU'] = this.sKU;
|
||||||
|
data['ScaleOffset'] = this.scaleOffset;
|
||||||
|
data['StartDate'] = this.startDate;
|
||||||
|
|
||||||
data['PatientAge'] = this.patientAge;
|
data['PatientAge'] = this.patientAge;
|
||||||
data['PatientGender'] = this.patientGender;
|
data['PatientGender'] = this.patientGender;
|
||||||
data['Address'] = this.address;
|
|
||||||
data['PhoneOffice'] = this.phoneOffice;
|
data['PhoneOffice'] = this.phoneOffice;
|
||||||
data['ItemDescription'] = this.itemDescription;
|
|
||||||
data['DoseTimingID'] = this.doseTimingID;
|
data['DoseTimingID'] = this.doseTimingID;
|
||||||
data['FrequencyID'] = this.frequencyID;
|
data['FrequencyID'] = this.frequencyID;
|
||||||
data['RouteID'] = this.routeID;
|
data['RouteID'] = this.routeID;
|
||||||
data['Clinic'] = this.clinic;
|
|
||||||
data['DoctorName'] = this.doctorName;
|
|
||||||
data['Route'] = this.route;
|
|
||||||
data['Frequency'] = this.frequency;
|
|
||||||
data['Remarks'] = this.remarks;
|
|
||||||
data['Name'] = this.name;
|
data['Name'] = this.name;
|
||||||
data['Days'] = this.days;
|
|
||||||
data['StartDate'] = this.startDate;
|
|
||||||
data['OrderDate'] = this.orderDate;
|
|
||||||
data['DoseDailyQuantity'] = this.doseDailyQuantity;
|
|
||||||
data['ItemID'] = this.itemID;
|
|
||||||
data['ProductImage'] = this.productImage;
|
|
||||||
data['SKU'] = this.sKU;
|
|
||||||
data['ItemDescriptionN'] = this.itemDescriptionN;
|
data['ItemDescriptionN'] = this.itemDescriptionN;
|
||||||
data['RouteN'] = this.routeN;
|
data['RouteN'] = this.routeN;
|
||||||
data['FrequencyN'] = this.frequencyN;
|
data['FrequencyN'] = this.frequencyN;
|
||||||
data['ImageSRCUrl'] = this.imageSRCUrl;
|
|
||||||
data['ImageThumbUrl'] = this.imageThumbUrl;
|
|
||||||
data['hasPlan'] = false;
|
data['hasPlan'] = false;
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue