|
|
|
|
@ -102,9 +102,9 @@ class AuthenticationViewModel extends BaseViewModel {
|
|
|
|
|
insertIMEIDetailsModel.titleDescriptionN =
|
|
|
|
|
profileInfo['Title_DescriptionN'];
|
|
|
|
|
insertIMEIDetailsModel.projectID = await sharedPref.getInt(PROJECT_ID);
|
|
|
|
|
insertIMEIDetailsModel.doctorID = loggedIn != null
|
|
|
|
|
? loggedIn['List_MemberInformation'][0]['MemberID']
|
|
|
|
|
: user.doctorID;
|
|
|
|
|
// insertIMEIDetailsModel.doctorID = loggedIn != null
|
|
|
|
|
// ? loggedIn['List_MemberInformation'][0]['MemberID']
|
|
|
|
|
// : user.doctorID;
|
|
|
|
|
insertIMEIDetailsModel.outSA =
|
|
|
|
|
loggedIn != null ? loggedIn['PatientOutSA'] : user.outSA;
|
|
|
|
|
insertIMEIDetailsModel.vidaAuthTokenID =
|
|
|
|
|
@ -174,6 +174,7 @@ class AuthenticationViewModel extends BaseViewModel {
|
|
|
|
|
loginDoctorID: loggedUser.listMemberInformation[0].employeeID,
|
|
|
|
|
otpSendType: authMethodType.getTypeIdService().toString(),
|
|
|
|
|
);
|
|
|
|
|
await sharedPref.setString(DOCTOR_ID, (loggedUser.listMemberInformation[0].employeeID).toString());
|
|
|
|
|
await _authService.sendActivationCodeForDoctorApp(activationCodeModel);
|
|
|
|
|
if (_authService.hasError) {
|
|
|
|
|
error = _authService.error;
|
|
|
|
|
@ -189,6 +190,7 @@ class AuthenticationViewModel extends BaseViewModel {
|
|
|
|
|
Future checkActivationCodeForDoctorApp(
|
|
|
|
|
{String activationCode, bool isSilentLogin = false}) async {
|
|
|
|
|
setState(ViewState.BusyLocal);
|
|
|
|
|
|
|
|
|
|
CheckActivationCodeRequestModel checkActivationCodeForDoctorApp =
|
|
|
|
|
new CheckActivationCodeRequestModel(
|
|
|
|
|
zipCode: loggedUser != null ? loggedUser.zipCode : user.zipCode,
|
|
|
|
|
@ -208,9 +210,7 @@ class AuthenticationViewModel extends BaseViewModel {
|
|
|
|
|
: user.projectID.toString(),
|
|
|
|
|
oTPSendType: await sharedPref.getInt(OTP_TYPE),
|
|
|
|
|
iMEI: localToken,
|
|
|
|
|
loginDoctorID: userInfo.userID != null
|
|
|
|
|
? int.parse(userInfo.userID)
|
|
|
|
|
: user.editedBy,
|
|
|
|
|
loginDoctorID: loggedUser.listMemberInformation[0].employeeID,
|
|
|
|
|
// loggedUser.listMemberInformation[0].employeeID,
|
|
|
|
|
isForSilentLogin: isSilentLogin,
|
|
|
|
|
generalid: "Cs2020@2016\$2958");
|
|
|
|
|
|