| | |
| | | /// </summary> |
| | | /// <param name="storg_code">组织编码</param> |
| | | /// <param name="storg_name">组织名称</param> |
| | | /// <param name="torgtype_code">组织类型编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "STorgData")] |
| | | [HttpGet] |
| | | public JsonResult STorgData(string storg_code, string storg_name) |
| | | public JsonResult STorgData(string storg_code, string storg_name,string torgtype_code) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = BasicSettingBLL.STorgData(storg_code, storg_name); |
| | | mes = BasicSettingBLL.STorgData(storg_code, storg_name, torgtype_code); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | |
| | | string leve = obj["leve"].ToString(); //层级编码 |
| | | string parent_id = obj["parent_id"].ToString(); //parent_id |
| | | string storgcode = obj["storgcode"].ToString(); //所属组织编码 |
| | | string torgtype_code = obj["torgtype_code"].ToString(); //组织类型编码 |
| | | string torg_seq = obj["torg_seq"].ToString(); //排序序号 |
| | | string status = obj["status"].ToString(); //状态 |
| | | string OperType = obj["OperType"].ToString(); //操作类型 |
| | | mes = BasicSettingBLL.AddUpdateOrganization(OrganCode, OrganName, leve, parent_id, storgcode, torg_seq, status, OperType, us); |
| | | mes = BasicSettingBLL.AddUpdateOrganization(OrganCode, OrganName, leve, parent_id, storgcode, torgtype_code, torg_seq, status, OperType, us); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | |
| | | /// <summary> |
| | | /// 工序新增编辑 |
| | | /// </summary> |
| | | /// <param name="obj">提交数据对象</param> |
| | | /// <param name="OperType">操作类型:Add/Update</param> |
| | | /// <param name="tflw_rteqp">提交数据</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AddUpdateStep")] |
| | | [HttpPost] |
| | | public JsonResult AddUpdateStep([FromBody] JObject obj) |
| | | public JsonResult AddUpdateStep(string OperType, TFlw_Rteqp tflw_rteqp) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | string stepid = obj["id"].ToString(); //工序id(主键) |
| | | string stepcode = obj["stepcode"].ToString(); //工序编码 |
| | | string stepname = obj["stepname"].ToString(); //工序名称 |
| | | string steptypecode = obj["steptypecode"].ToString(); //工序类型编码 |
| | | string enable = obj["enable"].ToString(); //启用状态 |
| | | string description = obj["description"].ToString(); //工序描述 |
| | | string OperType = obj["OperType"].ToString(); //操作类型 |
| | | mes = BasicSettingBLL.AddUpdateStep(stepid, stepcode, stepname, steptypecode, enable, description, us, OperType); |
| | | mes = BasicSettingBLL.AddUpdateStep(OperType, us, tflw_rteqp); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = BasicSettingBLL.DeleteStep(stepcode, us); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[工序定义关联工作站查询] |
| | | /// <summary> |
| | | /// 工序定义关联工作站查询 |
| | | /// </summary> |
| | | /// <param name="stepcode">工序编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "StepAssociationEqp")] |
| | | [HttpGet] |
| | | public JsonResult StepAssociationEqp(string stepcode) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = BasicSettingBLL.StepAssociationEqp(stepcode, us); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region [工序定义关联工作站提交] |
| | | /// <summary> |
| | | /// 工序定义关联工作站提交 |
| | | /// </summary> |
| | | /// <param name="stepcode">工序编码</param> |
| | | /// <param name="json">提交数据</param> |
| | | /// <returns></returns> |
| | | [Route(template: "SaveStepAssociationEqp")] |
| | | [HttpPost] |
| | | public JsonResult SaveStepAssociationEqp(string stepcode, List<ObjectData> json) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = BasicSettingBLL.SaveStepAssociationEqp(stepcode, us, json); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | |
| | | [HttpGet] |
| | | public JsonResult RouteSelectStep(string partcode,string routecode) |
| | | { |
| | | |
| | | mes = BasicSettingBLL.RouteSelectStep(partcode, routecode); |
| | | return Json(mes); |
| | | } |
| | |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |