Example #1
0
        public static MvcHtmlString DictDropdownList(this HtmlHelper html, string name, string dictCode, DictValueType dictValueType, object selectedValue, object htmlAttributes)
        {
            ISysManageService service    = ObjectFactory.GetInstance <ISysManageService>();
            List <DictInfo>   dictlsit   = service.GetChildDictInfos(dictCode);
            string            valueField = "";

            if (dictValueType == DictValueType.DictName)
            {
                valueField = "DictName";
            }
            else if (dictValueType == DictValueType.DictCode)
            {
                valueField = "DictCode";
            }
            else
            {
                valueField = "DictID";
            }
            SelectList list = new SelectList(dictlsit, valueField, "DictName", selectedValue);

            return(html.DropDownList(name, list, htmlAttributes));
        }
Example #2
0
 public SysManageController(ISysManageService sysservice)
 {
     sysManageService = sysservice;
 }
Example #3
0
 public SysManageController(ISysManageService sysservice)
 {
     sysManageService = sysservice;
 }
Example #4
0
 public HomeController(ISysManageService service)
 {
     _SysManageService = service;
 }
Example #5
0
 public HomeController(ISysManageService service)
 {
     _SysManageService = service;
 }