| | |
| | | /// <summary> |
| | | /// 工序检验扫码获取任务信息 |
| | | /// </summary> |
| | | /// <param name="stu_torgcode">组织编码</param> |
| | | /// <param name="orderstepqrcode">扫描工序二维码信息</param> |
| | | /// <param name="checktype">检验方式FirstCheck(首检) PatroCheck(巡检) EndCheck(完工检)</param> |
| | | /// <returns></returns> |
| | | [Route(template: "StepCheckSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage StepCheckSearch(string orderstepqrcode,string checktype) |
| | | public HttpResponseMessage StepCheckSearch(string stu_torgcode,string orderstepqrcode,string checktype) |
| | | { |
| | | mes = ProductionManagementBLL.MesOrderStepCheckSearch(orderstepqrcode, checktype); |
| | | mes = ProductionManagementBLL.MesOrderStepCheckSearch(stu_torgcode,orderstepqrcode, checktype); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | [HttpPost] |
| | | public HttpResponseMessage SaveStepCheckItem() |
| | | { |
| | | string stu_torgcode = HttpContext.Current.Request["stu_torgcode"].ToString();//组织编码 |
| | | string wocode = HttpContext.Current.Request["wocode"].ToString();//工单号 |
| | | string partcode = HttpContext.Current.Request["partcode"].ToString();//物料编码 |
| | | string stepcode = HttpContext.Current.Request["stepcode"].ToString();//工序编码 |
| | |
| | | string ngqty = HttpContext.Current.Request["ngqty"].ToString();//不合格数量 |
| | | string checkitemcont = HttpContext.Current.Request["checkitemcont"].ToString();//检验项目数据 |
| | | string username = HttpContext.Current.Request["admin"].ToString();//操作人员 |
| | | mes = ProductionManagementBLL.SaveMesOrderStepCheckItem(wocode,partcode,stepcode,checkstandcode,check_type,sampmethod,qualitystatus,labqty,sampleqty,goodqty,ngqty,checkitemcont,username); |
| | | mes = ProductionManagementBLL.SaveMesOrderStepCheckItem(stu_torgcode,wocode, partcode,stepcode,checkstandcode,check_type,sampmethod,qualitystatus,labqty,sampleqty,goodqty,ngqty,checkitemcont,username); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |