From 60dd1afc3e8f94aa1b23211b6738d35b47294382 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周三, 17 9月 2025 13:58:45 +0800 Subject: [PATCH] //验证单号是否已经存在 【Editby shaocx,2025-09-17】 var findInOutList = DbModel.BASEInOutLists.FirstOrDefault(x => x.listno == iol.ListNo); if (findInOutList != null) { msg = $"单号{iol.ListNo}已存在"; return -1; } --- DEmon/WebWIPAPI/Web.config | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/DEmon/WebWIPAPI/Web.config b/DEmon/WebWIPAPI/Web.config index fe0834f..ec93dd0 100644 --- a/DEmon/WebWIPAPI/Web.config +++ b/DEmon/WebWIPAPI/Web.config @@ -2,6 +2,9 @@ <configuration> + <configSections> + <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> + </configSections> <appSettings> <add key="webpages:Version" value="2.0.0.0" /> <add key="webpages:Enabled" value="false" /> @@ -32,4 +35,19 @@ <system.webServer> <validation validateIntegratedModeConfiguration="false" /> </system.webServer> + <connectionStrings> + <add name="DbModelExcel" connectionString="data source=.;initial catalog=WGQ_WB19011_EXCEL;persist security info=True;user id=sa;password=123abc.com;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" /> + <add name="DbModelLog" connectionString="data source=.;initial catalog=WGQ_WB19011_LOG;user id=sa;password=123abc.com;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" /> + <add name="DbModelCore" connectionString="data source=.;initial catalog=WGQ_WB19011_CORE;user id=sa;password=123abc.com;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" /> + </connectionStrings> + <runtime> + <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> + <dependentAssembly> + <assemblyIdentity name="Autofac" publicKeyToken="17863af14b0044da" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-4.8.1.0" newVersion="4.8.1.0" /> + </dependentAssembly> + </assemblyBinding> + </runtime> + + </configuration> -- Gitblit v1.9.3