add Not authenticated Page
parent
1ce55e687f
commit
06416b4934
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
@ -0,0 +1,22 @@
|
||||
enum OrderService { AMBULANCE }
|
||||
|
||||
extension SelectedOrderService on OrderService {
|
||||
int getIdOrderService() {
|
||||
switch (this) {
|
||||
case OrderService.AMBULANCE:
|
||||
return 4;
|
||||
break;
|
||||
}
|
||||
return 4;
|
||||
}
|
||||
|
||||
OrderService getOrderServiceById(int id) {
|
||||
switch (id) {
|
||||
case 4:
|
||||
return OrderService.AMBULANCE;
|
||||
break;
|
||||
}
|
||||
|
||||
return OrderService.AMBULANCE;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,204 @@
|
||||
class PickUpRequestPresOrder {
|
||||
int id;
|
||||
int presOrderID;
|
||||
String createDate;
|
||||
String lastEditDate;
|
||||
int createdBy;
|
||||
int lastEditBy;
|
||||
bool isActive;
|
||||
String requestNo;
|
||||
int requesterId;
|
||||
int direction;
|
||||
bool haveAppointment;
|
||||
dynamic appointmentId;
|
||||
int tripType;
|
||||
int pickupUrgency;
|
||||
String pickupDateTime;
|
||||
dynamic pickupLocationId;
|
||||
int pickupSpot;
|
||||
dynamic dropoffLocationId;
|
||||
int transportationMethodId;
|
||||
int cost;
|
||||
double vAT;
|
||||
double totalPrice;
|
||||
int amountCollected;
|
||||
int selectedAmbulate;
|
||||
String requesterNote;
|
||||
int status;
|
||||
int paymentStatus;
|
||||
dynamic rejectReason;
|
||||
int visibility;
|
||||
dynamic durationId;
|
||||
dynamic imageId;
|
||||
String requesterFileNo;
|
||||
String requesterMobileNo;
|
||||
bool requesterIsOutSA;
|
||||
String pickupLocationLongitude;
|
||||
String pickupLocationLattitude;
|
||||
String dropoffLocationLongitude;
|
||||
String dropoffLocationLattitude;
|
||||
dynamic appointmentClinicName;
|
||||
dynamic appointmentDoctorName;
|
||||
dynamic appointmentBranch;
|
||||
dynamic appointmentTime;
|
||||
String pickupLocationName;
|
||||
String dropoffLocationName;
|
||||
String title;
|
||||
String titleAR;
|
||||
String ambulateDescription;
|
||||
String ambulateDescriptionN;
|
||||
|
||||
PickUpRequestPresOrder(
|
||||
{this.id,
|
||||
this.presOrderID,
|
||||
this.createDate,
|
||||
this.lastEditDate,
|
||||
this.createdBy,
|
||||
this.lastEditBy,
|
||||
this.isActive,
|
||||
this.requestNo,
|
||||
this.requesterId,
|
||||
this.direction,
|
||||
this.haveAppointment,
|
||||
this.appointmentId,
|
||||
this.tripType,
|
||||
this.pickupUrgency,
|
||||
this.pickupDateTime,
|
||||
this.pickupLocationId,
|
||||
this.pickupSpot,
|
||||
this.dropoffLocationId,
|
||||
this.transportationMethodId,
|
||||
this.cost,
|
||||
this.vAT,
|
||||
this.totalPrice,
|
||||
this.amountCollected,
|
||||
this.selectedAmbulate,
|
||||
this.requesterNote,
|
||||
this.status,
|
||||
this.paymentStatus,
|
||||
this.rejectReason,
|
||||
this.visibility,
|
||||
this.durationId,
|
||||
this.imageId,
|
||||
this.requesterFileNo,
|
||||
this.requesterMobileNo,
|
||||
this.requesterIsOutSA,
|
||||
this.pickupLocationLongitude,
|
||||
this.pickupLocationLattitude,
|
||||
this.dropoffLocationLongitude,
|
||||
this.dropoffLocationLattitude,
|
||||
this.appointmentClinicName,
|
||||
this.appointmentDoctorName,
|
||||
this.appointmentBranch,
|
||||
this.appointmentTime,
|
||||
this.pickupLocationName,
|
||||
this.dropoffLocationName,
|
||||
this.title,
|
||||
this.titleAR,
|
||||
this.ambulateDescription,
|
||||
this.ambulateDescriptionN});
|
||||
|
||||
PickUpRequestPresOrder.fromJson(Map<String, dynamic> json) {
|
||||
id = json['Id'];
|
||||
presOrderID = json['PresOrderID'];
|
||||
createDate = json['CreateDate'];
|
||||
lastEditDate = json['LastEditDate'];
|
||||
createdBy = json['CreatedBy'];
|
||||
lastEditBy = json['LastEditBy'];
|
||||
isActive = json['IsActive'];
|
||||
requestNo = json['RequestNo'];
|
||||
requesterId = json['RequesterId'];
|
||||
direction = json['Direction'];
|
||||
haveAppointment = json['HaveAppointment'];
|
||||
appointmentId = json['AppointmentId'];
|
||||
tripType = json['TripType'];
|
||||
pickupUrgency = json['PickupUrgency'];
|
||||
pickupDateTime = json['PickupDateTime'];
|
||||
pickupLocationId = json['PickupLocationId'];
|
||||
pickupSpot = json['PickupSpot'];
|
||||
dropoffLocationId = json['DropoffLocationId'];
|
||||
transportationMethodId = json['TransportationMethodId'];
|
||||
cost = json['Cost'];
|
||||
vAT = json['VAT'];
|
||||
totalPrice = json['TotalPrice'];
|
||||
amountCollected = json['AmountCollected'];
|
||||
selectedAmbulate = json['SelectedAmbulate'];
|
||||
requesterNote = json['RequesterNote'];
|
||||
status = json['Status'];
|
||||
paymentStatus = json['PaymentStatus'];
|
||||
rejectReason = json['RejectReason'];
|
||||
visibility = json['Visibility'];
|
||||
durationId = json['DurationId'];
|
||||
imageId = json['ImageId'];
|
||||
requesterFileNo = json['RequesterFileNo'];
|
||||
requesterMobileNo = json['RequesterMobileNo'];
|
||||
requesterIsOutSA = json['RequesterIsOutSA'];
|
||||
pickupLocationLongitude = json['PickupLocationLongitude'];
|
||||
pickupLocationLattitude = json['PickupLocationLattitude'];
|
||||
dropoffLocationLongitude = json['DropoffLocationLongitude'];
|
||||
dropoffLocationLattitude = json['DropoffLocationLattitude'];
|
||||
appointmentClinicName = json['AppointmentClinicName'];
|
||||
appointmentDoctorName = json['AppointmentDoctorName'];
|
||||
appointmentBranch = json['AppointmentBranch'];
|
||||
appointmentTime = json['AppointmentTime'];
|
||||
pickupLocationName = json['PickupLocationName'];
|
||||
dropoffLocationName = json['DropoffLocationName'];
|
||||
title = json['Title'];
|
||||
titleAR = json['TitleAR'];
|
||||
ambulateDescription = json['AmbulateDescription'];
|
||||
ambulateDescriptionN = json['AmbulateDescriptionN'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['Id'] = this.id;
|
||||
data['PresOrderID'] = this.presOrderID;
|
||||
data['CreateDate'] = this.createDate;
|
||||
data['LastEditDate'] = this.lastEditDate;
|
||||
data['CreatedBy'] = this.createdBy;
|
||||
data['LastEditBy'] = this.lastEditBy;
|
||||
data['IsActive'] = this.isActive;
|
||||
data['RequestNo'] = this.requestNo;
|
||||
data['RequesterId'] = this.requesterId;
|
||||
data['Direction'] = this.direction;
|
||||
data['HaveAppointment'] = this.haveAppointment;
|
||||
data['AppointmentId'] = this.appointmentId;
|
||||
data['TripType'] = this.tripType;
|
||||
data['PickupUrgency'] = this.pickupUrgency;
|
||||
data['PickupDateTime'] = this.pickupDateTime;
|
||||
data['PickupLocationId'] = this.pickupLocationId;
|
||||
data['PickupSpot'] = this.pickupSpot;
|
||||
data['DropoffLocationId'] = this.dropoffLocationId;
|
||||
data['TransportationMethodId'] = this.transportationMethodId;
|
||||
data['Cost'] = this.cost;
|
||||
data['VAT'] = this.vAT;
|
||||
data['TotalPrice'] = this.totalPrice;
|
||||
data['AmountCollected'] = this.amountCollected;
|
||||
data['SelectedAmbulate'] = this.selectedAmbulate;
|
||||
data['RequesterNote'] = this.requesterNote;
|
||||
data['Status'] = this.status;
|
||||
data['PaymentStatus'] = this.paymentStatus;
|
||||
data['RejectReason'] = this.rejectReason;
|
||||
data['Visibility'] = this.visibility;
|
||||
data['DurationId'] = this.durationId;
|
||||
data['ImageId'] = this.imageId;
|
||||
data['RequesterFileNo'] = this.requesterFileNo;
|
||||
data['RequesterMobileNo'] = this.requesterMobileNo;
|
||||
data['RequesterIsOutSA'] = this.requesterIsOutSA;
|
||||
data['PickupLocationLongitude'] = this.pickupLocationLongitude;
|
||||
data['PickupLocationLattitude'] = this.pickupLocationLattitude;
|
||||
data['DropoffLocationLongitude'] = this.dropoffLocationLongitude;
|
||||
data['DropoffLocationLattitude'] = this.dropoffLocationLattitude;
|
||||
data['AppointmentClinicName'] = this.appointmentClinicName;
|
||||
data['AppointmentDoctorName'] = this.appointmentDoctorName;
|
||||
data['AppointmentBranch'] = this.appointmentBranch;
|
||||
data['AppointmentTime'] = this.appointmentTime;
|
||||
data['PickupLocationName'] = this.pickupLocationName;
|
||||
data['DropoffLocationName'] = this.dropoffLocationName;
|
||||
data['Title'] = this.title;
|
||||
data['TitleAR'] = this.titleAR;
|
||||
data['AmbulateDescription'] = this.ambulateDescription;
|
||||
data['AmbulateDescriptionN'] = this.ambulateDescriptionN;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
import 'package:diplomaticquarterapp/core/model/er/PatientAllPresOrders.dart';
|
||||
import 'package:diplomaticquarterapp/core/viewModels/er/am_request_view_model.dart';
|
||||
import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/others/OrderLogItem.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class OrderLogPage extends StatelessWidget {
|
||||
final AmRequestViewModel amRequestViewModel;
|
||||
|
||||
OrderLogPage({Key key, @required this.amRequestViewModel});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
margin: EdgeInsets.all(10),
|
||||
padding: EdgeInsets.all(8),
|
||||
child: ListView.builder(
|
||||
itemCount: amRequestViewModel.patientAllPresOrdersList.length,
|
||||
itemBuilder: (context, index) => Container(
|
||||
margin: EdgeInsets.all(8),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.circular(2),
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
OrderLogItem(
|
||||
title: 'Request ID',
|
||||
value: amRequestViewModel.patientAllPresOrdersList[index].iD
|
||||
.toString(),
|
||||
),
|
||||
OrderLogItem(
|
||||
title: 'Status',
|
||||
value: amRequestViewModel
|
||||
.patientAllPresOrdersList[index].description,
|
||||
),
|
||||
OrderLogItem(
|
||||
title: 'Pickup Date',
|
||||
value: DateUtil.getDayMonthYearDateFormatted(
|
||||
DateUtil.convertStringToDate(amRequestViewModel
|
||||
.patientAllPresOrdersList[index].createdOn)),
|
||||
),
|
||||
OrderLogItem(
|
||||
title: 'Pickup Location',
|
||||
value: amRequestViewModel
|
||||
.patientAllPresOrdersList[index].pickupLocationName,
|
||||
),
|
||||
OrderLogItem(
|
||||
title: 'Drop off Location',
|
||||
value: amRequestViewModel
|
||||
.patientAllPresOrdersList[index].dropoffLocationName,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -1,12 +1,26 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ProgressDialogUtil{
|
||||
AlertDialog _alert = AlertDialog(
|
||||
content: Row(
|
||||
children: [
|
||||
CircularProgressIndicator(),
|
||||
Container(margin: EdgeInsets.only(left: 7), child: Text("Loading...")),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
static AlertDialog alert = AlertDialog(
|
||||
content: new Row(
|
||||
children: [
|
||||
CircularProgressIndicator(),
|
||||
Container(margin: EdgeInsets.only(left: 7),child:Text("Loading..." )),
|
||||
],),
|
||||
);
|
||||
}
|
||||
class ProgressDialogUtil {
|
||||
static showProgressDialog(BuildContext context) {
|
||||
showDialog(
|
||||
barrierDismissible: false,
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return _alert;
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
static hideProgressDialog(BuildContext context) {
|
||||
Navigator.pop(context);
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,32 @@
|
||||
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class OrderLogItem extends StatelessWidget {
|
||||
final String title;
|
||||
final String value;
|
||||
OrderLogItem({ this.title, this.value});
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
padding: EdgeInsets.all(10),
|
||||
width: double.maxFinite,
|
||||
margin: EdgeInsets.only(bottom: 4,left: 4,right: 4),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.only(
|
||||
bottomRight: Radius.circular(12),
|
||||
bottomLeft: Radius.circular(12),
|
||||
),
|
||||
color: Colors.white
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Texts(title,color: Colors.grey,),
|
||||
SizedBox(height: 4,),
|
||||
Texts(value??''),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,79 @@
|
||||
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
||||
import 'package:diplomaticquarterapp/pages/login/login-type.dart';
|
||||
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hexcolor/hexcolor.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class NotAutPage extends StatelessWidget {
|
||||
final String title;
|
||||
final String description;
|
||||
|
||||
NotAutPage({@required this.title, @required this.description});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
ProjectViewModel projectViewModel = Provider.of(context);
|
||||
return Scaffold(
|
||||
body: SingleChildScrollView(
|
||||
padding: EdgeInsets.all(12),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
Texts(
|
||||
title ?? 'Service',
|
||||
fontWeight: FontWeight.w800,
|
||||
fontSize: 25,
|
||||
bold: true,
|
||||
color: Hexcolor("#60686b"),
|
||||
),
|
||||
SizedBox(
|
||||
height: 12,
|
||||
),
|
||||
Texts(
|
||||
description ?? 'Description',
|
||||
fontWeight: FontWeight.normal,
|
||||
fontSize: 17,
|
||||
),
|
||||
SizedBox(
|
||||
height: 22,
|
||||
),
|
||||
Center(
|
||||
child: SizedBox(
|
||||
height: MediaQuery.of(context).size.height * 0.55,
|
||||
width: MediaQuery.of(context).size.width * 0.50,
|
||||
child: Image.asset(projectViewModel.isArabic
|
||||
? 'assets/images/wifi-EN.png'
|
||||
: 'assets/images/Wifi-AR.png'),
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
height: 77,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
bottomSheet: Container(
|
||||
height: MediaQuery.of(context).size.height * 0.10,
|
||||
width: double.infinity,
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
Container(
|
||||
width: MediaQuery.of(context).size.width * 0.9,
|
||||
child: SecondaryButton(
|
||||
onTap: () => Navigator.pushReplacement(
|
||||
context, FadePage(page: LoginType())),
|
||||
label: TranslationBase.of(context).serviceInformationButton,
|
||||
textColor: Theme.of(context).backgroundColor),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue