public ActionResult SaveCondition(IMS_CM_YHDX entity)
        {
            Func<ExtResult> saveFun = () =>
            {
                entity.XGRQ = System.DateTime.Now;
                entity.YHID = CurrentUser.GetCurrentUser().UserInfo.YHID;
                dalUserObj.SaveOrUpdate(entity);
                ExtResult ret = new ExtResult();
                ret.success = true;
                ret.msg = "保存成功";
                ret.retString = entity.DXTJ;
                return ret;
            };

            return base.Save(saveFun);
        }
        public ActionResult CreateCondition(string tablename, bool onlyFind=false )
        {
            ViewBag.OnlyFind = onlyFind;

            var ent = new IMS_CM_YHDX()
            {
                DXDM = tablename,
                YHID = CurrentUser.GetCurrentUser().UserInfo.YHID
            };
            ViewBag.fieldJson = GetFieldList(ent.DXDM);
            ViewBag.Express = MvcHtmlString.Create("null");
        
            return View("EditCondition", ent);
        }