| | |
| | | /// <returns></returns> |
| | | [Route(template: "AddUpdateDeviceType")] |
| | | [HttpPost] |
| | | public JsonResult AddUpdateDeviceType(string OperType,List<ObjectDataCont> json) |
| | | public JsonResult AddUpdateDeviceType(string OperType, List<ObjectDataCont> json) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = DeviceManagerBLL.AddUpdateDeviceType(OperType,json, us); |
| | | mes = DeviceManagerBLL.AddUpdateDeviceType(OperType, json, us); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | |
| | | string storgcode = obj["storgcode"].ToString(); //所属组织编码 |
| | | string status = obj["status"].ToString(); //使用状态 |
| | | string OperType = obj["OperType"].ToString(); //操作类型 |
| | | mes = DeviceManagerBLL.AddUpdateDeviceManger(devicecode, devicename, devicetype, storgcode, status,OperType, us); |
| | | mes = DeviceManagerBLL.AddUpdateDeviceManger(devicecode, devicename, devicetype, storgcode, status, OperType, us); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region[设备点检项列表查询] |
| | | /// <summary> |
| | | /// 设备点检项列表查询 |
| | | /// </summary> |
| | | /// <param name="checkitemcode">点检部位编码</param> |
| | | /// <param name="checkitemname">点检部位名称</param> |
| | | /// <param name="checkdescr">点检要求</param> |
| | | /// <param name="isqrcode">选中扫码</param> |
| | | /// <param name="cycle">点检周期</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceCheckItemSearch")] |
| | | [HttpGet] |
| | | public JsonResult DeviceCheckItemSearch(int page, int rows, string prop, string order, string checkitemcode = null, string checkitemname = null, string checkdescr = null, string isqrcode = null, string cycle = null) |
| | | { |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = DeviceManagerBLL.DeviceCheckItemSearch(checkitemcode, checkitemname, checkdescr, isqrcode, cycle, startNum, endNum, prop, order); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备点检项新增编辑] |
| | | /// <summary> |
| | | /// 设备点检项新增编辑 |
| | | /// </summary> |
| | | /// <param name="obj">提交数据对象</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AddUpdateDeviceCheckItem")] |
| | | [HttpPost] |
| | | public JsonResult AddUpdateDeviceCheckItem([FromBody] JObject obj) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | string checkitemid = obj["id"].ToString(); //设备点检项id(主键) |
| | | string checkitemcode = obj["checkitemcode"].ToString(); //设备点检部位编码 |
| | | string checkitemname = obj["checkitemname"].ToString(); //设备点检部位名称 |
| | | string checkitemdescr = obj["checkitemdescr"].ToString(); //设备点检部位要求 |
| | | string cycle = obj["cycle"].ToString(); //设备点检部位周期 |
| | | string isqrcode = obj["isqrcode"].ToString(); //是否扫码 |
| | | string OperType = obj["OperType"].ToString(); //操作类型 |
| | | mes = DeviceManagerBLL.AddUpdateDeviceCheckItem(checkitemid, checkitemcode, checkitemname, checkitemdescr, cycle, isqrcode, us, OperType); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备点检项删除] |
| | | /// <summary> |
| | | /// 设备点检项删除 |
| | | /// </summary> |
| | | /// <param name="checkitemcode">设备点检项目(部位)编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeleteDeviceCheckItem")] |
| | | [HttpPost] |
| | | public JsonResult DeleteDeviceCheckItem(string checkitemcode) |
| | | { |
| | | mes = DeviceManagerBLL.DeleteDeviceCheckItem(checkitemcode); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[设备保养项列表查询] |
| | | /// <summary> |
| | | /// 设备保养项列表查询 |
| | | /// </summary> |
| | | /// <param name="maiitemcode">保养部位编码</param> |
| | | /// <param name="maiitemname">保养部位名称</param> |
| | | /// <param name="maidescr">保养要求</param> |
| | | /// <param name="isqrcode">选中扫码</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceMaiItemSearch")] |
| | | [HttpGet] |
| | | public JsonResult DeviceMaiItemSearch(int page, int rows, string prop, string order, string maiitemcode = null, string maiitemname = null, string maidescr = null, string isqrcode = null) |
| | | { |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = DeviceManagerBLL.DeviceMaiItemSearch(maiitemcode, maiitemname, maidescr, isqrcode, startNum, endNum, prop, order); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备保养项新增编辑] |
| | | /// <summary> |
| | | /// 设备保养项新增编辑 |
| | | /// </summary> |
| | | /// <param name="obj">提交数据对象</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AddUpdateDeviceMaiItem")] |
| | | [HttpPost] |
| | | public JsonResult AddUpdateDeviceMaiItem([FromBody] JObject obj) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | string maiitemid = obj["id"].ToString(); //设备保养项id(主键) |
| | | string maiitemcode = obj["maiitemcode"].ToString(); //设备保养部位编码 |
| | | string maiitemname = obj["maiitemname"].ToString(); //设备保养部位名称 |
| | | string maiitemdescr = obj["maiitemdescr"].ToString(); //设备保养部位要求 |
| | | string isqrcode = obj["isqrcode"].ToString(); //是否扫码 |
| | | string OperType = obj["OperType"].ToString(); //操作类型 |
| | | mes = DeviceManagerBLL.AddUpdateDeviceMaiItem(maiitemid, maiitemcode, maiitemname, maiitemdescr, isqrcode, us, OperType); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备保养项删除] |
| | | /// <summary> |
| | | /// 设备保养项删除 |
| | | /// </summary> |
| | | /// <param name="maiitemcode">设备保养项目(部位)编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeleteDeviceMaiItem")] |
| | | [HttpPost] |
| | | public JsonResult DeleteDeviceMaiItem(string maiitemcode) |
| | | { |
| | | mes = DeviceManagerBLL.DeleteDeviceMaiItem(maiitemcode); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region[设备点检标准列表查询] |
| | | /// <summary> |
| | | /// 设备点检标准列表查询 |
| | | /// </summary> |
| | | /// <param name="checkstandcode">点检标准编码</param> |
| | | /// <param name="checkstandname">点检标准名称</param> |
| | | /// <param name="checkcontr">点检管控</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceCheckStandArdSearch")] |
| | | [HttpGet] |
| | | public JsonResult DeviceCheckStandArdSearch(int page, int rows, string prop, string order, string checkstandcode = null, string checkstandname = null, string checkcontr = null) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = DeviceManagerBLL.DeviceCheckStandArdSearch(us, checkstandcode, checkstandname, checkcontr, startNum, endNum, prop, order); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备点检标准新增、编辑获取检验项目下拉列表] |
| | | /// <summary> |
| | | /// 设备点检标准新增、编辑获取检验项目下拉列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceCheckItemSelect")] |
| | | [HttpGet] |
| | | public JsonResult DeviceCheckItemSelect() |
| | | { |
| | | mes = DeviceManagerBLL.DeviceCheckItemSelect(); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备点检标准编辑/查看获取数据] |
| | | /// <summary> |
| | | /// 设备点检标准编辑/查看获取数据 |
| | | /// </summary> |
| | | /// <param name="checkstand_code">设备点检标准编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "ViewDeviceCheckStanedSearch")] |
| | | [HttpPost] |
| | | public JsonResult ViewDeviceCheckStanedSearch(string checkstand_code) |
| | | { |
| | | mes = DeviceManagerBLL.ViewDeviceCheckStanedSearch(checkstand_code); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备点检标准新增编辑] |
| | | /// <summary> |
| | | /// 设备点检标准新增编辑 |
| | | /// </summary> |
| | | /// <param name="opertype">操作类型</param> |
| | | /// <param name="json">提交数据</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AddUpdateDeviceCheckStandArd")] |
| | | [HttpPost] |
| | | public JsonResult AddUpdateDeviceCheckStandArd(string opertype, RoutEdit json) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = DeviceManagerBLL.AddUpdateDeviceCheckStandArd(opertype, json, us); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备点检标准删除] |
| | | /// <summary> |
| | | /// 设备点检标准删除 |
| | | /// </summary> |
| | | /// <param name="checkstand_code">设备点检标准编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeleteDeviceCheckStaned")] |
| | | [HttpPost] |
| | | public JsonResult DeleteDeviceCheckStaned(string checkstand_code) |
| | | { |
| | | mes = DeviceManagerBLL.DeleteDeviceCheckStaned(checkstand_code); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备点检标准关联工作站查询] |
| | | /// <summary> |
| | | /// 设备点检标准关联工作站查询 |
| | | /// </summary> |
| | | /// <param name="checkstand_code">设备点检标准编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceCheckStanedAssociationEqp")] |
| | | [HttpGet] |
| | | public JsonResult DeviceCheckStanedAssociationEqp(string checkstand_code) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = DeviceManagerBLL.DeviceCheckStanedAssociationEqp(us, checkstand_code); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region [设备点检标准关联工作站提交] |
| | | /// <summary> |
| | | /// 设备点检标准关联工作站提交 |
| | | /// </summary> |
| | | /// <param name="checkstand_code">设备点检标准编码</param> |
| | | /// <param name="json">提交数据</param> |
| | | /// <returns></returns> |
| | | [Route(template: "SaveDeviceCheckStanedAssociationEqp")] |
| | | [HttpPost] |
| | | public JsonResult SaveDeviceCheckStanedAssociationEqp(string checkstand_code, List<ObjectData> json) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = DeviceManagerBLL.SaveDeviceCheckStanedAssociationEqp(us, checkstand_code, json); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region[设备保养标准列表查询] |
| | | /// <summary> |
| | | /// 设备保养标准列表查询 |
| | | /// </summary> |
| | | /// <param name="repairstandcode">保养标准编码</param> |
| | | /// <param name="repairstandname">保养标准名称</param> |
| | | /// <param name="repairstanddescr">保养标准描述</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceRepairStandArdSearch")] |
| | | [HttpGet] |
| | | public JsonResult DeviceRepairStandArdSearch(int page, int rows, string prop, string order, string repairstandcode = null, string repairstandname = null, string repairstanddescr = null) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = DeviceManagerBLL.DeviceRepairStandArdSearch(us, repairstandcode, repairstandname, repairstanddescr, startNum, endNum, prop, order); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备保养标准新增、编辑获取保养项目下拉列表] |
| | | /// <summary> |
| | | /// 设备保养标准新增、编辑获取保养项目下拉列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceRepairItemSelect")] |
| | | [HttpGet] |
| | | public JsonResult DeviceRepairItemSelect() |
| | | { |
| | | mes = DeviceManagerBLL.DeviceRepairItemSelect(); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备保养标准编辑/查看获取数据] |
| | | /// <summary> |
| | | /// 设备保养标准编辑/查看获取数据 |
| | | /// </summary> |
| | | /// <param name="repairstand_code">设备保养标准编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "ViewDeviceRepairStanedSearch")] |
| | | [HttpPost] |
| | | public JsonResult ViewDeviceRepairStanedSearch(string repairstand_code) |
| | | { |
| | | mes = DeviceManagerBLL.ViewDeviceRepairStanedSearch(repairstand_code); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备保养标准新增编辑] |
| | | /// <summary> |
| | | /// 设备保养标准新增编辑 |
| | | /// </summary> |
| | | /// <param name="opertype">操作类型</param> |
| | | /// <param name="json">提交数据</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AddUpdateDeviceRepairStandArd")] |
| | | [HttpPost] |
| | | public JsonResult AddUpdateDeviceRepairStandArd(string opertype, EqpRepair json) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = DeviceManagerBLL.AddUpdateDeviceRepairStandArd(opertype, json, us); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备保养标准删除] |
| | | /// <summary> |
| | | /// 设备保养标准删除 |
| | | /// </summary> |
| | | /// <param name="repairstand_code">设备保养标准编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeleteDeviceRepairStaned")] |
| | | [HttpPost] |
| | | public JsonResult DeleteDeviceRepairStaned(string repairstand_code) |
| | | { |
| | | mes = DeviceManagerBLL.DeleteDeviceRepairStaned(repairstand_code); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备保养标准关联工作站查询] |
| | | /// <summary> |
| | | /// 设备保养标准关联工作站查询 |
| | | /// </summary> |
| | | /// <param name="repairstand_code">设备保养标准编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceRepairStanedAssociationEqp")] |
| | | [HttpGet] |
| | | public JsonResult DeviceRepairStanedAssociationEqp(string repairstand_code) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = DeviceManagerBLL.DeviceRepairStanedAssociationEqp(us, repairstand_code); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region [设备保养标准关联工作站提交] |
| | | /// <summary> |
| | | /// 设备保养标准关联工作站提交 |
| | | /// </summary> |
| | | /// <param name="repairstand_code">设备保养标准编码</param> |
| | | /// <param name="json">提交数据</param> |
| | | /// <returns></returns> |
| | | [Route(template: "SaveDeviceRepairStanedAssociationEqp")] |
| | | [HttpPost] |
| | | public JsonResult SaveDeviceRepairStanedAssociationEqp(string repairstand_code, List<ObjectData> json) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = DeviceManagerBLL.SaveDeviceRepairStanedAssociationEqp(us, repairstand_code, json); |
| | | return Json(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="stanedname">点检标准名称</param> |
| | | /// <param name="checkuser">点检人员</param> |
| | | /// <param name="checkdate">点检时间</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceCheckTakeSearch")] |
| | | [HttpGet] |
| | | public JsonResult DeviceCheckTakeSearch(int page, int rows, string prop, string order, string wkshopcode = null, string eqpcode = null, string eqpname = null, string stanedname = null, string checkuser = null, string checkdate = null) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | string checkopendate = "";//点检开始时间 |
| | | string checkclosedate = "";//点检结束时间 |
| | | if (checkdate != "" && checkdate != null) |
| | | { |
| | | checkopendate = checkdate.Split('~')[0].ToString(); |
| | | checkclosedate = checkdate.Split('~')[1].ToString(); |
| | | } |
| | | int startNum = rows * (page - 1) + 1;//起始记录rowNum |
| | | int endNum = rows * page; //结束记录rowNum |
| | | mes = DeviceManagerBLL.DeviceCheckTakeSearch(us, wkshopcode, eqpcode, eqpname, stanedname, checkuser, checkopendate, checkclosedate, startNum, endNum, prop, order); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备点检记录明细查询] |
| | | /// <summary> |
| | | /// 设备点检记录明细查询 |
| | | /// </summary> |
| | | /// <param name="djwo">设备点检单号</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceCheckSubTakeSearch")] |
| | | [HttpGet] |
| | | public JsonResult DeviceCheckSubTakeSearch(string djwo) |
| | | { |
| | | mes = DeviceManagerBLL.DeviceCheckSubTakeSearch(djwo); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备点检记录导出] |
| | | /// <summary> |
| | | /// 设备点检记录导出 |
| | | /// </summary> |
| | | /// <param name="wkshopcode">车间编码</param> |
| | | /// <param name="eqpcode">设备编号</param> |
| | | /// <param name="eqpname">设备名称</param> |
| | | /// <param name="stanedname">点检标准名称</param> |
| | | /// <param name="checkuser">点检人员</param> |
| | | /// <param name="checkdate">点检时间</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceCheckTakeOutExcel")] |
| | | [HttpGet] |
| | | public JsonResult DeviceCheckTakeOutExcel(string wkshopcode = null, string eqpcode = null, string eqpname = null, string stanedname = null, string checkuser = null, string checkdate = null) |
| | | { |
| | | var Token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(Token.ToString()); |
| | | string checkopendate = "";//点检开始时间 |
| | | string checkclosedate = "";//点检结束时间 |
| | | if (checkdate != "" && checkdate != null) |
| | | { |
| | | checkopendate = checkdate.Split('~')[0].ToString(); |
| | | checkclosedate = checkdate.Split('~')[1].ToString(); |
| | | } |
| | | mes = DeviceManagerBLL.DeviceCheckTakeOutExcel(us,wkshopcode,eqpcode,eqpname,stanedname,checkuser,checkopendate,checkclosedate); |
| | | return Json(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="stanedname">保养标准名称</param> |
| | | /// <param name="repairuser">保养人员</param> |
| | | /// <param name="repairdate">保养时间</param> |
| | | /// <param name="repairresult">保养结果</param> |
| | | /// <returns></returns> |
| | | public JsonResult DeviceRepairTakeSearch(int page, int rows, string prop, string order, string wkshopcode = null, string eqpcode = null,string eqpname=null, string stanedname = null, string repairuser = null, string repairdate = null, string repairresult = null) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | string repairopendate = ""; //点检开始时间 |
| | | string repairclosedate = ""; //点检结束时间 |
| | | if (repairdate != "" && repairdate != null) |
| | | { |
| | | repairopendate = repairdate.Split('~')[0].ToString(); |
| | | repairclosedate = repairdate.Split('~')[1].ToString(); |
| | | } |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = DeviceManagerBLL.DeviceRepairTakeSearch(us, wkshopcode, eqpcode, eqpname, stanedname, repairuser, repairopendate, repairclosedate, repairresult, startNum, endNum, prop, order); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备保养记录明细查询] |
| | | /// <summary> |
| | | /// 设备保养记录明细查询 |
| | | /// </summary> |
| | | /// <param name="bywo">设备保养单号</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceRepairSubTakeSearch")] |
| | | [HttpGet] |
| | | public JsonResult DeviceRepairSubTakeSearch(string bywo) |
| | | { |
| | | mes = DeviceManagerBLL.DeviceRepairSubTakeSearch(bywo); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备保养记录导出] |
| | | /// <summary> |
| | | /// 设备保养记录导出 |
| | | /// </summary> |
| | | /// <param name="wkshopcode">车间编码</param> |
| | | /// <param name="eqpcode">设备编号</param> |
| | | /// <param name="eqpname">设备名称</param> |
| | | /// <param name="stanedname">标准名称</param> |
| | | /// <param name="repairuser">保养人员</param> |
| | | /// <param name="repairdate">保养时间</param> |
| | | /// <param name="repairresult">保养结果</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceRepairTakeOutExcel")] |
| | | [HttpGet] |
| | | public JsonResult DeviceRepairTakeOutExcel(string wkshopcode = null, string eqpcode = null, string eqpname = null, string stanedname = null, string repairuser = null, string repairdate = null, string repairresult = null) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | string repairopendate = ""; //点检开始时间 |
| | | string repairclosedate = ""; //点检结束时间 |
| | | if (repairdate != "" && repairdate != null) |
| | | { |
| | | repairopendate = repairdate.Split('~')[0].ToString(); |
| | | repairclosedate = repairdate.Split('~')[1].ToString(); |
| | | } |
| | | mes = DeviceManagerBLL.DeviceRepairTakeOutExcel(us, wkshopcode, eqpcode, eqpname, stanedname, repairuser, repairopendate, repairclosedate, repairresult); |
| | | return Json(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 JsonResult 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) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | 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(us, wkshopcode, eqpcode, eqpname, reportuser, repairuser, vrifcatuser, reportopendate, reportclosedate, repairopendate, repairclosedate, vrifcatopendate, vrifcatclosedate, startNum, endNum, prop, order); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备维修记录明细查询] |
| | | /// <summary> |
| | | /// 设备维修记录明细查询 |
| | | /// </summary> |
| | | /// <param name="repair_code">设备维修单号</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceUpdateSubSearch")] |
| | | [HttpGet] |
| | | public JsonResult DeviceUpdateSubSearch(string repair_code) |
| | | { |
| | | mes = DeviceManagerBLL.DeviceUpdateSubSearch(repair_code); |
| | | return Json(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 JsonResult 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) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | 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(us, wkshopcode, eqpcode, eqpname, reportuser, repairuser, vrifcatuser, reportopendate, reportclosedate, repairopendate, repairclosedate, vrifcatopendate, vrifcatclosedate); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | } |
| | | } |