Merge branch 'h2o_improvement' into 'development'
H2o improvement See merge request Cloud_Solution/diplomatic-quarter!259merge-requests/260/merge
commit
1d724a8db6
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,104 @@
|
||||
class UserDetailModel {
|
||||
int userID;
|
||||
int patientID;
|
||||
int patientType;
|
||||
bool patientOutSA;
|
||||
String firstName;
|
||||
String middleName;
|
||||
String lastName;
|
||||
String firstNameN;
|
||||
String middleNameN;
|
||||
String lastNameN;
|
||||
String identificationNo;
|
||||
String mobile;
|
||||
String emailID;
|
||||
String zipCode;
|
||||
String dOB;
|
||||
String gender;
|
||||
int activityID;
|
||||
String createdDate;
|
||||
double height;
|
||||
double weight;
|
||||
bool isHeightInCM;
|
||||
bool isWeightInKG;
|
||||
bool isNotificationON;
|
||||
|
||||
UserDetailModel(
|
||||
{this.userID,
|
||||
this.patientID,
|
||||
this.patientType,
|
||||
this.patientOutSA,
|
||||
this.firstName,
|
||||
this.middleName,
|
||||
this.lastName,
|
||||
this.firstNameN,
|
||||
this.middleNameN,
|
||||
this.lastNameN,
|
||||
this.identificationNo,
|
||||
this.mobile,
|
||||
this.emailID,
|
||||
this.zipCode,
|
||||
this.dOB,
|
||||
this.gender,
|
||||
this.activityID,
|
||||
this.createdDate,
|
||||
this.height,
|
||||
this.weight,
|
||||
this.isHeightInCM,
|
||||
this.isWeightInKG,
|
||||
this.isNotificationON});
|
||||
|
||||
UserDetailModel.fromJson(Map<String, dynamic> json) {
|
||||
userID = json['UserID'];
|
||||
patientID = json['PatientID'];
|
||||
patientType = json['PatientType'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
firstName = json['FirstName'];
|
||||
middleName = json['MiddleName'];
|
||||
lastName = json['LastName'];
|
||||
firstNameN = json['FirstNameN'];
|
||||
middleNameN = json['MiddleNameN'];
|
||||
lastNameN = json['LastNameN'];
|
||||
identificationNo = json['IdentificationNo'];
|
||||
mobile = json['Mobile'];
|
||||
emailID = json['EmailID'];
|
||||
zipCode = json['ZipCode'];
|
||||
dOB = json['DOB'];
|
||||
gender = json['Gender'];
|
||||
activityID = json['ActivityID'];
|
||||
createdDate = json['CreatedDate'];
|
||||
height = json['Height'];
|
||||
weight = json['Weight'];
|
||||
isHeightInCM = json['IsHeightInCM'];
|
||||
isWeightInKG = json['IsWeightInKG'];
|
||||
isNotificationON = json['IsNotificationON'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['UserID'] = this.userID;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['PatientType'] = this.patientType;
|
||||
data['PatientOutSA'] = this.patientOutSA;
|
||||
data['FirstName'] = this.firstName;
|
||||
data['MiddleName'] = this.middleName;
|
||||
data['LastName'] = this.lastName;
|
||||
data['FirstNameN'] = this.firstNameN;
|
||||
data['MiddleNameN'] = this.middleNameN;
|
||||
data['LastNameN'] = this.lastNameN;
|
||||
data['IdentificationNo'] = this.identificationNo;
|
||||
data['Mobile'] = this.mobile;
|
||||
data['EmailID'] = this.emailID;
|
||||
data['ZipCode'] = this.zipCode;
|
||||
data['DOB'] = this.dOB;
|
||||
data['Gender'] = this.gender;
|
||||
data['ActivityID'] = this.activityID;
|
||||
data['CreatedDate'] = this.createdDate;
|
||||
data['Height'] = this.height;
|
||||
data['Weight'] = this.weight;
|
||||
data['IsHeightInCM'] = this.isHeightInCM;
|
||||
data['IsWeightInKG'] = this.isWeightInKG;
|
||||
data['IsNotificationON'] = this.isNotificationON;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,124 @@
|
||||
class UserDetailRequestModel {
|
||||
String activityID;
|
||||
int channel;
|
||||
int deviceTypeID;
|
||||
String dOB;
|
||||
String email;
|
||||
String firstName;
|
||||
String gender;
|
||||
String generalid;
|
||||
double height;
|
||||
String identificationNo;
|
||||
String iPAdress;
|
||||
bool isDentalAllowedBackend;
|
||||
bool isHeightInCM;
|
||||
bool isNotificationOn;
|
||||
bool isWeightInKG;
|
||||
int languageID;
|
||||
String lastName;
|
||||
String middleName;
|
||||
String mobileNumber;
|
||||
int patientID;
|
||||
int patientOutSA;
|
||||
int patientType;
|
||||
int patientTypeID;
|
||||
String sessionID;
|
||||
String tokenID;
|
||||
double versionID;
|
||||
double weight;
|
||||
String zipCode;
|
||||
|
||||
UserDetailRequestModel(
|
||||
{this.activityID,
|
||||
this.channel,
|
||||
this.deviceTypeID,
|
||||
this.dOB,
|
||||
this.email,
|
||||
this.firstName,
|
||||
this.gender,
|
||||
this.generalid,
|
||||
this.height,
|
||||
this.identificationNo,
|
||||
this.iPAdress,
|
||||
this.isDentalAllowedBackend,
|
||||
this.isHeightInCM,
|
||||
this.isNotificationOn,
|
||||
this.isWeightInKG,
|
||||
this.languageID,
|
||||
this.lastName,
|
||||
this.middleName,
|
||||
this.mobileNumber,
|
||||
this.patientID,
|
||||
this.patientOutSA,
|
||||
this.patientType,
|
||||
this.patientTypeID,
|
||||
this.sessionID,
|
||||
this.tokenID,
|
||||
this.versionID,
|
||||
this.weight,
|
||||
this.zipCode});
|
||||
|
||||
UserDetailRequestModel.fromJson(Map<String, dynamic> json) {
|
||||
activityID = json['ActivityID'];
|
||||
channel = json['Channel'];
|
||||
deviceTypeID = json['DeviceTypeID'];
|
||||
dOB = json['DOB'];
|
||||
email = json['Email'];
|
||||
firstName = json['FirstName'];
|
||||
gender = json['Gender'];
|
||||
generalid = json['generalid'];
|
||||
height = json['Height'];
|
||||
identificationNo = json['IdentificationNo'];
|
||||
iPAdress = json['IPAdress'];
|
||||
isDentalAllowedBackend = json['isDentalAllowedBackend'];
|
||||
isHeightInCM = json['IsHeightInCM'];
|
||||
isNotificationOn = json['isNotificationOn'];
|
||||
isWeightInKG = json['IsWeightInKG'];
|
||||
languageID = json['LanguageID'];
|
||||
lastName = json['LastName'];
|
||||
middleName = json['MiddleName'];
|
||||
mobileNumber = json['MobileNumber'];
|
||||
patientID = json['PatientID'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
patientType = json['PatientType'];
|
||||
patientTypeID = json['PatientTypeID'];
|
||||
sessionID = json['SessionID'];
|
||||
tokenID = json['TokenID'];
|
||||
versionID = json['VersionID'];
|
||||
weight = json['Weight'];
|
||||
zipCode = json['ZipCode'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['ActivityID'] = this.activityID;
|
||||
data['Channel'] = this.channel;
|
||||
data['DeviceTypeID'] = this.deviceTypeID;
|
||||
data['DOB'] = this.dOB;
|
||||
data['Email'] = this.email;
|
||||
data['FirstName'] = this.firstName;
|
||||
data['Gender'] = this.gender;
|
||||
data['generalid'] = this.generalid;
|
||||
data['Height'] = this.height;
|
||||
data['IdentificationNo'] = this.identificationNo;
|
||||
data['IPAdress'] = this.iPAdress;
|
||||
data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
|
||||
data['IsHeightInCM'] = this.isHeightInCM;
|
||||
data['isNotificationOn'] = this.isNotificationOn;
|
||||
data['IsWeightInKG'] = this.isWeightInKG;
|
||||
data['LanguageID'] = this.languageID;
|
||||
data['LastName'] = this.lastName;
|
||||
data['MiddleName'] = this.middleName;
|
||||
data['MobileNumber'] = this.mobileNumber;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['PatientOutSA'] = this.patientOutSA;
|
||||
data['PatientType'] = this.patientType;
|
||||
data['PatientTypeID'] = this.patientTypeID;
|
||||
data['SessionID'] = this.sessionID;
|
||||
data['TokenID'] = this.tokenID;
|
||||
data['VersionID'] = this.versionID;
|
||||
data['Weight'] = this.weight;
|
||||
data['ZipCode'] = this.zipCode;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,101 @@
|
||||
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class CommonRadioButtonDialog extends StatefulWidget {
|
||||
final List<String> list;
|
||||
final String title;
|
||||
final int selectedIndex;
|
||||
final Function(int) onSelect;
|
||||
CommonRadioButtonDialog({Key key, this.title = "", this.selectedIndex = 0, this.list, this.onSelect}) : super(key: key);
|
||||
|
||||
@override
|
||||
_CommonRadioButtonDialogState createState() {
|
||||
return _CommonRadioButtonDialogState();
|
||||
}
|
||||
}
|
||||
|
||||
class _CommonRadioButtonDialogState extends State<CommonRadioButtonDialog> {
|
||||
int _selectedIndex = 0;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_selectedIndex = widget.selectedIndex;
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Dialog(
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
),
|
||||
elevation: 0,
|
||||
backgroundColor: Colors.white,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Container(
|
||||
height: widget.title == "" ? 24 : 50,
|
||||
alignment: Alignment.center,
|
||||
child: Text(
|
||||
widget.title,
|
||||
style: TextStyle(color: Colors.black87, fontSize: 18, fontWeight: FontWeight.w500),
|
||||
),
|
||||
),
|
||||
Divider(height: 1, color: Colors.black38),
|
||||
ListView.builder(
|
||||
shrinkWrap: true,
|
||||
padding: EdgeInsets.only(top: 4, bottom: 4),
|
||||
physics: NeverScrollableScrollPhysics(),
|
||||
itemBuilder: (context, index) {
|
||||
return RadioListTile(
|
||||
value: index,
|
||||
dense: true,
|
||||
activeColor: Colors.black54,
|
||||
groupValue: _selectedIndex,
|
||||
onChanged: (_index) => setState(() => _selectedIndex = _index),
|
||||
title: Text(
|
||||
widget.list[index],
|
||||
style: TextStyle(fontWeight: FontWeight.w500),
|
||||
),
|
||||
);
|
||||
},
|
||||
itemCount: widget.list?.length ?? 0,
|
||||
),
|
||||
Divider(height: 1, color: Colors.black38),
|
||||
Container(
|
||||
height: 50,
|
||||
alignment: Alignment.center,
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: FlatButton(
|
||||
child: Text(
|
||||
TranslationBase.of(context).cancel,
|
||||
style: TextStyle(color: Colors.redAccent, fontSize: 16, fontWeight: FontWeight.w500),
|
||||
),
|
||||
onPressed: () => Navigator.pop(context),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: FlatButton(
|
||||
child: Text(
|
||||
TranslationBase.of(context).ok,
|
||||
style: TextStyle(color: Colors.black87, fontSize: 16, fontWeight: FontWeight.w500),
|
||||
),
|
||||
onPressed: () => widget.onSelect(_selectedIndex),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue