| | |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[报工记录列表数据查询] |
| | | /// <summary> |
| | | /// 报工记录列表数据查询 |
| | | /// </summary> |
| | | /// <param name="wkshopcode">车间编码</param> |
| | | /// <param name="wo_code">工单编号</param> |
| | | /// <param name="partnumber">产品编码</param> |
| | | /// <param name="partname">产品名称</param> |
| | | /// <param name="partspec">产品规格</param> |
| | | /// <param name="stepname">报工工序</param> |
| | | /// <param name="eqpcode">报工设备</param> |
| | | /// <param name="reportuser">报工人员</param> |
| | | /// <param name="reportdate">报工时间</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <returns></returns> |
| | | [Route(template: "MesOrderStepReportSearch")] |
| | | [HttpGet] |
| | | public JsonResult MesOrderStepReportSearch(string wkshopcode = null, string wo_code = null, string partnumber = null, string partname = null, string partspec = null, string stepname = null,string eqpcode=null, string reportuser = null, string reportdate = null, int page = 0, int rows = 0, string prop = null, string order = null) |
| | | { |
| | | string reportdateopendate = ""; //报工开始时间 |
| | | string reportdateclosedate = ""; //报工结束时间 |
| | | if (reportdate != "" && reportdate != null) |
| | | { |
| | | reportdateopendate = reportdate.Split('~')[0].ToString(); |
| | | reportdateclosedate = reportdate.Split('~')[1].ToString(); |
| | | } |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = ReportManagerBLL.MesOrderStepReportSearch(wkshopcode, wo_code, partnumber, partname, partspec, stepname,eqpcode, reportuser, reportdateopendate, reportdateclosedate, startNum, endNum, prop, order); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[报工记录列表数据导出] |
| | | /// <summary> |
| | | /// 报工记录列表数据导出 |
| | | /// </summary> |
| | | /// <param name="wkshopcode">车间编码</param> |
| | | /// <param name="wo_code">工单编号</param> |
| | | /// <param name="partnumber">产品编码</param> |
| | | /// <param name="partname">产品名称</param> |
| | | /// <param name="partspec">产品规格</param> |
| | | /// <param name="stepname">报工工序</param> |
| | | /// <param name="eqpcode">报工设备</param> |
| | | /// <param name="reportuser">报工人员</param> |
| | | /// <param name="reportdate">报工时间</param> |
| | | /// <returns></returns> |
| | | [Route(template: "MesOrderStepReportExcelSearch")] |
| | | [HttpGet] |
| | | public JsonResult MesOrderStepReportExcelSearch(string wkshopcode = null, string wo_code = null, string partnumber = null, string partname = null, string partspec = null, string stepname = null, string eqpcode = null, string reportuser = null, string reportdate = null) |
| | | { |
| | | string reportdateopendate = ""; //报工开始时间 |
| | | string reportdateclosedate = ""; //报工结束时间 |
| | | if (reportdate != "" && reportdate != null) |
| | | { |
| | | reportdateopendate = reportdate.Split('~')[0].ToString(); |
| | | reportdateclosedate = reportdate.Split('~')[1].ToString(); |
| | | } |
| | | mes = ReportManagerBLL.MesOrderStepReportExcelSearch(wkshopcode, wo_code, partnumber, partname, partspec, stepname, eqpcode, reportuser, reportdateopendate, reportdateclosedate); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | } |
| | | } |