Merge branch 'sultan' of https://gitlab.com/Cloud_Solution/diplomatic-quarter into Haroon
# Conflicts: # lib/config/localized_values.dart # lib/core/service/client/base_app_client.dart # lib/uitl/translations_delegate_base.dart # lib/widgets/others/app_scaffold_widget.dartmerge-requests/34/merge
commit
00d9214460
Binary file not shown.
After Width: | Height: | Size: 488 B |
@ -0,0 +1,316 @@
|
||||
class CheckUserStatusResponse {
|
||||
Null date;
|
||||
int languageID;
|
||||
int serviceName;
|
||||
Null time;
|
||||
Null androidLink;
|
||||
Null authenticationTokenID;
|
||||
Null data;
|
||||
bool dataw;
|
||||
int dietType;
|
||||
Null errorCode;
|
||||
Null errorEndUserMessage;
|
||||
Null errorEndUserMessageN;
|
||||
Null errorMessage;
|
||||
int errorType;
|
||||
int foodCategory;
|
||||
Null iOSLink;
|
||||
bool isAuthenticated;
|
||||
int mealOrderStatus;
|
||||
int mealType;
|
||||
int messageStatus;
|
||||
int numberOfResultRecords;
|
||||
Null patientBlodType;
|
||||
Null successMsg;
|
||||
Null successMsgN;
|
||||
Null accessTokenObject;
|
||||
int age;
|
||||
Null clientIdentifierId;
|
||||
int createdBy;
|
||||
String dateOfBirth;
|
||||
String firstNameAr;
|
||||
String firstNameEn;
|
||||
String gender;
|
||||
Null genderAr;
|
||||
Null genderEn;
|
||||
String healthId;
|
||||
String idNumber;
|
||||
String idType;
|
||||
bool isHijri;
|
||||
int isInstertedOrUpdated;
|
||||
int isNull;
|
||||
int isPatientExistNHIC;
|
||||
String lastNameAr;
|
||||
String lastNameEn;
|
||||
Null listActiveAccessToken;
|
||||
String maritalStatus;
|
||||
String maritalStatusCode;
|
||||
String nationality;
|
||||
String nationalityCode;
|
||||
String occupation;
|
||||
String patientStatus;
|
||||
String placeofBirth;
|
||||
Null practitionerStatusCode;
|
||||
Null practitionerStatusDescAr;
|
||||
Null practitionerStatusDescEn;
|
||||
String secondNameAr;
|
||||
String secondNameEn;
|
||||
String thirdNameAr;
|
||||
String thirdNameEn;
|
||||
Null accessToken;
|
||||
int categoryCode;
|
||||
Null categoryNameAr;
|
||||
Null categoryNameEn;
|
||||
int constraintCode;
|
||||
Null constraintNameAr;
|
||||
Null constraintNameEn;
|
||||
Null content;
|
||||
Null licenseExpiryDate;
|
||||
Null licenseIssuedDate;
|
||||
Null licenseStatusCode;
|
||||
Null licenseStatusDescAr;
|
||||
Null licenseStatusDescEn;
|
||||
Null organizations;
|
||||
Null registrationNumber;
|
||||
int specialtyCode;
|
||||
Null specialtyNameAr;
|
||||
Null specialtyNameEn;
|
||||
|
||||
CheckUserStatusResponse(
|
||||
{this.date,
|
||||
this.languageID,
|
||||
this.serviceName,
|
||||
this.time,
|
||||
this.androidLink,
|
||||
this.authenticationTokenID,
|
||||
this.data,
|
||||
this.dataw,
|
||||
this.dietType,
|
||||
this.errorCode,
|
||||
this.errorEndUserMessage,
|
||||
this.errorEndUserMessageN,
|
||||
this.errorMessage,
|
||||
this.errorType,
|
||||
this.foodCategory,
|
||||
this.iOSLink,
|
||||
this.isAuthenticated,
|
||||
this.mealOrderStatus,
|
||||
this.mealType,
|
||||
this.messageStatus,
|
||||
this.numberOfResultRecords,
|
||||
this.patientBlodType,
|
||||
this.successMsg,
|
||||
this.successMsgN,
|
||||
this.accessTokenObject,
|
||||
this.age,
|
||||
this.clientIdentifierId,
|
||||
this.createdBy,
|
||||
this.dateOfBirth,
|
||||
this.firstNameAr,
|
||||
this.firstNameEn,
|
||||
this.gender,
|
||||
this.genderAr,
|
||||
this.genderEn,
|
||||
this.healthId,
|
||||
this.idNumber,
|
||||
this.idType,
|
||||
this.isHijri,
|
||||
this.isInstertedOrUpdated,
|
||||
this.isNull,
|
||||
this.isPatientExistNHIC,
|
||||
this.lastNameAr,
|
||||
this.lastNameEn,
|
||||
this.listActiveAccessToken,
|
||||
this.maritalStatus,
|
||||
this.maritalStatusCode,
|
||||
this.nationality,
|
||||
this.nationalityCode,
|
||||
this.occupation,
|
||||
this.patientStatus,
|
||||
this.placeofBirth,
|
||||
this.practitionerStatusCode,
|
||||
this.practitionerStatusDescAr,
|
||||
this.practitionerStatusDescEn,
|
||||
this.secondNameAr,
|
||||
this.secondNameEn,
|
||||
this.thirdNameAr,
|
||||
this.thirdNameEn,
|
||||
this.accessToken,
|
||||
this.categoryCode,
|
||||
this.categoryNameAr,
|
||||
this.categoryNameEn,
|
||||
this.constraintCode,
|
||||
this.constraintNameAr,
|
||||
this.constraintNameEn,
|
||||
this.content,
|
||||
this.licenseExpiryDate,
|
||||
this.licenseIssuedDate,
|
||||
this.licenseStatusCode,
|
||||
this.licenseStatusDescAr,
|
||||
this.licenseStatusDescEn,
|
||||
this.organizations,
|
||||
this.registrationNumber,
|
||||
this.specialtyCode,
|
||||
this.specialtyNameAr,
|
||||
this.specialtyNameEn});
|
||||
|
||||
CheckUserStatusResponse.fromJson(Map<String, dynamic> json) {
|
||||
date = json['Date'];
|
||||
languageID = json['LanguageID'];
|
||||
serviceName = json['ServiceName'];
|
||||
time = json['Time'];
|
||||
androidLink = json['AndroidLink'];
|
||||
authenticationTokenID = json['AuthenticationTokenID'];
|
||||
data = json['Data'];
|
||||
dataw = json['Dataw'];
|
||||
dietType = json['DietType'];
|
||||
errorCode = json['ErrorCode'];
|
||||
errorEndUserMessage = json['ErrorEndUserMessage'];
|
||||
errorEndUserMessageN = json['ErrorEndUserMessageN'];
|
||||
errorMessage = json['ErrorMessage'];
|
||||
errorType = json['ErrorType'];
|
||||
foodCategory = json['FoodCategory'];
|
||||
iOSLink = json['IOSLink'];
|
||||
isAuthenticated = json['IsAuthenticated'];
|
||||
mealOrderStatus = json['MealOrderStatus'];
|
||||
mealType = json['MealType'];
|
||||
messageStatus = json['MessageStatus'];
|
||||
numberOfResultRecords = json['NumberOfResultRecords'];
|
||||
patientBlodType = json['PatientBlodType'];
|
||||
successMsg = json['SuccessMsg'];
|
||||
successMsgN = json['SuccessMsgN'];
|
||||
accessTokenObject = json['AccessTokenObject'];
|
||||
age = json['Age'];
|
||||
clientIdentifierId = json['ClientIdentifierId'];
|
||||
createdBy = json['CreatedBy'];
|
||||
dateOfBirth = json['DateOfBirth'];
|
||||
firstNameAr = json['FirstNameAr'];
|
||||
firstNameEn = json['FirstNameEn'];
|
||||
gender = json['Gender'];
|
||||
genderAr = json['GenderAr'];
|
||||
genderEn = json['GenderEn'];
|
||||
healthId = json['HealthId'];
|
||||
idNumber = json['IdNumber'];
|
||||
idType = json['IdType'];
|
||||
isHijri = json['IsHijri'];
|
||||
isInstertedOrUpdated = json['IsInstertedOrUpdated'];
|
||||
isNull = json['IsNull'];
|
||||
isPatientExistNHIC = json['IsPatientExistNHIC'];
|
||||
lastNameAr = json['LastNameAr'];
|
||||
lastNameEn = json['LastNameEn'];
|
||||
listActiveAccessToken = json['List_ActiveAccessToken'];
|
||||
maritalStatus = json['MaritalStatus'];
|
||||
maritalStatusCode = json['MaritalStatusCode'];
|
||||
nationality = json['Nationality'];
|
||||
nationalityCode = json['NationalityCode'];
|
||||
occupation = json['Occupation'];
|
||||
patientStatus = json['PatientStatus'];
|
||||
placeofBirth = json['PlaceofBirth'];
|
||||
practitionerStatusCode = json['PractitionerStatusCode'];
|
||||
practitionerStatusDescAr = json['PractitionerStatusDescAr'];
|
||||
practitionerStatusDescEn = json['PractitionerStatusDescEn'];
|
||||
secondNameAr = json['SecondNameAr'];
|
||||
secondNameEn = json['SecondNameEn'];
|
||||
thirdNameAr = json['ThirdNameAr'];
|
||||
thirdNameEn = json['ThirdNameEn'];
|
||||
accessToken = json['accessToken'];
|
||||
categoryCode = json['categoryCode'];
|
||||
categoryNameAr = json['categoryNameAr'];
|
||||
categoryNameEn = json['categoryNameEn'];
|
||||
constraintCode = json['constraintCode'];
|
||||
constraintNameAr = json['constraintNameAr'];
|
||||
constraintNameEn = json['constraintNameEn'];
|
||||
content = json['content'];
|
||||
licenseExpiryDate = json['licenseExpiryDate'];
|
||||
licenseIssuedDate = json['licenseIssuedDate'];
|
||||
licenseStatusCode = json['licenseStatusCode'];
|
||||
licenseStatusDescAr = json['licenseStatusDescAr'];
|
||||
licenseStatusDescEn = json['licenseStatusDescEn'];
|
||||
organizations = json['organizations'];
|
||||
registrationNumber = json['registrationNumber'];
|
||||
specialtyCode = json['specialtyCode'];
|
||||
specialtyNameAr = json['specialtyNameAr'];
|
||||
specialtyNameEn = json['specialtyNameEn'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['Date'] = this.date;
|
||||
data['LanguageID'] = this.languageID;
|
||||
data['ServiceName'] = this.serviceName;
|
||||
data['Time'] = this.time;
|
||||
data['AndroidLink'] = this.androidLink;
|
||||
data['AuthenticationTokenID'] = this.authenticationTokenID;
|
||||
data['Data'] = this.data;
|
||||
data['Dataw'] = this.dataw;
|
||||
data['DietType'] = this.dietType;
|
||||
data['ErrorCode'] = this.errorCode;
|
||||
data['ErrorEndUserMessage'] = this.errorEndUserMessage;
|
||||
data['ErrorEndUserMessageN'] = this.errorEndUserMessageN;
|
||||
data['ErrorMessage'] = this.errorMessage;
|
||||
data['ErrorType'] = this.errorType;
|
||||
data['FoodCategory'] = this.foodCategory;
|
||||
data['IOSLink'] = this.iOSLink;
|
||||
data['IsAuthenticated'] = this.isAuthenticated;
|
||||
data['MealOrderStatus'] = this.mealOrderStatus;
|
||||
data['MealType'] = this.mealType;
|
||||
data['MessageStatus'] = this.messageStatus;
|
||||
data['NumberOfResultRecords'] = this.numberOfResultRecords;
|
||||
data['PatientBlodType'] = this.patientBlodType;
|
||||
data['SuccessMsg'] = this.successMsg;
|
||||
data['SuccessMsgN'] = this.successMsgN;
|
||||
data['AccessTokenObject'] = this.accessTokenObject;
|
||||
data['Age'] = this.age;
|
||||
data['ClientIdentifierId'] = this.clientIdentifierId;
|
||||
data['CreatedBy'] = this.createdBy;
|
||||
data['DateOfBirth'] = this.dateOfBirth;
|
||||
data['FirstNameAr'] = this.firstNameAr;
|
||||
data['FirstNameEn'] = this.firstNameEn;
|
||||
data['Gender'] = this.gender;
|
||||
data['GenderAr'] = this.genderAr;
|
||||
data['GenderEn'] = this.genderEn;
|
||||
data['HealthId'] = this.healthId;
|
||||
data['IdNumber'] = this.idNumber;
|
||||
data['IdType'] = this.idType;
|
||||
data['IsHijri'] = this.isHijri;
|
||||
data['IsInstertedOrUpdated'] = this.isInstertedOrUpdated;
|
||||
data['IsNull'] = this.isNull;
|
||||
data['IsPatientExistNHIC'] = this.isPatientExistNHIC;
|
||||
data['LastNameAr'] = this.lastNameAr;
|
||||
data['LastNameEn'] = this.lastNameEn;
|
||||
data['List_ActiveAccessToken'] = this.listActiveAccessToken;
|
||||
data['MaritalStatus'] = this.maritalStatus;
|
||||
data['MaritalStatusCode'] = this.maritalStatusCode;
|
||||
data['Nationality'] = this.nationality;
|
||||
data['NationalityCode'] = this.nationalityCode;
|
||||
data['Occupation'] = this.occupation;
|
||||
data['PatientStatus'] = this.patientStatus;
|
||||
data['PlaceofBirth'] = this.placeofBirth;
|
||||
data['PractitionerStatusCode'] = this.practitionerStatusCode;
|
||||
data['PractitionerStatusDescAr'] = this.practitionerStatusDescAr;
|
||||
data['PractitionerStatusDescEn'] = this.practitionerStatusDescEn;
|
||||
data['SecondNameAr'] = this.secondNameAr;
|
||||
data['SecondNameEn'] = this.secondNameEn;
|
||||
data['ThirdNameAr'] = this.thirdNameAr;
|
||||
data['ThirdNameEn'] = this.thirdNameEn;
|
||||
data['accessToken'] = this.accessToken;
|
||||
data['categoryCode'] = this.categoryCode;
|
||||
data['categoryNameAr'] = this.categoryNameAr;
|
||||
data['categoryNameEn'] = this.categoryNameEn;
|
||||
data['constraintCode'] = this.constraintCode;
|
||||
data['constraintNameAr'] = this.constraintNameAr;
|
||||
data['constraintNameEn'] = this.constraintNameEn;
|
||||
data['content'] = this.content;
|
||||
data['licenseExpiryDate'] = this.licenseExpiryDate;
|
||||
data['licenseIssuedDate'] = this.licenseIssuedDate;
|
||||
data['licenseStatusCode'] = this.licenseStatusCode;
|
||||
data['licenseStatusDescAr'] = this.licenseStatusDescAr;
|
||||
data['licenseStatusDescEn'] = this.licenseStatusDescEn;
|
||||
data['organizations'] = this.organizations;
|
||||
data['registrationNumber'] = this.registrationNumber;
|
||||
data['specialtyCode'] = this.specialtyCode;
|
||||
data['specialtyNameAr'] = this.specialtyNameAr;
|
||||
data['specialtyNameEn'] = this.specialtyNameEn;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
class CheckUserStatusRequest {
|
||||
String patientIdentificationID;
|
||||
String dOB;
|
||||
int isHijri;
|
||||
double versionID;
|
||||
int channel;
|
||||
int languageID;
|
||||
String iPAdress;
|
||||
String generalid;
|
||||
int patientOutSA;
|
||||
Null sessionID;
|
||||
bool isDentalAllowedBackend;
|
||||
int deviceTypeID;
|
||||
|
||||
CheckUserStatusRequest(
|
||||
{this.patientIdentificationID,
|
||||
this.dOB,
|
||||
this.isHijri,
|
||||
this.versionID,
|
||||
this.channel,
|
||||
this.languageID,
|
||||
this.iPAdress,
|
||||
this.generalid,
|
||||
this.patientOutSA,
|
||||
this.sessionID,
|
||||
this.isDentalAllowedBackend,
|
||||
this.deviceTypeID});
|
||||
|
||||
CheckUserStatusRequest.fromJson(Map<String, dynamic> json) {
|
||||
patientIdentificationID = json['PatientIdentificationID'];
|
||||
dOB = json['DOB'];
|
||||
isHijri = json['IsHijri'];
|
||||
versionID = json['VersionID'];
|
||||
channel = json['Channel'];
|
||||
languageID = json['LanguageID'];
|
||||
iPAdress = json['IPAdress'];
|
||||
generalid = json['generalid'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
sessionID = json['SessionID'];
|
||||
isDentalAllowedBackend = json['isDentalAllowedBackend'];
|
||||
deviceTypeID = json['DeviceTypeID'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['PatientIdentificationID'] = this.patientIdentificationID;
|
||||
data['DOB'] = this.dOB;
|
||||
data['IsHijri'] = this.isHijri;
|
||||
data['VersionID'] = this.versionID;
|
||||
data['Channel'] = this.channel;
|
||||
data['LanguageID'] = this.languageID;
|
||||
data['IPAdress'] = this.iPAdress;
|
||||
data['generalid'] = this.generalid;
|
||||
data['PatientOutSA'] = this.patientOutSA;
|
||||
data['SessionID'] = this.sessionID;
|
||||
data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
|
||||
data['DeviceTypeID'] = this.deviceTypeID;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
class CheckPatientForRegistration {
|
||||
int patientIdentificationID;
|
||||
int patientMobileNumber;
|
||||
String zipCode;
|
||||
double versionID;
|
||||
int channel;
|
||||
int languageID;
|
||||
String iPAdress;
|
||||
String generalid;
|
||||
int patientOutSA;
|
||||
Null sessionID;
|
||||
bool isDentalAllowedBackend;
|
||||
int deviceTypeID;
|
||||
String tokenID;
|
||||
int patientID;
|
||||
bool isRegister;
|
||||
|
||||
CheckPatientForRegistration(
|
||||
{this.patientIdentificationID,
|
||||
this.patientMobileNumber,
|
||||
this.zipCode,
|
||||
this.versionID,
|
||||
this.channel,
|
||||
this.languageID,
|
||||
this.iPAdress,
|
||||
this.generalid,
|
||||
this.patientOutSA,
|
||||
this.sessionID,
|
||||
this.isDentalAllowedBackend,
|
||||
this.deviceTypeID,
|
||||
this.tokenID,
|
||||
this.patientID,
|
||||
this.isRegister});
|
||||
|
||||
CheckPatientForRegistration.fromJson(Map<String, dynamic> json) {
|
||||
patientIdentificationID = json['PatientIdentificationID'];
|
||||
patientMobileNumber = json['PatientMobileNumber'];
|
||||
zipCode = json['ZipCode'];
|
||||
versionID = json['VersionID'];
|
||||
channel = json['Channel'];
|
||||
languageID = json['LanguageID'];
|
||||
iPAdress = json['IPAdress'];
|
||||
generalid = json['generalid'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
sessionID = json['SessionID'];
|
||||
isDentalAllowedBackend = json['isDentalAllowedBackend'];
|
||||
deviceTypeID = json['DeviceTypeID'];
|
||||
tokenID = json['TokenID'];
|
||||
patientID = json['PatientID'];
|
||||
isRegister = json['isRegister'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['PatientIdentificationID'] = this.patientIdentificationID;
|
||||
data['PatientMobileNumber'] = this.patientMobileNumber;
|
||||
data['ZipCode'] = this.zipCode;
|
||||
data['VersionID'] = this.versionID;
|
||||
data['Channel'] = this.channel;
|
||||
data['LanguageID'] = this.languageID;
|
||||
data['IPAdress'] = this.iPAdress;
|
||||
data['generalid'] = this.generalid;
|
||||
data['PatientOutSA'] = this.patientOutSA;
|
||||
data['SessionID'] = this.sessionID;
|
||||
data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
|
||||
data['DeviceTypeID'] = this.deviceTypeID;
|
||||
data['TokenID'] = this.tokenID;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['isRegister'] = this.isRegister;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,316 @@
|
||||
class RegisterInfoResponse {
|
||||
Null date;
|
||||
int languageID;
|
||||
int serviceName;
|
||||
Null time;
|
||||
Null androidLink;
|
||||
Null authenticationTokenID;
|
||||
Null data;
|
||||
bool dataw;
|
||||
int dietType;
|
||||
Null errorCode;
|
||||
Null errorEndUserMessage;
|
||||
Null errorEndUserMessageN;
|
||||
Null errorMessage;
|
||||
int errorType;
|
||||
int foodCategory;
|
||||
Null iOSLink;
|
||||
bool isAuthenticated;
|
||||
int mealOrderStatus;
|
||||
int mealType;
|
||||
int messageStatus;
|
||||
int numberOfResultRecords;
|
||||
Null patientBlodType;
|
||||
Null successMsg;
|
||||
Null successMsgN;
|
||||
Null accessTokenObject;
|
||||
int age;
|
||||
Null clientIdentifierId;
|
||||
int createdBy;
|
||||
String dateOfBirth;
|
||||
String firstNameAr;
|
||||
String firstNameEn;
|
||||
String gender;
|
||||
Null genderAr;
|
||||
Null genderEn;
|
||||
String healthId;
|
||||
String idNumber;
|
||||
String idType;
|
||||
bool isHijri;
|
||||
int isInstertedOrUpdated;
|
||||
int isNull;
|
||||
int isPatientExistNHIC;
|
||||
String lastNameAr;
|
||||
String lastNameEn;
|
||||
Null listActiveAccessToken;
|
||||
String maritalStatus;
|
||||
String maritalStatusCode;
|
||||
String nationality;
|
||||
String nationalityCode;
|
||||
String occupation;
|
||||
String patientStatus;
|
||||
String placeofBirth;
|
||||
Null practitionerStatusCode;
|
||||
Null practitionerStatusDescAr;
|
||||
Null practitionerStatusDescEn;
|
||||
String secondNameAr;
|
||||
String secondNameEn;
|
||||
String thirdNameAr;
|
||||
String thirdNameEn;
|
||||
Null accessToken;
|
||||
int categoryCode;
|
||||
Null categoryNameAr;
|
||||
Null categoryNameEn;
|
||||
int constraintCode;
|
||||
Null constraintNameAr;
|
||||
Null constraintNameEn;
|
||||
Null content;
|
||||
Null licenseExpiryDate;
|
||||
Null licenseIssuedDate;
|
||||
Null licenseStatusCode;
|
||||
Null licenseStatusDescAr;
|
||||
Null licenseStatusDescEn;
|
||||
Null organizations;
|
||||
Null registrationNumber;
|
||||
int specialtyCode;
|
||||
Null specialtyNameAr;
|
||||
Null specialtyNameEn;
|
||||
|
||||
RegisterInfoResponse(
|
||||
{this.date,
|
||||
this.languageID,
|
||||
this.serviceName,
|
||||
this.time,
|
||||
this.androidLink,
|
||||
this.authenticationTokenID,
|
||||
this.data,
|
||||
this.dataw,
|
||||
this.dietType,
|
||||
this.errorCode,
|
||||
this.errorEndUserMessage,
|
||||
this.errorEndUserMessageN,
|
||||
this.errorMessage,
|
||||
this.errorType,
|
||||
this.foodCategory,
|
||||
this.iOSLink,
|
||||
this.isAuthenticated,
|
||||
this.mealOrderStatus,
|
||||
this.mealType,
|
||||
this.messageStatus,
|
||||
this.numberOfResultRecords,
|
||||
this.patientBlodType,
|
||||
this.successMsg,
|
||||
this.successMsgN,
|
||||
this.accessTokenObject,
|
||||
this.age,
|
||||
this.clientIdentifierId,
|
||||
this.createdBy,
|
||||
this.dateOfBirth,
|
||||
this.firstNameAr,
|
||||
this.firstNameEn,
|
||||
this.gender,
|
||||
this.genderAr,
|
||||
this.genderEn,
|
||||
this.healthId,
|
||||
this.idNumber,
|
||||
this.idType,
|
||||
this.isHijri,
|
||||
this.isInstertedOrUpdated,
|
||||
this.isNull,
|
||||
this.isPatientExistNHIC,
|
||||
this.lastNameAr,
|
||||
this.lastNameEn,
|
||||
this.listActiveAccessToken,
|
||||
this.maritalStatus,
|
||||
this.maritalStatusCode,
|
||||
this.nationality,
|
||||
this.nationalityCode,
|
||||
this.occupation,
|
||||
this.patientStatus,
|
||||
this.placeofBirth,
|
||||
this.practitionerStatusCode,
|
||||
this.practitionerStatusDescAr,
|
||||
this.practitionerStatusDescEn,
|
||||
this.secondNameAr,
|
||||
this.secondNameEn,
|
||||
this.thirdNameAr,
|
||||
this.thirdNameEn,
|
||||
this.accessToken,
|
||||
this.categoryCode,
|
||||
this.categoryNameAr,
|
||||
this.categoryNameEn,
|
||||
this.constraintCode,
|
||||
this.constraintNameAr,
|
||||
this.constraintNameEn,
|
||||
this.content,
|
||||
this.licenseExpiryDate,
|
||||
this.licenseIssuedDate,
|
||||
this.licenseStatusCode,
|
||||
this.licenseStatusDescAr,
|
||||
this.licenseStatusDescEn,
|
||||
this.organizations,
|
||||
this.registrationNumber,
|
||||
this.specialtyCode,
|
||||
this.specialtyNameAr,
|
||||
this.specialtyNameEn});
|
||||
|
||||
RegisterInfoResponse.fromJson(Map<String, dynamic> json) {
|
||||
date = json['Date'];
|
||||
languageID = json['LanguageID'];
|
||||
serviceName = json['ServiceName'];
|
||||
time = json['Time'];
|
||||
androidLink = json['AndroidLink'];
|
||||
authenticationTokenID = json['AuthenticationTokenID'];
|
||||
data = json['Data'];
|
||||
dataw = json['Dataw'];
|
||||
dietType = json['DietType'];
|
||||
errorCode = json['ErrorCode'];
|
||||
errorEndUserMessage = json['ErrorEndUserMessage'];
|
||||
errorEndUserMessageN = json['ErrorEndUserMessageN'];
|
||||
errorMessage = json['ErrorMessage'];
|
||||
errorType = json['ErrorType'];
|
||||
foodCategory = json['FoodCategory'];
|
||||
iOSLink = json['IOSLink'];
|
||||
isAuthenticated = json['IsAuthenticated'];
|
||||
mealOrderStatus = json['MealOrderStatus'];
|
||||
mealType = json['MealType'];
|
||||
messageStatus = json['MessageStatus'];
|
||||
numberOfResultRecords = json['NumberOfResultRecords'];
|
||||
patientBlodType = json['PatientBlodType'];
|
||||
successMsg = json['SuccessMsg'];
|
||||
successMsgN = json['SuccessMsgN'];
|
||||
accessTokenObject = json['AccessTokenObject'];
|
||||
age = json['Age'];
|
||||
clientIdentifierId = json['ClientIdentifierId'];
|
||||
createdBy = json['CreatedBy'];
|
||||
dateOfBirth = json['DateOfBirth'];
|
||||
firstNameAr = json['FirstNameAr'];
|
||||
firstNameEn = json['FirstNameEn'];
|
||||
gender = json['Gender'];
|
||||
genderAr = json['GenderAr'];
|
||||
genderEn = json['GenderEn'];
|
||||
healthId = json['HealthId'];
|
||||
idNumber = json['IdNumber'];
|
||||
idType = json['IdType'];
|
||||
isHijri = json['IsHijri'];
|
||||
isInstertedOrUpdated = json['IsInstertedOrUpdated'];
|
||||
isNull = json['IsNull'];
|
||||
isPatientExistNHIC = json['IsPatientExistNHIC'];
|
||||
lastNameAr = json['LastNameAr'];
|
||||
lastNameEn = json['LastNameEn'];
|
||||
listActiveAccessToken = json['List_ActiveAccessToken'];
|
||||
maritalStatus = json['MaritalStatus'];
|
||||
maritalStatusCode = json['MaritalStatusCode'];
|
||||
nationality = json['Nationality'];
|
||||
nationalityCode = json['NationalityCode'];
|
||||
occupation = json['Occupation'];
|
||||
patientStatus = json['PatientStatus'];
|
||||
placeofBirth = json['PlaceofBirth'];
|
||||
practitionerStatusCode = json['PractitionerStatusCode'];
|
||||
practitionerStatusDescAr = json['PractitionerStatusDescAr'];
|
||||
practitionerStatusDescEn = json['PractitionerStatusDescEn'];
|
||||
secondNameAr = json['SecondNameAr'];
|
||||
secondNameEn = json['SecondNameEn'];
|
||||
thirdNameAr = json['ThirdNameAr'];
|
||||
thirdNameEn = json['ThirdNameEn'];
|
||||
accessToken = json['accessToken'];
|
||||
categoryCode = json['categoryCode'];
|
||||
categoryNameAr = json['categoryNameAr'];
|
||||
categoryNameEn = json['categoryNameEn'];
|
||||
constraintCode = json['constraintCode'];
|
||||
constraintNameAr = json['constraintNameAr'];
|
||||
constraintNameEn = json['constraintNameEn'];
|
||||
content = json['content'];
|
||||
licenseExpiryDate = json['licenseExpiryDate'];
|
||||
licenseIssuedDate = json['licenseIssuedDate'];
|
||||
licenseStatusCode = json['licenseStatusCode'];
|
||||
licenseStatusDescAr = json['licenseStatusDescAr'];
|
||||
licenseStatusDescEn = json['licenseStatusDescEn'];
|
||||
organizations = json['organizations'];
|
||||
registrationNumber = json['registrationNumber'];
|
||||
specialtyCode = json['specialtyCode'];
|
||||
specialtyNameAr = json['specialtyNameAr'];
|
||||
specialtyNameEn = json['specialtyNameEn'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['Date'] = this.date;
|
||||
data['LanguageID'] = this.languageID;
|
||||
data['ServiceName'] = this.serviceName;
|
||||
data['Time'] = this.time;
|
||||
data['AndroidLink'] = this.androidLink;
|
||||
data['AuthenticationTokenID'] = this.authenticationTokenID;
|
||||
data['Data'] = this.data;
|
||||
data['Dataw'] = this.dataw;
|
||||
data['DietType'] = this.dietType;
|
||||
data['ErrorCode'] = this.errorCode;
|
||||
data['ErrorEndUserMessage'] = this.errorEndUserMessage;
|
||||
data['ErrorEndUserMessageN'] = this.errorEndUserMessageN;
|
||||
data['ErrorMessage'] = this.errorMessage;
|
||||
data['ErrorType'] = this.errorType;
|
||||
data['FoodCategory'] = this.foodCategory;
|
||||
data['IOSLink'] = this.iOSLink;
|
||||
data['IsAuthenticated'] = this.isAuthenticated;
|
||||
data['MealOrderStatus'] = this.mealOrderStatus;
|
||||
data['MealType'] = this.mealType;
|
||||
data['MessageStatus'] = this.messageStatus;
|
||||
data['NumberOfResultRecords'] = this.numberOfResultRecords;
|
||||
data['PatientBlodType'] = this.patientBlodType;
|
||||
data['SuccessMsg'] = this.successMsg;
|
||||
data['SuccessMsgN'] = this.successMsgN;
|
||||
data['AccessTokenObject'] = this.accessTokenObject;
|
||||
data['Age'] = this.age;
|
||||
data['ClientIdentifierId'] = this.clientIdentifierId;
|
||||
data['CreatedBy'] = this.createdBy;
|
||||
data['DateOfBirth'] = this.dateOfBirth;
|
||||
data['FirstNameAr'] = this.firstNameAr;
|
||||
data['FirstNameEn'] = this.firstNameEn;
|
||||
data['Gender'] = this.gender;
|
||||
data['GenderAr'] = this.genderAr;
|
||||
data['GenderEn'] = this.genderEn;
|
||||
data['HealthId'] = this.healthId;
|
||||
data['IdNumber'] = this.idNumber;
|
||||
data['IdType'] = this.idType;
|
||||
data['IsHijri'] = this.isHijri;
|
||||
data['IsInstertedOrUpdated'] = this.isInstertedOrUpdated;
|
||||
data['IsNull'] = this.isNull;
|
||||
data['IsPatientExistNHIC'] = this.isPatientExistNHIC;
|
||||
data['LastNameAr'] = this.lastNameAr;
|
||||
data['LastNameEn'] = this.lastNameEn;
|
||||
data['List_ActiveAccessToken'] = this.listActiveAccessToken;
|
||||
data['MaritalStatus'] = this.maritalStatus;
|
||||
data['MaritalStatusCode'] = this.maritalStatusCode;
|
||||
data['Nationality'] = this.nationality;
|
||||
data['NationalityCode'] = this.nationalityCode;
|
||||
data['Occupation'] = this.occupation;
|
||||
data['PatientStatus'] = this.patientStatus;
|
||||
data['PlaceofBirth'] = this.placeofBirth;
|
||||
data['PractitionerStatusCode'] = this.practitionerStatusCode;
|
||||
data['PractitionerStatusDescAr'] = this.practitionerStatusDescAr;
|
||||
data['PractitionerStatusDescEn'] = this.practitionerStatusDescEn;
|
||||
data['SecondNameAr'] = this.secondNameAr;
|
||||
data['SecondNameEn'] = this.secondNameEn;
|
||||
data['ThirdNameAr'] = this.thirdNameAr;
|
||||
data['ThirdNameEn'] = this.thirdNameEn;
|
||||
data['accessToken'] = this.accessToken;
|
||||
data['categoryCode'] = this.categoryCode;
|
||||
data['categoryNameAr'] = this.categoryNameAr;
|
||||
data['categoryNameEn'] = this.categoryNameEn;
|
||||
data['constraintCode'] = this.constraintCode;
|
||||
data['constraintNameAr'] = this.constraintNameAr;
|
||||
data['constraintNameEn'] = this.constraintNameEn;
|
||||
data['content'] = this.content;
|
||||
data['licenseExpiryDate'] = this.licenseExpiryDate;
|
||||
data['licenseIssuedDate'] = this.licenseIssuedDate;
|
||||
data['licenseStatusCode'] = this.licenseStatusCode;
|
||||
data['licenseStatusDescAr'] = this.licenseStatusDescAr;
|
||||
data['licenseStatusDescEn'] = this.licenseStatusDescEn;
|
||||
data['organizations'] = this.organizations;
|
||||
data['registrationNumber'] = this.registrationNumber;
|
||||
data['specialtyCode'] = this.specialtyCode;
|
||||
data['specialtyNameAr'] = this.specialtyNameAr;
|
||||
data['specialtyNameEn'] = this.specialtyNameEn;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,154 @@
|
||||
import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
|
||||
import 'package:diplomaticquarterapp/config/size_config.dart';
|
||||
import 'package:diplomaticquarterapp/models/Authentication/register_info_response.dart';
|
||||
import 'package:diplomaticquarterapp/pages/login/login-type.dart';
|
||||
import 'package:diplomaticquarterapp/services/authentication/auth_provider.dart';
|
||||
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
|
||||
import 'package:diplomaticquarterapp/uitl/app_toast.dart';
|
||||
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
||||
import 'package:diplomaticquarterapp/uitl/utils.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/buttons/button.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/buttons/defaultButton.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/card/rounded_container.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/input/text_field.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/mobile-no/mobile_no.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/text/app_texts_widget.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class RegisterInfo extends StatefulWidget {
|
||||
@override
|
||||
_RegisterInfo createState() => _RegisterInfo();
|
||||
}
|
||||
|
||||
class _RegisterInfo extends State<RegisterInfo> {
|
||||
final authService = new AuthProvider();
|
||||
final sharedPref = new AppSharedPreferences();
|
||||
RegisterInfoResponse registerInfo;
|
||||
bool isLoading;
|
||||
int page = 1;
|
||||
@override
|
||||
void initState() {
|
||||
getRegisterInfo();
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AppScaffold(
|
||||
appBarTitle: TranslationBase.of(context).register,
|
||||
isShowAppBar: true,
|
||||
body: SingleChildScrollView(
|
||||
child: Container(
|
||||
padding: EdgeInsets.only(top: 10, left: 20, right: 20, bottom: 30),
|
||||
height: SizeConfig.realScreenHeight * .9,
|
||||
width: SizeConfig.realScreenWidth,
|
||||
child: Column(children: <Widget>[
|
||||
Expanded(
|
||||
flex: 1,
|
||||
child: AppText(
|
||||
TranslationBase.of(context).patientInfo,
|
||||
fontSize: SizeConfig.textMultiplier * 3,
|
||||
textAlign: TextAlign.left,
|
||||
)),
|
||||
registerInfo != null && page == 1
|
||||
? Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: <Widget>[
|
||||
AppText('National ID'),
|
||||
Container(
|
||||
margin: EdgeInsets.only(bottom: 10),
|
||||
child: TextFields(
|
||||
hintText: registerInfo.idNumber,
|
||||
prefixIcon: Icon(Icons.chrome_reader_mode,
|
||||
color: Colors.red),
|
||||
padding: EdgeInsets.only(
|
||||
top: 20, bottom: 20, left: 10, right: 10),
|
||||
readOnly: true,
|
||||
)),
|
||||
AppText('Name'),
|
||||
Container(
|
||||
margin: EdgeInsets.only(bottom: 10),
|
||||
child: TextFields(
|
||||
hintText: registerInfo.firstNameEn +
|
||||
' ' +
|
||||
registerInfo.lastNameEn,
|
||||
padding: EdgeInsets.only(
|
||||
top: 20, bottom: 20, left: 10, right: 10),
|
||||
readOnly: true,
|
||||
)),
|
||||
AppText('Gender'),
|
||||
Container(
|
||||
margin: EdgeInsets.only(bottom: 10),
|
||||
child: TextFields(
|
||||
hintText: registerInfo.maritalStatusCode == 'U'
|
||||
? 'Unknown'
|
||||
: registerInfo.maritalStatusCode == 'M'
|
||||
? 'Male'
|
||||
: 'Female',
|
||||
padding: EdgeInsets.only(
|
||||
top: 20, bottom: 20, left: 10, right: 10),
|
||||
readOnly: true,
|
||||
)),
|
||||
AppText('Nationality'),
|
||||
Container(
|
||||
margin: EdgeInsets.only(bottom: 10),
|
||||
child: TextFields(
|
||||
hintText: registerInfo.nationalityCode,
|
||||
padding: EdgeInsets.only(
|
||||
top: 20, bottom: 20, left: 10, right: 10),
|
||||
readOnly: true,
|
||||
)),
|
||||
AppText('Date of Birth'),
|
||||
Container(
|
||||
margin: EdgeInsets.only(bottom: 10),
|
||||
child: TextFields(
|
||||
hintText: registerInfo.dateOfBirth,
|
||||
padding: EdgeInsets.only(
|
||||
top: 20, bottom: 20, left: 10, right: 10),
|
||||
readOnly: true,
|
||||
)),
|
||||
],
|
||||
)
|
||||
: registerInfo != null && page == 2
|
||||
? Column(
|
||||
children: <Widget>[],
|
||||
)
|
||||
: SizedBox(),
|
||||
Expanded(
|
||||
flex: 2,
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: <Widget>[
|
||||
Row(
|
||||
children: <Widget>[
|
||||
Expanded(
|
||||
child: DefaultButton(
|
||||
TranslationBase.of(context).next,
|
||||
() => {nextPage()},
|
||||
textColor: Colors.white,
|
||||
))
|
||||
],
|
||||
),
|
||||
],
|
||||
))
|
||||
]),
|
||||
)));
|
||||
}
|
||||
|
||||
nextPage() {
|
||||
setState(() {
|
||||
page++;
|
||||
});
|
||||
}
|
||||
|
||||
registerNow() {}
|
||||
getRegisterInfo() async {
|
||||
registerInfo =
|
||||
RegisterInfoResponse.fromJson(await sharedPref.getObject(NHIC_DATA));
|
||||
|
||||
print(await sharedPref.getObject(NHIC_DATA));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue