Пример #1
0
        public static dynamic GetCustomerCompany_Code(string strCompany, string strBranch)
        {
            if (HttpContext.Current.Session["Hr_UserDL"] != null)
            {
                // AspNetUserDL CurrentUser = (AspNetUserDL)HttpContext.Current.Session["Hr_UserDL"];

                return(AppSettingBL.GetObject().GetCustomerCompany_Code(strCompany, strBranch));
            }
            else
            {
                return("1");
            }
        }
Пример #2
0
        public static dynamic GetCalcWithGrade(string strCompany, string strBranch)
        {
            if (HttpContext.Current.Session["Hr_UserDL"] != null)
            {
                // AspNetUserDL CurrentUser = (AspNetUserDL)HttpContext.Current.Session["Hr_UserDL"];
                AspNetUserDL CurrentUser = (AspNetUserDL)HttpContext.Current.Session["Hr_UserDL"];

                AppSettingBL.GetObject().UserNameProperty = CurrentUser.UserName;
                return(AppSettingBL.GetObject().GetCalcWithGrade(strCompany, strBranch));
            }
            else
            {
                return(0);
            }
        }