From c33f54888d8fb4e1961bca69fe3d01e87fc54be6 Mon Sep 17 00:00:00 2001 From: tx <123456> Date: 星期一, 14 四月 2025 17:51:34 +0800 Subject: [PATCH] 添加OpenAPI --- Model/DPumpHydr.Model.Open/DPumpHydr.Model.Open.csproj | 56 ++++ OpenUI/DPumpHydr.OpenFwUI.Volute/Form1.cs | 25 + OpenUI/DPumpHydr.OpenFwUI.Volute/App.config | 6 OpenUI/DPumpHydr.OpenFwUI.Volute/Form1.Designer.cs | 48 +++ Model/DPumpHydr.Model.Open/ApiResult.cs | 85 ++++++ OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/Settings.settings | 7 Model/DPumpHydr.Model.Open/Properties/AssemblyInfo.cs | 36 ++ OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/Resources.resx | 117 +++++++++ Model/DPumpHydr.Model.Open/ApiResultCode.cs | 36 ++ DPumpHydr.Desktop.sln | 10 OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/AssemblyInfo.cs | 36 ++ OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/Settings.Designer.cs | 26 ++ OpenUI/DPumpHydr.OpenFwUI.Volute/DPumpHydr.OpenFwUI.Volute.csproj | 99 +++++++ OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/Resources.Designer.cs | 63 ++++ OpenUI/DPumpHydr.OpenFwUI.Volute/Form1.resx | 120 +++++++++ 15 files changed, 760 insertions(+), 10 deletions(-) diff --git a/DPumpHydr.Desktop.sln b/DPumpHydr.Desktop.sln index f8f306c..a9108e4 100644 --- a/DPumpHydr.Desktop.sln +++ b/DPumpHydr.Desktop.sln @@ -27,8 +27,6 @@ EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DPumpHydr.WinFrmUI.RLT", "WinFrmUI\DPumpHydr.WinFrmUI.RLT\DPumpHydr.WinFrmUI.RLT.csproj", "{0DB92627-4C3F-4737-AFB3-4D1509C1E547}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DPumpHydr.DesktopDebug", "Client\DesktopDebug\DPumpHydr.DesktopDebug.csproj", "{91D10526-3F0D-C506-2E6B-3ACE88FB44A9}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -107,14 +105,6 @@ {0DB92627-4C3F-4737-AFB3-4D1509C1E547}.Release|Any CPU.Build.0 = Release|Any CPU {0DB92627-4C3F-4737-AFB3-4D1509C1E547}.Release|x64.ActiveCfg = Release|Any CPU {0DB92627-4C3F-4737-AFB3-4D1509C1E547}.Release|x64.Build.0 = Release|Any CPU - {91D10526-3F0D-C506-2E6B-3ACE88FB44A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {91D10526-3F0D-C506-2E6B-3ACE88FB44A9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {91D10526-3F0D-C506-2E6B-3ACE88FB44A9}.Debug|x64.ActiveCfg = Debug|Any CPU - {91D10526-3F0D-C506-2E6B-3ACE88FB44A9}.Debug|x64.Build.0 = Debug|Any CPU - {91D10526-3F0D-C506-2E6B-3ACE88FB44A9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {91D10526-3F0D-C506-2E6B-3ACE88FB44A9}.Release|Any CPU.Build.0 = Release|Any CPU - {91D10526-3F0D-C506-2E6B-3ACE88FB44A9}.Release|x64.ActiveCfg = Release|Any CPU - {91D10526-3F0D-C506-2E6B-3ACE88FB44A9}.Release|x64.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Model/DPumpHydr.Model.Open/ApiResult.cs b/Model/DPumpHydr.Model.Open/ApiResult.cs new file mode 100644 index 0000000..e7dbea6 --- /dev/null +++ b/Model/DPumpHydr.Model.Open/ApiResult.cs @@ -0,0 +1,85 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DPumpHydr.OpenModel +{ + /// <summary> + /// 鎵ц杩斿洖鐨勯�氱敤绫伙紝璇ョ被涓嶅甫涓氬姟鏁版嵁锛屽彧浼氬憡璇夌敤鎴锋娆¤皟鐢ㄦ槸鍚︽垚鍔熶笌鍚︼紝浠ュ強涓�涓〃绀烘彁绀轰俊鎭殑瀛楃涓� + /// </summary> + public class ApiResult + { + /// <summary> + /// 鐘舵�佷俊鎭� + /// </summary> + public ApiResultCode Code { get; set; } + + /// <summary> + /// 鎻愮ず淇℃伅 + /// </summary> + public string Message { get; set; } + + + + + + /// <summary> + /// 鏋勯�犲嚱鏁� + /// </summary> + public ApiResult() + { + this.Code = ApiResultCode.Success; + } + + /// <summary> + /// 鏋勯�犲嚱鏁� + /// </summary> + /// <param name="type">缁撴灉鐘舵�佹爣璇�</param> + /// <param name="message">鎻愮ず淇℃伅</param> + public ApiResult(ApiResultCode type, string message) + { + this.Code = type; + this.Message = message; + } + + /// <summary> + /// 鏋勯�犲嚱鏁帮紝榛樿杩斿洖鐘舵�丒rror + /// </summary> + /// <param name="message">鎻愮ず淇℃伅</param> + public ApiResult(string message) + { + this.Code = ApiResultCode.Error; + this.Message = message; + } + + /// <summary> + /// 鏋勯�犲嚱鏁� + /// </summary> + /// <param name="type">鐘舵�佹爣璇�</param> + public ApiResult(ApiResultCode type) : this(type, "") { } + + /// <summary> + /// 杩斿洖涓�涓〃绀洪�氱敤鐨勫嚭閿欏璞� + /// </summary> + /// <param name="message">鎻愮ず淇℃伅</param> + /// <returns>閫氱敤鐨勫嚭閿欏璞�</returns> + public static ApiResult Error(string message) + { + return new ApiResult(ApiResultCode.Error, message); + } + + /// <summary> + /// 杩斿洖涓�涓〃绀洪�氱敤鐨勬垚鍔熷璞� + /// </summary> + /// <param name="message">鎻愮ず淇℃伅</param> + /// <returns>閫氱敤鐨勬垚鍔熷璞�</returns> + public static ApiResult Success(string message = "") + { + return new ApiResult(ApiResultCode.Success, message); + } + } + + +} diff --git a/Model/DPumpHydr.Model.Open/ApiResultCode.cs b/Model/DPumpHydr.Model.Open/ApiResultCode.cs new file mode 100644 index 0000000..67a5670 --- /dev/null +++ b/Model/DPumpHydr.Model.Open/ApiResultCode.cs @@ -0,0 +1,36 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DPumpHydr.OpenModel +{ + + /// <summary> + /// 鎵ц缁撴灉鐨勭姸鎬佹灇涓� + /// </summary> + public enum ApiResultCode + { + /// <summary> + /// 鎴愬姛 + /// </summary> + Success = 0, + + /// <summary> + /// 闇�瑕佺敤鎴风‘璁� + /// </summary> + Cancel = -1, + + /// <summary> + /// 澶辫触 + /// </summary> + Error = -4, + + /// <summary> + /// Token澶辨晥 + /// </summary> + TokenExpire = -7, + } + +} diff --git a/Model/DPumpHydr.Model.Open/DPumpHydr.Model.Open.csproj b/Model/DPumpHydr.Model.Open/DPumpHydr.Model.Open.csproj new file mode 100644 index 0000000..830dc3c --- /dev/null +++ b/Model/DPumpHydr.Model.Open/DPumpHydr.Model.Open.csproj @@ -0,0 +1,56 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProjectGuid>{6ECF5610-5F35-428D-A103-D52DB9F2CFB4}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>DPumpHydr.OpenModel</RootNamespace> + <AssemblyName>DPumpHydr.OpenModel</AssemblyName> + <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Core" /> + <Reference Include="System.Xml.Linq" /> + <Reference Include="System.Data.DataSetExtensions" /> + <Reference Include="Microsoft.CSharp" /> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="ApiRequest.cs" /> + <Compile Include="ApiResult.cs" /> + <Compile Include="ApiResultCode.cs" /> + <Compile Include="DesignParameter.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.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"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file diff --git a/Model/DPumpHydr.Model.Open/Properties/AssemblyInfo.cs b/Model/DPumpHydr.Model.Open/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..7f74fad --- /dev/null +++ b/Model/DPumpHydr.Model.Open/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +锘縰sing System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 鏈夊叧绋嬪簭闆嗙殑甯歌淇℃伅閫氳繃浠ヤ笅 +// 鐗规�ч泦鎺у埗銆傛洿鏀硅繖浜涚壒鎬у�煎彲淇敼 +// 涓庣▼搴忛泦鍏宠仈鐨勪俊鎭�� +[assembly: AssemblyTitle("DPumpHydr.Model.Open")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("DPumpHydr.Model.Open")] +[assembly: AssemblyCopyright("Copyright 漏 2025")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 灏� ComVisible 璁剧疆涓� false 浣挎绋嬪簭闆嗕腑鐨勭被鍨� +// 瀵� COM 缁勪欢涓嶅彲瑙併�� 濡傛灉闇�瑕佷粠 COM 璁块棶姝ょ▼搴忛泦涓殑绫诲瀷锛� +// 鍒欏皢璇ョ被鍨嬩笂鐨� ComVisible 鐗规�ц缃负 true銆� +[assembly: ComVisible(false)] + +// 濡傛灉姝ら」鐩悜 COM 鍏紑锛屽垯涓嬪垪 GUID 鐢ㄤ簬绫诲瀷搴撶殑 ID +[assembly: Guid("2b63e789-4803-40b6-8ebd-d9bf63e8baba")] + +// 绋嬪簭闆嗙殑鐗堟湰淇℃伅鐢变笅闈㈠洓涓�肩粍鎴�: +// +// 涓荤増鏈� +// 娆$増鏈� +// 鐢熸垚鍙� +// 淇鍙� +// +// 鍙互鎸囧畾鎵�鏈夎繖浜涘�硷紝涔熷彲浠ヤ娇鐢ㄢ�滅敓鎴愬彿鈥濆拰鈥滀慨璁㈠彿鈥濈殑榛樿鍊硷紝 +// 鏂规硶鏄寜濡備笅鎵�绀轰娇鐢ㄢ��*鈥�: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/OpenUI/DPumpHydr.OpenFwUI.Volute/App.config b/OpenUI/DPumpHydr.OpenFwUI.Volute/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/OpenUI/DPumpHydr.OpenFwUI.Volute/App.config @@ -0,0 +1,6 @@ +锘�<?xml version="1.0" encoding="utf-8" ?> +<configuration> + <startup> + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> + </startup> +</configuration> \ No newline at end of file diff --git a/OpenUI/DPumpHydr.OpenFwUI.Volute/DPumpHydr.OpenFwUI.Volute.csproj b/OpenUI/DPumpHydr.OpenFwUI.Volute/DPumpHydr.OpenFwUI.Volute.csproj new file mode 100644 index 0000000..517395e --- /dev/null +++ b/OpenUI/DPumpHydr.OpenFwUI.Volute/DPumpHydr.OpenFwUI.Volute.csproj @@ -0,0 +1,99 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProjectGuid>{C1F87346-9F63-4AC5-B205-C5B0084B0802}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>DPumpHydr.OpenFwUI.Volute</RootNamespace> + <AssemblyName>DPumpHydr.OpenFwUI.Volute</AssemblyName> + <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <PlatformTarget>AnyCPU</PlatformTarget> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <PlatformTarget>AnyCPU</PlatformTarget> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup> + <StartupObject /> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Core" /> + <Reference Include="System.Xml.Linq" /> + <Reference Include="System.Data.DataSetExtensions" /> + <Reference Include="Microsoft.CSharp" /> + <Reference Include="System.Data" /> + <Reference Include="System.Deployment" /> + <Reference Include="System.Drawing" /> + <Reference Include="System.Windows.Forms" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="MainWindow.cs" /> + <Compile Include="StepForm1.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="StepForm1.Designer.cs"> + <DependentUpon>StepForm1.cs</DependentUpon> + </Compile> + <Compile Include="Properties\AssemblyInfo.cs" /> + <EmbeddedResource Include="StepForm1.resx"> + <DependentUpon>StepForm1.cs</DependentUpon> + </EmbeddedResource> + <EmbeddedResource Include="Properties\Resources.resx"> + <Generator>ResXFileCodeGenerator</Generator> + <LastGenOutput>Resources.Designer.cs</LastGenOutput> + <SubType>Designer</SubType> + </EmbeddedResource> + <Compile Include="Properties\Resources.Designer.cs"> + <AutoGen>True</AutoGen> + <DependentUpon>Resources.resx</DependentUpon> + <DesignTime>True</DesignTime> + </Compile> + <None Include="Properties\Settings.settings"> + <Generator>SettingsSingleFileGenerator</Generator> + <LastGenOutput>Settings.Designer.cs</LastGenOutput> + </None> + <Compile Include="Properties\Settings.Designer.cs"> + <AutoGen>True</AutoGen> + <DependentUpon>Settings.settings</DependentUpon> + <DesignTimeSharedInput>True</DesignTimeSharedInput> + </Compile> + </ItemGroup> + <ItemGroup> + <None Include="App.config" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\..\Model\DPumpHydr.Model.Open\DPumpHydr.Model.Open.csproj"> + <Project>{6ecf5610-5f35-428d-a103-d52db9f2cfb4}</Project> + <Name>DPumpHydr.Model.Open</Name> + </ProjectReference> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.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"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file diff --git a/OpenUI/DPumpHydr.OpenFwUI.Volute/Form1.Designer.cs b/OpenUI/DPumpHydr.OpenFwUI.Volute/Form1.Designer.cs new file mode 100644 index 0000000..6de93d9 --- /dev/null +++ b/OpenUI/DPumpHydr.OpenFwUI.Volute/Form1.Designer.cs @@ -0,0 +1,48 @@ +锘縩amespace DPumpHydr.Desktop +{ + partial class Form1 + { + /// <summary> + /// 蹇呴渶鐨勮璁″櫒鍙橀噺銆� + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// 娓呯悊鎵�鏈夋鍦ㄤ娇鐢ㄧ殑璧勬簮銆� + /// </summary> + /// <param name="disposing">濡傛灉搴旈噴鏀炬墭绠¤祫婧愶紝涓� true锛涘惁鍒欎负 false銆�</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows 绐椾綋璁捐鍣ㄧ敓鎴愮殑浠g爜 + + /// <summary> + /// 璁捐鍣ㄦ敮鎸佹墍闇�鐨勬柟娉� - 涓嶈 + /// 浣跨敤浠g爜缂栬緫鍣ㄤ慨鏀规鏂规硶鐨勫唴瀹广�� + /// </summary> + private void InitializeComponent() + { + this.SuspendLayout(); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 261); + this.Name = "Form1"; + this.Text = "Form1"; + this.Load += new System.EventHandler(this.Form1_Load); + this.ResumeLayout(false); + + } + + #endregion + } +} + diff --git a/OpenUI/DPumpHydr.OpenFwUI.Volute/Form1.cs b/OpenUI/DPumpHydr.OpenFwUI.Volute/Form1.cs new file mode 100644 index 0000000..e2b3899 --- /dev/null +++ b/OpenUI/DPumpHydr.OpenFwUI.Volute/Form1.cs @@ -0,0 +1,25 @@ +锘縰sing System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace DPumpHydr.Desktop +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void Form1_Load(object sender, EventArgs e) + { + + } + } +} diff --git a/OpenUI/DPumpHydr.OpenFwUI.Volute/Form1.resx b/OpenUI/DPumpHydr.OpenFwUI.Volute/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/OpenUI/DPumpHydr.OpenFwUI.Volute/Form1.resx @@ -0,0 +1,120 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root> \ No newline at end of file diff --git a/OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/AssemblyInfo.cs b/OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..37f3d46 --- /dev/null +++ b/OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +锘縰sing System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 鏈夊叧绋嬪簭闆嗙殑甯歌淇℃伅閫氳繃浠ヤ笅 +// 鐗规�ч泦鎺у埗銆傛洿鏀硅繖浜涚壒鎬у�煎彲淇敼 +// 涓庣▼搴忛泦鍏宠仈鐨勪俊鎭�� +[assembly: AssemblyTitle("DPumpHydr.Desktop")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("DPumpHydr.Desktop")] +[assembly: AssemblyCopyright("Copyright 漏 2025")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 灏� ComVisible 璁剧疆涓� false 浣挎绋嬪簭闆嗕腑鐨勭被鍨� +// 瀵� COM 缁勪欢涓嶅彲瑙併�� 濡傛灉闇�瑕佷粠 COM 璁块棶姝ょ▼搴忛泦涓殑绫诲瀷锛� +// 鍒欏皢璇ョ被鍨嬩笂鐨� ComVisible 鐗规�ц缃负 true銆� +[assembly: ComVisible(false)] + +// 濡傛灉姝ら」鐩悜 COM 鍏紑锛屽垯涓嬪垪 GUID 鐢ㄤ簬绫诲瀷搴撶殑 ID +[assembly: Guid("20118153-125a-4268-ab9b-ea88dcf1d67c")] + +// 绋嬪簭闆嗙殑鐗堟湰淇℃伅鐢变笅闈㈠洓涓�肩粍鎴�: +// +// 涓荤増鏈� +// 娆$増鏈� +// 鐢熸垚鍙� +// 淇鍙� +// +// 鍙互鎸囧畾鎵�鏈夎繖浜涘�硷紝涔熷彲浠ヤ娇鐢ㄢ�滅敓鎴愬彿鈥濆拰鈥滀慨璁㈠彿鈥濈殑榛樿鍊硷紝 +// 鏂规硶鏄寜濡備笅鎵�绀轰娇鐢ㄢ��*鈥�: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/Resources.Designer.cs b/OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/Resources.Designer.cs new file mode 100644 index 0000000..eb6c39e --- /dev/null +++ b/OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +锘�//------------------------------------------------------------------------------ +// <auto-generated> +// 姝や唬鐮佺敱宸ュ叿鐢熸垚銆� +// 杩愯鏃剁増鏈�:4.0.30319.42000 +// +// 瀵规鏂囦欢鐨勬洿鏀瑰彲鑳戒細瀵艰嚧涓嶆纭殑琛屼负锛屽苟涓斿鏋� +// 閲嶆柊鐢熸垚浠g爜锛岃繖浜涙洿鏀瑰皢浼氫涪澶便�� +// </auto-generated> +//------------------------------------------------------------------------------ + +namespace DPumpHydr.OpenFwUI.Volute.Properties { + using System; + + + /// <summary> + /// 涓�涓己绫诲瀷鐨勮祫婧愮被锛岀敤浜庢煡鎵炬湰鍦板寲鐨勫瓧绗︿覆绛夈�� + /// </summary> + // 姝ょ被鏄敱 StronglyTypedResourceBuilder + // 绫婚�氳繃绫讳技浜� ResGen 鎴� Visual Studio 鐨勫伐鍏疯嚜鍔ㄧ敓鎴愮殑銆� + // 鑻ヨ娣诲姞鎴栫Щ闄ゆ垚鍛橈紝璇风紪杈� .ResX 鏂囦欢锛岀劧鍚庨噸鏂拌繍琛� ResGen + // (浠� /str 浣滀负鍛戒护閫夐」)锛屾垨閲嶆柊鐢熸垚 VS 椤圭洰銆� + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// <summary> + /// 杩斿洖姝ょ被浣跨敤鐨勭紦瀛樼殑 ResourceManager 瀹炰緥銆� + /// </summary> + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DPumpHydr.OpenFwUI.Volute.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// <summary> + /// 浣跨敤姝ゅ己绫诲瀷璧勬簮绫伙紝涓烘墍鏈夎祫婧愭煡鎵� + /// 閲嶅啓褰撳墠绾跨▼鐨� CurrentUICulture 灞炴�с�� + /// </summary> + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/Resources.resx b/OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/Resources.resx @@ -0,0 +1,117 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root> \ No newline at end of file diff --git a/OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/Settings.Designer.cs b/OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/Settings.Designer.cs new file mode 100644 index 0000000..e888c8c --- /dev/null +++ b/OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +锘�//------------------------------------------------------------------------------ +// <auto-generated> +// 姝や唬鐮佺敱宸ュ叿鐢熸垚銆� +// 杩愯鏃剁増鏈�:4.0.30319.42000 +// +// 瀵规鏂囦欢鐨勬洿鏀瑰彲鑳戒細瀵艰嚧涓嶆纭殑琛屼负锛屽苟涓斿鏋� +// 閲嶆柊鐢熸垚浠g爜锛岃繖浜涙洿鏀瑰皢浼氫涪澶便�� +// </auto-generated> +//------------------------------------------------------------------------------ + +namespace DPumpHydr.OpenFwUI.Volute.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/Settings.settings b/OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/OpenUI/DPumpHydr.OpenFwUI.Volute/Properties/Settings.settings @@ -0,0 +1,7 @@ +锘�<?xml version='1.0' encoding='utf-8'?> +<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> + <Profiles> + <Profile Name="(Default)" /> + </Profiles> + <Settings /> +</SettingsFile> -- Gitblit v1.9.3