public static List <SelectListItem> GetTestTypeList() { List <SelectListItem> list = new List <SelectListItem>(); DataTable dt = MandateInfoPro.GetConfigInfo("", "testType"); if (dt == null) { return(list); } SelectListItem SelListItem = new SelectListItem(); SelListItem.Value = ""; SelListItem.Text = "请选择"; list.Add(SelListItem); for (int i = 0; i < dt.Rows.Count; i++) { SelListItem = new SelectListItem(); SelListItem.Value = dt.Rows[i][1].ToString(); SelListItem.Text = dt.Rows[i][1].ToString(); list.Add(SelListItem); } return(list); }
public static DataTable GetConfigInfo(string condition, string TaskType) { return(MandateInfoPro.GetConfigInfo(condition, TaskType)); }