public ActionResult Edit(string id = "")
        {
            var data  = new PickingApiController().GetEditMaster(id);
            var model = new
            {
                form       = data.form,
                scrollKeys = data.scrollKeys,
                dataSource = new
                {
                    warehouseItems = new psi_warehouseService().GetDynamicList(ParamQuery.Instance().Select("Id as value,Name as text"))
                },
                urls = new
                {
                    getdetail = "/api/psi/picking/getdetail/",
                    getmaster = "/api/psi/picking/geteditmaster/",
                    edit      = "/api/psi/picking/edit",
                    audit     = "/api/psi/picking/audit/",
                    getrowid  = "/api/psi/picking/getnewrowid/",
                },
                resx = new
                {
                    rejected     = "已撤消修改!",
                    editSuccess  = "保存成功!",
                    auditSuccess = "单据已审核!"
                },
                defaultRow = new
                {
                    Num       = 1,
                    UnitPrice = 0,
                    Money     = 0
                },
                setting = new
                {
                    postFormKeys   = new string[] { "BillNo" },
                    postListFields = new string[] { "BillNo", "RowId", "GoodNo", "Num", "UnitPrice", "Money", "Remark" }
                }
            };

            return(View(model));
        }
        public ActionResult Edit(string id = "")
        {
            var data = new PickingApiController().GetEditMaster(id);
            var model = new
            {
                form = data.form,
                scrollKeys = data.scrollKeys,
                dataSource = new
                {
                    warehouseItems = new psi_warehouseService().GetDynamicList(ParamQuery.Instance().Select("Id as value,Name as text"))
                },
                urls = new
                {
                    getdetail = "/api/psi/picking/getdetail/",
                    getmaster = "/api/psi/picking/geteditmaster/",
                    edit = "/api/psi/picking/edit",
                    audit = "/api/psi/picking/audit/",
                    getrowid = "/api/psi/picking/getnewrowid/",
                },
                resx = new
                {
                    rejected = "已撤消修改!",
                    editSuccess = "保存成功!",
                    auditSuccess = "单据已审核!"
                },
                defaultRow = new
                {
                    Num = 1,
                    UnitPrice = 0,
                    Money = 0
                },
                setting = new
                {
                    postFormKeys = new string[] { "BillNo" },
                    postListFields = new string[] { "BillNo", "RowId", "GoodNo", "Num", "UnitPrice", "Money", "Remark" }
                }
            };

            return View(model);
        }