Ejemplo n.º 1
0
 public ActionResult DailyReporting(string dcrActualDate)
 {
     ViewBag.CompanyCode  = _objCurrentInfo.GetCompanyCode();
     ViewBag.RegionCode   = _objCurrentInfo.GetRegionCode();
     ViewBag.UserCode     = _objCurrentInfo.GetUserCode();
     ViewBag.UserTypeCode = _objCurrentInfo.GetUserTypeCode();
     ViewBag.dcrdate      = dcrActualDate;
     ViewBag.UserName     = _objCurrentInfo.GetUserName();
     ViewBag.RegionName   = _objCurrentInfo.GetRegionName();
     return(View());
 }
Ejemplo n.º 2
0
 public ActionResult InwardAllocation()
 {
     _objCurrentInfo      = new CurrentInfo();
     ViewBag.CompanyCode  = _objCurrentInfo.GetCompanyCode();
     ViewBag.RegionCode   = _objCurrentInfo.GetRegionCode();
     ViewBag.RegionName   = _objCurrentInfo.GetRegionName();
     ViewBag.UserCode     = _objCurrentInfo.GetUserCode();
     ViewBag.UserName     = _objCurrentInfo.GetUserName();
     ViewBag.UserTypeName = _objCurrentInfo.GetUserTypeName();
     return(View());
 }
Ejemplo n.º 3
0
 public ActionResult STOS_Approval()
 {
     _objCurrentInfo      = new CurrentInfo();
     ViewBag.CompanyCode  = _objCurrentInfo.GetCompanyCode();
     ViewBag.RegionCode   = _objCurrentInfo.GetRegionCode();
     ViewBag.RegionName   = _objCurrentInfo.GetRegionName();
     ViewBag.UserCode     = _objCurrentInfo.GetUserCode();
     ViewBag.UserName     = _objCurrentInfo.GetUserName();
     ViewBag.UserTypeName = _objCurrentInfo.GetUserTypeName();
     return(View());
 }
Ejemplo n.º 4
0
 public ActionResult Request(string regionCode, int?stosId)
 {
     _objCurrentInfo             = new CurrentInfo();
     ViewBag.CompanyCode         = _objCurrentInfo.GetCompanyCode();
     ViewBag.RequestRegionCode   = _objCurrentInfo.GetRegionCode();
     ViewBag.RequestRegionName   = _objCurrentInfo.GetRegionName();
     ViewBag.RequestUserCode     = _objCurrentInfo.GetUserCode();
     ViewBag.RequestUserName     = _objCurrentInfo.GetUserName();
     ViewBag.RequestUserTypeName = _objCurrentInfo.GetUserTypeName();
     ViewBag.RequestUserTypeCode = _objCurrentInfo.GetUserTypeCode();
     ViewBag.StosId       = stosId;
     ViewBag.SelectedUser = regionCode;
     return(View());
 }
Ejemplo n.º 5
0
        public ActionResult STOSEmailTrigger()
        {
            _objCurrentInfo             = new CurrentInfo();
            ViewBag.CompanyCode         = _objCurrentInfo.GetCompanyCode();
            ViewBag.RequestRegionCode   = _objCurrentInfo.GetRegionCode();
            ViewBag.RequestRegionName   = _objCurrentInfo.GetRegionName();
            ViewBag.RequestUserCode     = _objCurrentInfo.GetUserCode();
            ViewBag.RequestUserName     = _objCurrentInfo.GetUserName();
            ViewBag.RequestUserTypeName = _objCurrentInfo.GetUserTypeName();
            ViewBag.RequestUserTypeCode = _objCurrentInfo.GetUserTypeCode();


            return(View());
        }
Ejemplo n.º 6
0
 public ActionResult DetailedfeedbackScreen(string SSID)
 {
     if (!string.IsNullOrEmpty(SSID))
     {
         string         parameters = System.Text.ASCIIEncoding.ASCII.GetString(System.Convert.FromBase64String(SSID));
         DieticianModel obj        = Newtonsoft.Json.JsonConvert.DeserializeObject <DieticianModel>(parameters);
         ViewBag.CompanyCode  = obj.Company_Code;
         ViewBag.RegionCode   = obj.Region_Code;
         ViewBag.UserCode     = obj.User_Code;
         ViewBag.UserTypeCode = obj.User_Type_Code;
         ViewBag.UserName     = obj.User_Name;
         ViewBag.RegionName   = obj.Region_Name;
     }
     else
     {
         ViewBag.CompanyCode  = _objCurrentInfo.GetCompanyCode();
         ViewBag.RegionCode   = _objCurrentInfo.GetRegionCode();
         ViewBag.UserCode     = _objCurrentInfo.GetUserCode();
         ViewBag.UserTypeCode = _objCurrentInfo.GetUserTypeCode();
         ViewBag.UserName     = _objCurrentInfo.GetUserName();
         ViewBag.RegionName   = _objCurrentInfo.GetRegionName();
     }
     return(View());
 }
Ejemplo n.º 7
0
        public ActionResult Index()
        {
            _objCurrentInfo             = new CurrentInfo();
            ViewBag.CompanyCode         = _objCurrentInfo.GetCompanyCode();
            ViewBag.RequestRegionCode   = _objCurrentInfo.GetRegionCode();
            ViewBag.RequestRegionName   = _objCurrentInfo.GetRegionName();
            ViewBag.RequestUserCode     = _objCurrentInfo.GetUserCode();
            ViewBag.RequestUserName     = _objCurrentInfo.GetUserName();
            ViewBag.RequestUserTypeName = _objCurrentInfo.GetUserTypeName();
            ViewBag.RequestUserTypeCode = _objCurrentInfo.GetUserTypeCode();
            DataControl.BLUser _objBlUser = new DataControl.BLUser();
            List <MVCModels.HiDoctor_Master.UserModel> lstUser = new List <MVCModels.HiDoctor_Master.UserModel>();

            lstUser = _objBlUser.GetImmediateChildUserForTree(_objCurrentInfo.GetCompanyCode(), _objCurrentInfo.GetUserCode()).ToList();
            if (lstUser.Count > 0)
            {
                ViewBag.ShowTeam = "YES";
            }
            else
            {
                ViewBag.ShowTeam = "NO";
            }
            return(View());
        }
Ejemplo n.º 8
0
        public string GetGrievanceURL()
        {
            CurrentInfo _objCurrInfo = new CurrentInfo();
            string      LoginParams  = string.Empty;
            string      GrievanceUrl = string.Empty;

            try
            {
                CompanyDetails lstcompdetails = new CompanyDetails();
                lstcompdetails.Company_Code    = _objCurrInfo.GetCompanyCode();
                lstcompdetails.Region_Code     = _objCurrInfo.GetRegionCode();
                lstcompdetails.Region_Name     = _objCurrInfo.GetRegionName();
                lstcompdetails.User_Code       = _objCurrInfo.GetUserCode();
                lstcompdetails.Employee_Code   = _objCurrInfo.GetEmployeeCode();
                lstcompdetails.Employee_Number = _objCurrInfo.GetEmployeeNumber();
                lstcompdetails.Employee_Name   = _objCurrInfo.GetEmployeeName();
                lstcompdetails.UserName        = _objCurrInfo.GetUserName();
                lstcompdetails.User_Type_Code  = _objCurrInfo.GetUserTypeCode();
                lstcompdetails.User_Type_Name  = _objCurrInfo.GetUserTypeName();
                lstcompdetails.Role_Id         = 0;


                LoginParams = JsonConvert.SerializeObject(lstcompdetails);
                byte[] LoginParamsEncode = System.Text.Encoding.UTF8.GetBytes(LoginParams);
                LoginParams = Convert.ToBase64String(LoginParamsEncode);


                GrievanceUrl = LoginParams;
                return(GrievanceUrl);
            }
            catch (Exception ex)
            {
                DataControl.Impl.ExceptionHandler.WriteLog(ex, null);
                return(string.Empty);
            }
        }
Ejemplo n.º 9
0
 // Action Result or View to Patient Creation Master
 public ActionResult PatientCreationMaster()
 {
     ViewBag.Region_Code = _ObjCurrentInfo.GetRegionCode();
     ViewBag.Region_Name = _ObjCurrentInfo.GetRegionName();
     return(View());
 }