如何通过WebAPI构建生产补料单原创
16人赞赏了该文章
845次浏览
编辑于2023年07月10日 15:20:55
一、注意点
1.1、选单下推的数据,业务流程不为空,业务流程参考表:T_BF_DEFVERSION,若不确定,可以WebAPI->查询->现有系统手工单据,得到对应的json数据参考。
1.2、字段顺序不可随意调整,原因:实体服务规则,值更新影响,如:B字段值更新A,若A先赋值X,B赋值Y,则A的X值会被B值更新覆盖;
1.3、部分参数说明:
1.3.1、IsAutoAdjustField:禁止为true,自动调整字段并不能正确调整成可构建的Json字段顺序。
1.3.2、IsEntryBatchFill:禁止为true,批量填充,一般基础资料等简单单据使用,业务单据复杂单据不使用。
1.4、部分字段说明:
1.4.1、FEntity_Link_FSBillId:单据转换中上游单据的单据ID,FEntity_Link_FSId:单据转换中上游单据的分录ID;
1.4.2、FEntity_Link_FRuleId:BOS设计器中单据转换的标识;
二、格式参考
{ "NeedUpDateFields": [], "NeedReturnFields": [], "SubSystemId": "", "IsVerifyBaseDataField": "false", "IsEntryBatchFill": "false", "ValidateFlag": "true", "NumberSearch": "true", "IsAutoAdjustField": "false", "InterationFlags": "", "IgnoreInterationFlag": "", "IsControlPrecision": "false", "ValidateRepeatJson": "false", "Model": { "FID": 0, "FBillType": { "FNUMBER": "SCBLD01_SYS" }, "FDate": "2023-04-13 00:00:00", "FStockOrgId": { "FNumber": "100" }, "FPrdOrgId": { "FNumber": "100" }, "FOwnerTypeId0": "BD_OwnerOrg", "FCurrId": { "FNumber": "PRE001" }, "FIsCrossTrade": false, "FVmiBusiness": false, "FIsOwnerTInclOrg": false, "FEntity": [ { "FParentMaterialId": { "FNumber": "101.XXPTBZQV001" }, "FConsome": "0", "FReserveType": "1", "FBaseStockActualQty": 1.0, "FMaterialId": { "FNumber": "1.01.01.XXPT001" }, "FUnitID": { "FNumber": "Pcs" }, "FAppQty": 1.0, "FActualQty": 1.0, "FEntryVmiBusiness": false, "FScrapQty": 0.0, "FOptQueue": "0", "FOptPlanBillId": 0, "FStockId": { "FNumber": "0602" }, "FOptDetailId": 0, "FTransRetId": 0, "FTransRetEntryId": 0, "FTransRetEntrySeq": 0, "FCheckReturnMtrl": false, "FIsOverLegalOrg": false, "FFeedReasonId": { "FNumber": "BLYY01_SYS" }, "FStockStatusId": { "FNumber": "KCZT01_SYS" }, "FMoBillNo": "MO10289", "FMoEntryId": 514283, "FPPBomEntryId": 505854, "FOperId": 10, "FOwnerTypeId": "BD_OwnerOrg", "FStockAppQty": 1.0, "FStockActualQty": 1.0, "FSecActualQty": 0.0, "FMoId": 493807, "FMoEntrySeq": 1, "FBaseAppQty": 1.0, "FStockScrapQty": 0.0, "FSecScrapQty": 0.0, "FBaseScrapQty": 0.0, "FPPBomBillNo": "PPBOM00015997", "FBaseUnitId": { "FNumber": "Pcs" }, "FStockUnitId": { "FNumber": "Pcs" }, "FEntryWorkShopId": { "FNumber": "BM000001" }, "FBaseActualQty": 1.0, "FKeeperTypeId": "BD_KeeperOrg", "FKeeperId": { "FNumber": "100" }, "FOwnerId": { "FNumber": "100" }, "FEntrySrcInterId": 484351, "FEntrySrcBillType": "PRD_PPBOM", "FEntrySrcEnteryId": 505854, "FEntrySrcBillNo": "PPBOM00015997", "FPrice": 0.0, "FAmount": 0.0, "FParentOwnerTypeId": "BD_OwnerOrg", "FParentOwnerId": { "FNumber": "100" }, "FEntrySrcEntrySeq": 1, "FSrcBizEntryId": 0, "FSrcBizInterId": 0, "FSrcBizEntrySeq": 0, "FEntity_Link": [ { "FEntity_Link_FRuleId": "PRDPPBomTrans2FeedBill", "FEntity_Link_FSTableName": "T_PRD_PPBOMENTRY", "FEntity_Link_FSBillId": "484351", "FEntity_Link_FSId": "505854", "FEntity_Link_FFlowId": "81119477-4778-4d0b-94b9-1c43a1c1f768", "FEntity_Link_FFlowLineId": 6, "FEntity_Link_FBaseActualQtyOld": 10.0, "FEntity_Link_FBaseActualQty": 10.0, "FEntity_Link_FBaseScrapQtyOld": 0.0, "FEntity_Link_FBaseScrapQty": 0.0 } ], "FBFLowId":{ "FID":"81119477-4778-4d0b-94b9-1c43a1c1f768" } } ] } }
赞 16
16人点赞
还没有人点赞,快来当第一个点赞的人吧!
打赏
0人打赏
还没有人打赏,快来当第一个打赏的人吧!