| | |
| | | |
| | | #region[设备点检记录明细查询] |
| | | /// <summary> |
| | | /// 设备保养记录明细查询 |
| | | /// 设备点检记录明细查询 |
| | | /// </summary> |
| | | /// <param name="djwo">设备点检单号</param> |
| | | /// <returns></returns> |
| | |
| | | checkopendate = checkdate.Split('~')[0].ToString(); |
| | | checkclosedate = checkdate.Split('~')[1].ToString(); |
| | | } |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = DeviceManagerBLL.DeviceCheckTakeOutExcel(wkshopcode, eqpcode, eqpname, stanedname, checkuser, checkopendate, checkclosedate); |
| | | return TJson.toJson(mes); |
| | | } |
| | |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[设备维修记录查询] |
| | | /// <summary> |
| | | /// 设备维修记录查询 |
| | | /// </summary> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <param name="wkshopcode">车间编码</param> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <param name="eqpname">设备名称</param> |
| | | /// <param name="reportuser">报修人员</param> |
| | | /// <param name="repairuser">维修人员</param> |
| | | /// <param name="vrifcatuser">验证人员</param> |
| | | /// <param name="reportdate">报修时间</param> |
| | | /// <param name="repairdate">维修时间</param> |
| | | /// <param name="vrifcatdate">验证时间</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceUpdateSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage DeviceUpdateSearch(int page, int rows, string prop, string order, string wkshopcode = null, string eqpcode = null, string eqpname = null, string reportuser = null, string repairuser = null, string vrifcatuser = null, string reportdate = null, string repairdate = null, string vrifcatdate = null) |
| | | { |
| | | string reportopendate = ""; //报修开始时间 |
| | | string reportclosedate = ""; //报修结束时间 |
| | | string repairopendate = ""; //维修开始时间 |
| | | string repairclosedate = ""; //维修结束时间 |
| | | string vrifcatopendate = ""; //维修验证开始时间 |
| | | string vrifcatclosedate = ""; //维修验证结束时间 |
| | | if (reportdate != "" && reportdate != null) |
| | | { |
| | | reportopendate = reportdate.Split('~')[0].ToString(); |
| | | reportclosedate = reportdate.Split('~')[1].ToString(); |
| | | } |
| | | if (repairdate != "" && repairdate != null) |
| | | { |
| | | repairopendate = repairdate.Split('~')[0].ToString(); |
| | | repairclosedate = repairdate.Split('~')[1].ToString(); |
| | | } |
| | | if (vrifcatdate != "" && vrifcatdate != null) |
| | | { |
| | | vrifcatopendate = vrifcatdate.Split('~')[0].ToString(); |
| | | vrifcatclosedate = vrifcatdate.Split('~')[1].ToString(); |
| | | } |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = DeviceManagerBLL.DeviceUpdateSearch(wkshopcode, eqpcode, eqpname, reportuser, repairuser, vrifcatuser, reportopendate, reportclosedate, repairopendate, repairclosedate, vrifcatopendate, vrifcatclosedate, startNum, endNum, prop, order); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备维修记录明细查询] |
| | | /// <summary> |
| | | /// 设备维修记录明细查询 |
| | | /// </summary> |
| | | /// <param name="repair_code">设备维修单号</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceUpdateSubSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage DeviceUpdateSubSearch(string repair_code) |
| | | { |
| | | mes = DeviceManagerBLL.DeviceUpdateSubSearch(repair_code); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备维修记录导出] |
| | | /// <summary> |
| | | /// 设备维修记录导出 |
| | | /// </summary> |
| | | /// <param name="wkshopcode">车间编码</param> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <param name="eqpname">设备名称</param> |
| | | /// <param name="reportuser">报修人员</param> |
| | | /// <param name="repairuser">维修人员</param> |
| | | /// <param name="vrifcatuser">验证人员</param> |
| | | /// <param name="reportdate">报修时间</param> |
| | | /// <param name="repairdate">维修时间</param> |
| | | /// <param name="vrifcatdate">验证时间</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceUpdateOutExcel")] |
| | | [HttpGet] |
| | | public HttpResponseMessage DeviceUpdateOutExcel(string wkshopcode = null, string eqpcode = null, string eqpname = null, string reportuser = null, string repairuser = null, string vrifcatuser = null, string reportdate = null, string repairdate = null, string vrifcatdate = null) |
| | | { |
| | | string reportopendate = ""; //报修开始时间 |
| | | string reportclosedate = ""; //报修结束时间 |
| | | string repairopendate = ""; //维修开始时间 |
| | | string repairclosedate = ""; //维修结束时间 |
| | | string vrifcatopendate = ""; //维修验证开始时间 |
| | | string vrifcatclosedate = ""; //维修验证结束时间 |
| | | if (reportdate != "" && reportdate != null) |
| | | { |
| | | reportopendate = reportdate.Split('~')[0].ToString(); |
| | | reportclosedate = reportdate.Split('~')[1].ToString(); |
| | | } |
| | | if (repairdate != "" && repairdate != null) |
| | | { |
| | | repairopendate = repairdate.Split('~')[0].ToString(); |
| | | repairclosedate = repairdate.Split('~')[1].ToString(); |
| | | } |
| | | if (vrifcatdate != "" && vrifcatdate != null) |
| | | { |
| | | vrifcatopendate = vrifcatdate.Split('~')[0].ToString(); |
| | | vrifcatclosedate = vrifcatdate.Split('~')[1].ToString(); |
| | | } |
| | | mes = DeviceManagerBLL.DeviceUpdateOutExcel(wkshopcode, eqpcode, eqpname, reportuser, repairuser, vrifcatuser, reportopendate, reportclosedate, repairopendate, repairclosedate, vrifcatopendate, vrifcatclosedate); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | } |
| | | } |