Example #1
0
        public DoctorDO GetDoctor(string signInId)
        {
            DataTable dtDoctor = _objDoctorDAL.GetDoctor(signInId);

            DoctorDO d = null;

            if (dtDoctor.Rows.Count > 0)
            {
                LoginNewDO l = new LoginNewDO();
                l.LoginId   = Convert.ToInt32(dtDoctor.Rows[0]["LoginId"].ToString());
                l.MobileId  = dtDoctor.Rows[0]["MobileId"].ToString();
                l.MedAppId  = dtDoctor.Rows[0]["MedAppId"].ToString();
                l.EmailId   = dtDoctor.Rows[0]["EmailId"].ToString();
                l.Password  = "******";
                l.CreatedOn = Convert.ToDateTime(dtDoctor.Rows[0]["CreatedOn"].ToString());
                l.IsDeleted = Convert.ToBoolean(dtDoctor.Rows[0]["IsDeleted"].ToString());

                d                = new DoctorDO();
                d.DoctorId       = Convert.ToInt32(dtDoctor.Rows[0]["DoctorId"].ToString());
                d.OrganizationId = Convert.ToInt32(dtDoctor.Rows[0]["OrganizationId"].ToString());
                d.DoctorName     = dtDoctor.Rows[0]["DoctorName"].ToString();

                if (!string.IsNullOrEmpty(dtDoctor.Rows[0]["DateofBirth"].ToString()))
                {
                    d.DateofBirth = Convert.ToDateTime(dtDoctor.Rows[0]["DateofBirth"].ToString());
                }
                else
                {
                    d.DateofBirth = null;
                }

                d.Gender             = Convert.ToBoolean(dtDoctor.Rows[0]["Gender"].ToString());
                d.UniversityId       = Convert.ToInt32(dtDoctor.Rows[0]["UniversityId"].ToString());
                d.RegistrationYear   = Convert.ToInt32(dtDoctor.Rows[0]["RegistrationYear"].ToString());
                d.RegistrationNumber = dtDoctor.Rows[0]["RegistrationNumber"].ToString();
                d.Experience         = Convert.ToDecimal(dtDoctor.Rows[0]["Experience"].ToString());
                d.Degrees            = dtDoctor.Rows[0]["Degrees"].ToString();
                d.Certifications     = dtDoctor.Rows[0]["Certifications"].ToString();
                d.PhotoName          = dtDoctor.Rows[0]["PhotoName"].ToString();
                d.Mobile             = dtDoctor.Rows[0]["Mobile"].ToString();
                d.DepartmentId       = Convert.ToInt32(dtDoctor.Rows[0]["DepartmentId"].ToString());
                d.DepartmentName     = dtDoctor.Rows[0]["DepartmentName"].ToString();
                d.PreferredName      = dtDoctor.Rows[0]["PreferredName"].ToString();
                d.ReferenceToken     = dtDoctor.Rows[0]["ReferenceToken"].ToString();
                d.CountryId          = Convert.ToInt32(dtDoctor.Rows[0]["CountryId"]);
                d.IsActivated        = Convert.ToBoolean(dtDoctor.Rows[0]["IsActivated1"]);
                d.LoginNew           = l;
            }

            return(d);
        }
