public static List <SelectListItem> GetList(string key) { List <SelectListItem> SelectListList = new List <SelectListItem>(); try { string strError = ""; Common_Func.GetSelectListItem(key, ref SelectListList, ref strError); return(SelectListList); } catch (Exception) { return(SelectListList); } }
public static List <SelectListItem> GetWarehouseList(string key) { List <SelectListItem> SelectListListBack = new List <SelectListItem>() { new SelectListItem { Value = "0", Text = "全部" } }; List <SelectListItem> SelectListList = new List <SelectListItem>(); try { string strError = ""; Common_Func.GetSelectListItem(key, ref SelectListList, ref strError); SelectListListBack.AddRange(SelectListList); return(SelectListListBack); } catch (Exception) { return(SelectListList); } }