Example #1
0
        public ActionResult Save(IMS_WT_DZRW ent)
        {
            Func <ExtResult> fun = () =>
            {
                if (ent.ID == 0)
                {
                    ent.CJR  = CurrentUser.GetCurrentUser().UserInfo.YHID;
                    ent.CJSJ = System.DateTime.Now;
                }
                ExtResult ret = new ExtResult();
                dalActionTasks.SaveOrUpdate(ent);
                ret.success = true;
                return(ret);
            };

            return(base.Save(fun));
        }
Example #2
0
        public ActionResult Create()
        {
            var ent = new IMS_WT_DZRW();

            return(View("Edit", ent));
        }