学习笔记-将系统单据转换成WebApi中的保存JSON

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

学习笔记-将系统单据转换成WebApi中的保存JSON

    系统中已经有了  在线测试webapi功能, 可以通过 填写测试数据,返回保存接口的JSON,所以想通过二开将此功能移植到表单插件上。

image.webp

一注册表单插件,编写BarItemClick事件。

image.webp

image.webp

点击单据菜单,ShowMessage出保存接口的JSON

image.webp

{
    "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,所以想通过二开将此功能移植到表单插件上。...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息