| | |
| | | [HttpPost] |
| | | public JsonResult DeleteMouldCheckItem(string checkitemcode) |
| | | { |
| | | mes = MouldManagerBLL.DeleteMouldCheckItem(checkitemcode); |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = MouldManagerBLL.DeleteMouldCheckItem(checkitemcode,us); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[模具点检标准列表查询] |
| | | /// <summary> |
| | | /// 模具点检标准列表查询 |
| | | /// </summary> |
| | | /// <param name="checkstandcode">点检标准编码</param> |
| | | /// <param name="checkstandname">点检标准名称</param> |
| | | /// <param name="checkstandescr">标准要求</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 checkstandescr = null) |
| | | { |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = MouldManagerBLL.DeviceCheckStandArdSearch(checkstandcode, checkstandname, checkstandescr, startNum, endNum, prop, order); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[模具点检标准编辑/查看获取数据] |
| | | /// <summary> |
| | | /// 模具点检标准编辑/查看获取数据 |
| | | /// </summary> |
| | | /// <param name="checkstand_code">模具点检标准编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "ViewMouldCheckStanedSearch")] |
| | | [HttpPost] |
| | | public JsonResult ViewMouldCheckStanedSearch(string checkstand_code) |
| | | { |
| | | mes = MouldManagerBLL.ViewMouldCheckStanedSearch(checkstand_code); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[模具点检标准新增编辑] |
| | | /// <summary> |
| | | /// 模具点检标准新增编辑 |
| | | /// </summary> |
| | | /// <param name="opertype">操作类型</param> |
| | | /// <param name="json">提交数据</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AddUpdateMouldCheckStandArd")] |
| | | [HttpPost] |
| | | public JsonResult AddUpdateMouldCheckStandArd(string opertype, RoutEdit json) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = MouldManagerBLL.AddUpdateMouldCheckStandArd(opertype, json, us); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[模具点检标准删除] |
| | | /// <summary> |
| | | /// 模具点检标准删除 |
| | | /// </summary> |
| | | /// <param name="checkstand_code">模具点检标准编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeleteMouldCheckStaned")] |
| | | [HttpPost] |
| | | public JsonResult DeleteDeviceCheckStaned(string checkstand_code) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = MouldManagerBLL.DeleteMouldCheckStaned(checkstand_code,us); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[模具点检标准关联模具查询] |
| | | /// <summary> |
| | | /// 模具点检标准关联模具查询 |
| | | /// </summary> |
| | | /// <param name="checkstand_code">模具点检标准编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "CheckStanedAssociationMould")] |
| | | [HttpGet] |
| | | public JsonResult CheckStanedAssociationMould(string checkstand_code) |
| | | { |
| | | mes = MouldManagerBLL.CheckStanedAssociationMould(checkstand_code); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region [模具点检标准关联模具提交] |
| | | /// <summary> |
| | | /// 模具点检标准关联模具提交 |
| | | /// </summary> |
| | | /// <param name="checkstand_code">模具点检标准编码</param> |
| | | /// <param name="json">提交数据</param> |
| | | /// <returns></returns> |
| | | [Route(template: "SaveCheckStanedAssociationMould")] |
| | | [HttpPost] |
| | | public JsonResult SaveCheckStanedAssociationMould(string checkstand_code, List<ObjectData> json) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = MouldManagerBLL.SaveCheckStanedAssociationMould(checkstand_code, us, json); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[模具保养项列表查询] |
| | | /// <summary> |
| | | /// 模具保养项列表查询 |
| | | /// </summary> |
| | | /// <param name="maiitemcode">保养部位编码</param> |
| | | /// <param name="maiitemname">保养部位名称</param> |
| | | /// <param name="maidescr">保养要求</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <returns></returns> |
| | | [Route(template: "MouldMaiItemSearch")] |
| | | [HttpGet] |
| | | public JsonResult MouldMaiItemSearch(int page, int rows, string prop, string order, string maiitemcode = null, string maiitemname = null, string maidescr = null) |
| | | { |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = MouldManagerBLL.MouldMaiItemSearch(maiitemcode, maiitemname, maidescr, startNum, endNum, prop, order); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[模具保养项新增编辑] |
| | | /// <summary> |
| | | /// 模具保养项新增编辑 |
| | | /// </summary> |
| | | /// <param name="obj">提交数据对象</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AddUpdateMouldMaiItem")] |
| | | [HttpPost] |
| | | public JsonResult AddUpdateMouldMaiItem([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 opertype = obj["opertype"].ToString(); //操作类型 |
| | | mes = MouldManagerBLL.AddUpdateMouldMaiItem(maiitemid, maiitemcode, maiitemname, maiitemdescr, us, opertype); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[模具保养项删除] |
| | | /// <summary> |
| | | /// 模具保养项删除 |
| | | /// </summary> |
| | | /// <param name="maiitemcode">模具保养项目(部位)编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeleteMouldMaiItem")] |
| | | [HttpPost] |
| | | public JsonResult DeleteMouldMaiItem(string maiitemcode) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = MouldManagerBLL.DeleteMouldMaiItem(maiitemcode, us); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[模具保养标准列表查询] |
| | | /// <summary> |
| | | /// 模具保养标准列表查询 |
| | | /// </summary> |
| | | /// <param name="repairstandcode">保养标准编码</param> |
| | | /// <param name="repairstandname">保养标准名称</param> |
| | | /// <param name="repairstandescr">保准要求</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <returns></returns> |
| | | [Route(template: "MouldRepairStandArdSearch")] |
| | | [HttpGet] |
| | | public JsonResult MouldRepairStandArdSearch(int page, int rows, string prop, string order, string repairstandcode = null, string repairstandname = null, string repairstandescr = null) |
| | | { |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = MouldManagerBLL.MouldRepairStandArdSearch(repairstandcode, repairstandname, repairstandescr, startNum, endNum, prop, order); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[模具保养标准编辑/查看获取数据] |
| | | /// <summary> |
| | | /// 模具保养标准编辑/查看获取数据 |
| | | /// </summary> |
| | | /// <param name="repairstand_code">模具保养标准编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "ViewMouldRepairStanedSearch")] |
| | | [HttpPost] |
| | | public JsonResult ViewMouldRepairStanedSearch(string repairstand_code) |
| | | { |
| | | mes = MouldManagerBLL.ViewMouldRepairStanedSearch(repairstand_code); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[模具保养标准新增编辑] |
| | | /// <summary> |
| | | /// 模具保养标准新增编辑 |
| | | /// </summary> |
| | | /// <param name="opertype">操作类型</param> |
| | | /// <param name="json">提交数据</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AddUpdateMouldRepairStandArd")] |
| | | [HttpPost] |
| | | public JsonResult AddUpdateMouldRepairStandArd(string opertype, RoutEdit json) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = MouldManagerBLL.AddUpdateMouldRepairStandArd(opertype, json, us); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[模具保养标准删除] |
| | | /// <summary> |
| | | /// 模具保养标准删除 |
| | | /// </summary> |
| | | /// <param name="repairstand_code">模具保养标准编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeleteMouldRepairStaned")] |
| | | [HttpPost] |
| | | public JsonResult DeleteMouldRepairStaned(string repairstand_code) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = MouldManagerBLL.DeleteMouldRepairStaned(repairstand_code, us); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[模具保养标准关联模具查询] |
| | | /// <summary> |
| | | /// 模具保养标准关联模具查询 |
| | | /// </summary> |
| | | /// <param name="repairstand_code">模具保养标准编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "RepairStanedAssociationMould")] |
| | | [HttpGet] |
| | | public JsonResult RepairStanedAssociationMould(string repairstand_code) |
| | | { |
| | | mes = MouldManagerBLL.RepairStanedAssociationMould(repairstand_code); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region [模具保养标准关联模具提交] |
| | | /// <summary> |
| | | /// 模具保养标准关联模具提交 |
| | | /// </summary> |
| | | /// <param name="repairstand_code">模具保养标准编码</param> |
| | | /// <param name="json">提交数据</param> |
| | | /// <returns></returns> |
| | | [Route(template: "SaveRepairStanedAssociationMould")] |
| | | [HttpPost] |
| | | public JsonResult SaveRepairStanedAssociationMould(string repairstand_code, List<ObjectData> json) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = MouldManagerBLL.SaveRepairStanedAssociationMould(repairstand_code, us, json); |
| | | return Json(mes); |
| | | } |
| | | #endregion |