| | |
| | | using Newtonsoft.Json.Linq; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | using System.Web; |
| | | using System.Web.Http; |
| | | using VueWebApi.DLL.BLL; |
| | | using VueWebApi.Models; |
| | | using VueWebApi.Tools; |
| | | |
| | | namespace VueWebApi.Controllers |
| | |
| | | string taskqty = HttpContext.Current.Request["taskqty"].ToString();//任务数量 |
| | | string startqty = HttpContext.Current.Request["startqty"].ToString();//开工数量 |
| | | string reportqty = HttpContext.Current.Request["reportqty"].ToString();//报工工数量 |
| | | string ngqty = HttpContext.Current.Request["ngqty"].ToString();//不良数量 |
| | | string badcode = HttpContext.Current.Request["badcode"].ToString();//不良原因编码 |
| | | string defectlist = HttpContext.Current.Request["defectlist"].ToString();//不良汇总 |
| | | string remarks = HttpContext.Current.Request["remarks"].ToString();//备注 |
| | | string username = HttpContext.Current.Request["admin"].ToString();//操作人员 |
| | | mes = ProductionManagementBLL.SavaMesOrderStepReport(mesordercode, partcode, stepseq, stepcode, eqpcode, inbarcode, reckway,usergroupcode, reportuser, taskqty, startqty, reportqty, ngqty, badcode, remarks, username); |
| | | List<ReportDefectList> defectobjs = JsonConvert.DeserializeObject<List<ReportDefectList>>(defectlist); |
| | | mes = ProductionManagementBLL.SavaMesOrderStepReport(mesordercode, partcode, stepseq, stepcode, eqpcode, inbarcode, reckway,usergroupcode, reportuser, taskqty, startqty, reportqty, defectobjs, remarks, username); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | string inuser = HttpContext.Current.Request["inuser"].ToString();//收料人员 |
| | | string taskqty = HttpContext.Current.Request["taskqty"].ToString();//任务数量 |
| | | string sqty = HttpContext.Current.Request["sqty"].ToString();//收料数量 |
| | | string ngqty = HttpContext.Current.Request["ngqty"].ToString();//不良数量 |
| | | string badcode = HttpContext.Current.Request["badcode"].ToString();//不良原因编码 |
| | | string defectlist = HttpContext.Current.Request["defectlist"].ToString();//不良汇总 |
| | | string remarks = HttpContext.Current.Request["remarks"].ToString();//备注 |
| | | string username = HttpContext.Current.Request["admin"].ToString();//操作人员 |
| | | mes = ProductionManagementBLL.SavaMesOrderStepIn(mesordercode, partcode, stepseq, stepcode, wxcode, inbarcode, inuser, taskqty, sqty, ngqty, badcode, remarks, username); |
| | | List<ReportDefectList> defectobjs = JsonConvert.DeserializeObject<List<ReportDefectList>>(defectlist); |
| | | mes = ProductionManagementBLL.SavaMesOrderStepIn(mesordercode, partcode, stepseq, stepcode, wxcode, inbarcode, inuser, taskqty, sqty, defectobjs, remarks, username); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |