public ActionResult SaveOrderForm(IMS_VC_DJT ent)
        {
            Func<ExtResult> fun = () =>
            {
                ExtResult ret = new ExtResult();
                ent.CJR = CurrentUser.GetCurrentUser().UserInfo.YHID;
                ent.CJSJ = System.DateTime.Now;
                dalorderform.SaveOrUpdate(ent);
                ret.id = ent.ID;
                ret.success = true;
                return ret;
            };

            return base.Save(fun);
        }
        private void GetDJT(EnumBusinessType bizType, ref IMS_VC_DJT module)
        {

            ViewBag.BizType = "";

            if (bizType == EnumBusinessType.InStorage)
            {
                module.YWLX = (int)EnumBusinessType.InStorage;
                ViewBag.ReturnUrl = Url.Action("InStorageIndex");
                ViewBag.BizType = EnumBusinessType.InStorage;

                //GetBizTypeList();
            }
            else if (bizType == EnumBusinessType.OutputStorage)
            {
                module.YWLX = (int)EnumBusinessType.OutputStorage;
                ViewBag.ReturnUrl = Url.Action("OutputStorageIndex");
                ViewBag.BizType = EnumBusinessType.OutputStorage;
            }

            module.CJSJ = System.DateTime.Now;

            ViewBag.DocumentStatus = new SelectList(
              GetDocumentStatusList(), "SZ", "MC", -1);

            ViewBag.DJStatus = GetStatus(module.DJZT);
        }
        public ActionResult CreateOrderForm(EnumBusinessType bizType)
        {
            var module = new IMS_VC_DJT();
            module.DJZT = 0;
            module.CanModify = true;
            GetDJT(bizType, ref module);

            module.CJSJ = System.DateTime.Now;

            return View("EditOrderForm", module);
        }