Example #2
0
        public LoginNewDO GetLogin(string loginId)
        {
            DataTable dtLogin = _objLoginDAL.GetLogin(loginId);

            LoginNewDO l;

            if (dtLogin.Rows.Count > 0)
            {
                l                  = new LoginNewDO();
                l.LoginId          = Convert.ToInt32(dtLogin.Rows[0]["LoginId"]);
                l.FirstName        = dtLogin.Rows[0]["FirstName"].ToString();
                l.LastName         = dtLogin.Rows[0]["LastName"].ToString();
                l.MedAppId         = dtLogin.Rows[0]["MedAppId"].ToString();
                l.CountryId        = Convert.ToInt32(dtLogin.Rows[0]["CountryId"]);
                l.MobileId         = dtLogin.Rows[0]["MobileId"].ToString();
                l.EmailId          = dtLogin.Rows[0]["EmailId"].ToString();
                l.Password         = dtLogin.Rows[0]["Password"].ToString();
                l.IsDirect         = Convert.ToBoolean(dtLogin.Rows[0]["IsDirect"]);
                l.IsActivated      = Convert.ToBoolean(dtLogin.Rows[0]["IsActivated"]);
                l.IsEmailActivated = Convert.ToBoolean(dtLogin.Rows[0]["IsEmailActivated"]);
                l.TransactionToken = dtLogin.Rows[0]["TransactionToken"].ToString();
                l.CreatedOn        = Convert.ToDateTime(dtLogin.Rows[0]["CreatedOn"]);

                if (dtLogin.Rows[0]["ModifiedOn"].ToString() != "")
                {
                    l.ModifiedOn = Convert.ToDateTime(dtLogin.Rows[0]["ModifiedOn"]);
                }
                else
                {
                    l.ModifiedOn = null;
                }

                l.IsDeleted = Convert.ToBoolean(dtLogin.Rows[0]["IsDeleted"]);

                return(l);
            }
            else
            {
                l = null;
                return(l);
            }
        }
Example #3
0
        public ServiceDO GetServiceById(int serviceId)
        {
            DataTable dtService = _objServiceDAL.GetServiceById(serviceId);

            ServiceDO s = null;

            if (dtService.Rows.Count > 0)
            {
                LoginNewDO l = new LoginNewDO();
                l.LoginId   = Convert.ToInt32(dtService.Rows[0]["LoginId"].ToString());
                l.MobileId  = dtService.Rows[0]["MobileId"].ToString();
                l.MedAppId  = dtService.Rows[0]["MedAppId"].ToString();
                l.EmailId   = dtService.Rows[0]["EmailId"].ToString();
                l.Password  = "******";
                l.CreatedOn = Convert.ToDateTime(dtService.Rows[0]["CreatedOn"].ToString());
                l.IsDeleted = Convert.ToBoolean(dtService.Rows[0]["IsDeleted"].ToString());

                s                = new ServiceDO();
                s.ServiceId      = Convert.ToInt32(dtService.Rows[0]["ServiceId"].ToString());
                s.OrganizationId = Convert.ToInt32(dtService.Rows[0]["OrganizationId"].ToString());
                s.LoginNew       = l;
                s.ServiceName    = dtService.Rows[0]["ServiceName"].ToString();
                s.InCharge       = dtService.Rows[0]["InCharge"].ToString();
                s.DepartmentId   = Convert.ToInt32(dtService.Rows[0]["DepartmentId"].ToString());
                s.Units          = Convert.ToInt32(dtService.Rows[0]["Units"].ToString());
                s.Mobile         = dtService.Rows[0]["Mobile"].ToString();
                s.Units          = Convert.ToInt32(dtService.Rows[0]["Units"].ToString());
                s.CreatedOn      = Convert.ToDateTime(dtService.Rows[0]["CreatedOn"].ToString());
                s.IsDeleted      = Convert.ToBoolean(dtService.Rows[0]["IsDeleted"].ToString());
                s.ReferenceToken = dtService.Rows[0]["ReferenceToken"].ToString();
                s.CountryId      = Convert.ToInt32(dtService.Rows[0]["CountryId"]);
                s.IsActivated    = Convert.ToBoolean(dtService.Rows[0]["IsActivated1"]);
            }

            return(s);
        }
