er_location
Sultan Khan 6 years ago
parent 6b2f1a86df
commit 4a75215a19

@ -343,7 +343,10 @@ const Map<String, Map<String, String>> localizedValues = {
"en": "Online Payment Service", "en": "Online Payment Service",
'ar': 'خدمة الدفع عبر الإلكتدوني' 'ar': 'خدمة الدفع عبر الإلكتدوني'
}, },
"OffersAndPackages": {"en": "Online transfer request", 'ar': 'طلب التحويل الالكتروني'}, "OffersAndPackages": {
"en": "Online transfer request",
'ar': 'طلب التحويل الالكتروني'
},
"ComprehensiveMedicalCheckup": { "ComprehensiveMedicalCheckup": {
"en": "Comprehensive Medical Check up", "en": "Comprehensive Medical Check up",
'ar': 'فحص طبي شامل' 'ar': 'فحص طبي شامل'
@ -363,17 +366,26 @@ const Map<String, Map<String, String>> localizedValues = {
"consultation": {"en": "Consultation", "ar": "استشارة"}, "consultation": {"en": "Consultation", "ar": "استشارة"},
"logs": {"en": "Logs", "ar": "السجلات"}, "logs": {"en": "Logs", "ar": "السجلات"},
"textToSpeech": {"en": "How May I Help You?", "ar": "كيف يمكنني مساعدتك؟"}, "textToSpeech": {"en": "How May I Help You?", "ar": "كيف يمكنني مساعدتك؟"},
"locationDialogMessage": {"en": "Allow the HMG app to access your location will assist you in showing the hospitals according to the nearest to you.", "ar": "السماح لتطبيق مجموعة الحبيب الطبية بالوصول إلى موقعك سيساعدك في إظهار المستشفيات وفقًا للأقرب إليك."} "locationDialogMessage": {
"parking":{"en":"Parking","ar":"مواقف"}, "en":
"alhabiServices":{"en":"HMG Service","ar":"خدمات الحبيب"}, "Allow the HMG app to access your location will assist you in showing the hospitals according to the nearest to you.",
"parkingTitle":{"en":"Car service, car service, service to save parking information, return to it later, 1- By clicking on (Read the code), save the parking data. 2- By clicking on the button (view my car park), it shows you the cars location in Google Maps. 3- Read another position by pressing the Clear Position Data button.","ar":" خدمة المواقف، تتيح هذه الخدمة للمستخدم معلومات عن موقف السيارة ليسهل عليه العودة لها لاحقاً ، 1- بالضغط على زر(قراءة الكود) تستطيع حفظ البيانات الخاصة بالموقف. 2-بالضغط على زر(عرض موقف سيارتي) يعرض لك موقع السيارة في خرائط قوقل. 3- لإعادة قراءة موقف آخرعن طريق الضغط على زر(مسح بيانات الموقف). "}, "ar":
"readBarcode":{"en":"Read Barcode","ar":"قراءة الكود"}, "السماح لتطبيق مجموعة الحبيب الطبية بالوصول إلى موقعك سيساعدك في إظهار المستشفيات وفقًا للأقرب إليك."
"showMyPark":{"en":"Show My Park","ar":"عرض بارك"}, },
"clearMyData":{"en":"clear My Data","ar":"امسح البيانات"}, "parking": {"en": "Parking", "ar": "مواقف"},
"floor":{"en":"Floor:","ar":"الطابق"}, "alhabiServices": {"en": "HMG Service", "ar": "خدمات الحبيب"},
"gate":{"en":"Gate:","ar":"بوابة"}, "parkingTitle": {
"building":{"en":"Building:","ar":"المبنى"}, "en":
"branch":{"en":"Branch:","ar":"الفرع"}, "Car service, car service, service to save parking information, return to it later, 1- By clicking on (Read the code), save the parking data. 2- By clicking on the button (view my car park), it shows you the cars location in Google Maps. 3- Read another position by pressing the Clear Position Data button.",
"emergencyServices":{"en":"Emergency Services:","ar":"خدمات الطوارئ"}, "ar":
"textToSpeech": {"en": "How May I Help You?", "ar": "كيف يمكنني مساعدتك؟"} " خدمة المواقف، تتيح هذه الخدمة للمستخدم معلومات عن موقف السيارة ليسهل عليه العودة لها لاحقاً ، 1- بالضغط على زر(قراءة الكود) تستطيع حفظ البيانات الخاصة بالموقف. 2-بالضغط على زر(عرض موقف سيارتي) يعرض لك موقع السيارة في خرائط قوقل. 3- لإعادة قراءة موقف آخرعن طريق الضغط على زر(مسح بيانات الموقف). "
},
"readBarcode": {"en": "Read Barcode", "ar": "قراءة الكود"},
"showMyPark": {"en": "Show My Park", "ar": "عرض بارك"},
"clearMyData": {"en": "clear My Data", "ar": "امسح البيانات"},
"floor": {"en": "Floor:", "ar": "الطابق"},
"gate": {"en": "Gate:", "ar": "بوابة"},
"building": {"en": "Building:", "ar": "المبنى"},
"branch": {"en": "Branch:", "ar": "الفرع"},
"emergencyServices": {"en": "Emergency Services:", "ar": "خدمات الطوارئ"},
}; };

@ -66,8 +66,8 @@ class DoctorsListService extends BaseService {
// "License": true, // "License": true,
// "IsVoiceCommand": doctorId != null && doctorId.length > 0 ? true : false, // "IsVoiceCommand": doctorId != null && doctorId.length > 0 ? true : false,
// "DoctorIDsList": doctorId // "DoctorIDsList": doctorId
"Latitude": lat.toString(), "Latitude": lat != null ? lat.toString() : 0,
"Longitude": long.toString(), "Longitude": long != null ? long.toString() : 0,
"License": true "License": true
}; };

