コード例 #1
0
        public ActionResult EditOrderForm(long id)
        {
            var order = dalorderform.GetEntity(id);

            ViewBag.BizType = "";

            ViewBag.DocumentStatus = new SelectList(
                GetDocumentStatusList(), "SZ", "MC", order.DJZT);

            if (order == null)
            {
                throw new JsMiracleException("单据不存在");
            }

            var code = dalCode.GetCode(CodeTypeEnum.BusinessType, order.YWLX);

            if (code == null)
            {
                throw new JsMiracleException("业务类型不存在");
            }

            var bizType = FunctionHelp.GetEnum <EnumBusinessType>(code.SZ);

            GetDJT(bizType, ref order);

            return(View(order));
        }