1
wtt
2025-02-26 0a667f1827405b9190f7dd0c242126c6f62e6448
WebAPI/Controllers/BaseSet/Gy_SourceController.cs
@@ -676,7 +676,7 @@
        {
            try
            {
                string sql1 = string.Format("select hitemid,hnumber,hname from Gy_Source"+ sWhere + " order by hnumber");
                string sql1 = string.Format("select hitemid,hnumber,hname,HUSEORGID from Gy_Source" + sWhere + " order by hnumber");
                ds = oCN.RunProcReturn(sql1, "Gy_Source");
@@ -784,6 +784,14 @@
                    objJsonResult.data = null;
                    return objJsonResult; ;
                }
                else if (ds.Tables[0].Rows[0]["HCheckEmp"] != null && ds.Tables[0].Rows[0]["HCheckEmp"].ToString() != "")
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "已经审核不能删除!";
                    objJsonResult.data = null;
                    return objJsonResult; ;
                }
                oCN.RunProc("delete from  Gy_Source  where HItemID=" + HItemID);