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

            return base.Save(fun);
        }
 public ActionResult Create()
 {
     var ent = new IMS_WT_YWRW();
     return View("Edit", ent);
 }
        public ActionResult SaveZP(IMS_WT_YWRW entity)
        {
            Func<ExtResult> fun = () =>
            {
                ExtResult ret = new ExtResult();
                var userid = CurrentUser.GetCurrentUser().UserInfo.YHID;
                dalBusinessTasks.ZPIn(entity.ID, userid, entity.SKU, entity.ZPSL, entity.RQBH);
                return ret;
            };

            return base.Save(fun);
        }