chenhaozhe
2025-06-12 95fde02469c2709544649aa73ea380abb65b6daa
WebAPI/Controllers/SBGL/Sb_EquipPatrolCheckRuleBillController.cs
@@ -422,7 +422,7 @@
        {
            try
            {
                //判断是否有删除权限
                //判断是否有审核权限
                if (!DBUtility.ClsPub.Security_Log("Sb_EquipPatrolCheckRuleBill_Check", 1, false, user))
                {
                    objJsonResult.code = "0";
@@ -471,6 +471,18 @@
                        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))
                    {