/// <summary> /// 翻译grid字段中的数字 /// </summary> /// <param name="id"></param> /// <returns></returns> public string GetOrderType(string id) { string orderType = null; switch (id) { case "0": orderType = this.GetTran("001433", "自由注册"); break; case "31": orderType = this.GetTran("001458", "零购注册"); break; case "11": orderType = this.GetTran("000555", "店铺注册"); break; case "21": orderType = this.GetTran("007530", "会员注册"); break; case "12": orderType = this.GetTran("002141", "服务机构复消"); break; case "22": orderType = this.GetTran("001448", "会员自由复消"); break; case "25": orderType = new BLL.TranslationBase().GetTran("008122", "会员复消提货"); break; case "13": orderType = new BLL.TranslationBase().GetTran("008153", "服务机构升级单"); break; case "23": orderType = new BLL.TranslationBase().GetTran("008154", "会员升级单"); break; case "33": orderType = new BLL.TranslationBase().GetTran("008155", "公司升级单"); break; } return(orderType); }
/// <summary> /// 获取科目的具体名称 --程凯 2012-6-29 /// </summary> /// <param name="enumItem">具体枚举类型</param> /// <returns></returns> public static string GetKmtype(string kmtype) { string res = ""; try { if (int.Parse(kmtype) >= 0 && int.Parse(kmtype) <= 40) { res = new BLL.TranslationBase().GetTran(DAL.DBHelper.ExecuteScalar("select isnull(SubjectName,'') as SubjectName from AccountSubject where SubjectID=" + kmtype).ToString(), ""); } else { res = ""; } } catch { res = ""; } return(res); }