| | |
| | | { |
| | | [RoutePrefix(prefix: "api/AppProductionManagement")] |
| | | [ControllerGroup("App生产管理", "在线接口")] |
| | | [ChannelActionFilterAttributeApp] |
| | | //[ChannelActionFilterAttributeApp] |
| | | public class AppProductionManagementController : ApiController |
| | | { |
| | | //定义全局信息返回变量 |
| | |
| | | string stepseq = HttpContext.Current.Request["stepseq"].ToString();//工序序号 |
| | | string stepcode = HttpContext.Current.Request["stepcode"].ToString();//工序编码 |
| | | string eqpcode = HttpContext.Current.Request["eqpcode"].ToString();//设备编码 |
| | | string inbarcode = HttpContext.Current.Request["inbarcode"].ToString(); //入库条码 |
| | | string reckway = HttpContext.Current.Request["reckway"].ToString(); //计件方式(班组:group、个人:person) |
| | | string usergroupcode = HttpContext.Current.Request["usergroupcode"].ToString();//班组编码 |
| | | string reportuser = HttpContext.Current.Request["reportuser"].ToString();//报工人员 |
| | |
| | | string badcode = HttpContext.Current.Request["badcode"].ToString();//不良原因编码 |
| | | string remarks = HttpContext.Current.Request["remarks"].ToString();//备注 |
| | | string username = HttpContext.Current.Request["admin"].ToString();//操作人员 |
| | | mes = ProductionManagementBLL.SavaMesOrderStepReport(mesordercode, partcode, stepseq, stepcode, eqpcode, reckway,usergroupcode, reportuser, taskqty, startqty, reportqty, ngqty, badcode, remarks, username); |
| | | mes = ProductionManagementBLL.SavaMesOrderStepReport(mesordercode, partcode, stepseq, stepcode, eqpcode, inbarcode, reckway,usergroupcode, reportuser, taskqty, startqty, reportqty, ngqty, badcode, remarks, username); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | string stepseq = HttpContext.Current.Request["stepseq"].ToString();//工序序号 |
| | | string stepcode = HttpContext.Current.Request["stepcode"].ToString();//工序编码 |
| | | string wxcode = HttpContext.Current.Request["wxcode"].ToString();//外协供应商编码 |
| | | string inbarcode = HttpContext.Current.Request["inbarcode"].ToString(); //入库条码 |
| | | string inuser = HttpContext.Current.Request["inuser"].ToString();//收料人员 |
| | | string taskqty = HttpContext.Current.Request["taskqty"].ToString();//任务数量 |
| | | string sqty = HttpContext.Current.Request["sqty"].ToString();//收料数量 |
| | |
| | | string badcode = HttpContext.Current.Request["badcode"].ToString();//不良原因编码 |
| | | string remarks = HttpContext.Current.Request["remarks"].ToString();//备注 |
| | | string username = HttpContext.Current.Request["admin"].ToString();//操作人员 |
| | | mes = ProductionManagementBLL.SavaMesOrderStepIn(mesordercode, partcode, stepseq, stepcode, wxcode, inuser, taskqty, sqty, ngqty, badcode, remarks, username); |
| | | mes = ProductionManagementBLL.SavaMesOrderStepIn(mesordercode, partcode, stepseq, stepcode, wxcode, inbarcode, inuser, taskqty, sqty, ngqty, badcode, remarks, username); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |