Weben_CMS专用代码生成器/Code/App.config | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Weben_CMS专用代码生成器/Code/Const/TemplateConst.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Weben_CMS专用代码生成器/Code/File/ExcelTemplateFile/CommonTemplate.xlsx | 补丁 | 查看 | 原始文档 | blame | 历史 | |
Weben_CMS专用代码生成器/Code/File/GenerateCodeConfigParamFiles/物料信息表配置文本.txt | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Weben_CMS专用代码生成器/Code/GenerateCode_WeiBen_CMS.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Weben_CMS专用代码生成器/Code/MainForm.Designer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Weben_CMS专用代码生成器/Code/MainForm.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Weben_CMS专用代码生成器/Code/Model/GenerateCodeConfigParam.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Weben_CMS专用代码生成器/Code/Utility/ImportTemplteHelper.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Weben_CMS专用代码生成器/Code/packages.config | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Weben_CMSרÓôúÂëÉú³ÉÆ÷/Code/App.config
@@ -22,6 +22,30 @@ <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Bcl.AsyncInterfaces" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Security.Cryptography.Pkcs" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration> Weben_CMSרÓôúÂëÉú³ÉÆ÷/Code/Const/TemplateConst.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,13 @@ using System; namespace GenerateCode_WeiBen_WMS.Const { public class TemplateConst { /// <summary> /// çæå¯¼å ¥æ¨¡æ¿çExcelæä»¶è·¯å¾(å ¬å ±) /// </summary> public static string EXCEL_TEMPLATEFILE_å¯¼å ¥æ¨¡çè·¯å¾ = AppDomain.CurrentDomain.BaseDirectory + @"\File\ExcelTemplateFile"; public static string EXCEL_TEMPLATEFILE_å¯¼å ¥æ¨¡çåç§°åç¼ = "å¯¼åºæ¨¡æ¿"; } } Weben_CMSרÓôúÂëÉú³ÉÆ÷/Code/File/ExcelTemplateFile/CommonTemplate.xlsxBinary files differ
Weben_CMSרÓôúÂëÉú³ÉÆ÷/Code/File/GenerateCodeConfigParamFiles/ÎïÁÏÐÅÏ¢±íÅäÖÃÎı¾.txt
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,12 @@ [表å]:scms_wmsmaterials [å®ä½ç±»å]:WmsMaterial [å®ä½ç±»å¯¹è±¡å]:wmsMaterial [页é¢èåå]:ç©æä¿¡æ¯ [页é¢èå对象缩å]:wmsMaterial [表çä¸ææ³¨è§£]:ç©æåºç¡ä¿¡æ¯è¡¨ [é夿§æ ¡éªå段]:MaterialCode [å é¤æç¤ºåæ®µ]:MaterialCode [æ¨¡ç³æ¥è¯¢å段]:'MaterialCode', 'MaterialName', 'Remark' [æ¨¡ç³æ¥è¯¢å段å]:请è¾å ¥ç©æç¼ç /ç©æåç§°/夿³¨ [项ç®å½å空é´]:HIAWms [æä¸¾ç±»ååæ®µéå]:PurchaseType|PurchaseTypeEnum|PurchaseTypeDesc,MaterialType|MaterialTypeEnum|MaterialTypeDesc,IsMainBranch|YesNoEnum|IsMainBranchDesc Weben_CMSרÓôúÂëÉú³ÉÆ÷/Code/GenerateCode_WeiBen_CMS.csproj
@@ -28,6 +28,8 @@ <UseApplicationTrust>false</UseApplicationTrust> <BootstrapperEnabled>true</BootstrapperEnabled> <TargetFrameworkProfile /> <NuGetPackageImportStamp> </NuGetPackageImportStamp> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> <PlatformTarget>x86</PlatformTarget> @@ -54,14 +56,47 @@ <ApplicationIcon>Robot.ico</ApplicationIcon> </PropertyGroup> <ItemGroup> <Reference Include="EPPlus.Interfaces, Version=8.0.0.0, Culture=neutral, PublicKeyToken=a694d7f3b0907a61, processorArchitecture=MSIL"> <HintPath>packages\EPPlus.Interfaces.8.0.0\lib\net462\EPPlus.Interfaces.dll</HintPath> </Reference> <Reference Include="Magicodes.IE.EPPlus, Version=2.7.5.2, Culture=neutral, processorArchitecture=MSIL"> <HintPath>packages\Magicodes.IE.EPPlus.2.7.5.2\lib\netstandard2.0\Magicodes.IE.EPPlus.dll</HintPath> </Reference> <Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> <HintPath>packages\Microsoft.Bcl.AsyncInterfaces.8.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll</HintPath> </Reference> <Reference Include="Microsoft.Extensions.Configuration, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL"> <HintPath>packages\Microsoft.Extensions.Configuration.3.1.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.dll</HintPath> </Reference> <Reference Include="Microsoft.Extensions.Configuration.Abstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL"> <HintPath>packages\Microsoft.Extensions.Configuration.Abstractions.3.1.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.Abstractions.dll</HintPath> </Reference> <Reference Include="Microsoft.Extensions.Configuration.FileExtensions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL"> <HintPath>packages\Microsoft.Extensions.Configuration.FileExtensions.3.1.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.FileExtensions.dll</HintPath> </Reference> <Reference Include="Microsoft.Extensions.Configuration.Json, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL"> <HintPath>packages\Microsoft.Extensions.Configuration.Json.3.1.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.Json.dll</HintPath> </Reference> <Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions, Version=8.0.0.2, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL"> <HintPath>packages\Microsoft.Extensions.DependencyInjection.Abstractions.8.0.2\lib\net462\Microsoft.Extensions.DependencyInjection.Abstractions.dll</HintPath> </Reference> <Reference Include="Microsoft.Extensions.FileProviders.Abstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL"> <HintPath>packages\Microsoft.Extensions.FileProviders.Abstractions.3.1.0\lib\netstandard2.0\Microsoft.Extensions.FileProviders.Abstractions.dll</HintPath> </Reference> <Reference Include="Microsoft.Extensions.FileProviders.Physical, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL"> <HintPath>packages\Microsoft.Extensions.FileProviders.Physical.3.1.0\lib\netstandard2.0\Microsoft.Extensions.FileProviders.Physical.dll</HintPath> </Reference> <Reference Include="Microsoft.Extensions.FileSystemGlobbing, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL"> <HintPath>packages\Microsoft.Extensions.FileSystemGlobbing.3.1.0\lib\netstandard2.0\Microsoft.Extensions.FileSystemGlobbing.dll</HintPath> </Reference> <Reference Include="Microsoft.Extensions.Logging.Abstractions, Version=8.0.0.2, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL"> <HintPath>packages\Microsoft.Extensions.Logging.Abstractions.8.0.2\lib\net462\Microsoft.Extensions.Logging.Abstractions.dll</HintPath> </Reference> <Reference Include="Microsoft.Extensions.Primitives, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL"> <HintPath>packages\Microsoft.Extensions.Primitives.3.1.0\lib\netstandard2.0\Microsoft.Extensions.Primitives.dll</HintPath> </Reference> <Reference Include="Microsoft.IO.RecyclableMemoryStream, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> <HintPath>packages\Microsoft.IO.RecyclableMemoryStream.3.0.1\lib\netstandard2.0\Microsoft.IO.RecyclableMemoryStream.dll</HintPath> </Reference> <Reference Include="MySqlConnector, Version=2.0.0.0, Culture=neutral, PublicKeyToken=d33d3e53aa5f8c92, processorArchitecture=MSIL"> <HintPath>packages\MySqlConnector.2.4.0\lib\net48\MySqlConnector.dll</HintPath> @@ -69,14 +104,31 @@ <Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> <HintPath>packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath> </Reference> <Reference Include="PresentationCore" /> <Reference Include="SixLabors.ImageSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13, processorArchitecture=MSIL"> <HintPath>packages\SixLabors.ImageSharp.1.0.4\lib\net472\SixLabors.ImageSharp.dll</HintPath> </Reference> <Reference Include="SkiaSharp, Version=2.88.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL"> <HintPath>packages\SkiaSharp.2.88.6\lib\net462\SkiaSharp.dll</HintPath> </Reference> <Reference Include="System" /> <Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> <HintPath>packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath> </Reference> <Reference Include="System.ComponentModel.Annotations, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> <HintPath>packages\System.ComponentModel.Annotations.5.0.0\lib\net461\System.ComponentModel.Annotations.dll</HintPath> </Reference> <Reference Include="System.ComponentModel.Composition" /> <Reference Include="System.ComponentModel.DataAnnotations" /> <Reference Include="System.configuration" /> <Reference Include="System.Core" /> <Reference Include="System.Diagnostics.DiagnosticSource, Version=8.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> <HintPath>packages\System.Diagnostics.DiagnosticSource.8.0.1\lib\net462\System.Diagnostics.DiagnosticSource.dll</HintPath> </Reference> <Reference Include="System.IO, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> <HintPath>packages\System.IO.4.3.0\lib\net462\System.IO.dll</HintPath> <Private>True</Private> <Private>True</Private> </Reference> <Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> <HintPath>packages\System.Memory.4.5.5\lib\net461\System.Memory.dll</HintPath> @@ -85,13 +137,57 @@ <Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> <HintPath>packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath> </Reference> <Reference Include="System.Runtime, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> <HintPath>packages\System.Runtime.4.3.0\lib\net462\System.Runtime.dll</HintPath> <Private>True</Private> <Private>True</Private> </Reference> <Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> <HintPath>packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath> </Reference> <Reference Include="System.Security" /> <Reference Include="System.Security.Cryptography.Algorithms, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> <HintPath>packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net463\System.Security.Cryptography.Algorithms.dll</HintPath> <Private>True</Private> <Private>True</Private> </Reference> <Reference Include="System.Security.Cryptography.Encoding, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> <HintPath>packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll</HintPath> <Private>True</Private> <Private>True</Private> </Reference> <Reference Include="System.Security.Cryptography.Pkcs, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> <HintPath>packages\System.Security.Cryptography.Pkcs.4.7.0\lib\net461\System.Security.Cryptography.Pkcs.dll</HintPath> </Reference> <Reference Include="System.Security.Cryptography.Primitives, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> <HintPath>packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll</HintPath> <Private>True</Private> <Private>True</Private> </Reference> <Reference Include="System.Security.Cryptography.X509Certificates, Version=4.1.1.2, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> <HintPath>packages\System.Security.Cryptography.X509Certificates.4.3.2\lib\net461\System.Security.Cryptography.X509Certificates.dll</HintPath> <Private>True</Private> <Private>True</Private> </Reference> <Reference Include="System.Security.Cryptography.Xml, Version=8.0.0.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> <HintPath>packages\System.Security.Cryptography.Xml.8.0.2\lib\net462\System.Security.Cryptography.Xml.dll</HintPath> </Reference> <Reference Include="System.Text.Encoding.CodePages, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> <HintPath>packages\System.Text.Encoding.CodePages.4.7.0\lib\net461\System.Text.Encoding.CodePages.dll</HintPath> </Reference> <Reference Include="System.Text.Encodings.Web, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> <HintPath>packages\System.Text.Encodings.Web.4.7.0\lib\netstandard2.0\System.Text.Encodings.Web.dll</HintPath> </Reference> <Reference Include="System.Text.Json, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> <HintPath>packages\System.Text.Json.4.7.0\lib\net461\System.Text.Json.dll</HintPath> </Reference> <Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> <HintPath>packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath> </Reference> <Reference Include="System.Transactions" /> <Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> <HintPath>packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll</HintPath> </Reference> <Reference Include="System.Xml.Linq" /> <Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Data" /> @@ -102,6 +198,7 @@ </ItemGroup> <ItemGroup> <Compile Include="Const\SystemConst.cs" /> <Compile Include="Const\TemplateConst.cs" /> <Compile Include="DataBaseFactory\DataBaseServiceHandle.cs" /> <Compile Include="DataBaseFactory\DataBaseServiceFactory.cs" /> <Compile Include="DataBaseFactory\Default\SqlServerDataBaseServiceHandle.cs" /> @@ -152,6 +249,7 @@ <Compile Include="Generate\Web\Views\Pages\EntityNameClass\EntityNameClass_Config_Generate.cs" /> <Compile Include="Generate\Web\Views\Pages\EntityNameClass\EntityNameClass_Generate.cs" /> <Compile Include="Generate\Web\Views\Pages\EntityNameClass\EntityNameClass_module_Generate.cs" /> <Compile Include="Model\GenerateCodeConfigParam.cs" /> <Compile Include="Model\GenerateCodeParam.cs" /> <Compile Include="Model\Enum\DataBaseEnum.cs" /> <Compile Include="Model\Enum\DataTypeEnum.cs" /> @@ -163,6 +261,7 @@ <Compile Include="Generate\Model_Generate.cs" /> <Compile Include="Program.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Utility\ImportTemplteHelper.cs" /> <Compile Include="Utility\ListHelper.cs" /> <Compile Include="Utility\MySqlHelper.cs" /> <Compile Include="Utility\SQLHelper.cs" /> @@ -188,6 +287,9 @@ <DependentUpon>MainForm.cs</DependentUpon> </EmbeddedResource> <None Include="App.config" /> <None Include="File\ExcelTemplateFile\CommonTemplate.xlsx"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </None> <None Include="packages.config" /> <None Include="Properties\Settings.settings"> <Generator>SettingsSingleFileGenerator</Generator> @@ -374,10 +476,22 @@ <Content Include="Templete\Web\Views\Pages\EntityNameClass\EntityNameClass模æ¿.txt"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </Content> <Content Include="File\GenerateCodeConfigParamFiles\ç©æä¿¡æ¯è¡¨é ç½®ææ¬.txt"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </Content> <Content Include="常ç¨.txt" /> </ItemGroup> <ItemGroup /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="packages\SkiaSharp.NativeAssets.macOS.2.88.6\build\net462\SkiaSharp.NativeAssets.macOS.targets" Condition="Exists('packages\SkiaSharp.NativeAssets.macOS.2.88.6\build\net462\SkiaSharp.NativeAssets.macOS.targets')" /> <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> <PropertyGroup> <ErrorText>è¿å°è®¡ç®æºä¸ç¼ºå°æ¤é¡¹ç®å¼ç¨ç NuGet ç¨åºå ã使ç¨âNuGet ç¨åºå è¿åâå¯ä¸è½½è¿äºç¨åºå ãæå ³æ´å¤ä¿¡æ¯ï¼è¯·åè§ http://go.microsoft.com/fwlink/?LinkID=322105ã缺å°çæä»¶æ¯ {0}ã</ErrorText> </PropertyGroup> <Error Condition="!Exists('packages\SkiaSharp.NativeAssets.macOS.2.88.6\build\net462\SkiaSharp.NativeAssets.macOS.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\SkiaSharp.NativeAssets.macOS.2.88.6\build\net462\SkiaSharp.NativeAssets.macOS.targets'))" /> <Error Condition="!Exists('packages\SkiaSharp.NativeAssets.Win32.2.88.6\build\net462\SkiaSharp.NativeAssets.Win32.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\SkiaSharp.NativeAssets.Win32.2.88.6\build\net462\SkiaSharp.NativeAssets.Win32.targets'))" /> </Target> <Import Project="packages\SkiaSharp.NativeAssets.Win32.2.88.6\build\net462\SkiaSharp.NativeAssets.Win32.targets" Condition="Exists('packages\SkiaSharp.NativeAssets.Win32.2.88.6\build\net462\SkiaSharp.NativeAssets.Win32.targets')" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. <Target Name="BeforeBuild"> Weben_CMSרÓôúÂëÉú³ÉÆ÷/Code/MainForm.Designer.cs
@@ -64,6 +64,8 @@ this.lbl_DataSource = new System.Windows.Forms.Label(); this.cmb_DataSource = new System.Windows.Forms.ComboBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.tb_DeleteAlertAttr = new System.Windows.Forms.TextBox(); this.label25 = new System.Windows.Forms.Label(); this.tb_ValidateRepeatName = new System.Windows.Forms.TextBox(); this.label24 = new System.Windows.Forms.Label(); this.tb_LikeQueryAttrsName = new System.Windows.Forms.TextBox(); @@ -87,8 +89,9 @@ this.label12 = new System.Windows.Forms.Label(); this.tb_templeteFileDownName = new System.Windows.Forms.TextBox(); this.label14 = new System.Windows.Forms.Label(); this.label25 = new System.Windows.Forms.Label(); this.tb_DeleteAlertAttr = new System.Windows.Forms.TextBox(); this.tb_FilePath = new System.Windows.Forms.TextBox(); this.btn_SelectFile = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox3.SuspendLayout(); @@ -96,7 +99,7 @@ // // btnPath // this.btnPath.Location = new System.Drawing.Point(425, 570); this.btnPath.Location = new System.Drawing.Point(453, 723); this.btnPath.Name = "btnPath"; this.btnPath.Size = new System.Drawing.Size(97, 23); this.btnPath.TabIndex = 1; @@ -115,7 +118,7 @@ // // tbPath // this.tbPath.Location = new System.Drawing.Point(106, 566); this.tbPath.Location = new System.Drawing.Point(134, 719); this.tbPath.Name = "tbPath"; this.tbPath.ReadOnly = true; this.tbPath.Size = new System.Drawing.Size(253, 21); @@ -123,7 +126,7 @@ // // btnExit // this.btnExit.Location = new System.Drawing.Point(649, 600); this.btnExit.Location = new System.Drawing.Point(677, 753); this.btnExit.Name = "btnExit"; this.btnExit.Size = new System.Drawing.Size(171, 67); this.btnExit.TabIndex = 8; @@ -133,7 +136,7 @@ // // btn_CreateFile // this.btn_CreateFile.Location = new System.Drawing.Point(106, 600); this.btn_CreateFile.Location = new System.Drawing.Point(134, 753); this.btn_CreateFile.Name = "btn_CreateFile"; this.btn_CreateFile.Size = new System.Drawing.Size(157, 67); this.btn_CreateFile.TabIndex = 14; @@ -324,7 +327,7 @@ // // btn_InsertSql // this.btn_InsertSql.Location = new System.Drawing.Point(385, 600); this.btn_InsertSql.Location = new System.Drawing.Point(413, 753); this.btn_InsertSql.Name = "btn_InsertSql"; this.btn_InsertSql.Size = new System.Drawing.Size(157, 67); this.btn_InsertSql.TabIndex = 42; @@ -454,6 +457,22 @@ this.groupBox2.TabStop = false; this.groupBox2.Text = "èªå®ä¹é ç½®"; // // tb_DeleteAlertAttr // this.tb_DeleteAlertAttr.Location = new System.Drawing.Point(552, 246); this.tb_DeleteAlertAttr.Name = "tb_DeleteAlertAttr"; this.tb_DeleteAlertAttr.Size = new System.Drawing.Size(145, 21); this.tb_DeleteAlertAttr.TabIndex = 65; // // label25 // this.label25.AutoSize = true; this.label25.Location = new System.Drawing.Point(452, 255); this.label25.Name = "label25"; this.label25.Size = new System.Drawing.Size(83, 12); this.label25.TabIndex = 64; this.label25.Text = "å é¤æç¤ºåæ®µ:"; // // tb_ValidateRepeatName // this.tb_ValidateRepeatName.Location = new System.Drawing.Point(402, 108); @@ -555,7 +574,7 @@ // // tb_EnumList // this.tb_EnumList.Location = new System.Drawing.Point(418, 361); this.tb_EnumList.Location = new System.Drawing.Point(431, 361); this.tb_EnumList.Multiline = true; this.tb_EnumList.Name = "tb_EnumList"; this.tb_EnumList.Size = new System.Drawing.Size(369, 104); @@ -654,27 +673,43 @@ this.label14.TabIndex = 47; this.label14.Text = "æä»¶ä¸è½½åå:"; // // label25 // tb_FilePath // this.label25.AutoSize = true; this.label25.Location = new System.Drawing.Point(452, 255); this.label25.Name = "label25"; this.label25.Size = new System.Drawing.Size(83, 12); this.label25.TabIndex = 64; this.label25.Text = "å é¤æç¤ºåæ®µ:"; this.tb_FilePath.Enabled = false; this.tb_FilePath.Location = new System.Drawing.Point(51, 579); this.tb_FilePath.Name = "tb_FilePath"; this.tb_FilePath.Size = new System.Drawing.Size(568, 21); this.tb_FilePath.TabIndex = 47; this.tb_FilePath.TextChanged += new System.EventHandler(this.tb_FilePath_TextChanged); // // tb_DeleteAlertAttr // btn_SelectFile // this.tb_DeleteAlertAttr.Location = new System.Drawing.Point(552, 246); this.tb_DeleteAlertAttr.Name = "tb_DeleteAlertAttr"; this.tb_DeleteAlertAttr.Size = new System.Drawing.Size(145, 21); this.tb_DeleteAlertAttr.TabIndex = 65; this.btn_SelectFile.Location = new System.Drawing.Point(632, 571); this.btn_SelectFile.Name = "btn_SelectFile"; this.btn_SelectFile.Size = new System.Drawing.Size(252, 34); this.btn_SelectFile.TabIndex = 48; this.btn_SelectFile.Text = "è¯·å¨æ¤å¯¼å ¥çæä»£ç éè¦çé ç½®ææ¬ï¼ï¼"; this.btn_SelectFile.UseVisualStyleBackColor = true; this.btn_SelectFile.Click += new System.EventHandler(this.btn_SelectFile_Click); // // button1 // this.button1.Location = new System.Drawing.Point(890, 571); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(108, 34); this.button1.TabIndex = 49; this.button1.Text = "æ¸ ç©ºå¯¼å ¥è·¯å¾ï¼ï¼"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click_1); // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1250, 672); this.ClientSize = new System.Drawing.Size(1250, 831); this.Controls.Add(this.button1); this.Controls.Add(this.btn_SelectFile); this.Controls.Add(this.tb_FilePath); this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox1); this.Controls.Add(this.btn_InsertSql); @@ -760,6 +795,9 @@ private System.Windows.Forms.Label label24; private System.Windows.Forms.TextBox tb_DeleteAlertAttr; private System.Windows.Forms.Label label25; private System.Windows.Forms.TextBox tb_FilePath; private System.Windows.Forms.Button btn_SelectFile; private System.Windows.Forms.Button button1; } } Weben_CMSרÓôúÂëÉú³ÉÆ÷/Code/MainForm.cs
@@ -8,6 +8,8 @@ using GenerateCode_WeiBen_WMS.DataBaseFactory; using GenerateCode_WeiBen_WMS.Const; using GenerateCode_WeiBen_WMS.Model; using GenerateCode_WeiBen_WMS.Utility; using System.Xml; namespace GenerateCode_GEBrilliantFactory { @@ -270,7 +272,7 @@ //çæModel //CreateModelFile(columnList, tableName, filePrefixName, wcf_NameSpacePath, createPerson, chinaComment, entityName, modulelogo); //CreateModelParamFile(columnList, tableName, filePrefixName, wcf_NameSpacePath, createPerson, chinaComment, entityName, modulelogo); genCodeRootPath = tbPath.Text + @"\" + tb_WCF_NameSpacePath.Text.Trim(); genCodeRootPath = tbPath.Text + @"\" + tb_WCF_NameSpacePath.Text.Trim(); var webFolerPath = (tb_WCF_NameSpacePath.Text.Trim() + "_Web").ToLower(); #region å®ä½ç±» var entityFilePath = genCodeRootPath + @"\server\src\CMS.Plugin." + tb_WCF_NameSpacePath.Text.Trim() + @".Application.Contracts\Dtos\" + tb_EntityName.Text.Trim(); @@ -461,6 +463,9 @@ str_generate = AutoMapperProfile_Generate.CreateText(param); tf = TextHelper.Export2File_V2(autoMapFilePath, param.EntityName + $"AutoMapperProfile.cs", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo); //37ãçæ å¯¼åºæ¨¡æ¿Excelæä»¶ List<ColumnModel> newColumnNameList = ListHelper.RemoveForPageTableListQueryAttributes(param.ColumnNameList); ImportTemplteHelper.CreateImportTemplte(param, newColumnNameList, genCodeRootPath); ////çæ OutputModel æä»¶ @@ -681,5 +686,128 @@ dataBaseEnum = (DataBaseEnum)Enum.Parse(typeof(DataBaseEnum), name); } private void btn_SelectFile_Click(object sender, EventArgs e) { OpenFileDialog fileDialog = new OpenFileDialog(); fileDialog.Multiselect = true; fileDialog.Title = "è¯·éæ©æä»¶"; fileDialog.Filter = "æææä»¶(*txt*)|*.txt*"; //设置è¦éæ©çæä»¶çç±»å if (fileDialog.ShowDialog() == DialogResult.OK) { string file = fileDialog.FileName;//è¿åæä»¶ç宿´è·¯å¾ this.tb_FilePath.Text = file; } } private void tb_FilePath_TextChanged(object sender, EventArgs e) { try { string filePath = this.tb_FilePath.Text; string[] lines = File.ReadAllLines(filePath); // å建å®ä½ç±»å¯¹è±¡ GenerateCodeConfigParam entity = new GenerateCodeConfigParam(); // è§£ææ¯ä¸è¡å 容并èµå¼ç»å®ä½ç±»å±æ§ foreach (string line in lines) { if (line.Contains(":")) { string[] parts = line.Split(':'); string propertyName = parts[0].Trim('[', ']'); string propertyValue = parts[1].Trim(); // æ ¹æ®å±æ§åèµå¼ switch (propertyName) { case "表å": entity.表å = propertyValue; break; case "å®ä½ç±»å": entity.å®ä½ç±»å = propertyValue; break; case "å®ä½ç±»å¯¹è±¡å": entity.å®ä½ç±»å¯¹è±¡å = propertyValue; break; case "页é¢èåå": entity.页é¢èåå = propertyValue; break; case "页é¢èå对象缩å": entity.页é¢èå对象缩å = propertyValue; break; case "表çä¸ææ³¨è§£": entity.表çä¸ææ³¨è§£ = propertyValue; break; case "é夿§æ ¡éªå段": entity.é夿§æ ¡éªå段 = propertyValue; break; case "å é¤æç¤ºåæ®µ": entity.å é¤æç¤ºåæ®µ = propertyValue; break; case "æ¨¡ç³æ¥è¯¢å段": entity.æ¨¡ç³æ¥è¯¢å段 = propertyValue; break; case "æ¨¡ç³æ¥è¯¢å段å": entity.æ¨¡ç³æ¥è¯¢å段å = propertyValue; break; case "项ç®å½å空é´": entity.项ç®å½åç©ºé´ = propertyValue; break; case "æä¸¾ç±»ååæ®µéå": entity.æä¸¾ç±»ååæ®µéå = propertyValue; break; } } } //ç»çé¢èµå¼ this.tb_TableName.Text = "";//表å this.tb_WCF_NameSpacePath.Text = "";//表å this.tb_ChinaComment.Text = "";//表å this.tb_MenuName.Text = "";//表å this.tb_PageMenuInstanceName.Text = "";//表å this.tb_EntityName.Text = "";//表å this.tb_LikeQueryAttrs.Text = "";//表å this.tb_LikeQueryAttrsName.Text = "";//表å this.tb_EntityProName.Text = "";//表å this.tb_EnumList.Text = "";//表å this.tb_ValidateRepeatName.Text = "";//表å this.tb_DeleteAlertAttr.Text = "";//表å this.tb_TableName.Text = entity.表å;//表å this.tb_WCF_NameSpacePath.Text = entity.项ç®å½å空é´;//WCF项ç®å½åç©ºé´ this.tb_ChinaComment.Text = entity.表çä¸ææ³¨è§£;//ä¸ææ³¨é this.tb_MenuName.Text = entity.页é¢èåå; this.tb_PageMenuInstanceName.Text = entity.页é¢èå对象缩å; this.tb_EntityName.Text = entity.å®ä½ç±»å;//å®ä½ç±»å this.tb_LikeQueryAttrs.Text = entity.æ¨¡ç³æ¥è¯¢å段; this.tb_LikeQueryAttrsName.Text = entity.æ¨¡ç³æ¥è¯¢å段å; this.tb_EntityProName.Text = entity.å®ä½ç±»å¯¹è±¡å;//å®ä½ç±»å¯¹è±¡å this.tb_EnumList.Text = entity.æä¸¾ç±»ååæ®µéå; this.tb_ValidateRepeatName.Text = entity.é夿§æ ¡éªå段; this.tb_DeleteAlertAttr.Text = entity.å é¤æç¤ºåæ®µ; } catch (FileNotFoundException) { Console.WriteLine("é误: æä»¶æªæ¾å°!"); } catch (Exception ex) { Console.WriteLine($"é误: åçäºä¸ä¸ªæªç¥é误: {ex.Message}"); } } private void button1_Click_1(object sender, EventArgs e) { this.tb_FilePath.Text = ""; } } } Weben_CMSרÓôúÂëÉú³ÉÆ÷/Code/Model/GenerateCodeConfigParam.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,25 @@ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GenerateCode_WeiBen_WMS.Model { internal class GenerateCodeConfigParam { public string 表å { get; set; } public string å®ä½ç±»å { get; set; } public string å®ä½ç±»å¯¹è±¡å { get; set; } public string 页é¢èåå { get; set; } public string 页é¢èå对象缩å { get; set; } public string 表çä¸ææ³¨è§£ { get; set; } public string é夿§æ ¡éªå段 { get; set; } public string å é¤æç¤ºåæ®µ { get; set; } public string æ¨¡ç³æ¥è¯¢å段 { get; set; } public string æ¨¡ç³æ¥è¯¢å段å { get; set; } public string 项ç®å½åç©ºé´ { get; set; } public string æä¸¾ç±»ååæ®µéå { get; set; } } } Weben_CMSרÓôúÂëÉú³ÉÆ÷/Code/Utility/ImportTemplteHelper.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,204 @@ using GenerateCode_GEBrilliantFactory; using GenerateCode_WeiBen_WMS.Const; using GenerateCode_WeiBen_WMS.Model; using OfficeOpenXml; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GenerateCode_WeiBen_WMS.Utility { public class ImportTemplteHelper { /// <summary> /// æ ¹æ®è¡¨ååå»ºå¯¼å ¥æ¨¡ç /// </summary> /// <param name="input"></param> public static void CreateImportTemplte(GenerateCodeParam input, List<ColumnModel> tableFieldList, string genCodeRootPath) { string errMsg = string.Empty; //ä¸å¡å string _busName = input.EntityName; var copayPath = TemplateConst.EXCEL_TEMPLATEFILE_å¯¼å ¥æ¨¡çè·¯å¾ + "\\CommonTemplate.xlsx"; var fileFolderPath = genCodeRootPath + "\\server\\src\\CMS.Plugin." + input.NameSpacePath + "\\Resources\\Templates"; if (!Directory.Exists(fileFolderPath)) { Directory.CreateDirectory(fileFolderPath); } string newPath = fileFolderPath + $"\\{_busName}{TemplateConst.EXCEL_TEMPLATEFILE_å¯¼å ¥æ¨¡çåç§°åç¼}.xlsx"; CreatExcel(tableFieldList, copayPath, newPath); } /// <summary> /// æ ¹æ®å®ä½ç±»å çæå¯¼å ¥excel模ç /// </summary> /// <param name="tableFieldList">代ç çæéæ©é 置表çåæ®µ</param> /// <param name="copayPath"></param> /// <param name="newPath"></param> private static void CreatExcel(List<ColumnModel> tableFieldList, string copayPath, string newPath) { string errMsg = string.Empty; try { #region éªè¯åå§å¯¼å ¥æ¨¡æ¿æä»¶æ¯å¦åå¨ if (!File.Exists(copayPath)) { errMsg = $"ç¨æ¥å¤å¶çææ¨¡ççEXCELæä»¶ä¸åå¨"; throw new Exception($"çæå¯¼å ¥æ¨¡çæä»¶å¼å¸¸ï¼{errMsg}"); } #endregion //è·åæ¨¡æ¿æä»¶ FileInfo copyFile = new FileInfo(copayPath); // æ£æ¥æ°çæçå¯¼å ¥æ¨¡çæä»¶æ¯å¦åå¨ï¼åå¨å°±å é¤ï¼ä»¥é¿å å¯è½çå¼å¸¸ã if (File.Exists(newPath)) { File.Delete(newPath); // å 餿件 } //å¤å¶åå§å¯¼å ¥æ¨¡çï¼å建æ°çå¯¼å ¥æ¨¡çæä»¶ copyFile.CopyTo(newPath, true); FileInfo existingFile = new FileInfo(newPath); using (ExcelPackage package = new ExcelPackage(existingFile)) { //è·å模æ¿å 容 ExcelWorksheet worksheet = package.Workbook.Worksheets[0];//è·å第ä¸ä¸ªworksheet //è¡åå齿¯ä»1å¼å§ï¼è䏿¯ä»0å¼å§ï¼ï¼ï¼ int _remarkRowIndex = 1;//worksheet è¡ç´¢å¼ï¼è¯´æï¼ 注æï¼é»è®¤æ¯ç¬¬ä¸è¡æ¯å¯¼å ¥æ¨¡çç说æ int _mergeRowCount = _remarkRowIndex;//åå¹¶è¡ ï¼å¿ å¡«åæ®µæ°éï¼ é»è®¤æ¯ç¬¬ä¸è¡åå¹¶ int _titleRowIndex = 1;//worksheet è¡ç´¢å¼ï¼æ é¢ï¼æ³¨æï¼é»è®¤æ¯ç¬¬ä¸è¡æ¯å¯¼å ¥æ¨¡ççæ é¢ int _cellIndex = 1;//worksheet åç´¢å¼ æ³¨æï¼é»è®¤æ¯ç¬¬ä¸åå¼å§è®¾ç½®å¯¼å ¥æ¨¡ççæ é¢ //模ç第ä¸åä½ä¸ºæ¨¡ç使ç¨ï¼æææ°å¢çåæ ·å¼æ¥éä¸è´ var templateCell = worksheet.Cells[_titleRowIndex, _cellIndex]; string _remark = string.Empty; //第ä¸è¡æ·»å 说æï¼æ³¨ææ¢è¡ã //è·åè¦å¤çç代ç çæé ç½®çæ¯å¢æ¹ç模çåæ®µ var showCodeGenConfigs = tableFieldList.Where(w => 1 == 1).ToList(); showCodeGenConfigs = showCodeGenConfigs.Where(x => 1 == 1).ToList(); /* int _mergeCellsCount = showCodeGenConfigs.Count();//åå¹¶åï¼æ¨¡çèµå¼çæ é¢åæ°ï¼ //è·åå¿ å¡«åæ®µ //å建模ç说æ StringBuilder _remarkContentBuilder = GetParseTemplateHint(showCodeGenConfigs); string _remarkContent = _remarkContentBuilder.ToString(); #region åå¹¶åå æ ¼ //åå¹¶åå æ ¼ï¼åå¹¶è¡ååãé»è®¤æ¯å并第ä¸è¡çæææ é¢å var cellRange = worksheet.Cells[1, 1, _mergeRowCount, _mergeCellsCount]; cellRange.Value = _remarkContent;//åå¹¶åå æ ¼åçå 容èµå¼ var mergeCell = cellRange.Merge = true;//åå¹¶ int rowHeight = GetRowHeightBasedOnContent(showCodeGenConfigs.Count()); // æ ¹æ®å 容计ç®è¡é«ï¼è¿ééè¦ä½ èªå·±å®ç°é»è¾ï¼ worksheet.Row(_remarkRowIndex).Height = rowHeight; // 设置è¡é«ï¼æ³¨æEPPlusçåä½ä¸åï¼éè¦è½¬æ¢ #endregion //*/ //循ç¯åå»ºæ¨¡çæ é¢å foreach (var item in showCodeGenConfigs) { var currentCell = worksheet.Cells[_titleRowIndex, _cellIndex]; //ç»æ°æ¨¡çåæ é¢èµå¼ currentCell.Value = item.Description; //å¤å¶æ·è´çexcel模çåï¼ç»æ°æ¨¡çåæ ·å¼èµå¼ currentCell.StyleID = templateCell.StyleID; // worksheet.Column(_cellIndex).AutoFit();//宽度èªéåº //ç»ç¬¬äºè¡èµå¼ var currentCell2 = worksheet.Cells[2, _cellIndex]; //ç»æ°æ¨¡çåæ é¢èµå¼ currentCell2.Value = "{{é ç½®." + item.ColumnName + "}}"; //å¤å¶æ·è´çexcel模çåï¼ç»æ°æ¨¡çåæ ·å¼èµå¼ currentCell2.StyleID = templateCell.StyleID; // worksheet.Column(_cellIndex).AutoFit();//宽度èªéåº _cellIndex++; } package.Save();//ä¿å } } catch (Exception ex) { throw new Exception($"çæå¯¼å ¥æ¨¡çæä»¶å¼å¸¸ï¼è¯·æ¥çç³»ç»æ¥å¿:" + ex.Message); } finally { } } // è¿éæ¯ä¸ä¸ªåè®¾çæ¹æ³ï¼ç¨äºæ ¹æ®åå æ ¼å 容计ç®è¡é«ãä½ éè¦æ ¹æ®å®é æ 嵿¥å®ç°è¿ä¸ªé»è¾ã private static int GetRowHeightBasedOnContent(int lineCount) { // è¿éåªæ¯ä¸ä¸ªç¤ºä¾é»è¾ï¼ä½ å¯è½éè¦æ´å¤æçç®æ³æ¥å³å®åéçè¡é«ã return (lineCount + 3) * 20; // } private static StringBuilder GetParseTemplateHint(List<ColumnModel> requiredTableFieldList) { StringBuilder _remarkContentBuilder = new StringBuilder(); _remarkContentBuilder.AppendLine(""); _remarkContentBuilder.AppendLine("1.æ¯æExcel2007å以ä¸çæ¬æä»¶ã"); _remarkContentBuilder.AppendLine("2.å¯¼å ¥æ°æ®æ¶ä¸è½è¶ è¿5000è¡ã"); _remarkContentBuilder.AppendLine(""); _remarkContentBuilder.AppendLine(""); Dictionary<string, string> typeNameDict = new Dictionary<string, string>() { { "string", "è¾å ¥ææ¬ã"}, { "int", "è¾å ¥æ°åã"}, { "long", "è¾å ¥æ°åã"}, { "decimal", "è¾å ¥å°æ°ã"}, { "bool", "æ¯,å¦ã"}, }; Dictionary<string, string> effectTypeDict = new Dictionary<string, string>() { { "datepicker", "æ¥æã 示ä¾: 2023/3/1ã"}, { "datetimepicker", "æ¥ææ¶é´ã示ä¾: 2023/3/1 12:00:00ã"}, }; requiredTableFieldList.ForEach(x => { string text = ""; text += x.Description + "(" + (x.IsNullable ? "å¿ å¡«" : "éå¿ å¡«") + "): "; var _dataType = x.DataType.Replace("?", "").ToLower(); //if (effectTypeDict.ContainsKey(x.EffectType.ToLower())) //{ // text += effectTypeDict[x.EffectType.ToLower()]; //} //else if (x.EffectType.ToLower() == "enumselector") //{//注æï¼è¿ä¸ªå¤æè¦æ¾å¨å¤æ_dataTypeåé¢ï¼ä¸»è¦æ¯èèæä¸¾åintç±»åçæ··æ· // var queryValue = x.NetType.Split('.').Last(); // var enumStr = _sysEnumService.GetEnumDataListStr(new EnumDataInput() { EnumName = queryValue }); // text += enumStr + "ã"; //} if (typeNameDict.ContainsKey(_dataType)) { text += typeNameDict[_dataType]; } else { text += ("注æï¼ç±»åæªè½è¯å«åºæ¥ï¼éè¦èªå·±ç»´æ¤ï¼ï¼ï¼ã"); } _remarkContentBuilder.AppendLine(text); }); return _remarkContentBuilder; } } } Weben_CMSרÓôúÂëÉú³ÉÆ÷/Code/packages.config
@@ -1,14 +1,42 @@ <?xml version="1.0" encoding="utf-8"?> <packages> <package id="EPPlus.Interfaces" version="8.0.0" targetFramework="net48" /> <package id="Magicodes.IE.EPPlus" version="2.7.5.2" targetFramework="net48" /> <package id="Microsoft.Bcl.AsyncInterfaces" version="8.0.0" targetFramework="net48" /> <package id="Microsoft.Extensions.Configuration" version="3.1.0" targetFramework="net48" /> <package id="Microsoft.Extensions.Configuration.Abstractions" version="3.1.0" targetFramework="net48" /> <package id="Microsoft.Extensions.Configuration.FileExtensions" version="3.1.0" targetFramework="net48" /> <package id="Microsoft.Extensions.Configuration.Json" version="3.1.0" targetFramework="net48" /> <package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="8.0.2" targetFramework="net48" /> <package id="Microsoft.Extensions.FileProviders.Abstractions" version="3.1.0" targetFramework="net48" /> <package id="Microsoft.Extensions.FileProviders.Physical" version="3.1.0" targetFramework="net48" /> <package id="Microsoft.Extensions.FileSystemGlobbing" version="3.1.0" targetFramework="net48" /> <package id="Microsoft.Extensions.Logging.Abstractions" version="8.0.2" targetFramework="net48" /> <package id="Microsoft.Extensions.Primitives" version="3.1.0" targetFramework="net48" /> <package id="Microsoft.IO.RecyclableMemoryStream" version="3.0.1" targetFramework="net48" /> <package id="MySqlConnector" version="2.4.0" targetFramework="net48" /> <package id="Newtonsoft.Json" version="11.0.2" targetFramework="net451" /> <package id="SixLabors.ImageSharp" version="1.0.4" targetFramework="net48" /> <package id="SkiaSharp" version="2.88.6" targetFramework="net48" /> <package id="SkiaSharp.NativeAssets.macOS" version="2.88.6" targetFramework="net48" /> <package id="SkiaSharp.NativeAssets.Win32" version="2.88.6" targetFramework="net48" /> <package id="System.Buffers" version="4.5.1" targetFramework="net48" /> <package id="System.ComponentModel.Annotations" version="5.0.0" targetFramework="net48" /> <package id="System.Diagnostics.DiagnosticSource" version="8.0.1" targetFramework="net48" /> <package id="System.IO" version="4.3.0" targetFramework="net48" /> <package id="System.Memory" version="4.5.5" targetFramework="net48" /> <package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net48" /> <package id="System.Runtime" version="4.3.0" targetFramework="net48" /> <package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net48" /> <package id="System.Security.Cryptography.Algorithms" version="4.3.0" targetFramework="net48" /> <package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="net48" /> <package id="System.Security.Cryptography.Pkcs" version="4.7.0" targetFramework="net48" /> <package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="net48" /> <package id="System.Security.Cryptography.X509Certificates" version="4.3.2" targetFramework="net48" /> <package id="System.Security.Cryptography.Xml" version="8.0.2" targetFramework="net48" /> <package id="System.Text.Encoding.CodePages" version="4.7.0" targetFramework="net48" /> <package id="System.Text.Encodings.Web" version="4.7.0" targetFramework="net48" /> <package id="System.Text.Json" version="4.7.0" targetFramework="net48" /> <package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net48" /> <package id="System.ValueTuple" version="4.5.0" targetFramework="net48" /> </packages>