|
|
|
@ -10,7 +10,6 @@ import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:http/http.dart' as http;
|
|
|
|
import 'package:http/http.dart' as http;
|
|
|
|
import 'dart:io' show Platform;
|
|
|
|
import 'dart:io' show Platform;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
|
|
|
|
DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
|
|
|
|
Helpers helpers = new Helpers();
|
|
|
|
Helpers helpers = new Helpers();
|
|
|
|
//ProjectProvider projectsProvider = new ProjectProvider();
|
|
|
|
//ProjectProvider projectsProvider = new ProjectProvider();
|
|
|
|
@ -86,7 +85,7 @@ class BaseAppClient {
|
|
|
|
|
|
|
|
|
|
|
|
print("URL : $url");
|
|
|
|
print("URL : $url");
|
|
|
|
print("Body : ${json.encode(body)}");
|
|
|
|
print("Body : ${json.encode(body)}");
|
|
|
|
String asd= json.encode(body);
|
|
|
|
|
|
|
|
if (await Helpers.checkConnection()) {
|
|
|
|
if (await Helpers.checkConnection()) {
|
|
|
|
final response = await http.post(url,
|
|
|
|
final response = await http.post(url,
|
|
|
|
body: json.encode(body),
|
|
|
|
body: json.encode(body),
|
|
|
|
@ -172,7 +171,6 @@ class BaseAppClient {
|
|
|
|
|
|
|
|
|
|
|
|
body['DeviceTypeID'] = Platform.isAndroid ? 1 : 2;
|
|
|
|
body['DeviceTypeID'] = Platform.isAndroid ? 1 : 2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
body['PatientType'] = body.containsKey('PatientType')
|
|
|
|
body['PatientType'] = body.containsKey('PatientType')
|
|
|
|
? body['PatientType'] != null
|
|
|
|
? body['PatientType'] != null
|
|
|
|
? body['PatientType']
|
|
|
|
? body['PatientType']
|
|
|
|
@ -197,7 +195,6 @@ class BaseAppClient {
|
|
|
|
body['PatientOutSA'] = 0; //user['OutSA']; //TODO change it
|
|
|
|
body['PatientOutSA'] = 0; //user['OutSA']; //TODO change it
|
|
|
|
body['SessionID'] = SESSION_ID; //getSe
|
|
|
|
body['SessionID'] = SESSION_ID; //getSe
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print("URL : $url");
|
|
|
|
print("URL : $url");
|
|
|
|
print("Body : ${json.encode(body)}");
|
|
|
|
print("Body : ${json.encode(body)}");
|
|
|
|
|
|
|
|
|
|
|
|
|