Beispiel #1
0
        /// <summary>
        /// 获取地区下拉框
        /// </summary>
        /// <returns></returns>
        public ActionResult GetAllSelectItem(string value = "")
        {
            if (value.Length != 6)
            {
                return(DataErorrJResult());
            }
            var provinceList = IDataDictionaryService.GetSelectList(GroupCode.Area, "");
            var cityList     = IDataDictionaryService.GetSelectList(GroupCode.Area, value.Substring(0, 2) + "0000");
            var countyList   = IDataDictionaryService.GetSelectList(GroupCode.Area, value.Substring(0, 4) + "00");

            return(JResult(
                       new
            {
                Provinces = provinceList,
                Citys = cityList,
                Countys = countyList
            }));
        }
Beispiel #2
0
 public ActionResult GetFuncList()
 {
     return(JResult(IDataDictionaryService.GetSelectList(GroupCode.Function, "")));
 }
Beispiel #3
0
 public ViewResult Index()
 {
     return(View(IDataDictionaryService.GetSelectList(GroupCode.Area, "")));
 }
Beispiel #4
0
 /// <summary>
 /// 获取地区下拉框
 /// </summary>
 /// <returns></returns>
 public ActionResult GetSelectItem(string value = "")
 {
     return(JResult(IDataDictionaryService.GetSelectList(GroupCode.Area, value)));
 }
 /// <summary>
 /// 查找实体
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public ActionResult GetMusicCategorySelectList(string ID)
 {
     return(JResult(IDataDictionaryService.GetSelectList(GroupCode.MusicCategory, "")));
 }