| | |
| | | } |
| | | #endregion |
| | | |
| | | #region 保存/编辑 |
| | | #region 工序计划单 保存/编辑 |
| | | //工序计划单 保存/编辑 |
| | | [Route("Sc_ProcessMangement/AddBill")] |
| | | [HttpPost] |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region 审核/反审核 |
| | | #region 工序计划单 审核/反审核 |
| | | [Route("Sc_ProcessMangement/CheckDeOAuditBill")] |
| | | [HttpGet] |
| | | public object CheckDeOAuditBill(int HInterID, int IsAudit, string CurUserName) |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region 删除 |
| | | #region 工序计划单 删除 |
| | | [Route("Sc_ProcessMangement/DeleteProcessBill")] |
| | | [HttpGet] |
| | | public object MouldDeleteBill(long HInterID, string User, string ModRightNameDelete) |
| | |
| | | //} |
| | | oBill.ShowBill(HInterID, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | |
| | | if (oBill.omodel.HBillStatus > 1) |
| | | if (oBill.omodel.HChecker != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "单据当前处于不能删除的状态"; |
| | | objJsonResult.Message = "单据当前处于审核状态,不能删除!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //不需要 |
| | | //if (oBill.omodel.HChecker != "") |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 1; |
| | | // objJsonResult.Message = "单据当前已审核"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | if (oBill.DeleteBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo)) |
| | | { |
| | | objJsonResult.code = "1"; |