diff --git a/CleanMachine.Control/CleanMachine.Control.csproj b/CleanMachine.Control/CleanMachine.Control.csproj index ec0eb38..191653e 100644 --- a/CleanMachine.Control/CleanMachine.Control.csproj +++ b/CleanMachine.Control/CleanMachine.Control.csproj @@ -1,60 +1,15 @@ - - - + + - Debug - AnyCPU - {6891D010-F826-49C9-A087-2717A264BC16} - Library - CleanMachine.Control - CleanMachine.Control - v4.5 - 512 - true - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 + net48 + + + + + - - - - - - - - - - - - - Component - - - - - - - Component - - - - - - \ No newline at end of file + + diff --git a/CleanMachine.Control/Properties/AssemblyInfo.cs b/CleanMachine.Control/Properties/AssemblyInfo.cs deleted file mode 100644 index 522c1e8..0000000 --- a/CleanMachine.Control/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// 有关程序集的一般信息由以下 -// 控制。更改这些特性值可修改 -// 与程序集关联的信息。 -[assembly: AssemblyTitle("CleanMachine.Control")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("CleanMachine.Control")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// 将 ComVisible 设置为 false 会使此程序集中的类型 -//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 -//请将此类型的 ComVisible 特性设置为 true。 -[assembly: ComVisible(false)] - -// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID -[assembly: Guid("6891d010-f826-49c9-a087-2717a264bc16")] - -// 程序集的版本信息由下列四个值组成: -// -// 主版本 -// 次版本 -// 生成号 -// 修订号 -// -//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 -//通过使用 "*",如下所示: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CleanMachine.Model/CleanMachine.Model.csproj b/CleanMachine.Model/CleanMachine.Model.csproj index 50e8b66..2b2cb63 100644 --- a/CleanMachine.Model/CleanMachine.Model.csproj +++ b/CleanMachine.Model/CleanMachine.Model.csproj @@ -1,7 +1,7 @@ - net45 + net48 diff --git a/CleanMachineHMI.Model/CleanMachineHMI.Domain.csproj b/CleanMachineHMI.Model/CleanMachineHMI.Domain.csproj index ec45360..cbe12f0 100644 --- a/CleanMachineHMI.Model/CleanMachineHMI.Domain.csproj +++ b/CleanMachineHMI.Model/CleanMachineHMI.Domain.csproj @@ -1,99 +1,11 @@ - - - + + - Debug - AnyCPU - {F7AF907B-5DDC-469F-956C-08C5FD110448} - Library - Properties - CleanMachineHMI.Domain - CleanMachineHMI.Domain - v4.5 - 512 - true - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - AnyCPU - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - true - bin\x64\Debug\ - DEBUG;TRACE - full - x64 - 7.3 - prompt - - - bin\x64\Release\ - TRACE - true - pdbonly - x64 - 7.3 - prompt - - - true - bin\x86\Debug\ - DEBUG;TRACE - full - AnyCPU - 7.3 - prompt - - - bin\x86\Release\ - TRACE - true - pdbonly - x86 - 7.3 - prompt + net48 + - - False - ..\public\ComponentFactory.Krypton.Toolkit.dll - - - - - - - - - + - - - - - - - - - - - - - \ No newline at end of file + + diff --git a/CleanMachineHMI.Model/Models/ViewModels/FormModel.cs b/CleanMachineHMI.Model/Models/ViewModels/FormModel.cs index fe19f65..00bc5ab 100644 --- a/CleanMachineHMI.Model/Models/ViewModels/FormModel.cs +++ b/CleanMachineHMI.Model/Models/ViewModels/FormModel.cs @@ -1,10 +1,10 @@ using CleanMachineHMI.Domain.Enums; -using ComponentFactory.Krypton.Toolkit; + using System; using System.Collections.Generic; using System.Linq; using System.Text; -using System.Windows.Forms; + namespace CleanMachineHMI.Domain.Models.ViewModels { diff --git a/CleanMachineHMI.Model/Models/ViewModels/UserInfo.cs b/CleanMachineHMI.Model/Models/ViewModels/UserInfo.cs index d8b0598..125cfcc 100644 --- a/CleanMachineHMI.Model/Models/ViewModels/UserInfo.cs +++ b/CleanMachineHMI.Model/Models/ViewModels/UserInfo.cs @@ -1,4 +1,4 @@ -using ComponentFactory.Krypton.Toolkit; + using System; using System.Collections.Generic; using System.Linq; diff --git a/CleanMachineHMI.Model/Properties/AssemblyInfo.cs b/CleanMachineHMI.Model/Properties/AssemblyInfo.cs deleted file mode 100644 index 6a87196..0000000 --- a/CleanMachineHMI.Model/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// 有关程序集的一般信息由以下 -// 控制。更改这些特性值可修改 -// 与程序集关联的信息。 -[assembly: AssemblyTitle("CleanMachineHMI.Domain")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("CleanMachineHMI.Domain")] -[assembly: AssemblyCopyright("Copyright © 2020")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// 将 ComVisible 设置为 false 会使此程序集中的类型 -//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 -//请将此类型的 ComVisible 特性设置为 true。 -[assembly: ComVisible(false)] - -// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID -[assembly: Guid("f7af907b-5ddc-469f-956c-08c5fd110448")] - -// 程序集的版本信息由下列四个值组成: -// -// 主版本 -// 次版本 -// 生成号 -// 修订号 -// -//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 -//通过使用 "*",如下所示: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CleanMachineHMI.sln b/CleanMachineHMI.sln index 76349ba..852ae36 100644 --- a/CleanMachineHMI.sln +++ b/CleanMachineHMI.sln @@ -3,17 +3,17 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.32014.148 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanMachineHMI", "CleanMachineHMI\CleanMachineHMI.csproj", "{9CF77369-B471-4476-9F42-779945113EA5}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanMachineHMI", "CleanMachineHMI\CleanMachineHMI.csproj", "{9CF77369-B471-4476-9F42-779945113EA5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanMachineHMI.Domain", "CleanMachineHMI.Model\CleanMachineHMI.Domain.csproj", "{F7AF907B-5DDC-469F-956C-08C5FD110448}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanMachineHMI.Domain", "CleanMachineHMI.Model\CleanMachineHMI.Domain.csproj", "{F7AF907B-5DDC-469F-956C-08C5FD110448}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LeadDataBaseUtility", "LeadDataBaseUtility\LeadDataBaseUtility.csproj", "{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LeadDataBaseUtility", "LeadDataBaseUtility\LeadDataBaseUtility.csproj", "{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NX_LogUtility", "NX_LogUtility\NX_LogUtility.csproj", "{925057D8-7EE8-42ED-8AA0-628AF82F10B2}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NX_LogUtility", "NX_LogUtility\NX_LogUtility.csproj", "{925057D8-7EE8-42ED-8AA0-628AF82F10B2}" EndProject Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "CleanMachineSoftware_Setup", "CleanMachineSoftware_Setup\CleanMachineSoftware_Setup.vdproj", "{497A7E73-E2E8-4134-93CA-8F6A5B72D992}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanMachine.Control", "CleanMachine.Control\CleanMachine.Control.csproj", "{6891D010-F826-49C9-A087-2717A264BC16}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanMachine.Control", "CleanMachine.Control\CleanMachine.Control.csproj", "{6891D010-F826-49C9-A087-2717A264BC16}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanMachine.Model", "CleanMachine.Model\CleanMachine.Model.csproj", "{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}" EndProject @@ -29,58 +29,52 @@ Global GlobalSection(ProjectConfigurationPlatforms) = postSolution {9CF77369-B471-4476-9F42-779945113EA5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {9CF77369-B471-4476-9F42-779945113EA5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9CF77369-B471-4476-9F42-779945113EA5}.Debug|x64.ActiveCfg = Debug|x64 - {9CF77369-B471-4476-9F42-779945113EA5}.Debug|x64.Build.0 = Debug|x64 - {9CF77369-B471-4476-9F42-779945113EA5}.Debug|x86.ActiveCfg = Debug|x86 - {9CF77369-B471-4476-9F42-779945113EA5}.Debug|x86.Build.0 = Debug|x86 + {9CF77369-B471-4476-9F42-779945113EA5}.Debug|x64.ActiveCfg = Debug|Any CPU + {9CF77369-B471-4476-9F42-779945113EA5}.Debug|x64.Build.0 = Debug|Any CPU + {9CF77369-B471-4476-9F42-779945113EA5}.Debug|x86.ActiveCfg = Debug|Any CPU + {9CF77369-B471-4476-9F42-779945113EA5}.Debug|x86.Build.0 = Debug|Any CPU {9CF77369-B471-4476-9F42-779945113EA5}.Release|Any CPU.ActiveCfg = Release|Any CPU {9CF77369-B471-4476-9F42-779945113EA5}.Release|Any CPU.Build.0 = Release|Any CPU {9CF77369-B471-4476-9F42-779945113EA5}.Release|x64.ActiveCfg = Release|Any CPU {9CF77369-B471-4476-9F42-779945113EA5}.Release|x64.Build.0 = Release|Any CPU - {9CF77369-B471-4476-9F42-779945113EA5}.Release|x86.ActiveCfg = Release|x86 - {9CF77369-B471-4476-9F42-779945113EA5}.Release|x86.Build.0 = Release|x86 + {9CF77369-B471-4476-9F42-779945113EA5}.Release|x86.ActiveCfg = Release|Any CPU + {9CF77369-B471-4476-9F42-779945113EA5}.Release|x86.Build.0 = Release|Any CPU {F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x64.ActiveCfg = Debug|x64 - {F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x64.Build.0 = Debug|x64 - {F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x86.ActiveCfg = Debug|x86 - {F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x86.Build.0 = Debug|x86 + {F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x64.ActiveCfg = Debug|Any CPU + {F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x64.Build.0 = Debug|Any CPU + {F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x86.ActiveCfg = Debug|Any CPU + {F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x86.Build.0 = Debug|Any CPU {F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|Any CPU.ActiveCfg = Release|Any CPU {F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|Any CPU.Build.0 = Release|Any CPU {F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|x64.ActiveCfg = Release|Any CPU {F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|x64.Build.0 = Release|Any CPU - {F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|x86.ActiveCfg = Release|x86 - {F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|x86.Build.0 = Release|x86 + {F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|x86.ActiveCfg = Release|Any CPU + {F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|x86.Build.0 = Release|Any CPU {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x64.ActiveCfg = Debug|x64 - {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x64.Build.0 = Debug|x64 - {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x86.ActiveCfg = Debug|x86 - {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x86.Build.0 = Debug|x86 + {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x64.ActiveCfg = Debug|Any CPU + {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x64.Build.0 = Debug|Any CPU + {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x86.ActiveCfg = Debug|Any CPU + {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x86.Build.0 = Debug|Any CPU {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|Any CPU.ActiveCfg = Release|Any CPU {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|Any CPU.Build.0 = Release|Any CPU {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x64.ActiveCfg = Release|Any CPU {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x64.Build.0 = Release|Any CPU - {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x86.ActiveCfg = Release|x86 - {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x86.Build.0 = Release|x86 + {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x86.ActiveCfg = Release|Any CPU + {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x86.Build.0 = Release|Any CPU {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x64.ActiveCfg = Debug|x64 - {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x64.Build.0 = Debug|x64 - {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x86.ActiveCfg = Debug|x86 - {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x86.Build.0 = Debug|x86 + {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x64.ActiveCfg = Debug|Any CPU + {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x64.Build.0 = Debug|Any CPU + {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x86.ActiveCfg = Debug|Any CPU + {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x86.Build.0 = Debug|Any CPU {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|Any CPU.ActiveCfg = Release|Any CPU {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|Any CPU.Build.0 = Release|Any CPU {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x64.ActiveCfg = Release|Any CPU {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x64.Build.0 = Release|Any CPU - {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x86.ActiveCfg = Release|x86 - {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x86.Build.0 = Release|x86 - {497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Debug|Any CPU.ActiveCfg = Debug - {497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Debug|x64.ActiveCfg = Debug - {497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Debug|x86.ActiveCfg = Debug - {497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Release|Any CPU.ActiveCfg = Release - {497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Release|x64.ActiveCfg = Release - {497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Release|x86.ActiveCfg = Release + {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x86.ActiveCfg = Release|Any CPU + {925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x86.Build.0 = Release|Any CPU {6891D010-F826-49C9-A087-2717A264BC16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6891D010-F826-49C9-A087-2717A264BC16}.Debug|Any CPU.Build.0 = Debug|Any CPU {6891D010-F826-49C9-A087-2717A264BC16}.Debug|x64.ActiveCfg = Debug|Any CPU diff --git a/CleanMachineHMI/App.config b/CleanMachineHMI/App.config index 1a40121..844f0c0 100644 --- a/CleanMachineHMI/App.config +++ b/CleanMachineHMI/App.config @@ -2,63 +2,63 @@ -
+
- - + + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - \ No newline at end of file + diff --git a/CleanMachineHMI/CleanMachineHMI.csproj b/CleanMachineHMI/CleanMachineHMI.csproj index 0984738..e3808f7 100644 --- a/CleanMachineHMI/CleanMachineHMI.csproj +++ b/CleanMachineHMI/CleanMachineHMI.csproj @@ -1,636 +1,40 @@ - - - - - Debug - AnyCPU - {9CF77369-B471-4476-9F42-779945113EA5} - WinExe - CleanMachineHMI - CleanMachineHMI - v4.5 - 512 - true - - publish\ - true - Disk - false - Foreground - 7 - Days - false - false - true - 0 - 1.0.0.%2a - false - false - true - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - false - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - Resources\cleaner_128px_1238161_easyicon.net.ico - - - true - bin\x64\Debug\ - DEBUG;TRACE - full - x86 - 7.3 - prompt - - - bin\x64\Release\ - TRACE - true - pdbonly - x64 - 7.3 - prompt - - - true - bin\x86\Debug\ - DEBUG;TRACE - full - AnyCPU - 7.3 - prompt - - - bin\x86\Release\ - TRACE - true - pdbonly - x86 - 7.3 - prompt - - - - False - ..\public\FastReport.dll - - - False - ..\public\FastReport.Bars.dll - - - False - ..\public\FastReport.Editor.dll - - - False - ..\public\FastReport.Install.dll - - - False - ..\public\FastReport.Service.dll - - - False - ..\public\FastReport.Web.dll - - - ..\packages\Krypton.Navigator.5.550.2108.1\lib\net45\Krypton.Navigator.dll - - - ..\packages\Krypton.Toolkit.5.550.2108.1\lib\net45\Krypton.Toolkit.dll - - - ..\packages\NModbus4.2.1.0\lib\net40\NModbus4.dll - - - - - - - - - - - - - - - Form - - - frmPopupWarningMsg.cs - - - Form - - - frmSwitchRunDirection.cs - - - Form - - - frmIoMonitorNew.cs - - - UserControl - - - frmMainDetail.cs - - - UserControl - - - frmMaintenance.cs - - - UserControl - - - frmMechineCheck.cs - - - UserControl - - - frmPrinterMain.cs - - - UserControl - - - frmPlcItemConfig.cs - - - UserControl - - - frmPlcAlarmLog.cs - - - UserControl - - - frmManual.cs - - - UserControl - - - frmIOMonitor.cs - - - UserControl - - - frmCurrWorkingIrMsg.cs - - - UserControl - - - frmCleanMode.cs - - - UserControl - - - frmContaminationDTL.cs - - - UserControl - - - frmContaminationType.cs - - - UserControl - - - frmParamater.cs - - - UserControl - - - frmRole.cs - - - UserControl - - - frmSheetType.cs - - - UserControl - - - frmUser.cs - - - UserControl - - - frmWarning.cs - - - - - - - - Form - - - frmSysExitAlarm.cs - - - Form - - - Form2.cs - - - Form - - - frmAddRole.cs - - - Form - - - frmEditRole.cs - - - Form - - - frmEditWorkingPalletData.cs - - - Form - - - frmSetRoleMenuPermission.cs - - - Form - - - frmBase.cs - - - Form - - - frmAddCleanCode.cs - - - Form - - - frmEditCleanCode.cs - - - Form - - - frmAddContaminationType.cs - - - Form - - - frmEditContaminationType.cs - - - Form - - - frmAddContaminationDtl.cs - - - Form - - - frmEditContaminationDtl.cs - - - Form - - - frmAddWaringMsg.cs - - - Form - - - frmEditParamater.cs - - - Form - - - frmEditWaringMsg.cs - - - Form - - - frmAddSheetType.cs - - - Form - - - frmEditSheetType.cs - - - Form - - - frmEditUser.cs - - - Form - - - frmAddPlcItem.cs - - - Form - - - frmAddUser.cs - - - Form - - - frmEditPlcItem.cs - - - Form - - - frmIOMonitor_Old.cs - - - Form - - - frmLogin.cs - - - Form - - - frmMainNew.cs - - - - KeyboardTextBox.cs - - - - - - - - - - frmPopupWarningMsg.cs - - - frmSwitchRunDirection.cs - - - frmIoMonitorNew.cs - - - frmSysExitAlarm.cs - - - Form2.cs - - - frmAddRole.cs - - - frmEditRole.cs - - - frmEditWorkingPalletData.cs - - - frmSetRoleMenuPermission.cs - - - frmAddCleanCode.cs - - - frmAddContaminationDtl.cs - - - frmAddContaminationType.cs - - - frmAddWaringMsg.cs - - - frmEditCleanCode.cs - - - frmEditContaminationDtl.cs - - - frmEditContaminationType.cs - - - frmEditParamater.cs - - - frmEditWaringMsg.cs - - - frmAddSheetType.cs - - - frmAddUser.cs - - - frmEditSheetType.cs - - - frmEditUser.cs - - - frmIOMonitor_Old.cs - - - frmLogin.cs - - - frmMainNew.cs - - - frmBase.cs - - - frmAddPlcItem.cs - - - frmEditPlcItem.cs - - - frmCleanMode.cs - - - frmContaminationDTL.cs - - - frmContaminationType.cs - - - frmRole.cs - - - frmSheetType.cs - - - frmUser.cs - - - frmWarning.cs - - - frmCurrWorkingIrMsg.cs - - - frmIOMonitor.cs - - - frmMainDetail.cs - - - frmMaintenance.cs - - - frmManual.cs - - - frmMechineCheck.cs - - - frmParamater.cs - - - frmPlcAlarmLog.cs - - - frmPlcItemConfig.cs - - - frmPrinterMain.cs - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - True - - - - Always - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - Always - - - Always - - - - - - - - - - - - - - - - - - - - - {6891d010-f826-49c9-a087-2717a264bc16} - CleanMachine.Control - - - {bc0da19c-0c89-4d3d-9dee-1673d465a688} - CleanMachine.Model - - - {f7af907b-5ddc-469f-956c-08c5fd110448} - CleanMachineHMI.Domain - - - {824348a6-ffff-4c1b-bbf5-8b507a8c8ce5} - LeadDataBaseUtility - - - {925057d8-7ee8-42ed-8aa0-628af82f10b2} - NX_LogUtility - - - - - False - .NET Framework 3.5 SP1 - false - - - + + + + WinExe + net48 + + true + + + + + + + + + + + + + + + + + + + + ..\public\FastReport.dll + + + ..\public\FastReport.Editor.dll + + + ..\public\FastReport.Install.dll + + + ..\public\FastReport.Service.dll + + + \ No newline at end of file diff --git a/CleanMachineHMI/FrmUserControl/Base/UserControl1.Designer.cs b/CleanMachineHMI/FrmUserControl/Base/UserControl1.Designer.cs new file mode 100644 index 0000000..c6b2aa3 --- /dev/null +++ b/CleanMachineHMI/FrmUserControl/Base/UserControl1.Designer.cs @@ -0,0 +1,44 @@ +namespace CleanMachineHMI.FrmUserControl.Base +{ + partial class UserControl1 + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this.SuspendLayout(); + // + // UserControl1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Name = "UserControl1"; + this.ResumeLayout(false); + + } + + #endregion + } +} diff --git a/CleanMachineHMI/FrmUserControl/Base/UserControl1.cs b/CleanMachineHMI/FrmUserControl/Base/UserControl1.cs new file mode 100644 index 0000000..e8f6dc8 --- /dev/null +++ b/CleanMachineHMI/FrmUserControl/Base/UserControl1.cs @@ -0,0 +1,20 @@ +using 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 CleanMachineHMI.FrmUserControl.Base +{ + public partial class UserControl1 : UserControl + { + public UserControl1() + { + InitializeComponent(); + } + } +} diff --git a/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.Designer.cs b/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.Designer.cs index 19eb5a6..7071564 100644 --- a/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.Designer.cs +++ b/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.Designer.cs @@ -1,7 +1,7 @@  namespace CleanMachineHMI.FrmUserControl { - partial class frmCleanMode + public partial class frmCleanMode { /// /// 必需的设计器变量。 diff --git a/CleanMachineHMI/Properties/AssemblyInfo.cs b/CleanMachineHMI/Properties/AssemblyInfo.cs deleted file mode 100644 index 7372305..0000000 --- a/CleanMachineHMI/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// 有关程序集的一般信息由以下 -// 控制。更改这些特性值可修改 -// 与程序集关联的信息。 -[assembly: AssemblyTitle("CleanMachineHMI")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("CleanMachineHMI")] -[assembly: AssemblyCopyright("Copyright © 2020")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// 将 ComVisible 设置为 false 会使此程序集中的类型 -//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 -//请将此类型的 ComVisible 特性设置为 true。 -[assembly: ComVisible(false)] - -// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID -[assembly: Guid("9cf77369-b471-4476-9f42-779945113ea5")] - -// 程序集的版本信息由下列四个值组成: -// -// 主版本 -// 次版本 -// 生成号 -// 修订号 -// -//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 -//通过使用 "*",如下所示: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.35")] -[assembly: AssemblyFileVersion("1.0.0.35")] diff --git a/CleanMachineHMI/Properties/Resources.Designer.cs b/CleanMachineHMI/Properties/Resources.Designer.cs index ccabb2c..c302097 100644 --- a/CleanMachineHMI/Properties/Resources.Designer.cs +++ b/CleanMachineHMI/Properties/Resources.Designer.cs @@ -19,7 +19,7 @@ namespace CleanMachineHMI.Properties { // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen // (以 /str 作为命令选项),或重新生成 VS 项目。 - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { diff --git a/CleanMachineHMI/Properties/Settings.Designer.cs b/CleanMachineHMI/Properties/Settings.Designer.cs index 9a9b1a9..d22e62b 100644 --- a/CleanMachineHMI/Properties/Settings.Designer.cs +++ b/CleanMachineHMI/Properties/Settings.Designer.cs @@ -12,7 +12,7 @@ namespace CleanMachineHMI.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.7.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.0.3.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); diff --git a/CleanMachineHMI/Utils/PlcOperationHelper.cs b/CleanMachineHMI/Utils/PlcOperationHelper.cs index bfa8866..dd843ee 100644 --- a/CleanMachineHMI/Utils/PlcOperationHelper.cs +++ b/CleanMachineHMI/Utils/PlcOperationHelper.cs @@ -2,7 +2,8 @@ using CleanMachine.Model; using LeadDataBaseUtility; -using Modbus.Device; + +using NModbus; using NX_LogUtility; using System; using System.Collections.Generic; @@ -67,6 +68,7 @@ namespace CleanMachineHMI set { this._isConn = value; } } private static IModbusMaster master; + //NModbus.IO.IStreamResource port; #if USE_LOCAL_TCP_DEBUG private static System.Net.Sockets.TcpClient port; #else @@ -88,23 +90,29 @@ namespace CleanMachineHMI int modbusPattern = Convert.ToInt32(GlobalHelper.ParameterList.Select(" PARAMETER_CODE = 'ModbusPattern'")[0]["PARAMETER_VALUE"]); #if USE_LOCAL_TCP_DEBUG port = new System.Net.Sockets.TcpClient(); + + var adaptet = new NModbus.IO.TcpClientAdapter(port); #else - port = new SerialPort(portname, baudrate, paritymsg, databits, stopbis); + var SerialPort=new SerialPort(portname, baudrate, paritymsg, databits, stopbis); + port = new NModbus.Serial.SerialPortAdapter(SerialPort); #endif + var factory = new ModbusFactory(); if (modbusPattern == 0) { - master = ModbusSerialMaster.CreateRtu(port); + + master = factory.CreateRtuMaster(adaptet); } else { - master = ModbusSerialMaster.CreateAscii(port); + master = factory.CreateAsciiMaster(adaptet); } #if USE_LOCAL_TCP_DEBUG port.Connect("127.0.0.1", 5002); this._isConn = true; #else - port.Open(); + + SerialPort.Open(); #endif return true; @@ -826,19 +834,19 @@ namespace CleanMachineHMI #if USE_LOCAL_TCP_DEBUG #else - - if (DateTime.Now > HeartbeatTime.AddSeconds(5))//心跳超时 - { - isConn = false; - //报警处理。 - frmMainNew.Show_Plc_Alarm("PLC heartbeat data is abnormal, PLC loses connection!"); - if (ReConnNum % 5 == 0) - { - ClosePlcConn(); - PlcInit(); - } - ReConnNum++; - } + + if (DateTime.Now > HeartbeatTime.AddSeconds(5))//心跳超时 + { + isConn = false; + //报警处理。 + frmMainNew.Show_Plc_Alarm("PLC heartbeat data is abnormal, PLC loses connection!"); + if (ReConnNum % 5 == 0) + { + ClosePlcConn(); + PlcInit(); + } + ReConnNum++; + } #endif } catch diff --git a/CleanMachineHMI/forms/frmCleanMode.Designer.cs b/CleanMachineHMI/forms/frmCleanMode.Designer.cs index 1a3446c..ea835bc 100644 --- a/CleanMachineHMI/forms/frmCleanMode.Designer.cs +++ b/CleanMachineHMI/forms/frmCleanMode.Designer.cs @@ -28,25 +28,25 @@ /// private void InitializeComponent() { - this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); + this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); - this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton(); + this.kbt_Reset = new Krypton.Toolkit.KryptonButton(); + this.kbt_Edit = new Krypton.Toolkit.KryptonButton(); + this.kbt_Delete = new Krypton.Toolkit.KryptonButton(); + this.kbt_Query = new Krypton.Toolkit.KryptonButton(); + this.kbt_Add = new Krypton.Toolkit.KryptonButton(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); - this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.ktb_CleanModeCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); - this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.ktb_CleanModeName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); - this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); - this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView(); + this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel(); + this.ktb_CleanModeCode = new Krypton.Toolkit.KryptonTextBox(); + this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel(); + this.ktb_CleanModeName = new Krypton.Toolkit.KryptonTextBox(); + this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel(); + this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox(); + this.dataGridView = new Krypton.Toolkit.KryptonDataGridView(); ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit(); this.kryptonGroupBox1.Panel.SuspendLayout(); @@ -274,7 +274,7 @@ // this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly; this.kryptonGroupBox2.CaptionOverlap = 0D; - this.kryptonGroupBox2.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl; + this.kryptonGroupBox2.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl; this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 131); this.kryptonGroupBox2.Name = "kryptonGroupBox2"; @@ -295,7 +295,7 @@ this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dataGridView.DataMember = "TestData"; this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill; - this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed; + this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed; this.dataGridView.Location = new System.Drawing.Point(0, 0); this.dataGridView.MultiSelect = false; this.dataGridView.Name = "dataGridView"; @@ -334,24 +334,24 @@ } #endregion - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; - private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; + private Krypton.Toolkit.KryptonPanel kryptonPanel1; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; + private Krypton.Toolkit.KryptonDataGridView dataGridView; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete; + private Krypton.Toolkit.KryptonButton kbt_Query; + private Krypton.Toolkit.KryptonButton kbt_Reset; + private Krypton.Toolkit.KryptonButton kbt_Add; + private Krypton.Toolkit.KryptonButton kbt_Edit; + private Krypton.Toolkit.KryptonButton kbt_Delete; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_CleanModeCode; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_CleanModeName; + private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime; + private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime; + private Krypton.Toolkit.KryptonLabel kryptonLabel2; + private Krypton.Toolkit.KryptonLabel kryptonLabel5; + private Krypton.Toolkit.KryptonTextBox ktb_CleanModeCode; + private Krypton.Toolkit.KryptonLabel kryptonLabel4; + private Krypton.Toolkit.KryptonLabel kryptonLabel3; + private Krypton.Toolkit.KryptonTextBox ktb_CleanModeName; } } \ No newline at end of file diff --git a/CleanMachineHMI/forms/frmCleanMode.cs b/CleanMachineHMI/forms/frmCleanMode.cs index 8408364..87885f0 100644 --- a/CleanMachineHMI/forms/frmCleanMode.cs +++ b/CleanMachineHMI/forms/frmCleanMode.cs @@ -1,7 +1,7 @@ using CleanMachineHMI.Domain.Enums; using CleanMachineHMI.frmChild; using CleanMachineHMI.Utils; -using ComponentFactory.Krypton.Toolkit; +using Krypton.Toolkit; using LeadDataBaseUtility; using System; using System.Collections.Generic; diff --git a/CleanMachineHMI/forms/frmContaminationDTL.Designer.cs b/CleanMachineHMI/forms/frmContaminationDTL.Designer.cs index 53bc565..d12d44b 100644 --- a/CleanMachineHMI/forms/frmContaminationDTL.Designer.cs +++ b/CleanMachineHMI/forms/frmContaminationDTL.Designer.cs @@ -28,27 +28,27 @@ /// private void InitializeComponent() { - this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); + this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); - this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton(); + this.kbt_Reset = new Krypton.Toolkit.KryptonButton(); + this.kbt_Edit = new Krypton.Toolkit.KryptonButton(); + this.kbt_Delete = new Krypton.Toolkit.KryptonButton(); + this.kbt_Query = new Krypton.Toolkit.KryptonButton(); + this.kbt_Add = new Krypton.Toolkit.KryptonButton(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); - this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.ktb_ContaminationDtlMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); - this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kcmb_ContaminationType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox(); - this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); - this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView(); - this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.kryptonPanel3 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); + this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel(); + this.ktb_ContaminationDtlMsg = new Krypton.Toolkit.KryptonTextBox(); + this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel(); + this.kcmb_ContaminationType = new Krypton.Toolkit.KryptonComboBox(); + this.kryptonPanel2 = new Krypton.Toolkit.KryptonPanel(); + this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox(); + this.dataGridView = new Krypton.Toolkit.KryptonDataGridView(); + this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel(); + this.kryptonPanel3 = new Krypton.Toolkit.KryptonPanel(); ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit(); this.kryptonGroupBox1.Panel.SuspendLayout(); @@ -282,7 +282,7 @@ // this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly; this.kryptonGroupBox2.CaptionOverlap = 0D; - this.kryptonGroupBox2.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl; + this.kryptonGroupBox2.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl; this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 131); this.kryptonGroupBox2.Name = "kryptonGroupBox2"; @@ -303,7 +303,7 @@ this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dataGridView.DataMember = "TestData"; this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill; - this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed; + this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed; this.dataGridView.Location = new System.Drawing.Point(0, 0); this.dataGridView.MultiSelect = false; this.dataGridView.Name = "dataGridView"; @@ -365,26 +365,26 @@ } #endregion - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2; - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1; - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel3; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; - private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; + private Krypton.Toolkit.KryptonPanel kryptonPanel2; + private Krypton.Toolkit.KryptonPanel kryptonPanel1; + private Krypton.Toolkit.KryptonPanel kryptonPanel3; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; + private Krypton.Toolkit.KryptonDataGridView dataGridView; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete; + private Krypton.Toolkit.KryptonButton kbt_Query; + private Krypton.Toolkit.KryptonButton kbt_Reset; + private Krypton.Toolkit.KryptonButton kbt_Add; + private Krypton.Toolkit.KryptonButton kbt_Edit; + private Krypton.Toolkit.KryptonButton kbt_Delete; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_ContaminationDtlMsg; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3; - private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_ContaminationType; + private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime; + private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime; + private Krypton.Toolkit.KryptonLabel kryptonLabel2; + private Krypton.Toolkit.KryptonLabel kryptonLabel5; + private Krypton.Toolkit.KryptonTextBox ktb_ContaminationDtlMsg; + private Krypton.Toolkit.KryptonLabel kryptonLabel4; + private Krypton.Toolkit.KryptonLabel kryptonLabel3; + private Krypton.Toolkit.KryptonComboBox kcmb_ContaminationType; } } \ No newline at end of file diff --git a/CleanMachineHMI/forms/frmContaminationDTL.cs b/CleanMachineHMI/forms/frmContaminationDTL.cs index 43e9710..0b87cd8 100644 --- a/CleanMachineHMI/forms/frmContaminationDTL.cs +++ b/CleanMachineHMI/forms/frmContaminationDTL.cs @@ -1,7 +1,7 @@ using CleanMachineHMI.Domain.Enums; using CleanMachineHMI.frmChild; using CleanMachineHMI.Utils; -using ComponentFactory.Krypton.Toolkit; +using Krypton.Toolkit; using LeadDataBaseUtility; using System; using System.Collections.Generic; @@ -11,7 +11,7 @@ using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; -using System.Web.UI.WebControls; + using System.Windows.Forms; namespace CleanMachineHMI.forms diff --git a/CleanMachineHMI/forms/frmContaminationType.Designer.cs b/CleanMachineHMI/forms/frmContaminationType.Designer.cs index 1d08d9a..1907364 100644 --- a/CleanMachineHMI/forms/frmContaminationType.Designer.cs +++ b/CleanMachineHMI/forms/frmContaminationType.Designer.cs @@ -28,27 +28,27 @@ /// private void InitializeComponent() { - this.kryptonPanel3 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); - this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView(); - this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); + this.kryptonPanel3 = new Krypton.Toolkit.KryptonPanel(); + this.kryptonPanel2 = new Krypton.Toolkit.KryptonPanel(); + this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox(); + this.dataGridView = new Krypton.Toolkit.KryptonDataGridView(); + this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); - this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton(); + this.kbt_Reset = new Krypton.Toolkit.KryptonButton(); + this.kbt_Edit = new Krypton.Toolkit.KryptonButton(); + this.kbt_Delete = new Krypton.Toolkit.KryptonButton(); + this.kbt_Query = new Krypton.Toolkit.KryptonButton(); + this.kbt_Add = new Krypton.Toolkit.KryptonButton(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); - this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.ktb_ContaminationTypeMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); - this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kcmb_CleanMode = new ComponentFactory.Krypton.Toolkit.KryptonComboBox(); - this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); + this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel(); + this.ktb_ContaminationTypeMsg = new Krypton.Toolkit.KryptonTextBox(); + this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel(); + this.kcmb_CleanMode = new Krypton.Toolkit.KryptonComboBox(); + this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit(); this.kryptonPanel3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit(); @@ -92,7 +92,7 @@ // this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly; this.kryptonGroupBox2.CaptionOverlap = 0D; - this.kryptonGroupBox2.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl; + this.kryptonGroupBox2.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl; this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 129); this.kryptonGroupBox2.Name = "kryptonGroupBox2"; @@ -113,7 +113,7 @@ this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dataGridView.DataMember = "TestData"; this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill; - this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed; + this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed; this.dataGridView.Location = new System.Drawing.Point(0, 0); this.dataGridView.MultiSelect = false; this.dataGridView.Name = "dataGridView"; @@ -365,26 +365,26 @@ } #endregion - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel3; - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1; - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; - private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView; + private Krypton.Toolkit.KryptonPanel kryptonPanel3; + private Krypton.Toolkit.KryptonPanel kryptonPanel1; + private Krypton.Toolkit.KryptonPanel kryptonPanel2; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; + private Krypton.Toolkit.KryptonDataGridView dataGridView; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete; + private Krypton.Toolkit.KryptonButton kbt_Query; + private Krypton.Toolkit.KryptonButton kbt_Reset; + private Krypton.Toolkit.KryptonButton kbt_Add; + private Krypton.Toolkit.KryptonButton kbt_Edit; + private Krypton.Toolkit.KryptonButton kbt_Delete; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_ContaminationTypeMsg; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3; - private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_CleanMode; + private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime; + private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime; + private Krypton.Toolkit.KryptonLabel kryptonLabel2; + private Krypton.Toolkit.KryptonLabel kryptonLabel5; + private Krypton.Toolkit.KryptonTextBox ktb_ContaminationTypeMsg; + private Krypton.Toolkit.KryptonLabel kryptonLabel4; + private Krypton.Toolkit.KryptonLabel kryptonLabel3; + private Krypton.Toolkit.KryptonComboBox kcmb_CleanMode; } } \ No newline at end of file diff --git a/CleanMachineHMI/forms/frmContaminationType.cs b/CleanMachineHMI/forms/frmContaminationType.cs index 07ccfb9..80d0bf0 100644 --- a/CleanMachineHMI/forms/frmContaminationType.cs +++ b/CleanMachineHMI/forms/frmContaminationType.cs @@ -1,7 +1,7 @@ using CleanMachineHMI.Domain.Enums; using CleanMachineHMI.frmChild; using CleanMachineHMI.Utils; -using ComponentFactory.Krypton.Toolkit; +using Krypton.Toolkit; using LeadDataBaseUtility; using System; using System.Collections.Generic; @@ -11,7 +11,7 @@ using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; -using System.Web.UI.WebControls; + using System.Windows.Forms; namespace CleanMachineHMI.forms diff --git a/CleanMachineHMI/forms/frmDataSearch.Designer.cs b/CleanMachineHMI/forms/frmDataSearch.Designer.cs index c5f24a0..70370f0 100644 --- a/CleanMachineHMI/forms/frmDataSearch.Designer.cs +++ b/CleanMachineHMI/forms/frmDataSearch.Designer.cs @@ -28,9 +28,9 @@ /// private void InitializeComponent() { - this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.btnWork = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.navigatorMain = new ComponentFactory.Krypton.Navigator.KryptonNavigator(); + this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel(); + this.btnWork = new Krypton.Toolkit.KryptonButton(); + this.navigatorMain = new Krypton.Navigator.KryptonNavigator(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.navigatorMain)).BeginInit(); @@ -59,16 +59,16 @@ // // navigatorMain // - this.navigatorMain.Bar.ItemAlignment = ComponentFactory.Krypton.Toolkit.RelativePositionAlign.Center; - this.navigatorMain.Bar.ItemSizing = ComponentFactory.Krypton.Navigator.BarItemSizing.Individual; - this.navigatorMain.Button.ButtonDisplayLogic = ComponentFactory.Krypton.Navigator.ButtonDisplayLogic.None; - this.navigatorMain.Button.CloseButtonAction = ComponentFactory.Krypton.Navigator.CloseButtonAction.None; - this.navigatorMain.Button.CloseButtonDisplay = ComponentFactory.Krypton.Navigator.ButtonDisplay.Hide; + this.navigatorMain.Bar.ItemAlignment = Krypton.Toolkit.RelativePositionAlign.Center; + this.navigatorMain.Bar.ItemSizing = Krypton.Navigator.BarItemSizing.Individual; + this.navigatorMain.Button.ButtonDisplayLogic = Krypton.Navigator.ButtonDisplayLogic.None; + this.navigatorMain.Button.CloseButtonAction = Krypton.Navigator.CloseButtonAction.None; + this.navigatorMain.Button.CloseButtonDisplay = Krypton.Navigator.ButtonDisplay.Hide; this.navigatorMain.Dock = System.Windows.Forms.DockStyle.Fill; this.navigatorMain.Location = new System.Drawing.Point(321, 0); this.navigatorMain.Name = "navigatorMain"; - this.navigatorMain.NavigatorMode = ComponentFactory.Krypton.Navigator.NavigatorMode.Group; - this.navigatorMain.PageBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.PanelClient; + this.navigatorMain.NavigatorMode = Krypton.Navigator.NavigatorMode.Group; + this.navigatorMain.PageBackStyle = Krypton.Toolkit.PaletteBackStyle.PanelClient; this.navigatorMain.Size = new System.Drawing.Size(837, 715); this.navigatorMain.TabIndex = 6; this.navigatorMain.Text = "kryptonNavigator1"; @@ -93,8 +93,8 @@ #endregion - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1; - private ComponentFactory.Krypton.Toolkit.KryptonButton btnWork; - public ComponentFactory.Krypton.Navigator.KryptonNavigator navigatorMain; + private Krypton.Toolkit.KryptonPanel kryptonPanel1; + private Krypton.Toolkit.KryptonButton btnWork; + public Krypton.Navigator.KryptonNavigator navigatorMain; } } \ No newline at end of file diff --git a/CleanMachineHMI/forms/frmDataSearch.cs b/CleanMachineHMI/forms/frmDataSearch.cs index bc53527..e5eb156 100644 --- a/CleanMachineHMI/forms/frmDataSearch.cs +++ b/CleanMachineHMI/forms/frmDataSearch.cs @@ -1,5 +1,5 @@ using CleanMachineHMI.Utils; -using ComponentFactory.Krypton.Toolkit; +using Krypton.Toolkit; using System; using System.Collections.Generic; using System.ComponentModel; diff --git a/CleanMachineHMI/forms/frmParamater.Designer.cs b/CleanMachineHMI/forms/frmParamater.Designer.cs index 885d452..a43c317 100644 --- a/CleanMachineHMI/forms/frmParamater.Designer.cs +++ b/CleanMachineHMI/forms/frmParamater.Designer.cs @@ -28,23 +28,23 @@ /// private void InitializeComponent() { - this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.ktb_ParamaterCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); - this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.ktb_ParamaterName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); + this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel(); + this.ktb_ParamaterCode = new Krypton.Toolkit.KryptonTextBox(); + this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel(); + this.ktb_ParamaterName = new Krypton.Toolkit.KryptonTextBox(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); - this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); + this.kbt_Reset = new Krypton.Toolkit.KryptonButton(); + this.kbt_Query = new Krypton.Toolkit.KryptonButton(); + this.kbt_Edit = new Krypton.Toolkit.KryptonButton(); + this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); - this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView(); - this.kryptonGroupBox3 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); - this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.kryptonGroupBox4 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); + this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel(); + this.dataGridView = new Krypton.Toolkit.KryptonDataGridView(); + this.kryptonGroupBox3 = new Krypton.Toolkit.KryptonGroupBox(); + this.kryptonPanel2 = new Krypton.Toolkit.KryptonPanel(); + this.kryptonGroupBox4 = new Krypton.Toolkit.KryptonGroupBox(); this.tableLayoutPanel2.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit(); @@ -224,7 +224,7 @@ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.dataGridView.DataMember = "TestData"; this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill; - this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed; + this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed; this.dataGridView.Location = new System.Drawing.Point(0, 0); this.dataGridView.MultiSelect = false; this.dataGridView.Name = "dataGridView"; @@ -239,7 +239,7 @@ // this.kryptonGroupBox3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly; this.kryptonGroupBox3.CaptionOverlap = 0D; - this.kryptonGroupBox3.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl; + this.kryptonGroupBox3.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl; this.kryptonGroupBox3.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonGroupBox3.Location = new System.Drawing.Point(0, 131); this.kryptonGroupBox3.Name = "kryptonGroupBox3"; @@ -304,22 +304,22 @@ #endregion - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_ParamaterCode; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_ParamaterName; + private Krypton.Toolkit.KryptonLabel kryptonLabel5; + private Krypton.Toolkit.KryptonTextBox ktb_ParamaterCode; + private Krypton.Toolkit.KryptonLabel kryptonLabel4; + private Krypton.Toolkit.KryptonTextBox ktb_ParamaterName; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2; + private Krypton.Toolkit.KryptonButton kbt_Reset; + private Krypton.Toolkit.KryptonButton kbt_Query; + private Krypton.Toolkit.KryptonButton kbt_Edit; + private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime; + private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime; + private Krypton.Toolkit.KryptonLabel kryptonLabel2; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3; - private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox3; - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox4; + private Krypton.Toolkit.KryptonLabel kryptonLabel3; + private Krypton.Toolkit.KryptonDataGridView dataGridView; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox3; + private Krypton.Toolkit.KryptonPanel kryptonPanel2; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox4; } } \ No newline at end of file diff --git a/CleanMachineHMI/forms/frmParamater.cs b/CleanMachineHMI/forms/frmParamater.cs index 52c299f..82421b3 100644 --- a/CleanMachineHMI/forms/frmParamater.cs +++ b/CleanMachineHMI/forms/frmParamater.cs @@ -1,7 +1,7 @@ using CleanMachineHMI.Domain.Enums; using CleanMachineHMI.frmChild; using CleanMachineHMI.Utils; -using ComponentFactory.Krypton.Toolkit; +using Krypton.Toolkit; using LeadDataBaseUtility; using System; using System.Collections.Generic; diff --git a/CleanMachineHMI/forms/frmRole.Designer.cs b/CleanMachineHMI/forms/frmRole.Designer.cs index a3bb48b..597b928 100644 --- a/CleanMachineHMI/forms/frmRole.Designer.cs +++ b/CleanMachineHMI/forms/frmRole.Designer.cs @@ -33,25 +33,25 @@ this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); - this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kcmb_roleGrade = new ComponentFactory.Krypton.Toolkit.KryptonComboBox(); - this.ktb_roleMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); - this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton(); + this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel(); + this.kcmb_roleGrade = new Krypton.Toolkit.KryptonComboBox(); + this.ktb_roleMsg = new Krypton.Toolkit.KryptonTextBox(); + this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel(); + this.kbt_Query = new Krypton.Toolkit.KryptonButton(); + this.kbt_Add = new Krypton.Toolkit.KryptonButton(); + this.kbt_Reset = new Krypton.Toolkit.KryptonButton(); + this.kbt_Edit = new Krypton.Toolkit.KryptonButton(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); - this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.ktb_setRoleMenuPermission = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); - this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); - this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView(); - this.kryptonPanel6 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); + this.kbt_Delete = new Krypton.Toolkit.KryptonButton(); + this.ktb_setRoleMenuPermission = new Krypton.Toolkit.KryptonButton(); + this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox(); + this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox(); + this.dataGridView = new Krypton.Toolkit.KryptonDataGridView(); + this.kryptonPanel6 = new Krypton.Toolkit.KryptonPanel(); this.tableLayoutPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kcmb_roleGrade)).BeginInit(); this.tableLayoutPanel2.SuspendLayout(); @@ -312,7 +312,7 @@ // this.kryptonGroupBox1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly; this.kryptonGroupBox1.CaptionOverlap = 0D; - this.kryptonGroupBox1.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl; + this.kryptonGroupBox1.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl; this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 129); this.kryptonGroupBox1.Name = "kryptonGroupBox1"; @@ -333,7 +333,7 @@ this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dataGridView.DataMember = "TestData"; this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill; - this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed; + this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed; this.dataGridView.Location = new System.Drawing.Point(0, 0); this.dataGridView.MultiSelect = false; this.dataGridView.Name = "dataGridView"; @@ -390,24 +390,24 @@ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5; - private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_roleGrade; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_roleMsg; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit; + private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime; + private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime; + private Krypton.Toolkit.KryptonLabel kryptonLabel2; + private Krypton.Toolkit.KryptonLabel kryptonLabel5; + private Krypton.Toolkit.KryptonComboBox kcmb_roleGrade; + private Krypton.Toolkit.KryptonTextBox ktb_roleMsg; + private Krypton.Toolkit.KryptonLabel kryptonLabel4; + private Krypton.Toolkit.KryptonLabel kryptonLabel3; + private Krypton.Toolkit.KryptonButton kbt_Query; + private Krypton.Toolkit.KryptonButton kbt_Add; + private Krypton.Toolkit.KryptonButton kbt_Reset; + private Krypton.Toolkit.KryptonButton kbt_Edit; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; - private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView; - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel6; - private ComponentFactory.Krypton.Toolkit.KryptonButton ktb_setRoleMenuPermission; + private Krypton.Toolkit.KryptonButton kbt_Delete; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; + private Krypton.Toolkit.KryptonDataGridView dataGridView; + private Krypton.Toolkit.KryptonPanel kryptonPanel6; + private Krypton.Toolkit.KryptonButton ktb_setRoleMenuPermission; } } \ No newline at end of file diff --git a/CleanMachineHMI/forms/frmRole.cs b/CleanMachineHMI/forms/frmRole.cs index 191468e..085dabf 100644 --- a/CleanMachineHMI/forms/frmRole.cs +++ b/CleanMachineHMI/forms/frmRole.cs @@ -1,7 +1,7 @@ using CleanMachineHMI.Domain.Enums; using CleanMachineHMI.frmChild; using CleanMachineHMI.Utils; -using ComponentFactory.Krypton.Toolkit; +using Krypton.Toolkit; using LeadDataBaseUtility; using System; using System.Collections.Generic; diff --git a/CleanMachineHMI/forms/frmSchedule.Designer.cs b/CleanMachineHMI/forms/frmSchedule.Designer.cs index e7e0215..bb28f98 100644 --- a/CleanMachineHMI/forms/frmSchedule.Designer.cs +++ b/CleanMachineHMI/forms/frmSchedule.Designer.cs @@ -28,23 +28,23 @@ /// private void InitializeComponent() { - this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.kryptonPanel3 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView(); - this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); - this.mTxtEndTime = new ComponentFactory.Krypton.Toolkit.KryptonMaskedTextBox(); - this.mTxtBeginTime = new ComponentFactory.Krypton.Toolkit.KryptonMaskedTextBox(); - this.lbEnd = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.lbBegin = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.btnDeleted = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.btnSave = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.btnEdit = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.txtScheduleName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); - this.lbScheduleName = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.txtScheduleCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); - this.lbScheduleCode = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); + this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel(); + this.kryptonPanel3 = new Krypton.Toolkit.KryptonPanel(); + this.dataGridView = new Krypton.Toolkit.KryptonDataGridView(); + this.kryptonPanel2 = new Krypton.Toolkit.KryptonPanel(); + this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox(); + this.mTxtEndTime = new Krypton.Toolkit.KryptonMaskedTextBox(); + this.mTxtBeginTime = new Krypton.Toolkit.KryptonMaskedTextBox(); + this.lbEnd = new Krypton.Toolkit.KryptonLabel(); + this.lbBegin = new Krypton.Toolkit.KryptonLabel(); + this.btnDeleted = new Krypton.Toolkit.KryptonButton(); + this.btnSave = new Krypton.Toolkit.KryptonButton(); + this.btnEdit = new Krypton.Toolkit.KryptonButton(); + this.btnAdd = new Krypton.Toolkit.KryptonButton(); + this.txtScheduleName = new Krypton.Toolkit.KryptonTextBox(); + this.lbScheduleName = new Krypton.Toolkit.KryptonLabel(); + this.txtScheduleCode = new Krypton.Toolkit.KryptonTextBox(); + this.lbScheduleCode = new Krypton.Toolkit.KryptonLabel(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit(); @@ -88,7 +88,7 @@ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.dataGridView.ColumnHeadersHeight = 50; this.dataGridView.DataMember = "TestData"; - this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed; + this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed; this.dataGridView.Location = new System.Drawing.Point(7, 9); this.dataGridView.MultiSelect = false; this.dataGridView.Name = "dataGridView"; @@ -97,7 +97,7 @@ this.dataGridView.RowHeadersWidth = 100; this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dataGridView.Size = new System.Drawing.Size(632, 780); - this.dataGridView.StateCommon.BackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.GridBackgroundList; + this.dataGridView.StateCommon.BackStyle = Krypton.Toolkit.PaletteBackStyle.GridBackgroundList; this.dataGridView.StateCommon.DataCell.Content.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.dataGridView.StateCommon.HeaderColumn.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.dataGridView.StateCommon.HeaderRow.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); @@ -157,7 +157,7 @@ // // lbEnd // - this.lbEnd.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl; + this.lbEnd.LabelStyle = Krypton.Toolkit.LabelStyle.TitleControl; this.lbEnd.Location = new System.Drawing.Point(20, 271); this.lbEnd.Name = "lbEnd"; this.lbEnd.Size = new System.Drawing.Size(82, 26); @@ -167,7 +167,7 @@ // // lbBegin // - this.lbBegin.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl; + this.lbBegin.LabelStyle = Krypton.Toolkit.LabelStyle.TitleControl; this.lbBegin.Location = new System.Drawing.Point(20, 192); this.lbBegin.Name = "lbBegin"; this.lbBegin.Size = new System.Drawing.Size(82, 26); @@ -224,16 +224,16 @@ this.txtScheduleName.AlwaysActive = false; this.txtScheduleName.Location = new System.Drawing.Point(20, 143); this.txtScheduleName.Name = "txtScheduleName"; - this.txtScheduleName.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003; + this.txtScheduleName.PaletteMode = Krypton.Toolkit.PaletteMode.ProfessionalOffice2003; this.txtScheduleName.Size = new System.Drawing.Size(421, 35); this.txtScheduleName.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); - this.txtScheduleName.StateActive.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right))); - this.txtScheduleName.StateCommon.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right))); - this.txtScheduleName.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias; + this.txtScheduleName.StateActive.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); + this.txtScheduleName.StateCommon.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); + this.txtScheduleName.StateCommon.Border.GraphicsHint = Krypton.Toolkit.PaletteGraphicsHint.AntiAlias; this.txtScheduleName.StateCommon.Border.Rounding = 4; this.txtScheduleName.StateCommon.Border.Width = 2; this.txtScheduleName.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); @@ -241,7 +241,7 @@ // // lbScheduleName // - this.lbScheduleName.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl; + this.lbScheduleName.LabelStyle = Krypton.Toolkit.LabelStyle.TitleControl; this.lbScheduleName.Location = new System.Drawing.Point(20, 116); this.lbScheduleName.Name = "lbScheduleName"; this.lbScheduleName.Size = new System.Drawing.Size(82, 26); @@ -254,16 +254,16 @@ this.txtScheduleCode.AlwaysActive = false; this.txtScheduleCode.Location = new System.Drawing.Point(20, 72); this.txtScheduleCode.Name = "txtScheduleCode"; - this.txtScheduleCode.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003; + this.txtScheduleCode.PaletteMode = Krypton.Toolkit.PaletteMode.ProfessionalOffice2003; this.txtScheduleCode.Size = new System.Drawing.Size(421, 35); this.txtScheduleCode.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); - this.txtScheduleCode.StateActive.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right))); - this.txtScheduleCode.StateCommon.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right))); - this.txtScheduleCode.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias; + this.txtScheduleCode.StateActive.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); + this.txtScheduleCode.StateCommon.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); + this.txtScheduleCode.StateCommon.Border.GraphicsHint = Krypton.Toolkit.PaletteGraphicsHint.AntiAlias; this.txtScheduleCode.StateCommon.Border.Rounding = 4; this.txtScheduleCode.StateCommon.Border.Width = 2; this.txtScheduleCode.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); @@ -271,7 +271,7 @@ // // lbScheduleCode // - this.lbScheduleCode.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl; + this.lbScheduleCode.LabelStyle = Krypton.Toolkit.LabelStyle.TitleControl; this.lbScheduleCode.Location = new System.Drawing.Point(20, 45); this.lbScheduleCode.Name = "lbScheduleCode"; this.lbScheduleCode.Size = new System.Drawing.Size(82, 26); @@ -305,22 +305,22 @@ } #endregion - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1; - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; - private ComponentFactory.Krypton.Toolkit.KryptonButton btnDeleted; - private ComponentFactory.Krypton.Toolkit.KryptonButton btnSave; - private ComponentFactory.Krypton.Toolkit.KryptonButton btnEdit; - private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtScheduleName; - private ComponentFactory.Krypton.Toolkit.KryptonLabel lbScheduleName; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtScheduleCode; - private ComponentFactory.Krypton.Toolkit.KryptonLabel lbScheduleCode; - private ComponentFactory.Krypton.Toolkit.KryptonLabel lbBegin; - private ComponentFactory.Krypton.Toolkit.KryptonLabel lbEnd; - private ComponentFactory.Krypton.Toolkit.KryptonMaskedTextBox mTxtEndTime; - private ComponentFactory.Krypton.Toolkit.KryptonMaskedTextBox mTxtBeginTime; - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel3; - private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView; + private Krypton.Toolkit.KryptonPanel kryptonPanel1; + private Krypton.Toolkit.KryptonPanel kryptonPanel2; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; + private Krypton.Toolkit.KryptonButton btnDeleted; + private Krypton.Toolkit.KryptonButton btnSave; + private Krypton.Toolkit.KryptonButton btnEdit; + private Krypton.Toolkit.KryptonButton btnAdd; + private Krypton.Toolkit.KryptonTextBox txtScheduleName; + private Krypton.Toolkit.KryptonLabel lbScheduleName; + private Krypton.Toolkit.KryptonTextBox txtScheduleCode; + private Krypton.Toolkit.KryptonLabel lbScheduleCode; + private Krypton.Toolkit.KryptonLabel lbBegin; + private Krypton.Toolkit.KryptonLabel lbEnd; + private Krypton.Toolkit.KryptonMaskedTextBox mTxtEndTime; + private Krypton.Toolkit.KryptonMaskedTextBox mTxtBeginTime; + private Krypton.Toolkit.KryptonPanel kryptonPanel3; + private Krypton.Toolkit.KryptonDataGridView dataGridView; } } \ No newline at end of file diff --git a/CleanMachineHMI/forms/frmSchedule.cs b/CleanMachineHMI/forms/frmSchedule.cs index 7731ce2..b7568e6 100644 --- a/CleanMachineHMI/forms/frmSchedule.cs +++ b/CleanMachineHMI/forms/frmSchedule.cs @@ -1,6 +1,6 @@ using CleanMachineHMI.Domain.Enums; using CleanMachineHMI.Utils; -using ComponentFactory.Krypton.Toolkit; +using Krypton.Toolkit; using LeadDataBaseUtility; using System; using System.Collections.Generic; @@ -159,7 +159,7 @@ namespace CleanMachineHMI.forms case EnumOperateType.Add: sql = $@"INSERT INTO SYS_SCHEDULE_DTL(SCHEDULE_CODE,SCHEDULE_NAME,BEGIN_TIME,END_TIME,CREATE_BY,UPDATE_BY) " + $@"VALUES('{txtScheduleCode.Text}','{txtScheduleName.Text}', - '{mTxtBeginTime.Text}','{mTxtEndTime.Text}',{GlobalHelper.UserInfo.USER_ID},{GlobalHelper.UserInfo.USER_ID})"; + '{mTxtBeginTime.Text}','{mTxtEndTime.Text}',{GlobalHelper.UserInfo.UserId},{GlobalHelper.UserInfo.UserId})"; affterRow = LeadDbHelperSQLite.ExecuteSql(sql); if (affterRow == 1) { @@ -171,7 +171,7 @@ namespace CleanMachineHMI.forms sql = $@"UPDATE SYS_SCHEDULE_DTL SET SCHEDULE_NAME='{txtScheduleName.Text}', BEGIN_TIME='{mTxtBeginTime.Text}', END_TIME='{mTxtEndTime.Text}', - UPDATE_BY='{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME='{now}'" + + UPDATE_BY='{GlobalHelper.UserInfo.UserId}',UPDATE_TIME='{now}'" + $"WHERE SCHEDULE_CODE='{txtScheduleCode.Text}'"; affterRow = LeadDbHelperSQLite.ExecuteSql(sql); if (affterRow == 1) @@ -181,7 +181,7 @@ namespace CleanMachineHMI.forms } break; case EnumOperateType.Deleted: - sql = $@"UPDATE SYS_SCHEDULE_DTL SET DEL_FLAG='1',UPDATE_BY='{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME='{now}'" + + sql = $@"UPDATE SYS_SCHEDULE_DTL SET DEL_FLAG='1',UPDATE_BY='{GlobalHelper.UserInfo.UserId}',UPDATE_TIME='{now}'" + $"WHERE SCHEDULE_CODE='{txtScheduleCode.Text}'"; affterRow = LeadDbHelperSQLite.ExecuteSql(sql); if (affterRow == 1) diff --git a/CleanMachineHMI/forms/frmSheetType.Designer.cs b/CleanMachineHMI/forms/frmSheetType.Designer.cs index 0f3add6..31ac3a3 100644 --- a/CleanMachineHMI/forms/frmSheetType.Designer.cs +++ b/CleanMachineHMI/forms/frmSheetType.Designer.cs @@ -28,25 +28,25 @@ /// private void InitializeComponent() { - this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); - this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView(); - this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); + this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel(); + this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox(); + this.dataGridView = new Krypton.Toolkit.KryptonDataGridView(); + this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); - this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton(); + this.kbt_Reset = new Krypton.Toolkit.KryptonButton(); + this.kbt_Edit = new Krypton.Toolkit.KryptonButton(); + this.kbt_Delete = new Krypton.Toolkit.KryptonButton(); + this.kbt_Query = new Krypton.Toolkit.KryptonButton(); + this.kbt_Add = new Krypton.Toolkit.KryptonButton(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); - this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.ktb_SheetTypeCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); - this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.ktb_SheetTypeName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); + this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel(); + this.ktb_SheetTypeCode = new Krypton.Toolkit.KryptonTextBox(); + this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel(); + this.ktb_SheetTypeName = new Krypton.Toolkit.KryptonTextBox(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit(); @@ -76,7 +76,7 @@ // this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly; this.kryptonGroupBox2.CaptionOverlap = 0D; - this.kryptonGroupBox2.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl; + this.kryptonGroupBox2.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl; this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 129); this.kryptonGroupBox2.Name = "kryptonGroupBox2"; @@ -97,7 +97,7 @@ this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dataGridView.DataMember = "TestData"; this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill; - this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed; + this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed; this.dataGridView.Location = new System.Drawing.Point(0, 0); this.dataGridView.MultiSelect = false; this.dataGridView.Name = "dataGridView"; @@ -335,24 +335,24 @@ #endregion - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; - private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView; + private Krypton.Toolkit.KryptonPanel kryptonPanel1; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; + private Krypton.Toolkit.KryptonDataGridView dataGridView; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete; + private Krypton.Toolkit.KryptonButton kbt_Query; + private Krypton.Toolkit.KryptonButton kbt_Reset; + private Krypton.Toolkit.KryptonButton kbt_Add; + private Krypton.Toolkit.KryptonButton kbt_Edit; + private Krypton.Toolkit.KryptonButton kbt_Delete; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_SheetTypeCode; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_SheetTypeName; + private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime; + private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime; + private Krypton.Toolkit.KryptonLabel kryptonLabel2; + private Krypton.Toolkit.KryptonLabel kryptonLabel5; + private Krypton.Toolkit.KryptonTextBox ktb_SheetTypeCode; + private Krypton.Toolkit.KryptonLabel kryptonLabel4; + private Krypton.Toolkit.KryptonLabel kryptonLabel3; + private Krypton.Toolkit.KryptonTextBox ktb_SheetTypeName; } } \ No newline at end of file diff --git a/CleanMachineHMI/forms/frmSheetType.cs b/CleanMachineHMI/forms/frmSheetType.cs index dbc9ca4..9f9837f 100644 --- a/CleanMachineHMI/forms/frmSheetType.cs +++ b/CleanMachineHMI/forms/frmSheetType.cs @@ -1,7 +1,7 @@ using CleanMachineHMI.Domain.Enums; using CleanMachineHMI.frmChild; using CleanMachineHMI.Utils; -using ComponentFactory.Krypton.Toolkit; +using Krypton.Toolkit; using LeadDataBaseUtility; using System; using System.Collections.Generic; diff --git a/CleanMachineHMI/forms/frmUser.Designer.cs b/CleanMachineHMI/forms/frmUser.Designer.cs index 7b4f342..93a19e5 100644 --- a/CleanMachineHMI/forms/frmUser.Designer.cs +++ b/CleanMachineHMI/forms/frmUser.Designer.cs @@ -28,25 +28,25 @@ /// private void InitializeComponent() { - this.kryptonPanel6 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); - this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView(); - this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); + this.kryptonPanel6 = new Krypton.Toolkit.KryptonPanel(); + this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox(); + this.dataGridView = new Krypton.Toolkit.KryptonDataGridView(); + this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); - this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton(); + this.kbt_Reset = new Krypton.Toolkit.KryptonButton(); + this.kbt_Edit = new Krypton.Toolkit.KryptonButton(); + this.kbt_Delete = new Krypton.Toolkit.KryptonButton(); + this.kbt_Query = new Krypton.Toolkit.KryptonButton(); + this.kbt_Add = new Krypton.Toolkit.KryptonButton(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); - this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kcmb_gender = new ComponentFactory.Krypton.Toolkit.KryptonComboBox(); - this.ktb_userMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); - this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); + this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel(); + this.kcmb_gender = new Krypton.Toolkit.KryptonComboBox(); + this.ktb_userMsg = new Krypton.Toolkit.KryptonTextBox(); + this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel(); this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -82,7 +82,7 @@ // this.kryptonGroupBox1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly; this.kryptonGroupBox1.CaptionOverlap = 0D; - this.kryptonGroupBox1.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl; + this.kryptonGroupBox1.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl; this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 129); this.kryptonGroupBox1.Name = "kryptonGroupBox1"; @@ -103,7 +103,7 @@ this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dataGridView.DataMember = "TestData"; this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill; - this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed; + this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed; this.dataGridView.Location = new System.Drawing.Point(0, 0); this.dataGridView.MultiSelect = false; this.dataGridView.Name = "dataGridView"; @@ -370,28 +370,28 @@ } #endregion - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel6; + private Krypton.Toolkit.KryptonPanel kryptonPanel6; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; - private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; + private Krypton.Toolkit.KryptonDataGridView dataGridView; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5; - private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_gender; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_userMsg; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3; + private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime; + private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime; + private Krypton.Toolkit.KryptonLabel kryptonLabel2; + private Krypton.Toolkit.KryptonLabel kryptonLabel5; + private Krypton.Toolkit.KryptonComboBox kcmb_gender; + private Krypton.Toolkit.KryptonTextBox ktb_userMsg; + private Krypton.Toolkit.KryptonLabel kryptonLabel4; + private Krypton.Toolkit.KryptonLabel kryptonLabel3; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete; + private Krypton.Toolkit.KryptonButton kbt_Query; + private Krypton.Toolkit.KryptonButton kbt_Reset; + private Krypton.Toolkit.KryptonButton kbt_Add; + private Krypton.Toolkit.KryptonButton kbt_Edit; + private Krypton.Toolkit.KryptonButton kbt_Delete; } } \ No newline at end of file diff --git a/CleanMachineHMI/forms/frmUser.cs b/CleanMachineHMI/forms/frmUser.cs index 6298c67..4152fa6 100644 --- a/CleanMachineHMI/forms/frmUser.cs +++ b/CleanMachineHMI/forms/frmUser.cs @@ -1,7 +1,7 @@ using CleanMachineHMI.Domain.Enums; using CleanMachineHMI.frmChild; using CleanMachineHMI.Utils; -using ComponentFactory.Krypton.Toolkit; +using Krypton.Toolkit; using LeadDataBaseUtility; using System; using System.Collections.Generic; @@ -47,9 +47,9 @@ namespace CleanMachineHMI.forms { sql += $" AND CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'"; } - if (GlobalHelper.UserInfo.ROLE_GRADE != 100) + if (GlobalHelper.UserInfo.RoleGrade != 100) { - sql += $" AND USER_ID = '{GlobalHelper.UserInfo.USER_ID}'"; + sql += $" AND USER_ID = '{GlobalHelper.UserInfo.UserId}'"; } DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0]; diff --git a/CleanMachineHMI/forms/frmWarning.Designer.cs b/CleanMachineHMI/forms/frmWarning.Designer.cs index 96dec2e..5d9a4c4 100644 --- a/CleanMachineHMI/forms/frmWarning.Designer.cs +++ b/CleanMachineHMI/forms/frmWarning.Designer.cs @@ -28,29 +28,29 @@ /// private void InitializeComponent() { - this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); + this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); - this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton(); + this.kbt_Reset = new Krypton.Toolkit.KryptonButton(); + this.kbt_Edit = new Krypton.Toolkit.KryptonButton(); + this.kbt_Delete = new Krypton.Toolkit.KryptonButton(); + this.kbt_Query = new Krypton.Toolkit.KryptonButton(); + this.kbt_Add = new Krypton.Toolkit.KryptonButton(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); - this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.ktb_WarningMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); - this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kcmb_WarningType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox(); + this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel(); + this.ktb_WarningMsg = new Krypton.Toolkit.KryptonTextBox(); + this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel(); + this.kcmb_WarningType = new Krypton.Toolkit.KryptonComboBox(); this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.kryptonPanel6 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); - this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView(); + this.kryptonPanel6 = new Krypton.Toolkit.KryptonPanel(); + this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox(); + this.dataGridView = new Krypton.Toolkit.KryptonDataGridView(); ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit(); this.kryptonGroupBox2.Panel.SuspendLayout(); @@ -308,7 +308,7 @@ // this.kryptonGroupBox1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly; this.kryptonGroupBox1.CaptionOverlap = 0D; - this.kryptonGroupBox1.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl; + this.kryptonGroupBox1.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl; this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 128); this.kryptonGroupBox1.Name = "kryptonGroupBox1"; @@ -329,7 +329,7 @@ this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dataGridView.DataMember = "TestData"; this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill; - this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed; + this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed; this.dataGridView.Location = new System.Drawing.Point(0, 0); this.dataGridView.MultiSelect = false; this.dataGridView.Name = "dataGridView"; @@ -369,28 +369,28 @@ } #endregion - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel6; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; - private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView; + private Krypton.Toolkit.KryptonPanel kryptonPanel6; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; + private Krypton.Toolkit.KryptonDataGridView dataGridView; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit; - private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete; + private Krypton.Toolkit.KryptonButton kbt_Query; + private Krypton.Toolkit.KryptonButton kbt_Reset; + private Krypton.Toolkit.KryptonButton kbt_Add; + private Krypton.Toolkit.KryptonButton kbt_Edit; + private Krypton.Toolkit.KryptonButton kbt_Delete; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_WarningMsg; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3; - private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_WarningType; + private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime; + private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime; + private Krypton.Toolkit.KryptonLabel kryptonLabel2; + private Krypton.Toolkit.KryptonLabel kryptonLabel5; + private Krypton.Toolkit.KryptonTextBox ktb_WarningMsg; + private Krypton.Toolkit.KryptonLabel kryptonLabel4; + private Krypton.Toolkit.KryptonLabel kryptonLabel3; + private Krypton.Toolkit.KryptonComboBox kcmb_WarningType; } } \ No newline at end of file diff --git a/CleanMachineHMI/forms/frmWarning.cs b/CleanMachineHMI/forms/frmWarning.cs index 0046dfe..6b78844 100644 --- a/CleanMachineHMI/forms/frmWarning.cs +++ b/CleanMachineHMI/forms/frmWarning.cs @@ -1,7 +1,7 @@ using CleanMachineHMI.Domain.Enums; using CleanMachineHMI.frmChild; using CleanMachineHMI.Utils; -using ComponentFactory.Krypton.Toolkit; +using Krypton.Toolkit; using LeadDataBaseUtility; using System; using System.Collections.Generic; diff --git a/CleanMachineHMI/forms/frmWorkingPallet.Designer.cs b/CleanMachineHMI/forms/frmWorkingPallet.Designer.cs index 01e87eb..e785964 100644 --- a/CleanMachineHMI/forms/frmWorkingPallet.Designer.cs +++ b/CleanMachineHMI/forms/frmWorkingPallet.Designer.cs @@ -28,21 +28,21 @@ /// private void InitializeComponent() { - this.kryptonPanel5 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); - this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView(); - this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); + this.kryptonPanel5 = new Krypton.Toolkit.KryptonPanel(); + this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox(); + this.dataGridView = new Krypton.Toolkit.KryptonDataGridView(); + this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); - this.lbStatus = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.lbCode = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.txtCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); - this.lbBeginTime = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.lbEndTime = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.dtpBeginTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.dtpEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker(); - this.btnSearch = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.cmbStatus = new ComponentFactory.Krypton.Toolkit.KryptonComboBox(); + this.lbStatus = new Krypton.Toolkit.KryptonLabel(); + this.lbCode = new Krypton.Toolkit.KryptonLabel(); + this.txtCode = new Krypton.Toolkit.KryptonTextBox(); + this.lbBeginTime = new Krypton.Toolkit.KryptonLabel(); + this.lbEndTime = new Krypton.Toolkit.KryptonLabel(); + this.dtpBeginTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.dtpEndTime = new Krypton.Toolkit.KryptonDateTimePicker(); + this.btnSearch = new Krypton.Toolkit.KryptonButton(); + this.kryptonButton1 = new Krypton.Toolkit.KryptonButton(); + this.cmbStatus = new Krypton.Toolkit.KryptonComboBox(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel5)).BeginInit(); this.kryptonPanel5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit(); @@ -91,7 +91,7 @@ | System.Windows.Forms.AnchorStyles.Right))); this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; this.dataGridView.DataMember = "TestData"; - this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed; + this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed; this.dataGridView.Location = new System.Drawing.Point(10, 8); this.dataGridView.MultiSelect = false; this.dataGridView.Name = "dataGridView"; @@ -169,15 +169,15 @@ this.txtCode.Anchor = System.Windows.Forms.AnchorStyles.None; this.txtCode.Location = new System.Drawing.Point(175, 5); this.txtCode.Name = "txtCode"; - this.txtCode.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003; + this.txtCode.PaletteMode = Krypton.Toolkit.PaletteMode.ProfessionalOffice2003; this.txtCode.Size = new System.Drawing.Size(261, 25); this.txtCode.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); - this.txtCode.StateActive.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right))); - this.txtCode.StateCommon.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right))); + this.txtCode.StateActive.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); + this.txtCode.StateCommon.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); this.txtCode.StateCommon.Border.Rounding = 4; this.txtCode.StateCommon.Border.Width = 1; this.txtCode.TabIndex = 10; @@ -281,20 +281,20 @@ #endregion - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel5; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; - private ComponentFactory.Krypton.Toolkit.KryptonLabel lbCode; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtCode; - private ComponentFactory.Krypton.Toolkit.KryptonLabel lbStatus; + private Krypton.Toolkit.KryptonPanel kryptonPanel5; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; + private Krypton.Toolkit.KryptonLabel lbCode; + private Krypton.Toolkit.KryptonTextBox txtCode; + private Krypton.Toolkit.KryptonLabel lbStatus; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; - private ComponentFactory.Krypton.Toolkit.KryptonLabel lbBeginTime; - private ComponentFactory.Krypton.Toolkit.KryptonLabel lbEndTime; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker dtpBeginTime; - private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker dtpEndTime; - private ComponentFactory.Krypton.Toolkit.KryptonButton btnSearch; - private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView; - private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1; - private ComponentFactory.Krypton.Toolkit.KryptonComboBox cmbStatus; + private Krypton.Toolkit.KryptonLabel lbBeginTime; + private Krypton.Toolkit.KryptonLabel lbEndTime; + private Krypton.Toolkit.KryptonDateTimePicker dtpBeginTime; + private Krypton.Toolkit.KryptonDateTimePicker dtpEndTime; + private Krypton.Toolkit.KryptonButton btnSearch; + private Krypton.Toolkit.KryptonDataGridView dataGridView; + private Krypton.Toolkit.KryptonButton kryptonButton1; + private Krypton.Toolkit.KryptonComboBox cmbStatus; } } \ No newline at end of file diff --git a/CleanMachineHMI/forms/frmWorkingPallet.cs b/CleanMachineHMI/forms/frmWorkingPallet.cs index 10bb949..3f3da75 100644 --- a/CleanMachineHMI/forms/frmWorkingPallet.cs +++ b/CleanMachineHMI/forms/frmWorkingPallet.cs @@ -1,6 +1,6 @@ using CleanMachineHMI.Domain.Enums; using CleanMachineHMI.Utils; -using ComponentFactory.Krypton.Toolkit; +using Krypton.Toolkit; using LeadDataBaseUtility; using System; using System.Collections.Generic; diff --git a/CleanMachineHMI/frmChild/frmAddContaminationType.cs b/CleanMachineHMI/frmChild/frmAddContaminationType.cs index 723fc8f..21e2545 100644 --- a/CleanMachineHMI/frmChild/frmAddContaminationType.cs +++ b/CleanMachineHMI/frmChild/frmAddContaminationType.cs @@ -145,7 +145,7 @@ namespace CleanMachineHMI.frmChild if (row > 0) { KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染类型数据成功!", "AddSuccessInfo")); - frmContaminationType.RefreshFrmHost(); + frmContaminationType.RefreshFrmHost(); this.Close(); } else diff --git a/CleanMachineHMI/frmChild/frmEditCleanCode.cs b/CleanMachineHMI/frmChild/frmEditCleanCode.cs index fe947d1..0cdf30b 100644 --- a/CleanMachineHMI/frmChild/frmEditCleanCode.cs +++ b/CleanMachineHMI/frmChild/frmEditCleanCode.cs @@ -84,6 +84,7 @@ namespace CleanMachineHMI.frmChild { //KryptonMessageBox.Show("修改清洗方式数据成功!"); KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑清洗方式数据成功!", "EditSuccessInfo")); + frmCleanMode.RefreshFrmHost(); this.Close(); } diff --git a/CleanMachineHMI/frmWarning.Designer.cs b/CleanMachineHMI/frmWarning.Designer.cs index f673783..68fb847 100644 --- a/CleanMachineHMI/frmWarning.Designer.cs +++ b/CleanMachineHMI/frmWarning.Designer.cs @@ -28,29 +28,29 @@ /// private void InitializeComponent() { - this.btnDeleted = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.btnSave = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.btnEdit = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.btnExit = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton(); - this.kryptonTextBox4 = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); - this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonTextBox5 = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); - this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonTextBox6 = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); - this.kryptonLabel6 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); - this.kryptonTextBox7 = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); - this.kryptonPanel4 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); - this.kryptonLabel7 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); + this.btnDeleted = new Krypton.Toolkit.KryptonButton(); + this.btnSave = new Krypton.Toolkit.KryptonButton(); + this.btnEdit = new Krypton.Toolkit.KryptonButton(); + this.btnExit = new Krypton.Toolkit.KryptonButton(); + this.btnAdd = new Krypton.Toolkit.KryptonButton(); + this.kryptonTextBox4 = new Krypton.Toolkit.KryptonTextBox(); + this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonTextBox5 = new Krypton.Toolkit.KryptonTextBox(); + this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonTextBox6 = new Krypton.Toolkit.KryptonTextBox(); + this.kryptonLabel6 = new Krypton.Toolkit.KryptonLabel(); + this.kryptonTextBox7 = new Krypton.Toolkit.KryptonTextBox(); + this.kryptonPanel4 = new Krypton.Toolkit.KryptonPanel(); + this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox(); + this.kryptonLabel7 = new Krypton.Toolkit.KryptonLabel(); this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.kryptonDataGridView2 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView(); - this.kryptonPanel6 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.kryptonPanel5 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); - this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView(); + this.kryptonDataGridView2 = new Krypton.Toolkit.KryptonDataGridView(); + this.kryptonPanel6 = new Krypton.Toolkit.KryptonPanel(); + this.kryptonPanel5 = new Krypton.Toolkit.KryptonPanel(); + this.dataGridView = new Krypton.Toolkit.KryptonDataGridView(); this.报警名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -126,23 +126,23 @@ this.kryptonTextBox4.AlwaysActive = false; this.kryptonTextBox4.Location = new System.Drawing.Point(148, 258); this.kryptonTextBox4.Name = "kryptonTextBox4"; - this.kryptonTextBox4.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003; + this.kryptonTextBox4.PaletteMode = Krypton.Toolkit.PaletteMode.ProfessionalOffice2003; this.kryptonTextBox4.Size = new System.Drawing.Size(260, 29); this.kryptonTextBox4.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); - this.kryptonTextBox4.StateActive.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right))); - this.kryptonTextBox4.StateCommon.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right))); - this.kryptonTextBox4.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias; + this.kryptonTextBox4.StateActive.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); + this.kryptonTextBox4.StateCommon.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); + this.kryptonTextBox4.StateCommon.Border.GraphicsHint = Krypton.Toolkit.PaletteGraphicsHint.AntiAlias; this.kryptonTextBox4.StateCommon.Border.Rounding = 4; this.kryptonTextBox4.StateCommon.Border.Width = 2; this.kryptonTextBox4.TabIndex = 8; // // kryptonLabel4 // - this.kryptonLabel4.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl; + this.kryptonLabel4.LabelStyle = Krypton.Toolkit.LabelStyle.TitleControl; this.kryptonLabel4.Location = new System.Drawing.Point(35, 259); this.kryptonLabel4.Name = "kryptonLabel4"; this.kryptonLabel4.Size = new System.Drawing.Size(95, 29); @@ -154,23 +154,23 @@ this.kryptonTextBox5.AlwaysActive = false; this.kryptonTextBox5.Location = new System.Drawing.Point(148, 183); this.kryptonTextBox5.Name = "kryptonTextBox5"; - this.kryptonTextBox5.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003; + this.kryptonTextBox5.PaletteMode = Krypton.Toolkit.PaletteMode.ProfessionalOffice2003; this.kryptonTextBox5.Size = new System.Drawing.Size(260, 29); this.kryptonTextBox5.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); - this.kryptonTextBox5.StateActive.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right))); - this.kryptonTextBox5.StateCommon.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right))); - this.kryptonTextBox5.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias; + this.kryptonTextBox5.StateActive.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); + this.kryptonTextBox5.StateCommon.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); + this.kryptonTextBox5.StateCommon.Border.GraphicsHint = Krypton.Toolkit.PaletteGraphicsHint.AntiAlias; this.kryptonTextBox5.StateCommon.Border.Rounding = 4; this.kryptonTextBox5.StateCommon.Border.Width = 2; this.kryptonTextBox5.TabIndex = 6; // // kryptonLabel5 // - this.kryptonLabel5.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl; + this.kryptonLabel5.LabelStyle = Krypton.Toolkit.LabelStyle.TitleControl; this.kryptonLabel5.Location = new System.Drawing.Point(35, 184); this.kryptonLabel5.Name = "kryptonLabel5"; this.kryptonLabel5.Size = new System.Drawing.Size(95, 29); @@ -182,23 +182,23 @@ this.kryptonTextBox6.AlwaysActive = false; this.kryptonTextBox6.Location = new System.Drawing.Point(148, 108); this.kryptonTextBox6.Name = "kryptonTextBox6"; - this.kryptonTextBox6.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003; + this.kryptonTextBox6.PaletteMode = Krypton.Toolkit.PaletteMode.ProfessionalOffice2003; this.kryptonTextBox6.Size = new System.Drawing.Size(260, 29); this.kryptonTextBox6.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); - this.kryptonTextBox6.StateActive.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right))); - this.kryptonTextBox6.StateCommon.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right))); - this.kryptonTextBox6.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias; + this.kryptonTextBox6.StateActive.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); + this.kryptonTextBox6.StateCommon.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); + this.kryptonTextBox6.StateCommon.Border.GraphicsHint = Krypton.Toolkit.PaletteGraphicsHint.AntiAlias; this.kryptonTextBox6.StateCommon.Border.Rounding = 4; this.kryptonTextBox6.StateCommon.Border.Width = 2; this.kryptonTextBox6.TabIndex = 4; // // kryptonLabel6 // - this.kryptonLabel6.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl; + this.kryptonLabel6.LabelStyle = Krypton.Toolkit.LabelStyle.TitleControl; this.kryptonLabel6.Location = new System.Drawing.Point(35, 109); this.kryptonLabel6.Name = "kryptonLabel6"; this.kryptonLabel6.Size = new System.Drawing.Size(95, 29); @@ -210,16 +210,16 @@ this.kryptonTextBox7.AlwaysActive = false; this.kryptonTextBox7.Location = new System.Drawing.Point(148, 42); this.kryptonTextBox7.Name = "kryptonTextBox7"; - this.kryptonTextBox7.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003; + this.kryptonTextBox7.PaletteMode = Krypton.Toolkit.PaletteMode.ProfessionalOffice2003; this.kryptonTextBox7.Size = new System.Drawing.Size(260, 29); this.kryptonTextBox7.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); - this.kryptonTextBox7.StateActive.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right))); - this.kryptonTextBox7.StateCommon.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left) - | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right))); - this.kryptonTextBox7.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias; + this.kryptonTextBox7.StateActive.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); + this.kryptonTextBox7.StateCommon.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); + this.kryptonTextBox7.StateCommon.Border.GraphicsHint = Krypton.Toolkit.PaletteGraphicsHint.AntiAlias; this.kryptonTextBox7.StateCommon.Border.Rounding = 4; this.kryptonTextBox7.StateCommon.Border.Width = 2; this.kryptonTextBox7.TabIndex = 2; @@ -261,7 +261,7 @@ // // kryptonLabel7 // - this.kryptonLabel7.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl; + this.kryptonLabel7.LabelStyle = Krypton.Toolkit.LabelStyle.TitleControl; this.kryptonLabel7.Location = new System.Drawing.Point(35, 43); this.kryptonLabel7.Name = "kryptonLabel7"; this.kryptonLabel7.Size = new System.Drawing.Size(95, 29); @@ -302,14 +302,14 @@ this.kryptonDataGridView2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.kryptonDataGridView2.ColumnHeadersHeight = 50; this.kryptonDataGridView2.DataMember = "TestData"; - this.kryptonDataGridView2.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed; + this.kryptonDataGridView2.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed; this.kryptonDataGridView2.Location = new System.Drawing.Point(9, 9); this.kryptonDataGridView2.Name = "kryptonDataGridView2"; this.kryptonDataGridView2.ReadOnly = true; this.kryptonDataGridView2.RowHeadersVisible = false; this.kryptonDataGridView2.RowHeadersWidth = 100; this.kryptonDataGridView2.Size = new System.Drawing.Size(190, 801); - this.kryptonDataGridView2.StateCommon.BackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.GridBackgroundList; + this.kryptonDataGridView2.StateCommon.BackStyle = Krypton.Toolkit.PaletteBackStyle.GridBackgroundList; this.kryptonDataGridView2.StateCommon.HeaderColumn.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.kryptonDataGridView2.TabIndex = 1; // @@ -349,14 +349,14 @@ this.Column3, this.Column4}); this.dataGridView.DataMember = "TestData"; - this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed; + this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed; this.dataGridView.Location = new System.Drawing.Point(9, 9); this.dataGridView.Name = "dataGridView"; this.dataGridView.ReadOnly = true; this.dataGridView.RowHeadersVisible = false; this.dataGridView.RowHeadersWidth = 100; this.dataGridView.Size = new System.Drawing.Size(676, 801); - this.dataGridView.StateCommon.BackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.GridBackgroundList; + this.dataGridView.StateCommon.BackStyle = Krypton.Toolkit.PaletteBackStyle.GridBackgroundList; this.dataGridView.StateCommon.HeaderColumn.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.dataGridView.TabIndex = 2; // @@ -417,29 +417,29 @@ #endregion - private ComponentFactory.Krypton.Toolkit.KryptonButton btnDeleted; - private ComponentFactory.Krypton.Toolkit.KryptonButton btnSave; - private ComponentFactory.Krypton.Toolkit.KryptonButton btnEdit; - private ComponentFactory.Krypton.Toolkit.KryptonButton btnExit; - private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox kryptonTextBox4; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox kryptonTextBox5; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox kryptonTextBox6; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel6; - private ComponentFactory.Krypton.Toolkit.KryptonTextBox kryptonTextBox7; - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel4; - private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; - private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel7; + private Krypton.Toolkit.KryptonButton btnDeleted; + private Krypton.Toolkit.KryptonButton btnSave; + private Krypton.Toolkit.KryptonButton btnEdit; + private Krypton.Toolkit.KryptonButton btnExit; + private Krypton.Toolkit.KryptonButton btnAdd; + private Krypton.Toolkit.KryptonTextBox kryptonTextBox4; + private Krypton.Toolkit.KryptonLabel kryptonLabel4; + private Krypton.Toolkit.KryptonTextBox kryptonTextBox5; + private Krypton.Toolkit.KryptonLabel kryptonLabel5; + private Krypton.Toolkit.KryptonTextBox kryptonTextBox6; + private Krypton.Toolkit.KryptonLabel kryptonLabel6; + private Krypton.Toolkit.KryptonTextBox kryptonTextBox7; + private Krypton.Toolkit.KryptonPanel kryptonPanel4; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; + private Krypton.Toolkit.KryptonLabel kryptonLabel7; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; - private ComponentFactory.Krypton.Toolkit.KryptonDataGridView kryptonDataGridView2; - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel6; - private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel5; - private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView; + private Krypton.Toolkit.KryptonDataGridView kryptonDataGridView2; + private Krypton.Toolkit.KryptonPanel kryptonPanel6; + private Krypton.Toolkit.KryptonPanel kryptonPanel5; + private Krypton.Toolkit.KryptonDataGridView dataGridView; private System.Windows.Forms.DataGridViewTextBoxColumn 报警名称; private System.Windows.Forms.DataGridViewTextBoxColumn Column1; private System.Windows.Forms.DataGridViewTextBoxColumn Column2; diff --git a/CleanMachineHMI/frmWarning.cs b/CleanMachineHMI/frmWarning.cs index 979cbea..2cdabb5 100644 --- a/CleanMachineHMI/frmWarning.cs +++ b/CleanMachineHMI/frmWarning.cs @@ -1,5 +1,5 @@ using CleanMachineHMI.Utils; -using ComponentFactory.Krypton.Toolkit; +using Krypton.Toolkit; using LeadDataBaseUtility; using System; using System.Collections.Generic; @@ -24,7 +24,7 @@ namespace CleanMachineHMI public void Init() { var sql = "select * from BAS_WARNING"; - DataTable dt = LeadDbHelperSQLServer.Query(sql).Tables[0]; + DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0]; dataGridView.Rows.Clear(); dataGridView.Columns.Clear(); dataGridView.DataSource = dt; @@ -42,7 +42,7 @@ namespace CleanMachineHMI private void btnExit_Click(object sender, EventArgs e) { - AppConfig.MainForm.navigatorMain.SetNavPage(Domain.Enums.EnumFormType.Main); + // this.navigatorMain.SetNavPage(Domain.Enums.EnumFormType.Main); } } } diff --git a/CleanMachineHMI/packages.config b/CleanMachineHMI/packages.config index 23b4411..4c5f443 100644 --- a/CleanMachineHMI/packages.config +++ b/CleanMachineHMI/packages.config @@ -1,7 +1,7 @@  - - + + diff --git a/LeadDataBaseUtility/LeadDataBaseUtility.csproj b/LeadDataBaseUtility/LeadDataBaseUtility.csproj index a1483dd..d456863 100644 --- a/LeadDataBaseUtility/LeadDataBaseUtility.csproj +++ b/LeadDataBaseUtility/LeadDataBaseUtility.csproj @@ -1,120 +1,26 @@ - - - + + - Debug - AnyCPU - {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5} - Library - Properties - LeadDataBaseUtility - LeadDataBaseUtility - v4.5 - 512 - - - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - AnyCPU - false - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - true - bin\x64\Debug\ - DEBUG;TRACE - full - x64 - 7.3 - prompt - - - bin\x64\Release\ - TRACE - true - pdbonly - x64 - 7.3 - prompt - - - true - bin\x86\Debug\ - DEBUG;TRACE - full - AnyCPU - 7.3 - prompt - - - bin\x86\Release\ - TRACE - true - pdbonly - x86 - 7.3 - prompt + net48 + - - False - ..\public\MySql.Data.dll - - - False - ..\public\Oracle.ManagedDataAccess.dll - - - - - - - False - ..\public\System.Data.SQLite.dll - - - - - - + + + + - - - - - - + + + - - {925057D8-7EE8-42ED-8AA0-628AF82F10B2} - NX_LogUtility - + - - - \ No newline at end of file + + + + + + diff --git a/LeadDataBaseUtility_/App.config b/LeadDataBaseUtility_/App.config new file mode 100644 index 0000000..497a120 --- /dev/null +++ b/LeadDataBaseUtility_/App.config @@ -0,0 +1,19 @@ + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/LeadDataBaseUtility_/LeadConfigureConnectionString.cs b/LeadDataBaseUtility_/LeadConfigureConnectionString.cs new file mode 100644 index 0000000..c7626c2 --- /dev/null +++ b/LeadDataBaseUtility_/LeadConfigureConnectionString.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace LeadDataBaseUtility +{ + /// + /// 获取配置文件中的连接字符串 + /// + public class LeadConfigureConnectionString + { + /// + /// 获取配置文件中的连接字符串 + /// + /// 数据库连接字符串类型 + /// + public static string getConnectionString(string connStrType) + { + string _connectionString = ConfigurationManager.AppSettings[connStrType]; + return _connectionString; + } + } +} diff --git a/LeadDataBaseUtility_/LeadDataBaseUtility.csproj b/LeadDataBaseUtility_/LeadDataBaseUtility.csproj new file mode 100644 index 0000000..c7b0296 --- /dev/null +++ b/LeadDataBaseUtility_/LeadDataBaseUtility.csproj @@ -0,0 +1,128 @@ + + + + + + Debug + AnyCPU + {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5} + Library + Properties + LeadDataBaseUtility + LeadDataBaseUtility + v4.7.2 + 512 + + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + AnyCPU + false + false + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + false + + + true + bin\x64\Debug\ + DEBUG;TRACE + full + x64 + 7.3 + prompt + + + bin\x64\Release\ + TRACE + true + pdbonly + x64 + 7.3 + prompt + + + true + bin\x86\Debug\ + DEBUG;TRACE + full + AnyCPU + 7.3 + prompt + + + bin\x86\Release\ + TRACE + true + pdbonly + x86 + 7.3 + prompt + + + true + + + + + + + ..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.115.5\lib\net46\System.Data.SQLite.dll + + + + + + + + + + + + + + + + + + {925057D8-7EE8-42ED-8AA0-628AF82F10B2} + NX_LogUtility + + + + + + + + + + 这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。 + + + + + + + + + \ No newline at end of file diff --git a/LeadDataBaseUtility_/LeadDbHelperSQLite.cs b/LeadDataBaseUtility_/LeadDbHelperSQLite.cs new file mode 100644 index 0000000..96f2cf3 --- /dev/null +++ b/LeadDataBaseUtility_/LeadDbHelperSQLite.cs @@ -0,0 +1,112 @@ +using NX_LogUtility; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SQLite; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace LeadDataBaseUtility +{ + /// + /// Copyright20181102 (C) sunyalong + /// 数据访问抽象基础类(基于SQLite) + /// 允许修改、添加满足自己项目的需要。 + /// 添加、修改后请详细注释。违者会强制删除不予采用。 + /// + public abstract class LeadDbHelperSQLite + { + public static string connectionString = LeadConfigureConnectionString.getConnectionString("LeadSQLite"); + + /// + /// 对SQLite数据库执行增删改操作,返回受影响的行数。 + /// + /// 要执行的增删改的SQL语句 + /// + public static int ExecuteSql(string sql) + { + int affectedRows = 0; + + try + { + using (SQLiteConnection conn = new SQLiteConnection(connectionString)) + { + conn.Open(); + using (SQLiteCommand cmd = new SQLiteCommand(conn)) + { + cmd.CommandText = sql; + affectedRows = cmd.ExecuteNonQuery(); + } + conn.Close(); + } + } + catch (Exception e) + { + LogHelper.WriteLog($"数据库运行异常:【{e.Message}】。SQL语句:【{sql}】。", LogTypeEum.DbErr); + } + + return affectedRows; + } + /// + /// 执行查询语句,返回DataSet + /// + /// 查询语句 + /// DataSet + public static DataSet Query(string SQLString) + { + using (SQLiteConnection connection = new SQLiteConnection(connectionString)) + { + DataSet ds = new DataSet(); + try + { + connection.Open(); + SQLiteDataAdapter command = new SQLiteDataAdapter(SQLString, connection); + command.Fill(ds, "ds"); + connection.Close(); + } + catch (Exception e) + { + LogHelper.WriteLog($"数据库运行异常:【{e.Message}】。SQL语句:【{SQLString}】。", LogTypeEum.DbErr); + } + return ds; + } + } + /// + /// 执行一条计算查询结果语句,返回查询结果(object)。 + /// + /// 计算查询结果语句 + /// 查询结果(object) + public static object GetSingle(string SQLString) + { + using (SQLiteConnection connection = new SQLiteConnection(connectionString)) + { + using (SQLiteCommand cmd = new SQLiteCommand(SQLString, connection)) + { + try + { + connection.Open(); + object obj = cmd.ExecuteScalar(); + if ((Equals(obj, null)) || (Equals(obj, System.DBNull.Value))) + { + connection.Close(); + return null; + } + else + { + connection.Close(); + return obj; + } + } + catch (System.Data.SqlClient.SqlException e) + { + connection.Close(); + LogHelper.WriteLog($"数据库运行异常:【{e.Message}】。SQL语句:【{SQLString}】。", LogTypeEum.DbErr); + return null; + } + } + } + } + } +} diff --git a/LeadDataBaseUtility/Properties/AssemblyInfo.cs b/LeadDataBaseUtility_/Properties/AssemblyInfo.cs similarity index 100% rename from LeadDataBaseUtility/Properties/AssemblyInfo.cs rename to LeadDataBaseUtility_/Properties/AssemblyInfo.cs diff --git a/LeadDataBaseUtility_/packages.config b/LeadDataBaseUtility_/packages.config new file mode 100644 index 0000000..3a03f34 --- /dev/null +++ b/LeadDataBaseUtility_/packages.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/NX_LogUtility/NX_LogUtility.csproj b/NX_LogUtility/NX_LogUtility.csproj index e01a2df..cbe12f0 100644 --- a/NX_LogUtility/NX_LogUtility.csproj +++ b/NX_LogUtility/NX_LogUtility.csproj @@ -1,85 +1,11 @@ - - - + + - Debug - AnyCPU - {925057D8-7EE8-42ED-8AA0-628AF82F10B2} - Library - Properties - NX_LogUtility - NX_LogUtility - v4.5 - 512 - true - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - AnyCPU - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - true - bin\x64\Debug\ - DEBUG;TRACE - full - x64 - 7.3 - prompt - - - bin\x64\Release\ - TRACE - true - pdbonly - x64 - 7.3 - prompt - - - true - bin\x86\Debug\ - DEBUG;TRACE - full - AnyCPU - 7.3 - prompt - - - bin\x86\Release\ - TRACE - true - pdbonly - x86 - 7.3 - prompt + net48 + - - - - - - - - + - - - - - - \ No newline at end of file + + diff --git a/WinFormsApp1/Form1.Designer.cs b/WinFormsApp1/Form1.Designer.cs new file mode 100644 index 0000000..f773cbb --- /dev/null +++ b/WinFormsApp1/Form1.Designer.cs @@ -0,0 +1,39 @@ +namespace WinFormsApp1 +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "Form1"; + } + + #endregion + } +} \ No newline at end of file diff --git a/WinFormsApp1/Form1.cs b/WinFormsApp1/Form1.cs new file mode 100644 index 0000000..bc4553a --- /dev/null +++ b/WinFormsApp1/Form1.cs @@ -0,0 +1,10 @@ +namespace WinFormsApp1 +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/WinFormsApp1/Program.cs b/WinFormsApp1/Program.cs new file mode 100644 index 0000000..1e39c2a --- /dev/null +++ b/WinFormsApp1/Program.cs @@ -0,0 +1,17 @@ +namespace WinFormsApp1 +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + ApplicationConfiguration.Initialize(); + Application.Run(new Form1()); + } + } +} \ No newline at end of file diff --git a/WinFormsApp1/WinFormsApp1.csproj b/WinFormsApp1/WinFormsApp1.csproj new file mode 100644 index 0000000..b57c89e --- /dev/null +++ b/WinFormsApp1/WinFormsApp1.csproj @@ -0,0 +1,11 @@ + + + + WinExe + net6.0-windows + enable + true + enable + + + \ No newline at end of file diff --git a/WindowsFormsApp1/App.config b/WindowsFormsApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/WindowsFormsApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/WindowsFormsApp1/Form1.Designer.cs b/WindowsFormsApp1/Form1.Designer.cs new file mode 100644 index 0000000..fbd2a6e --- /dev/null +++ b/WindowsFormsApp1/Form1.Designer.cs @@ -0,0 +1,40 @@ +namespace WindowsFormsApp1 +{ + partial class Form1 + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows 窗体设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "Form1"; + } + + #endregion + } +} + diff --git a/WindowsFormsApp1/Form1.cs b/WindowsFormsApp1/Form1.cs new file mode 100644 index 0000000..e32d5a7 --- /dev/null +++ b/WindowsFormsApp1/Form1.cs @@ -0,0 +1,20 @@ +using 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 WindowsFormsApp1 +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + } +} diff --git a/WindowsFormsApp1/Program.cs b/WindowsFormsApp1/Program.cs new file mode 100644 index 0000000..389dad4 --- /dev/null +++ b/WindowsFormsApp1/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace WindowsFormsApp1 +{ + internal static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/NX_LogUtility/Properties/AssemblyInfo.cs b/WindowsFormsApp1/Properties/AssemblyInfo.cs similarity index 84% rename from NX_LogUtility/Properties/AssemblyInfo.cs rename to WindowsFormsApp1/Properties/AssemblyInfo.cs index ae637fc..b94681f 100644 --- a/NX_LogUtility/Properties/AssemblyInfo.cs +++ b/WindowsFormsApp1/Properties/AssemblyInfo.cs @@ -5,12 +5,12 @@ using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 -[assembly: AssemblyTitle("NX_LogUtility")] +[assembly: AssemblyTitle("WindowsFormsApp1")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("NX_LogUtility")] -[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyProduct("WindowsFormsApp1")] +[assembly: AssemblyCopyright("Copyright © 2022")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -20,7 +20,7 @@ using System.Runtime.InteropServices; [assembly: ComVisible(false)] // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID -[assembly: Guid("925057d8-7ee8-42ed-8aa0-628af82f10b2")] +[assembly: Guid("6e90bd78-3858-43ad-ab75-a37350b30d6e")] // 程序集的版本信息由下列四个值组成: // diff --git a/WindowsFormsApp1/Properties/Resources.Designer.cs b/WindowsFormsApp1/Properties/Resources.Designer.cs new file mode 100644 index 0000000..73cecd3 --- /dev/null +++ b/WindowsFormsApp1/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本: 4.0.30319.42000 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace WindowsFormsApp1.Properties +{ + + + /// + /// 强类型资源类,用于查找本地化字符串等。 + /// + // 此类是由 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() + { + } + + /// + /// 返回此类使用的缓存 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsFormsApp1.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 重写当前线程的 CurrentUICulture 属性,对 + /// 使用此强类型资源类的所有资源查找执行重写。 + /// + [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/WindowsFormsApp1/Properties/Resources.resx b/WindowsFormsApp1/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/WindowsFormsApp1/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/WindowsFormsApp1/Properties/Settings.Designer.cs b/WindowsFormsApp1/Properties/Settings.Designer.cs new file mode 100644 index 0000000..438df21 --- /dev/null +++ b/WindowsFormsApp1/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WindowsFormsApp1.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.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/WindowsFormsApp1/Properties/Settings.settings b/WindowsFormsApp1/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/WindowsFormsApp1/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/WindowsFormsApp1/WindowsFormsApp1.csproj b/WindowsFormsApp1/WindowsFormsApp1.csproj new file mode 100644 index 0000000..8fdb325 --- /dev/null +++ b/WindowsFormsApp1/WindowsFormsApp1.csproj @@ -0,0 +1,80 @@ + + + + + Debug + AnyCPU + {6E90BD78-3858-43AD-AB75-A37350B30D6E} + WinExe + WindowsFormsApp1 + WindowsFormsApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file