Example #4
0
        public LoginNewDO GetAccountByPatientId(int patientid)
        {
            DataTable dtLogin = _objLoginDAL.GetAccountByPatientId(patientid);

            LoginNewDO l;
            if (dtLogin.Rows.Count > 0)
            {
                l = new LoginNewDO();
                l.LoginId = Convert.ToInt32(dtLogin.Rows[0]["LoginId"]);
                l.FirstName = dtLogin.Rows[0]["FirstName"].ToString();
                l.LastName = dtLogin.Rows[0]["LastName"].ToString();
                l.MedAppId = dtLogin.Rows[0]["MedAppId"].ToString();
                l.CountryId = Convert.ToInt32(dtLogin.Rows[0]["CountryId"]);
                l.MobileId = dtLogin.Rows[0]["MobileId"].ToString();
                l.EmailId = dtLogin.Rows[0]["EmailId"].ToString();
                l.Password = dtLogin.Rows[0]["Password"].ToString();
                l.IsDirect = Convert.ToBoolean(dtLogin.Rows[0]["IsDirect"]);
                l.IsActivated = Convert.ToBoolean(dtLogin.Rows[0]["IsActivated"]);
                l.TransactionToken = dtLogin.Rows[0]["TransactionToken"].ToString();
                l.CreatedOn = Convert.ToDateTime(dtLogin.Rows[0]["CreatedOn"]);

                if (dtLogin.Rows[0]["ModifiedOn"].ToString() != "")
                    l.ModifiedOn = Convert.ToDateTime(dtLogin.Rows[0]["ModifiedOn"]);
                else
                    l.ModifiedOn = null;

                l.IsDeleted = Convert.ToBoolean(dtLogin.Rows[0]["IsDeleted"]);

                return l;
            }
            else
            {
                l = null;
                return l;
            }
        }
Example #5
0
 public int SaveAccount(LoginNewDO l)
 {
     return _objLoginDAL.SaveAccount(l.LoginId, l.FirstName, l.LastName, l.CountryId, l.MobileId, l.EmailId, l.Password, l.IsDirect, l.IsActivated);
 }
Example #6
0
 public int UpdateCredentialsBySignInId(LoginNewDO l)
 {
     return _objCommonDal.UpdateCredentialsBySignInId(l.LoginId, l.EmailId, l.MobileId, l.Password);
 }
Example #7
0
 public int UpdateCredentialsBySignInId(LoginNewDO l)
 {
     return(_objCommonDal.UpdateCredentialsBySignInId(l.LoginId, l.EmailId, l.MobileId, l.Password));
 }
Example #8
0
        public DoctorDO GetDoctor(string signInId)
        {
            DataTable dtDoctor = _objDoctorDAL.GetDoctor(signInId);

            DoctorDO d = null;

            if (dtDoctor.Rows.Count > 0)
            {
                LoginNewDO l = new LoginNewDO();
                l.LoginId = Convert.ToInt32(dtDoctor.Rows[0]["LoginId"].ToString());
                l.MobileId = dtDoctor.Rows[0]["MobileId"].ToString();
                l.MedAppId = dtDoctor.Rows[0]["MedAppId"].ToString();
                l.EmailId = dtDoctor.Rows[0]["EmailId"].ToString();
                l.Password = "******";
                l.CreatedOn = Convert.ToDateTime(dtDoctor.Rows[0]["CreatedOn"].ToString());
                l.IsDeleted = Convert.ToBoolean(dtDoctor.Rows[0]["IsDeleted"].ToString());

                d = new DoctorDO();
                d.DoctorId = Convert.ToInt32(dtDoctor.Rows[0]["DoctorId"].ToString());
                d.OrganizationId = Convert.ToInt32(dtDoctor.Rows[0]["OrganizationId"].ToString());
                d.DoctorName = dtDoctor.Rows[0]["DoctorName"].ToString();

                if (!string.IsNullOrEmpty(dtDoctor.Rows[0]["DateofBirth"].ToString()))
                    d.DateofBirth = Convert.ToDateTime(dtDoctor.Rows[0]["DateofBirth"].ToString());
                else
                    d.DateofBirth = null;

                d.Gender = Convert.ToBoolean(dtDoctor.Rows[0]["Gender"].ToString());
                d.UniversityId = Convert.ToInt32(dtDoctor.Rows[0]["UniversityId"].ToString());
                d.RegistrationYear = Convert.ToInt32(dtDoctor.Rows[0]["RegistrationYear"].ToString());
                d.RegistrationNumber = dtDoctor.Rows[0]["RegistrationNumber"].ToString();
                d.Experience = Convert.ToDecimal(dtDoctor.Rows[0]["Experience"].ToString());
                d.Degrees = dtDoctor.Rows[0]["Degrees"].ToString();
                d.Certifications = dtDoctor.Rows[0]["Certifications"].ToString();
                d.PhotoName = dtDoctor.Rows[0]["PhotoName"].ToString();
                d.Mobile = dtDoctor.Rows[0]["Mobile"].ToString();
                d.DepartmentId = Convert.ToInt32(dtDoctor.Rows[0]["DepartmentId"].ToString());
                d.DepartmentName = dtDoctor.Rows[0]["DepartmentName"].ToString();
                d.PreferredName = dtDoctor.Rows[0]["PreferredName"].ToString();
                d.ReferenceToken = dtDoctor.Rows[0]["ReferenceToken"].ToString();
                d.CountryId = Convert.ToInt32(dtDoctor.Rows[0]["CountryId"]);
                d.IsActivated = Convert.ToBoolean(dtDoctor.Rows[0]["IsActivated1"]);
                d.LoginNew = l;
            }

            return d;
        }
