一:api接口类型
使用形态转换单:xtzhdadd
二:参数示例
{"Cmd":"xtzhdadd","SetBook":"710","SetYear":"2023","LoginName":"HM200","LoginPwd":"230829","LoginDate":"2023-11-27","Params":{"json":"[{\"AddType\":\"0\",\"dACDate\":\"2023-11-25\",\"CDepCode\":\"0201\",\"CIRdCode\":\"106\",\"CORdCode\":\"209\",\"CMaker\":\"\\u4efb\\u8679\",\"ctransFlag\":\"1\",\"CAVMemo\":\"\\u5907\\u6ce8\\u6d4b\\u8bd555555\",\"Details\":[{\"bavType\":\"\\u8f6c\\u6362\\u524d\",\"cwhcode\":\"101\",\"cInvCode\":\"0201001\",\"iavQuantity\":2,\"iavAcost\":2,\"iavaPrice\":4,\"cassUnit\":\"0302\"},{\"bavType\":\"\\u8f6c\\u6362\\u540e\",\"cwhcode\":\"102\",\"cInvCode\":\"0201001\",\"iavQuantity\":2,\"iavAcost\":2,\"iavaPrice\":4,\"cassUnit\":\"0302\"}]}]"}}
三:参数说明
"AddType" => "0", //固定时间
"dACDate" => "2023-11-25", //单据日期
"CDepCode" => "0201",//部门编码
"CIRdCode" => "106", //入库编码
"CORdCode" => "209",//出库编码
"CMaker" => "任虹",//制单人
"ctransFlag"=>"1",//转换方式1:一对一 2:多对一
"CAVMemo"=>"备注测试55555",//备注
"Details" => [
[
"bavType" => "转换前",////类型,转换前,转换后
"cwhcode"=>"101",//仓库编码
"cInvCode" => "0201001",//存货编码,string类型
"iavQuantity"=>2,////数量,double类型
"iavAcost"=>2,//单价,double类型
"iavaPrice"=>4,//金额,需要计算所有金额
"cassUnit"=>"0302"//库存单位码,string类型
],[
"bavType" => "转换后",
"cwhcode"=>"102",
"cInvCode" => "0201001",
"iavQuantity"=>2,
"iavAcost"=>2,
"iavaPrice"=>4,
"cassUnit"=>"0302"
],
]
四:其他参数
V456CheckVouch Av = new V456CheckVouch();
Av.AddType = 0;// 0:空单
Av.dACDate = null;//单据日期 不传默认当前生成日期
Av.cAVCode = "";//单据号(不传自动生成)
Av.CDepCode = “100”;//部门编码
Av.cPersonName = "";//经手人编码
Av.CIRdCode = “A101”; //入库类别编码,string类型
Av.CORdCode = “B101”; //出库类别编码,string类型
Av.CMaker = "";//制单人(不传默认当前登录人)
AV.ctransFlag = “一对一”;//转换方式一对一,多对一
// Av.BomId =0;//
Av.CAVMemo = "";//备注
Av.CDefine1 = ""; //表头自定义项1,string类型
Av.CDefine2 = ""; //表头自定义项2,string类型
Av.CDefine3 = ""; //表头自定义项3,string类型
Av.CDefine4 = null; //表头自定义项4,DateTime类型
Av.CDefine5 = 0; //表头自定义项5,int类型
Av.CDefine6 = null; //表头自定义项6,DateTime类型
Av.CDefine7 = 0; //表头自定义项7,double类型
Av.CDefine8 = ""; //表头自定义项8,string类型
Av.CDefine9 = ""; //表头自定义项9,string类型
Av.CDefine10 = ""; //表头自定义项10,string类型
Av.CDefine11 = ""; //表头自定义项11,string类型
Av.CDefine12 = ""; //表头自定义项12,string类型
Av.CDefine13 = ""; //表头自定义项13,string类型
Av.CDefine14 = ""; //表头自定义项14,string类型
Av.CDefine15 = 0; //表头自定义项15,int类型
Av.CDefine16 = 0; //表头自定义项7,double类型
//子表字段
ModAssemVouchs Details = new ModAssemVouchs();
Details.bavType = "";//类型,int类型
Details.cwhName = "";//仓库,string类型
Details.cinvName = ""; //存货名称,string类型
Details.cinvAddCode = "";//存货代码,string类型
Details.crePlaceItem = ""; //单价,double类型
Details.cinVstd = ""; //规格型号,string类型
Details.cinvmUnit = ""; //主计量单位,string类型
Details.cinvaUnit = ""; //库存单位,string类型
Details.cavBatch = ""; //批号,string类型
Details.iavNum = ""; //件数,double类型
Details.iavQuantity = ""; //数量,double类型
Details.iavAcost = ""; //单价,double类型
Details.cassUnit = ""; //库存单位码,string类型
Details.iavaPrice = 0; //金额,double类型
Details.iavPcost = 0; //计划单价/售价,double类型
Details.cwhCode = 0; //仓库编码,string类型
Details.iInvexChrate = 0; //换算率,double类型
Details.cInvCode=""; //存货编码,string类型
Details.rdsId=""; //对应入库单id,int类型
Details.dDisDate=""; //失效日期,DateTime类型
Details.autoId=""; //主关键字段,int类型
Details.cItemCode=""; //项目编码,string类型
Details.cItemClass=""; //项目大类编码,string类型
Details.cName=""; //项目,string类型
Details.cItemCname=""; //项目大类名称,string类型
Details.imassDate=""; //保质期,int类型
Details.cCVReason="";//原因,string类型
Details.cDefine22 = ""; //表体自定义项6,double类型
Details.cDefine23 = ""; //表体自定义项6,double类型
Details.cDefine24 = ""; //表体自定义项6,double类型
Details.cDefine25 = ""; //表体自定义项6,double类型
Details.cDefine26 = ""; //表体自定义项7,string类型
Details.cDefine27 = ""; //表体自定义项8,string类型
Details.cDefine28 = ""; //表体自定义项9,string类型
Details.cDefine29 = ""; //表体自定义项10,string类型
Details.cDefine30 = ""; //表体自定义项11,string类型
Details.cDefine31 = ""; //表体自定义项12,string类型
Details.cDefine32 = ""; //表体自定义项13,int类型
Details.cDefine33 = ""; //表体自定义项14,int类型
Details.cFree1 = "";//存货自由项1,string类型
Details.cFree2 = "";
Details.cFree3 = "";
Details.cFree4 = "";
Details.cFree5 = "";
Details.cFree6 = "";
Details.cFree7 = "";
Details.cFree8 = "";
Details.cFree9 = "";
Details.cFree10 = "";
Details.iGroupNO = 1;//组号(不传默认1)
Details.dMadeDate = Convert.ToDateTime(“2020-05-21”);//生产日期 DateTime类型(不传获取默认值)