// private string GetMemberTypeComboData() { try { SysLogBll.Create("会员类型", "返回会员类型combo数据操作", UserName); StringBuilder strb = new StringBuilder(); strb.Append("["); DataTable dataTable = new MemberTypeCertificationDal().GetAllList(); for (int i = 0; i < dataTable.Rows.Count; i++) { strb.Append("{\"id\":\"" + dataTable.Rows[i]["Id"] + "\", \"text\":\"" + dataTable.Rows[i]["TypeCertificationName"] + "\"}"); if (i < dataTable.Rows.Count - 1) { strb.Append(","); } } strb.Append("]"); return(strb.ToString()); } catch (Exception ex) { SystemErrorPlug.ErrorRecord("时间:[" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "]类名:[" + this.GetType().Name + "],行号:[" + Component.GetLineNum().ToString() + "行],错误信息:[" + ex.Message + "]"); return(string.Empty); } }
public MemberTypeCertificationBll() { dal = new MemberTypeCertificationDal(); }