api收款单FieldName":"无法将类型为“Kingdee.BOS.JSON.JSONObject”...
金蝶云社区-云社区用户9E211234
云社区用户9E211234
0人赞赏了该文章 2,724次浏览 未经作者许可,禁止转载编辑于2016年12月22日 13:00:30
api收款单对接是报错,FieldName":"无法将类型为“Kingdee.BOS.JSON.JSONObject”的对象强制转换为类型“System.IConvertibl
请问如何解决呢?
{"Result":{"ResponseStatus":{"ErrorCode":500,"IsSuccess":false,"Errors":[{"FieldName":"无法将类型为“Kingdee.BOS.JSON.JSONObject”的对象强制转换为类型“System.IConvertible”。","Message":" 在 Kingdee.BOS.Core.Metadata.FieldElement.DecimalField.RoundValue(Object value)\r\n 在 Kingdee.BOS.Core.Metadata.FieldElement.DecimalField.SetFieldValue(IDynamicFormModel model, DynamicObject activeRow, Object value)\r\n 在 Kingdee.BOS.Core.DynamicForm.AbstractDynamicFormModel.UpdateFieldValue(Field field, DynamicObject obj, Object value, Int32 row)\r\n 在 Kingdee.BOS.Core.DynamicForm.AbstractDynamicFormModel.UpdateField(Field field, DynamicObject activeRow, Object value, Int32 rowIndex, Object oldValue)\r\n 在 Kingdee.BOS.Core.DynamicForm.AbstractDynamicFormModel.SetValue(Field field, DynamicObject activeRow, Object value, Int32 rowIndex)\r\n 在 Kingdee.BOS.WebApi.FormService.MapPropertyService.SetSimpleProperty(Field field, DynamicObject target, Object value, Int32 rowIndex)\r\n 在 Kingdee.BOS.WebApi.FormService.MapPropertyService.MapComplexProperty(String pkProperty, Dictionary`2 sourceObj, DynamicObject targetObj, Int32 rowIndex, HashSet`1 NeedUpDateFields)\r\n 在 Kingdee.BOS.WebApi.FormService.MapPropertyService.MapCollectionProperty(Entity enity, IList`1 sourceRows, DynamicObjectCollection targetRows, HashSet`1 NeedUpDateFields, String specialReferenceTable)\r\n 在 Kingdee.BOS.WebApi.FormService.MapPropertyService.MapComplexProperty(String pkProperty, Dictionary`2 sourceObj, DynamicObject targetObj, Int32 rowIndex, HashSet`1 NeedUpDateFields)\r\n 在 Kingdee.BOS.WebApi.FormService.Save.Execute()\r\n 在 Kingdee.BOS.WebApi.FormService.BillOperationService.ExecuteOperation(FormOperation op, String data)","DIndex":0}],"SuccessEntitys":[]}}}
接口json
{'Creator':'Guest1','NeedUpDateFields':[],'Model':{'FID':0,'FDATE':'2010-12-04','FENDDATE_H':'2010-12-04','FALLAMOUNTFOR':374,'FSETTLEORGID':{'FNumber':'013'},'FSALEORGID':{'FNumber':'013'},'FPAYORGID':{'FNumber':'013'},'FBillTypeID':{'FNumber':'YSD01_SYS'},'FBillNo':'','FCUSTOMERID':{'FNumber':'散客'},'FCURRENCYID':{'FNumber':'PRE001'},'FCancelStatus':'A','AR_receivable__FEntityDetail':[{'FMATERIALID':{'FNumber':'迷你吧'},'FPRICEUNITID':{'FNumber':'Pcs'},'FBASICUNITID':{'FNumber':'Pcs'},'FBaseJoinQty':{'FNumber':'Pcs'},'FPriceQty':1,'FTaxPrice':374.0,'FPrice':374.0,'FEntryTaxRate':0,'FEntryDiscountRate':0,'FNOTAXAMOUNTFOR':374.0,'FTAXAMOUNTFOR':0,'FALLAMOUNTFOR_D':374.0}],'AR_receivable__FENTITYPLAN':{'FPAYAMOUNTFOR':374,'FPAYRATE':100}}}