/// <summary> /// 客户名称 /// </summary> /// <param name="cus_no"></param> /// <param name="selectedValue"></param> /// <param name="isAllowedEmpty"></param> /// <param name="spliter"></param> /// <returns></returns> public static IEnumerable<SelectListItem> GetCustomerNameSelect(string cus_no, string server_type, string selectedValue = null, bool isAllowedEmpty = false, string spliter = null) { IEnumerable<SelectListItem> result = null; IFacadeBDatadictionary IFacade = new FacadeBdatadictionary(); var data = IFacade.GetCustommerList(cus_no, server_type); var valueFieldName = "custom_code"; var textFieldName = "custom_name"; result = DropDownListHelper.GenerateItems(data, valueFieldName, textFieldName, selectedValue, isAllowedEmpty, spliter); return result; }
/// <summary> /// 货物类型 /// </summary> /// <param name="selectedValue"></param> /// <param name="isAllowedEmpty"></param> /// <param name="spliter"></param> /// <returns></returns> public static IEnumerable<SelectListItem> GetCargoTypeSelect(string selectedValue = null, bool isAllowedEmpty = false, string spliter = null) { IEnumerable<SelectListItem> result = null; IFacadeBDatadictionary IFacade = new FacadeBdatadictionary(); var data = IFacade.GetDatadictionaryList(_Dictionary.CargoType); var valueFieldName = "list_no"; var textFieldName = "dictionary_name"; result = DropDownListHelper.GenerateItems(data, valueFieldName, textFieldName, selectedValue, isAllowedEmpty, spliter); return result; }