コード例 #1
0
 /// <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;
 }