| | |
| | | } |
| | | #endregion |
| | | |
| | | #region 工艺路线 批量驳回 |
| | | [Route("Gy_Routing/RejectAllCheckFlow")] |
| | | [HttpGet] |
| | | public object RejectAllCheckFlow(string HInterIDS,string CurUserID) |
| | | { |
| | | try |
| | | { |
| | | //处理字符串 |
| | | if (!string.IsNullOrEmpty(HInterIDS)) |
| | | { |
| | | int[] idArray = Array.ConvertAll(HInterIDS.Split(','), int.Parse); |
| | | // 处理idArray... |
| | | for (int i = 0; i < idArray.Length; i++) |
| | | { |
| | | objJsonResult = (json)RejectCheckFlow(idArray[i].ToString(),CurUserID);//审核执行 |
| | | if (objJsonResult.count == 0) |
| | | { |
| | | objJsonResult.Message += "第" + (i + 1) + "行出现问题无法继续完成"; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "请选择正确行"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult.code = CodeConstant.SUCCEED; |
| | | objJsonResult.count = CountConstant.SUCCEED; |
| | | objJsonResult.Message = "执行成功!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "驳回工艺路线失败!" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | } |
| | | } |