二开案例.WEBAPI.使用WEBAPI生成工序派工明细
【概述】
2019-11-28日beta版本补丁7.5.1487.7,预计12-28日正式补丁开始支持此webapi接口。
1、Json串:
{
"Datas":
[{
"DetailId":101801,//工序计划DetailId
"DetailInfo":
[{
"ResourceId":100208, //资源Id没有可以默认为0
"ShiftSliceId":120835, //班次Id
"ShiftGroupId":139839, //班组id
"CreateDate": "2019-09-29",//创建日期没有, 可以默认为“”
"EquipmentId":124062, //设备Id
"PlanBeginTime":"2018-06-29 08:00:00",//计划开始时间
"PlanEndTime":"2018-07-02 08:23:00",//计划结束时间
"WorkQty":1, //派工数量额
"MouldId":0, //模具Id
"EpmIds"://操作工集合Id
[
{
"EpmId":100732 //操作工Id
},
{
"EpmId":120792 //操作工Id
}
]
}]
}]
}
备注:传json串之间,先用工具检查一下json字符串是否正确
2、批量json 串:
{
"Datas":
[{
"DetailId":101797,
"DetailInfo":
[
{
"ResourceId":100208,
"ShiftSliceId":120835,
"ShiftGroupId":139839,
"CreateDate": "2019-09-29",
"EquipmentId":124062,
"PlanBeginTime":"2018-06-29 08:00:00",
"PlanEndTime":"2018-07-02 08:23:00",
"WorkQty":1,
"MouldId":0,
"EpmIds":
[
{
"EpmId":100732
},
{
"EpmId":120792
}
]
}
]
},
{
"DetailId":101798,
"DetailInfo":
[{
"ResourceId":100208,
"ShiftSliceId":120835,
"ShiftGroupId":139839,
"CreateDate": "2019-09-29",
"EquipmentId":124062,
"PlanBeginTime":"2018-06-29 08:00:00",
"PlanEndTime":"2018-07-02 08:23:00",
"WorkQty":1,
"MouldId":0,
"EpmIds":
[
{
"EpmId":100732
},
{
"EpmId":120792
}
]
}]
},
{
"DetailId":101799,
"DetailInfo":
[{
"ResourceId":100208,
"ShiftSliceId":120835,
"ShiftGroupId":139839,
"CreateDate": "2019-09-29",
"EquipmentId":124062,
"PlanBeginTime":"2018-06-29 08:00:00",
"PlanEndTime":"2018-07-02 08:23:00",
"WorkQty":1,
"MouldId":0,
"EpmIds":
[
{
"EpmId":100732
},
{
"EpmId":120792
}
]
}]
},
{
"DetailId":101800,
"DetailInfo":
[{
"ResourceId":100208,
"ShiftSliceId":120835,
"ShiftGroupId":139839,
"CreateDate": "2019-09-29",
"EquipmentId":124062,
"PlanBeginTime":"2018-06-29 08:00:00",
"PlanEndTime":"2018-07-02 08:23:00",
"WorkQty":1,
"MouldId":0,
"EpmIds":
[
{
"EpmId":100732
},
{
"EpmId":120792
}
]
},
{
"ResourceId":100208,
"ShiftSliceId":120835,
"ShiftGroupId":139839,
"CreateDate": "2019-09-29",
"EquipmentId":124062,
"PlanBeginTime":"2018-06-29 08:00:00",
"PlanEndTime":"2018-07-02 08:23:00",
"WorkQty":1,
"MouldId":0,
"EpmIds":
[
{
"EpmId":100732
},
{
"EpmId":120792
}
]
}
]
}
]
}
3、客户端调用方式:
感谢智慧工厂同事王永辉提供方案。
二开案例.WEBAPI.使用WEBAPI生成工序派工明细
本文2024-09-23 03:26:33发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-158885.html