public PartialViewResult StoreGroupCombo(string name, T_STORE_GROUP Param, string selectedValue, string optionLabel, string htmlAttributes) { Param.STORE_CODE = Param.STORE_CODE == null ? -1 : Param.STORE_CODE; List <SelectListItem> combolist = new List <SelectListItem>(); IList <T_STORE_GROUP> list = new loggalServiceBiz.StoreService().GetStoreGroup(Param); if (list == null) { list = new List <T_STORE_GROUP>(); } DROPDOWN_COND data = new DROPDOWN_COND { name = name , selectList = list.Select(s => new SelectListItem { Value = s.GROUP_CODE.ToString(), Text = s.GROUP_NAME, Selected = (selectedValue == s.GROUP_CODE.ToString()) ? true : false }).ToList() , optionLabel = optionLabel , htmlAttributes = JsonConvert.DeserializeAnonymousType(htmlAttributes, new { @class = "", @style = "", @placeholder = "", @readonly = "" }) }; return(PartialCombo(data)); }
public PartialViewResult StoreCombo(string name, T_STORE_COND Param, string selectedValue, string optionLabel, string htmlAttributes) { List <SelectListItem> combolist = new List <SelectListItem>(); Param.PAGE_COUNT = 3000; IList <T_STORE> list = new ALT.BizService.BasicService().GetStoreList(Param); if (list == null) { list = new List <T_STORE>(); } DROPDOWN_COND data = new DROPDOWN_COND { name = name , selectList = list.Select(s => new SelectListItem { Value = s.STORE_CODE.ToString(), Text = s.STORE_NAME, Selected = (selectedValue == s.STORE_CODE.ToString()) ? true : false }).ToList() , optionLabel = optionLabel , htmlAttributes = JsonConvert.DeserializeAnonymousType(htmlAttributes, new { @class = "", @style = "", @placeholder = "", @readonly = "" }) }; return(PartialCombo(data)); }
public PartialViewResult KeywordSynonymCombo(string name, T_KEYWORD_COND Cond, string selectedValue, string optionLabel, string htmlAttributes) { List <SelectListItem> combolist = new List <SelectListItem>(); Cond.PAGE = 1; Cond.PAGE_COUNT = 100; Cond.IS_SYNONYM = true; IList <T_KEYWORD> list = new KeywordService().GetKeywordPageList(Cond); if (list == null) { list = new List <T_KEYWORD>(); } DROPDOWN_COND data = new DROPDOWN_COND { name = name , selectList = list.Select(s => new SelectListItem { Value = s.KEYWORD_CODE.ToString(), Text = s.KEYWORD_NAME, Selected = true }).ToList() , optionLabel = optionLabel , htmlAttributes = JsonConvert.DeserializeAnonymousType(htmlAttributes, new { @class = "", @style = "", @placeholder = "", @readonly = "", @multiple = "" }) }; return(PartialCombo(data)); }
public PartialViewResult EmployeeCombo(string name, EMPLOYEE_COND Param, string selectedValue, string optionLabel, string htmlAttributes) { List <SelectListItem> combolist = new List <SelectListItem>(); IList <EMPLOYEE_INFO> list = new ALT.BizService.EmployeeService().GetEmployeeList(Param); if (list == null) { list = new List <EMPLOYEE_INFO>(); } DROPDOWN_COND data = new DROPDOWN_COND { name = name , selectList = list.Select(s => new SelectListItem { Value = s.MEMBER_CODE.ToString(), Text = s.USER_NAME, Selected = (selectedValue == s.MEMBER_CODE.ToString()) ? true : false }).ToList() , optionLabel = optionLabel , htmlAttributes = JsonConvert.DeserializeAnonymousType(htmlAttributes, new { @class = "", @style = "", @placeholder = "", @readonly = "" }) }; return(PartialCombo(data)); }
public PartialViewResult CategoryKeywordCombo(string name, CATEGORY_KEYWORD_COND Cond, string selectedValue, string optionLabel, string htmlAttributes) { List <SelectListItem> combolist = new List <SelectListItem>(); IList <CODE_DATA> list = new KeywordService().GetCategoryKeywordList2(Cond); if (list == null) { list = new List <CODE_DATA>(); } DROPDOWN_COND data = new DROPDOWN_COND { name = name , selectList = list.Select(s => new SelectListItem { Value = s.CODE.ToString(), Text = s.NAME, Selected = true }).ToList() , optionLabel = optionLabel , htmlAttributes = JsonConvert.DeserializeAnonymousType(htmlAttributes, new { @class = "", @style = "", @placeholder = "", @readonly = "", @multiple = "" }) }; return(PartialCombo(data)); }