| | |
| | | { |
| | | try |
| | | { |
| | | //判断是否有删除权限 |
| | | //判断是否有审核权限 |
| | | if (!DBUtility.ClsPub.Security_Log("Sb_EquipPatrolCheckRuleBill_Check", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | |
| | | return objJsonResult; |
| | | } |
| | | //================================================================================== |
| | | string sql2 = "select hmainid,审核人 from h_v_Sb_EquipPatrolCheckRuleList where hmainid = " + HInterID; |
| | | |
| | | var ds2 = oCN.RunProcReturn(sql2, "h_v_Sb_EquipPatrolCheckRuleList"); |
| | | |
| | | if (ds2.Tables[0].Rows[0]["审核人"].ToString() != string.Empty) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "审核失败!原因: 单据已被审核!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (!BillOld.CheckBill(int.Parse(HInterID),oBill.omodel.HBillNo, "h_p_Sb_EquipPatrolCheckRuleBill_AfterCheckCtrl",user, ref ClsPub.sExeReturnInfo)) |
| | | { |