public static bool Equals(ESigninPriority 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(ESigninPriority type) { if (type == ESigninPriority.Lower) { return("低"); } if (type == ESigninPriority.Normal) { return("普通"); } if (type == ESigninPriority.High) { return("高"); } throw new Exception(); }
public static string GetValue(ESigninPriority type) { if (type == ESigninPriority.Lower) { return("1"); } if (type == ESigninPriority.Normal) { return("2"); } if (type == ESigninPriority.High) { return("3"); } throw new Exception(); }