Exemplo n.º 1
0
        public static ListItem GetListItem(EGovPublicApplyLimitType type, bool selected)
        {
            var item = new ListItem(GetText(type), GetValue(type));

            if (selected)
            {
                item.Selected = true;
            }
            return(item);
        }
Exemplo n.º 2
0
 public static bool Equals(EGovPublicApplyLimitType type, string typeStr)
 {
     if (string.IsNullOrEmpty(typeStr))
     {
         return(false);
     }
     if (string.Equals(GetValue(type).ToLower(), typeStr.ToLower()))
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 3
0
 public static string GetText(EGovPublicApplyLimitType type)
 {
     if (type == EGovPublicApplyLimitType.Normal)
     {
         return("未超期");
     }
     else if (type == EGovPublicApplyLimitType.Alert)
     {
         return("预警");
     }
     else if (type == EGovPublicApplyLimitType.Yellow)
     {
         return("黄牌");
     }
     else if (type == EGovPublicApplyLimitType.Red)
     {
         return("红牌");
     }
     else
     {
         throw new Exception();
     }
 }
Exemplo n.º 4
0
 public static string GetValue(EGovPublicApplyLimitType type)
 {
     if (type == EGovPublicApplyLimitType.Normal)
     {
         return("Normal");
     }
     else if (type == EGovPublicApplyLimitType.Alert)
     {
         return("Alert");
     }
     else if (type == EGovPublicApplyLimitType.Yellow)
     {
         return("Yellow");
     }
     else if (type == EGovPublicApplyLimitType.Red)
     {
         return("Red");
     }
     else
     {
         throw new Exception();
     }
 }
Exemplo n.º 5
0
 public static string GetText(EGovPublicApplyLimitType type)
 {
     if (type == EGovPublicApplyLimitType.Normal)
     {
         return("䳬ÆÚ");
     }
     else if (type == EGovPublicApplyLimitType.Alert)
     {
         return("Ô¤¾¯");
     }
     else if (type == EGovPublicApplyLimitType.Yellow)
     {
         return("»ÆÅÆ");
     }
     else if (type == EGovPublicApplyLimitType.Red)
     {
         return("ºìÅÆ");
     }
     else
     {
         throw new Exception();
     }
 }
Exemplo n.º 6
0
 public static bool Equals(string typeStr, EGovPublicApplyLimitType type)
 {
     return(Equals(type, typeStr));
 }