yl
2023-02-16 883bc24b2af63f2b5cadf7576e7892720c7ed9b7
VueWebApi/Controllers/AppProductionManagementController.cs
@@ -135,16 +135,16 @@
        /// <returns></returns>
        [Route(template: "SavaMesOrderStepStart")]
        [HttpPost]
        public HttpResponseMessage SavaMesOrderStepStart([FromBody] JObject obj)
        public HttpResponseMessage SavaMesOrderStepStart()
        {
            string mesordercode = obj["mesordercode"].ToString(); //工单编号
            string partcode = obj["partcode"].ToString(); //产品编码
            string stepseq = obj["stepseq"].ToString(); //工序序号
            string stepcode = obj["stepcode"].ToString(); //工序编码
            string eqpcode = obj["eqpcode"].ToString(); //设备编码
            string taskqty = obj["taskqty"].ToString(); //任务数量
            string startqty = obj["startqty"].ToString(); //开工数量
            var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //开工人员
            string mesordercode = HttpContext.Current.Request["mesordercode"].ToString();//工单编号
            string partcode = HttpContext.Current.Request["partcode"].ToString();//产品编码
            string stepseq = HttpContext.Current.Request["stepseq"].ToString();//工序序号
            string stepcode = HttpContext.Current.Request["stepcode"].ToString();//工序编码
            string eqpcode = HttpContext.Current.Request["eqpcode"].ToString();//设备编码
            string taskqty = HttpContext.Current.Request["taskqty"].ToString();//任务数量
            string startqty = HttpContext.Current.Request["startqty"].ToString();//开工数量
            var username = HttpContext.Current.Request["admin"].ToString(); //开工人员
            mes = ProductionManagementBLL.SavaMesOrderStepStart(mesordercode, partcode, stepseq, stepcode, eqpcode, taskqty, startqty, username);
            return TJson.toJson(mes);
        }
@@ -158,23 +158,24 @@
        /// <returns></returns>
        [Route(template: "SavaMesOrderStepReport")]
        [HttpPost]
        public HttpResponseMessage SavaMesOrderStepReport([FromBody] JObject obj)
        public HttpResponseMessage SavaMesOrderStepReport()
        {
            string mesordercode = obj["mesordercode"].ToString(); //工单编号
            string partcode = obj["partcode"].ToString(); //产品编码
            string stepseq = obj["stepseq"].ToString(); //工序序号
            string stepcode = obj["stepcode"].ToString(); //工序编码
            string eqpcode = obj["eqpcode"].ToString(); //设备编码
            string usergroupcode = obj["usergroupcode"].ToString(); //班组编码
            string reportuser = obj["reportuser"].ToString();  //报工人员
            string taskqty = obj["taskqty"].ToString(); //任务数量
            string startqty = obj["startqty"].ToString(); //开工数量
            string reportqty = obj["reportqty"].ToString(); //报工工数量
            string ngqty = obj["ngqty"].ToString(); //不良数量
            string badcode = obj["badcode"].ToString(); //不良原因编码
            string remarks = obj["remarks"].ToString(); //备注
            var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //操作人员
            mes = ProductionManagementBLL.SavaMesOrderStepReport(mesordercode, partcode, stepseq, stepcode, eqpcode, usergroupcode, reportuser, taskqty, startqty, reportqty, ngqty, badcode, remarks, username);
            string mesordercode = HttpContext.Current.Request["mesordercode"].ToString();//工单编号
            string partcode = HttpContext.Current.Request["partcode"].ToString();//产品编码
            string stepseq = HttpContext.Current.Request["stepseq"].ToString();//工序序号
            string stepcode = HttpContext.Current.Request["stepcode"].ToString();//工序编码
            string eqpcode = HttpContext.Current.Request["eqpcode"].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 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 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);
            return TJson.toJson(mes);
        }
        #endregion
@@ -187,17 +188,17 @@
        /// <returns></returns>
        [Route(template: "SavaMesOrderStepOut")]
        [HttpPost]
        public HttpResponseMessage SavaMesOrderStepOut([FromBody] JObject obj)
        public HttpResponseMessage SavaMesOrderStepOut()
        {
            string mesordercode = obj["mesordercode"].ToString(); //工单编号
            string partcode = obj["partcode"].ToString(); //产品编码
            string stepseq = obj["stepseq"].ToString(); //工序序号
            string stepcode = obj["stepcode"].ToString(); //工序编码
            string wxcode = obj["wxcode"].ToString(); //外协供应商编码
            string outuser = obj["outuser"].ToString();  //发料人员
            string taskqty = obj["taskqty"].ToString(); //任务数量
            string fqty = obj["fqty"].ToString(); //发料数量
            var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //操作人员
            string mesordercode = HttpContext.Current.Request["mesordercode"].ToString();//工单编号
            string partcode = HttpContext.Current.Request["partcode"].ToString();//产品编码
            string stepseq = HttpContext.Current.Request["stepseq"].ToString();//工序序号
            string stepcode = HttpContext.Current.Request["stepcode"].ToString();//工序编码
            string wxcode = HttpContext.Current.Request["wxcode"].ToString();//外协供应商编码
            string outuser = HttpContext.Current.Request["outuser"].ToString();//发料人员
            string taskqty = HttpContext.Current.Request["taskqty"].ToString();//任务数量
            string fqty = HttpContext.Current.Request["fqty"].ToString();//发料数量
            string username = HttpContext.Current.Request["admin"].ToString();//操作人员
            mes = ProductionManagementBLL.SavaMesOrderStepOut(mesordercode, partcode, stepseq, stepcode, wxcode, outuser, taskqty, fqty, username);
            return TJson.toJson(mes);
        }
@@ -211,20 +212,20 @@
        /// <returns></returns>
        [Route(template: "SavaMesOrderStepIn")]
        [HttpPost]
        public HttpResponseMessage SavaMesOrderStepIn([FromBody] JObject obj)
        public HttpResponseMessage SavaMesOrderStepIn()
        {
            string mesordercode = obj["mesordercode"].ToString(); //工单编号
            string partcode = obj["partcode"].ToString(); //产品编码
            string stepseq = obj["stepseq"].ToString(); //工序序号
            string stepcode = obj["stepcode"].ToString(); //工序编码
            string wxcode = obj["wxcode"].ToString(); //外协供应商编码
            string inuser = obj["inuser"].ToString();  //收料人员
            string taskqty = obj["taskqty"].ToString(); //任务数量
            string sqty = obj["sqty"].ToString(); //收料数量
            string ngqty = obj["ngqty"].ToString(); //不良数量
            string badcode = obj["badcode"].ToString(); //不良原因编码
            string remarks = obj["remarks"].ToString(); //备注
            var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //操作人员
            string mesordercode = HttpContext.Current.Request["mesordercode"].ToString();//工单编号
            string partcode = HttpContext.Current.Request["partcode"].ToString();//产品编码
            string stepseq = HttpContext.Current.Request["stepseq"].ToString();//工序序号
            string stepcode = HttpContext.Current.Request["stepcode"].ToString();//工序编码
            string wxcode = HttpContext.Current.Request["wxcode"].ToString();//外协供应商编码
            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 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);
            return TJson.toJson(mes);
        }