Esempio n. 1
0
 /// <summary>
 /// view page for Inward Adjustment
 /// </summary>
 /// <returns></returns>
 public ActionResult InwardAdjustment()
 {
     _objCurrentInfo      = new CurrentInfo();
     IConfig_Settings     = new Config_Settings();
     ViewBag.Cur_UserCode = _objCurrentInfo.GetUserCode();
     ViewBag.InwardAcknowledgementNeeded = IConfig_Settings.GetConfigDefaultValue(_objCurrentInfo.GetCompanyCode(), CONFIG_TYPE.INWARD, CONFIG_KEY.INWARD_ACKNOWLEDGEMENT_NEEDED);
     ViewBag.UserTypeName = _objCurrentInfo.GetUserTypeName();
     return(View());
 }
Esempio n. 2
0
 public ActionResult Index()
 {
     _objCurrentInfo            = new CurrentInfo();
     ViewBag.CompanyCode        = _objCurrentInfo.GetCompanyCode();
     ViewBag.LoggedUserName     = _objCurrentInfo.GetUserName();
     ViewBag.LoggedEmployeeName = _objCurrentInfo.GetEmployeeName();
     ViewBag.loggedUserTypeName = _objCurrentInfo.GetUserTypeName();
     ViewBag.RequestUserCode    = _objCurrentInfo.GetUserCode();
     return(View());
 }
Esempio n. 3
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());
 }
Esempio n. 4
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());
 }
Esempio n. 5
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());
 }
Esempio n. 6
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());
        }
Esempio n. 7
0
        public string urlEncodeing()
        {
            MVCModels.UserInfoModel objuser    = new MVCModels.UserInfoModel();
            CurrentInfo             objCurInfo = new CurrentInfo();
            string userParam = string.Empty;

            objuser.Company_Code   = objCurInfo.GetCompanyCode();
            objuser.User_Code      = objCurInfo.GetUserCode();
            objuser.User_Type_Code = objCurInfo.GetUserTypeCode();
            objuser.Region_Code    = objCurInfo.GetRegionCode();
            objuser.Company_Id     = objCurInfo.GetCompanyId();
            objuser.User_Details   = objCurInfo.GetUserName() + " (" + objCurInfo.GetUserTypeName() + ")";
            objuser.Is_Mobile      = "NO";
            userParam = Newtonsoft.Json.JsonConvert.SerializeObject(objuser);
            byte[] LoginParamsEncode = System.Text.Encoding.UTF8.GetBytes(userParam);
            userParam = Convert.ToBase64String(LoginParamsEncode);
            return(userParam);
        }
Esempio n. 8
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());
        }
Esempio n. 9
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);
            }
        }