Example #9
0
        public ServiceDO GetService(string signInId)
        {
            DataTable dtService = _objServiceDAL.GetService(signInId);

            ServiceDO s = null;

            if (dtService.Rows.Count > 0)
            {
                LoginNewDO l = new LoginNewDO();
                l.LoginId = Convert.ToInt32(dtService.Rows[0]["LoginId"].ToString());
                l.MobileId = dtService.Rows[0]["MobileId"].ToString();
                l.MedAppId = dtService.Rows[0]["MedAppId"].ToString();
                l.EmailId = dtService.Rows[0]["EmailId"].ToString();
                l.Password = "******";
                l.CreatedOn = Convert.ToDateTime(dtService.Rows[0]["CreatedOn"].ToString());
                l.IsDeleted = Convert.ToBoolean(dtService.Rows[0]["IsDeleted"].ToString());

                s = new ServiceDO();
                s.ServiceId = Convert.ToInt32(dtService.Rows[0]["ServiceId"].ToString());
                s.OrganizationId = Convert.ToInt32(dtService.Rows[0]["OrganizationId"].ToString());
                s.LoginNew = l;
                s.ServiceName = dtService.Rows[0]["ServiceName"].ToString();
                s.InCharge = dtService.Rows[0]["InCharge"].ToString();
                s.DepartmentId = Convert.ToInt32(dtService.Rows[0]["DepartmentId"].ToString());
                s.Units = Convert.ToInt32(dtService.Rows[0]["Units"].ToString());
                s.Mobile = dtService.Rows[0]["Mobile"].ToString();
                s.Units = Convert.ToInt32(dtService.Rows[0]["Units"].ToString());
                s.CreatedOn = Convert.ToDateTime(dtService.Rows[0]["CreatedOn"].ToString());
                s.IsDeleted = Convert.ToBoolean(dtService.Rows[0]["IsDeleted"].ToString());
                s.ReferenceToken = dtService.Rows[0]["ReferenceToken"].ToString();
                s.CountryId = Convert.ToInt32(dtService.Rows[0]["CountryId"]);
                s.IsActivated = Convert.ToBoolean(dtService.Rows[0]["IsActivated1"]);
            }

            return s;
        }
Example #10
0
 public int SaveAccount(LoginNewDO l)
 {
     return(_objLoginDAL.SaveAccount(l.LoginId, l.FirstName, l.LastName, l.CountryId, l.MobileId, l.EmailId, l.Password, l.IsDirect, l.IsActivated));
 }