|
|
|
|
@ -60,7 +60,9 @@ class _AddProcedurePageState extends State<AddProcedurePage> {
|
|
|
|
|
},
|
|
|
|
|
builder: (BuildContext context, ProcedureViewModel model, Widget? child) => AppScaffold(
|
|
|
|
|
isShowAppBar: false,
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
|
body: NetworkBaseView(
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: FractionallySizedBox(
|
|
|
|
|
widthFactor: .97,
|
|
|
|
|
child: Center(
|
|
|
|
|
@ -69,9 +71,10 @@ class _AddProcedurePageState extends State<AddProcedurePage> {
|
|
|
|
|
Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.070,
|
|
|
|
|
),
|
|
|
|
|
NetworkBaseView(
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
child: Container(
|
|
|
|
|
// NetworkBaseView(
|
|
|
|
|
// baseViewModel: model,
|
|
|
|
|
// child:
|
|
|
|
|
Container(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.all(12.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
@ -138,9 +141,10 @@ class _AddProcedurePageState extends State<AddProcedurePage> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if ((procedureType == ProcedureType.PROCEDURE ? procedureName.text.isNotEmpty : true) && model.categoriesList.length != 0)
|
|
|
|
|
NetworkBaseView(
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
child: EntityListCheckboxSearchWidget(
|
|
|
|
|
// NetworkBaseView(
|
|
|
|
|
// baseViewModel: model,
|
|
|
|
|
// child:
|
|
|
|
|
EntityListCheckboxSearchWidget(
|
|
|
|
|
model: widget.model,
|
|
|
|
|
masterList: model.categoriesList[0].entityList!,
|
|
|
|
|
removeProcedure: (item) {
|
|
|
|
|
@ -158,7 +162,8 @@ class _AddProcedurePageState extends State<AddProcedurePage> {
|
|
|
|
|
selectedType = val;
|
|
|
|
|
},
|
|
|
|
|
isEntityListSelected: (master) => widget.model.isEntityListSelected(master, entityList),
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
// ),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
)
|
|
|
|
|
@ -166,12 +171,13 @@ class _AddProcedurePageState extends State<AddProcedurePage> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// ),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
bottomSheet: model.state == ViewState.BusyLocal || entityList.isEmpty
|
|
|
|
|
? Container(
|
|
|
|
|
height: 0,
|
|
|
|
|
@ -193,16 +199,16 @@ class _AddProcedurePageState extends State<AddProcedurePage> {
|
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
|
return ConfirmationDialog(title:TranslationBase.of(context).afterOrderCreation,
|
|
|
|
|
onTapGrant: () async{
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
// GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
await widget.model.preparePostProcedure(
|
|
|
|
|
orderType: selectedType.toString(),
|
|
|
|
|
entityList: entityList,
|
|
|
|
|
patient: patient,
|
|
|
|
|
remarks: remarksController.text,
|
|
|
|
|
procedureType: ProcedureType.PROCEDURE,
|
|
|
|
|
isLocalBusy: true,
|
|
|
|
|
isLocalBusy: false,
|
|
|
|
|
);
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
// GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|