Пример #1
0
        public static ListItem GetListItem(EGovPublicApplyRemarkType type, bool selected)
        {
            var item = new ListItem(GetText(type), GetValue(type));

            if (selected)
            {
                item.Selected = true;
            }
            return(item);
        }
Пример #2
0
 public GovPublicApplyRemarkInfo(int remarkID, int publishmentSystemID, int applyID, EGovPublicApplyRemarkType remarkType, string remark, int departmentID, string userName, DateTime addDate)
 {
     this.remarkID            = remarkID;
     this.publishmentSystemID = publishmentSystemID;
     this.applyID             = applyID;
     this.remarkType          = remarkType;
     this.remark       = remark;
     this.departmentID = departmentID;
     this.userName     = userName;
     this.addDate      = addDate;
 }
Пример #3
0
 public GovPublicApplyRemarkInfo()
 {
     remarkID            = 0;
     publishmentSystemID = 0;
     applyID             = 0;
     remarkType          = EGovPublicApplyRemarkType.Accept;
     remark       = string.Empty;
     departmentID = 0;
     userName     = string.Empty;
     addDate      = DateTime.Now;
 }
Пример #4
0
 public static bool Equals(EGovPublicApplyRemarkType type, string typeStr)
 {
     if (string.IsNullOrEmpty(typeStr))
     {
         return(false);
     }
     if (string.Equals(GetValue(type).ToLower(), typeStr.ToLower()))
     {
         return(true);
     }
     return(false);
 }
Пример #5
0
 public static string GetText(EGovPublicApplyRemarkType type)
 {
     if (type == EGovPublicApplyRemarkType.Accept)
     {
         return("受理");
     }
     else if (type == EGovPublicApplyRemarkType.SwitchTo)
     {
         return("转办");
     }
     else if (type == EGovPublicApplyRemarkType.Comment)
     {
         return("批示");
     }
     else if (type == EGovPublicApplyRemarkType.Redo)
     {
         return("要求返工");
     }
     else
     {
         throw new Exception();
     }
 }
Пример #6
0
 public static string GetValue(EGovPublicApplyRemarkType type)
 {
     if (type == EGovPublicApplyRemarkType.Accept)
     {
         return("Accept");
     }
     else if (type == EGovPublicApplyRemarkType.SwitchTo)
     {
         return("SwitchTo");
     }
     else if (type == EGovPublicApplyRemarkType.Comment)
     {
         return("Comment");
     }
     else if (type == EGovPublicApplyRemarkType.Redo)
     {
         return("Redo");
     }
     else
     {
         throw new Exception();
     }
 }
Пример #7
0
 public static bool Equals(string typeStr, EGovPublicApplyRemarkType type)
 {
     return(Equals(type, typeStr));
 }