我在保存部门信息的时候,出现如下错误,可是FCreateOrgId&FUseOrgId两栏位确实有赋值啊???谢谢!
错误提示:
{"Result":{"ResponseStatus":{"ErrorCode":500,"IsSuccess":false,"Errors":[{"FieldName":"FCreateOrgId","Message":"字段“创建组织”是必填项"},{"FieldName":"FUseOrgId","Message":"字段“使用组织”是必填项"},{"FieldName":"AbstractInteractionResult","Message":"AbstractInteractionResult.InteractionContext is null"}]},"Id":""}}
代码:
object[] saveInfo = new object[] {"BD_Department",
"{\"Creator\":\"ch \",\"NeedUpDateFields\":[],\"Model\":{\"FDEPTID\":0,\"FLevelCode\":\".123093.\",\"FCreateOrgId\":{\"FOrgID\":0,\"FNumber\":\"100001\",\"FName\":\"创建组织\"},\"FNumber\":\"BM000018\",\"FUseOrgId\":{\"FOrgID\":0,\"FNumber\":\"100001\",\"FName\":\"使用部门\"},\"FName\":\"部门\",\"FHelpCode\":\"Test\",\"FParentID\":{\"FDEPTID\":0,\"FLevelCode\":\"0\",\"FNumber\":\"\",\"FName\":\"上级部门\",\"FFullName\":\"\",\"FIsHRDept\":false,\"FDepth\":0,\"FDocumentStatus\":\"C\"},\"FFullName\":\"\",\"FEffectDate\":\"2016-3-3\",\"FLapseDate\":\"2016-10-11\",\"FDescription\":\"infor\",\"FIsHRDept\":false,\"FDepth\":0,\"FIsRoot\":false,\"FDeptProperty\":{\"FEntryID\":\"\",\"FNumber\":\"\",\"FDataValue\":\"4866f13a3a3940b9b2fe47895a6e7cbe\"},\"FIsSHR\":false,\"FOrg\":{\"FOrgID\":0,\"FNumber\":\"\",\"FName\":\"\"},\"FIsOrg\":false,\"FIsStock\":false,\"FWIPStockID\":{\"FStockId\":0,\"FNumber\":\"\",\"FName\":\"\",\"FIsOpenLocation\":false},\"FWIPLocationID\":{\"FWIPLOCATIONID__FOPCODE\":\"0\"},\"FCreatorId\":{\"FUserID\":0,\"FUserAccount\":\"\",\"FName\":\"\"},\"FCreateDate\":\"2016-3-1\",\"FModifierId\":{\"FUserID\":0,\"FUserAccount\":\"\",\"FName\":\"\"},\"FModifyDate\":\"2016-3-1\",\"FAuditorID\":{\"FUserID\":0,\"FUserAccount\":\"\",\"FName\":\"\"},\"FAuditDate\":\"2016-3-1\",\"FDocumentStatus\":\"C\",\"FForbidderID\":{\"FUserID\":0,\"FUserAccount\":\"\",\"FName\":\"\"},\"FForbidDate\":\"FDocumentStatus\",\"FForbidStatus\":\"A\",\"FGroup\":{\"FID\":0,\"FNumber\":\"0\",\"FName\":\"\"},\"FIsCopyFlush\":false}}"};
推荐阅读