1
wtt
2025-11-27 0a2eb21bd035265e490ba333871a7c6d2778fcc4
WebAPI/Controllers/»ù´¡×ÊÁÏ/»ù´¡×ÊÁÏ/Gy_RepairCheckBillController.cs
@@ -347,6 +347,19 @@
                    return objJsonResult;
                }
                // ä»£ç  é™¤åŽ»è‡ªèº«å¤– ä¸èƒ½é‡å¤
                var dsHNumberCheck = oCN.RunProcReturn($@"
                    select top 1 HItemID from Gy_RepairCheck where HStopflag = 0 and HNumber = '{HNumber}' and HItemID != {HItemID}
                ", "Gy_Repair");
                if (dsHNumberCheck.Tables[0].Rows.Count > 0)
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "保存失败!代码重复!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                //若MAINDI重复则重新获取
                oCN.BeginTran();
@@ -485,6 +498,18 @@
                    return objJsonResult;
                }
                var dsHNumberCheck = oCN.RunProcReturn($@"
                    select top 1 HItemID from Gy_RepairCheck where HStopflag = 0 and HNumber = '{HNumber}'
                ", "Gy_Repair");
                if (dsHNumberCheck.Tables[0].Rows.Count > 0)
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "保存失败!代码重复!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                //若MAINDI重复则重新获取