示例#1
0
        public static void Log(int publishmentSystemID, int nodeID, int contentID, EGovInteractLogType logType, string administratorName, int departmentId)
        {
            var logInfo = new GovInteractLogInfo(0, publishmentSystemID, nodeID, contentID, departmentId, administratorName, logType, PageUtils.GetIpAddress(), DateTime.Now, string.Empty);

            var departmentName = DepartmentManager.GetDepartmentName(departmentId);

            if (logType == EGovInteractLogType.Accept)
            {
                logInfo.Summary = $"{departmentName}({administratorName})受理办件";
            }
            else if (logType == EGovInteractLogType.Deny)
            {
                logInfo.Summary = $"{departmentName}({administratorName})拒绝受理办件";
            }
            else if (logType == EGovInteractLogType.Reply)
            {
                logInfo.Summary = $"{departmentName}({administratorName})回复办件";
            }
            else if (logType == EGovInteractLogType.Comment)
            {
                logInfo.Summary = $"{departmentName}({administratorName})批示办件";
            }
            else if (logType == EGovInteractLogType.Redo)
            {
                logInfo.Summary = $"{departmentName}({administratorName})要求返工";
            }
            else if (logType == EGovInteractLogType.Check)
            {
                logInfo.Summary = $"{departmentName}({administratorName})审核通过";
            }
            DataProvider.GovInteractLogDao.Insert(logInfo);
        }
示例#2
0
        public static ListItem GetListItem(EGovInteractLogType type, bool selected)
        {
            var item = new ListItem(GetText(type), GetValue(type));

            if (selected)
            {
                item.Selected = true;
            }
            return(item);
        }
示例#3
0
 public static bool Equals(EGovInteractLogType type, string typeStr)
 {
     if (string.IsNullOrEmpty(typeStr))
     {
         return(false);
     }
     if (string.Equals(GetValue(type).ToLower(), typeStr.ToLower()))
     {
         return(true);
     }
     return(false);
 }
示例#4
0
 public GovInteractLogInfo(int logID, int publishmentSystemID, int nodeID, int contentID, int departmentID, string userName, EGovInteractLogType logType, string ipAddress, DateTime addDate, string summary)
 {
     this.logID = logID;
     this.publishmentSystemID = publishmentSystemID;
     this.nodeID       = nodeID;
     this.contentID    = contentID;
     this.departmentID = departmentID;
     this.userName     = userName;
     this.logType      = logType;
     this.ipAddress    = ipAddress;
     this.addDate      = addDate;
     this.summary      = summary;
 }
示例#5
0
 public GovInteractLogInfo()
 {
     logID = 0;
     publishmentSystemID = 0;
     nodeID       = 0;
     contentID    = 0;
     departmentID = 0;
     userName     = string.Empty;
     logType      = EGovInteractLogType.New;
     ipAddress    = string.Empty;
     addDate      = DateTime.Now;
     summary      = string.Empty;
 }
示例#6
0
 public static string GetText(EGovInteractLogType type)
 {
     if (type == EGovInteractLogType.New)
     {
         return("前台网友提交办件");
     }
     else if (type == EGovInteractLogType.Accept)
     {
         return("受理办件");
     }
     else if (type == EGovInteractLogType.Deny)
     {
         return("拒绝办件");
     }
     else if (type == EGovInteractLogType.SwitchTo)
     {
         return("转办办件");
     }
     else if (type == EGovInteractLogType.Translate)
     {
         return("转移办件");
     }
     else if (type == EGovInteractLogType.Comment)
     {
         return("批示办件");
     }
     else if (type == EGovInteractLogType.Redo)
     {
         return("要求返工");
     }
     else if (type == EGovInteractLogType.Reply)
     {
         return("回复办件");
     }
     else if (type == EGovInteractLogType.Check)
     {
         return("审核通过办件");
     }
     else
     {
         throw new Exception();
     }
 }
示例#7
0
 public static string GetValue(EGovInteractLogType type)
 {
     if (type == EGovInteractLogType.New)
     {
         return("New");
     }
     else if (type == EGovInteractLogType.Accept)
     {
         return("Accept");
     }
     else if (type == EGovInteractLogType.Deny)
     {
         return("Deny");
     }
     else if (type == EGovInteractLogType.SwitchTo)
     {
         return("SwitchTo");
     }
     else if (type == EGovInteractLogType.Translate)
     {
         return("Translate");
     }
     else if (type == EGovInteractLogType.Comment)
     {
         return("Comment");
     }
     else if (type == EGovInteractLogType.Redo)
     {
         return("Redo");
     }
     else if (type == EGovInteractLogType.Reply)
     {
         return("Reply");
     }
     else if (type == EGovInteractLogType.Check)
     {
         return("Check");
     }
     else
     {
         throw new Exception();
     }
 }
示例#8
0
 public static bool Equals(string typeStr, EGovInteractLogType type)
 {
     return(Equals(type, typeStr));
 }