示例#1
0
        public static string LastValue(string userId, string operate, string value, string machin_name, string screen_size, string browser_type, string browser_version)
        {
            try
            {
                var parameter = new
                {
                    Operate        = operate,
                    UserID         = HttpContext.Current.User.Identity.Name,
                    Value          = value,
                    MachinName     = machin_name,
                    ScreenSize     = screen_size,
                    BrowserType    = browser_type,
                    BrowserVersion = browser_version
                };

                return(CommonExecute <string> .ValueOfT(SP + " @Operate, @UserID,@Value,@MachinName,@ScreenSize,@BrowserType,@BrowserVersion", parameter));
            }
            catch (Exception ex)
            {
                string myEx = ex.Message;
                return(null);
            }
            finally
            { }
        }
示例#2
0
        public static string NotificationeTemplatePersonal(string operate, string userID, string category, string noticeType, string noticeArea, string noticeGo, string noticeFrom, string purpose, string templateType, string subject, string template, string autoNotice)

        {
            try
            {
                var parameter = new
                {
                    Operate      = operate,
                    UserID       = HttpContext.Current.User.Identity.Name,
                    Category     = category,
                    NoticeType   = noticeType,
                    NoticeArea   = noticeArea,
                    NoticeGo     = noticeGo,
                    NoticeFrom   = noticeFrom,
                    Purpose      = purpose,
                    TemplateType = templateType,
                    Subject      = subject,
                    Template     = template,
                    AutoNotice   = autoNotice
                };
                string sp = GetSP("NotificationeTemplatePersonalSaveAuto");
                return(CommonExecute <string> .ValueOfT(sp, parameter));
            }
            catch (Exception ex)
            {
                var em = ex.Message;
                return("");
            }
        }
示例#3
0
        public static string DbTable(string action, string className)
        {
            var parameter = new
            {
                Action    = action,
                ClassName = className
            };
            string sp = "dbo.EPA_sys_StoreProcedureName";

            return(CommonExecute <string> .ValueOfT(sp, parameter));
        }
示例#4
0
 public static string GetValue(string sp, object parameter)
 {
     try
     {
         return(CommonExecute <string> .ValueOfT(sp, parameter));
     }
     catch (Exception ex)
     {
         var em = ex.Message;
         return("");
     }
 }
示例#5
0
 public static string NotificationeMailSave(object parameter)
 {
     try
     {
         string sp = GetSP("NotificationeMailSave");
         return(CommonExecute <string> .ValueOfT(sp, parameter));
     }
     catch (Exception ex)
     {
         var em = ex.Message;
         return("");
     }
 }
示例#6
0
        public static string NotificationeMailUser(string objType, EmailNoticePara parameter)
        {
            try
            {
                parameter.NoticeType = objType;

                string sp = GetSP("NotificationeUserEmail");
                return(CommonExecute <string> .ValueOfT(sp, parameter));
            }
            catch (Exception ex)
            {
                var em = ex.Message;
                return("");
            }
        }
示例#7
0
 private static string GetProfile(string pType)
 {
     try
     {
         var parameter = new
         {
             Operate = pType,
             UserID  = HttpContext.Current.User.Identity.Name
         };
         return(CommonExecute <string> .ValueOfT("dbo.EPA_sys_LoginUserProfile @Operate, @UserID", parameter));
     }
     catch (Exception ex)
     {
         var em = ex.Message;
         return("");
     }
 }
示例#8
0
        private static void LastValue(string operate, string value)
        {
            try
            {
                var parameter = new
                {
                    Operate = operate,
                    UserID  = HttpContext.Current.User.Identity.Name,
                    Value   = value
                };

                string result = CommonExecute <string> .ValueOfT(SP + " @Operate, @UserID,@Value", parameter);
            }
            catch (Exception ex)
            { var em = ex.Message; }
            finally
            { }
        }
示例#9
0
        public static string NotificationeMail(string operate, string userID, string schoolyear, string schoolcode, string employeeId, string sessionID, string noticeType, string noticeArea)
        {
            var parameter = new EmailNoticePara()
            {
                Operate    = operate,
                UserID     = userID,
                SchoolYear = schoolyear,
                SchoolCode = schoolcode,
                EmployeeID = employeeId,
                SessionID  = sessionID,
                NoticeType = noticeType,
                NoticeArea = noticeArea
            };

            string sp = GetSP("NotificationeMail");

            return(CommonExecute <string> .ValueOfT(sp, parameter));
        }
示例#10
0
 public static string FeedBackeMail(string operate, string userID, string noticType)
 {
     try
     {
         var parameter = new
         {
             Operate    = operate,
             UserID     = HttpContext.Current.User.Identity.Name,
             NoticeType = noticType
         };
         string sp = GetSP("FeedBackeMail");
         return(CommonExecute <string> .ValueOfT(sp, parameter));
     }
     catch (Exception ex)
     {
         var em = ex.Message;
         return("");
     }
 }
示例#11
0
        private static string LastValue(string operate)
        {
            try
            {
                var parameter = new
                {
                    Operate = operate,
                    UserID  = HttpContext.Current.User.Identity.Name
                };

                return(CommonExecute <string> .ValueOfT(SP + " @Operate, @UserID", parameter));
            }
            catch (Exception ex)
            {
                var em = ex.Message;
                return("");
            }
            finally
            { }
        }
示例#12
0
 public static string UserLoginRole(string userId)
 {
     return(CommonExecute <string> .ValueOfT("dbo.EPA_sys_LoginUserProfile @Operate, @UserID", new { Operate = "Role", UserID = userId }));
 }