@using ShwasherSys @using ShwasherSys.Models.Modal @model string @{ string originFiled = "stickNum,customerId,customerName,amount", //targetFiled = string.IsNullOrEmpty(Model) ? originFiled : Model; targetFiled = Model ?? ""; List queryItems = new List() { new QueryItem("stickNum", "发票号",true), new QueryItem("customerId", "客户编号",true), new QueryItem("customerName", "客户名称",true), new QueryItem("stickMan", "开票人"), new QueryItem("afterTaxTotalPrice", "税前金额"), new QueryItem("totalPrice", "含税金额"), new QueryItem("currencyId", "货币"), new QueryItem("amount", "实收金额"), new QueryItem("invoiceType", "发票类型",true,formatter:"InvoiceTypeFormatter").SetHidden(), new QueryItem("invoiceState", "是否收款",true,formatter:"InvoiceStateFormatter").SetHidden(), }; //只查询已收款的发票 QueryModalModel qmModel = new QueryModalModel("发票信息", "/api/services/app/Query/QueryInvoice", queryItems, originFiled, targetFiled, modalId: "query_invoice_modal").SetDefaultValueFunction("InvoiceDefaultValue"); } @Html.Partial("Modals/Query/_QueryModal", qmModel)