public ActionResult Edit(string id)
        {
            var userName       = TradeHelper.GetUserName();
            var currentProject = TradeHelper.GetCurrentProject();
            var data           = new TrailerApiController().GetEditMaster(id);
            var codeService    = new sys_codeService();

            var model = new
            {
                form       = data.form,
                scrollKeys = data.scrollKeys,
                urls       = TradeHelper.GetEditUrls("trailer"),
                resx       = TradeHelper.GetEditResx("内贸订单"),
                dataSource = new
                {
                },
                defaultForm = new trade_trailer().Extend(new
                {
                    JOBNO        = id,
                    TR_ORDERDATE = DateTime.Now,
                }),
                defaultRow = new
                {
                    CheckNum  = 1,
                    Num       = 1,
                    UnitPrice = 0,
                    Money     = 0,
                    PrePay    = 0
                },
                setting = new
                {
                    postFormKeys   = new string[] { "Jobno" },
                    postListFields = new string[] { "JOBNO", "SNO", "SC_DRIVERCD", "SC_DRIVER", "SC_TRUCKCD", "SC_TRUCKNAME", "SC_FRAMECD", "SC_FRAMENO", "SC_DRIVERTEL", "SC_STARTDATE" }
                }
            };

            return(View(model));
        }
        public ActionResult Edit(string id)
        {
            var userName = TradeHelper.GetUserName();
            var currentProject = TradeHelper.GetCurrentProject();
            var data = new TrailerApiController().GetEditMaster(id);
            var codeService = new sys_codeService();

            var model = new
            {
                form = data.form,
                scrollKeys = data.scrollKeys,
                urls = TradeHelper.GetEditUrls("trailer"),
                resx = TradeHelper.GetEditResx("内贸订单"),
                dataSource = new
                {
                },
                defaultForm = new trade_trailer().Extend(new
                {
                    JOBNO = id,
                    TR_ORDERDATE = DateTime.Now,
                }),
                defaultRow = new
                {
                    CheckNum = 1,
                    Num = 1,
                    UnitPrice = 0,
                    Money = 0,
                    PrePay = 0
                },
                setting = new
                {
                    postFormKeys = new string[] { "Jobno" },
                    postListFields = new string[] { "JOBNO", "SNO", "SC_DRIVERCD", "SC_DRIVER", "SC_TRUCKCD", "SC_TRUCKNAME", "SC_FRAMECD", "SC_FRAMENO", "SC_DRIVERTEL", "SC_STARTDATE" }
                }
            };
            return View(model);
        }