CMC Module Completed
parent
3331edc10d
commit
da579dfd09
@ -0,0 +1,41 @@
|
||||
class CmcCreateServiceOrderReqModel {
|
||||
int? recordID;
|
||||
String? serviceID;
|
||||
String? selectedServiceName;
|
||||
String? selectedServiceNameAR;
|
||||
dynamic price;
|
||||
dynamic vAT;
|
||||
dynamic totalPrice;
|
||||
|
||||
CmcCreateServiceOrderReqModel({
|
||||
this.recordID,
|
||||
this.serviceID,
|
||||
this.selectedServiceName,
|
||||
this.selectedServiceNameAR,
|
||||
this.price,
|
||||
this.vAT,
|
||||
this.totalPrice,
|
||||
});
|
||||
|
||||
CmcCreateServiceOrderReqModel.fromJson(Map<String, dynamic> json) {
|
||||
recordID = json['RecordID'];
|
||||
serviceID = json['ServiceID'];
|
||||
selectedServiceName = json['selectedServiceName'];
|
||||
selectedServiceNameAR = json['selectedServiceNameAR'];
|
||||
price = json['Price'];
|
||||
vAT = json['VAT'];
|
||||
totalPrice = json['TotalPrice'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['RecordID'] = recordID;
|
||||
data['ServiceID'] = serviceID;
|
||||
data['selectedServiceName'] = selectedServiceName;
|
||||
data['selectedServiceNameAR'] = selectedServiceNameAR;
|
||||
data['Price'] = price;
|
||||
data['VAT'] = vAT;
|
||||
data['TotalPrice'] = totalPrice;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -1,427 +0,0 @@
|
||||
// import 'dart:async';
|
||||
//
|
||||
// import 'package:hmg_patient_app/core/enum/viewstate.dart';
|
||||
// import 'package:hmg_patient_app/core/model/AlHabibMedicalService/ComprehensiveMedicalCheckup/cmc_insert_pres_order_request_model.dart';
|
||||
// import 'package:hmg_patient_app/core/model/ImagesInfo.dart';
|
||||
// import 'package:hmg_patient_app/core/model/hospitals/hospitals_model.dart';
|
||||
// import 'package:hmg_patient_app/core/viewModels/AlHabibMedicalService/cmc_view_model.dart';
|
||||
// import 'package:hmg_patient_app/core/viewModels/project_view_model.dart';
|
||||
// import 'package:hmg_patient_app/pages/AlHabibMedicalService/ComprehensiveMedicalCheckup/Dialog/confirm_dialog.dart';
|
||||
// import 'package:hmg_patient_app/services/clinic_services/get_clinic_service.dart';
|
||||
// import 'package:hmg_patient_app/theme/colors.dart';
|
||||
// import 'package:hmg_patient_app/uitl/app_toast.dart';
|
||||
// import 'package:hmg_patient_app/uitl/gif_loader_dialog_utils.dart';
|
||||
// import 'package:hmg_patient_app/uitl/translations_delegate_base.dart';
|
||||
// import 'package:hmg_patient_app/uitl/utils.dart';
|
||||
// import 'package:hmg_patient_app/uitl/utils_new.dart';
|
||||
// import 'package:hmg_patient_app/widgets/buttons/defaultButton.dart';
|
||||
// import 'package:hmg_patient_app/widgets/others/app_scaffold_widget.dart';
|
||||
// import 'package:flutter/cupertino.dart';
|
||||
// import 'package:flutter/material.dart';
|
||||
// import 'package:flutter_svg/flutter_svg.dart';
|
||||
// import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||
// import 'package:maps_launcher/maps_launcher.dart';
|
||||
// import 'package:provider/provider.dart';
|
||||
//
|
||||
// class NewCMCStepThreePage extends StatefulWidget {
|
||||
// final CMCInsertPresOrderRequestModel cmcInsertPresOrderRequestModel;
|
||||
// final CMCViewModel model;
|
||||
//
|
||||
// NewCMCStepThreePage(
|
||||
// {Key? key,
|
||||
// required this.model,
|
||||
// required this.cmcInsertPresOrderRequestModel});
|
||||
//
|
||||
// @override
|
||||
// _NewCMCStepThreePageState createState() => _NewCMCStepThreePageState();
|
||||
// }
|
||||
//
|
||||
// class _NewCMCStepThreePageState extends State<NewCMCStepThreePage> {
|
||||
// Completer<GoogleMapController> _controller = Completer();
|
||||
//
|
||||
// String? projectDropdownValue;
|
||||
// late List<HospitalsModel> projectsList = [];
|
||||
// HospitalsModel? selectedHospital;
|
||||
// final GlobalKey projectDropdownKey = GlobalKey();
|
||||
// bool isLocationSelected = false;
|
||||
// ProjectViewModel? projectViewModel;
|
||||
//
|
||||
// static CameraPosition _kGooglePlex = CameraPosition(
|
||||
// target: LatLng(37.42796133580664, -122.085749655962),
|
||||
// zoom: 14.4746,
|
||||
// );
|
||||
// final Set<Marker> markers = new Set();
|
||||
//
|
||||
// @override
|
||||
// void initState() {
|
||||
// if (widget.cmcInsertPresOrderRequestModel.latitude != null) {
|
||||
// markers.clear();
|
||||
// markers.add(
|
||||
// Marker(
|
||||
// markerId: MarkerId(
|
||||
// widget.cmcInsertPresOrderRequestModel.latitude.hashCode
|
||||
// .toString(),
|
||||
// ),
|
||||
// position: LatLng(widget.cmcInsertPresOrderRequestModel.latitude!,
|
||||
// widget.cmcInsertPresOrderRequestModel.longitude!)),
|
||||
// );
|
||||
// _kGooglePlex = CameraPosition(
|
||||
// target: LatLng(widget.cmcInsertPresOrderRequestModel.latitude!,
|
||||
// widget.cmcInsertPresOrderRequestModel.longitude!),
|
||||
// zoom: 14.4746,
|
||||
// );
|
||||
// }
|
||||
// WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
// // if (projectViewModel.isLogin) {
|
||||
// getProjectsList();
|
||||
// // }
|
||||
// });
|
||||
// super.initState();
|
||||
// }
|
||||
//
|
||||
// @override
|
||||
// Widget build(BuildContext context) {
|
||||
// projectViewModel = Provider.of(context);
|
||||
// return AppScaffold(
|
||||
// isShowAppBar: true,
|
||||
// description: TranslationBase.of(context).infoCMC,
|
||||
// imagesInfo: [
|
||||
// ImagesInfo(
|
||||
// imageAr: 'https://hmgwebservices.com/Images/MobileApp/CMC/ar/0.png',
|
||||
// imageEn:
|
||||
// 'https://hmgwebservices.com/Images/MobileApp/CMC/en/0.png'),
|
||||
// ],
|
||||
// appBarTitle: TranslationBase.of(context).comprehensiveMedicalCheckup,
|
||||
// showNewAppBar: true,
|
||||
// showNewAppBarTitle: true,
|
||||
// backgroundColor: CustomColors.appBackgroudGreyColor,
|
||||
// baseViewModel: widget.model,
|
||||
// body: SingleChildScrollView(
|
||||
// physics: BouncingScrollPhysics(),
|
||||
// child: Container(
|
||||
// height: 500,
|
||||
// width: double.maxFinite,
|
||||
// margin: EdgeInsets.only(left: 12, right: 12),
|
||||
// child: Column(
|
||||
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||
// children: [
|
||||
// SizedBox(
|
||||
// height: 12,
|
||||
// ),
|
||||
// Text(
|
||||
// TranslationBase.of(context).orderSummary,
|
||||
// style: TextStyle(
|
||||
// fontSize: 16,
|
||||
// fontWeight: FontWeight.bold,
|
||||
// letterSpacing: -0.46,
|
||||
// ),
|
||||
// ),
|
||||
// SizedBox(
|
||||
// height: 12,
|
||||
// ),
|
||||
// Container(
|
||||
// decoration: cardRadius(12),
|
||||
// child: Container(
|
||||
// padding: EdgeInsets.all(8),
|
||||
// child: Column(
|
||||
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||
// children: [
|
||||
// Container(
|
||||
// width: double.infinity,
|
||||
// decoration: containerRadius(Colors.white, 12),
|
||||
// margin: EdgeInsets.only(top: 12),
|
||||
// padding: EdgeInsets.only(
|
||||
// left: 0, right: 0, top: 0, bottom: 12),
|
||||
// child: Row(
|
||||
// children: [
|
||||
// Flexible(
|
||||
// child: Column(
|
||||
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||
// children: [
|
||||
// Text(
|
||||
// TranslationBase.of(context).selectLocation,
|
||||
// style: TextStyle(
|
||||
// fontSize: 11,
|
||||
// letterSpacing: -0.44,
|
||||
// fontWeight: FontWeight.w600,
|
||||
// ),
|
||||
// ),
|
||||
// Container(
|
||||
// height: 18,
|
||||
// child: DropdownButtonHideUnderline(
|
||||
// child: DropdownButton<HospitalsModel>(
|
||||
// key: projectDropdownKey,
|
||||
// hint: new Text(
|
||||
// TranslationBase.of(context)
|
||||
// .selectHospital),
|
||||
// value: selectedHospital,
|
||||
// iconSize: 0,
|
||||
// isExpanded: true,
|
||||
// style: TextStyle(
|
||||
// fontSize: 14,
|
||||
// letterSpacing: -0.56,
|
||||
// color: Colors.black),
|
||||
// items: projectsList.map((item) {
|
||||
// return new DropdownMenuItem<
|
||||
// HospitalsModel>(
|
||||
// value: item,
|
||||
// child: new Text(item.name!),
|
||||
// );
|
||||
// }).toList(),
|
||||
// onChanged:
|
||||
// (HospitalsModel? newValue) async {
|
||||
// setState(() {
|
||||
// selectedHospital = newValue!;
|
||||
// projectDropdownValue = newValue
|
||||
// .mainProjectID
|
||||
// .toString();
|
||||
// isLocationSelected = true;
|
||||
// widget.cmcInsertPresOrderRequestModel
|
||||
// .projectID =
|
||||
// newValue.mainProjectID;
|
||||
// // getDoctorsList(context);
|
||||
// });
|
||||
// },
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// Icon(Icons.keyboard_arrow_down),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// SizedBox(
|
||||
// height: 6,
|
||||
// ),
|
||||
// isLocationSelected
|
||||
// ? Padding(
|
||||
// padding: const EdgeInsets.all(8.0),
|
||||
// child: Stack(
|
||||
// children: [
|
||||
// Container(
|
||||
// height: 200,
|
||||
// decoration: containerColorRadiusBorder(
|
||||
// Colors.white, 12, Colors.grey),
|
||||
// clipBehavior: Clip.antiAlias,
|
||||
// child: Container(
|
||||
// decoration: cardRadius(12),
|
||||
// clipBehavior: Clip.antiAlias,
|
||||
// margin: const EdgeInsets.all(0),
|
||||
// child: Image.network(
|
||||
// "https://maps.googleapis.com/maps/api/staticmap?center=" +
|
||||
// selectedHospital!.latitude
|
||||
// .toString() +
|
||||
// "," +
|
||||
// selectedHospital!.longitude
|
||||
// .toString() +
|
||||
// "&zoom=16&size=600x300&maptype=roadmap&markers=color:red%7C" +
|
||||
// selectedHospital!.latitude
|
||||
// .toString() +
|
||||
// "," +
|
||||
// selectedHospital!.longitude
|
||||
// .toString() +
|
||||
// "&key=AIzaSyCyDbWUM9d_sBUGIE8PcuShzPaqO08NSC8",
|
||||
// width: double.infinity,
|
||||
// height: double.infinity,
|
||||
// fit: BoxFit.cover,
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// Row(
|
||||
// mainAxisAlignment: MainAxisAlignment.end,
|
||||
// crossAxisAlignment: CrossAxisAlignment.end,
|
||||
// children: [
|
||||
// InkWell(
|
||||
// onTap: () {
|
||||
// getDirections();
|
||||
// },
|
||||
// child: Container(
|
||||
// decoration: cardRadius(1000),
|
||||
// margin: EdgeInsets.all(12),
|
||||
// child: Padding(
|
||||
// padding: const EdgeInsets.only(
|
||||
// left: 12,
|
||||
// right: 12,
|
||||
// top: 6,
|
||||
// bottom: 6),
|
||||
// child: Row(
|
||||
// children: [
|
||||
// Padding(
|
||||
// padding:
|
||||
// const EdgeInsets.all(3.0),
|
||||
// child: SvgPicture.asset(
|
||||
// "assets/images/new/direction.svg",
|
||||
// width: 13,
|
||||
// height: 13,
|
||||
// ),
|
||||
// ),
|
||||
// mWidth(6),
|
||||
// Text(
|
||||
// TranslationBase.of(context)
|
||||
// .getDirections,
|
||||
// style: TextStyle(
|
||||
// color: Colors.black,
|
||||
// fontSize: 11,
|
||||
// letterSpacing: -0.44,
|
||||
// fontWeight: FontWeight.w600,
|
||||
// ),
|
||||
// )
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// )
|
||||
// : Container(),
|
||||
// SizedBox(
|
||||
// height: 12,
|
||||
// ),
|
||||
// Text(
|
||||
// TranslationBase.of(context).selectedService,
|
||||
// style: TextStyle(
|
||||
// fontSize: 14,
|
||||
// fontWeight: FontWeight.bold,
|
||||
// letterSpacing: -0.46,
|
||||
// color: CustomColors.grey,
|
||||
// ),
|
||||
// ),
|
||||
// ...List.generate(
|
||||
// widget.cmcInsertPresOrderRequestModel
|
||||
// .patientERCMCInsertServicesList!.length,
|
||||
// (index) => Container(
|
||||
// child: Column(
|
||||
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||
// children: [
|
||||
// Text(
|
||||
// projectViewModel!.isArabic
|
||||
// ? widget
|
||||
// .cmcInsertPresOrderRequestModel
|
||||
// .patientERCMCInsertServicesList![index]
|
||||
// .selectedServiceNameAR!
|
||||
// : widget
|
||||
// .cmcInsertPresOrderRequestModel
|
||||
// .patientERCMCInsertServicesList![index]
|
||||
// .selectedServiceName!,
|
||||
// style: TextStyle(
|
||||
// fontSize: 12,
|
||||
// fontWeight: FontWeight.bold,
|
||||
// letterSpacing: -0.46,
|
||||
// ),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// )
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// )
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// bottomSheet: Container(
|
||||
// height: MediaQuery.of(context).size.height * 0.10,
|
||||
// width: double.infinity,
|
||||
// color: Colors.white,
|
||||
// child: Column(
|
||||
// mainAxisAlignment: MainAxisAlignment.center,
|
||||
// children: <Widget>[
|
||||
// Container(
|
||||
// width: MediaQuery.of(context).size.width * 0.9,
|
||||
// child: DefaultButton(
|
||||
// TranslationBase.of(context).confirm,
|
||||
// !isLocationSelected
|
||||
// ? null
|
||||
// : () async {
|
||||
// GifLoaderDialogUtils.showMyDialog(context);
|
||||
// String requestId = await widget.model.insertCMCOrderRC(
|
||||
// order: widget.cmcInsertPresOrderRequestModel);
|
||||
// GifLoaderDialogUtils.hideDialog(context);
|
||||
// if (widget.model.state != ViewState.ErrorLocal) {
|
||||
// showCMCConfirmDialog(
|
||||
// context,
|
||||
// requestId,
|
||||
// onClick: () {
|
||||
// Navigator.pop(context);
|
||||
// Navigator.pop(context);
|
||||
// },
|
||||
// );
|
||||
// } else {
|
||||
// AppToast.showErrorToast(message: widget.model.error);
|
||||
// }
|
||||
// },
|
||||
// color: CustomColors.green,
|
||||
// disabledColor: CustomColors.grey,
|
||||
// ),
|
||||
// // SecondaryButton(
|
||||
// // label: TranslationBase.of(context).confirm,
|
||||
// // color: CustomColors.green,
|
||||
// // onTap: () async {
|
||||
// // if(isLocationSelected) {
|
||||
// // GifLoaderDialogUtils.showMyDialog(context);
|
||||
// // String requestId = await widget.model.insertCMCOrderRC(order: widget.cmcInsertPresOrderRequestModel);
|
||||
// // GifLoaderDialogUtils.hideDialog(context);
|
||||
// // if (widget.model.state != ViewState.ErrorLocal) {
|
||||
// // showCMCConfirmDialog(
|
||||
// // context,
|
||||
// // requestId,
|
||||
// // onClick: () {
|
||||
// // Navigator.pop(context);
|
||||
// // Navigator.pop(context);
|
||||
// // },
|
||||
// // );
|
||||
// // } else {
|
||||
// // AppToast.showErrorToast(message: widget.model.error);
|
||||
// // }
|
||||
// // } else {
|
||||
// // Utils.showErrorToast("Please select hospital from the dropdown menu to continue");
|
||||
// // }
|
||||
// // },
|
||||
// // textColor: Theme.of(context).backgroundColor),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// );
|
||||
// }
|
||||
//
|
||||
// getDirections() {
|
||||
// if (isLocationSelected) {
|
||||
// MapsLauncher.launchCoordinates(double.parse(selectedHospital!.latitude!),
|
||||
// double.parse(selectedHospital!.longitude!), selectedHospital!.name);
|
||||
// } else {
|
||||
// Utils.showErrorToast(
|
||||
// "Please select address from the dropdown menu to get directions");
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// getProjectsList() {
|
||||
// int languageID = projectViewModel!.isArabic ? 1 : 2;
|
||||
// ClinicListService service = new ClinicListService();
|
||||
// GifLoaderDialogUtils.showMyDialog(context);
|
||||
// List<HospitalsModel> projectsListLocal = [];
|
||||
// service.getProjectsList(languageID, context).then((res) {
|
||||
// if (res['MessageStatus'] == 1) {
|
||||
// setState(() {
|
||||
// res['ListProject'].forEach((v) {
|
||||
// projectsListLocal.add(new HospitalsModel.fromJson(v));
|
||||
// });
|
||||
// projectsList = projectsListLocal;
|
||||
// });
|
||||
// }
|
||||
// GifLoaderDialogUtils.hideDialog(context);
|
||||
// }).catchError((err) {
|
||||
// GifLoaderDialogUtils.hideDialog(context);
|
||||
// }).catchError((err) {
|
||||
// GifLoaderDialogUtils.hideDialog(context);
|
||||
// print(err);
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
@ -1,183 +0,0 @@
|
||||
// import 'package:hmg_patient_app/core/enum/viewstate.dart';
|
||||
// import 'package:hmg_patient_app/core/model/AlHabibMedicalService/ComprehensiveMedicalCheckup/GetCMCAllOrdersResponseModel.dart';
|
||||
// import 'package:hmg_patient_app/core/model/AlHabibMedicalService/HomeHealthCare/get_hhc_all_pres_orders_response_model.dart';
|
||||
// import 'package:hmg_patient_app/core/model/AlHabibMedicalService/HomeHealthCare/update_pres_oreder_request_model.dart';
|
||||
// import 'package:hmg_patient_app/core/viewModels/AlHabibMedicalService/cmc_view_model.dart';
|
||||
// import 'package:hmg_patient_app/core/viewModels/project_view_model.dart';
|
||||
// import 'package:hmg_patient_app/uitl/app_toast.dart';
|
||||
// import 'package:hmg_patient_app/uitl/date_uitl.dart';
|
||||
// import 'package:hmg_patient_app/uitl/gif_loader_dialog_utils.dart';
|
||||
// import 'package:hmg_patient_app/uitl/translations_delegate_base.dart';
|
||||
// import 'package:hmg_patient_app/uitl/utils.dart';
|
||||
// import 'package:hmg_patient_app/uitl/utils_new.dart';
|
||||
// import 'package:hmg_patient_app/widgets/buttons/defaultButton.dart';
|
||||
// import 'package:hmg_patient_app/widgets/buttons/secondary_button.dart';
|
||||
// import 'package:hmg_patient_app/widgets/data_display/text.dart';
|
||||
// import 'package:hmg_patient_app/widgets/dialogs/ConfirmWithMessageDialog.dart';
|
||||
// import 'package:hmg_patient_app/widgets/others/app_scaffold_widget.dart';
|
||||
// import 'package:flutter/material.dart';
|
||||
// import 'package:provider/provider.dart';
|
||||
//
|
||||
// import 'Dialog/confirm_cancel_order_dialog.dart';
|
||||
//
|
||||
// class OrdersLogDetailsPage extends StatelessWidget {
|
||||
// final CMCViewModel model;
|
||||
//
|
||||
// const OrdersLogDetailsPage({Key ?key, required this.model}) : super(key: key);
|
||||
//
|
||||
// @override
|
||||
// Widget build(BuildContext context) {
|
||||
// ProjectViewModel projectViewModel = Provider.of(context);
|
||||
//
|
||||
// void showConfirmMessage(CMCViewModel model, GetCMCAllOrdersResponseModel order) {
|
||||
// showDialog(
|
||||
// context: context,
|
||||
// builder: (cxt) => ConfirmWithMessageDialog(
|
||||
// message: TranslationBase.of(context).cancelOrderMsg,
|
||||
// onTap: () {
|
||||
// UpdatePresOrderRequestModel updatePresOrderRequestModel = UpdatePresOrderRequestModel(presOrderID: order.iD, rejectionReason: "", presOrderStatus: 4, editedBy: 3);
|
||||
// Future.delayed(new Duration(milliseconds: 300)).then((value) async {
|
||||
// GifLoaderDialogUtils.showMyDialog(context);
|
||||
// await model.updateCmcPresOrder(updatePresOrderRequestModel);
|
||||
// if (model.state == ViewState.ErrorLocal) {
|
||||
// Utils.showErrorToast(model.error);
|
||||
// GifLoaderDialogUtils.hideDialog(context);
|
||||
// } else {
|
||||
// AppToast.showSuccessToast(message: TranslationBase.of(context).processDoneSuccessfully);
|
||||
// await model.getCmcAllPresOrders();
|
||||
// GifLoaderDialogUtils.hideDialog(context);
|
||||
// }
|
||||
// });
|
||||
// },
|
||||
// ));
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// return AppScaffold(
|
||||
// isShowAppBar: false,
|
||||
// baseViewModel: model,
|
||||
// body: model.cmcAllPresOrders.length > 0 ? ListView.separated(
|
||||
// padding: EdgeInsets.all(21),
|
||||
// physics: BouncingScrollPhysics(),
|
||||
// itemBuilder: (context, index) {
|
||||
// GetCMCAllOrdersResponseModel order = model.cmcAllPresOrders.reversed.toList()[index];
|
||||
//
|
||||
// int status = order.statusId!;
|
||||
// String _statusDisp = order.statusText!;
|
||||
// late Color _color;
|
||||
// if (status == 1) {
|
||||
// //pending
|
||||
// _color = Color(0xffCC9B14);
|
||||
// } else if (status == 2) {
|
||||
// //processing
|
||||
// _color = Color(0xff2E303A);
|
||||
// } else if (status == 3) {
|
||||
// //completed
|
||||
// _color = Color(0xff359846);
|
||||
// } else if (status == 4 || status == 6 || status == 7) {
|
||||
// //cancel // Rejected
|
||||
// _color = Color(0xffD02127);
|
||||
// }
|
||||
// return Container(
|
||||
// decoration: BoxDecoration(
|
||||
// color: _color,
|
||||
// borderRadius: BorderRadius.all(
|
||||
// Radius.circular(10.0),
|
||||
// ),
|
||||
// boxShadow: [
|
||||
// BoxShadow(
|
||||
// color: Color(0xff000000).withOpacity(.05),
|
||||
// blurRadius: 27,
|
||||
// offset: Offset(0, -3),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// child: Container(
|
||||
// margin: EdgeInsets.only(left: projectViewModel.isArabic ? 0 : 6, right: projectViewModel.isArabic ? 6 : 0),
|
||||
// padding: EdgeInsets.symmetric(vertical: 14, horizontal: 12),
|
||||
// decoration: BoxDecoration(
|
||||
// color: Colors.white,
|
||||
// border: Border.all(color: Colors.white, width: 1),
|
||||
// borderRadius: BorderRadius.only(
|
||||
// bottomRight: projectViewModel.isArabic ? Radius.circular(0) : Radius.circular(10.0),
|
||||
// topRight: projectViewModel.isArabic ? Radius.circular(0) : Radius.circular(10.0),
|
||||
// bottomLeft: projectViewModel.isArabic ? Radius.circular(10.0) : Radius.circular(0),
|
||||
// topLeft: projectViewModel.isArabic ? Radius.circular(10.0) : Radius.circular(0),
|
||||
// ),
|
||||
// ),
|
||||
// // clipBehavior: Clip.antiAlias,
|
||||
// child: Row(
|
||||
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||
// children: [
|
||||
// Expanded(
|
||||
// child: Column(
|
||||
// mainAxisAlignment: MainAxisAlignment.start,
|
||||
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||
// children: [
|
||||
// Text(
|
||||
// _statusDisp,
|
||||
// style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600, color: _color, letterSpacing: -0.4, height: 16 / 10),
|
||||
// ),
|
||||
// SizedBox(height: 6),
|
||||
// Text(
|
||||
// '${TranslationBase.of(context).requestID}: ${order.iD}',
|
||||
// style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: Color(0xff2E303A), letterSpacing: -0.64, height: 25 / 16),
|
||||
// ),
|
||||
// Row(
|
||||
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||
// children: [
|
||||
// Text(
|
||||
// TranslationBase.of(context).hospital + ": ",
|
||||
// style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600, color: Color(0xff575757), letterSpacing: -0.4, height: 16 / 10),
|
||||
// ),
|
||||
// Expanded(
|
||||
// child: Text(
|
||||
// // !projectViewModel.isArabic ? order.nearestProjectDescription.trim().toString() : order.nearestProjectDescriptionN.toString(),
|
||||
// order.projectName != null ? order.projectName!.trim().toString() : "",
|
||||
// style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.56),
|
||||
// ),
|
||||
// ),
|
||||
// ],
|
||||
// )
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// Column(
|
||||
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
// crossAxisAlignment: CrossAxisAlignment.end,
|
||||
// children: [
|
||||
// Text(
|
||||
// DateUtil.getDayMonthYearDateFormatted(DateTime.tryParse(order.created!)!),
|
||||
// style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.4, height: 16 / 10),
|
||||
// ),
|
||||
// SizedBox(height: 12),
|
||||
// if (order.statusId == 1 || order.statusId == 2)
|
||||
// InkWell(
|
||||
// onTap: () {
|
||||
// showConfirmMessage(model, order);
|
||||
// },
|
||||
// child: Container(
|
||||
// padding: EdgeInsets.symmetric(vertical: 8, horizontal: 14),
|
||||
// decoration: BoxDecoration(
|
||||
// color: Color(0xffD02127),
|
||||
// border: Border.all(color: Colors.white, width: 1),
|
||||
// borderRadius: BorderRadius.circular(10),
|
||||
// ),
|
||||
// child: Text(
|
||||
// TranslationBase.of(context).cancel_nocaps,
|
||||
// style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600, color: Colors.white, letterSpacing: -0.4),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// );
|
||||
// },
|
||||
// separatorBuilder: (context, index) => SizedBox(height: 12),
|
||||
// itemCount: model.cmcAllPresOrders.length) : getNoDataWidget(context),
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
Loading…
Reference in New Issue