xml+json插入数据错误
金蝶云社区-632739580
632739580
0人赞赏了该文章 923次浏览 未经作者许可,禁止转载编辑于2016年06月06日 11:13:00

请教大家,我通过第三方平台向K3Cloud的销售订单插入数据,生成的JSON串如下:{"Creator":"Demo","NeedUpDateFields":[""],"Model":{"FID":0,"FBUSINESSTYPE":"NORMAL","FBillTypeID":{"FNumber":"XSDD01_SYS"},"FSaleOrderFinance":{"FExchangeRate":1},"FDATE":"2016-06-06 09:56:23.518","FMODIFYDATE":"2016-06-07 09:56:23.518","FAPPROVEDATE":"2016-06-07 09:56:23.518","FCLOSEDATE":"2016-06-07 09:56:23.518","FsaleDeptID":{"FNumber":"BM000001"},"FcustID":{"FNumber":"CUST0001"},"FSalerId":{"FNumber":"20140822"},"FSaleOrderEntry":[{"FID":0,"FMaterialID":{"FNUMBER":"1.01.0012222"},"FQty":3.0,"FBASEUNITQTY":3.0,"FTaxPrice":100.0,"FPriceUnitQty":3.0},{"FID":0,"FMaterialID":{"FNUMBER":"1.01.0012222"},"FQty":9.0,"FBASEUNITQTY":9.0,"FTaxPrice":2300.0,"FPriceUnitQty":9.0}]}}

提示错误信息如下:
{"Result":{"ResponseStatus":{"ErrorCode":500,"IsSuccess":false,"Errors":[{"FieldName":"","Message":"第1行分录的第1行子分录,计划发货日期不允许小于单据日期!"},{"FieldName":"","Message":"第2行分录的第1行子分录,计划发货日期不允许小于单据日期!"},{"FieldName":"","Message":"销售订单汇率为必录项!"},{"FieldName":"AbstractInteractionResult","Message":"AbstractInteractionResult.InteractionContext is null"}]},"Id":""}}

然后为增加了计划发货时间显示【FPLANDELIVERYDATE】错误:
//model.Add("FPLANDELIVERYDATE", DateTime.Now.AddDays(1).ToString("yyyy-MM-dd HH:mm:ss.fff"));


显示信息如下:
{"MapComplexProperty Field Error :Field Key is 【FPLANDELIVERYDATE】"}

xml数据如下:
<?xml version="1.0" encoding="utf-8" ?>
<SaleOrder>
<head>
<FSaleDeptNo>BM000001</FSaleDeptNo>
<FCustNo>CUST0001</FCustNo>
<FSalerNo>20140822</FSalerNo>
<FCTFrameNo></FCTFrameNo>
</head>
<details>
<detail>
<FMaterialNo>1.01.0012222</FMaterialNo>
<FTaxPrice>100</FTaxPrice>
<FPriceUnitQty>3</FPriceUnitQty>
</detail>
<detail>
<FMaterialNo>1.01.0012222</FMaterialNo>
<FTaxPrice>2300</FTaxPrice>
<FPriceUnitQty>9</FPriceUnitQty>
</detail>
</details>
</SaleOrder>

请教大家,谢谢!