|
|
@ -6,6 +6,7 @@ import '../base/base_view.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/insurance_card_View_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/insurance_card_View_model.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class InsuranceApproval extends StatefulWidget {
|
|
|
|
class InsuranceApproval extends StatefulWidget {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
@ -21,7 +22,7 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
AppScaffold(
|
|
|
|
AppScaffold(
|
|
|
|
isShowAppBar: true,
|
|
|
|
isShowAppBar: true,
|
|
|
|
baseViewModel: model,
|
|
|
|
baseViewModel: model,
|
|
|
|
appBarTitle: 'Approvals',
|
|
|
|
appBarTitle: TranslationBase.of(context).approvals,
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
@ -39,10 +40,10 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'Total approval unused',
|
|
|
|
TranslationBase.of(context).totalApproval,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color(0xff60688B),
|
|
|
|
color: Color(0xff60688B),
|
|
|
|
fontSize: 19.5,
|
|
|
|
fontSize: 19.0,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -72,7 +73,7 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
ExpansionTile(
|
|
|
|
ExpansionTile(
|
|
|
|
title: Container(
|
|
|
|
title: Container(
|
|
|
|
height: 85.0,
|
|
|
|
height: 120.0,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment:
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
CrossAxisAlignment.start,
|
|
|
@ -141,7 +142,7 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
model.insuranceApproval[index]
|
|
|
|
model.insuranceApproval[index]
|
|
|
|
.doctorName,
|
|
|
|
.doctorName,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 15.0,
|
|
|
|
fontSize: 17.0,
|
|
|
|
fontStyle: FontStyle.italic),
|
|
|
|
fontStyle: FontStyle.italic),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
@ -156,7 +157,8 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'Approval No.: ' +
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
|
|
|
.approvalNo +
|
|
|
|
model.insuranceApproval[index]
|
|
|
|
model.insuranceApproval[index]
|
|
|
|
.approvalNo
|
|
|
|
.approvalNo
|
|
|
|
.toString(),
|
|
|
|
.toString(),
|
|
|
@ -171,7 +173,8 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
thickness: 1.0,
|
|
|
|
thickness: 1.0,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'Procedure Status: ' +
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
|
|
|
.procedureStatus +
|
|
|
|
model.insuranceApproval[index]
|
|
|
|
model.insuranceApproval[index]
|
|
|
|
.approvalStatusDescption,
|
|
|
|
.approvalStatusDescption,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
@ -184,7 +187,8 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
thickness: 1.0,
|
|
|
|
thickness: 1.0,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'Unused Count: ' +
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
|
|
|
.unusedCount +
|
|
|
|
model.insuranceApproval[index]
|
|
|
|
model.insuranceApproval[index]
|
|
|
|
.unUsedCount
|
|
|
|
.unUsedCount
|
|
|
|
.toString(),
|
|
|
|
.toString(),
|
|
|
@ -210,7 +214,8 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
// fontWeight: FontWeight.w600),
|
|
|
|
// fontWeight: FontWeight.w600),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'Company Name',
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
|
|
|
.companyName,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 17.5,
|
|
|
|
fontSize: 17.5,
|
|
|
@ -223,7 +228,8 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
thickness: 1.0,
|
|
|
|
thickness: 1.0,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'Receipt on: ' +
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
|
|
|
.receiptOn +
|
|
|
|
convertDateFormat(model
|
|
|
|
convertDateFormat(model
|
|
|
|
.insuranceApproval[index]
|
|
|
|
.insuranceApproval[index]
|
|
|
|
.rceiptOn),
|
|
|
|
.rceiptOn),
|
|
|
@ -238,7 +244,8 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
thickness: 1.0,
|
|
|
|
thickness: 1.0,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'expiryDate: ' +
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
|
|
|
.expiryDate +
|
|
|
|
convertDateFormat(model
|
|
|
|
convertDateFormat(model
|
|
|
|
.insuranceApproval[index]
|
|
|
|
.insuranceApproval[index]
|
|
|
|
.expiryDate),
|
|
|
|
.expiryDate),
|
|
|
@ -252,7 +259,8 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
height: 55.0,
|
|
|
|
height: 55.0,
|
|
|
|
thickness: 1.2,
|
|
|
|
thickness: 1.2,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
IntrinsicHeight(
|
|
|
|
|
|
|
|
child: Row(
|
|
|
|
crossAxisAlignment:
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.center,
|
|
|
|
CrossAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
@ -260,7 +268,9 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Text('Procedure Name '),
|
|
|
|
Text(TranslationBase.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
|
|
|
|
.procedureName),
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: SizeConfig
|
|
|
|
top: SizeConfig
|
|
|
@ -289,12 +299,16 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VerticalDivider(
|
|
|
|
VerticalDivider(
|
|
|
|
width: 10.0,
|
|
|
|
width: 10.0,
|
|
|
|
|
|
|
|
thickness: 1.2,
|
|
|
|
|
|
|
|
color: Colors.black,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Text('Procedure Status '),
|
|
|
|
Text(TranslationBase.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
|
|
|
|
.procedureStatus),
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: SizeConfig
|
|
|
|
top: SizeConfig
|
|
|
@ -315,17 +329,25 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 17.5,
|
|
|
|
fontSize: 17.5,
|
|
|
|
fontWeight:
|
|
|
|
fontWeight:
|
|
|
|
FontWeight.w600),
|
|
|
|
FontWeight
|
|
|
|
|
|
|
|
.w600),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
VerticalDivider(
|
|
|
|
|
|
|
|
width: 2.3,
|
|
|
|
|
|
|
|
thickness: 1.2,
|
|
|
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Text('Usage Status '),
|
|
|
|
Text(TranslationBase.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
|
|
|
|
.usageStatus),
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: SizeConfig
|
|
|
|
top: SizeConfig
|
|
|
@ -354,6 +376,7 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
Divider(
|
|
|
|
Divider(
|
|
|
|
color: Colors.black,
|
|
|
|
color: Colors.black,
|
|
|
|
height: 25.0,
|
|
|
|
height: 25.0,
|
|
|
|