Beispiel #1
0
        public ActionResult EditDictInfo(int?id, int?ParentID, string ParentName)
        {
            DictInfo di;

            if (id.HasValue)
            {
                di = sysManageService.GetDictInfo(id.Value);
                if (di == null)
                {
                    throw new ArgumentException("参数错误,不存在对应的数据字典", "DictID");
                }
                else //处理
                {
                }
            }
            else
            {
                di = new DictInfo();
                if (ParentID.HasValue)
                {
                    di.ParentID   = ParentID.Value;
                    di.ParentName = ParentName;
                }
                else
                {
                    di.ParentID   = 0;
                    di.ParentName = "数据字典";
                }
            }
            return(View(di));
        }