public static ListItem GetListItem(EGovPublicApplyLimitType type, bool selected) { var item = new ListItem(GetText(type), GetValue(type)); if (selected) { item.Selected = true; } return(item); }
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); }
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(); } }
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(); } }
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(); } }
public static bool Equals(string typeStr, EGovPublicApplyLimitType type) { return(Equals(type, typeStr)); }