K3 销售出库单的请求参数
StringBuilder buider = new StringBuilder(@" {""Data"": {")
.Append(@"""Page1"": [")
.Append(" {")
.Append(@"""FCancellation"": ""0"",") //作废标志
.Append(@"""FCod"": """",")
.Append(@"""FConsigneeAdd"": """",")
.Append(@"""FEnterpriseID"": """",")
.Append(@"""FHeadSelfB0163"": {") //车号
.Append(@"""FNumber"": '" + dic["车号编号"] + "',")
.Append(@"""FName"": '" + dic["车号"]+ "'")
.Append(@"},")
.Append(@"""FReceiverMobile"": """",")
.Append(@"""FROB"": ""1"",") //红蓝单标志
.Append(@"""FReceiveMan"": """",")
.Append(@"""FSendStatus"": """",")
.Append(@"""FStatus"": ""1"",")//审核标志
.Append(@"""FLSSrcInterID"": """",")
.Append(@"""FOrgBillInterID"": """",")
.Append(@"""Fdate"": '"+dic["时间"]+"',")//时间
.Append(@"""FWorkShiftId"": """",")
.Append(@"""FPOSName"": """",")
.Append(@"""FVIPCardID"": """",")
.Append(@"""FVIPScore"": """",")
.Append(@"""FBrID"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FMarketingStyle"": {") //销售业务类型
.Append(@"""FNumber"": '" + dic["销售类型编号"] + "',")
.Append(@"""FName"": '" + dic["销售类型名称"] + "'")
.Append(@"},")
.Append(@"""FSettleDate"": """",")
.Append(@"""FRelateBrID"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FTranType"": '21',")
.Append(@"""FPOOrdBillNo"": """",")
.Append(@"""FFetchAdd"": """",")
.Append(@"""FHolisticDiscountRate"": """",")
.Append(@"""FSupplyID"": {")//购货单位(订单里有FCustID)
.Append(@"""FNumber"": '" + dic["客户编号"] + "',")
.Append(@"""FName"": '" + dic["客户名称"] + "'")
.Append(@"},")
.Append(@"""FSaleStyle"": {")//销售方式
.Append(@"""FNumber"": '" + dic["销售方式编号"] + "',")
.Append(@"""FName"": '" + dic["销售方式名称"] + "'")
.Append(@"},")
.Append(@"""FExplanation"": """",")
.Append(@"""FBillNo"": '" + dic["过磅编号"] + "',") //编 号
.Append(@"""FSelTranType"": """",")
.Append(@"""FSelBillNo"": """",")
.Append(@"""FDCStockID"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FConfirmDate"": """",")
.Append(@"""FConfirmer"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FConfirmMem"": """",")
.Append(@"""FPayCondition"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FReceiver"": """",")
.Append(@"""FFManagerID"": {") //发货
.Append(@"""FNumber"": '" + dic["验收人编号"] + "',")
.Append(@"""FName"": '" + dic["验收人名称"] + "'")
.Append(@"},")
.Append(@"""FDeptID"": {") //部门
.Append(@"""FNumber"": '" + dic["部门编号"] + "',")
.Append(@"""FName"": '" + dic["部门名称"] + "'")
.Append(@"},")
.Append(@"""FManagerID"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FEmpID"": {") //业务员
.Append(@"""FNumber"": '" + dic["业务员编号"] + "',")
.Append(@"""FName"": '" + dic["业务员名称"] + "'")
.Append(@"},")
.Append(@"""FSManagerID"": {") //保管人
.Append(@"""FNumber"": '" + dic["业务员编号"] + "',")
.Append(@"""FName"": '" + dic["业务员名称"] + "'")
.Append(@"},")
.Append(@"""FBillerID"": {") //制单人 没有制单人删除没法删除
.Append(@"""FNumber"": '" + dic["制单人名称"] + "',")
.Append(@"""FName"": '" + dic["制单人编号"] + "'")
.Append(@"},")
.Append(@"""FCheckerID"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@" ""FVchInterID"": """",")
.Append(@"""FCheckDate"": """",")
.Append(@"""FPosterID"": """",")
.Append(@"""FManageType"": """",")
.Append(@"""FConsignee"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@" }")
.Append(@" }")
.Append(@"],")
.Append(@"""Page2"": [")
.Append(@"{")
.Append(@"""FDCStockID1"": {") //发货仓库
.Append(@"""FNumber"": '" + dic["仓库编码"] + "',")
.Append(@"""FName"": '" + dic["仓库名称"] + "'")
.Append(@"},")
.Append(@"""FEntryID2"": """",")
.Append(@"""FItemID"": {")//产品代码
.Append(@"""FNumber"": '" + dic["产品编码"] + "',")
.Append(@"""FName"": '" + dic["产品名称"] + "'")
.Append(@"},")
.Append(@"""FConsignAmount"": '" + dic["销售金额"] + "',")//销售金额
.Append(@"""FDCSPID"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FConsignPrice"": '" + dic["产品单价"] + "',")//销售单价
.Append(@"""Fauxqty"": '" + dic["重量"] + "',")//实发数量
.Append(@"""FUnitID"": {")//单位
.Append(@"""FNumber"": '" + dic["单位编码"] + "',")
.Append(@"""FName"": '" + dic["单位名称"] + "'")
.Append(@"},")
.Append(@"""FOutSourceEntryID"": """",")
.Append(@"""FOutSourceInterID"": """",")
.Append(@"""FOutSourceTranType"": """",")
.Append(@"""FMapNumber"": """",")
.Append(@"""FMapName"": """",")
.Append(@"""FItemName"": '" + dic["产品名称"] + "',") 产品名称
.Append(@"""FItemModel"": '" + dic["规格"] + "',") 型号规格
.Append(@"""FAuxPropID"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@" },")
.Append(@"""FBaseUnit"": """",")
.Append(@"""FBaseUnit"": """",")
.Append(@"""FBatchNo"": """",")
.Append(@"""FQty"": """",")
.Append(@"""FAuxQtyMust"": """",")
.Append(@"""FSecUnitID"": """",")
.Append(@"""FSecCoefficient"": """",") //换算率
.Append(@"""FSecQty"": """",") //辅助数量
.Append(@"""FAuxPlanPrice"": """",")
.Append(@"""FPlanAmount"": """",")
.Append(@"""Fauxprice"": """",")
.Append(@"""Famount"": """",")
.Append(@"""Fnote"": """",")
.Append(@"""FKFDate"": """",")
.Append(@"""FKFPeriod"": """",")
.Append(@"""FPeriodDate"": """",")
.Append(@"""FDiscountRate"": """",")
.Append(@"""FDiscountAmount"": """",")
.Append(@"""FOrgBillEntryID"": """",")
.Append(@"""FSNListID"": """",")
.Append(@"""FIsSNManage"": """",")
.Append(@"""FConfirmMemEntry"": """",")
.Append(@"""FSourceBillNo"": '" + dic["订单单号"] + "',") //源单单号
.Append(@"""FOLOrderBillNo"": """",")
.Append(@"""FSourceTranType"": '" + dic["源单类型"] + "',")//源单类型
.Append(@"""FShopName"": """",")
.Append(@"""FChkPassItem"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FSourceInterId"": '" + dic["源单内码"] + "',") //订单内码 对应销售单的FInterId (关联订单用 这个很重要,没有的话就不能上查、下查)
.Append(@"""FEntrySupply"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FSourceEntryID"": '" + dic["源分录号"] + "',") //源分录号 对应销售订单的 FEntryId (关联订单用 这个很重要,没有的话就不能上查、下查)
.Append(@"""FProductFileQty"": """",")
.Append(@"""FIsVMI"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FContractBillNo"": """",")
.Append(@"""FReturnNoticeBillNO"": """",")
.Append(@"""FContractInterID"": """",")
.Append(@"""FReturnNoticeEntryID"": """",")
.Append(@"""FContractEntryID"": """",")
.Append(@"""FReturnNoticeInterID"": """",")
.Append(@"""FOrderBillNo"": '" + dic["订单单号"] + "',") //订单单号
.Append(@"""FSEOutBillNo"": """",")
.Append(@"""FOrderInterID"": '" + dic["源单内码"] + "',") //订单内码 对应销售单的FInterId (扣合同用)
.Append(@"""FSEOutEntryID"": """",")
.Append(@"""FOrderEntryID"": '" + dic["源分录号"] + "',") //订单分录 对应销售订单的 FEntryId (扣合同用)
.Append(@"""FSEOutInterID"": """",")
.Append(@"""FAllHookQTY"": """",")
.Append(@"""FCurrentHookQTY"": """",")
.Append(@"""FQtyMust"": """",")
.Append(@"""FSepcialSaleId"": """",")
.Append(@"""FSecInvoiceQty"": """",")
.Append(@"""FAuxQtyInvoice"": """",")
.Append(@"""FQtyInvoice"": """",")
.Append(@"""FAuxPropCls"": """",")
.Append(@"""FPlanMode"": {")
.Append(@"""FNumber"": '" + dic["计划模式编号"] + "',")
.Append(@"""FName"": '" + dic["计划模式名称"] + "'")
.Append(@"},")
.Append(@"""FMTONo"": """",")
.Append(@"""FClientOrderNo"": """",")
.Append(@"""FClientEntryID"": """"")
.Append(@"}")
.Append(@"]")
.Append(@"}")
.Append(" }");
StringBuilder buider = new StringBuilder(@" {""Data"": {")
.Append(@"""Page1"": [")
.Append(" {")
.Append(@"""FCancellation"": ""0"",") //作废标志
.Append(@"""FCod"": """",")
.Append(@"""FConsigneeAdd"": """",")
.Append(@"""FEnterpriseID"": """",")
.Append(@"""FHeadSelfB0163"": {") //车号
.Append(@"""FNumber"": '" + dic["车号编号"] + "',")
.Append(@"""FName"": '" + dic["车号"]+ "'")
.Append(@"},")
.Append(@"""FReceiverMobile"": """",")
.Append(@"""FROB"": ""1"",") //红蓝单标志
.Append(@"""FReceiveMan"": """",")
.Append(@"""FSendStatus"": """",")
.Append(@"""FStatus"": ""1"",")//审核标志
.Append(@"""FLSSrcInterID"": """",")
.Append(@"""FOrgBillInterID"": """",")
.Append(@"""Fdate"": '"+dic["时间"]+"',")//时间
.Append(@"""FWorkShiftId"": """",")
.Append(@"""FPOSName"": """",")
.Append(@"""FVIPCardID"": """",")
.Append(@"""FVIPScore"": """",")
.Append(@"""FBrID"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FMarketingStyle"": {") //销售业务类型
.Append(@"""FNumber"": '" + dic["销售类型编号"] + "',")
.Append(@"""FName"": '" + dic["销售类型名称"] + "'")
.Append(@"},")
.Append(@"""FSettleDate"": """",")
.Append(@"""FRelateBrID"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FTranType"": '21',")
.Append(@"""FPOOrdBillNo"": """",")
.Append(@"""FFetchAdd"": """",")
.Append(@"""FHolisticDiscountRate"": """",")
.Append(@"""FSupplyID"": {")//购货单位(订单里有FCustID)
.Append(@"""FNumber"": '" + dic["客户编号"] + "',")
.Append(@"""FName"": '" + dic["客户名称"] + "'")
.Append(@"},")
.Append(@"""FSaleStyle"": {")//销售方式
.Append(@"""FNumber"": '" + dic["销售方式编号"] + "',")
.Append(@"""FName"": '" + dic["销售方式名称"] + "'")
.Append(@"},")
.Append(@"""FExplanation"": """",")
.Append(@"""FBillNo"": '" + dic["过磅编号"] + "',") //编 号
.Append(@"""FSelTranType"": """",")
.Append(@"""FSelBillNo"": """",")
.Append(@"""FDCStockID"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FConfirmDate"": """",")
.Append(@"""FConfirmer"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FConfirmMem"": """",")
.Append(@"""FPayCondition"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FReceiver"": """",")
.Append(@"""FFManagerID"": {") //发货
.Append(@"""FNumber"": '" + dic["验收人编号"] + "',")
.Append(@"""FName"": '" + dic["验收人名称"] + "'")
.Append(@"},")
.Append(@"""FDeptID"": {") //部门
.Append(@"""FNumber"": '" + dic["部门编号"] + "',")
.Append(@"""FName"": '" + dic["部门名称"] + "'")
.Append(@"},")
.Append(@"""FManagerID"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FEmpID"": {") //业务员
.Append(@"""FNumber"": '" + dic["业务员编号"] + "',")
.Append(@"""FName"": '" + dic["业务员名称"] + "'")
.Append(@"},")
.Append(@"""FSManagerID"": {") //保管人
.Append(@"""FNumber"": '" + dic["业务员编号"] + "',")
.Append(@"""FName"": '" + dic["业务员名称"] + "'")
.Append(@"},")
.Append(@"""FBillerID"": {") //制单人 没有制单人删除没法删除
.Append(@"""FNumber"": '" + dic["制单人名称"] + "',")
.Append(@"""FName"": '" + dic["制单人编号"] + "'")
.Append(@"},")
.Append(@"""FCheckerID"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@" ""FVchInterID"": """",")
.Append(@"""FCheckDate"": """",")
.Append(@"""FPosterID"": """",")
.Append(@"""FManageType"": """",")
.Append(@"""FConsignee"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@" }")
.Append(@" }")
.Append(@"],")
.Append(@"""Page2"": [")
.Append(@"{")
.Append(@"""FDCStockID1"": {") //发货仓库
.Append(@"""FNumber"": '" + dic["仓库编码"] + "',")
.Append(@"""FName"": '" + dic["仓库名称"] + "'")
.Append(@"},")
.Append(@"""FEntryID2"": """",")
.Append(@"""FItemID"": {")//产品代码
.Append(@"""FNumber"": '" + dic["产品编码"] + "',")
.Append(@"""FName"": '" + dic["产品名称"] + "'")
.Append(@"},")
.Append(@"""FConsignAmount"": '" + dic["销售金额"] + "',")//销售金额
.Append(@"""FDCSPID"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FConsignPrice"": '" + dic["产品单价"] + "',")//销售单价
.Append(@"""Fauxqty"": '" + dic["重量"] + "',")//实发数量
.Append(@"""FUnitID"": {")//单位
.Append(@"""FNumber"": '" + dic["单位编码"] + "',")
.Append(@"""FName"": '" + dic["单位名称"] + "'")
.Append(@"},")
.Append(@"""FOutSourceEntryID"": """",")
.Append(@"""FOutSourceInterID"": """",")
.Append(@"""FOutSourceTranType"": """",")
.Append(@"""FMapNumber"": """",")
.Append(@"""FMapName"": """",")
.Append(@"""FItemName"": '" + dic["产品名称"] + "',") 产品名称
.Append(@"""FItemModel"": '" + dic["规格"] + "',") 型号规格
.Append(@"""FAuxPropID"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@" },")
.Append(@"""FBaseUnit"": """",")
.Append(@"""FBaseUnit"": """",")
.Append(@"""FBatchNo"": """",")
.Append(@"""FQty"": """",")
.Append(@"""FAuxQtyMust"": """",")
.Append(@"""FSecUnitID"": """",")
.Append(@"""FSecCoefficient"": """",") //换算率
.Append(@"""FSecQty"": """",") //辅助数量
.Append(@"""FAuxPlanPrice"": """",")
.Append(@"""FPlanAmount"": """",")
.Append(@"""Fauxprice"": """",")
.Append(@"""Famount"": """",")
.Append(@"""Fnote"": """",")
.Append(@"""FKFDate"": """",")
.Append(@"""FKFPeriod"": """",")
.Append(@"""FPeriodDate"": """",")
.Append(@"""FDiscountRate"": """",")
.Append(@"""FDiscountAmount"": """",")
.Append(@"""FOrgBillEntryID"": """",")
.Append(@"""FSNListID"": """",")
.Append(@"""FIsSNManage"": """",")
.Append(@"""FConfirmMemEntry"": """",")
.Append(@"""FSourceBillNo"": '" + dic["订单单号"] + "',") //源单单号
.Append(@"""FOLOrderBillNo"": """",")
.Append(@"""FSourceTranType"": '" + dic["源单类型"] + "',")//源单类型
.Append(@"""FShopName"": """",")
.Append(@"""FChkPassItem"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FSourceInterId"": '" + dic["源单内码"] + "',") //订单内码 对应销售单的FInterId (关联订单用 这个很重要,没有的话就不能上查、下查)
.Append(@"""FEntrySupply"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FSourceEntryID"": '" + dic["源分录号"] + "',") //源分录号 对应销售订单的 FEntryId (关联订单用 这个很重要,没有的话就不能上查、下查)
.Append(@"""FProductFileQty"": """",")
.Append(@"""FIsVMI"": {")
.Append(@"""FNumber"": """",")
.Append(@"""FName"": """"")
.Append(@"},")
.Append(@"""FContractBillNo"": """",")
.Append(@"""FReturnNoticeBillNO"": """",")
.Append(@"""FContractInterID"": """",")
.Append(@"""FReturnNoticeEntryID"": """",")
.Append(@"""FContractEntryID"": """",")
.Append(@"""FReturnNoticeInterID"": """",")
.Append(@"""FOrderBillNo"": '" + dic["订单单号"] + "',") //订单单号
.Append(@"""FSEOutBillNo"": """",")
.Append(@"""FOrderInterID"": '" + dic["源单内码"] + "',") //订单内码 对应销售单的FInterId (扣合同用)
.Append(@"""FSEOutEntryID"": """",")
.Append(@"""FOrderEntryID"": '" + dic["源分录号"] + "',") //订单分录 对应销售订单的 FEntryId (扣合同用)
.Append(@"""FSEOutInterID"": """",")
.Append(@"""FAllHookQTY"": """",")
.Append(@"""FCurrentHookQTY"": """",")
.Append(@"""FQtyMust"": """",")
.Append(@"""FSepcialSaleId"": """",")
.Append(@"""FSecInvoiceQty"": """",")
.Append(@"""FAuxQtyInvoice"": """",")
.Append(@"""FQtyInvoice"": """",")
.Append(@"""FAuxPropCls"": """",")
.Append(@"""FPlanMode"": {")
.Append(@"""FNumber"": '" + dic["计划模式编号"] + "',")
.Append(@"""FName"": '" + dic["计划模式名称"] + "'")
.Append(@"},")
.Append(@"""FMTONo"": """",")
.Append(@"""FClientOrderNo"": """",")
.Append(@"""FClientEntryID"": """"")
.Append(@"}")
.Append(@"]")
.Append(@"}")
.Append(" }");