|
|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import 'dart:convert';
|
|
|
|
|
import 'dart:io' show Platform;
|
|
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/config/config.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/config/shared_pref_kay.dart';
|
|
|
|
|
@ -6,12 +7,8 @@ import 'package:doctor_app_flutter/models/doctor/doctor_profile_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/dr_app_shared_pref.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/helpers.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/transitions/fade_page.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:http/http.dart' as http;
|
|
|
|
|
import 'dart:io' show Platform;
|
|
|
|
|
|
|
|
|
|
import '../UpdatePage.dart';
|
|
|
|
|
|
|
|
|
|
DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
|
|
|
|
|
Helpers helpers = new Helpers();
|
|
|
|
|
@ -70,6 +67,11 @@ class BaseAppClient {
|
|
|
|
|
await sharedPref.getString(VIDA_REFRESH_TOKEN_ID);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (body['ProjectID'] != null &&
|
|
|
|
|
(body['ProjectID'] == 2 || body['ProjectID'] == 3)) {
|
|
|
|
|
body['PatientOutSA'] = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
print("URL : $url");
|
|
|
|
|
print("Body : ${json.encode(body)}");
|
|
|
|
|
var asd = json.encode(body);
|
|
|
|
|
@ -192,6 +194,11 @@ class BaseAppClient {
|
|
|
|
|
body['PatientOutSA'] = 0; //user['OutSA']; //TODO change it
|
|
|
|
|
body['SessionID'] = SESSION_ID; //getSe
|
|
|
|
|
|
|
|
|
|
if (body['ProjectID'] != null &&
|
|
|
|
|
(body['ProjectID'] == 2 || body['ProjectID'] == 3)) {
|
|
|
|
|
body['PatientOutSA'] = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
print("URL : $url");
|
|
|
|
|
print("Body : ${json.encode(body)}");
|
|
|
|
|
|
|
|
|
|
|