@ -322,6 +322,7 @@ class _SearchBot extends State<BottomBarSearch> {
getDoctorsList(projectId, clinicId, context, {doctorId, doctorName}) { getDoctorsList(projectId, clinicId, context, {doctorId, doctorName}) {
List<DoctorList> doctorsList = []; List<DoctorList> doctorsList = [];
List<String> arr = []; List<String> arr = [];
List<String> arrDistance = [];
DoctorsListService service = new DoctorsListService(); DoctorsListService service = new DoctorsListService();
service service
.getDoctorsList(clinicId, projectId, context, doctorId: doctorName) .getDoctorsList(clinicId, projectId, context, doctorId: doctorName)
@ -334,6 +335,9 @@ class _SearchBot extends State<BottomBarSearch> {
res['DoctorList'].forEach((v) { res['DoctorList'].forEach((v) {
doctorsList.add(new DoctorList.fromJson(v)); doctorsList.add(new DoctorList.fromJson(v));
arr.add(new DoctorList.fromJson(v).projectName); arr.add(new DoctorList.fromJson(v).projectName);
arrDistance.add(new DoctorList.fromJson(v)
.projectDistanceInKiloMeters
.toString());
}); });
if (res['DoctorList'].length == 1) { if (res['DoctorList'].length == 1) {
getDoctorProfile( getDoctorProfile(
@ -341,7 +345,7 @@ class _SearchBot extends State<BottomBarSearch> {
//speak(); //speak();
} else { } else {
navigateToSearchResults(context, doctorsList, arr); navigateToSearchResults(context, doctorsList, arr, arrDistance);
} }
} }
}); });
@ -366,7 +370,7 @@ class _SearchBot extends State<BottomBarSearch> {
))); )));
} }
Future navigateToSearchResults(context, docList, arr) async { Future navigateToSearchResults(context, docList, arr, arrDistance) async {
// Navigator.push( // Navigator.push(
// context, // context,
// MaterialPageRoute( // MaterialPageRoute(
@ -376,8 +380,11 @@ class _SearchBot extends State<BottomBarSearch> {
Navigator.push( Navigator.push(
context, context,
MaterialPageRoute( MaterialPageRoute(
builder: (context) => builder: (context) => BranchView(
BranchView(doctorsList: docList, result: result, num: numAll), doctorsList: docList,
result: result,
num: numAll,
resultDistance: arrDistance),
), ),
); );
} }

Loading…
Cancel
Save