学习笔记-将系统单据转换成WebApi中的保存JSON
系统中已经有了 在线测试webapi功能, 可以通过 填写测试数据,返回保存接口的JSON,所以想通过二开将此功能移植到表单插件上。
一注册表单插件,编写BarItemClick事件。
点击单据菜单,ShowMessage出保存接口的JSON
{ "NeedUpDateFields": [], "NeedReturnFields": [], "IsDeleteEntry": "true", "SubSystemId": "", "IsVerifyBaseDataField": "false", "IsEntryBatchFill": "true", "ValidateFlag": "true", "NumberSearch": "true", "IsAutoAdjustField": "false", "InterationFlags": "", "IgnoreInterationFlag": "", "Model": { "FID": 0, "FBillTypeID": { "FNUMBER": "CGHT01_SYS" }, "FBillNo": "CGHT000001EEE", "FEndDate": "2023-07-18 00:00:00", "FBeginDate": "2022-07-18 00:00:00", "FDate": "2022-07-18 00:00:00", "FSupplierId": { "FNumber": "005" }, "FPurchaseOrgId": { "FNumber": "100" }, "FProviderId": { "FNumber": "005" }, "FSettleId": { "FNumber": "005" }, "FChargeId": { "FNumber": "005" }, "FCONTRACTNAME": "444", "FISINPUTDETAIL": true, "FContractFin": { "FISPRICEEXCLUDETAX": true, "FSettleCurrId": { "FNumber": "PRE001" }, "FPayConditionId": { "FNumber": "001" }, "FExchangeTypeId": { "FNumber": "HLTX01_SYS" }, "FExchangeRate": 1.0000000000, "FPriceTimePoint": "1", "FSettleModeId": { "FNumber": "JSFS00_SYS" }, "FIsIncludedTax": true, "FLocalCurrId": { "FNumber": "PRE001" } }, "FContractEntry": [ { "FMaterialId": { "FNumber": "0902" }, "FMaterialDesc": "测试", "FUnitId": { "FNumber": "Pcs" }, "FQty": 10.0, "FPriceUnitId": { "FNumber": "Pcs" }, "FPriceUnitQty": 10.0, "FDeliveryDate": "2022-12-23 00:00:00", "FPrice": 10.0, "FTaxPrice": 11.3, "FEntryTaxRate": 13.0, "FRequireOrgId": { "FNumber": "100" }, "FReceiveOrgId": { "FNumber": "100" }, "FPriceCoefficient": 1.000000, "FSettleOrgId": { "FNumber": "100" }, "FGiveAway": false, "FPlanConfirm": true, "FPriceBaseQty": 10.0, "FStockUnitID": { "FNumber": "Pcs" }, "FStockQty": 10.0, "FStockBaseQty": 10.0 } ], "FPayPlanEntry": [ { "FYFRATIO": 100.00, "FYFAMOUNT": 113.00, "FISPREPAY": false } ] } }
GetNewSaveJson方法展开看看,谢谢
学习笔记-将系统单据转换成WebApi中的保存JSON
系统中已经有了 在线测试webapi功能, 可以通过 填写测试数据,返回保存接口的JSON,所以想通过二开将此功能移植到表单插件上。...
点击下载文档
本文2024-09-16 17:14:26发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-14432.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章