1
wtt
2024-10-12 b96af6124ac752f85a6bbf17eee2287e059d249d
DAL/³µ¼ä¹ÜÀí/ClsSc_ProcessExchangeBill.cs
@@ -346,7 +346,22 @@
                {
                    omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo);
                }
                //检查主表内码是否重复,若重复则重新生成并继续检查,直到不再重复
                DataSet ds_repeat;
                while (true)
                {
                    ds_repeat = oCn.RunProcReturn("select * from Sc_ProcessExchangeBillMain where HInterID = " + omodel.HInterID, "Sc_ProcessExchangeBillMain");
                    if (ds_repeat != null && ds_repeat.Tables[0].Rows.Count > 0)
                    {
                        omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo);
                    }
                    else
                    {
                        break;
                    }
                }
                //若MAINDI重复则重新获取
                //保存前控制=========================================