diff --git a/CleanMachineHMI.Model/CleanMachineHMI.Domain.csproj b/CleanMachineHMI.Model/CleanMachineHMI.Domain.csproj
new file mode 100644
index 0000000..842fdf8
--- /dev/null
+++ b/CleanMachineHMI.Model/CleanMachineHMI.Domain.csproj
@@ -0,0 +1,99 @@
+
+
+
+
+ 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
+ x64
+
+
+ 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
+
+
+
+ False
+ ..\public\ComponentFactory.Krypton.Toolkit.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI.Model/Enums/EnumFormType.cs b/CleanMachineHMI.Model/Enums/EnumFormType.cs
new file mode 100644
index 0000000..5c229ee
--- /dev/null
+++ b/CleanMachineHMI.Model/Enums/EnumFormType.cs
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace CleanMachineHMI.Domain.Enums
+{
+ ///
+ /// 窗体类别
+ ///
+ public enum EnumFormType
+ {
+ Main,
+ MainDetail,
+ MechineCheck,
+ Login,
+ Manual,
+ Parameter,
+ WorkingDataRecord,
+ PlcItemConfig,
+ PlcAlarmLog,
+ IoMonitor,
+ CurrWorkingIR,
+ CleanMode,
+ ContaminationDTL,
+ ContaminationType,
+ Role,
+ User,
+ SheetType,
+ Warning,
+ WorkingPallet,
+ Log,
+ Base,
+ DataSearch,
+ WarningLog,
+ Maintenance
+ }
+}
diff --git a/CleanMachineHMI.Model/Enums/EnumOperateType.cs b/CleanMachineHMI.Model/Enums/EnumOperateType.cs
new file mode 100644
index 0000000..fc80287
--- /dev/null
+++ b/CleanMachineHMI.Model/Enums/EnumOperateType.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CleanMachineHMI.Domain.Enums
+{
+ ///
+ /// 操作类型
+ ///
+ public enum EnumOperateType
+ {
+ Add,
+ Edit,
+ Deleted,
+ Select,
+ }
+}
diff --git a/CleanMachineHMI.Model/Models/ViewModels/FormModel.cs b/CleanMachineHMI.Model/Models/ViewModels/FormModel.cs
new file mode 100644
index 0000000..fe19f65
--- /dev/null
+++ b/CleanMachineHMI.Model/Models/ViewModels/FormModel.cs
@@ -0,0 +1,20 @@
+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
+{
+ ///
+ /// 窗体模型
+ ///
+ public class FormModel where T : Type
+ {
+ public T Form { get; set; }
+
+ public EnumFormType FormType { get; set; }
+ }
+}
diff --git a/CleanMachineHMI.Model/Models/ViewModels/UserInfo.cs b/CleanMachineHMI.Model/Models/ViewModels/UserInfo.cs
new file mode 100644
index 0000000..5b9ea24
--- /dev/null
+++ b/CleanMachineHMI.Model/Models/ViewModels/UserInfo.cs
@@ -0,0 +1,32 @@
+using ComponentFactory.Krypton.Toolkit;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CleanMachineHMI.Domain.Models.ViewModels
+{
+ ///
+ /// 用户信息
+ ///
+ public class UserInfo
+ {
+ public int USER_ID { get; set; }
+
+ public string USER_CODE { get; set; }
+
+ public string USER_NAME { get; set; }
+
+ ///
+ /// 性别.0:男;1:女。
+ ///
+ public int GENDER { get; set; }
+
+ public string SCHEDULE_CODE { get; set; }
+ public int ROLE_ID { get; set; }
+
+ public int ROLE_GRADE { get; set; }
+
+ }
+}
diff --git a/CleanMachineHMI.Model/Properties/AssemblyInfo.cs b/CleanMachineHMI.Model/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..6a87196
--- /dev/null
+++ b/CleanMachineHMI.Model/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+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
new file mode 100644
index 0000000..59a3a14
--- /dev/null
+++ b/CleanMachineHMI.sln
@@ -0,0 +1,88 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.30330.147
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "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}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "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}"
+EndProject
+Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "CleanMachineSoftware_Setup", "CleanMachineSoftware_Setup\CleanMachineSoftware_Setup.vdproj", "{497A7E73-E2E8-4134-93CA-8F6A5B72D992}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Debug|x64 = Debug|x64
+ Debug|x86 = Debug|x86
+ Release|Any CPU = Release|Any CPU
+ Release|x64 = Release|x64
+ Release|x86 = Release|x86
+ EndGlobalSection
+ 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}.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
+ {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}.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
+ {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}.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
+ {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}.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
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ VisualSVNWorkingCopyRoot = .
+ SolutionGuid = {09FA6A17-2C18-418A-81E3-612D52950830}
+ EndGlobalSection
+EndGlobal
diff --git a/CleanMachineHMI/App.config b/CleanMachineHMI/App.config
new file mode 100644
index 0000000..1a40121
--- /dev/null
+++ b/CleanMachineHMI/App.config
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/CleanMachineHMI.csproj b/CleanMachineHMI/CleanMachineHMI.csproj
new file mode 100644
index 0000000..680d71a
--- /dev/null
+++ b/CleanMachineHMI/CleanMachineHMI.csproj
@@ -0,0 +1,665 @@
+
+
+
+
+ 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
+
+
+ x64
+ 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\ComponentFactory.Krypton.Navigator.dll
+
+
+ False
+ ..\public\ComponentFactory.Krypton.Toolkit.dll
+
+
+ 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
+
+
+ False
+ ..\public\LEase.dll
+
+
+ ..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.1000.523\lib\net40\Microsoft.ReportViewer.Common.dll
+
+
+ ..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.1000.523\lib\net40\Microsoft.ReportViewer.DataVisualization.dll
+
+
+ ..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.1000.523\lib\net40\Microsoft.ReportViewer.Design.dll
+
+
+ ..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.1000.523\lib\net40\Microsoft.ReportViewer.ProcessingObjectModel.dll
+
+
+ ..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.1000.523\lib\net40\Microsoft.ReportViewer.WinForms.dll
+
+
+ ..\packages\Microsoft.SqlServer.Types.14.0.314.76\lib\net40\Microsoft.SqlServer.Types.dll
+
+
+
+ ..\public\Microsoft.VisualBasic.PowerPacks.dll
+
+
+ False
+ ..\public\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
+
+
+
+
+
+
+ Component
+
+
+
+ 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
+
+
+
+
+ Component
+
+
+
+
+
+
+
+
+
+ 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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {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
+
+
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/DataBase/clearMac.db b/CleanMachineHMI/DataBase/clearMac.db
new file mode 100644
index 0000000..c20cbc7
Binary files /dev/null and b/CleanMachineHMI/DataBase/clearMac.db differ
diff --git a/CleanMachineHMI/Form2.Designer.cs b/CleanMachineHMI/Form2.Designer.cs
new file mode 100644
index 0000000..b93a2f6
--- /dev/null
+++ b/CleanMachineHMI/Form2.Designer.cs
@@ -0,0 +1,224 @@
+namespace CleanMachineHMI
+{
+ partial class Form2
+ {
+ ///
+ /// 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.kryptonNavigator1 = new ComponentFactory.Krypton.Navigator.KryptonNavigator();
+ this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton2 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton3 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton4 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton5 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton6 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton7 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton8 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton9 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton10 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.timer1 = new System.Windows.Forms.Timer(this.components);
+ this.kryptonButton11 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonTextBox1 = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator1)).BeginInit();
+ this.kryptonNavigator1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonNavigator1
+ //
+ this.kryptonNavigator1.Button.ButtonDisplayLogic = ComponentFactory.Krypton.Navigator.ButtonDisplayLogic.ContextNextPrevious;
+ this.kryptonNavigator1.Button.CloseButtonDisplay = ComponentFactory.Krypton.Navigator.ButtonDisplay.Hide;
+ this.kryptonNavigator1.Location = new System.Drawing.Point(326, 45);
+ this.kryptonNavigator1.Name = "kryptonNavigator1";
+ this.kryptonNavigator1.Size = new System.Drawing.Size(589, 418);
+ this.kryptonNavigator1.TabIndex = 0;
+ this.kryptonNavigator1.Text = "kryptonNavigator1";
+ //
+ // kryptonButton1
+ //
+ this.kryptonButton1.Location = new System.Drawing.Point(35, 77);
+ this.kryptonButton1.Name = "kryptonButton1";
+ this.kryptonButton1.Size = new System.Drawing.Size(134, 25);
+ this.kryptonButton1.TabIndex = 1;
+ this.kryptonButton1.Values.Text = "测试窗体1";
+ this.kryptonButton1.BackColorChanged += new System.EventHandler(this.kryptonButton8_BackColorChanged);
+ this.kryptonButton1.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // kryptonButton2
+ //
+ this.kryptonButton2.Location = new System.Drawing.Point(35, 124);
+ this.kryptonButton2.Name = "kryptonButton2";
+ this.kryptonButton2.Size = new System.Drawing.Size(134, 25);
+ this.kryptonButton2.TabIndex = 1;
+ this.kryptonButton2.Values.Text = "测试窗体2";
+ this.kryptonButton2.BackColorChanged += new System.EventHandler(this.kryptonButton8_BackColorChanged);
+ this.kryptonButton2.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // kryptonButton3
+ //
+ this.kryptonButton3.Location = new System.Drawing.Point(35, 171);
+ this.kryptonButton3.Name = "kryptonButton3";
+ this.kryptonButton3.Size = new System.Drawing.Size(134, 25);
+ this.kryptonButton3.TabIndex = 1;
+ this.kryptonButton3.Values.Text = "测试窗体3";
+ this.kryptonButton3.BackColorChanged += new System.EventHandler(this.kryptonButton8_BackColorChanged);
+ this.kryptonButton3.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // kryptonButton4
+ //
+ this.kryptonButton4.Location = new System.Drawing.Point(35, 215);
+ this.kryptonButton4.Name = "kryptonButton4";
+ this.kryptonButton4.Size = new System.Drawing.Size(134, 25);
+ this.kryptonButton4.TabIndex = 1;
+ this.kryptonButton4.Values.Text = "测试窗体4";
+ this.kryptonButton4.BackColorChanged += new System.EventHandler(this.kryptonButton8_BackColorChanged);
+ this.kryptonButton4.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // kryptonButton5
+ //
+ this.kryptonButton5.Location = new System.Drawing.Point(35, 262);
+ this.kryptonButton5.Name = "kryptonButton5";
+ this.kryptonButton5.Size = new System.Drawing.Size(134, 25);
+ this.kryptonButton5.TabIndex = 1;
+ this.kryptonButton5.Values.Text = "测试窗体5";
+ this.kryptonButton5.BackColorChanged += new System.EventHandler(this.kryptonButton8_BackColorChanged);
+ this.kryptonButton5.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // kryptonButton6
+ //
+ this.kryptonButton6.Location = new System.Drawing.Point(35, 304);
+ this.kryptonButton6.Name = "kryptonButton6";
+ this.kryptonButton6.Size = new System.Drawing.Size(134, 25);
+ this.kryptonButton6.TabIndex = 1;
+ this.kryptonButton6.Values.Text = "测试窗体6";
+ this.kryptonButton6.BackColorChanged += new System.EventHandler(this.kryptonButton8_BackColorChanged);
+ this.kryptonButton6.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // kryptonButton7
+ //
+ this.kryptonButton7.Location = new System.Drawing.Point(35, 348);
+ this.kryptonButton7.Name = "kryptonButton7";
+ this.kryptonButton7.Size = new System.Drawing.Size(134, 25);
+ this.kryptonButton7.TabIndex = 1;
+ this.kryptonButton7.Values.Text = "测试窗体7";
+ this.kryptonButton7.BackColorChanged += new System.EventHandler(this.kryptonButton8_BackColorChanged);
+ this.kryptonButton7.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // kryptonButton8
+ //
+ this.kryptonButton8.Location = new System.Drawing.Point(35, 389);
+ this.kryptonButton8.Name = "kryptonButton8";
+ this.kryptonButton8.Size = new System.Drawing.Size(134, 25);
+ this.kryptonButton8.TabIndex = 1;
+ this.kryptonButton8.Values.Text = "测试窗体8";
+ this.kryptonButton8.BackColorChanged += new System.EventHandler(this.kryptonButton8_BackColorChanged);
+ this.kryptonButton8.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // kryptonButton9
+ //
+ this.kryptonButton9.Location = new System.Drawing.Point(35, 486);
+ this.kryptonButton9.Name = "kryptonButton9";
+ this.kryptonButton9.Size = new System.Drawing.Size(90, 25);
+ this.kryptonButton9.TabIndex = 2;
+ this.kryptonButton9.Values.Text = "添加";
+ this.kryptonButton9.Click += new System.EventHandler(this.kryptonButton9_Click);
+ //
+ // kryptonButton10
+ //
+ this.kryptonButton10.Location = new System.Drawing.Point(178, 486);
+ this.kryptonButton10.Name = "kryptonButton10";
+ this.kryptonButton10.Size = new System.Drawing.Size(90, 25);
+ this.kryptonButton10.TabIndex = 2;
+ this.kryptonButton10.Values.Text = "删除";
+ this.kryptonButton10.Click += new System.EventHandler(this.kryptonButton10_Click);
+ //
+ // timer1
+ //
+ this.timer1.Enabled = true;
+ this.timer1.Interval = 1000;
+ this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
+ //
+ // kryptonButton11
+ //
+ this.kryptonButton11.Location = new System.Drawing.Point(326, 486);
+ this.kryptonButton11.Name = "kryptonButton11";
+ this.kryptonButton11.Size = new System.Drawing.Size(90, 25);
+ this.kryptonButton11.TabIndex = 3;
+ this.kryptonButton11.Values.Text = "kryptonButton11";
+ this.kryptonButton11.Click += new System.EventHandler(this.kryptonButton11_Click);
+ //
+ // kryptonTextBox1
+ //
+ this.kryptonTextBox1.Location = new System.Drawing.Point(456, 486);
+ this.kryptonTextBox1.Name = "kryptonTextBox1";
+ this.kryptonTextBox1.Size = new System.Drawing.Size(245, 23);
+ this.kryptonTextBox1.TabIndex = 4;
+ //
+ // Form2
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(954, 557);
+ this.Controls.Add(this.kryptonTextBox1);
+ this.Controls.Add(this.kryptonButton11);
+ this.Controls.Add(this.kryptonButton10);
+ this.Controls.Add(this.kryptonButton9);
+ this.Controls.Add(this.kryptonButton8);
+ this.Controls.Add(this.kryptonButton7);
+ this.Controls.Add(this.kryptonButton6);
+ this.Controls.Add(this.kryptonButton5);
+ this.Controls.Add(this.kryptonButton4);
+ this.Controls.Add(this.kryptonButton3);
+ this.Controls.Add(this.kryptonButton2);
+ this.Controls.Add(this.kryptonButton1);
+ this.Controls.Add(this.kryptonNavigator1);
+ this.Name = "Form2";
+ this.Text = "Form2";
+ this.Load += new System.EventHandler(this.Form2_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator1)).EndInit();
+ this.kryptonNavigator1.ResumeLayout(false);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton2;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton3;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton4;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton5;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton6;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton7;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton8;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton9;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton10;
+ private System.Windows.Forms.Timer timer1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton11;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox kryptonTextBox1;
+ private ComponentFactory.Krypton.Navigator.KryptonNavigator kryptonNavigator1;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/Form2.cs b/CleanMachineHMI/Form2.cs
new file mode 100644
index 0000000..742d652
--- /dev/null
+++ b/CleanMachineHMI/Form2.cs
@@ -0,0 +1,148 @@
+using ComponentFactory.Krypton.Navigator;
+using ComponentFactory.Krypton.Toolkit;
+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
+{
+ public partial class Form2 : Form
+ {
+ public Form2()
+ {
+ InitializeComponent();
+ }
+
+ private void Form2_Load(object sender, EventArgs e)
+ {
+ kryptonNavigator1.Pages.Clear();
+ AddFrmPage(null, null);
+ GlobalHelper.CmWarningLogMd_List_1 = new List();
+ }
+
+ private void kryptonButton8_BackColorChanged(object sender, EventArgs e)
+ {
+
+ }
+
+ private void kryptonButton1_Click(object sender, EventArgs e)
+ {
+ KryptonButton kbtn = sender as KryptonButton;
+ AddFrmPage(kbtn.Name, kbtn.Text);
+ }
+
+ private void AddFrmPage(string pageCode,string pageName)
+ {
+ if (kryptonNavigator1.Pages.Count == 0)
+ {
+ KryptonPage tmpPage = new KryptonPage { Text = "DefaultFrm", Name = "默认窗体" };
+ kryptonNavigator1.Pages.Add(tmpPage);
+ kryptonNavigator1.SelectedPage = tmpPage;
+ }
+ else
+ {
+ KryptonPage tmpPage = kryptonNavigator1.Pages.FirstOrDefault(x => x.Text == pageCode);
+ if (tmpPage != null)
+ {
+ kryptonNavigator1.SelectedPage = tmpPage;
+ }
+ else
+ {
+ KryptonPage tmpPage1 = new KryptonPage { Text = pageCode, Name = pageName };
+ kryptonNavigator1.Pages.Add(tmpPage1);
+ kryptonNavigator1.SelectedPage = tmpPage1;
+ ButtonSpecAny bsa = new ButtonSpecAny();
+ bsa.Style = PaletteButtonStyle.FormClose;
+ bsa.Type = PaletteButtonSpecStyle.FormClose;
+ bsa.Tag = kryptonNavigator1.SelectedPage;
+ bsa.Click += test_Click;
+ kryptonNavigator1.SelectedPage.ButtonSpecs.Add(bsa);
+ Form objFrm = new Form();
+ objFrm.TopLevel = false;
+ objFrm.FormBorderStyle = FormBorderStyle.None;
+ objFrm.MinimizeBox = false;
+ objFrm.Parent = tmpPage1;
+ objFrm.Dock = DockStyle.Fill;
+ objFrm.Show();
+ }
+ }
+ }
+ private void test_Click(object sender, EventArgs e)
+ {
+ ButtonSpecAny bsa = sender as ButtonSpecAny;
+ kryptonNavigator1.Pages.Remove(bsa.Tag);
+ }
+ private void CloseFrmPage()
+ {
+
+ }
+
+ private void kryptonButton9_Click(object sender, EventArgs e)
+ {
+ GlobalHelper.CmWarningLogMd_List_1.Add(new CM_WarningLogMd {
+ WarningCode = "TestAlarm001",
+ WarningName = "TestAlarm001",
+ WarningType = "TestAlarm001",
+ WarningMessage = "TestAlarm001",
+ WarningTime = DateTime.Now,
+ PlcItemCode = "TestAlarm001",
+ WarningStatus = 0,
+ WarningHandleResult = 0,
+ CreateBy = 1,
+ CreateTime = DateTime.Now,
+ UpdateBy = 1,
+ UpdateTime = DateTime.Now,
+ DataVersion = 0,
+ });
+ }
+
+ private void kryptonButton10_Click(object sender, EventArgs e)
+ {
+ CM_WarningLogMd tmpWarn = GlobalHelper.CmWarningLogMd_List_1.Find(x => x.WarningStatus == 0);
+ if (tmpWarn != null)
+ {
+ tmpWarn.WarningStatus = 1;
+ }
+ }
+ private void timer1_Tick(object sender, EventArgs e)
+ {
+ //List lst = GlobalHelper.CmWarningLogMd_List_1.FindAll(x => x.WarningStatus == 0);
+ //if (lst.Count > 0)
+ //{
+ // if (!GlobalHelper.form3IsShow)
+ // {
+ // tmpFrm = new frmCurrentWarningMessage();
+ // tmpFrm.Show();
+ // frmCurrentWarningMessage.RefreshFrmHost(lst);
+ // GlobalHelper.form3IsShow = true;
+ // }
+ // else
+ // {
+ // frmCurrentWarningMessage.RefreshFrmHost(lst);
+ // GlobalHelper.form3IsShow = true;
+ // }
+ //}
+ //else
+ //{
+ // if (GlobalHelper.form3IsShow)
+ // {
+ // frmCurrentWarningMessage.RefreshFrmHost(null);
+ // tmpFrm.Close();
+
+ // GlobalHelper.form3IsShow = false;
+ // }
+ //}
+ }
+
+ private void kryptonButton11_Click(object sender, EventArgs e)
+ {
+ kryptonTextBox1.Text = GlobalHelper.GetPalletCode();
+ }
+ }
+}
diff --git a/CleanMachineHMI/Form2.resx b/CleanMachineHMI/Form2.resx
new file mode 100644
index 0000000..1f666f2
--- /dev/null
+++ b/CleanMachineHMI/Form2.resx
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 17, 17
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.Designer.cs b/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.Designer.cs
new file mode 100644
index 0000000..7f4df97
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.Designer.cs
@@ -0,0 +1,358 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmCleanMode
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
+ this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonGroupBox1 = new ComponentFactory.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.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();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
+ this.kryptonGroupBox2.CaptionOverlap = 0D;
+ this.kryptonGroupBox2.CaptionStyle = ComponentFactory.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";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.dataGridView);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(802, 460);
+ this.kryptonGroupBox2.TabIndex = 6;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ 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.Location = new System.Drawing.Point(0, 0);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ this.dataGridView.RowHeadersWidth = 100;
+ this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView.Size = new System.Drawing.Size(798, 456);
+ this.dataGridView.TabIndex = 3;
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel1.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(802, 591);
+ this.kryptonPanel1.TabIndex = 4;
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(802, 131);
+ this.kryptonGroupBox1.TabIndex = 0;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 5;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 4, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Delete, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 3, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Add, 0, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(237, 78);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(561, 41);
+ this.tableLayoutPanel2.TabIndex = 6;
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(451, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(107, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(115, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // kbt_Delete
+ //
+ this.kbt_Delete.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Delete.Location = new System.Drawing.Point(227, 3);
+ this.kbt_Delete.Name = "kbt_Delete";
+ this.kbt_Delete.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Delete.TabIndex = 0;
+ this.kbt_Delete.Values.Text = "删除";
+ this.kbt_Delete.Click += new System.EventHandler(this.kbt_Delete_Click);
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(339, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kbt_Add
+ //
+ this.kbt_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Add.Location = new System.Drawing.Point(3, 3);
+ this.kbt_Add.Name = "kbt_Add";
+ this.kbt_Add.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Add.TabIndex = 0;
+ this.kbt_Add.Values.Text = "新增";
+ this.kbt_Add.Click += new System.EventHandler(this.kbt_Add_Click);
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 140F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 140F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_CleanModeCode, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_CleanModeName, 3, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(798, 72);
+ this.tableLayoutPanel1.TabIndex = 5;
+ //
+ // kdtp_CreateEndTime
+ //
+ this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateEndTime.Location = new System.Drawing.Point(546, 43);
+ this.kdtp_CreateEndTime.Name = "kdtp_CreateEndTime";
+ this.kdtp_CreateEndTime.ShowCheckBox = true;
+ this.kdtp_CreateEndTime.Size = new System.Drawing.Size(245, 21);
+ this.kdtp_CreateEndTime.TabIndex = 7;
+ //
+ // kdtp_CreateStartTime
+ //
+ this.kdtp_CreateStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateStartTime.Location = new System.Drawing.Point(147, 43);
+ this.kdtp_CreateStartTime.Name = "kdtp_CreateStartTime";
+ this.kdtp_CreateStartTime.ShowCheckBox = true;
+ this.kdtp_CreateStartTime.Size = new System.Drawing.Size(245, 21);
+ this.kdtp_CreateStartTime.TabIndex = 7;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(134, 30);
+ this.kryptonLabel2.TabIndex = 4;
+ this.kryptonLabel2.Values.Text = "清洁方式编码:";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(457, 44);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 4;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // ktb_CleanModeCode
+ //
+ this.ktb_CleanModeCode.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_CleanModeCode.Location = new System.Drawing.Point(147, 6);
+ this.ktb_CleanModeCode.Name = "ktb_CleanModeCode";
+ this.ktb_CleanModeCode.Size = new System.Drawing.Size(245, 23);
+ this.ktb_CleanModeCode.TabIndex = 5;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(3, 39);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(134, 30);
+ this.kryptonLabel4.TabIndex = 4;
+ this.kryptonLabel4.Values.Text = "创建时间:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(402, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(134, 30);
+ this.kryptonLabel3.TabIndex = 4;
+ this.kryptonLabel3.Values.Text = "清洁方式名称:";
+ //
+ // ktb_CleanModeName
+ //
+ this.ktb_CleanModeName.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_CleanModeName.Location = new System.Drawing.Point(546, 6);
+ this.ktb_CleanModeName.Name = "ktb_CleanModeName";
+ this.ktb_CleanModeName.Size = new System.Drawing.Size(245, 23);
+ this.ktb_CleanModeName.TabIndex = 5;
+ //
+ // frmCleanMode
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.kryptonPanel1);
+ this.Name = "frmCleanMode";
+ this.Size = new System.Drawing.Size(802, 591);
+ this.Load += new System.EventHandler(this.frmCleanMode_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
+ 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;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.cs b/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.cs
new file mode 100644
index 0000000..0687bfd
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.cs
@@ -0,0 +1,200 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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
+{
+ [FormType(EnumFormType.CleanMode)]
+ public partial class frmCleanMode : UserControl
+ {
+ private DataTable _InfoLanguageTextList;
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+
+ public frmCleanMode()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+
+ }
+ protected override CreateParams CreateParams
+ {
+ get
+ {
+ CreateParams cp = base.CreateParams;
+ cp.ExStyle |= 0x02000000;
+ return cp;
+ }
+ }
+
+ public void Init()
+ {
+ var sql = $@"select CLEAN_MODE_ID 序号,CLEAN_MODE_CODE 清洁方式编码,CLEAN_MODE_NAME 清洁方式名称,CREATE_TIME 创建时间 from BAS_CLEAN_MODE where DEL_FLAG=0";
+ if (!string.IsNullOrEmpty(ktb_CleanModeCode.Text))
+ {
+ sql += $" AND CLEAN_MODE_CODE LIKE '%{ktb_CleanModeCode.Text}%'";
+ }
+ if (!string.IsNullOrEmpty(ktb_CleanModeName.Text))
+ {
+ sql += $" AND CLEAN_MODE_NAME LIKE '%{ktb_CleanModeName.Text}%'";
+ }
+ if (kdtp_CreateStartTime.Checked)
+ {
+ sql += $" AND CREATE_TIME >= '{kdtp_CreateStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (kdtp_CreateEndTime.Checked)
+ {
+ sql += $" AND CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_CleanModeCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_CleanModeCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ ktb_CleanModeName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_CleanModeName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmCleanMode_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox2.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载清洁方式界面发生异常", "LoadFrmCleanModeExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询清洁方式数据发生异常", "QueryCleanModeData") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_CleanModeCode.Text = "";
+ ktb_CleanModeName.Text = "";
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ }
+
+ private void kbt_Add_Click(object sender, EventArgs e)
+ {
+ frmAddCleanCode frm = new frmAddCleanCode();
+ frm.ShowDialog();
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmEditCleanCode frm = new frmEditCleanCode();
+ frm.CleanModeId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的清洗方式数据行!", "SelectWantToEditRow"));
+ }
+ }
+
+ private void kbt_Delete_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的清洗方式数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ if (dr == DialogResult.OK)
+ {
+ string CleanModeId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ string sql = $@"DELETE FROM BAS_CLEAN_MODE WHERE CLEAN_MODE_ID = '{CleanModeId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除清洗方式数据成功!", "DeleteSuccessInfo"));
+ RefreshFrmHost();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除清洗方式数据失败!", "DeleteFailInfo"));
+ }
+ }
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的清洗方式数据行!", "SelectWantToDeleteRow"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除清洁方式数据发生异常", "DeleteCleanModeDataExp") + $":【{ex.Message}】!");
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.resx b/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmContaminationDTL.Designer.cs b/CleanMachineHMI/FrmUserControl/Base/frmContaminationDTL.Designer.cs
new file mode 100644
index 0000000..ef05610
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmContaminationDTL.Designer.cs
@@ -0,0 +1,391 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmContaminationDTL
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.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.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.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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit();
+ this.kryptonPanel3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
+ this.kryptonPanel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_ContaminationType)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonPanel3
+ //
+ this.kryptonPanel3.Controls.Add(this.kryptonPanel2);
+ this.kryptonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel3.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel3.Name = "kryptonPanel3";
+ this.kryptonPanel3.Size = new System.Drawing.Size(802, 591);
+ this.kryptonPanel3.TabIndex = 1;
+ //
+ // kryptonPanel2
+ //
+ this.kryptonPanel2.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel2.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel2.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel2.Name = "kryptonPanel2";
+ this.kryptonPanel2.Size = new System.Drawing.Size(802, 591);
+ this.kryptonPanel2.TabIndex = 3;
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
+ this.kryptonGroupBox2.CaptionOverlap = 0D;
+ this.kryptonGroupBox2.CaptionStyle = ComponentFactory.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";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.dataGridView);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(802, 460);
+ this.kryptonGroupBox2.TabIndex = 7;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
+ 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.Location = new System.Drawing.Point(0, 0);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ this.dataGridView.RowHeadersWidth = 100;
+ this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView.Size = new System.Drawing.Size(798, 456);
+ this.dataGridView.TabIndex = 3;
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(802, 131);
+ this.kryptonGroupBox1.TabIndex = 0;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 5;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 4, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Delete, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 3, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Add, 0, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(227, 78);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(561, 41);
+ this.tableLayoutPanel2.TabIndex = 10;
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(451, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(107, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(115, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // kbt_Delete
+ //
+ this.kbt_Delete.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Delete.Location = new System.Drawing.Point(227, 3);
+ this.kbt_Delete.Name = "kbt_Delete";
+ this.kbt_Delete.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Delete.TabIndex = 0;
+ this.kbt_Delete.Values.Text = "删除";
+ this.kbt_Delete.Click += new System.EventHandler(this.kbt_Delete_Click);
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(339, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kbt_Add
+ //
+ this.kbt_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Add.Location = new System.Drawing.Point(3, 3);
+ this.kbt_Add.Name = "kbt_Add";
+ this.kbt_Add.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Add.TabIndex = 0;
+ this.kbt_Add.Values.Text = "新增";
+ this.kbt_Add.Click += new System.EventHandler(this.kbt_Add_Click);
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 220F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 130F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_ContaminationDtlMsg, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kcmb_ContaminationType, 3, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(798, 72);
+ this.tableLayoutPanel1.TabIndex = 9;
+ //
+ // kdtp_CreateEndTime
+ //
+ this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateEndTime.Location = new System.Drawing.Point(581, 43);
+ this.kdtp_CreateEndTime.Name = "kdtp_CreateEndTime";
+ this.kdtp_CreateEndTime.ShowCheckBox = true;
+ this.kdtp_CreateEndTime.Size = new System.Drawing.Size(210, 21);
+ this.kdtp_CreateEndTime.TabIndex = 7;
+ //
+ // kdtp_CreateStartTime
+ //
+ this.kdtp_CreateStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateStartTime.Location = new System.Drawing.Point(227, 43);
+ this.kdtp_CreateStartTime.Name = "kdtp_CreateStartTime";
+ this.kdtp_CreateStartTime.ShowCheckBox = true;
+ this.kdtp_CreateStartTime.Size = new System.Drawing.Size(210, 21);
+ this.kdtp_CreateStartTime.TabIndex = 7;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(214, 30);
+ this.kryptonLabel2.TabIndex = 4;
+ this.kryptonLabel2.Values.Text = "污染明细信息:";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(497, 44);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 4;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // ktb_ContaminationDtlMsg
+ //
+ this.ktb_ContaminationDtlMsg.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_ContaminationDtlMsg.Location = new System.Drawing.Point(227, 6);
+ this.ktb_ContaminationDtlMsg.Name = "ktb_ContaminationDtlMsg";
+ this.ktb_ContaminationDtlMsg.Size = new System.Drawing.Size(210, 23);
+ this.ktb_ContaminationDtlMsg.TabIndex = 5;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(3, 39);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(214, 30);
+ this.kryptonLabel4.TabIndex = 4;
+ this.kryptonLabel4.Values.Text = "创建时间:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(447, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(124, 30);
+ this.kryptonLabel3.TabIndex = 4;
+ this.kryptonLabel3.Values.Text = "污染类型:";
+ //
+ // kcmb_ContaminationType
+ //
+ this.kcmb_ContaminationType.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kcmb_ContaminationType.DropDownWidth = 246;
+ this.kcmb_ContaminationType.Location = new System.Drawing.Point(581, 7);
+ this.kcmb_ContaminationType.Name = "kcmb_ContaminationType";
+ this.kcmb_ContaminationType.Size = new System.Drawing.Size(210, 21);
+ this.kcmb_ContaminationType.TabIndex = 8;
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kryptonPanel3);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(802, 591);
+ this.kryptonPanel1.TabIndex = 5;
+ //
+ // frmContaminationDTL
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.kryptonPanel1);
+ this.Name = "frmContaminationDTL";
+ this.Size = new System.Drawing.Size(802, 591);
+ this.Load += new System.EventHandler(this.frmContaminationDTL_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).EndInit();
+ this.kryptonPanel3.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
+ this.kryptonPanel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_ContaminationType)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel3;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
+ 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 ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmContaminationDTL.cs b/CleanMachineHMI/FrmUserControl/Base/frmContaminationDTL.cs
new file mode 100644
index 0000000..6305889
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmContaminationDTL.cs
@@ -0,0 +1,205 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.Web.UI.WebControls;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ [FormType(EnumFormType.ContaminationDTL)]
+ public partial class frmContaminationDTL : UserControl
+ {
+ private DataTable _InfoLanguageTextList;
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+
+ public frmContaminationDTL()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+
+ public void Init()
+ {
+ var sql = $@"SELECT A.CONTAMINATION_DTL_ID 序号,B.CONTAMINATION_TYPE_CODE 污染类型编码,B.CONTAMINATION_TYPE_NAME 污染类型名称,A.CONTAMINATION_DTL_CODE 污染明细编码,A.CONTAMINATION_DTL_NAME 污染明细名称,A.CREATE_TIME 创建时间 FROM BAS_CONTAMINATION_DTL A LEFT JOIN BAS_CONTAMINATION_TYPE B ON A.CONTAMINATION_TYPE_CODE = B.CONTAMINATION_TYPE_CODE WHERE 1=1 ";
+ if (!string.IsNullOrEmpty(ktb_ContaminationDtlMsg.Text))
+ {
+ sql += $" AND (A.CONTAMINATION_DTL_CODE LIKE '%{ktb_ContaminationDtlMsg.Text}%' or A.CONTAMINATION_DTL_NAME LIKE '%{ktb_ContaminationDtlMsg.Text}%')";
+ }
+ if (kcmb_ContaminationType.SelectedIndex != 0)
+ {
+ sql += $" AND B.CONTAMINATION_TYPE_CODE = '{((ListItem)kcmb_ContaminationType.SelectedItem).Value}'";
+ }
+ if (kdtp_CreateStartTime.Checked)
+ {
+ sql += $" AND A.CREATE_TIME >= '{kdtp_CreateStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (kdtp_CreateEndTime.Checked)
+ {
+ sql += $" AND A.CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_ContaminationDtlMsg.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_ContaminationDtlMsg.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ }
+
+ private void frmContaminationDTL_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ string sql = $@"select CONTAMINATION_TYPE_CODE,CONTAMINATION_TYPE_NAME from BAS_CONTAMINATION_TYPE where DEL_FLAG=0";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ kcmb_ContaminationType.Items.Add(new ListItem
+ {
+ Value = "0",
+ Text = "Please Select",
+ });
+ foreach (DataRow item in dt.Rows)
+ {
+ kcmb_ContaminationType.Items.Add(new ListItem
+ {
+ Value = item["CONTAMINATION_TYPE_CODE"].ToString(),
+ Text = item["CONTAMINATION_TYPE_NAME"].ToString(),
+ });
+ }
+ kcmb_ContaminationType.SelectedIndex = 0;
+ }
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox2.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载污染明细界面发生异常", "LoadContaminationDTLExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询污染明细数据发生异常", "QueryContaminationDTLData") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_ContaminationDtlMsg.Text = "";
+ kcmb_ContaminationType.SelectedIndex = 0;
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ }
+
+ private void kbt_Add_Click(object sender, EventArgs e)
+ {
+ frmAddContaminationDtl frm = new frmAddContaminationDtl();
+ frm.ShowDialog();
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmEditContaminationDtl frm = new frmEditContaminationDtl();
+ frm.ContaminationDtlId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的污染明细数据行!", "SelectWantToEditRow"));
+ }
+ }
+
+ private void kbt_Delete_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的污染明细数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ if (dr == DialogResult.OK)
+ {
+ string ContaminationDtlId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ string sql = $@"DELETE FROM BAS_CONTAMINATION_DTL WHERE CONTAMINATION_DTL_ID = '{ContaminationDtlId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染明细数据成功!", "DeleteSuccessInfo"));
+ RefreshFrmHost();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染明细数据失败!", "DeleteFailInfo"));
+ }
+ }
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的污染明细数据行!", "SelectWantToDeleteRow"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染明细数据发生异常", "DeleteContaminationDTLDataExp") + $":【{ex.Message}】!");
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmContaminationDTL.resx b/CleanMachineHMI/FrmUserControl/Base/frmContaminationDTL.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmContaminationDTL.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmContaminationType.Designer.cs b/CleanMachineHMI/FrmUserControl/Base/frmContaminationType.Designer.cs
new file mode 100644
index 0000000..4d905d8
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmContaminationType.Designer.cs
@@ -0,0 +1,391 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmContaminationType
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ 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.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.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();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit();
+ this.kryptonPanel3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
+ this.kryptonPanel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_CleanMode)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kryptonPanel3);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(802, 591);
+ this.kryptonPanel1.TabIndex = 4;
+ //
+ // kryptonPanel3
+ //
+ this.kryptonPanel3.Controls.Add(this.kryptonPanel2);
+ this.kryptonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel3.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel3.Name = "kryptonPanel3";
+ this.kryptonPanel3.Size = new System.Drawing.Size(802, 591);
+ this.kryptonPanel3.TabIndex = 1;
+ //
+ // kryptonPanel2
+ //
+ this.kryptonPanel2.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel2.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel2.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel2.Name = "kryptonPanel2";
+ this.kryptonPanel2.Size = new System.Drawing.Size(802, 591);
+ this.kryptonPanel2.TabIndex = 3;
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
+ this.kryptonGroupBox2.CaptionOverlap = 0D;
+ this.kryptonGroupBox2.CaptionStyle = ComponentFactory.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";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.dataGridView);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(802, 462);
+ this.kryptonGroupBox2.TabIndex = 6;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
+ 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.Location = new System.Drawing.Point(0, 0);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ this.dataGridView.RowHeadersWidth = 100;
+ this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView.Size = new System.Drawing.Size(798, 458);
+ this.dataGridView.TabIndex = 3;
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(802, 129);
+ this.kryptonGroupBox1.TabIndex = 0;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 5;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 4, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Delete, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 3, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Add, 0, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(236, 76);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(561, 41);
+ this.tableLayoutPanel2.TabIndex = 8;
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(451, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(107, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(115, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // kbt_Delete
+ //
+ this.kbt_Delete.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Delete.Location = new System.Drawing.Point(227, 3);
+ this.kbt_Delete.Name = "kbt_Delete";
+ this.kbt_Delete.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Delete.TabIndex = 0;
+ this.kbt_Delete.Values.Text = "删除";
+ this.kbt_Delete.Click += new System.EventHandler(this.kbt_Delete_Click);
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(339, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kbt_Add
+ //
+ this.kbt_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Add.Location = new System.Drawing.Point(3, 3);
+ this.kbt_Add.Name = "kbt_Add";
+ this.kbt_Add.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Add.TabIndex = 0;
+ this.kbt_Add.Values.Text = "新增";
+ this.kbt_Add.Click += new System.EventHandler(this.kbt_Add_Click);
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 220F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 100F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_ContaminationTypeMsg, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kcmb_CleanMode, 3, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(798, 72);
+ this.tableLayoutPanel1.TabIndex = 7;
+ //
+ // kdtp_CreateEndTime
+ //
+ this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateEndTime.Location = new System.Drawing.Point(573, 43);
+ this.kdtp_CreateEndTime.Name = "kdtp_CreateEndTime";
+ this.kdtp_CreateEndTime.ShowCheckBox = true;
+ this.kdtp_CreateEndTime.Size = new System.Drawing.Size(210, 21);
+ this.kdtp_CreateEndTime.TabIndex = 7;
+ //
+ // kdtp_CreateStartTime
+ //
+ this.kdtp_CreateStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateStartTime.Location = new System.Drawing.Point(234, 43);
+ this.kdtp_CreateStartTime.Name = "kdtp_CreateStartTime";
+ this.kdtp_CreateStartTime.ShowCheckBox = true;
+ this.kdtp_CreateStartTime.Size = new System.Drawing.Size(210, 21);
+ this.kdtp_CreateStartTime.TabIndex = 7;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(214, 30);
+ this.kryptonLabel2.TabIndex = 4;
+ this.kryptonLabel2.Values.Text = "污染类型信息:";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(497, 44);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 4;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // ktb_ContaminationTypeMsg
+ //
+ this.ktb_ContaminationTypeMsg.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_ContaminationTypeMsg.Location = new System.Drawing.Point(234, 6);
+ this.ktb_ContaminationTypeMsg.Name = "ktb_ContaminationTypeMsg";
+ this.ktb_ContaminationTypeMsg.Size = new System.Drawing.Size(210, 23);
+ this.ktb_ContaminationTypeMsg.TabIndex = 5;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(3, 39);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(214, 30);
+ this.kryptonLabel4.TabIndex = 4;
+ this.kryptonLabel4.Values.Text = "创建时间:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(462, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(94, 30);
+ this.kryptonLabel3.TabIndex = 4;
+ this.kryptonLabel3.Values.Text = "清洁方式:";
+ //
+ // kcmb_CleanMode
+ //
+ this.kcmb_CleanMode.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kcmb_CleanMode.DropDownWidth = 246;
+ this.kcmb_CleanMode.Location = new System.Drawing.Point(573, 7);
+ this.kcmb_CleanMode.Name = "kcmb_CleanMode";
+ this.kcmb_CleanMode.Size = new System.Drawing.Size(210, 21);
+ this.kcmb_CleanMode.TabIndex = 8;
+ //
+ // frmContaminationType
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.kryptonPanel1);
+ this.Name = "frmContaminationType";
+ this.Size = new System.Drawing.Size(802, 591);
+ this.Load += new System.EventHandler(this.frmContaminationType_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).EndInit();
+ this.kryptonPanel3.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
+ this.kryptonPanel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_CleanMode)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel3;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
+ 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;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmContaminationType.cs b/CleanMachineHMI/FrmUserControl/Base/frmContaminationType.cs
new file mode 100644
index 0000000..54b2b46
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmContaminationType.cs
@@ -0,0 +1,215 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.Web.UI.WebControls;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ [FormType(EnumFormType.ContaminationType)]
+ public partial class frmContaminationType : UserControl
+ {
+ private DataTable _InfoLanguageTextList;
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+
+ public frmContaminationType()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+
+ protected override CreateParams CreateParams
+ {
+ get
+ {
+ CreateParams cp = base.CreateParams;
+ cp.ExStyle |= 0x02000000;
+ return cp;
+ }
+ }
+
+ public void Init()
+ {
+ var sql = $@"SELECT A.CONTAMINATION_TYPE_ID 序号,B.CLEAN_MODE_CODE 清洁方式编码,B.CLEAN_MODE_NAME 清洁方式名称,A.CONTAMINATION_TYPE_CODE 污染类型编码,A.CONTAMINATION_TYPE_NAME 污染类型名称,A.CREATE_TIME 创建时间 FROM BAS_CONTAMINATION_TYPE A LEFT JOIN BAS_CLEAN_MODE B ON A.CLEAN_MODE_CODE = B.CLEAN_MODE_CODE Where 1=1";
+ if (!string.IsNullOrEmpty(ktb_ContaminationTypeMsg.Text))
+ {
+ sql += $" AND (A.CONTAMINATION_TYPE_CODE LIKE '%{ktb_ContaminationTypeMsg.Text}%' or A.CONTAMINATION_TYPE_NAME LIKE '%{ktb_ContaminationTypeMsg.Text}%')";
+ }
+ if (kcmb_CleanMode.SelectedIndex != 0)
+ {
+ sql += $" AND B.CLEAN_MODE_CODE = '{((ListItem)kcmb_CleanMode.SelectedItem).Value}'";
+ }
+ if (kdtp_CreateStartTime.Checked)
+ {
+ sql += $" AND A.CREATE_TIME >= '{kdtp_CreateStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (kdtp_CreateEndTime.Checked)
+ {
+ sql += $" AND A.CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_ContaminationTypeMsg.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_ContaminationTypeMsg.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ }
+
+ private void frmContaminationType_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ string sql = $@"select CLEAN_MODE_CODE,CLEAN_MODE_NAME from BAS_CLEAN_MODE where DEL_FLAG=0";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ kcmb_CleanMode.Items.Add(new ListItem
+ {
+ Value = "0",
+ Text = "Please Select",
+ });
+ foreach (DataRow item in dt.Rows)
+ {
+ kcmb_CleanMode.Items.Add(new ListItem
+ {
+ Value = item["CLEAN_MODE_CODE"].ToString(),
+ Text = item["CLEAN_MODE_NAME"].ToString(),
+ });
+ }
+ kcmb_CleanMode.SelectedIndex = 0;
+ }
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox2.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载污染类型界面发生异常", "LoadContaminationTypeExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询污染类型数据发生异常", "QueryContaminationTypeData") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_ContaminationTypeMsg.Text = "";
+ kcmb_CleanMode.SelectedIndex = 0;
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ }
+
+ private void kbt_Add_Click(object sender, EventArgs e)
+ {
+ frmAddContaminationType frm = new frmAddContaminationType();
+ frm.ShowDialog();
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmEditContaminationType frm = new frmEditContaminationType();
+ frm.ContaminationId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的污染类型数据行!", "SelectWantToEditRow"));
+ }
+ }
+
+ private void kbt_Delete_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的污染类型数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ if (dr == DialogResult.OK)
+ {
+ string ContaminationId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ string sql = $@"DELETE FROM BAS_CONTAMINATION_TYPE WHERE CONTAMINATION_TYPE_ID = '{ContaminationId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染类型数据成功!", "DeleteSuccessInfo"));
+ RefreshFrmHost();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染类型数据失败!", "DeleteFailInfo"));
+ }
+ }
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的污染类型数据行!", "SelectWantToDeleteRow"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染类型数据发生异常", "DeleteContaminationTypeDataExp") + $":【{ex.Message}】!");
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmContaminationType.resx b/CleanMachineHMI/FrmUserControl/Base/frmContaminationType.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmContaminationType.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmRole.Designer.cs b/CleanMachineHMI/FrmUserControl/Base/frmRole.Designer.cs
new file mode 100644
index 0000000..9f32480
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmRole.Designer.cs
@@ -0,0 +1,413 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmRole
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.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.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
+ this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ 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.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.ktb_setRoleMenuPermission = new ComponentFactory.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_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.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel6)).BeginInit();
+ this.kryptonPanel6.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_roleGrade)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonPanel6
+ //
+ this.kryptonPanel6.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+ this.kryptonPanel6.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel6.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel6.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel6.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel6.Name = "kryptonPanel6";
+ this.kryptonPanel6.Size = new System.Drawing.Size(802, 591);
+ this.kryptonPanel6.TabIndex = 6;
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
+ this.kryptonGroupBox1.CaptionOverlap = 0D;
+ this.kryptonGroupBox1.CaptionStyle = ComponentFactory.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";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.dataGridView);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(802, 462);
+ this.kryptonGroupBox1.TabIndex = 4;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ 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.Location = new System.Drawing.Point(0, 0);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ this.dataGridView.RowHeadersWidth = 100;
+ this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView.Size = new System.Drawing.Size(798, 458);
+ this.dataGridView.TabIndex = 3;
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(802, 129);
+ this.kryptonGroupBox2.TabIndex = 0;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 6;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Add, 0, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 5, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 4, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Delete, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.ktb_setRoleMenuPermission, 3, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(164, 78);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(631, 41);
+ this.tableLayoutPanel2.TabIndex = 2;
+ //
+ // kbt_Add
+ //
+ this.kbt_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Add.Location = new System.Drawing.Point(3, 3);
+ this.kbt_Add.Name = "kbt_Add";
+ this.kbt_Add.Size = new System.Drawing.Size(99, 35);
+ this.kbt_Add.TabIndex = 0;
+ this.kbt_Add.Values.Text = "新增";
+ this.kbt_Add.Click += new System.EventHandler(this.kbt_Add_Click);
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(528, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(100, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(423, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(99, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(108, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(99, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // kbt_Delete
+ //
+ this.kbt_Delete.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Delete.Location = new System.Drawing.Point(213, 3);
+ this.kbt_Delete.Name = "kbt_Delete";
+ this.kbt_Delete.Size = new System.Drawing.Size(99, 35);
+ this.kbt_Delete.TabIndex = 0;
+ this.kbt_Delete.Values.Text = "删除";
+ this.kbt_Delete.Click += new System.EventHandler(this.kbt_Delete_Click);
+ //
+ // ktb_setRoleMenuPermission
+ //
+ this.ktb_setRoleMenuPermission.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.ktb_setRoleMenuPermission.Location = new System.Drawing.Point(318, 3);
+ this.ktb_setRoleMenuPermission.Name = "ktb_setRoleMenuPermission";
+ this.ktb_setRoleMenuPermission.Size = new System.Drawing.Size(99, 35);
+ this.ktb_setRoleMenuPermission.TabIndex = 0;
+ this.ktb_setRoleMenuPermission.Values.Text = "权限配置";
+ this.ktb_setRoleMenuPermission.Click += new System.EventHandler(this.ktb_setRoleMenuPermission_Click);
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kcmb_roleGrade, 3, 0);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_roleMsg, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(798, 72);
+ this.tableLayoutPanel1.TabIndex = 0;
+ //
+ // kdtp_CreateEndTime
+ //
+ this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateEndTime.Location = new System.Drawing.Point(535, 43);
+ this.kdtp_CreateEndTime.Name = "kdtp_CreateEndTime";
+ this.kdtp_CreateEndTime.ShowCheckBox = true;
+ this.kdtp_CreateEndTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateEndTime.TabIndex = 7;
+ //
+ // kdtp_CreateStartTime
+ //
+ this.kdtp_CreateStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateStartTime.Location = new System.Drawing.Point(136, 43);
+ this.kdtp_CreateStartTime.Name = "kdtp_CreateStartTime";
+ this.kdtp_CreateStartTime.ShowCheckBox = true;
+ this.kdtp_CreateStartTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateStartTime.TabIndex = 7;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel2.TabIndex = 4;
+ this.kryptonLabel2.Values.Text = "角色信息:";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(447, 44);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 4;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // kcmb_roleGrade
+ //
+ this.kcmb_roleGrade.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kcmb_roleGrade.DropDownWidth = 121;
+ this.kcmb_roleGrade.Items.AddRange(new object[] {
+ "请选择",
+ "管理员",
+ "普通用户"});
+ this.kcmb_roleGrade.Location = new System.Drawing.Point(535, 7);
+ this.kcmb_roleGrade.Name = "kcmb_roleGrade";
+ this.kcmb_roleGrade.Size = new System.Drawing.Size(246, 21);
+ this.kcmb_roleGrade.TabIndex = 6;
+ //
+ // ktb_roleMsg
+ //
+ this.ktb_roleMsg.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_roleMsg.Location = new System.Drawing.Point(136, 6);
+ this.ktb_roleMsg.Name = "ktb_roleMsg";
+ this.ktb_roleMsg.Size = new System.Drawing.Size(246, 23);
+ this.ktb_roleMsg.TabIndex = 5;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(3, 39);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel4.TabIndex = 4;
+ this.kryptonLabel4.Values.Text = "创建时间:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(402, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel3.TabIndex = 4;
+ this.kryptonLabel3.Values.Text = "角色级别:";
+ //
+ // dataGridViewTextBoxColumn2
+ //
+ this.dataGridViewTextBoxColumn2.HeaderText = "报警类别";
+ this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
+ this.dataGridViewTextBoxColumn2.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn4
+ //
+ this.dataGridViewTextBoxColumn4.HeaderText = "报警编码";
+ this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
+ this.dataGridViewTextBoxColumn4.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn3
+ //
+ this.dataGridViewTextBoxColumn3.HeaderText = "报警名称";
+ this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
+ this.dataGridViewTextBoxColumn3.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn1
+ //
+ this.dataGridViewTextBoxColumn1.HeaderText = "报警消息";
+ this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
+ this.dataGridViewTextBoxColumn1.ReadOnly = true;
+ //
+ // frmRole
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.kryptonPanel6);
+ this.Name = "frmRole";
+ this.Size = new System.Drawing.Size(802, 591);
+ this.Load += new System.EventHandler(this.frmRole_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel6)).EndInit();
+ this.kryptonPanel6.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_roleGrade)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel6;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
+ 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.KryptonButton kbt_Delete;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton ktb_setRoleMenuPermission;
+ 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 System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmRole.cs b/CleanMachineHMI/FrmUserControl/Base/frmRole.cs
new file mode 100644
index 0000000..34a14da
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmRole.cs
@@ -0,0 +1,220 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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
+{
+ [FormType(EnumFormType.Role)]
+ public partial class frmRole : UserControl
+ {
+ public frmRole()
+ {
+ InitializeComponent();
+ _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _ComboBoxLanguageTextList;
+ private DataTable _InfoLanguageTextList;
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+ public void Init()
+ {
+ var sql = $@"SELECT ROLE_ID 序号,ROLE_CODE 角色编码,ROLE_NAME 角色名称,CASE ROLE_GRADE WHEN '100' THEN 'Administrator' ELSE 'User' END 角色级别,CREATE_TIME 创建时间 FROM SYS_ROLE where DEL_FLAG = 0 ";
+ if (!string.IsNullOrEmpty(ktb_roleMsg.Text))
+ {
+ sql += $" And (ROLE_CODE like '%{ktb_roleMsg.Text}%' or ROLE_NAME like '%{ktb_roleMsg.Text}%')";
+ }
+ if (kcmb_roleGrade.SelectedIndex != 0)
+ {
+ if (kcmb_roleGrade.SelectedIndex == 1)
+ {
+ sql += $" AND ROLE_GRADE = '100'";
+ }
+ else
+ {
+ sql += $" AND ROLE_GRADE = '1'";
+ }
+ }
+ if (kdtp_CreateStartTime.Checked)
+ {
+ sql += $" AND CREATE_TIME >= '{kdtp_CreateStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (kdtp_CreateEndTime.Checked)
+ {
+ sql += $" AND CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_roleMsg.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_roleMsg.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ }
+ private void frmRole_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ kcmb_roleGrade.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_roleGrade.Name, "KryptonComboBox"))
+ {
+ kcmb_roleGrade.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ kcmb_roleGrade.SelectedIndex = 0;
+ }
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox2.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载角色信息界面发生异常", "LoadRoleMsgExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Add_Click(object sender, EventArgs e)
+ {
+ frmAddRole frm = new frmAddRole();
+ frm.ShowDialog();
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmEditRole frm = new frmEditRole();
+ frm.RoleId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的角色数据行!", "SelectWantToEditRow"));
+ }
+ }
+
+ private void kbt_Delete_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的角色信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ if (dr == DialogResult.OK)
+ {
+ string UserId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ string sqlIsExistAdmin = $@"SELECT 1 FROM SYS_ROLE WHERE ROLE_GRADE = '100' AND ROLE_ID = '{UserId}'";
+ DataTable dtIsExistAdmin = LeadDbHelperSQLite.Query(sqlIsExistAdmin).Tables[0];
+ if (dtIsExistAdmin != null && dtIsExistAdmin.Rows.Count > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("管理员角色不允许删除!", "DeleteAdminRoleInfo"));
+ return;
+ }
+ string sql = $@"DELETE FROM SYS_ROLE WHERE ROLE_ID = '{UserId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除角色数据成功!", "DeleteSuccessInfo"));
+ RefreshFrmHost();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除角色数据失败!", "DeleteFailInfo"));
+ }
+ }
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的角色数据行!", "SelectWantToDeleteRow"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除角色数据发生异常", "DeleteRoleDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询角色信息数据发生异常", "QueryRoleMsgData") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_roleMsg.Text = "";
+ kcmb_roleGrade.SelectedIndex = 0;
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ }
+
+ private void ktb_setRoleMenuPermission_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmSetRoleMenuPermission frm = new frmSetRoleMenuPermission();
+ frm.RoleId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要授权菜单权限的角色数据行!", "SelectWantToPermissionRow"));
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmRole.resx b/CleanMachineHMI/FrmUserControl/Base/frmRole.resx
new file mode 100644
index 0000000..5f36d83
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmRole.resx
@@ -0,0 +1,132 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmSheetType.Designer.cs b/CleanMachineHMI/FrmUserControl/Base/frmSheetType.Designer.cs
new file mode 100644
index 0000000..2497cac
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmSheetType.Designer.cs
@@ -0,0 +1,358 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmSheetType
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.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.ktb_SheetTypeName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ 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.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
+ this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
+ this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
+ this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
+ this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.tableLayoutPanel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(124, 30);
+ this.kryptonLabel2.TabIndex = 4;
+ this.kryptonLabel2.Values.Text = "板材编码:";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(452, 44);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 4;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // ktb_SheetTypeCode
+ //
+ this.ktb_SheetTypeCode.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_SheetTypeCode.Location = new System.Drawing.Point(141, 6);
+ this.ktb_SheetTypeCode.Name = "ktb_SheetTypeCode";
+ this.ktb_SheetTypeCode.Size = new System.Drawing.Size(246, 23);
+ this.ktb_SheetTypeCode.TabIndex = 5;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(3, 39);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(124, 30);
+ this.kryptonLabel4.TabIndex = 4;
+ this.kryptonLabel4.Values.Text = "创建时间:";
+ //
+ // ktb_SheetTypeName
+ //
+ this.ktb_SheetTypeName.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_SheetTypeName.Location = new System.Drawing.Point(540, 6);
+ this.ktb_SheetTypeName.Name = "ktb_SheetTypeName";
+ this.ktb_SheetTypeName.Size = new System.Drawing.Size(246, 23);
+ this.ktb_SheetTypeName.TabIndex = 5;
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(451, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(107, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(115, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // kbt_Delete
+ //
+ this.kbt_Delete.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Delete.Location = new System.Drawing.Point(227, 3);
+ this.kbt_Delete.Name = "kbt_Delete";
+ this.kbt_Delete.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Delete.TabIndex = 0;
+ this.kbt_Delete.Values.Text = "删除";
+ this.kbt_Delete.Click += new System.EventHandler(this.kbt_Delete_Click);
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(339, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kdtp_CreateEndTime
+ //
+ this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateEndTime.Location = new System.Drawing.Point(540, 43);
+ this.kdtp_CreateEndTime.Name = "kdtp_CreateEndTime";
+ this.kdtp_CreateEndTime.ShowCheckBox = true;
+ this.kdtp_CreateEndTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateEndTime.TabIndex = 7;
+ //
+ // kdtp_CreateStartTime
+ //
+ this.kdtp_CreateStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateStartTime.Location = new System.Drawing.Point(141, 43);
+ this.kdtp_CreateStartTime.Name = "kdtp_CreateStartTime";
+ this.kdtp_CreateStartTime.ShowCheckBox = true;
+ this.kdtp_CreateStartTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateStartTime.TabIndex = 7;
+ //
+ // kbt_Add
+ //
+ this.kbt_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Add.Location = new System.Drawing.Point(3, 3);
+ this.kbt_Add.Name = "kbt_Add";
+ this.kbt_Add.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Add.TabIndex = 0;
+ this.kbt_Add.Values.Text = "新增";
+ this.kbt_Add.Click += new System.EventHandler(this.kbt_Add_Click);
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(402, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(124, 30);
+ this.kryptonLabel3.TabIndex = 4;
+ this.kryptonLabel3.Values.Text = "板材名称:";
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 5;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 4, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Delete, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 3, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Add, 0, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(234, 78);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(561, 41);
+ this.tableLayoutPanel2.TabIndex = 4;
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(802, 129);
+ this.kryptonGroupBox1.TabIndex = 0;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 130F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 130F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_SheetTypeCode, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_SheetTypeName, 3, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(798, 72);
+ this.tableLayoutPanel1.TabIndex = 3;
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ 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.Location = new System.Drawing.Point(0, 0);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ this.dataGridView.RowHeadersWidth = 100;
+ this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView.Size = new System.Drawing.Size(798, 458);
+ this.dataGridView.TabIndex = 3;
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
+ this.kryptonGroupBox2.CaptionOverlap = 0D;
+ this.kryptonGroupBox2.CaptionStyle = ComponentFactory.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";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.dataGridView);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(802, 462);
+ this.kryptonGroupBox2.TabIndex = 5;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel1.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(802, 591);
+ this.kryptonPanel1.TabIndex = 3;
+ //
+ // frmSheetType
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.kryptonPanel1);
+ this.Name = "frmSheetType";
+ this.Size = new System.Drawing.Size(802, 591);
+ this.Load += new System.EventHandler(this.frmSheetType_Load);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ 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.KryptonTextBox ktb_SheetTypeName;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
+ private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
+ private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmSheetType.cs b/CleanMachineHMI/FrmUserControl/Base/frmSheetType.cs
new file mode 100644
index 0000000..aba51ce
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmSheetType.cs
@@ -0,0 +1,195 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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
+{
+ [FormType(EnumFormType.SheetType)]
+ public partial class frmSheetType : UserControl
+ {
+ public frmSheetType()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _InfoLanguageTextList;
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+ protected override CreateParams CreateParams
+ {
+ get
+ {
+ CreateParams cp = base.CreateParams;
+ cp.ExStyle |= 0x02000000;
+ return cp;
+ }
+ }
+
+ public void Init()
+ {
+ var sql = $@"select SHEET_TYPE_ID 序号,SHEET_TYPE_CODE 板材编码,SHEET_TYPE_NAME 板材名称,CREATE_TIME 创建时间 from BAS_SHEET_TYPE where DEL_FLAG=0";
+ if (!string.IsNullOrEmpty(ktb_SheetTypeCode.Text))
+ {
+ sql += $" AND SHEET_TYPE_CODE LIKE '%{ktb_SheetTypeCode.Text}%'";
+ }
+ if (!string.IsNullOrEmpty(ktb_SheetTypeName.Text))
+ {
+ sql += $" AND SHEET_TYPE_NAME LIKE '%{ktb_SheetTypeName.Text}%'";
+ }
+ if (kdtp_CreateStartTime.Checked)
+ {
+ sql += $" AND CREATE_TIME >= '{kdtp_CreateStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (kdtp_CreateEndTime.Checked)
+ {
+ sql += $" AND CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_SheetTypeCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_SheetTypeCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ ktb_SheetTypeName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_SheetTypeName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmSheetType_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox2.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载板材类型界面发生异常", "LoadSheetTypeExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询板材类型数据发生异常", "QuerySheetTypeData") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_SheetTypeCode.Text = "";
+ ktb_SheetTypeName.Text = "";
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ }
+
+ private void kbt_Add_Click(object sender, EventArgs e)
+ {
+ frmAddSheetType frm = new frmAddSheetType();
+ frm.ShowDialog();
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmEditSheetType frm = new frmEditSheetType();
+ frm.SheetTypeId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的板材类型数据行!", "SelectWantToEditRow"));
+ }
+ }
+
+ private void kbt_Delete_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的板材类型数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ if (dr == DialogResult.OK)
+ {
+ string SheetTypeId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ string sql = $@"DELETE FROM BAS_SHEET_TYPE WHERE SHEET_TYPE_ID = '{SheetTypeId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除板材类型数据成功!", "DeleteSuccessInfo"));
+ RefreshFrmHost();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除板材类型数据失败!", "DeleteFailInfo"));
+ }
+ }
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的板材类型数据行!", "SelectWantToDeleteRow"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染板材类型数据发生异常", "DeleteSheetTypeDataExp") + $":【{ex.Message}】!");
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmSheetType.resx b/CleanMachineHMI/FrmUserControl/Base/frmSheetType.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmSheetType.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmUser.Designer.cs b/CleanMachineHMI/FrmUserControl/Base/frmUser.Designer.cs
new file mode 100644
index 0000000..57c593b
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmUser.Designer.cs
@@ -0,0 +1,398 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmUser
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ 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_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.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.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
+ this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
+ this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonPanel6 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_gender)).BeginInit();
+ this.tableLayoutPanel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel6)).BeginInit();
+ this.kryptonPanel6.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // dataGridViewTextBoxColumn1
+ //
+ this.dataGridViewTextBoxColumn1.HeaderText = "报警消息";
+ this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
+ this.dataGridViewTextBoxColumn1.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn3
+ //
+ this.dataGridViewTextBoxColumn3.HeaderText = "报警名称";
+ this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
+ this.dataGridViewTextBoxColumn3.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn4
+ //
+ this.dataGridViewTextBoxColumn4.HeaderText = "报警编码";
+ this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
+ this.dataGridViewTextBoxColumn4.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn2
+ //
+ this.dataGridViewTextBoxColumn2.HeaderText = "报警类别";
+ this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
+ this.dataGridViewTextBoxColumn2.ReadOnly = true;
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 60F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kcmb_gender, 3, 0);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_userMsg, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(798, 72);
+ this.tableLayoutPanel1.TabIndex = 0;
+ //
+ // kdtp_CreateEndTime
+ //
+ this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateEndTime.Location = new System.Drawing.Point(520, 43);
+ this.kdtp_CreateEndTime.Name = "kdtp_CreateEndTime";
+ this.kdtp_CreateEndTime.ShowCheckBox = true;
+ this.kdtp_CreateEndTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateEndTime.TabIndex = 7;
+ //
+ // kdtp_CreateStartTime
+ //
+ this.kdtp_CreateStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateStartTime.Location = new System.Drawing.Point(151, 43);
+ this.kdtp_CreateStartTime.Name = "kdtp_CreateStartTime";
+ this.kdtp_CreateStartTime.ShowCheckBox = true;
+ this.kdtp_CreateStartTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateStartTime.TabIndex = 7;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel2.TabIndex = 4;
+ this.kryptonLabel2.Values.Text = "用户信息:";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(447, 44);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 4;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // kcmb_gender
+ //
+ this.kcmb_gender.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kcmb_gender.DropDownWidth = 121;
+ this.kcmb_gender.Items.AddRange(new object[] {
+ "请选择",
+ "男",
+ "女"});
+ this.kcmb_gender.Location = new System.Drawing.Point(520, 7);
+ this.kcmb_gender.Name = "kcmb_gender";
+ this.kcmb_gender.Size = new System.Drawing.Size(246, 21);
+ this.kcmb_gender.TabIndex = 6;
+ //
+ // ktb_userMsg
+ //
+ this.ktb_userMsg.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_userMsg.Location = new System.Drawing.Point(151, 6);
+ this.ktb_userMsg.Name = "ktb_userMsg";
+ this.ktb_userMsg.Size = new System.Drawing.Size(246, 23);
+ this.ktb_userMsg.TabIndex = 5;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(3, 39);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel4.TabIndex = 4;
+ this.kryptonLabel4.Values.Text = "创建时间:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(432, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(54, 30);
+ this.kryptonLabel3.TabIndex = 4;
+ this.kryptonLabel3.Values.Text = "性别:";
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(339, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kbt_Add
+ //
+ this.kbt_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Add.Location = new System.Drawing.Point(3, 3);
+ this.kbt_Add.Name = "kbt_Add";
+ this.kbt_Add.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Add.TabIndex = 0;
+ this.kbt_Add.Values.Text = "新增";
+ this.kbt_Add.Click += new System.EventHandler(this.kbt_Add_Click);
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(451, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(107, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(115, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 5;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 4, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Delete, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 3, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Add, 0, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(234, 78);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(561, 41);
+ this.tableLayoutPanel2.TabIndex = 2;
+ //
+ // kbt_Delete
+ //
+ this.kbt_Delete.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Delete.Location = new System.Drawing.Point(227, 3);
+ this.kbt_Delete.Name = "kbt_Delete";
+ this.kbt_Delete.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Delete.TabIndex = 0;
+ this.kbt_Delete.Values.Text = "删除";
+ this.kbt_Delete.Click += new System.EventHandler(this.kbt_Delete_Click);
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(802, 129);
+ this.kryptonGroupBox2.TabIndex = 0;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ 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.Location = new System.Drawing.Point(0, 0);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ this.dataGridView.RowHeadersWidth = 100;
+ this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView.Size = new System.Drawing.Size(798, 458);
+ this.dataGridView.TabIndex = 3;
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
+ this.kryptonGroupBox1.CaptionOverlap = 0D;
+ this.kryptonGroupBox1.CaptionStyle = ComponentFactory.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";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.dataGridView);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(802, 462);
+ this.kryptonGroupBox1.TabIndex = 4;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // kryptonPanel6
+ //
+ this.kryptonPanel6.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+ this.kryptonPanel6.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel6.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel6.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel6.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel6.Name = "kryptonPanel6";
+ this.kryptonPanel6.Size = new System.Drawing.Size(802, 591);
+ this.kryptonPanel6.TabIndex = 5;
+ //
+ // frmUser
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.kryptonPanel6);
+ this.Name = "frmUser";
+ this.Size = new System.Drawing.Size(802, 591);
+ this.Load += new System.EventHandler(this.frmUser_Load);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_gender)).EndInit();
+ this.tableLayoutPanel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel6)).EndInit();
+ this.kryptonPanel6.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
+ 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_gender;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_userMsg;
+ 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 System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel6;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmUser.cs b/CleanMachineHMI/FrmUserControl/Base/frmUser.cs
new file mode 100644
index 0000000..b0b7c05
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmUser.cs
@@ -0,0 +1,200 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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
+{
+ [FormType(EnumFormType.User)]
+ public partial class frmUser : UserControl
+ {
+ public frmUser()
+ {
+ InitializeComponent();
+ _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _ComboBoxLanguageTextList;
+ private DataTable _InfoLanguageTextList;
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+
+ public void Init()
+ {
+ var sql = $@"select USER_ID 序号,USER_CODE 用户编码,USER_NAME 用户名称,PASSWORD 密码,CASE GENDER WHEN 1 THEN 'man' ELSE 'woman' END 性别,CREATE_TIME 创建时间 from SYS_USER where DEL_FLAG = 0 ";
+ if (!string.IsNullOrEmpty(ktb_userMsg.Text))
+ {
+ sql += $" And (USER_CODE like '%{ktb_userMsg.Text}%' or USER_NAME like '%{ktb_userMsg.Text}%')";
+ }
+ if (kcmb_gender.SelectedIndex != 0)
+ {
+ sql += $" AND GENDER = '{kcmb_gender.SelectedIndex}'";
+ }
+ if (kdtp_CreateStartTime.Checked)
+ {
+ sql += $" AND CREATE_TIME >= '{kdtp_CreateStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (kdtp_CreateEndTime.Checked)
+ {
+ sql += $" AND CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (GlobalHelper.UserInfo.ROLE_GRADE != 100)
+ {
+ sql += $" AND USER_ID = '{GlobalHelper.UserInfo.USER_ID}'";
+ }
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_userMsg.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_userMsg.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ }
+
+ private void frmUser_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ kcmb_gender.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_gender.Name, "KryptonComboBox"))
+ {
+ kcmb_gender.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ }
+ kcmb_gender.SelectedIndex = 0;
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox2.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载用户信息界面发生异常", "LoadUserMsgExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询用户信息数据发生异常", "QueryUserMsgData") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_userMsg.Text = "";
+ kcmb_gender.SelectedIndex = 0;
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ }
+
+ private void kbt_Add_Click(object sender, EventArgs e)
+ {
+ frmAddUser frm = new frmAddUser();
+ frm.ShowDialog();
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmEditUser frm = new frmEditUser();
+ frm.UserId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的用户信息数据行!", "SelectWantToEditRow"));
+ }
+ }
+
+ private void kbt_Delete_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的用户信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ if (dr == DialogResult.OK)
+ {
+ string UserId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ string sql = $@"DELETE FROM SYS_USER WHERE USER_ID = '{UserId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除用户数据成功!", "DeleteSuccessInfo"));
+ RefreshFrmHost();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除用户数据失败!", "DeleteFailInfo"));
+ }
+ }
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的用户数据行!", "SelectWantToDeleteRow"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除用户信息数据发生异常", "DeleteUserMsgDataExp") + $":【{ex.Message}】!");
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmUser.resx b/CleanMachineHMI/FrmUserControl/Base/frmUser.resx
new file mode 100644
index 0000000..ecfd18c
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmUser.resx
@@ -0,0 +1,132 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmWarning.Designer.cs b/CleanMachineHMI/FrmUserControl/Base/frmWarning.Designer.cs
new file mode 100644
index 0000000..3dc3cbe
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmWarning.Designer.cs
@@ -0,0 +1,397 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmWarning
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
+ this.kryptonPanel6 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonGroupBox2 = new ComponentFactory.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.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.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel6)).BeginInit();
+ this.kryptonPanel6.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_WarningType)).BeginInit();
+ this.SuspendLayout();
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
+ 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.Location = new System.Drawing.Point(0, 0);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ this.dataGridView.RowHeadersWidth = 100;
+ this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView.Size = new System.Drawing.Size(798, 459);
+ this.dataGridView.TabIndex = 3;
+ //
+ // kryptonPanel6
+ //
+ this.kryptonPanel6.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel6.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel6.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel6.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel6.Name = "kryptonPanel6";
+ this.kryptonPanel6.Size = new System.Drawing.Size(802, 591);
+ this.kryptonPanel6.TabIndex = 4;
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
+ this.kryptonGroupBox1.CaptionOverlap = 0D;
+ this.kryptonGroupBox1.CaptionStyle = ComponentFactory.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";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.dataGridView);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(802, 463);
+ this.kryptonGroupBox1.TabIndex = 7;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(802, 128);
+ this.kryptonGroupBox2.TabIndex = 0;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 5;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 4, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Delete, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 3, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Add, 0, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(234, 77);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(561, 41);
+ this.tableLayoutPanel2.TabIndex = 6;
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(451, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(107, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(115, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // kbt_Delete
+ //
+ this.kbt_Delete.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Delete.Location = new System.Drawing.Point(227, 3);
+ this.kbt_Delete.Name = "kbt_Delete";
+ this.kbt_Delete.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Delete.TabIndex = 0;
+ this.kbt_Delete.Values.Text = "删除";
+ this.kbt_Delete.Click += new System.EventHandler(this.kbt_Delete_Click);
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(339, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kbt_Add
+ //
+ this.kbt_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Add.Location = new System.Drawing.Point(3, 3);
+ this.kbt_Add.Name = "kbt_Add";
+ this.kbt_Add.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Add.TabIndex = 0;
+ this.kbt_Add.Values.Text = "新增";
+ this.kbt_Add.Click += new System.EventHandler(this.kbt_Add_Click);
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 100F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_WarningMsg, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kcmb_WarningType, 3, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(798, 72);
+ this.tableLayoutPanel1.TabIndex = 5;
+ //
+ // kdtp_CreateEndTime
+ //
+ this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateEndTime.Location = new System.Drawing.Point(530, 43);
+ this.kdtp_CreateEndTime.Name = "kdtp_CreateEndTime";
+ this.kdtp_CreateEndTime.ShowCheckBox = true;
+ this.kdtp_CreateEndTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateEndTime.TabIndex = 7;
+ //
+ // kdtp_CreateStartTime
+ //
+ this.kdtp_CreateStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateStartTime.Location = new System.Drawing.Point(141, 43);
+ this.kdtp_CreateStartTime.Name = "kdtp_CreateStartTime";
+ this.kdtp_CreateStartTime.ShowCheckBox = true;
+ this.kdtp_CreateStartTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateStartTime.TabIndex = 7;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel2.TabIndex = 4;
+ this.kryptonLabel2.Values.Text = "报警信息:";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(447, 44);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 4;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // ktb_WarningMsg
+ //
+ this.ktb_WarningMsg.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_WarningMsg.Location = new System.Drawing.Point(141, 6);
+ this.ktb_WarningMsg.Name = "ktb_WarningMsg";
+ this.ktb_WarningMsg.Size = new System.Drawing.Size(246, 23);
+ this.ktb_WarningMsg.TabIndex = 5;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(3, 39);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel4.TabIndex = 4;
+ this.kryptonLabel4.Values.Text = "创建时间:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(412, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(94, 30);
+ this.kryptonLabel3.TabIndex = 4;
+ this.kryptonLabel3.Values.Text = "报警类型:";
+ //
+ // kcmb_WarningType
+ //
+ this.kcmb_WarningType.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kcmb_WarningType.DropDownWidth = 246;
+ this.kcmb_WarningType.Items.AddRange(new object[] {
+ "请选择",
+ "清洁机报警",
+ "变频器报警"});
+ this.kcmb_WarningType.Location = new System.Drawing.Point(530, 7);
+ this.kcmb_WarningType.Name = "kcmb_WarningType";
+ this.kcmb_WarningType.Size = new System.Drawing.Size(246, 21);
+ this.kcmb_WarningType.TabIndex = 8;
+ //
+ // dataGridViewTextBoxColumn4
+ //
+ this.dataGridViewTextBoxColumn4.HeaderText = "报警编码";
+ this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
+ this.dataGridViewTextBoxColumn4.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn3
+ //
+ this.dataGridViewTextBoxColumn3.HeaderText = "报警名称";
+ this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
+ this.dataGridViewTextBoxColumn3.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn2
+ //
+ this.dataGridViewTextBoxColumn2.HeaderText = "报警类别";
+ this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
+ this.dataGridViewTextBoxColumn2.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn1
+ //
+ this.dataGridViewTextBoxColumn1.HeaderText = "报警消息";
+ this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
+ this.dataGridViewTextBoxColumn1.ReadOnly = true;
+ //
+ // frmWarning
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.kryptonPanel6);
+ this.Name = "frmWarning";
+ this.Size = new System.Drawing.Size(802, 591);
+ this.Load += new System.EventHandler(this.frmWarning_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel6)).EndInit();
+ this.kryptonPanel6.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_WarningType)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel6;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
+ 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 System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmWarning.cs b/CleanMachineHMI/FrmUserControl/Base/frmWarning.cs
new file mode 100644
index 0000000..ca3cb7e
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmWarning.cs
@@ -0,0 +1,208 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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
+{
+ [FormType(EnumFormType.Warning)]
+ public partial class frmWarning : UserControl
+ {
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+
+ public frmWarning()
+ {
+ InitializeComponent();
+ _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _ComboBoxLanguageTextList;
+ private DataTable _InfoLanguageTextList;
+ public void Init()
+ {
+ var sql = $@"select WARNING_ID 序号,WARNING_CODE 报警编码,WARNING_NAME 报警名称,PLC_ITEM_CODE 'PLC信息',CASE WARNING_TYPE WHEN '1' THEN 'Cleaning machine alarm' ELSE 'Frequency converter alarm' END '报警类型',WARNING_MESSAGE 报警描述,CREATE_TIME 创建时间 from BAS_WARNING where DEL_FLAG=0";
+ if (!string.IsNullOrEmpty(ktb_WarningMsg.Text))
+ {
+ sql += $" AND (WARNING_CODE like '%{ktb_WarningMsg.Text}%' OR WARNING_NAME like '%{ktb_WarningMsg.Text}%')";
+ }
+ if (kcmb_WarningType.SelectedIndex != 0)
+ {
+ sql += $" AND WARNING_TYPE = '{kcmb_WarningType.SelectedIndex}'";
+ }
+ if (kdtp_CreateStartTime.Checked)
+ {
+ sql += $" AND CREATE_TIME >= '{kdtp_CreateStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (kdtp_CreateEndTime.Checked)
+ {
+ sql += $" AND CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+
+ }
+
+ protected override CreateParams CreateParams
+ {
+ get
+ {
+ CreateParams cp = base.CreateParams;
+ cp.ExStyle |= 0x02000000;
+ return cp;
+ }
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_WarningMsg.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_WarningMsg.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ }
+
+ private void frmWarning_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ kcmb_WarningType.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_WarningType.Name, "KryptonComboBox"))
+ {
+ kcmb_WarningType.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ }
+ kcmb_WarningType.SelectedIndex = 0;
+
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox2.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载报警信息界面发生异常", "LoadWarningMsgExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询报警信息数据发生异常", "QueryWarningMsgDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_WarningMsg.Text = "";
+ kcmb_WarningType.SelectedIndex = 0;
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ }
+
+ private void kbt_Add_Click(object sender, EventArgs e)
+ {
+ frmAddWaringMsg frm = new frmAddWaringMsg();
+ frm.ShowDialog();
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmEditWaringMsg frm = new frmEditWaringMsg();
+ frm.WarningId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的报警信息数据行!", "SelectWantToEditRow"));
+ }
+ }
+
+ private void kbt_Delete_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的报警信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ if (dr == DialogResult.OK)
+ {
+ string WarningId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ string sql = $@"DELETE FROM BAS_WARNING WHERE WARNING_ID = '{WarningId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除报警数据成功!", "DeleteSuccessInfo"));
+ RefreshFrmHost();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除报警数据失败!", "DeleteFailInfo"));
+ }
+ }
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的报警数据行!", "SelectWantToDeleteRow"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除报警信息数据发生异常", "DeleteWarningMsgDataExp") + $":【{ex.Message}】!");
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmWarning.resx b/CleanMachineHMI/FrmUserControl/Base/frmWarning.resx
new file mode 100644
index 0000000..ab7e67d
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/Base/frmWarning.resx
@@ -0,0 +1,135 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/frmCurrWorkingIrMsg.Designer.cs b/CleanMachineHMI/FrmUserControl/frmCurrWorkingIrMsg.Designer.cs
new file mode 100644
index 0000000..2b30f89
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmCurrWorkingIrMsg.Designer.cs
@@ -0,0 +1,203 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmCurrWorkingIrMsg
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.components = new System.ComponentModel.Container();
+ this.kryptonDataGridView1 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
+ this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonTextBox2 = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonTextBox1 = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.timer1 = new System.Windows.Forms.Timer(this.components);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonDataGridView1
+ //
+ this.kryptonDataGridView1.AllowUserToAddRows = false;
+ this.kryptonDataGridView1.AllowUserToDeleteRows = false;
+ this.kryptonDataGridView1.AllowUserToResizeRows = false;
+ this.kryptonDataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
+ this.kryptonDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.kryptonDataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonDataGridView1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonDataGridView1.MultiSelect = false;
+ this.kryptonDataGridView1.Name = "kryptonDataGridView1";
+ this.kryptonDataGridView1.RowTemplate.Height = 23;
+ this.kryptonDataGridView1.Size = new System.Drawing.Size(1020, 553);
+ this.kryptonDataGridView1.TabIndex = 0;
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel1.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(1024, 672);
+ this.kryptonPanel1.TabIndex = 1;
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.CaptionOverlap = 0D;
+ this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 95);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonDataGridView1);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(1024, 577);
+ this.kryptonGroupBox2.TabIndex = 1;
+ this.kryptonGroupBox2.Values.Heading = "Current IR Details:";
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonButton1);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonTextBox2);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel2);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonTextBox1);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel1);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(1024, 95);
+ this.kryptonGroupBox1.TabIndex = 0;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // kryptonButton1
+ //
+ this.kryptonButton1.Location = new System.Drawing.Point(803, 33);
+ this.kryptonButton1.Name = "kryptonButton1";
+ this.kryptonButton1.Size = new System.Drawing.Size(122, 25);
+ this.kryptonButton1.TabIndex = 2;
+ this.kryptonButton1.Values.Text = "Clear current data";
+ this.kryptonButton1.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // kryptonTextBox2
+ //
+ this.kryptonTextBox2.Location = new System.Drawing.Point(419, 53);
+ this.kryptonTextBox2.Name = "kryptonTextBox2";
+ this.kryptonTextBox2.ReadOnly = true;
+ this.kryptonTextBox2.Size = new System.Drawing.Size(301, 23);
+ this.kryptonTextBox2.StateCommon.Content.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonTextBox2.TabIndex = 1;
+ this.kryptonTextBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Location = new System.Drawing.Point(169, 53);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.RightToLeft = System.Windows.Forms.RightToLeft.No;
+ this.kryptonLabel2.Size = new System.Drawing.Size(244, 23);
+ this.kryptonLabel2.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel2.TabIndex = 0;
+ this.kryptonLabel2.Values.Text = "Current job IR information:";
+ //
+ // kryptonTextBox1
+ //
+ this.kryptonTextBox1.Location = new System.Drawing.Point(419, 12);
+ this.kryptonTextBox1.Name = "kryptonTextBox1";
+ this.kryptonTextBox1.ReadOnly = true;
+ this.kryptonTextBox1.Size = new System.Drawing.Size(301, 23);
+ this.kryptonTextBox1.StateCommon.Content.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonTextBox1.TabIndex = 1;
+ this.kryptonTextBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // kryptonLabel1
+ //
+ this.kryptonLabel1.Location = new System.Drawing.Point(236, 12);
+ this.kryptonLabel1.Name = "kryptonLabel1";
+ this.kryptonLabel1.RightToLeft = System.Windows.Forms.RightToLeft.No;
+ this.kryptonLabel1.Size = new System.Drawing.Size(177, 23);
+ this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel1.TabIndex = 0;
+ this.kryptonLabel1.Values.Text = "Current job pallet:";
+ //
+ // timer1
+ //
+ this.timer1.Interval = 1000;
+ this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
+ //
+ // frmCurrWorkingIrMsg
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.kryptonPanel1);
+ this.Name = "frmCurrWorkingIrMsg";
+ this.Size = new System.Drawing.Size(1024, 672);
+ this.Load += new System.EventHandler(this.frmCurrWorkingIrMsg_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ this.kryptonGroupBox1.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox kryptonTextBox2;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox kryptonTextBox1;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
+ private System.Windows.Forms.Timer timer1;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmCurrWorkingIrMsg.cs b/CleanMachineHMI/FrmUserControl/frmCurrWorkingIrMsg.cs
new file mode 100644
index 0000000..efecff2
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmCurrWorkingIrMsg.cs
@@ -0,0 +1,115 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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
+{
+ [FormType(EnumFormType.CurrWorkingIR)]
+ public partial class frmCurrWorkingIrMsg : UserControl
+ {
+ public frmCurrWorkingIrMsg()
+ {
+ InitializeComponent();
+ }
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+ private void RefreshData()
+ {
+ try
+ {
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ string sql = $@"SELECT * FROM CM_WORKING_PALLET_DTL WHERE WORKING_DTL_STATUS = 0";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ string currIrMsg = dt.Rows[0]["IR_CODE"].ToString();
+ string currPalletMsg = dt.Rows[0]["WORKING_PALLET_CODE"].ToString();
+ string sql1 = $@"
+ SELECT
+ CLEAN_MODE_CODE '清洗方式编码',
+ CLEAN_MODE_NAME '清洗方式名称',
+ CONTAMINATION_TYPE_CODE '污染类型编码',
+ CONTAMINATION_TYPE_NAME '污染类型名称',
+ CONTAMINATION_DTL_CODE '污染明细编码',
+ CONTAMINATION_DTL_NAME '污染明细名称',
+ CURRENT_NUMBER '当前计数',
+ USER_CODE '操作员编码',
+ USER_NAME '操作员名称'
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{currIrMsg}';
+ ";
+ DataTable dt1 = LeadDbHelperSQLite.Query(sql1).Tables[0];
+ kryptonDataGridView1.DataSource = dt1;
+ kryptonTextBox1.Text = currPalletMsg;
+ kryptonTextBox2.Text = currIrMsg;
+
+ kryptonDataGridView1.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ }
+ else
+ {
+ kryptonDataGridView1.DataSource = null;
+ kryptonTextBox1.Text = "";
+ kryptonTextBox2.Text = "";
+ }
+ }
+ catch
+ {
+
+ }
+ }
+ private void frmCurrWorkingIrMsg_Load(object sender, EventArgs e)
+ {
+ RefreshFrmHost = new dlgRefreshFrmHost(RefreshData);
+ timer1.Enabled = true;
+ kryptonGroupBox1.Focus();
+ }
+
+ private void timer1_Tick(object sender, EventArgs e)
+ {
+ RefreshData();
+ }
+
+ private void kryptonButton1_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ DialogResult dr = KryptonMessageBox.Show("Are you sure you want to clear the IR data for the current job? If you continue to reset the current job information, you will need to enter new IR and sheet information. please carefully operation!!!", "Prompt", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
+ if (dr == DialogResult.Yes)
+ {
+ string sqlUpdateWorkingPallet = $@"UPDATE CM_WORKING_PALLET SET WORKING_STATUS = 1,UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 where WORKING_PALLET_CODE = '{kryptonTextBox1.Text.Trim()}';";
+ string sqlUpdateWorkingPalletDtl = $@"UPDATE CM_WORKING_PALLET_DTL SET WORKING_DTL_STATUS = 1,UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 where WORKING_PALLET_CODE = '{kryptonTextBox1.Text.Trim()}';";
+ string sqlInsertZbkWorkingPallet = $@"INSERT INTO ZBK_WORKING_PALLET SELECT * FROM CM_WORKING_PALLET WHERE WORKING_STATUS = 1 and WORKING_PALLET_CODE in (select WORKING_PALLET_CODE from CM_WORKING_PALLET_DTL where WORKING_DTL_STATUS = 1 and IR_CODE = '{kryptonTextBox2.Text.Trim()}');";
+ string sqlInsertZbkWorkingPalletDtl = $@"INSERT INTO ZBK_WORKING_PALLET_DTL SELECT * FROM CM_WORKING_PALLET_DTL WHERE WORKING_DTL_STATUS = 1 and IR_CODE = '{kryptonTextBox2.Text.Trim()}';";
+ string sqlDeleteWorkingPallet = $@"delete from CM_WORKING_PALLET where WORKING_STATUS = 1 and WORKING_PALLET_CODE in (select WORKING_PALLET_CODE from CM_WORKING_PALLET_DTL where WORKING_DTL_STATUS = 1 and IR_CODE = '{kryptonTextBox2.Text.Trim()}');";
+ string sqlDeleteWorkingPalletDtl = $@"delete from CM_WORKING_PALLET_DTL where WORKING_DTL_STATUS = 1 and IR_CODE = '{kryptonTextBox2.Text.Trim()}';";
+
+ LeadDbHelperSQLite.ExecuteSql(sqlUpdateWorkingPallet);
+ LeadDbHelperSQLite.ExecuteSql(sqlUpdateWorkingPalletDtl);
+ LeadDbHelperSQLite.ExecuteSql(sqlInsertZbkWorkingPalletDtl);
+ LeadDbHelperSQLite.ExecuteSql(sqlInsertZbkWorkingPallet);
+ LeadDbHelperSQLite.ExecuteSql(sqlDeleteWorkingPallet);
+ LeadDbHelperSQLite.ExecuteSql(sqlDeleteWorkingPalletDtl);
+ frmMainDetail.RefreshCurrentWorkingDataFrmHost();
+ PlcOperationHelper.Instance.WritePlcItem("NozzleNum", "0", PlcItemTypeDesc.D);
+ KryptonMessageBox.Show("Cleared current working data successfully!");
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmCurrWorkingIrMsg.resx b/CleanMachineHMI/FrmUserControl/frmCurrWorkingIrMsg.resx
new file mode 100644
index 0000000..1f666f2
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmCurrWorkingIrMsg.resx
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 17, 17
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/frmIOMonitor.Designer.cs b/CleanMachineHMI/FrmUserControl/frmIOMonitor.Designer.cs
new file mode 100644
index 0000000..a852381
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmIOMonitor.Designer.cs
@@ -0,0 +1,3381 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmIOMonitor
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.klb_X15 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.klb_X33 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X33 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel46 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel23 = new System.Windows.Forms.Panel();
+ this.klb_X13 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X13 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel44 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel22 = new System.Windows.Forms.Panel();
+ this.klb_X32 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X32 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel42 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel21 = new System.Windows.Forms.Panel();
+ this.klb_X12 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X12 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel40 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel24 = new System.Windows.Forms.Panel();
+ this.panel20 = new System.Windows.Forms.Panel();
+ this.klb_X31 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X31 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel38 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel19 = new System.Windows.Forms.Panel();
+ this.klb_X11 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X11 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel36 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel18 = new System.Windows.Forms.Panel();
+ this.klb_X30 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X30 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel34 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel17 = new System.Windows.Forms.Panel();
+ this.klb_X10 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X10 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel32 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X15 = new CleanMachineHMI.CircleButton();
+ this.panel32 = new System.Windows.Forms.Panel();
+ this.klb_X37 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X37 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel62 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.klb_Y27 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel30 = new System.Windows.Forms.Panel();
+ this.klb_X36 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X36 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel58 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel31 = new System.Windows.Forms.Panel();
+ this.klb_X17 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X17 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel60 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel26 = new System.Windows.Forms.Panel();
+ this.klb_X34 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X34 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel50 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel29 = new System.Windows.Forms.Panel();
+ this.klb_X16 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X16 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel56 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel25 = new System.Windows.Forms.Panel();
+ this.klb_X14 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X14 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel48 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel28 = new System.Windows.Forms.Panel();
+ this.klb_X35 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X35 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel54 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel27 = new System.Windows.Forms.Panel();
+ this.kryptonLabel52 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.klb_X04 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel16 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y27 = new CleanMachineHMI.CircleButton();
+ this.klb_X23 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X23 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel14 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.klb_X03 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X03 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel12 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.klb_X22 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X22 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel10 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.klb_X02 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X02 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel8 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.klb_X21 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X21 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel6 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.klb_X01 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X01 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.klb_X20 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X20 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.klb_X00 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X00 = new CleanMachineHMI.CircleButton();
+ this.cbt_X04 = new CleanMachineHMI.CircleButton();
+ this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.kryptonPanel3 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.panel64 = new System.Windows.Forms.Panel();
+ this.klb_Y37 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y37 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel126 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel36 = new System.Windows.Forms.Panel();
+ this.klb_Y21 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y21 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel70 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel63 = new System.Windows.Forms.Panel();
+ this.klb_Y36 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y36 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel124 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel33 = new System.Windows.Forms.Panel();
+ this.klb_Y00 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y00 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel64 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel62 = new System.Windows.Forms.Panel();
+ this.klb_Y17 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y17 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel122 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel34 = new System.Windows.Forms.Panel();
+ this.klb_Y20 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y20 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel66 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel61 = new System.Windows.Forms.Panel();
+ this.klb_Y34 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y34 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel120 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel35 = new System.Windows.Forms.Panel();
+ this.klb_Y01 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y01 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel68 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel60 = new System.Windows.Forms.Panel();
+ this.klb_Y16 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y16 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel118 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel37 = new System.Windows.Forms.Panel();
+ this.klb_Y02 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y02 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel72 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel59 = new System.Windows.Forms.Panel();
+ this.klb_Y14 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y14 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel116 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel38 = new System.Windows.Forms.Panel();
+ this.klb_Y22 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y22 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel74 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel58 = new System.Windows.Forms.Panel();
+ this.klb_Y35 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y35 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel114 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel39 = new System.Windows.Forms.Panel();
+ this.klb_Y03 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y03 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel76 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel57 = new System.Windows.Forms.Panel();
+ this.klb_Y15 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y15 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel112 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel40 = new System.Windows.Forms.Panel();
+ this.klb_Y23 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y23 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel78 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel56 = new System.Windows.Forms.Panel();
+ this.klb_Y33 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y33 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel110 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel41 = new System.Windows.Forms.Panel();
+ this.klb_Y04 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y04 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel80 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel55 = new System.Windows.Forms.Panel();
+ this.klb_Y13 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y13 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel108 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel42 = new System.Windows.Forms.Panel();
+ this.klb_Y24 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y24 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel82 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel54 = new System.Windows.Forms.Panel();
+ this.klb_Y32 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y32 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel106 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel43 = new System.Windows.Forms.Panel();
+ this.klb_Y05 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y05 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel84 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel53 = new System.Windows.Forms.Panel();
+ this.klb_Y12 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y12 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel104 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel44 = new System.Windows.Forms.Panel();
+ this.klb_Y25 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y25 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel86 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel52 = new System.Windows.Forms.Panel();
+ this.klb_Y31 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y31 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel102 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel45 = new System.Windows.Forms.Panel();
+ this.klb_Y06 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y06 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel88 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel51 = new System.Windows.Forms.Panel();
+ this.klb_Y11 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y11 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel100 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel46 = new System.Windows.Forms.Panel();
+ this.klb_Y26 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y26 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel90 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel50 = new System.Windows.Forms.Panel();
+ this.klb_Y30 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y30 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel98 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel47 = new System.Windows.Forms.Panel();
+ this.klb_Y07 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y07 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel92 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel49 = new System.Windows.Forms.Panel();
+ this.klb_Y10 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Y10 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel96 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel48 = new System.Windows.Forms.Panel();
+ this.kryptonLabel94 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.panel16 = new System.Windows.Forms.Panel();
+ this.klb_X27 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X27 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel30 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel15 = new System.Windows.Forms.Panel();
+ this.klb_X07 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X07 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel28 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel14 = new System.Windows.Forms.Panel();
+ this.klb_X26 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X26 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel26 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel13 = new System.Windows.Forms.Panel();
+ this.klb_X06 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X06 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel24 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel12 = new System.Windows.Forms.Panel();
+ this.klb_X25 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X25 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel22 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel11 = new System.Windows.Forms.Panel();
+ this.klb_X05 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X05 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel20 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel10 = new System.Windows.Forms.Panel();
+ this.klb_X24 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_X24 = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel18 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel9 = new System.Windows.Forms.Panel();
+ this.panel8 = new System.Windows.Forms.Panel();
+ this.panel7 = new System.Windows.Forms.Panel();
+ this.panel6 = new System.Windows.Forms.Panel();
+ this.panel5 = new System.Windows.Forms.Panel();
+ this.panel4 = new System.Windows.Forms.Panel();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel23.SuspendLayout();
+ this.panel22.SuspendLayout();
+ this.panel21.SuspendLayout();
+ this.panel24.SuspendLayout();
+ this.panel20.SuspendLayout();
+ this.panel19.SuspendLayout();
+ this.panel18.SuspendLayout();
+ this.panel17.SuspendLayout();
+ this.panel32.SuspendLayout();
+ this.panel30.SuspendLayout();
+ this.panel31.SuspendLayout();
+ this.panel26.SuspendLayout();
+ this.panel29.SuspendLayout();
+ this.panel25.SuspendLayout();
+ this.panel28.SuspendLayout();
+ this.panel27.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit();
+ this.kryptonPanel3.SuspendLayout();
+ this.panel64.SuspendLayout();
+ this.panel36.SuspendLayout();
+ this.panel63.SuspendLayout();
+ this.panel33.SuspendLayout();
+ this.panel62.SuspendLayout();
+ this.panel34.SuspendLayout();
+ this.panel61.SuspendLayout();
+ this.panel35.SuspendLayout();
+ this.panel60.SuspendLayout();
+ this.panel37.SuspendLayout();
+ this.panel59.SuspendLayout();
+ this.panel38.SuspendLayout();
+ this.panel58.SuspendLayout();
+ this.panel39.SuspendLayout();
+ this.panel57.SuspendLayout();
+ this.panel40.SuspendLayout();
+ this.panel56.SuspendLayout();
+ this.panel41.SuspendLayout();
+ this.panel55.SuspendLayout();
+ this.panel42.SuspendLayout();
+ this.panel54.SuspendLayout();
+ this.panel43.SuspendLayout();
+ this.panel53.SuspendLayout();
+ this.panel44.SuspendLayout();
+ this.panel52.SuspendLayout();
+ this.panel45.SuspendLayout();
+ this.panel51.SuspendLayout();
+ this.panel46.SuspendLayout();
+ this.panel50.SuspendLayout();
+ this.panel47.SuspendLayout();
+ this.panel49.SuspendLayout();
+ this.panel48.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
+ this.kryptonPanel2.SuspendLayout();
+ this.panel16.SuspendLayout();
+ this.panel15.SuspendLayout();
+ this.panel14.SuspendLayout();
+ this.panel13.SuspendLayout();
+ this.panel12.SuspendLayout();
+ this.panel11.SuspendLayout();
+ this.panel10.SuspendLayout();
+ this.panel9.SuspendLayout();
+ this.panel8.SuspendLayout();
+ this.panel7.SuspendLayout();
+ this.panel6.SuspendLayout();
+ this.panel5.SuspendLayout();
+ this.panel4.SuspendLayout();
+ this.panel3.SuspendLayout();
+ this.panel2.SuspendLayout();
+ this.panel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // klb_X15
+ //
+ this.klb_X15.Location = new System.Drawing.Point(50, 7);
+ this.klb_X15.Name = "klb_X15";
+ this.klb_X15.Size = new System.Drawing.Size(84, 15);
+ this.klb_X15.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X15.TabIndex = 3;
+ this.klb_X15.Values.Text = "kryptonLabel2";
+ //
+ // klb_X33
+ //
+ this.klb_X33.Location = new System.Drawing.Point(50, 7);
+ this.klb_X33.Name = "klb_X33";
+ this.klb_X33.Size = new System.Drawing.Size(84, 15);
+ this.klb_X33.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X33.TabIndex = 3;
+ this.klb_X33.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X33
+ //
+ this.cbt_X33.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X33.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X33.Name = "cbt_X33";
+ this.cbt_X33.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X33.TabIndex = 2;
+ this.cbt_X33.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel46
+ //
+ this.kryptonLabel46.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel46.Name = "kryptonLabel46";
+ this.kryptonLabel46.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel46.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel46.TabIndex = 2;
+ this.kryptonLabel46.Values.Text = "X33";
+ //
+ // panel23
+ //
+ this.panel23.BackColor = System.Drawing.Color.White;
+ this.panel23.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel23.Controls.Add(this.klb_X13);
+ this.panel23.Controls.Add(this.cbt_X13);
+ this.panel23.Controls.Add(this.kryptonLabel44);
+ this.panel23.Location = new System.Drawing.Point(3, 403);
+ this.panel23.Name = "panel23";
+ this.panel23.Size = new System.Drawing.Size(243, 30);
+ this.panel23.TabIndex = 1;
+ //
+ // klb_X13
+ //
+ this.klb_X13.Location = new System.Drawing.Point(50, 7);
+ this.klb_X13.Name = "klb_X13";
+ this.klb_X13.Size = new System.Drawing.Size(84, 15);
+ this.klb_X13.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X13.TabIndex = 3;
+ this.klb_X13.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X13
+ //
+ this.cbt_X13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X13.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X13.Name = "cbt_X13";
+ this.cbt_X13.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X13.TabIndex = 2;
+ this.cbt_X13.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel44
+ //
+ this.kryptonLabel44.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel44.Name = "kryptonLabel44";
+ this.kryptonLabel44.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel44.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel44.TabIndex = 2;
+ this.kryptonLabel44.Values.Text = "X13";
+ //
+ // panel22
+ //
+ this.panel22.BackColor = System.Drawing.Color.White;
+ this.panel22.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel22.Controls.Add(this.klb_X32);
+ this.panel22.Controls.Add(this.cbt_X32);
+ this.panel22.Controls.Add(this.kryptonLabel42);
+ this.panel22.Location = new System.Drawing.Point(248, 367);
+ this.panel22.Name = "panel22";
+ this.panel22.Size = new System.Drawing.Size(243, 30);
+ this.panel22.TabIndex = 1;
+ //
+ // klb_X32
+ //
+ this.klb_X32.Location = new System.Drawing.Point(50, 7);
+ this.klb_X32.Name = "klb_X32";
+ this.klb_X32.Size = new System.Drawing.Size(84, 15);
+ this.klb_X32.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X32.TabIndex = 3;
+ this.klb_X32.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X32
+ //
+ this.cbt_X32.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X32.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X32.Name = "cbt_X32";
+ this.cbt_X32.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X32.TabIndex = 2;
+ this.cbt_X32.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel42
+ //
+ this.kryptonLabel42.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel42.Name = "kryptonLabel42";
+ this.kryptonLabel42.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel42.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel42.TabIndex = 2;
+ this.kryptonLabel42.Values.Text = "X32";
+ //
+ // panel21
+ //
+ this.panel21.BackColor = System.Drawing.Color.White;
+ this.panel21.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel21.Controls.Add(this.klb_X12);
+ this.panel21.Controls.Add(this.cbt_X12);
+ this.panel21.Controls.Add(this.kryptonLabel40);
+ this.panel21.Location = new System.Drawing.Point(3, 367);
+ this.panel21.Name = "panel21";
+ this.panel21.Size = new System.Drawing.Size(243, 30);
+ this.panel21.TabIndex = 1;
+ //
+ // klb_X12
+ //
+ this.klb_X12.Location = new System.Drawing.Point(50, 7);
+ this.klb_X12.Name = "klb_X12";
+ this.klb_X12.Size = new System.Drawing.Size(84, 15);
+ this.klb_X12.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X12.TabIndex = 3;
+ this.klb_X12.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X12
+ //
+ this.cbt_X12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X12.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X12.Name = "cbt_X12";
+ this.cbt_X12.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X12.TabIndex = 2;
+ this.cbt_X12.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel40
+ //
+ this.kryptonLabel40.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel40.Name = "kryptonLabel40";
+ this.kryptonLabel40.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel40.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel40.TabIndex = 2;
+ this.kryptonLabel40.Values.Text = "X12";
+ //
+ // panel24
+ //
+ this.panel24.BackColor = System.Drawing.Color.White;
+ this.panel24.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel24.Controls.Add(this.klb_X33);
+ this.panel24.Controls.Add(this.cbt_X33);
+ this.panel24.Controls.Add(this.kryptonLabel46);
+ this.panel24.Location = new System.Drawing.Point(248, 403);
+ this.panel24.Name = "panel24";
+ this.panel24.Size = new System.Drawing.Size(243, 30);
+ this.panel24.TabIndex = 1;
+ //
+ // panel20
+ //
+ this.panel20.BackColor = System.Drawing.Color.White;
+ this.panel20.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel20.Controls.Add(this.klb_X31);
+ this.panel20.Controls.Add(this.cbt_X31);
+ this.panel20.Controls.Add(this.kryptonLabel38);
+ this.panel20.Location = new System.Drawing.Point(248, 331);
+ this.panel20.Name = "panel20";
+ this.panel20.Size = new System.Drawing.Size(243, 30);
+ this.panel20.TabIndex = 1;
+ //
+ // klb_X31
+ //
+ this.klb_X31.Location = new System.Drawing.Point(50, 7);
+ this.klb_X31.Name = "klb_X31";
+ this.klb_X31.Size = new System.Drawing.Size(84, 15);
+ this.klb_X31.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X31.TabIndex = 3;
+ this.klb_X31.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X31
+ //
+ this.cbt_X31.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X31.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X31.Name = "cbt_X31";
+ this.cbt_X31.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X31.TabIndex = 2;
+ this.cbt_X31.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel38
+ //
+ this.kryptonLabel38.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel38.Name = "kryptonLabel38";
+ this.kryptonLabel38.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel38.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel38.TabIndex = 2;
+ this.kryptonLabel38.Values.Text = "X31";
+ //
+ // panel19
+ //
+ this.panel19.BackColor = System.Drawing.Color.White;
+ this.panel19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel19.Controls.Add(this.klb_X11);
+ this.panel19.Controls.Add(this.cbt_X11);
+ this.panel19.Controls.Add(this.kryptonLabel36);
+ this.panel19.Location = new System.Drawing.Point(3, 331);
+ this.panel19.Name = "panel19";
+ this.panel19.Size = new System.Drawing.Size(243, 30);
+ this.panel19.TabIndex = 1;
+ //
+ // klb_X11
+ //
+ this.klb_X11.Location = new System.Drawing.Point(50, 7);
+ this.klb_X11.Name = "klb_X11";
+ this.klb_X11.Size = new System.Drawing.Size(84, 15);
+ this.klb_X11.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X11.TabIndex = 3;
+ this.klb_X11.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X11
+ //
+ this.cbt_X11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X11.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X11.Name = "cbt_X11";
+ this.cbt_X11.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X11.TabIndex = 2;
+ this.cbt_X11.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel36
+ //
+ this.kryptonLabel36.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel36.Name = "kryptonLabel36";
+ this.kryptonLabel36.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel36.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel36.TabIndex = 2;
+ this.kryptonLabel36.Values.Text = "X11";
+ //
+ // panel18
+ //
+ this.panel18.BackColor = System.Drawing.Color.White;
+ this.panel18.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel18.Controls.Add(this.klb_X30);
+ this.panel18.Controls.Add(this.cbt_X30);
+ this.panel18.Controls.Add(this.kryptonLabel34);
+ this.panel18.Location = new System.Drawing.Point(248, 295);
+ this.panel18.Name = "panel18";
+ this.panel18.Size = new System.Drawing.Size(243, 30);
+ this.panel18.TabIndex = 1;
+ //
+ // klb_X30
+ //
+ this.klb_X30.Location = new System.Drawing.Point(50, 7);
+ this.klb_X30.Name = "klb_X30";
+ this.klb_X30.Size = new System.Drawing.Size(84, 15);
+ this.klb_X30.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X30.TabIndex = 3;
+ this.klb_X30.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X30
+ //
+ this.cbt_X30.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X30.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X30.Name = "cbt_X30";
+ this.cbt_X30.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X30.TabIndex = 2;
+ this.cbt_X30.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel34
+ //
+ this.kryptonLabel34.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel34.Name = "kryptonLabel34";
+ this.kryptonLabel34.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel34.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel34.TabIndex = 2;
+ this.kryptonLabel34.Values.Text = "X30";
+ //
+ // panel17
+ //
+ this.panel17.BackColor = System.Drawing.Color.White;
+ this.panel17.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel17.Controls.Add(this.klb_X10);
+ this.panel17.Controls.Add(this.cbt_X10);
+ this.panel17.Controls.Add(this.kryptonLabel32);
+ this.panel17.Location = new System.Drawing.Point(3, 295);
+ this.panel17.Name = "panel17";
+ this.panel17.Size = new System.Drawing.Size(243, 30);
+ this.panel17.TabIndex = 1;
+ //
+ // klb_X10
+ //
+ this.klb_X10.Location = new System.Drawing.Point(50, 7);
+ this.klb_X10.Name = "klb_X10";
+ this.klb_X10.Size = new System.Drawing.Size(84, 15);
+ this.klb_X10.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X10.TabIndex = 3;
+ this.klb_X10.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X10
+ //
+ this.cbt_X10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X10.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X10.Name = "cbt_X10";
+ this.cbt_X10.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X10.TabIndex = 2;
+ this.cbt_X10.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel32
+ //
+ this.kryptonLabel32.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel32.Name = "kryptonLabel32";
+ this.kryptonLabel32.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel32.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel32.TabIndex = 2;
+ this.kryptonLabel32.Values.Text = "X10";
+ //
+ // cbt_X15
+ //
+ this.cbt_X15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X15.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X15.Name = "cbt_X15";
+ this.cbt_X15.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X15.TabIndex = 2;
+ this.cbt_X15.UseVisualStyleBackColor = false;
+ //
+ // panel32
+ //
+ this.panel32.BackColor = System.Drawing.Color.White;
+ this.panel32.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel32.Controls.Add(this.klb_X37);
+ this.panel32.Controls.Add(this.cbt_X37);
+ this.panel32.Controls.Add(this.kryptonLabel62);
+ this.panel32.Location = new System.Drawing.Point(248, 547);
+ this.panel32.Name = "panel32";
+ this.panel32.Size = new System.Drawing.Size(243, 30);
+ this.panel32.TabIndex = 1;
+ //
+ // klb_X37
+ //
+ this.klb_X37.Location = new System.Drawing.Point(50, 7);
+ this.klb_X37.Name = "klb_X37";
+ this.klb_X37.Size = new System.Drawing.Size(84, 15);
+ this.klb_X37.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X37.TabIndex = 3;
+ this.klb_X37.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X37
+ //
+ this.cbt_X37.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X37.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X37.Name = "cbt_X37";
+ this.cbt_X37.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X37.TabIndex = 2;
+ this.cbt_X37.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel62
+ //
+ this.kryptonLabel62.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel62.Name = "kryptonLabel62";
+ this.kryptonLabel62.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel62.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel62.TabIndex = 2;
+ this.kryptonLabel62.Values.Text = "X37";
+ //
+ // klb_Y27
+ //
+ this.klb_Y27.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y27.Name = "klb_Y27";
+ this.klb_Y27.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y27.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y27.TabIndex = 3;
+ this.klb_Y27.Values.Text = "kryptonLabel2";
+ //
+ // panel30
+ //
+ this.panel30.BackColor = System.Drawing.Color.White;
+ this.panel30.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel30.Controls.Add(this.klb_X36);
+ this.panel30.Controls.Add(this.cbt_X36);
+ this.panel30.Controls.Add(this.kryptonLabel58);
+ this.panel30.Location = new System.Drawing.Point(248, 511);
+ this.panel30.Name = "panel30";
+ this.panel30.Size = new System.Drawing.Size(243, 30);
+ this.panel30.TabIndex = 1;
+ //
+ // klb_X36
+ //
+ this.klb_X36.Location = new System.Drawing.Point(50, 7);
+ this.klb_X36.Name = "klb_X36";
+ this.klb_X36.Size = new System.Drawing.Size(84, 15);
+ this.klb_X36.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X36.TabIndex = 3;
+ this.klb_X36.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X36
+ //
+ this.cbt_X36.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X36.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X36.Name = "cbt_X36";
+ this.cbt_X36.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X36.TabIndex = 2;
+ this.cbt_X36.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel58
+ //
+ this.kryptonLabel58.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel58.Name = "kryptonLabel58";
+ this.kryptonLabel58.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel58.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel58.TabIndex = 2;
+ this.kryptonLabel58.Values.Text = "X36";
+ //
+ // panel31
+ //
+ this.panel31.BackColor = System.Drawing.Color.White;
+ this.panel31.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel31.Controls.Add(this.klb_X17);
+ this.panel31.Controls.Add(this.cbt_X17);
+ this.panel31.Controls.Add(this.kryptonLabel60);
+ this.panel31.Location = new System.Drawing.Point(3, 547);
+ this.panel31.Name = "panel31";
+ this.panel31.Size = new System.Drawing.Size(243, 30);
+ this.panel31.TabIndex = 1;
+ //
+ // klb_X17
+ //
+ this.klb_X17.Location = new System.Drawing.Point(50, 7);
+ this.klb_X17.Name = "klb_X17";
+ this.klb_X17.Size = new System.Drawing.Size(84, 15);
+ this.klb_X17.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X17.TabIndex = 3;
+ this.klb_X17.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X17
+ //
+ this.cbt_X17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X17.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X17.Name = "cbt_X17";
+ this.cbt_X17.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X17.TabIndex = 2;
+ this.cbt_X17.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel60
+ //
+ this.kryptonLabel60.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel60.Name = "kryptonLabel60";
+ this.kryptonLabel60.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel60.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel60.TabIndex = 2;
+ this.kryptonLabel60.Values.Text = "X17";
+ //
+ // panel26
+ //
+ this.panel26.BackColor = System.Drawing.Color.White;
+ this.panel26.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel26.Controls.Add(this.klb_X34);
+ this.panel26.Controls.Add(this.cbt_X34);
+ this.panel26.Controls.Add(this.kryptonLabel50);
+ this.panel26.Location = new System.Drawing.Point(248, 439);
+ this.panel26.Name = "panel26";
+ this.panel26.Size = new System.Drawing.Size(243, 30);
+ this.panel26.TabIndex = 1;
+ //
+ // klb_X34
+ //
+ this.klb_X34.Location = new System.Drawing.Point(50, 7);
+ this.klb_X34.Name = "klb_X34";
+ this.klb_X34.Size = new System.Drawing.Size(84, 15);
+ this.klb_X34.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X34.TabIndex = 3;
+ this.klb_X34.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X34
+ //
+ this.cbt_X34.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X34.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X34.Name = "cbt_X34";
+ this.cbt_X34.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X34.TabIndex = 2;
+ this.cbt_X34.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel50
+ //
+ this.kryptonLabel50.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel50.Name = "kryptonLabel50";
+ this.kryptonLabel50.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel50.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel50.TabIndex = 2;
+ this.kryptonLabel50.Values.Text = "X34";
+ //
+ // panel29
+ //
+ this.panel29.BackColor = System.Drawing.Color.White;
+ this.panel29.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel29.Controls.Add(this.klb_X16);
+ this.panel29.Controls.Add(this.cbt_X16);
+ this.panel29.Controls.Add(this.kryptonLabel56);
+ this.panel29.Location = new System.Drawing.Point(3, 511);
+ this.panel29.Name = "panel29";
+ this.panel29.Size = new System.Drawing.Size(243, 30);
+ this.panel29.TabIndex = 1;
+ //
+ // klb_X16
+ //
+ this.klb_X16.Location = new System.Drawing.Point(50, 7);
+ this.klb_X16.Name = "klb_X16";
+ this.klb_X16.Size = new System.Drawing.Size(84, 15);
+ this.klb_X16.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X16.TabIndex = 3;
+ this.klb_X16.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X16
+ //
+ this.cbt_X16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X16.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X16.Name = "cbt_X16";
+ this.cbt_X16.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X16.TabIndex = 2;
+ this.cbt_X16.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel56
+ //
+ this.kryptonLabel56.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel56.Name = "kryptonLabel56";
+ this.kryptonLabel56.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel56.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel56.TabIndex = 2;
+ this.kryptonLabel56.Values.Text = "X16";
+ //
+ // panel25
+ //
+ this.panel25.BackColor = System.Drawing.Color.White;
+ this.panel25.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel25.Controls.Add(this.klb_X14);
+ this.panel25.Controls.Add(this.cbt_X14);
+ this.panel25.Controls.Add(this.kryptonLabel48);
+ this.panel25.Location = new System.Drawing.Point(3, 439);
+ this.panel25.Name = "panel25";
+ this.panel25.Size = new System.Drawing.Size(243, 30);
+ this.panel25.TabIndex = 1;
+ //
+ // klb_X14
+ //
+ this.klb_X14.Location = new System.Drawing.Point(50, 7);
+ this.klb_X14.Name = "klb_X14";
+ this.klb_X14.Size = new System.Drawing.Size(84, 15);
+ this.klb_X14.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X14.TabIndex = 3;
+ this.klb_X14.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X14
+ //
+ this.cbt_X14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X14.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X14.Name = "cbt_X14";
+ this.cbt_X14.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X14.TabIndex = 2;
+ this.cbt_X14.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel48
+ //
+ this.kryptonLabel48.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel48.Name = "kryptonLabel48";
+ this.kryptonLabel48.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel48.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel48.TabIndex = 2;
+ this.kryptonLabel48.Values.Text = "X14";
+ //
+ // panel28
+ //
+ this.panel28.BackColor = System.Drawing.Color.White;
+ this.panel28.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel28.Controls.Add(this.klb_X35);
+ this.panel28.Controls.Add(this.cbt_X35);
+ this.panel28.Controls.Add(this.kryptonLabel54);
+ this.panel28.Location = new System.Drawing.Point(248, 475);
+ this.panel28.Name = "panel28";
+ this.panel28.Size = new System.Drawing.Size(243, 30);
+ this.panel28.TabIndex = 1;
+ //
+ // klb_X35
+ //
+ this.klb_X35.Location = new System.Drawing.Point(50, 7);
+ this.klb_X35.Name = "klb_X35";
+ this.klb_X35.Size = new System.Drawing.Size(84, 15);
+ this.klb_X35.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X35.TabIndex = 3;
+ this.klb_X35.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X35
+ //
+ this.cbt_X35.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X35.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X35.Name = "cbt_X35";
+ this.cbt_X35.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X35.TabIndex = 2;
+ this.cbt_X35.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel54
+ //
+ this.kryptonLabel54.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel54.Name = "kryptonLabel54";
+ this.kryptonLabel54.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel54.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel54.TabIndex = 2;
+ this.kryptonLabel54.Values.Text = "X35";
+ //
+ // panel27
+ //
+ this.panel27.BackColor = System.Drawing.Color.White;
+ this.panel27.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel27.Controls.Add(this.klb_X15);
+ this.panel27.Controls.Add(this.cbt_X15);
+ this.panel27.Controls.Add(this.kryptonLabel52);
+ this.panel27.Location = new System.Drawing.Point(3, 475);
+ this.panel27.Name = "panel27";
+ this.panel27.Size = new System.Drawing.Size(243, 30);
+ this.panel27.TabIndex = 1;
+ //
+ // kryptonLabel52
+ //
+ this.kryptonLabel52.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel52.Name = "kryptonLabel52";
+ this.kryptonLabel52.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel52.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel52.TabIndex = 2;
+ this.kryptonLabel52.Values.Text = "X15";
+ //
+ // klb_X04
+ //
+ this.klb_X04.Location = new System.Drawing.Point(50, 7);
+ this.klb_X04.Name = "klb_X04";
+ this.klb_X04.Size = new System.Drawing.Size(84, 15);
+ this.klb_X04.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X04.TabIndex = 3;
+ this.klb_X04.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel16
+ //
+ this.kryptonLabel16.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel16.Name = "kryptonLabel16";
+ this.kryptonLabel16.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel16.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel16.TabIndex = 2;
+ this.kryptonLabel16.Values.Text = "X04";
+ //
+ // cbt_Y27
+ //
+ this.cbt_Y27.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y27.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y27.Name = "cbt_Y27";
+ this.cbt_Y27.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y27.TabIndex = 2;
+ this.cbt_Y27.UseVisualStyleBackColor = false;
+ //
+ // klb_X23
+ //
+ this.klb_X23.Location = new System.Drawing.Point(50, 7);
+ this.klb_X23.Name = "klb_X23";
+ this.klb_X23.Size = new System.Drawing.Size(84, 15);
+ this.klb_X23.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X23.TabIndex = 3;
+ this.klb_X23.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X23
+ //
+ this.cbt_X23.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X23.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X23.Name = "cbt_X23";
+ this.cbt_X23.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X23.TabIndex = 2;
+ this.cbt_X23.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel14
+ //
+ this.kryptonLabel14.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel14.Name = "kryptonLabel14";
+ this.kryptonLabel14.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel14.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel14.TabIndex = 2;
+ this.kryptonLabel14.Values.Text = "X23";
+ //
+ // klb_X03
+ //
+ this.klb_X03.Location = new System.Drawing.Point(50, 7);
+ this.klb_X03.Name = "klb_X03";
+ this.klb_X03.Size = new System.Drawing.Size(84, 15);
+ this.klb_X03.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X03.TabIndex = 3;
+ this.klb_X03.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X03
+ //
+ this.cbt_X03.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X03.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X03.Name = "cbt_X03";
+ this.cbt_X03.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X03.TabIndex = 2;
+ this.cbt_X03.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel12
+ //
+ this.kryptonLabel12.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel12.Name = "kryptonLabel12";
+ this.kryptonLabel12.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel12.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel12.TabIndex = 2;
+ this.kryptonLabel12.Values.Text = "X03";
+ //
+ // klb_X22
+ //
+ this.klb_X22.Location = new System.Drawing.Point(50, 7);
+ this.klb_X22.Name = "klb_X22";
+ this.klb_X22.Size = new System.Drawing.Size(84, 15);
+ this.klb_X22.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X22.TabIndex = 3;
+ this.klb_X22.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X22
+ //
+ this.cbt_X22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X22.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X22.Name = "cbt_X22";
+ this.cbt_X22.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X22.TabIndex = 2;
+ this.cbt_X22.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel10
+ //
+ this.kryptonLabel10.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel10.Name = "kryptonLabel10";
+ this.kryptonLabel10.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel10.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel10.TabIndex = 2;
+ this.kryptonLabel10.Values.Text = "X22";
+ //
+ // klb_X02
+ //
+ this.klb_X02.Location = new System.Drawing.Point(50, 7);
+ this.klb_X02.Name = "klb_X02";
+ this.klb_X02.Size = new System.Drawing.Size(6, 2);
+ this.klb_X02.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X02.TabIndex = 3;
+ this.klb_X02.Values.Text = "";
+ //
+ // cbt_X02
+ //
+ this.cbt_X02.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X02.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X02.Name = "cbt_X02";
+ this.cbt_X02.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X02.TabIndex = 2;
+ this.cbt_X02.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel8
+ //
+ this.kryptonLabel8.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel8.Name = "kryptonLabel8";
+ this.kryptonLabel8.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel8.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel8.TabIndex = 2;
+ this.kryptonLabel8.Values.Text = "X02";
+ //
+ // klb_X21
+ //
+ this.klb_X21.Location = new System.Drawing.Point(50, 7);
+ this.klb_X21.Name = "klb_X21";
+ this.klb_X21.Size = new System.Drawing.Size(84, 15);
+ this.klb_X21.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X21.TabIndex = 3;
+ this.klb_X21.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X21
+ //
+ this.cbt_X21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X21.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X21.Name = "cbt_X21";
+ this.cbt_X21.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X21.TabIndex = 2;
+ this.cbt_X21.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel6
+ //
+ this.kryptonLabel6.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel6.Name = "kryptonLabel6";
+ this.kryptonLabel6.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel6.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel6.TabIndex = 2;
+ this.kryptonLabel6.Values.Text = "X21";
+ //
+ // klb_X01
+ //
+ this.klb_X01.Location = new System.Drawing.Point(50, 7);
+ this.klb_X01.Name = "klb_X01";
+ this.klb_X01.Size = new System.Drawing.Size(6, 2);
+ this.klb_X01.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X01.TabIndex = 3;
+ this.klb_X01.Values.Text = "";
+ //
+ // cbt_X01
+ //
+ this.cbt_X01.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X01.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X01.Name = "cbt_X01";
+ this.cbt_X01.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X01.TabIndex = 2;
+ this.cbt_X01.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel3.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel3.TabIndex = 2;
+ this.kryptonLabel3.Values.Text = "X01";
+ //
+ // klb_X20
+ //
+ this.klb_X20.Location = new System.Drawing.Point(50, 7);
+ this.klb_X20.Name = "klb_X20";
+ this.klb_X20.Size = new System.Drawing.Size(84, 15);
+ this.klb_X20.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X20.TabIndex = 3;
+ this.klb_X20.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X20
+ //
+ this.cbt_X20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X20.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X20.Name = "cbt_X20";
+ this.cbt_X20.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X20.TabIndex = 2;
+ this.cbt_X20.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel4.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel4.TabIndex = 2;
+ this.kryptonLabel4.Values.Text = "X20";
+ //
+ // klb_X00
+ //
+ this.klb_X00.Location = new System.Drawing.Point(50, 7);
+ this.klb_X00.Name = "klb_X00";
+ this.klb_X00.Size = new System.Drawing.Size(6, 2);
+ this.klb_X00.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X00.TabIndex = 3;
+ this.klb_X00.Values.Text = "";
+ //
+ // cbt_X00
+ //
+ this.cbt_X00.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X00.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X00.Name = "cbt_X00";
+ this.cbt_X00.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X00.TabIndex = 2;
+ this.cbt_X00.UseVisualStyleBackColor = false;
+ //
+ // cbt_X04
+ //
+ this.cbt_X04.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X04.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X04.Name = "cbt_X04";
+ this.cbt_X04.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X04.TabIndex = 2;
+ this.cbt_X04.UseVisualStyleBackColor = false;
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(1024, 672);
+ this.kryptonPanel1.TabIndex = 3;
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
+ this.tableLayoutPanel1.ColumnCount = 2;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kryptonPanel3, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonPanel2, 0, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 1;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 590F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(1024, 672);
+ this.tableLayoutPanel1.TabIndex = 0;
+ //
+ // kryptonPanel3
+ //
+ this.kryptonPanel3.AutoScroll = true;
+ this.kryptonPanel3.Controls.Add(this.panel64);
+ this.kryptonPanel3.Controls.Add(this.panel36);
+ this.kryptonPanel3.Controls.Add(this.panel63);
+ this.kryptonPanel3.Controls.Add(this.panel33);
+ this.kryptonPanel3.Controls.Add(this.panel62);
+ this.kryptonPanel3.Controls.Add(this.panel34);
+ this.kryptonPanel3.Controls.Add(this.panel61);
+ this.kryptonPanel3.Controls.Add(this.panel35);
+ this.kryptonPanel3.Controls.Add(this.panel60);
+ this.kryptonPanel3.Controls.Add(this.panel37);
+ this.kryptonPanel3.Controls.Add(this.panel59);
+ this.kryptonPanel3.Controls.Add(this.panel38);
+ this.kryptonPanel3.Controls.Add(this.panel58);
+ this.kryptonPanel3.Controls.Add(this.panel39);
+ this.kryptonPanel3.Controls.Add(this.panel57);
+ this.kryptonPanel3.Controls.Add(this.panel40);
+ this.kryptonPanel3.Controls.Add(this.panel56);
+ this.kryptonPanel3.Controls.Add(this.panel41);
+ this.kryptonPanel3.Controls.Add(this.panel55);
+ this.kryptonPanel3.Controls.Add(this.panel42);
+ this.kryptonPanel3.Controls.Add(this.panel54);
+ this.kryptonPanel3.Controls.Add(this.panel43);
+ this.kryptonPanel3.Controls.Add(this.panel53);
+ this.kryptonPanel3.Controls.Add(this.panel44);
+ this.kryptonPanel3.Controls.Add(this.panel52);
+ this.kryptonPanel3.Controls.Add(this.panel45);
+ this.kryptonPanel3.Controls.Add(this.panel51);
+ this.kryptonPanel3.Controls.Add(this.panel46);
+ this.kryptonPanel3.Controls.Add(this.panel50);
+ this.kryptonPanel3.Controls.Add(this.panel47);
+ this.kryptonPanel3.Controls.Add(this.panel49);
+ this.kryptonPanel3.Controls.Add(this.panel48);
+ this.kryptonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel3.Location = new System.Drawing.Point(515, 4);
+ this.kryptonPanel3.Name = "kryptonPanel3";
+ this.kryptonPanel3.Size = new System.Drawing.Size(505, 664);
+ this.kryptonPanel3.TabIndex = 1;
+ //
+ // panel64
+ //
+ this.panel64.BackColor = System.Drawing.Color.White;
+ this.panel64.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel64.Controls.Add(this.klb_Y37);
+ this.panel64.Controls.Add(this.cbt_Y37);
+ this.panel64.Controls.Add(this.kryptonLabel126);
+ this.panel64.Location = new System.Drawing.Point(249, 547);
+ this.panel64.Name = "panel64";
+ this.panel64.Size = new System.Drawing.Size(243, 30);
+ this.panel64.TabIndex = 1;
+ //
+ // klb_Y37
+ //
+ this.klb_Y37.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y37.Name = "klb_Y37";
+ this.klb_Y37.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y37.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y37.TabIndex = 3;
+ this.klb_Y37.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y37
+ //
+ this.cbt_Y37.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y37.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y37.Name = "cbt_Y37";
+ this.cbt_Y37.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y37.TabIndex = 2;
+ this.cbt_Y37.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel126
+ //
+ this.kryptonLabel126.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel126.Name = "kryptonLabel126";
+ this.kryptonLabel126.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel126.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel126.TabIndex = 2;
+ this.kryptonLabel126.Values.Text = "Y37";
+ //
+ // panel36
+ //
+ this.panel36.BackColor = System.Drawing.Color.White;
+ this.panel36.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel36.Controls.Add(this.klb_Y21);
+ this.panel36.Controls.Add(this.cbt_Y21);
+ this.panel36.Controls.Add(this.kryptonLabel70);
+ this.panel36.Location = new System.Drawing.Point(249, 43);
+ this.panel36.Name = "panel36";
+ this.panel36.Size = new System.Drawing.Size(243, 30);
+ this.panel36.TabIndex = 1;
+ //
+ // klb_Y21
+ //
+ this.klb_Y21.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y21.Name = "klb_Y21";
+ this.klb_Y21.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y21.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y21.TabIndex = 3;
+ this.klb_Y21.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y21
+ //
+ this.cbt_Y21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y21.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y21.Name = "cbt_Y21";
+ this.cbt_Y21.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y21.TabIndex = 2;
+ this.cbt_Y21.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel70
+ //
+ this.kryptonLabel70.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel70.Name = "kryptonLabel70";
+ this.kryptonLabel70.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel70.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel70.TabIndex = 2;
+ this.kryptonLabel70.Values.Text = "Y21";
+ //
+ // panel63
+ //
+ this.panel63.BackColor = System.Drawing.Color.White;
+ this.panel63.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel63.Controls.Add(this.klb_Y36);
+ this.panel63.Controls.Add(this.cbt_Y36);
+ this.panel63.Controls.Add(this.kryptonLabel124);
+ this.panel63.Location = new System.Drawing.Point(249, 511);
+ this.panel63.Name = "panel63";
+ this.panel63.Size = new System.Drawing.Size(243, 30);
+ this.panel63.TabIndex = 1;
+ //
+ // klb_Y36
+ //
+ this.klb_Y36.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y36.Name = "klb_Y36";
+ this.klb_Y36.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y36.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y36.TabIndex = 3;
+ this.klb_Y36.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y36
+ //
+ this.cbt_Y36.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y36.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y36.Name = "cbt_Y36";
+ this.cbt_Y36.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y36.TabIndex = 2;
+ this.cbt_Y36.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel124
+ //
+ this.kryptonLabel124.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel124.Name = "kryptonLabel124";
+ this.kryptonLabel124.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel124.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel124.TabIndex = 2;
+ this.kryptonLabel124.Values.Text = "Y36";
+ //
+ // panel33
+ //
+ this.panel33.BackColor = System.Drawing.Color.White;
+ this.panel33.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel33.Controls.Add(this.klb_Y00);
+ this.panel33.Controls.Add(this.cbt_Y00);
+ this.panel33.Controls.Add(this.kryptonLabel64);
+ this.panel33.Location = new System.Drawing.Point(4, 7);
+ this.panel33.Name = "panel33";
+ this.panel33.Size = new System.Drawing.Size(243, 30);
+ this.panel33.TabIndex = 1;
+ //
+ // klb_Y00
+ //
+ this.klb_Y00.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y00.Name = "klb_Y00";
+ this.klb_Y00.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y00.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y00.TabIndex = 3;
+ this.klb_Y00.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y00
+ //
+ this.cbt_Y00.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y00.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y00.Name = "cbt_Y00";
+ this.cbt_Y00.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y00.TabIndex = 2;
+ this.cbt_Y00.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel64
+ //
+ this.kryptonLabel64.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel64.Name = "kryptonLabel64";
+ this.kryptonLabel64.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel64.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel64.TabIndex = 2;
+ this.kryptonLabel64.Values.Text = "Y00";
+ //
+ // panel62
+ //
+ this.panel62.BackColor = System.Drawing.Color.White;
+ this.panel62.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel62.Controls.Add(this.klb_Y17);
+ this.panel62.Controls.Add(this.cbt_Y17);
+ this.panel62.Controls.Add(this.kryptonLabel122);
+ this.panel62.Location = new System.Drawing.Point(4, 547);
+ this.panel62.Name = "panel62";
+ this.panel62.Size = new System.Drawing.Size(243, 30);
+ this.panel62.TabIndex = 1;
+ //
+ // klb_Y17
+ //
+ this.klb_Y17.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y17.Name = "klb_Y17";
+ this.klb_Y17.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y17.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y17.TabIndex = 3;
+ this.klb_Y17.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y17
+ //
+ this.cbt_Y17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y17.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y17.Name = "cbt_Y17";
+ this.cbt_Y17.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y17.TabIndex = 2;
+ this.cbt_Y17.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel122
+ //
+ this.kryptonLabel122.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel122.Name = "kryptonLabel122";
+ this.kryptonLabel122.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel122.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel122.TabIndex = 2;
+ this.kryptonLabel122.Values.Text = "Y17";
+ //
+ // panel34
+ //
+ this.panel34.BackColor = System.Drawing.Color.White;
+ this.panel34.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel34.Controls.Add(this.klb_Y20);
+ this.panel34.Controls.Add(this.cbt_Y20);
+ this.panel34.Controls.Add(this.kryptonLabel66);
+ this.panel34.Location = new System.Drawing.Point(249, 7);
+ this.panel34.Name = "panel34";
+ this.panel34.Size = new System.Drawing.Size(243, 30);
+ this.panel34.TabIndex = 1;
+ //
+ // klb_Y20
+ //
+ this.klb_Y20.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y20.Name = "klb_Y20";
+ this.klb_Y20.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y20.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y20.TabIndex = 3;
+ this.klb_Y20.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y20
+ //
+ this.cbt_Y20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y20.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y20.Name = "cbt_Y20";
+ this.cbt_Y20.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y20.TabIndex = 2;
+ this.cbt_Y20.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel66
+ //
+ this.kryptonLabel66.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel66.Name = "kryptonLabel66";
+ this.kryptonLabel66.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel66.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel66.TabIndex = 2;
+ this.kryptonLabel66.Values.Text = "Y20";
+ //
+ // panel61
+ //
+ this.panel61.BackColor = System.Drawing.Color.White;
+ this.panel61.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel61.Controls.Add(this.klb_Y34);
+ this.panel61.Controls.Add(this.cbt_Y34);
+ this.panel61.Controls.Add(this.kryptonLabel120);
+ this.panel61.Location = new System.Drawing.Point(249, 439);
+ this.panel61.Name = "panel61";
+ this.panel61.Size = new System.Drawing.Size(243, 30);
+ this.panel61.TabIndex = 1;
+ //
+ // klb_Y34
+ //
+ this.klb_Y34.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y34.Name = "klb_Y34";
+ this.klb_Y34.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y34.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y34.TabIndex = 3;
+ this.klb_Y34.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y34
+ //
+ this.cbt_Y34.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y34.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y34.Name = "cbt_Y34";
+ this.cbt_Y34.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y34.TabIndex = 2;
+ this.cbt_Y34.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel120
+ //
+ this.kryptonLabel120.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel120.Name = "kryptonLabel120";
+ this.kryptonLabel120.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel120.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel120.TabIndex = 2;
+ this.kryptonLabel120.Values.Text = "Y34";
+ //
+ // panel35
+ //
+ this.panel35.BackColor = System.Drawing.Color.White;
+ this.panel35.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel35.Controls.Add(this.klb_Y01);
+ this.panel35.Controls.Add(this.cbt_Y01);
+ this.panel35.Controls.Add(this.kryptonLabel68);
+ this.panel35.Location = new System.Drawing.Point(4, 43);
+ this.panel35.Name = "panel35";
+ this.panel35.Size = new System.Drawing.Size(243, 30);
+ this.panel35.TabIndex = 1;
+ //
+ // klb_Y01
+ //
+ this.klb_Y01.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y01.Name = "klb_Y01";
+ this.klb_Y01.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y01.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y01.TabIndex = 3;
+ this.klb_Y01.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y01
+ //
+ this.cbt_Y01.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y01.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y01.Name = "cbt_Y01";
+ this.cbt_Y01.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y01.TabIndex = 2;
+ this.cbt_Y01.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel68
+ //
+ this.kryptonLabel68.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel68.Name = "kryptonLabel68";
+ this.kryptonLabel68.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel68.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel68.TabIndex = 2;
+ this.kryptonLabel68.Values.Text = "Y01";
+ //
+ // panel60
+ //
+ this.panel60.BackColor = System.Drawing.Color.White;
+ this.panel60.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel60.Controls.Add(this.klb_Y16);
+ this.panel60.Controls.Add(this.cbt_Y16);
+ this.panel60.Controls.Add(this.kryptonLabel118);
+ this.panel60.Location = new System.Drawing.Point(4, 511);
+ this.panel60.Name = "panel60";
+ this.panel60.Size = new System.Drawing.Size(243, 30);
+ this.panel60.TabIndex = 1;
+ //
+ // klb_Y16
+ //
+ this.klb_Y16.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y16.Name = "klb_Y16";
+ this.klb_Y16.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y16.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y16.TabIndex = 3;
+ this.klb_Y16.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y16
+ //
+ this.cbt_Y16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y16.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y16.Name = "cbt_Y16";
+ this.cbt_Y16.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y16.TabIndex = 2;
+ this.cbt_Y16.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel118
+ //
+ this.kryptonLabel118.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel118.Name = "kryptonLabel118";
+ this.kryptonLabel118.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel118.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel118.TabIndex = 2;
+ this.kryptonLabel118.Values.Text = "Y16";
+ //
+ // panel37
+ //
+ this.panel37.BackColor = System.Drawing.Color.White;
+ this.panel37.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel37.Controls.Add(this.klb_Y02);
+ this.panel37.Controls.Add(this.cbt_Y02);
+ this.panel37.Controls.Add(this.kryptonLabel72);
+ this.panel37.Location = new System.Drawing.Point(4, 79);
+ this.panel37.Name = "panel37";
+ this.panel37.Size = new System.Drawing.Size(243, 30);
+ this.panel37.TabIndex = 1;
+ //
+ // klb_Y02
+ //
+ this.klb_Y02.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y02.Name = "klb_Y02";
+ this.klb_Y02.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y02.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y02.TabIndex = 3;
+ this.klb_Y02.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y02
+ //
+ this.cbt_Y02.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y02.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y02.Name = "cbt_Y02";
+ this.cbt_Y02.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y02.TabIndex = 2;
+ this.cbt_Y02.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel72
+ //
+ this.kryptonLabel72.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel72.Name = "kryptonLabel72";
+ this.kryptonLabel72.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel72.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel72.TabIndex = 2;
+ this.kryptonLabel72.Values.Text = "Y02";
+ //
+ // panel59
+ //
+ this.panel59.BackColor = System.Drawing.Color.White;
+ this.panel59.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel59.Controls.Add(this.klb_Y14);
+ this.panel59.Controls.Add(this.cbt_Y14);
+ this.panel59.Controls.Add(this.kryptonLabel116);
+ this.panel59.Location = new System.Drawing.Point(4, 439);
+ this.panel59.Name = "panel59";
+ this.panel59.Size = new System.Drawing.Size(243, 30);
+ this.panel59.TabIndex = 1;
+ //
+ // klb_Y14
+ //
+ this.klb_Y14.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y14.Name = "klb_Y14";
+ this.klb_Y14.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y14.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y14.TabIndex = 3;
+ this.klb_Y14.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y14
+ //
+ this.cbt_Y14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y14.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y14.Name = "cbt_Y14";
+ this.cbt_Y14.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y14.TabIndex = 2;
+ this.cbt_Y14.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel116
+ //
+ this.kryptonLabel116.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel116.Name = "kryptonLabel116";
+ this.kryptonLabel116.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel116.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel116.TabIndex = 2;
+ this.kryptonLabel116.Values.Text = "Y14";
+ //
+ // panel38
+ //
+ this.panel38.BackColor = System.Drawing.Color.White;
+ this.panel38.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel38.Controls.Add(this.klb_Y22);
+ this.panel38.Controls.Add(this.cbt_Y22);
+ this.panel38.Controls.Add(this.kryptonLabel74);
+ this.panel38.Location = new System.Drawing.Point(249, 79);
+ this.panel38.Name = "panel38";
+ this.panel38.Size = new System.Drawing.Size(243, 30);
+ this.panel38.TabIndex = 1;
+ //
+ // klb_Y22
+ //
+ this.klb_Y22.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y22.Name = "klb_Y22";
+ this.klb_Y22.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y22.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y22.TabIndex = 3;
+ this.klb_Y22.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y22
+ //
+ this.cbt_Y22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y22.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y22.Name = "cbt_Y22";
+ this.cbt_Y22.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y22.TabIndex = 2;
+ this.cbt_Y22.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel74
+ //
+ this.kryptonLabel74.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel74.Name = "kryptonLabel74";
+ this.kryptonLabel74.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel74.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel74.TabIndex = 2;
+ this.kryptonLabel74.Values.Text = "Y22";
+ //
+ // panel58
+ //
+ this.panel58.BackColor = System.Drawing.Color.White;
+ this.panel58.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel58.Controls.Add(this.klb_Y35);
+ this.panel58.Controls.Add(this.cbt_Y35);
+ this.panel58.Controls.Add(this.kryptonLabel114);
+ this.panel58.Location = new System.Drawing.Point(249, 475);
+ this.panel58.Name = "panel58";
+ this.panel58.Size = new System.Drawing.Size(243, 30);
+ this.panel58.TabIndex = 1;
+ //
+ // klb_Y35
+ //
+ this.klb_Y35.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y35.Name = "klb_Y35";
+ this.klb_Y35.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y35.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y35.TabIndex = 3;
+ this.klb_Y35.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y35
+ //
+ this.cbt_Y35.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y35.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y35.Name = "cbt_Y35";
+ this.cbt_Y35.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y35.TabIndex = 2;
+ this.cbt_Y35.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel114
+ //
+ this.kryptonLabel114.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel114.Name = "kryptonLabel114";
+ this.kryptonLabel114.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel114.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel114.TabIndex = 2;
+ this.kryptonLabel114.Values.Text = "Y35";
+ //
+ // panel39
+ //
+ this.panel39.BackColor = System.Drawing.Color.White;
+ this.panel39.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel39.Controls.Add(this.klb_Y03);
+ this.panel39.Controls.Add(this.cbt_Y03);
+ this.panel39.Controls.Add(this.kryptonLabel76);
+ this.panel39.Location = new System.Drawing.Point(4, 115);
+ this.panel39.Name = "panel39";
+ this.panel39.Size = new System.Drawing.Size(243, 30);
+ this.panel39.TabIndex = 1;
+ //
+ // klb_Y03
+ //
+ this.klb_Y03.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y03.Name = "klb_Y03";
+ this.klb_Y03.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y03.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y03.TabIndex = 3;
+ this.klb_Y03.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y03
+ //
+ this.cbt_Y03.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y03.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y03.Name = "cbt_Y03";
+ this.cbt_Y03.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y03.TabIndex = 2;
+ this.cbt_Y03.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel76
+ //
+ this.kryptonLabel76.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel76.Name = "kryptonLabel76";
+ this.kryptonLabel76.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel76.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel76.TabIndex = 2;
+ this.kryptonLabel76.Values.Text = "Y03";
+ //
+ // panel57
+ //
+ this.panel57.BackColor = System.Drawing.Color.White;
+ this.panel57.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel57.Controls.Add(this.klb_Y15);
+ this.panel57.Controls.Add(this.cbt_Y15);
+ this.panel57.Controls.Add(this.kryptonLabel112);
+ this.panel57.Location = new System.Drawing.Point(4, 475);
+ this.panel57.Name = "panel57";
+ this.panel57.Size = new System.Drawing.Size(243, 30);
+ this.panel57.TabIndex = 1;
+ //
+ // klb_Y15
+ //
+ this.klb_Y15.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y15.Name = "klb_Y15";
+ this.klb_Y15.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y15.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y15.TabIndex = 3;
+ this.klb_Y15.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y15
+ //
+ this.cbt_Y15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y15.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y15.Name = "cbt_Y15";
+ this.cbt_Y15.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y15.TabIndex = 2;
+ this.cbt_Y15.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel112
+ //
+ this.kryptonLabel112.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel112.Name = "kryptonLabel112";
+ this.kryptonLabel112.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel112.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel112.TabIndex = 2;
+ this.kryptonLabel112.Values.Text = "Y15";
+ //
+ // panel40
+ //
+ this.panel40.BackColor = System.Drawing.Color.White;
+ this.panel40.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel40.Controls.Add(this.klb_Y23);
+ this.panel40.Controls.Add(this.cbt_Y23);
+ this.panel40.Controls.Add(this.kryptonLabel78);
+ this.panel40.Location = new System.Drawing.Point(249, 115);
+ this.panel40.Name = "panel40";
+ this.panel40.Size = new System.Drawing.Size(243, 30);
+ this.panel40.TabIndex = 1;
+ //
+ // klb_Y23
+ //
+ this.klb_Y23.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y23.Name = "klb_Y23";
+ this.klb_Y23.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y23.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y23.TabIndex = 3;
+ this.klb_Y23.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y23
+ //
+ this.cbt_Y23.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y23.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y23.Name = "cbt_Y23";
+ this.cbt_Y23.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y23.TabIndex = 2;
+ this.cbt_Y23.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel78
+ //
+ this.kryptonLabel78.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel78.Name = "kryptonLabel78";
+ this.kryptonLabel78.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel78.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel78.TabIndex = 2;
+ this.kryptonLabel78.Values.Text = "Y23";
+ //
+ // panel56
+ //
+ this.panel56.BackColor = System.Drawing.Color.White;
+ this.panel56.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel56.Controls.Add(this.klb_Y33);
+ this.panel56.Controls.Add(this.cbt_Y33);
+ this.panel56.Controls.Add(this.kryptonLabel110);
+ this.panel56.Location = new System.Drawing.Point(249, 403);
+ this.panel56.Name = "panel56";
+ this.panel56.Size = new System.Drawing.Size(243, 30);
+ this.panel56.TabIndex = 1;
+ //
+ // klb_Y33
+ //
+ this.klb_Y33.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y33.Name = "klb_Y33";
+ this.klb_Y33.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y33.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y33.TabIndex = 3;
+ this.klb_Y33.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y33
+ //
+ this.cbt_Y33.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y33.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y33.Name = "cbt_Y33";
+ this.cbt_Y33.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y33.TabIndex = 2;
+ this.cbt_Y33.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel110
+ //
+ this.kryptonLabel110.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel110.Name = "kryptonLabel110";
+ this.kryptonLabel110.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel110.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel110.TabIndex = 2;
+ this.kryptonLabel110.Values.Text = "Y33";
+ //
+ // panel41
+ //
+ this.panel41.BackColor = System.Drawing.Color.White;
+ this.panel41.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel41.Controls.Add(this.klb_Y04);
+ this.panel41.Controls.Add(this.cbt_Y04);
+ this.panel41.Controls.Add(this.kryptonLabel80);
+ this.panel41.Location = new System.Drawing.Point(4, 151);
+ this.panel41.Name = "panel41";
+ this.panel41.Size = new System.Drawing.Size(243, 30);
+ this.panel41.TabIndex = 1;
+ //
+ // klb_Y04
+ //
+ this.klb_Y04.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y04.Name = "klb_Y04";
+ this.klb_Y04.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y04.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y04.TabIndex = 3;
+ this.klb_Y04.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y04
+ //
+ this.cbt_Y04.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y04.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y04.Name = "cbt_Y04";
+ this.cbt_Y04.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y04.TabIndex = 2;
+ this.cbt_Y04.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel80
+ //
+ this.kryptonLabel80.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel80.Name = "kryptonLabel80";
+ this.kryptonLabel80.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel80.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel80.TabIndex = 2;
+ this.kryptonLabel80.Values.Text = "Y04";
+ //
+ // panel55
+ //
+ this.panel55.BackColor = System.Drawing.Color.White;
+ this.panel55.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel55.Controls.Add(this.klb_Y13);
+ this.panel55.Controls.Add(this.cbt_Y13);
+ this.panel55.Controls.Add(this.kryptonLabel108);
+ this.panel55.Location = new System.Drawing.Point(4, 403);
+ this.panel55.Name = "panel55";
+ this.panel55.Size = new System.Drawing.Size(243, 30);
+ this.panel55.TabIndex = 1;
+ //
+ // klb_Y13
+ //
+ this.klb_Y13.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y13.Name = "klb_Y13";
+ this.klb_Y13.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y13.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y13.TabIndex = 3;
+ this.klb_Y13.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y13
+ //
+ this.cbt_Y13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y13.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y13.Name = "cbt_Y13";
+ this.cbt_Y13.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y13.TabIndex = 2;
+ this.cbt_Y13.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel108
+ //
+ this.kryptonLabel108.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel108.Name = "kryptonLabel108";
+ this.kryptonLabel108.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel108.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel108.TabIndex = 2;
+ this.kryptonLabel108.Values.Text = "Y13";
+ //
+ // panel42
+ //
+ this.panel42.BackColor = System.Drawing.Color.White;
+ this.panel42.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel42.Controls.Add(this.klb_Y24);
+ this.panel42.Controls.Add(this.cbt_Y24);
+ this.panel42.Controls.Add(this.kryptonLabel82);
+ this.panel42.Location = new System.Drawing.Point(249, 151);
+ this.panel42.Name = "panel42";
+ this.panel42.Size = new System.Drawing.Size(243, 30);
+ this.panel42.TabIndex = 1;
+ //
+ // klb_Y24
+ //
+ this.klb_Y24.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y24.Name = "klb_Y24";
+ this.klb_Y24.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y24.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y24.TabIndex = 3;
+ this.klb_Y24.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y24
+ //
+ this.cbt_Y24.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y24.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y24.Name = "cbt_Y24";
+ this.cbt_Y24.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y24.TabIndex = 2;
+ this.cbt_Y24.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel82
+ //
+ this.kryptonLabel82.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel82.Name = "kryptonLabel82";
+ this.kryptonLabel82.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel82.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel82.TabIndex = 2;
+ this.kryptonLabel82.Values.Text = "Y24";
+ //
+ // panel54
+ //
+ this.panel54.BackColor = System.Drawing.Color.White;
+ this.panel54.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel54.Controls.Add(this.klb_Y32);
+ this.panel54.Controls.Add(this.cbt_Y32);
+ this.panel54.Controls.Add(this.kryptonLabel106);
+ this.panel54.Location = new System.Drawing.Point(249, 367);
+ this.panel54.Name = "panel54";
+ this.panel54.Size = new System.Drawing.Size(243, 30);
+ this.panel54.TabIndex = 1;
+ //
+ // klb_Y32
+ //
+ this.klb_Y32.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y32.Name = "klb_Y32";
+ this.klb_Y32.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y32.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y32.TabIndex = 3;
+ this.klb_Y32.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y32
+ //
+ this.cbt_Y32.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y32.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y32.Name = "cbt_Y32";
+ this.cbt_Y32.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y32.TabIndex = 2;
+ this.cbt_Y32.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel106
+ //
+ this.kryptonLabel106.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel106.Name = "kryptonLabel106";
+ this.kryptonLabel106.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel106.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel106.TabIndex = 2;
+ this.kryptonLabel106.Values.Text = "Y32";
+ //
+ // panel43
+ //
+ this.panel43.BackColor = System.Drawing.Color.White;
+ this.panel43.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel43.Controls.Add(this.klb_Y05);
+ this.panel43.Controls.Add(this.cbt_Y05);
+ this.panel43.Controls.Add(this.kryptonLabel84);
+ this.panel43.Location = new System.Drawing.Point(4, 187);
+ this.panel43.Name = "panel43";
+ this.panel43.Size = new System.Drawing.Size(243, 30);
+ this.panel43.TabIndex = 1;
+ //
+ // klb_Y05
+ //
+ this.klb_Y05.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y05.Name = "klb_Y05";
+ this.klb_Y05.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y05.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y05.TabIndex = 3;
+ this.klb_Y05.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y05
+ //
+ this.cbt_Y05.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y05.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y05.Name = "cbt_Y05";
+ this.cbt_Y05.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y05.TabIndex = 2;
+ this.cbt_Y05.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel84
+ //
+ this.kryptonLabel84.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel84.Name = "kryptonLabel84";
+ this.kryptonLabel84.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel84.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel84.TabIndex = 2;
+ this.kryptonLabel84.Values.Text = "Y05";
+ //
+ // panel53
+ //
+ this.panel53.BackColor = System.Drawing.Color.White;
+ this.panel53.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel53.Controls.Add(this.klb_Y12);
+ this.panel53.Controls.Add(this.cbt_Y12);
+ this.panel53.Controls.Add(this.kryptonLabel104);
+ this.panel53.Location = new System.Drawing.Point(4, 367);
+ this.panel53.Name = "panel53";
+ this.panel53.Size = new System.Drawing.Size(243, 30);
+ this.panel53.TabIndex = 1;
+ //
+ // klb_Y12
+ //
+ this.klb_Y12.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y12.Name = "klb_Y12";
+ this.klb_Y12.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y12.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y12.TabIndex = 3;
+ this.klb_Y12.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y12
+ //
+ this.cbt_Y12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y12.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y12.Name = "cbt_Y12";
+ this.cbt_Y12.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y12.TabIndex = 2;
+ this.cbt_Y12.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel104
+ //
+ this.kryptonLabel104.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel104.Name = "kryptonLabel104";
+ this.kryptonLabel104.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel104.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel104.TabIndex = 2;
+ this.kryptonLabel104.Values.Text = "Y12";
+ //
+ // panel44
+ //
+ this.panel44.BackColor = System.Drawing.Color.White;
+ this.panel44.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel44.Controls.Add(this.klb_Y25);
+ this.panel44.Controls.Add(this.cbt_Y25);
+ this.panel44.Controls.Add(this.kryptonLabel86);
+ this.panel44.Location = new System.Drawing.Point(249, 187);
+ this.panel44.Name = "panel44";
+ this.panel44.Size = new System.Drawing.Size(243, 30);
+ this.panel44.TabIndex = 1;
+ //
+ // klb_Y25
+ //
+ this.klb_Y25.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y25.Name = "klb_Y25";
+ this.klb_Y25.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y25.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y25.TabIndex = 3;
+ this.klb_Y25.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y25
+ //
+ this.cbt_Y25.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y25.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y25.Name = "cbt_Y25";
+ this.cbt_Y25.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y25.TabIndex = 2;
+ this.cbt_Y25.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel86
+ //
+ this.kryptonLabel86.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel86.Name = "kryptonLabel86";
+ this.kryptonLabel86.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel86.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel86.TabIndex = 2;
+ this.kryptonLabel86.Values.Text = "Y25";
+ //
+ // panel52
+ //
+ this.panel52.BackColor = System.Drawing.Color.White;
+ this.panel52.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel52.Controls.Add(this.klb_Y31);
+ this.panel52.Controls.Add(this.cbt_Y31);
+ this.panel52.Controls.Add(this.kryptonLabel102);
+ this.panel52.Location = new System.Drawing.Point(249, 331);
+ this.panel52.Name = "panel52";
+ this.panel52.Size = new System.Drawing.Size(243, 30);
+ this.panel52.TabIndex = 1;
+ //
+ // klb_Y31
+ //
+ this.klb_Y31.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y31.Name = "klb_Y31";
+ this.klb_Y31.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y31.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y31.TabIndex = 3;
+ this.klb_Y31.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y31
+ //
+ this.cbt_Y31.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y31.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y31.Name = "cbt_Y31";
+ this.cbt_Y31.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y31.TabIndex = 2;
+ this.cbt_Y31.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel102
+ //
+ this.kryptonLabel102.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel102.Name = "kryptonLabel102";
+ this.kryptonLabel102.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel102.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel102.TabIndex = 2;
+ this.kryptonLabel102.Values.Text = "Y31";
+ //
+ // panel45
+ //
+ this.panel45.BackColor = System.Drawing.Color.White;
+ this.panel45.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel45.Controls.Add(this.klb_Y06);
+ this.panel45.Controls.Add(this.cbt_Y06);
+ this.panel45.Controls.Add(this.kryptonLabel88);
+ this.panel45.Location = new System.Drawing.Point(4, 223);
+ this.panel45.Name = "panel45";
+ this.panel45.Size = new System.Drawing.Size(243, 30);
+ this.panel45.TabIndex = 1;
+ //
+ // klb_Y06
+ //
+ this.klb_Y06.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y06.Name = "klb_Y06";
+ this.klb_Y06.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y06.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y06.TabIndex = 3;
+ this.klb_Y06.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y06
+ //
+ this.cbt_Y06.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y06.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y06.Name = "cbt_Y06";
+ this.cbt_Y06.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y06.TabIndex = 2;
+ this.cbt_Y06.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel88
+ //
+ this.kryptonLabel88.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel88.Name = "kryptonLabel88";
+ this.kryptonLabel88.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel88.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel88.TabIndex = 2;
+ this.kryptonLabel88.Values.Text = "Y06";
+ //
+ // panel51
+ //
+ this.panel51.BackColor = System.Drawing.Color.White;
+ this.panel51.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel51.Controls.Add(this.klb_Y11);
+ this.panel51.Controls.Add(this.cbt_Y11);
+ this.panel51.Controls.Add(this.kryptonLabel100);
+ this.panel51.Location = new System.Drawing.Point(4, 331);
+ this.panel51.Name = "panel51";
+ this.panel51.Size = new System.Drawing.Size(243, 30);
+ this.panel51.TabIndex = 1;
+ //
+ // klb_Y11
+ //
+ this.klb_Y11.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y11.Name = "klb_Y11";
+ this.klb_Y11.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y11.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y11.TabIndex = 3;
+ this.klb_Y11.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y11
+ //
+ this.cbt_Y11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y11.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y11.Name = "cbt_Y11";
+ this.cbt_Y11.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y11.TabIndex = 2;
+ this.cbt_Y11.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel100
+ //
+ this.kryptonLabel100.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel100.Name = "kryptonLabel100";
+ this.kryptonLabel100.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel100.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel100.TabIndex = 2;
+ this.kryptonLabel100.Values.Text = "Y11";
+ //
+ // panel46
+ //
+ this.panel46.BackColor = System.Drawing.Color.White;
+ this.panel46.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel46.Controls.Add(this.klb_Y26);
+ this.panel46.Controls.Add(this.cbt_Y26);
+ this.panel46.Controls.Add(this.kryptonLabel90);
+ this.panel46.Location = new System.Drawing.Point(249, 223);
+ this.panel46.Name = "panel46";
+ this.panel46.Size = new System.Drawing.Size(243, 30);
+ this.panel46.TabIndex = 1;
+ //
+ // klb_Y26
+ //
+ this.klb_Y26.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y26.Name = "klb_Y26";
+ this.klb_Y26.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y26.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y26.TabIndex = 3;
+ this.klb_Y26.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y26
+ //
+ this.cbt_Y26.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y26.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y26.Name = "cbt_Y26";
+ this.cbt_Y26.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y26.TabIndex = 2;
+ this.cbt_Y26.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel90
+ //
+ this.kryptonLabel90.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel90.Name = "kryptonLabel90";
+ this.kryptonLabel90.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel90.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel90.TabIndex = 2;
+ this.kryptonLabel90.Values.Text = "Y26";
+ //
+ // panel50
+ //
+ this.panel50.BackColor = System.Drawing.Color.White;
+ this.panel50.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel50.Controls.Add(this.klb_Y30);
+ this.panel50.Controls.Add(this.cbt_Y30);
+ this.panel50.Controls.Add(this.kryptonLabel98);
+ this.panel50.Location = new System.Drawing.Point(249, 295);
+ this.panel50.Name = "panel50";
+ this.panel50.Size = new System.Drawing.Size(243, 30);
+ this.panel50.TabIndex = 1;
+ //
+ // klb_Y30
+ //
+ this.klb_Y30.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y30.Name = "klb_Y30";
+ this.klb_Y30.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y30.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y30.TabIndex = 3;
+ this.klb_Y30.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y30
+ //
+ this.cbt_Y30.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y30.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y30.Name = "cbt_Y30";
+ this.cbt_Y30.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y30.TabIndex = 2;
+ this.cbt_Y30.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel98
+ //
+ this.kryptonLabel98.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel98.Name = "kryptonLabel98";
+ this.kryptonLabel98.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel98.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel98.TabIndex = 2;
+ this.kryptonLabel98.Values.Text = "Y30";
+ //
+ // panel47
+ //
+ this.panel47.BackColor = System.Drawing.Color.White;
+ this.panel47.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel47.Controls.Add(this.klb_Y07);
+ this.panel47.Controls.Add(this.cbt_Y07);
+ this.panel47.Controls.Add(this.kryptonLabel92);
+ this.panel47.Location = new System.Drawing.Point(4, 259);
+ this.panel47.Name = "panel47";
+ this.panel47.Size = new System.Drawing.Size(243, 30);
+ this.panel47.TabIndex = 1;
+ //
+ // klb_Y07
+ //
+ this.klb_Y07.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y07.Name = "klb_Y07";
+ this.klb_Y07.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y07.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y07.TabIndex = 3;
+ this.klb_Y07.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y07
+ //
+ this.cbt_Y07.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y07.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y07.Name = "cbt_Y07";
+ this.cbt_Y07.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y07.TabIndex = 2;
+ this.cbt_Y07.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel92
+ //
+ this.kryptonLabel92.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel92.Name = "kryptonLabel92";
+ this.kryptonLabel92.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel92.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel92.TabIndex = 2;
+ this.kryptonLabel92.Values.Text = "Y07";
+ //
+ // panel49
+ //
+ this.panel49.BackColor = System.Drawing.Color.White;
+ this.panel49.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel49.Controls.Add(this.klb_Y10);
+ this.panel49.Controls.Add(this.cbt_Y10);
+ this.panel49.Controls.Add(this.kryptonLabel96);
+ this.panel49.Location = new System.Drawing.Point(4, 295);
+ this.panel49.Name = "panel49";
+ this.panel49.Size = new System.Drawing.Size(243, 30);
+ this.panel49.TabIndex = 1;
+ //
+ // klb_Y10
+ //
+ this.klb_Y10.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y10.Name = "klb_Y10";
+ this.klb_Y10.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y10.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y10.TabIndex = 3;
+ this.klb_Y10.Values.Text = "kryptonLabel2";
+ //
+ // cbt_Y10
+ //
+ this.cbt_Y10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y10.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y10.Name = "cbt_Y10";
+ this.cbt_Y10.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y10.TabIndex = 2;
+ this.cbt_Y10.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel96
+ //
+ this.kryptonLabel96.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel96.Name = "kryptonLabel96";
+ this.kryptonLabel96.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel96.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel96.TabIndex = 2;
+ this.kryptonLabel96.Values.Text = "Y10";
+ //
+ // panel48
+ //
+ this.panel48.BackColor = System.Drawing.Color.White;
+ this.panel48.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel48.Controls.Add(this.klb_Y27);
+ this.panel48.Controls.Add(this.cbt_Y27);
+ this.panel48.Controls.Add(this.kryptonLabel94);
+ this.panel48.Location = new System.Drawing.Point(249, 259);
+ this.panel48.Name = "panel48";
+ this.panel48.Size = new System.Drawing.Size(243, 30);
+ this.panel48.TabIndex = 1;
+ //
+ // kryptonLabel94
+ //
+ this.kryptonLabel94.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel94.Name = "kryptonLabel94";
+ this.kryptonLabel94.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel94.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel94.TabIndex = 2;
+ this.kryptonLabel94.Values.Text = "Y27";
+ //
+ // kryptonPanel2
+ //
+ this.kryptonPanel2.AutoScroll = true;
+ this.kryptonPanel2.Controls.Add(this.panel32);
+ this.kryptonPanel2.Controls.Add(this.panel30);
+ this.kryptonPanel2.Controls.Add(this.panel31);
+ this.kryptonPanel2.Controls.Add(this.panel26);
+ this.kryptonPanel2.Controls.Add(this.panel29);
+ this.kryptonPanel2.Controls.Add(this.panel25);
+ this.kryptonPanel2.Controls.Add(this.panel28);
+ this.kryptonPanel2.Controls.Add(this.panel27);
+ this.kryptonPanel2.Controls.Add(this.panel24);
+ this.kryptonPanel2.Controls.Add(this.panel23);
+ this.kryptonPanel2.Controls.Add(this.panel22);
+ this.kryptonPanel2.Controls.Add(this.panel21);
+ this.kryptonPanel2.Controls.Add(this.panel20);
+ this.kryptonPanel2.Controls.Add(this.panel19);
+ this.kryptonPanel2.Controls.Add(this.panel18);
+ this.kryptonPanel2.Controls.Add(this.panel17);
+ this.kryptonPanel2.Controls.Add(this.panel16);
+ this.kryptonPanel2.Controls.Add(this.panel15);
+ this.kryptonPanel2.Controls.Add(this.panel14);
+ this.kryptonPanel2.Controls.Add(this.panel13);
+ this.kryptonPanel2.Controls.Add(this.panel12);
+ this.kryptonPanel2.Controls.Add(this.panel11);
+ this.kryptonPanel2.Controls.Add(this.panel10);
+ this.kryptonPanel2.Controls.Add(this.panel9);
+ this.kryptonPanel2.Controls.Add(this.panel8);
+ this.kryptonPanel2.Controls.Add(this.panel7);
+ this.kryptonPanel2.Controls.Add(this.panel6);
+ this.kryptonPanel2.Controls.Add(this.panel5);
+ this.kryptonPanel2.Controls.Add(this.panel4);
+ this.kryptonPanel2.Controls.Add(this.panel3);
+ this.kryptonPanel2.Controls.Add(this.panel2);
+ this.kryptonPanel2.Controls.Add(this.panel1);
+ this.kryptonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel2.Location = new System.Drawing.Point(4, 4);
+ this.kryptonPanel2.Name = "kryptonPanel2";
+ this.kryptonPanel2.Size = new System.Drawing.Size(504, 664);
+ this.kryptonPanel2.TabIndex = 0;
+ //
+ // panel16
+ //
+ this.panel16.BackColor = System.Drawing.Color.White;
+ this.panel16.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel16.Controls.Add(this.klb_X27);
+ this.panel16.Controls.Add(this.cbt_X27);
+ this.panel16.Controls.Add(this.kryptonLabel30);
+ this.panel16.Location = new System.Drawing.Point(248, 259);
+ this.panel16.Name = "panel16";
+ this.panel16.Size = new System.Drawing.Size(243, 30);
+ this.panel16.TabIndex = 1;
+ //
+ // klb_X27
+ //
+ this.klb_X27.Location = new System.Drawing.Point(50, 7);
+ this.klb_X27.Name = "klb_X27";
+ this.klb_X27.Size = new System.Drawing.Size(84, 15);
+ this.klb_X27.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X27.TabIndex = 3;
+ this.klb_X27.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X27
+ //
+ this.cbt_X27.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X27.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X27.Name = "cbt_X27";
+ this.cbt_X27.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X27.TabIndex = 2;
+ this.cbt_X27.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel30
+ //
+ this.kryptonLabel30.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel30.Name = "kryptonLabel30";
+ this.kryptonLabel30.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel30.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel30.TabIndex = 2;
+ this.kryptonLabel30.Values.Text = "X27";
+ //
+ // panel15
+ //
+ this.panel15.BackColor = System.Drawing.Color.White;
+ this.panel15.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel15.Controls.Add(this.klb_X07);
+ this.panel15.Controls.Add(this.cbt_X07);
+ this.panel15.Controls.Add(this.kryptonLabel28);
+ this.panel15.Location = new System.Drawing.Point(3, 259);
+ this.panel15.Name = "panel15";
+ this.panel15.Size = new System.Drawing.Size(243, 30);
+ this.panel15.TabIndex = 1;
+ //
+ // klb_X07
+ //
+ this.klb_X07.Location = new System.Drawing.Point(50, 7);
+ this.klb_X07.Name = "klb_X07";
+ this.klb_X07.Size = new System.Drawing.Size(84, 15);
+ this.klb_X07.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X07.TabIndex = 3;
+ this.klb_X07.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X07
+ //
+ this.cbt_X07.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X07.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X07.Name = "cbt_X07";
+ this.cbt_X07.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X07.TabIndex = 2;
+ this.cbt_X07.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel28
+ //
+ this.kryptonLabel28.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel28.Name = "kryptonLabel28";
+ this.kryptonLabel28.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel28.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel28.TabIndex = 2;
+ this.kryptonLabel28.Values.Text = "X07";
+ //
+ // panel14
+ //
+ this.panel14.BackColor = System.Drawing.Color.White;
+ this.panel14.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel14.Controls.Add(this.klb_X26);
+ this.panel14.Controls.Add(this.cbt_X26);
+ this.panel14.Controls.Add(this.kryptonLabel26);
+ this.panel14.Location = new System.Drawing.Point(248, 223);
+ this.panel14.Name = "panel14";
+ this.panel14.Size = new System.Drawing.Size(243, 30);
+ this.panel14.TabIndex = 1;
+ //
+ // klb_X26
+ //
+ this.klb_X26.Location = new System.Drawing.Point(50, 7);
+ this.klb_X26.Name = "klb_X26";
+ this.klb_X26.Size = new System.Drawing.Size(84, 15);
+ this.klb_X26.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X26.TabIndex = 3;
+ this.klb_X26.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X26
+ //
+ this.cbt_X26.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X26.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X26.Name = "cbt_X26";
+ this.cbt_X26.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X26.TabIndex = 2;
+ this.cbt_X26.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel26
+ //
+ this.kryptonLabel26.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel26.Name = "kryptonLabel26";
+ this.kryptonLabel26.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel26.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel26.TabIndex = 2;
+ this.kryptonLabel26.Values.Text = "X26";
+ //
+ // panel13
+ //
+ this.panel13.BackColor = System.Drawing.Color.White;
+ this.panel13.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel13.Controls.Add(this.klb_X06);
+ this.panel13.Controls.Add(this.cbt_X06);
+ this.panel13.Controls.Add(this.kryptonLabel24);
+ this.panel13.Location = new System.Drawing.Point(3, 223);
+ this.panel13.Name = "panel13";
+ this.panel13.Size = new System.Drawing.Size(243, 30);
+ this.panel13.TabIndex = 1;
+ //
+ // klb_X06
+ //
+ this.klb_X06.Location = new System.Drawing.Point(50, 7);
+ this.klb_X06.Name = "klb_X06";
+ this.klb_X06.Size = new System.Drawing.Size(84, 15);
+ this.klb_X06.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X06.TabIndex = 3;
+ this.klb_X06.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X06
+ //
+ this.cbt_X06.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X06.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X06.Name = "cbt_X06";
+ this.cbt_X06.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X06.TabIndex = 2;
+ this.cbt_X06.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel24
+ //
+ this.kryptonLabel24.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel24.Name = "kryptonLabel24";
+ this.kryptonLabel24.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel24.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel24.TabIndex = 2;
+ this.kryptonLabel24.Values.Text = "X06";
+ //
+ // panel12
+ //
+ this.panel12.BackColor = System.Drawing.Color.White;
+ this.panel12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel12.Controls.Add(this.klb_X25);
+ this.panel12.Controls.Add(this.cbt_X25);
+ this.panel12.Controls.Add(this.kryptonLabel22);
+ this.panel12.Location = new System.Drawing.Point(248, 187);
+ this.panel12.Name = "panel12";
+ this.panel12.Size = new System.Drawing.Size(243, 30);
+ this.panel12.TabIndex = 1;
+ //
+ // klb_X25
+ //
+ this.klb_X25.Location = new System.Drawing.Point(50, 7);
+ this.klb_X25.Name = "klb_X25";
+ this.klb_X25.Size = new System.Drawing.Size(84, 15);
+ this.klb_X25.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X25.TabIndex = 3;
+ this.klb_X25.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X25
+ //
+ this.cbt_X25.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X25.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X25.Name = "cbt_X25";
+ this.cbt_X25.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X25.TabIndex = 2;
+ this.cbt_X25.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel22
+ //
+ this.kryptonLabel22.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel22.Name = "kryptonLabel22";
+ this.kryptonLabel22.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel22.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel22.TabIndex = 2;
+ this.kryptonLabel22.Values.Text = "X25";
+ //
+ // panel11
+ //
+ this.panel11.BackColor = System.Drawing.Color.White;
+ this.panel11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel11.Controls.Add(this.klb_X05);
+ this.panel11.Controls.Add(this.cbt_X05);
+ this.panel11.Controls.Add(this.kryptonLabel20);
+ this.panel11.Location = new System.Drawing.Point(3, 187);
+ this.panel11.Name = "panel11";
+ this.panel11.Size = new System.Drawing.Size(243, 30);
+ this.panel11.TabIndex = 1;
+ //
+ // klb_X05
+ //
+ this.klb_X05.Location = new System.Drawing.Point(50, 7);
+ this.klb_X05.Name = "klb_X05";
+ this.klb_X05.Size = new System.Drawing.Size(84, 15);
+ this.klb_X05.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X05.TabIndex = 3;
+ this.klb_X05.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X05
+ //
+ this.cbt_X05.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X05.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X05.Name = "cbt_X05";
+ this.cbt_X05.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X05.TabIndex = 2;
+ this.cbt_X05.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel20
+ //
+ this.kryptonLabel20.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel20.Name = "kryptonLabel20";
+ this.kryptonLabel20.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel20.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel20.TabIndex = 2;
+ this.kryptonLabel20.Values.Text = "X05";
+ //
+ // panel10
+ //
+ this.panel10.BackColor = System.Drawing.Color.White;
+ this.panel10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel10.Controls.Add(this.klb_X24);
+ this.panel10.Controls.Add(this.cbt_X24);
+ this.panel10.Controls.Add(this.kryptonLabel18);
+ this.panel10.Location = new System.Drawing.Point(248, 151);
+ this.panel10.Name = "panel10";
+ this.panel10.Size = new System.Drawing.Size(243, 30);
+ this.panel10.TabIndex = 1;
+ //
+ // klb_X24
+ //
+ this.klb_X24.Location = new System.Drawing.Point(50, 7);
+ this.klb_X24.Name = "klb_X24";
+ this.klb_X24.Size = new System.Drawing.Size(84, 15);
+ this.klb_X24.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X24.TabIndex = 3;
+ this.klb_X24.Values.Text = "kryptonLabel2";
+ //
+ // cbt_X24
+ //
+ this.cbt_X24.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X24.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X24.Name = "cbt_X24";
+ this.cbt_X24.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X24.TabIndex = 2;
+ this.cbt_X24.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel18
+ //
+ this.kryptonLabel18.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel18.Name = "kryptonLabel18";
+ this.kryptonLabel18.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel18.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel18.TabIndex = 2;
+ this.kryptonLabel18.Values.Text = "X24";
+ //
+ // panel9
+ //
+ this.panel9.BackColor = System.Drawing.Color.White;
+ this.panel9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel9.Controls.Add(this.klb_X04);
+ this.panel9.Controls.Add(this.cbt_X04);
+ this.panel9.Controls.Add(this.kryptonLabel16);
+ this.panel9.Location = new System.Drawing.Point(3, 151);
+ this.panel9.Name = "panel9";
+ this.panel9.Size = new System.Drawing.Size(243, 30);
+ this.panel9.TabIndex = 1;
+ //
+ // panel8
+ //
+ this.panel8.BackColor = System.Drawing.Color.White;
+ this.panel8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel8.Controls.Add(this.klb_X23);
+ this.panel8.Controls.Add(this.cbt_X23);
+ this.panel8.Controls.Add(this.kryptonLabel14);
+ this.panel8.Location = new System.Drawing.Point(248, 115);
+ this.panel8.Name = "panel8";
+ this.panel8.Size = new System.Drawing.Size(243, 30);
+ this.panel8.TabIndex = 1;
+ //
+ // panel7
+ //
+ this.panel7.BackColor = System.Drawing.Color.White;
+ this.panel7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel7.Controls.Add(this.klb_X03);
+ this.panel7.Controls.Add(this.cbt_X03);
+ this.panel7.Controls.Add(this.kryptonLabel12);
+ this.panel7.Location = new System.Drawing.Point(3, 115);
+ this.panel7.Name = "panel7";
+ this.panel7.Size = new System.Drawing.Size(243, 30);
+ this.panel7.TabIndex = 1;
+ //
+ // panel6
+ //
+ this.panel6.BackColor = System.Drawing.Color.White;
+ this.panel6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel6.Controls.Add(this.klb_X22);
+ this.panel6.Controls.Add(this.cbt_X22);
+ this.panel6.Controls.Add(this.kryptonLabel10);
+ this.panel6.Location = new System.Drawing.Point(248, 79);
+ this.panel6.Name = "panel6";
+ this.panel6.Size = new System.Drawing.Size(243, 30);
+ this.panel6.TabIndex = 1;
+ //
+ // panel5
+ //
+ this.panel5.BackColor = System.Drawing.Color.White;
+ this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel5.Controls.Add(this.klb_X02);
+ this.panel5.Controls.Add(this.cbt_X02);
+ this.panel5.Controls.Add(this.kryptonLabel8);
+ this.panel5.Location = new System.Drawing.Point(3, 79);
+ this.panel5.Name = "panel5";
+ this.panel5.Size = new System.Drawing.Size(243, 30);
+ this.panel5.TabIndex = 1;
+ //
+ // panel4
+ //
+ this.panel4.BackColor = System.Drawing.Color.White;
+ this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel4.Controls.Add(this.klb_X21);
+ this.panel4.Controls.Add(this.cbt_X21);
+ this.panel4.Controls.Add(this.kryptonLabel6);
+ this.panel4.Location = new System.Drawing.Point(248, 43);
+ this.panel4.Name = "panel4";
+ this.panel4.Size = new System.Drawing.Size(243, 30);
+ this.panel4.TabIndex = 1;
+ //
+ // panel3
+ //
+ this.panel3.BackColor = System.Drawing.Color.White;
+ this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel3.Controls.Add(this.klb_X01);
+ this.panel3.Controls.Add(this.cbt_X01);
+ this.panel3.Controls.Add(this.kryptonLabel3);
+ this.panel3.Location = new System.Drawing.Point(3, 43);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(243, 30);
+ this.panel3.TabIndex = 1;
+ //
+ // panel2
+ //
+ this.panel2.BackColor = System.Drawing.Color.White;
+ this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel2.Controls.Add(this.klb_X20);
+ this.panel2.Controls.Add(this.cbt_X20);
+ this.panel2.Controls.Add(this.kryptonLabel4);
+ this.panel2.Location = new System.Drawing.Point(248, 7);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(243, 30);
+ this.panel2.TabIndex = 1;
+ //
+ // panel1
+ //
+ this.panel1.BackColor = System.Drawing.Color.White;
+ this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel1.Controls.Add(this.klb_X00);
+ this.panel1.Controls.Add(this.cbt_X00);
+ this.panel1.Controls.Add(this.kryptonLabel1);
+ this.panel1.Location = new System.Drawing.Point(3, 7);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(243, 30);
+ this.panel1.TabIndex = 1;
+ //
+ // kryptonLabel1
+ //
+ this.kryptonLabel1.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel1.Name = "kryptonLabel1";
+ this.kryptonLabel1.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel1.TabIndex = 2;
+ this.kryptonLabel1.Values.Text = "X00";
+ //
+ // frmIOMonitor
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.kryptonPanel1);
+ this.Name = "frmIOMonitor";
+ this.RightToLeft = System.Windows.Forms.RightToLeft.No;
+ this.Size = new System.Drawing.Size(1024, 672);
+ this.Load += new System.EventHandler(this.frmIOMonitorNew_Load);
+ this.panel23.ResumeLayout(false);
+ this.panel23.PerformLayout();
+ this.panel22.ResumeLayout(false);
+ this.panel22.PerformLayout();
+ this.panel21.ResumeLayout(false);
+ this.panel21.PerformLayout();
+ this.panel24.ResumeLayout(false);
+ this.panel24.PerformLayout();
+ this.panel20.ResumeLayout(false);
+ this.panel20.PerformLayout();
+ this.panel19.ResumeLayout(false);
+ this.panel19.PerformLayout();
+ this.panel18.ResumeLayout(false);
+ this.panel18.PerformLayout();
+ this.panel17.ResumeLayout(false);
+ this.panel17.PerformLayout();
+ this.panel32.ResumeLayout(false);
+ this.panel32.PerformLayout();
+ this.panel30.ResumeLayout(false);
+ this.panel30.PerformLayout();
+ this.panel31.ResumeLayout(false);
+ this.panel31.PerformLayout();
+ this.panel26.ResumeLayout(false);
+ this.panel26.PerformLayout();
+ this.panel29.ResumeLayout(false);
+ this.panel29.PerformLayout();
+ this.panel25.ResumeLayout(false);
+ this.panel25.PerformLayout();
+ this.panel28.ResumeLayout(false);
+ this.panel28.PerformLayout();
+ this.panel27.ResumeLayout(false);
+ this.panel27.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).EndInit();
+ this.kryptonPanel3.ResumeLayout(false);
+ this.panel64.ResumeLayout(false);
+ this.panel64.PerformLayout();
+ this.panel36.ResumeLayout(false);
+ this.panel36.PerformLayout();
+ this.panel63.ResumeLayout(false);
+ this.panel63.PerformLayout();
+ this.panel33.ResumeLayout(false);
+ this.panel33.PerformLayout();
+ this.panel62.ResumeLayout(false);
+ this.panel62.PerformLayout();
+ this.panel34.ResumeLayout(false);
+ this.panel34.PerformLayout();
+ this.panel61.ResumeLayout(false);
+ this.panel61.PerformLayout();
+ this.panel35.ResumeLayout(false);
+ this.panel35.PerformLayout();
+ this.panel60.ResumeLayout(false);
+ this.panel60.PerformLayout();
+ this.panel37.ResumeLayout(false);
+ this.panel37.PerformLayout();
+ this.panel59.ResumeLayout(false);
+ this.panel59.PerformLayout();
+ this.panel38.ResumeLayout(false);
+ this.panel38.PerformLayout();
+ this.panel58.ResumeLayout(false);
+ this.panel58.PerformLayout();
+ this.panel39.ResumeLayout(false);
+ this.panel39.PerformLayout();
+ this.panel57.ResumeLayout(false);
+ this.panel57.PerformLayout();
+ this.panel40.ResumeLayout(false);
+ this.panel40.PerformLayout();
+ this.panel56.ResumeLayout(false);
+ this.panel56.PerformLayout();
+ this.panel41.ResumeLayout(false);
+ this.panel41.PerformLayout();
+ this.panel55.ResumeLayout(false);
+ this.panel55.PerformLayout();
+ this.panel42.ResumeLayout(false);
+ this.panel42.PerformLayout();
+ this.panel54.ResumeLayout(false);
+ this.panel54.PerformLayout();
+ this.panel43.ResumeLayout(false);
+ this.panel43.PerformLayout();
+ this.panel53.ResumeLayout(false);
+ this.panel53.PerformLayout();
+ this.panel44.ResumeLayout(false);
+ this.panel44.PerformLayout();
+ this.panel52.ResumeLayout(false);
+ this.panel52.PerformLayout();
+ this.panel45.ResumeLayout(false);
+ this.panel45.PerformLayout();
+ this.panel51.ResumeLayout(false);
+ this.panel51.PerformLayout();
+ this.panel46.ResumeLayout(false);
+ this.panel46.PerformLayout();
+ this.panel50.ResumeLayout(false);
+ this.panel50.PerformLayout();
+ this.panel47.ResumeLayout(false);
+ this.panel47.PerformLayout();
+ this.panel49.ResumeLayout(false);
+ this.panel49.PerformLayout();
+ this.panel48.ResumeLayout(false);
+ this.panel48.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
+ this.kryptonPanel2.ResumeLayout(false);
+ this.panel16.ResumeLayout(false);
+ this.panel16.PerformLayout();
+ this.panel15.ResumeLayout(false);
+ this.panel15.PerformLayout();
+ this.panel14.ResumeLayout(false);
+ this.panel14.PerformLayout();
+ this.panel13.ResumeLayout(false);
+ this.panel13.PerformLayout();
+ this.panel12.ResumeLayout(false);
+ this.panel12.PerformLayout();
+ this.panel11.ResumeLayout(false);
+ this.panel11.PerformLayout();
+ this.panel10.ResumeLayout(false);
+ this.panel10.PerformLayout();
+ this.panel9.ResumeLayout(false);
+ this.panel9.PerformLayout();
+ this.panel8.ResumeLayout(false);
+ this.panel8.PerformLayout();
+ this.panel7.ResumeLayout(false);
+ this.panel7.PerformLayout();
+ this.panel6.ResumeLayout(false);
+ this.panel6.PerformLayout();
+ this.panel5.ResumeLayout(false);
+ this.panel5.PerformLayout();
+ this.panel4.ResumeLayout(false);
+ this.panel4.PerformLayout();
+ this.panel3.ResumeLayout(false);
+ this.panel3.PerformLayout();
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X15;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X33;
+ private CircleButton cbt_X33;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel46;
+ private System.Windows.Forms.Panel panel23;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X13;
+ private CircleButton cbt_X13;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel44;
+ private System.Windows.Forms.Panel panel22;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X32;
+ private CircleButton cbt_X32;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel42;
+ private System.Windows.Forms.Panel panel21;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X12;
+ private CircleButton cbt_X12;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel40;
+ private System.Windows.Forms.Panel panel24;
+ private System.Windows.Forms.Panel panel20;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X31;
+ private CircleButton cbt_X31;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel38;
+ private System.Windows.Forms.Panel panel19;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X11;
+ private CircleButton cbt_X11;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel36;
+ private System.Windows.Forms.Panel panel18;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X30;
+ private CircleButton cbt_X30;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel34;
+ private System.Windows.Forms.Panel panel17;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X10;
+ private CircleButton cbt_X10;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel32;
+ private CircleButton cbt_X15;
+ private System.Windows.Forms.Panel panel32;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X37;
+ private CircleButton cbt_X37;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel62;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y27;
+ private System.Windows.Forms.Panel panel30;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X36;
+ private CircleButton cbt_X36;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel58;
+ private System.Windows.Forms.Panel panel31;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X17;
+ private CircleButton cbt_X17;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel60;
+ private System.Windows.Forms.Panel panel26;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X34;
+ private CircleButton cbt_X34;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel50;
+ private System.Windows.Forms.Panel panel29;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X16;
+ private CircleButton cbt_X16;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel56;
+ private System.Windows.Forms.Panel panel25;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X14;
+ private CircleButton cbt_X14;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel48;
+ private System.Windows.Forms.Panel panel28;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X35;
+ private CircleButton cbt_X35;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel54;
+ private System.Windows.Forms.Panel panel27;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel52;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X04;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel16;
+ private CircleButton cbt_Y27;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X23;
+ private CircleButton cbt_X23;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel14;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X03;
+ private CircleButton cbt_X03;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel12;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X22;
+ private CircleButton cbt_X22;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel10;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X02;
+ private CircleButton cbt_X02;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel8;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X21;
+ private CircleButton cbt_X21;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel6;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X01;
+ private CircleButton cbt_X01;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X20;
+ private CircleButton cbt_X20;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X00;
+ private CircleButton cbt_X00;
+ private CircleButton cbt_X04;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel3;
+ private System.Windows.Forms.Panel panel64;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y37;
+ private CircleButton cbt_Y37;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel126;
+ private System.Windows.Forms.Panel panel36;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y21;
+ private CircleButton cbt_Y21;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel70;
+ private System.Windows.Forms.Panel panel63;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y36;
+ private CircleButton cbt_Y36;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel124;
+ private System.Windows.Forms.Panel panel33;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y00;
+ private CircleButton cbt_Y00;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel64;
+ private System.Windows.Forms.Panel panel62;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y17;
+ private CircleButton cbt_Y17;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel122;
+ private System.Windows.Forms.Panel panel34;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y20;
+ private CircleButton cbt_Y20;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel66;
+ private System.Windows.Forms.Panel panel61;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y34;
+ private CircleButton cbt_Y34;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel120;
+ private System.Windows.Forms.Panel panel35;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y01;
+ private CircleButton cbt_Y01;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel68;
+ private System.Windows.Forms.Panel panel60;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y16;
+ private CircleButton cbt_Y16;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel118;
+ private System.Windows.Forms.Panel panel37;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y02;
+ private CircleButton cbt_Y02;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel72;
+ private System.Windows.Forms.Panel panel59;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y14;
+ private CircleButton cbt_Y14;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel116;
+ private System.Windows.Forms.Panel panel38;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y22;
+ private CircleButton cbt_Y22;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel74;
+ private System.Windows.Forms.Panel panel58;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y35;
+ private CircleButton cbt_Y35;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel114;
+ private System.Windows.Forms.Panel panel39;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y03;
+ private CircleButton cbt_Y03;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel76;
+ private System.Windows.Forms.Panel panel57;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y15;
+ private CircleButton cbt_Y15;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel112;
+ private System.Windows.Forms.Panel panel40;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y23;
+ private CircleButton cbt_Y23;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel78;
+ private System.Windows.Forms.Panel panel56;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y33;
+ private CircleButton cbt_Y33;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel110;
+ private System.Windows.Forms.Panel panel41;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y04;
+ private CircleButton cbt_Y04;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel80;
+ private System.Windows.Forms.Panel panel55;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y13;
+ private CircleButton cbt_Y13;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel108;
+ private System.Windows.Forms.Panel panel42;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y24;
+ private CircleButton cbt_Y24;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel82;
+ private System.Windows.Forms.Panel panel54;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y32;
+ private CircleButton cbt_Y32;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel106;
+ private System.Windows.Forms.Panel panel43;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y05;
+ private CircleButton cbt_Y05;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel84;
+ private System.Windows.Forms.Panel panel53;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y12;
+ private CircleButton cbt_Y12;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel104;
+ private System.Windows.Forms.Panel panel44;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y25;
+ private CircleButton cbt_Y25;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel86;
+ private System.Windows.Forms.Panel panel52;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y31;
+ private CircleButton cbt_Y31;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel102;
+ private System.Windows.Forms.Panel panel45;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y06;
+ private CircleButton cbt_Y06;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel88;
+ private System.Windows.Forms.Panel panel51;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y11;
+ private CircleButton cbt_Y11;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel100;
+ private System.Windows.Forms.Panel panel46;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y26;
+ private CircleButton cbt_Y26;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel90;
+ private System.Windows.Forms.Panel panel50;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y30;
+ private CircleButton cbt_Y30;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel98;
+ private System.Windows.Forms.Panel panel47;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y07;
+ private CircleButton cbt_Y07;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel92;
+ private System.Windows.Forms.Panel panel49;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y10;
+ private CircleButton cbt_Y10;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel96;
+ private System.Windows.Forms.Panel panel48;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel94;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2;
+ private System.Windows.Forms.Panel panel16;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X27;
+ private CircleButton cbt_X27;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel30;
+ private System.Windows.Forms.Panel panel15;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X07;
+ private CircleButton cbt_X07;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel28;
+ private System.Windows.Forms.Panel panel14;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X26;
+ private CircleButton cbt_X26;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel26;
+ private System.Windows.Forms.Panel panel13;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X06;
+ private CircleButton cbt_X06;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel24;
+ private System.Windows.Forms.Panel panel12;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X25;
+ private CircleButton cbt_X25;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel22;
+ private System.Windows.Forms.Panel panel11;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X05;
+ private CircleButton cbt_X05;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel20;
+ private System.Windows.Forms.Panel panel10;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X24;
+ private CircleButton cbt_X24;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel18;
+ private System.Windows.Forms.Panel panel9;
+ private System.Windows.Forms.Panel panel8;
+ private System.Windows.Forms.Panel panel7;
+ private System.Windows.Forms.Panel panel6;
+ private System.Windows.Forms.Panel panel5;
+ private System.Windows.Forms.Panel panel4;
+ private System.Windows.Forms.Panel panel3;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Panel panel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmIOMonitor.cs b/CleanMachineHMI/FrmUserControl/frmIOMonitor.cs
new file mode 100644
index 0000000..2729f71
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmIOMonitor.cs
@@ -0,0 +1,123 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ //[FormType(EnumFormType.IoMonitor)]
+ public partial class frmIOMonitor : UserControl
+ {
+ public frmIOMonitor()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "Label");
+ }
+ ///
+ /// 页面信息语言文本列表
+ ///
+ private DataTable _InfoLanguageTextList;
+ private void frmIOMonitorNew_Load(object sender, EventArgs e)
+ {
+ initControl();
+ GlobalHelper.OnShowX_Y_Status += Show_X_Y_Status;
+ }
+ private void Show_X_Y_Status(object sender, EventArgs e)
+ {
+ BasPlcItemMd item = sender as BasPlcItemMd;
+ Invoke(new Action(() =>
+ {
+ if (item.PlcItemDataType == 2)
+ {
+ if (this.Controls.Find("cbt_X" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)
+ {
+ CircleButton ctn = this.Controls.Find("cbt_X" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true)[0] as CircleButton;
+ if (string.IsNullOrEmpty(item.PlcItemValue))
+ {
+ ctn.BackColor = Color.FromArgb(191, 219, 255);
+ }
+ else if (bool.Parse(item.PlcItemValue.ToString()))
+ {
+ ctn.BackColor = Color.Lime;
+ }
+ else
+ {
+ ctn.BackColor = Color.Red;
+ }
+ }
+ }
+ else
+ {
+ if (this.Controls.Find("cbt_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)
+ {
+ CircleButton ctn = this.Controls.Find("cbt_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true)[0] as CircleButton;
+ if (string.IsNullOrEmpty(item.PlcItemValue))
+ {
+ ctn.BackColor = Color.FromArgb(191, 219, 255);
+ }
+ else if (bool.Parse(item.PlcItemValue.ToString()))
+ {
+ ctn.BackColor = Color.Lime;
+ }
+ else
+ {
+ ctn.BackColor = Color.Red;
+ }
+ }
+ }
+ }));
+ }
+ private void initControl()
+ {
+ try
+ {
+ if (GlobalHelper.PlcItemMd_X_List != null && GlobalHelper.PlcItemMd_X_List.Count > 0)
+ {
+ List tempLst = GlobalHelper.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
+ foreach (BasPlcItemMd item in tempLst)
+ {
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("klb_X" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)
+ {
+ KryptonLabel label1 = this.Controls.Find("klb_X" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true)[0] as KryptonLabel;
+
+ label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
+ }
+ }));
+ }
+ }
+
+ if (GlobalHelper.PlcItemMd_Y_List != null && GlobalHelper.PlcItemMd_Y_List.Count > 0)
+ {
+ List tempLst = GlobalHelper.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
+ foreach (BasPlcItemMd item in tempLst)
+ {
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("klb_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)
+ {
+ KryptonLabel label1 = this.Controls.Find("klb_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true)[0] as KryptonLabel;
+
+ label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
+ }
+ }));
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmIOMonitor.resx b/CleanMachineHMI/FrmUserControl/frmIOMonitor.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmIOMonitor.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/frmMainDetail.Designer.cs b/CleanMachineHMI/FrmUserControl/frmMainDetail.Designer.cs
new file mode 100644
index 0000000..5d5bc31
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmMainDetail.Designer.cs
@@ -0,0 +1,3059 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmMainDetail
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.kryptonGroupBox8 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonButton7 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.label9_SE = new System.Windows.Forms.Label();
+ this.kbtn_forceFinish = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.label4_SD = new System.Windows.Forms.Label();
+ this.kryptonButton6 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonGroupBox9 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.label6_SB = new System.Windows.Forms.Label();
+ this.label3_SA = new System.Windows.Forms.Label();
+ this.kryptonButton5 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton4 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton2 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton3 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_WorkedFullPalletNum = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonGroupBox7 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonLabel12 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel11 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_fpalletmod = new CleanMachineHMI.CircleButton();
+ this.cbt_staticbar = new CleanMachineHMI.CircleButton();
+ this.swtbtn_fullPalletMod = new CleanMachineHMI.LSwitchButton();
+ this.swtbtn_staticBar = new CleanMachineHMI.LSwitchButton();
+ this.label2 = new System.Windows.Forms.Label();
+ this.kryptonLabel6 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.label1 = new System.Windows.Forms.Label();
+ this.swtbtn_nozzle1 = new CleanMachineHMI.LSwitchButton();
+ this.cbt_RunStatusTran = new CleanMachineHMI.CircleButton();
+ this.cbt_NozzleStatusTran = new CleanMachineHMI.CircleButton();
+ this.cbt_ResetSys = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel7 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_StopTran = new CleanMachineHMI.CircleButton();
+ this.swtbtn_brush3 = new CleanMachineHMI.LSwitchButton();
+ this.cbt_StartTran = new CleanMachineHMI.CircleButton();
+ this.cbt_Brush3StatusTran = new CleanMachineHMI.CircleButton();
+ this.swtbtn_brush1 = new CleanMachineHMI.LSwitchButton();
+ this.kryptonLabel8 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Brush1StatusTran = new CleanMachineHMI.CircleButton();
+ this.kryptonLabel9 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.swtbtn_brush2 = new CleanMachineHMI.LSwitchButton();
+ this.cbt_Brush2StatusTran = new CleanMachineHMI.CircleButton();
+ this.shapeContainer1 = new Microsoft.VisualBasic.PowerPacks.ShapeContainer();
+ this.lineShape1 = new Microsoft.VisualBasic.PowerPacks.LineShape();
+ this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
+ this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonLabel13 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kbtn_WorkedFullPalletNum = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kcmb_SheetType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.kbtn_Scrap_1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_Scrap = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.ktb_Scrap = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kdtp_RecordDate = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
+ this.label8 = new System.Windows.Forms.Label();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.ktb_CurrPalletCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonLabel10 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.ktb_FinishedPalletNum = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.ktb_CurrentPalletNum = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonLabel15 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.ktb_ScrapNum = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonLabel14 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.ktb_CompleteNum = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.label7 = new System.Windows.Forms.Label();
+ this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.ktb_SaveIR = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.ktb_IR = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonGroupBox5 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.dwqeqw = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel24 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel13 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kbtn_Adhesives = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_Adhesives = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.kbtn_Adhesives_1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonPanel21 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel22 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel12 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kbtn_Solvents = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_Solvents = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.kbtn_Solvents_1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonPanel19 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel20 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel11 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kbtn_StrongOdor = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_StrongOdor = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.kbtn_StrongOdor_1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonPanel17 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel18 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel10 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kbtn_OilOrGreaseOrPaint = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_OilOrGreaseOrPaint = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.kbtn_OilOrGreaseOrPaint_1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonPanel6 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kryptonPanel3 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonPanel4 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel33 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel21 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kbtn_TapeOrStickers = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_TapeOrStickers = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.kbtn_TapeOrStickers_1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonPanel15 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel16 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel9 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kbtn_RodentsInsocts = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_RodentsInsocts = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.kbtn_RodentsInsocts_1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonPanel13 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel14 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel8 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kbtn_DirtMudGrass = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_DirtMudGrass = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.kbtn_DirtMudGrass_1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonPanel11 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel12 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel7 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kbtn_MetalShaving = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_MetalShaving = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.kbtn_MetalShaving_1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonPanel10 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel9 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel6 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kbtn_GlassOrWoodShreds = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_GlassOrWoodShreds = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.kbtn_GlassOrWoodShreds_1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonPanel5 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kryptonGroupBox4 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonPanel23 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel39 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel19 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kbtn_Others = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_Others = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.kbtn_Others_1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonPanel8 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kryptonGroupBox3 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonPanel31 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel32 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel17 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kbtn_Mold = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_Mold = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.kbtn_Mold_1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonPanel29 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel30 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel16 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kbtn_OdorOrAtypicalSmell = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_OdorOrAtypicalSmell = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.kbtn_OdorOrAtypicalSmell_1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonPanel27 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel28 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel15 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kbtn_FecesExcreta = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_FecesExcreta = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.kbtn_FecesExcreta_1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonPanel25 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel26 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel14 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.kbtn_MoistureOrWet = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_MoistureOrWet = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.kbtn_MoistureOrWet_1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonPanel7 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonWrapLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.panMenu = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.btnParamater = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnLogin = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnBase = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnWarningLog = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnPrinter = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnIR = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnPLCConfig = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnIO = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnManual = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox8)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox8.Panel)).BeginInit();
+ this.kryptonGroupBox8.Panel.SuspendLayout();
+ this.kryptonGroupBox8.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox9)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox9.Panel)).BeginInit();
+ this.kryptonGroupBox9.Panel.SuspendLayout();
+ this.kryptonGroupBox9.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox7)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox7.Panel)).BeginInit();
+ this.kryptonGroupBox7.Panel.SuspendLayout();
+ this.kryptonGroupBox7.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_SheetType)).BeginInit();
+ this.panel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox5)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox5.Panel)).BeginInit();
+ this.kryptonGroupBox5.Panel.SuspendLayout();
+ this.kryptonGroupBox5.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dwqeqw)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel24)).BeginInit();
+ this.kryptonPanel24.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel21)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel22)).BeginInit();
+ this.kryptonPanel22.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel19)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel20)).BeginInit();
+ this.kryptonPanel20.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel17)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel18)).BeginInit();
+ this.kryptonPanel18.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel6)).BeginInit();
+ this.kryptonPanel6.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit();
+ this.kryptonPanel3.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel33)).BeginInit();
+ this.kryptonPanel33.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel15)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel16)).BeginInit();
+ this.kryptonPanel16.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel13)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel14)).BeginInit();
+ this.kryptonPanel14.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel11)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel12)).BeginInit();
+ this.kryptonPanel12.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel10)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel9)).BeginInit();
+ this.kryptonPanel9.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel5)).BeginInit();
+ this.kryptonPanel5.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4.Panel)).BeginInit();
+ this.kryptonGroupBox4.Panel.SuspendLayout();
+ this.kryptonGroupBox4.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel23)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel39)).BeginInit();
+ this.kryptonPanel39.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel8)).BeginInit();
+ this.kryptonPanel8.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3.Panel)).BeginInit();
+ this.kryptonGroupBox3.Panel.SuspendLayout();
+ this.kryptonGroupBox3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel31)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel32)).BeginInit();
+ this.kryptonPanel32.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel29)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel30)).BeginInit();
+ this.kryptonPanel30.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel27)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel28)).BeginInit();
+ this.kryptonPanel28.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel25)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel26)).BeginInit();
+ this.kryptonPanel26.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel7)).BeginInit();
+ this.kryptonPanel7.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.panMenu)).BeginInit();
+ this.panMenu.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonGroupBox8
+ //
+ this.kryptonGroupBox8.CaptionOverlap = 0D;
+ this.kryptonGroupBox8.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.kryptonGroupBox8.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox8.Location = new System.Drawing.Point(483, 3);
+ this.kryptonGroupBox8.Name = "kryptonGroupBox8";
+ //
+ // kryptonGroupBox8.Panel
+ //
+ this.kryptonGroupBox8.Panel.Controls.Add(this.kryptonButton7);
+ this.kryptonGroupBox8.Panel.Controls.Add(this.label9_SE);
+ this.kryptonGroupBox8.Panel.Controls.Add(this.kbtn_forceFinish);
+ this.kryptonGroupBox8.Panel.Controls.Add(this.label4_SD);
+ this.kryptonGroupBox8.Panel.Controls.Add(this.kryptonButton6);
+ this.kryptonGroupBox8.Size = new System.Drawing.Size(192, 338);
+ this.kryptonGroupBox8.TabIndex = 8;
+ this.kryptonGroupBox8.Values.Heading = "";
+ //
+ // kryptonButton7
+ //
+ this.kryptonButton7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.kryptonButton7.Location = new System.Drawing.Point(21, 268);
+ this.kryptonButton7.Name = "kryptonButton7";
+ this.kryptonButton7.Size = new System.Drawing.Size(154, 52);
+ this.kryptonButton7.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton7.TabIndex = 49;
+ this.kryptonButton7.Values.Text = "Finished Print";
+ this.kryptonButton7.Click += new System.EventHandler(this.kryptonButton7_Click);
+ //
+ // label9_SE
+ //
+ this.label9_SE.AutoSize = true;
+ this.label9_SE.BackColor = System.Drawing.Color.Transparent;
+ this.label9_SE.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label9_SE.ForeColor = System.Drawing.Color.Black;
+ this.label9_SE.Location = new System.Drawing.Point(36, 141);
+ this.label9_SE.Name = "label9_SE";
+ this.label9_SE.Size = new System.Drawing.Size(118, 21);
+ this.label9_SE.TabIndex = 48;
+ this.label9_SE.Text = "SECTION E";
+ //
+ // kbtn_forceFinish
+ //
+ this.kbtn_forceFinish.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbtn_forceFinish.Location = new System.Drawing.Point(21, 189);
+ this.kbtn_forceFinish.Name = "kbtn_forceFinish";
+ this.kbtn_forceFinish.Size = new System.Drawing.Size(154, 52);
+ this.kbtn_forceFinish.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_forceFinish.TabIndex = 2;
+ this.kbtn_forceFinish.Values.Text = "End of IR job";
+ this.kbtn_forceFinish.Click += new System.EventHandler(this.kbtn_forceFinish_Click_1);
+ //
+ // label4_SD
+ //
+ this.label4_SD.AutoSize = true;
+ this.label4_SD.BackColor = System.Drawing.Color.Transparent;
+ this.label4_SD.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label4_SD.ForeColor = System.Drawing.Color.Black;
+ this.label4_SD.Location = new System.Drawing.Point(36, 14);
+ this.label4_SD.Name = "label4_SD";
+ this.label4_SD.Size = new System.Drawing.Size(118, 21);
+ this.label4_SD.TabIndex = 47;
+ this.label4_SD.Text = "SECTION D";
+ //
+ // kryptonButton6
+ //
+ this.kryptonButton6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.kryptonButton6.Location = new System.Drawing.Point(21, 48);
+ this.kryptonButton6.Name = "kryptonButton6";
+ this.kryptonButton6.Size = new System.Drawing.Size(154, 52);
+ this.kryptonButton6.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton6.TabIndex = 6;
+ this.kryptonButton6.Values.Text = "Conveyor On";
+ this.kryptonButton6.MouseDown += new System.Windows.Forms.MouseEventHandler(this.kryptonButton6_MouseDown_1);
+ this.kryptonButton6.MouseUp += new System.Windows.Forms.MouseEventHandler(this.kryptonButton6_MouseUp_1);
+ //
+ // kryptonGroupBox9
+ //
+ this.kryptonGroupBox9.CaptionOverlap = 0D;
+ this.kryptonGroupBox9.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.kryptonGroupBox9.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox9.Location = new System.Drawing.Point(269, 3);
+ this.kryptonGroupBox9.Name = "kryptonGroupBox9";
+ //
+ // kryptonGroupBox9.Panel
+ //
+ this.kryptonGroupBox9.Panel.Controls.Add(this.label6_SB);
+ this.kryptonGroupBox9.Panel.Controls.Add(this.label3_SA);
+ this.kryptonGroupBox9.Panel.Controls.Add(this.kryptonButton5);
+ this.kryptonGroupBox9.Panel.Controls.Add(this.kryptonButton4);
+ this.kryptonGroupBox9.Panel.Controls.Add(this.kryptonButton2);
+ this.kryptonGroupBox9.Panel.Controls.Add(this.kryptonButton3);
+ this.kryptonGroupBox9.Size = new System.Drawing.Size(208, 338);
+ this.kryptonGroupBox9.TabIndex = 7;
+ this.kryptonGroupBox9.Values.Heading = "";
+ //
+ // label6_SB
+ //
+ this.label6_SB.AutoSize = true;
+ this.label6_SB.BackColor = System.Drawing.Color.Transparent;
+ this.label6_SB.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label6_SB.ForeColor = System.Drawing.Color.Black;
+ this.label6_SB.Location = new System.Drawing.Point(43, 153);
+ this.label6_SB.Name = "label6_SB";
+ this.label6_SB.Size = new System.Drawing.Size(118, 21);
+ this.label6_SB.TabIndex = 47;
+ this.label6_SB.Text = "SECTION B";
+ //
+ // label3_SA
+ //
+ this.label3_SA.AutoSize = true;
+ this.label3_SA.BackColor = System.Drawing.Color.Transparent;
+ this.label3_SA.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label3_SA.ForeColor = System.Drawing.Color.Black;
+ this.label3_SA.Location = new System.Drawing.Point(43, 14);
+ this.label3_SA.Name = "label3_SA";
+ this.label3_SA.Size = new System.Drawing.Size(118, 21);
+ this.label3_SA.TabIndex = 46;
+ this.label3_SA.Text = "SECTION A";
+ //
+ // kryptonButton5
+ //
+ this.kryptonButton5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.kryptonButton5.Location = new System.Drawing.Point(28, 273);
+ this.kryptonButton5.Name = "kryptonButton5";
+ this.kryptonButton5.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
+ this.kryptonButton5.Size = new System.Drawing.Size(154, 47);
+ this.kryptonButton5.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton5.TabIndex = 5;
+ this.kryptonButton5.Values.Image = global::CleanMachineHMI.Properties.Resources.下降;
+ this.kryptonButton5.Values.Text = "DOWN";
+ this.kryptonButton5.MouseDown += new System.Windows.Forms.MouseEventHandler(this.kryptonButton5_MouseDown);
+ this.kryptonButton5.MouseUp += new System.Windows.Forms.MouseEventHandler(this.kryptonButton5_MouseUp);
+ //
+ // kryptonButton4
+ //
+ this.kryptonButton4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.kryptonButton4.Location = new System.Drawing.Point(28, 202);
+ this.kryptonButton4.Name = "kryptonButton4";
+ this.kryptonButton4.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
+ this.kryptonButton4.Size = new System.Drawing.Size(154, 47);
+ this.kryptonButton4.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton4.TabIndex = 4;
+ this.kryptonButton4.Values.Image = global::CleanMachineHMI.Properties.Resources.上升;
+ this.kryptonButton4.Values.Text = "UP";
+ this.kryptonButton4.MouseDown += new System.Windows.Forms.MouseEventHandler(this.kryptonButton4_MouseDown);
+ this.kryptonButton4.MouseUp += new System.Windows.Forms.MouseEventHandler(this.kryptonButton4_MouseUp);
+ //
+ // kryptonButton2
+ //
+ this.kryptonButton2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.kryptonButton2.Location = new System.Drawing.Point(28, 99);
+ this.kryptonButton2.Name = "kryptonButton2";
+ this.kryptonButton2.Size = new System.Drawing.Size(154, 35);
+ this.kryptonButton2.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton2.TabIndex = 3;
+ this.kryptonButton2.Values.Text = "Reverse On";
+ this.kryptonButton2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.kryptonButton2_MouseDown);
+ this.kryptonButton2.MouseUp += new System.Windows.Forms.MouseEventHandler(this.kryptonButton2_MouseUp);
+ //
+ // kryptonButton3
+ //
+ this.kryptonButton3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.kryptonButton3.Location = new System.Drawing.Point(28, 47);
+ this.kryptonButton3.Name = "kryptonButton3";
+ this.kryptonButton3.Size = new System.Drawing.Size(154, 35);
+ this.kryptonButton3.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton3.TabIndex = 3;
+ this.kryptonButton3.Values.Text = "Conveyor On";
+ this.kryptonButton3.MouseDown += new System.Windows.Forms.MouseEventHandler(this.kryptonButton3_MouseDown_1);
+ this.kryptonButton3.MouseUp += new System.Windows.Forms.MouseEventHandler(this.kryptonButton3_MouseUp_1);
+ //
+ // knud_WorkedFullPalletNum
+ //
+ this.knud_WorkedFullPalletNum.Location = new System.Drawing.Point(16, 230);
+ this.knud_WorkedFullPalletNum.Name = "knud_WorkedFullPalletNum";
+ this.knud_WorkedFullPalletNum.Size = new System.Drawing.Size(84, 30);
+ this.knud_WorkedFullPalletNum.StateCommon.Content.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_WorkedFullPalletNum.TabIndex = 48;
+ this.knud_WorkedFullPalletNum.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.knud_WorkedFullPalletNum.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.kryptonTextBox1_KeyPress);
+ //
+ // kryptonGroupBox7
+ //
+ this.kryptonGroupBox7.CaptionOverlap = 0D;
+ this.kryptonGroupBox7.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.kryptonGroupBox7.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox7.Location = new System.Drawing.Point(3, 3);
+ this.kryptonGroupBox7.Name = "kryptonGroupBox7";
+ //
+ // kryptonGroupBox7.Panel
+ //
+ this.kryptonGroupBox7.Panel.Controls.Add(this.kryptonLabel12);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.kryptonLabel11);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.cbt_fpalletmod);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.cbt_staticbar);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.swtbtn_fullPalletMod);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.swtbtn_staticBar);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.label2);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.kryptonLabel6);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.label1);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.swtbtn_nozzle1);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.cbt_RunStatusTran);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.cbt_NozzleStatusTran);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.cbt_ResetSys);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.kryptonLabel7);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.cbt_StopTran);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.swtbtn_brush3);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.cbt_StartTran);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.cbt_Brush3StatusTran);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.swtbtn_brush1);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.kryptonLabel8);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.cbt_Brush1StatusTran);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.kryptonLabel9);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.swtbtn_brush2);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.cbt_Brush2StatusTran);
+ this.kryptonGroupBox7.Panel.Controls.Add(this.shapeContainer1);
+ this.kryptonGroupBox7.Size = new System.Drawing.Size(260, 338);
+ this.kryptonGroupBox7.TabIndex = 5;
+ this.kryptonGroupBox7.Values.Heading = "";
+ //
+ // kryptonLabel12
+ //
+ this.kryptonLabel12.Location = new System.Drawing.Point(21, 302);
+ this.kryptonLabel12.Name = "kryptonLabel12";
+ this.kryptonLabel12.Size = new System.Drawing.Size(62, 20);
+ this.kryptonLabel12.TabIndex = 51;
+ this.kryptonLabel12.Values.Text = "满料方式";
+ this.kryptonLabel12.Visible = false;
+ //
+ // kryptonLabel11
+ //
+ this.kryptonLabel11.Location = new System.Drawing.Point(20, 243);
+ this.kryptonLabel11.Name = "kryptonLabel11";
+ this.kryptonLabel11.Size = new System.Drawing.Size(49, 20);
+ this.kryptonLabel11.TabIndex = 50;
+ this.kryptonLabel11.Values.Text = "静电棒";
+ //
+ // cbt_fpalletmod
+ //
+ this.cbt_fpalletmod.BackColor = System.Drawing.Color.Gray;
+ this.cbt_fpalletmod.Location = new System.Drawing.Point(203, 300);
+ this.cbt_fpalletmod.Name = "cbt_fpalletmod";
+ this.cbt_fpalletmod.Size = new System.Drawing.Size(30, 30);
+ this.cbt_fpalletmod.TabIndex = 49;
+ this.cbt_fpalletmod.UseVisualStyleBackColor = false;
+ this.cbt_fpalletmod.Visible = false;
+ //
+ // cbt_staticbar
+ //
+ this.cbt_staticbar.BackColor = System.Drawing.Color.Gray;
+ this.cbt_staticbar.Location = new System.Drawing.Point(203, 241);
+ this.cbt_staticbar.Name = "cbt_staticbar";
+ this.cbt_staticbar.Size = new System.Drawing.Size(30, 30);
+ this.cbt_staticbar.TabIndex = 48;
+ this.cbt_staticbar.UseVisualStyleBackColor = false;
+ //
+ // swtbtn_fullPalletMod
+ //
+ this.swtbtn_fullPalletMod.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
+ this.swtbtn_fullPalletMod.L_AnimateType = LEase.LEaseType.Quartic;
+ this.swtbtn_fullPalletMod.L_BarHight = 24;
+ this.swtbtn_fullPalletMod.L_CloseColor = System.Drawing.Color.Red;
+ this.swtbtn_fullPalletMod.L_DotColor = System.Drawing.Color.White;
+ this.swtbtn_fullPalletMod.L_DotHight = 20;
+ this.swtbtn_fullPalletMod.L_IsOpen = false;
+ this.swtbtn_fullPalletMod.L_Margin = 2;
+ this.swtbtn_fullPalletMod.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+ this.swtbtn_fullPalletMod.Location = new System.Drawing.Point(106, 300);
+ this.swtbtn_fullPalletMod.Name = "swtbtn_fullPalletMod";
+ this.swtbtn_fullPalletMod.Size = new System.Drawing.Size(58, 25);
+ this.swtbtn_fullPalletMod.TabIndex = 47;
+ this.swtbtn_fullPalletMod.Text = "lSwitchButton4";
+ this.swtbtn_fullPalletMod.Visible = false;
+ this.swtbtn_fullPalletMod.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_fullPalletMod_LSwitched);
+ //
+ // swtbtn_staticBar
+ //
+ this.swtbtn_staticBar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
+ this.swtbtn_staticBar.L_AnimateType = LEase.LEaseType.Quartic;
+ this.swtbtn_staticBar.L_BarHight = 24;
+ this.swtbtn_staticBar.L_CloseColor = System.Drawing.Color.Red;
+ this.swtbtn_staticBar.L_DotColor = System.Drawing.Color.White;
+ this.swtbtn_staticBar.L_DotHight = 20;
+ this.swtbtn_staticBar.L_IsOpen = false;
+ this.swtbtn_staticBar.L_Margin = 2;
+ this.swtbtn_staticBar.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+ this.swtbtn_staticBar.Location = new System.Drawing.Point(105, 241);
+ this.swtbtn_staticBar.Name = "swtbtn_staticBar";
+ this.swtbtn_staticBar.Size = new System.Drawing.Size(58, 25);
+ this.swtbtn_staticBar.TabIndex = 46;
+ this.swtbtn_staticBar.Text = "lSwitchButton4";
+ this.swtbtn_staticBar.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_staticBar_LSwitched);
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.Transparent;
+ this.label2.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label2.ForeColor = System.Drawing.Color.Black;
+ this.label2.Location = new System.Drawing.Point(16, 129);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(98, 21);
+ this.label2.TabIndex = 8;
+ this.label2.Text = "功能选择";
+ //
+ // kryptonLabel6
+ //
+ this.kryptonLabel6.Location = new System.Drawing.Point(21, 273);
+ this.kryptonLabel6.Name = "kryptonLabel6";
+ this.kryptonLabel6.Size = new System.Drawing.Size(36, 20);
+ this.kryptonLabel6.TabIndex = 44;
+ this.kryptonLabel6.Values.Text = "喷头";
+ this.kryptonLabel6.Visible = false;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.BackColor = System.Drawing.Color.Transparent;
+ this.label1.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label1.ForeColor = System.Drawing.Color.Black;
+ this.label1.Location = new System.Drawing.Point(16, 9);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(98, 21);
+ this.label1.TabIndex = 8;
+ this.label1.Text = "系统运行";
+ //
+ // swtbtn_nozzle1
+ //
+ this.swtbtn_nozzle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
+ this.swtbtn_nozzle1.L_AnimateType = LEase.LEaseType.Quartic;
+ this.swtbtn_nozzle1.L_BarHight = 24;
+ this.swtbtn_nozzle1.L_CloseColor = System.Drawing.Color.Red;
+ this.swtbtn_nozzle1.L_DotColor = System.Drawing.Color.White;
+ this.swtbtn_nozzle1.L_DotHight = 20;
+ this.swtbtn_nozzle1.L_IsOpen = false;
+ this.swtbtn_nozzle1.L_Margin = 2;
+ this.swtbtn_nozzle1.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+ this.swtbtn_nozzle1.Location = new System.Drawing.Point(106, 271);
+ this.swtbtn_nozzle1.Name = "swtbtn_nozzle1";
+ this.swtbtn_nozzle1.Size = new System.Drawing.Size(58, 25);
+ this.swtbtn_nozzle1.TabIndex = 43;
+ this.swtbtn_nozzle1.Text = "lSwitchButton4";
+ this.swtbtn_nozzle1.Visible = false;
+ this.swtbtn_nozzle1.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_nozzle1_LSwitched);
+ //
+ // cbt_RunStatusTran
+ //
+ this.cbt_RunStatusTran.BackColor = System.Drawing.Color.Gray;
+ this.cbt_RunStatusTran.Location = new System.Drawing.Point(203, 5);
+ this.cbt_RunStatusTran.Name = "cbt_RunStatusTran";
+ this.cbt_RunStatusTran.Size = new System.Drawing.Size(30, 30);
+ this.cbt_RunStatusTran.TabIndex = 7;
+ this.cbt_RunStatusTran.UseVisualStyleBackColor = false;
+ //
+ // cbt_NozzleStatusTran
+ //
+ this.cbt_NozzleStatusTran.BackColor = System.Drawing.Color.Gray;
+ this.cbt_NozzleStatusTran.Location = new System.Drawing.Point(203, 272);
+ this.cbt_NozzleStatusTran.Name = "cbt_NozzleStatusTran";
+ this.cbt_NozzleStatusTran.Size = new System.Drawing.Size(30, 30);
+ this.cbt_NozzleStatusTran.TabIndex = 42;
+ this.cbt_NozzleStatusTran.UseVisualStyleBackColor = false;
+ this.cbt_NozzleStatusTran.Visible = false;
+ //
+ // cbt_ResetSys
+ //
+ this.cbt_ResetSys.BackColor = System.Drawing.Color.DarkOrange;
+ this.cbt_ResetSys.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.cbt_ResetSys.ForeColor = System.Drawing.Color.White;
+ this.cbt_ResetSys.Location = new System.Drawing.Point(173, 41);
+ this.cbt_ResetSys.Name = "cbt_ResetSys";
+ this.cbt_ResetSys.Size = new System.Drawing.Size(60, 60);
+ this.cbt_ResetSys.TabIndex = 5;
+ this.cbt_ResetSys.Text = "RESET";
+ this.cbt_ResetSys.UseVisualStyleBackColor = false;
+ this.cbt_ResetSys.MouseDown += new System.Windows.Forms.MouseEventHandler(this.cbt_ResetSys_MouseDown);
+ this.cbt_ResetSys.MouseUp += new System.Windows.Forms.MouseEventHandler(this.cbt_ResetSys_MouseUp);
+ //
+ // kryptonLabel7
+ //
+ this.kryptonLabel7.Location = new System.Drawing.Point(20, 213);
+ this.kryptonLabel7.Name = "kryptonLabel7";
+ this.kryptonLabel7.Size = new System.Drawing.Size(43, 20);
+ this.kryptonLabel7.TabIndex = 41;
+ this.kryptonLabel7.Values.Text = "毛刷3";
+ //
+ // cbt_StopTran
+ //
+ this.cbt_StopTran.BackColor = System.Drawing.Color.Red;
+ this.cbt_StopTran.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.cbt_StopTran.ForeColor = System.Drawing.Color.White;
+ this.cbt_StopTran.Location = new System.Drawing.Point(98, 41);
+ this.cbt_StopTran.Name = "cbt_StopTran";
+ this.cbt_StopTran.Size = new System.Drawing.Size(60, 60);
+ this.cbt_StopTran.TabIndex = 5;
+ this.cbt_StopTran.Text = "STOP";
+ this.cbt_StopTran.UseVisualStyleBackColor = false;
+ this.cbt_StopTran.MouseDown += new System.Windows.Forms.MouseEventHandler(this.cbt_StopTran_MouseDown);
+ this.cbt_StopTran.MouseUp += new System.Windows.Forms.MouseEventHandler(this.cbt_StopTran_MouseUp);
+ //
+ // swtbtn_brush3
+ //
+ this.swtbtn_brush3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
+ this.swtbtn_brush3.L_AnimateType = LEase.LEaseType.Quartic;
+ this.swtbtn_brush3.L_BarHight = 24;
+ this.swtbtn_brush3.L_CloseColor = System.Drawing.Color.Red;
+ this.swtbtn_brush3.L_DotColor = System.Drawing.Color.White;
+ this.swtbtn_brush3.L_DotHight = 20;
+ this.swtbtn_brush3.L_IsOpen = false;
+ this.swtbtn_brush3.L_Margin = 2;
+ this.swtbtn_brush3.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+ this.swtbtn_brush3.Location = new System.Drawing.Point(105, 211);
+ this.swtbtn_brush3.Name = "swtbtn_brush3";
+ this.swtbtn_brush3.Size = new System.Drawing.Size(58, 25);
+ this.swtbtn_brush3.TabIndex = 40;
+ this.swtbtn_brush3.Text = "lSwitchButton3";
+ this.swtbtn_brush3.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_brush3_LSwitched);
+ //
+ // cbt_StartTran
+ //
+ this.cbt_StartTran.BackColor = System.Drawing.Color.Lime;
+ this.cbt_StartTran.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.cbt_StartTran.Location = new System.Drawing.Point(23, 41);
+ this.cbt_StartTran.Name = "cbt_StartTran";
+ this.cbt_StartTran.Size = new System.Drawing.Size(60, 60);
+ this.cbt_StartTran.TabIndex = 5;
+ this.cbt_StartTran.Text = "START";
+ this.cbt_StartTran.UseVisualStyleBackColor = false;
+ this.cbt_StartTran.MouseDown += new System.Windows.Forms.MouseEventHandler(this.cbt_StartTran_MouseDown);
+ this.cbt_StartTran.MouseUp += new System.Windows.Forms.MouseEventHandler(this.cbt_StartTran_MouseUp);
+ //
+ // cbt_Brush3StatusTran
+ //
+ this.cbt_Brush3StatusTran.BackColor = System.Drawing.Color.Gray;
+ this.cbt_Brush3StatusTran.Location = new System.Drawing.Point(203, 210);
+ this.cbt_Brush3StatusTran.Name = "cbt_Brush3StatusTran";
+ this.cbt_Brush3StatusTran.Size = new System.Drawing.Size(30, 30);
+ this.cbt_Brush3StatusTran.TabIndex = 39;
+ this.cbt_Brush3StatusTran.UseVisualStyleBackColor = false;
+ //
+ // swtbtn_brush1
+ //
+ this.swtbtn_brush1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
+ this.swtbtn_brush1.L_AnimateType = LEase.LEaseType.Quartic;
+ this.swtbtn_brush1.L_BarHight = 24;
+ this.swtbtn_brush1.L_CloseColor = System.Drawing.Color.Red;
+ this.swtbtn_brush1.L_DotColor = System.Drawing.Color.White;
+ this.swtbtn_brush1.L_DotHight = 20;
+ this.swtbtn_brush1.L_IsOpen = false;
+ this.swtbtn_brush1.L_Margin = 2;
+ this.swtbtn_brush1.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+ this.swtbtn_brush1.Location = new System.Drawing.Point(105, 153);
+ this.swtbtn_brush1.Name = "swtbtn_brush1";
+ this.swtbtn_brush1.Size = new System.Drawing.Size(58, 25);
+ this.swtbtn_brush1.TabIndex = 35;
+ this.swtbtn_brush1.Text = "lSwitchButton1";
+ this.swtbtn_brush1.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_brush1_LSwitched);
+ //
+ // kryptonLabel8
+ //
+ this.kryptonLabel8.Location = new System.Drawing.Point(20, 184);
+ this.kryptonLabel8.Name = "kryptonLabel8";
+ this.kryptonLabel8.Size = new System.Drawing.Size(43, 20);
+ this.kryptonLabel8.TabIndex = 38;
+ this.kryptonLabel8.Values.Text = "毛刷2";
+ //
+ // cbt_Brush1StatusTran
+ //
+ this.cbt_Brush1StatusTran.BackColor = System.Drawing.Color.Gray;
+ this.cbt_Brush1StatusTran.Location = new System.Drawing.Point(203, 150);
+ this.cbt_Brush1StatusTran.Name = "cbt_Brush1StatusTran";
+ this.cbt_Brush1StatusTran.Size = new System.Drawing.Size(30, 30);
+ this.cbt_Brush1StatusTran.TabIndex = 33;
+ this.cbt_Brush1StatusTran.UseVisualStyleBackColor = false;
+ //
+ // kryptonLabel9
+ //
+ this.kryptonLabel9.Location = new System.Drawing.Point(20, 155);
+ this.kryptonLabel9.Name = "kryptonLabel9";
+ this.kryptonLabel9.Size = new System.Drawing.Size(43, 20);
+ this.kryptonLabel9.TabIndex = 34;
+ this.kryptonLabel9.Values.Text = "毛刷1";
+ //
+ // swtbtn_brush2
+ //
+ this.swtbtn_brush2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
+ this.swtbtn_brush2.L_AnimateType = LEase.LEaseType.Quartic;
+ this.swtbtn_brush2.L_BarHight = 24;
+ this.swtbtn_brush2.L_CloseColor = System.Drawing.Color.Red;
+ this.swtbtn_brush2.L_DotColor = System.Drawing.Color.White;
+ this.swtbtn_brush2.L_DotHight = 20;
+ this.swtbtn_brush2.L_IsOpen = false;
+ this.swtbtn_brush2.L_Margin = 2;
+ this.swtbtn_brush2.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+ this.swtbtn_brush2.Location = new System.Drawing.Point(105, 182);
+ this.swtbtn_brush2.Name = "swtbtn_brush2";
+ this.swtbtn_brush2.Size = new System.Drawing.Size(58, 25);
+ this.swtbtn_brush2.TabIndex = 37;
+ this.swtbtn_brush2.Text = "lSwitchButton2";
+ this.swtbtn_brush2.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_brush2_LSwitched);
+ //
+ // cbt_Brush2StatusTran
+ //
+ this.cbt_Brush2StatusTran.BackColor = System.Drawing.Color.Gray;
+ this.cbt_Brush2StatusTran.Location = new System.Drawing.Point(203, 180);
+ this.cbt_Brush2StatusTran.Name = "cbt_Brush2StatusTran";
+ this.cbt_Brush2StatusTran.Size = new System.Drawing.Size(30, 30);
+ this.cbt_Brush2StatusTran.TabIndex = 36;
+ this.cbt_Brush2StatusTran.UseVisualStyleBackColor = false;
+ //
+ // shapeContainer1
+ //
+ this.shapeContainer1.Location = new System.Drawing.Point(0, 0);
+ this.shapeContainer1.Margin = new System.Windows.Forms.Padding(0);
+ this.shapeContainer1.Name = "shapeContainer1";
+ this.shapeContainer1.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] {
+ this.lineShape1});
+ this.shapeContainer1.Size = new System.Drawing.Size(256, 334);
+ this.shapeContainer1.TabIndex = 45;
+ this.shapeContainer1.TabStop = false;
+ //
+ // lineShape1
+ //
+ this.lineShape1.Name = "lineShape1";
+ this.lineShape1.X1 = 20;
+ this.lineShape1.X2 = 235;
+ this.lineShape1.Y1 = 117;
+ this.lineShape1.Y2 = 117;
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 4;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 26F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20.93254F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 19.34524F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.53175F));
+ this.tableLayoutPanel2.Controls.Add(this.kryptonGroupBox8, 0, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kryptonGroupBox9, 0, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kryptonGroupBox7, 0, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kryptonGroupBox1, 3, 0);
+ this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(1024, 344);
+ this.tableLayoutPanel2.TabIndex = 10;
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.CaptionOverlap = 0D;
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(681, 3);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.knud_WorkedFullPalletNum);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel13);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kbtn_WorkedFullPalletNum);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kcmb_SheetType);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kbtn_Scrap_1);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kbtn_Scrap);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.ktb_Scrap);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kdtp_RecordDate);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.label8);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.panel1);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.label7);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonButton1);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.ktb_SaveIR);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel3);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.ktb_IR);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel1);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel2);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(340, 338);
+ this.kryptonGroupBox1.TabIndex = 9;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // kryptonLabel13
+ //
+ this.kryptonLabel13.Location = new System.Drawing.Point(99, 234);
+ this.kryptonLabel13.Name = "kryptonLabel13";
+ this.kryptonLabel13.Size = new System.Drawing.Size(55, 20);
+ this.kryptonLabel13.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel13.TabIndex = 18;
+ this.kryptonLabel13.Values.Text = "Piece";
+ //
+ // kbtn_WorkedFullPalletNum
+ //
+ this.kbtn_WorkedFullPalletNum.Location = new System.Drawing.Point(158, 230);
+ this.kbtn_WorkedFullPalletNum.Name = "kbtn_WorkedFullPalletNum";
+ this.kbtn_WorkedFullPalletNum.Size = new System.Drawing.Size(170, 30);
+ this.kbtn_WorkedFullPalletNum.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_WorkedFullPalletNum.TabIndex = 16;
+ this.kbtn_WorkedFullPalletNum.Values.Text = "满托数量";
+ this.kbtn_WorkedFullPalletNum.Click += new System.EventHandler(this.kbtn_WorkedFullPalletNum_Click);
+ //
+ // kcmb_SheetType
+ //
+ this.kcmb_SheetType.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.kcmb_SheetType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.kcmb_SheetType.DropDownWidth = 211;
+ this.kcmb_SheetType.Location = new System.Drawing.Point(118, 3);
+ this.kcmb_SheetType.Name = "kcmb_SheetType";
+ this.kcmb_SheetType.Size = new System.Drawing.Size(211, 21);
+ this.kcmb_SheetType.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kcmb_SheetType.TabIndex = 10;
+ //
+ // kbtn_Scrap_1
+ //
+ this.kbtn_Scrap_1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbtn_Scrap_1.Location = new System.Drawing.Point(248, 263);
+ this.kbtn_Scrap_1.Name = "kbtn_Scrap_1";
+ this.kbtn_Scrap_1.Size = new System.Drawing.Size(60, 60);
+ this.kbtn_Scrap_1.StateCommon.Back.Color1 = System.Drawing.Color.Red;
+ this.kbtn_Scrap_1.StateCommon.Back.Color2 = System.Drawing.Color.Red;
+ this.kbtn_Scrap_1.StateCommon.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.Solid;
+ this.kbtn_Scrap_1.StateCommon.Content.ShortText.Color1 = System.Drawing.Color.White;
+ this.kbtn_Scrap_1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_Scrap_1.TabIndex = 2;
+ this.kbtn_Scrap_1.Values.Text = "SCRAP\r\n - 1";
+ this.kbtn_Scrap_1.Click += new System.EventHandler(this.kbtn_Scrap_1_Click);
+ //
+ // kbtn_Scrap
+ //
+ this.kbtn_Scrap.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbtn_Scrap.Location = new System.Drawing.Point(32, 263);
+ this.kbtn_Scrap.Name = "kbtn_Scrap";
+ this.kbtn_Scrap.Size = new System.Drawing.Size(60, 60);
+ this.kbtn_Scrap.StateCommon.Back.Color1 = System.Drawing.Color.Red;
+ this.kbtn_Scrap.StateCommon.Back.Color2 = System.Drawing.Color.Red;
+ this.kbtn_Scrap.StateCommon.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.Solid;
+ this.kbtn_Scrap.StateCommon.Content.ShortText.Color1 = System.Drawing.Color.White;
+ this.kbtn_Scrap.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_Scrap.TabIndex = 2;
+ this.kbtn_Scrap.Values.Text = "SCRAP\r\n + 1";
+ this.kbtn_Scrap.Click += new System.EventHandler(this.kbtn_Scrap_Click);
+ //
+ // ktb_Scrap
+ //
+ this.ktb_Scrap.AlwaysActive = false;
+ this.ktb_Scrap.Location = new System.Drawing.Point(108, 299);
+ this.ktb_Scrap.Name = "ktb_Scrap";
+ this.ktb_Scrap.ReadOnly = true;
+ this.ktb_Scrap.Size = new System.Drawing.Size(121, 23);
+ this.ktb_Scrap.TabIndex = 1;
+ //
+ // kdtp_RecordDate
+ //
+ this.kdtp_RecordDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.kdtp_RecordDate.CalendarTodayDate = new System.DateTime(2020, 10, 23, 0, 0, 0, 0);
+ this.kdtp_RecordDate.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_RecordDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_RecordDate.Location = new System.Drawing.Point(118, 47);
+ this.kdtp_RecordDate.Name = "kdtp_RecordDate";
+ this.kdtp_RecordDate.ShowCheckBox = true;
+ this.kdtp_RecordDate.Size = new System.Drawing.Size(211, 21);
+ this.kdtp_RecordDate.TabIndex = 4;
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.BackColor = System.Drawing.Color.Transparent;
+ this.label8.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label8.ForeColor = System.Drawing.Color.Black;
+ this.label8.Location = new System.Drawing.Point(126, 267);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(75, 12);
+ this.label8.TabIndex = 8;
+ this.label8.Text = "Current IR";
+ //
+ // panel1
+ //
+ this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel1.Controls.Add(this.ktb_CurrPalletCode);
+ this.panel1.Controls.Add(this.kryptonLabel10);
+ this.panel1.Controls.Add(this.ktb_FinishedPalletNum);
+ this.panel1.Controls.Add(this.ktb_CurrentPalletNum);
+ this.panel1.Controls.Add(this.kryptonLabel15);
+ this.panel1.Controls.Add(this.ktb_ScrapNum);
+ this.panel1.Controls.Add(this.kryptonLabel14);
+ this.panel1.Controls.Add(this.ktb_CompleteNum);
+ this.panel1.Controls.Add(this.kryptonLabel5);
+ this.panel1.Controls.Add(this.kryptonLabel4);
+ this.panel1.Location = new System.Drawing.Point(16, 97);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(312, 130);
+ this.panel1.TabIndex = 3;
+ //
+ // ktb_CurrPalletCode
+ //
+ this.ktb_CurrPalletCode.AlwaysActive = false;
+ this.ktb_CurrPalletCode.Location = new System.Drawing.Point(141, 52);
+ this.ktb_CurrPalletCode.Name = "ktb_CurrPalletCode";
+ this.ktb_CurrPalletCode.ReadOnly = true;
+ this.ktb_CurrPalletCode.Size = new System.Drawing.Size(150, 23);
+ this.ktb_CurrPalletCode.TabIndex = 10;
+ //
+ // kryptonLabel10
+ //
+ this.kryptonLabel10.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.BoldControl;
+ this.kryptonLabel10.Location = new System.Drawing.Point(16, 53);
+ this.kryptonLabel10.Name = "kryptonLabel10";
+ this.kryptonLabel10.Size = new System.Drawing.Size(124, 20);
+ this.kryptonLabel10.TabIndex = 9;
+ this.kryptonLabel10.Values.Text = "Current Pallet Code";
+ //
+ // ktb_FinishedPalletNum
+ //
+ this.ktb_FinishedPalletNum.AlwaysActive = false;
+ this.ktb_FinishedPalletNum.Location = new System.Drawing.Point(141, 102);
+ this.ktb_FinishedPalletNum.Name = "ktb_FinishedPalletNum";
+ this.ktb_FinishedPalletNum.ReadOnly = true;
+ this.ktb_FinishedPalletNum.Size = new System.Drawing.Size(150, 23);
+ this.ktb_FinishedPalletNum.TabIndex = 1;
+ //
+ // ktb_CurrentPalletNum
+ //
+ this.ktb_CurrentPalletNum.AlwaysActive = false;
+ this.ktb_CurrentPalletNum.Location = new System.Drawing.Point(141, 77);
+ this.ktb_CurrentPalletNum.Name = "ktb_CurrentPalletNum";
+ this.ktb_CurrentPalletNum.ReadOnly = true;
+ this.ktb_CurrentPalletNum.Size = new System.Drawing.Size(150, 23);
+ this.ktb_CurrentPalletNum.TabIndex = 1;
+ //
+ // kryptonLabel15
+ //
+ this.kryptonLabel15.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.BoldControl;
+ this.kryptonLabel15.Location = new System.Drawing.Point(12, 103);
+ this.kryptonLabel15.Name = "kryptonLabel15";
+ this.kryptonLabel15.Size = new System.Drawing.Size(127, 20);
+ this.kryptonLabel15.TabIndex = 0;
+ this.kryptonLabel15.Values.Text = "Finished Pallet Num";
+ //
+ // ktb_ScrapNum
+ //
+ this.ktb_ScrapNum.AlwaysActive = false;
+ this.ktb_ScrapNum.Location = new System.Drawing.Point(141, 27);
+ this.ktb_ScrapNum.Name = "ktb_ScrapNum";
+ this.ktb_ScrapNum.ReadOnly = true;
+ this.ktb_ScrapNum.Size = new System.Drawing.Size(150, 23);
+ this.ktb_ScrapNum.TabIndex = 1;
+ //
+ // kryptonLabel14
+ //
+ this.kryptonLabel14.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.BoldControl;
+ this.kryptonLabel14.Location = new System.Drawing.Point(16, 79);
+ this.kryptonLabel14.Name = "kryptonLabel14";
+ this.kryptonLabel14.Size = new System.Drawing.Size(123, 20);
+ this.kryptonLabel14.TabIndex = 0;
+ this.kryptonLabel14.Values.Text = "Current Pallet Num";
+ //
+ // ktb_CompleteNum
+ //
+ this.ktb_CompleteNum.AlwaysActive = false;
+ this.ktb_CompleteNum.Location = new System.Drawing.Point(141, 2);
+ this.ktb_CompleteNum.Name = "ktb_CompleteNum";
+ this.ktb_CompleteNum.ReadOnly = true;
+ this.ktb_CompleteNum.Size = new System.Drawing.Size(150, 23);
+ this.ktb_CompleteNum.TabIndex = 1;
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.BoldControl;
+ this.kryptonLabel5.Location = new System.Drawing.Point(40, 30);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(97, 20);
+ this.kryptonLabel5.TabIndex = 0;
+ this.kryptonLabel5.Values.Text = "IR# Scrap Num";
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.BoldControl;
+ this.kryptonLabel4.Location = new System.Drawing.Point(42, 5);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(95, 20);
+ this.kryptonLabel4.TabIndex = 0;
+ this.kryptonLabel4.Values.Text = "IR# Total Num";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.BackColor = System.Drawing.Color.Transparent;
+ this.label7.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label7.ForeColor = System.Drawing.Color.Black;
+ this.label7.Location = new System.Drawing.Point(126, 285);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(82, 12);
+ this.label7.TabIndex = 8;
+ this.label7.Text = "Scrap Count";
+ //
+ // kryptonButton1
+ //
+ this.kryptonButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.kryptonButton1.Location = new System.Drawing.Point(118, 69);
+ this.kryptonButton1.Name = "kryptonButton1";
+ this.kryptonButton1.Size = new System.Drawing.Size(97, 25);
+ this.kryptonButton1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton1.TabIndex = 2;
+ this.kryptonButton1.Values.Text = "ReEntry";
+ this.kryptonButton1.Visible = false;
+ this.kryptonButton1.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // ktb_SaveIR
+ //
+ this.ktb_SaveIR.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.ktb_SaveIR.Location = new System.Drawing.Point(231, 69);
+ this.ktb_SaveIR.Name = "ktb_SaveIR";
+ this.ktb_SaveIR.Size = new System.Drawing.Size(97, 25);
+ this.ktb_SaveIR.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.ktb_SaveIR.TabIndex = 2;
+ this.ktb_SaveIR.Values.Text = "SAVE IR";
+ this.ktb_SaveIR.Click += new System.EventHandler(this.ktb_SaveIR_Click);
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.kryptonLabel3.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.BoldControl;
+ this.kryptonLabel3.Location = new System.Drawing.Point(32, 46);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(82, 20);
+ this.kryptonLabel3.TabIndex = 0;
+ this.kryptonLabel3.Values.Text = "Record Date";
+ //
+ // ktb_IR
+ //
+ this.ktb_IR.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.ktb_IR.Location = new System.Drawing.Point(118, 24);
+ this.ktb_IR.Name = "ktb_IR";
+ this.ktb_IR.Size = new System.Drawing.Size(211, 23);
+ this.ktb_IR.TabIndex = 1;
+ //
+ // kryptonLabel1
+ //
+ this.kryptonLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.kryptonLabel1.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.BoldControl;
+ this.kryptonLabel1.Location = new System.Drawing.Point(79, 24);
+ this.kryptonLabel1.Name = "kryptonLabel1";
+ this.kryptonLabel1.Size = new System.Drawing.Size(33, 20);
+ this.kryptonLabel1.TabIndex = 0;
+ this.kryptonLabel1.Values.Text = "IR #";
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.kryptonLabel2.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.BoldControl;
+ this.kryptonLabel2.Location = new System.Drawing.Point(39, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(75, 20);
+ this.kryptonLabel2.TabIndex = 0;
+ this.kryptonLabel2.Values.Text = "Sheet Type";
+ //
+ // kryptonGroupBox5
+ //
+ this.kryptonGroupBox5.CaptionOverlap = 0D;
+ this.kryptonGroupBox5.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.kryptonGroupBox5.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox5.Location = new System.Drawing.Point(259, 3);
+ this.kryptonGroupBox5.Name = "kryptonGroupBox5";
+ //
+ // kryptonGroupBox5.Panel
+ //
+ this.kryptonGroupBox5.Panel.Controls.Add(this.dwqeqw);
+ this.kryptonGroupBox5.Panel.Controls.Add(this.kryptonPanel24);
+ this.kryptonGroupBox5.Panel.Controls.Add(this.kryptonPanel21);
+ this.kryptonGroupBox5.Panel.Controls.Add(this.kryptonPanel22);
+ this.kryptonGroupBox5.Panel.Controls.Add(this.kryptonPanel19);
+ this.kryptonGroupBox5.Panel.Controls.Add(this.kryptonPanel20);
+ this.kryptonGroupBox5.Panel.Controls.Add(this.kryptonPanel17);
+ this.kryptonGroupBox5.Panel.Controls.Add(this.kryptonPanel18);
+ this.kryptonGroupBox5.Panel.Controls.Add(this.kryptonPanel6);
+ this.kryptonGroupBox5.Size = new System.Drawing.Size(250, 263);
+ this.kryptonGroupBox5.TabIndex = 3;
+ this.kryptonGroupBox5.Values.Heading = "";
+ //
+ // dwqeqw
+ //
+ this.dwqeqw.Dock = System.Windows.Forms.DockStyle.Top;
+ this.dwqeqw.Location = new System.Drawing.Point(0, 146);
+ this.dwqeqw.Name = "dwqeqw";
+ this.dwqeqw.Size = new System.Drawing.Size(246, 7);
+ this.dwqeqw.TabIndex = 10;
+ //
+ // kryptonPanel24
+ //
+ this.kryptonPanel24.Controls.Add(this.kryptonWrapLabel13);
+ this.kryptonPanel24.Controls.Add(this.kbtn_Adhesives);
+ this.kryptonPanel24.Controls.Add(this.knud_Adhesives);
+ this.kryptonPanel24.Controls.Add(this.kbtn_Adhesives_1);
+ this.kryptonPanel24.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel24.Location = new System.Drawing.Point(0, 121);
+ this.kryptonPanel24.Name = "kryptonPanel24";
+ this.kryptonPanel24.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel24.TabIndex = 9;
+ //
+ // kryptonWrapLabel13
+ //
+ this.kryptonWrapLabel13.AutoSize = false;
+ this.kryptonWrapLabel13.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel13.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel13.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel13.Name = "kryptonWrapLabel13";
+ this.kryptonWrapLabel13.Size = new System.Drawing.Size(136, 25);
+ this.kryptonWrapLabel13.StateCommon.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel13.Text = "粘合剂";
+ this.kryptonWrapLabel13.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kbtn_Adhesives
+ //
+ this.kbtn_Adhesives.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_Adhesives.Location = new System.Drawing.Point(136, 0);
+ this.kbtn_Adhesives.Name = "kbtn_Adhesives";
+ this.kbtn_Adhesives.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_Adhesives.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_Adhesives.TabIndex = 6;
+ this.kbtn_Adhesives.Values.Text = "+1";
+ this.kbtn_Adhesives.Click += new System.EventHandler(this.ktb_GlassOrWoodShreds_Click);
+ //
+ // knud_Adhesives
+ //
+ this.knud_Adhesives.Dock = System.Windows.Forms.DockStyle.Right;
+ this.knud_Adhesives.Enabled = false;
+ this.knud_Adhesives.Location = new System.Drawing.Point(164, 0);
+ this.knud_Adhesives.Maximum = new decimal(new int[] {
+ 200,
+ 0,
+ 0,
+ 0});
+ this.knud_Adhesives.Name = "knud_Adhesives";
+ this.knud_Adhesives.ReadOnly = true;
+ this.knud_Adhesives.Size = new System.Drawing.Size(54, 25);
+ this.knud_Adhesives.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_Adhesives.StateDisabled.Back.Color1 = System.Drawing.Color.White;
+ this.knud_Adhesives.TabIndex = 3;
+ //
+ // kbtn_Adhesives_1
+ //
+ this.kbtn_Adhesives_1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_Adhesives_1.Location = new System.Drawing.Point(218, 0);
+ this.kbtn_Adhesives_1.Name = "kbtn_Adhesives_1";
+ this.kbtn_Adhesives_1.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_Adhesives_1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_Adhesives_1.TabIndex = 8;
+ this.kbtn_Adhesives_1.Values.Text = "-1";
+ this.kbtn_Adhesives_1.Click += new System.EventHandler(this.kbtn_GlassOrWoodShreds_1_Click);
+ //
+ // kryptonPanel21
+ //
+ this.kryptonPanel21.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel21.Location = new System.Drawing.Point(0, 114);
+ this.kryptonPanel21.Name = "kryptonPanel21";
+ this.kryptonPanel21.Size = new System.Drawing.Size(246, 7);
+ this.kryptonPanel21.TabIndex = 8;
+ //
+ // kryptonPanel22
+ //
+ this.kryptonPanel22.Controls.Add(this.kryptonWrapLabel12);
+ this.kryptonPanel22.Controls.Add(this.kbtn_Solvents);
+ this.kryptonPanel22.Controls.Add(this.knud_Solvents);
+ this.kryptonPanel22.Controls.Add(this.kbtn_Solvents_1);
+ this.kryptonPanel22.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel22.Location = new System.Drawing.Point(0, 89);
+ this.kryptonPanel22.Name = "kryptonPanel22";
+ this.kryptonPanel22.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel22.TabIndex = 7;
+ //
+ // kryptonWrapLabel12
+ //
+ this.kryptonWrapLabel12.AutoSize = false;
+ this.kryptonWrapLabel12.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel12.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel12.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel12.Name = "kryptonWrapLabel12";
+ this.kryptonWrapLabel12.Size = new System.Drawing.Size(136, 25);
+ this.kryptonWrapLabel12.StateCommon.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel12.Text = "溶剂";
+ this.kryptonWrapLabel12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kbtn_Solvents
+ //
+ this.kbtn_Solvents.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_Solvents.Location = new System.Drawing.Point(136, 0);
+ this.kbtn_Solvents.Name = "kbtn_Solvents";
+ this.kbtn_Solvents.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_Solvents.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_Solvents.TabIndex = 6;
+ this.kbtn_Solvents.Values.Text = "+1";
+ this.kbtn_Solvents.Click += new System.EventHandler(this.ktb_GlassOrWoodShreds_Click);
+ //
+ // knud_Solvents
+ //
+ this.knud_Solvents.Dock = System.Windows.Forms.DockStyle.Right;
+ this.knud_Solvents.Enabled = false;
+ this.knud_Solvents.Location = new System.Drawing.Point(164, 0);
+ this.knud_Solvents.Maximum = new decimal(new int[] {
+ 200,
+ 0,
+ 0,
+ 0});
+ this.knud_Solvents.Name = "knud_Solvents";
+ this.knud_Solvents.ReadOnly = true;
+ this.knud_Solvents.Size = new System.Drawing.Size(54, 25);
+ this.knud_Solvents.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_Solvents.StateDisabled.Back.Color1 = System.Drawing.Color.White;
+ this.knud_Solvents.TabIndex = 3;
+ //
+ // kbtn_Solvents_1
+ //
+ this.kbtn_Solvents_1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_Solvents_1.Location = new System.Drawing.Point(218, 0);
+ this.kbtn_Solvents_1.Name = "kbtn_Solvents_1";
+ this.kbtn_Solvents_1.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_Solvents_1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_Solvents_1.TabIndex = 8;
+ this.kbtn_Solvents_1.Values.Text = "-1";
+ this.kbtn_Solvents_1.Click += new System.EventHandler(this.kbtn_GlassOrWoodShreds_1_Click);
+ //
+ // kryptonPanel19
+ //
+ this.kryptonPanel19.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel19.Location = new System.Drawing.Point(0, 82);
+ this.kryptonPanel19.Name = "kryptonPanel19";
+ this.kryptonPanel19.Size = new System.Drawing.Size(246, 7);
+ this.kryptonPanel19.TabIndex = 6;
+ //
+ // kryptonPanel20
+ //
+ this.kryptonPanel20.Controls.Add(this.kryptonWrapLabel11);
+ this.kryptonPanel20.Controls.Add(this.kbtn_StrongOdor);
+ this.kryptonPanel20.Controls.Add(this.knud_StrongOdor);
+ this.kryptonPanel20.Controls.Add(this.kbtn_StrongOdor_1);
+ this.kryptonPanel20.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel20.Location = new System.Drawing.Point(0, 57);
+ this.kryptonPanel20.Name = "kryptonPanel20";
+ this.kryptonPanel20.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel20.TabIndex = 5;
+ //
+ // kryptonWrapLabel11
+ //
+ this.kryptonWrapLabel11.AutoSize = false;
+ this.kryptonWrapLabel11.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel11.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel11.Name = "kryptonWrapLabel11";
+ this.kryptonWrapLabel11.Size = new System.Drawing.Size(136, 25);
+ this.kryptonWrapLabel11.StateCommon.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel11.Text = "强烈气味";
+ this.kryptonWrapLabel11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kbtn_StrongOdor
+ //
+ this.kbtn_StrongOdor.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_StrongOdor.Location = new System.Drawing.Point(136, 0);
+ this.kbtn_StrongOdor.Name = "kbtn_StrongOdor";
+ this.kbtn_StrongOdor.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_StrongOdor.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_StrongOdor.TabIndex = 6;
+ this.kbtn_StrongOdor.Values.Text = "+1";
+ this.kbtn_StrongOdor.Click += new System.EventHandler(this.ktb_GlassOrWoodShreds_Click);
+ //
+ // knud_StrongOdor
+ //
+ this.knud_StrongOdor.Dock = System.Windows.Forms.DockStyle.Right;
+ this.knud_StrongOdor.Enabled = false;
+ this.knud_StrongOdor.Location = new System.Drawing.Point(164, 0);
+ this.knud_StrongOdor.Maximum = new decimal(new int[] {
+ 200,
+ 0,
+ 0,
+ 0});
+ this.knud_StrongOdor.Name = "knud_StrongOdor";
+ this.knud_StrongOdor.ReadOnly = true;
+ this.knud_StrongOdor.Size = new System.Drawing.Size(54, 25);
+ this.knud_StrongOdor.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_StrongOdor.StateDisabled.Back.Color1 = System.Drawing.Color.White;
+ this.knud_StrongOdor.TabIndex = 3;
+ //
+ // kbtn_StrongOdor_1
+ //
+ this.kbtn_StrongOdor_1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_StrongOdor_1.Location = new System.Drawing.Point(218, 0);
+ this.kbtn_StrongOdor_1.Name = "kbtn_StrongOdor_1";
+ this.kbtn_StrongOdor_1.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_StrongOdor_1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_StrongOdor_1.TabIndex = 8;
+ this.kbtn_StrongOdor_1.Values.Text = "-1";
+ this.kbtn_StrongOdor_1.Click += new System.EventHandler(this.kbtn_GlassOrWoodShreds_1_Click);
+ //
+ // kryptonPanel17
+ //
+ this.kryptonPanel17.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel17.Location = new System.Drawing.Point(0, 50);
+ this.kryptonPanel17.Name = "kryptonPanel17";
+ this.kryptonPanel17.Size = new System.Drawing.Size(246, 7);
+ this.kryptonPanel17.TabIndex = 4;
+ //
+ // kryptonPanel18
+ //
+ this.kryptonPanel18.Controls.Add(this.kryptonWrapLabel10);
+ this.kryptonPanel18.Controls.Add(this.kbtn_OilOrGreaseOrPaint);
+ this.kryptonPanel18.Controls.Add(this.knud_OilOrGreaseOrPaint);
+ this.kryptonPanel18.Controls.Add(this.kbtn_OilOrGreaseOrPaint_1);
+ this.kryptonPanel18.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel18.Location = new System.Drawing.Point(0, 25);
+ this.kryptonPanel18.Name = "kryptonPanel18";
+ this.kryptonPanel18.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel18.TabIndex = 3;
+ //
+ // kryptonWrapLabel10
+ //
+ this.kryptonWrapLabel10.AutoSize = false;
+ this.kryptonWrapLabel10.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel10.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel10.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel10.Name = "kryptonWrapLabel10";
+ this.kryptonWrapLabel10.Size = new System.Drawing.Size(136, 25);
+ this.kryptonWrapLabel10.StateCommon.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel10.Text = "油/油脂或油漆";
+ this.kryptonWrapLabel10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kbtn_OilOrGreaseOrPaint
+ //
+ this.kbtn_OilOrGreaseOrPaint.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_OilOrGreaseOrPaint.Location = new System.Drawing.Point(136, 0);
+ this.kbtn_OilOrGreaseOrPaint.Name = "kbtn_OilOrGreaseOrPaint";
+ this.kbtn_OilOrGreaseOrPaint.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_OilOrGreaseOrPaint.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_OilOrGreaseOrPaint.TabIndex = 6;
+ this.kbtn_OilOrGreaseOrPaint.Values.Text = "+1";
+ this.kbtn_OilOrGreaseOrPaint.Click += new System.EventHandler(this.ktb_GlassOrWoodShreds_Click);
+ //
+ // knud_OilOrGreaseOrPaint
+ //
+ this.knud_OilOrGreaseOrPaint.Dock = System.Windows.Forms.DockStyle.Right;
+ this.knud_OilOrGreaseOrPaint.Enabled = false;
+ this.knud_OilOrGreaseOrPaint.Location = new System.Drawing.Point(164, 0);
+ this.knud_OilOrGreaseOrPaint.Maximum = new decimal(new int[] {
+ 200,
+ 0,
+ 0,
+ 0});
+ this.knud_OilOrGreaseOrPaint.Name = "knud_OilOrGreaseOrPaint";
+ this.knud_OilOrGreaseOrPaint.ReadOnly = true;
+ this.knud_OilOrGreaseOrPaint.Size = new System.Drawing.Size(54, 25);
+ this.knud_OilOrGreaseOrPaint.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_OilOrGreaseOrPaint.StateDisabled.Back.Color1 = System.Drawing.Color.White;
+ this.knud_OilOrGreaseOrPaint.TabIndex = 3;
+ //
+ // kbtn_OilOrGreaseOrPaint_1
+ //
+ this.kbtn_OilOrGreaseOrPaint_1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_OilOrGreaseOrPaint_1.Location = new System.Drawing.Point(218, 0);
+ this.kbtn_OilOrGreaseOrPaint_1.Name = "kbtn_OilOrGreaseOrPaint_1";
+ this.kbtn_OilOrGreaseOrPaint_1.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_OilOrGreaseOrPaint_1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_OilOrGreaseOrPaint_1.TabIndex = 8;
+ this.kbtn_OilOrGreaseOrPaint_1.Values.Text = "-1";
+ this.kbtn_OilOrGreaseOrPaint_1.Click += new System.EventHandler(this.kbtn_GlassOrWoodShreds_1_Click);
+ //
+ // kryptonPanel6
+ //
+ this.kryptonPanel6.Controls.Add(this.kryptonWrapLabel3);
+ this.kryptonPanel6.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel6.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel6.Name = "kryptonPanel6";
+ this.kryptonPanel6.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel6.TabIndex = 1;
+ //
+ // kryptonWrapLabel3
+ //
+ this.kryptonWrapLabel3.AutoSize = false;
+ this.kryptonWrapLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel3.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel3.Name = "kryptonWrapLabel3";
+ this.kryptonWrapLabel3.Size = new System.Drawing.Size(246, 25);
+ this.kryptonWrapLabel3.StateCommon.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel3.Text = "化学污染";
+ this.kryptonWrapLabel3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kryptonPanel3
+ //
+ this.kryptonPanel3.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonPanel3.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonPanel3.Controls.Add(this.panMenu);
+ this.kryptonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel3.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel3.Name = "kryptonPanel3";
+ this.kryptonPanel3.Size = new System.Drawing.Size(1024, 672);
+ this.kryptonPanel3.TabIndex = 12;
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
+ this.tableLayoutPanel1.Controls.Add(this.kryptonGroupBox2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonGroupBox4, 3, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonGroupBox3, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonGroupBox5, 1, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 344);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 1;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 269F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(1024, 269);
+ this.tableLayoutPanel1.TabIndex = 8;
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.CaptionOverlap = 0D;
+ this.kryptonGroupBox2.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
+ this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonPanel4);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonPanel33);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonPanel15);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonPanel16);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonPanel13);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonPanel14);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonPanel11);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonPanel12);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonPanel10);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonPanel9);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonPanel5);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(250, 263);
+ this.kryptonGroupBox2.TabIndex = 4;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // kryptonPanel4
+ //
+ this.kryptonPanel4.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel4.Location = new System.Drawing.Point(0, 178);
+ this.kryptonPanel4.Name = "kryptonPanel4";
+ this.kryptonPanel4.Size = new System.Drawing.Size(246, 7);
+ this.kryptonPanel4.TabIndex = 10;
+ //
+ // kryptonPanel33
+ //
+ this.kryptonPanel33.Controls.Add(this.kryptonWrapLabel21);
+ this.kryptonPanel33.Controls.Add(this.kbtn_TapeOrStickers);
+ this.kryptonPanel33.Controls.Add(this.knud_TapeOrStickers);
+ this.kryptonPanel33.Controls.Add(this.kbtn_TapeOrStickers_1);
+ this.kryptonPanel33.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel33.Location = new System.Drawing.Point(0, 153);
+ this.kryptonPanel33.Name = "kryptonPanel33";
+ this.kryptonPanel33.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel33.TabIndex = 9;
+ //
+ // kryptonWrapLabel21
+ //
+ this.kryptonWrapLabel21.AutoSize = false;
+ this.kryptonWrapLabel21.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel21.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel21.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel21.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel21.Name = "kryptonWrapLabel21";
+ this.kryptonWrapLabel21.Size = new System.Drawing.Size(136, 25);
+ this.kryptonWrapLabel21.StateCommon.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel21.Text = "胶带、贴纸";
+ this.kryptonWrapLabel21.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kbtn_TapeOrStickers
+ //
+ this.kbtn_TapeOrStickers.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_TapeOrStickers.Location = new System.Drawing.Point(136, 0);
+ this.kbtn_TapeOrStickers.Name = "kbtn_TapeOrStickers";
+ this.kbtn_TapeOrStickers.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_TapeOrStickers.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_TapeOrStickers.TabIndex = 6;
+ this.kbtn_TapeOrStickers.Values.Text = "+1";
+ this.kbtn_TapeOrStickers.Click += new System.EventHandler(this.ktb_GlassOrWoodShreds_Click);
+ //
+ // knud_TapeOrStickers
+ //
+ this.knud_TapeOrStickers.Dock = System.Windows.Forms.DockStyle.Right;
+ this.knud_TapeOrStickers.Enabled = false;
+ this.knud_TapeOrStickers.Location = new System.Drawing.Point(164, 0);
+ this.knud_TapeOrStickers.Maximum = new decimal(new int[] {
+ 200,
+ 0,
+ 0,
+ 0});
+ this.knud_TapeOrStickers.Name = "knud_TapeOrStickers";
+ this.knud_TapeOrStickers.ReadOnly = true;
+ this.knud_TapeOrStickers.Size = new System.Drawing.Size(54, 25);
+ this.knud_TapeOrStickers.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_TapeOrStickers.StateDisabled.Back.Color1 = System.Drawing.Color.White;
+ this.knud_TapeOrStickers.TabIndex = 3;
+ //
+ // kbtn_TapeOrStickers_1
+ //
+ this.kbtn_TapeOrStickers_1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_TapeOrStickers_1.Location = new System.Drawing.Point(218, 0);
+ this.kbtn_TapeOrStickers_1.Name = "kbtn_TapeOrStickers_1";
+ this.kbtn_TapeOrStickers_1.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_TapeOrStickers_1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_TapeOrStickers_1.TabIndex = 8;
+ this.kbtn_TapeOrStickers_1.Values.Text = "-1";
+ this.kbtn_TapeOrStickers_1.Click += new System.EventHandler(this.kbtn_GlassOrWoodShreds_1_Click);
+ //
+ // kryptonPanel15
+ //
+ this.kryptonPanel15.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel15.Location = new System.Drawing.Point(0, 146);
+ this.kryptonPanel15.Name = "kryptonPanel15";
+ this.kryptonPanel15.Size = new System.Drawing.Size(246, 7);
+ this.kryptonPanel15.TabIndex = 8;
+ //
+ // kryptonPanel16
+ //
+ this.kryptonPanel16.Controls.Add(this.kryptonWrapLabel9);
+ this.kryptonPanel16.Controls.Add(this.kbtn_RodentsInsocts);
+ this.kryptonPanel16.Controls.Add(this.knud_RodentsInsocts);
+ this.kryptonPanel16.Controls.Add(this.kbtn_RodentsInsocts_1);
+ this.kryptonPanel16.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel16.Location = new System.Drawing.Point(0, 121);
+ this.kryptonPanel16.Name = "kryptonPanel16";
+ this.kryptonPanel16.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel16.TabIndex = 7;
+ //
+ // kryptonWrapLabel9
+ //
+ this.kryptonWrapLabel9.AutoSize = false;
+ this.kryptonWrapLabel9.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel9.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel9.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel9.Name = "kryptonWrapLabel9";
+ this.kryptonWrapLabel9.Size = new System.Drawing.Size(136, 25);
+ this.kryptonWrapLabel9.StateCommon.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel9.Text = "啮齿动物、昆虫";
+ this.kryptonWrapLabel9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kbtn_RodentsInsocts
+ //
+ this.kbtn_RodentsInsocts.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_RodentsInsocts.Location = new System.Drawing.Point(136, 0);
+ this.kbtn_RodentsInsocts.Name = "kbtn_RodentsInsocts";
+ this.kbtn_RodentsInsocts.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_RodentsInsocts.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_RodentsInsocts.TabIndex = 6;
+ this.kbtn_RodentsInsocts.Values.Text = "+1";
+ this.kbtn_RodentsInsocts.Click += new System.EventHandler(this.ktb_GlassOrWoodShreds_Click);
+ //
+ // knud_RodentsInsocts
+ //
+ this.knud_RodentsInsocts.Dock = System.Windows.Forms.DockStyle.Right;
+ this.knud_RodentsInsocts.Enabled = false;
+ this.knud_RodentsInsocts.Location = new System.Drawing.Point(164, 0);
+ this.knud_RodentsInsocts.Maximum = new decimal(new int[] {
+ 200,
+ 0,
+ 0,
+ 0});
+ this.knud_RodentsInsocts.Name = "knud_RodentsInsocts";
+ this.knud_RodentsInsocts.ReadOnly = true;
+ this.knud_RodentsInsocts.Size = new System.Drawing.Size(54, 25);
+ this.knud_RodentsInsocts.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_RodentsInsocts.StateDisabled.Back.Color1 = System.Drawing.Color.White;
+ this.knud_RodentsInsocts.TabIndex = 3;
+ //
+ // kbtn_RodentsInsocts_1
+ //
+ this.kbtn_RodentsInsocts_1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_RodentsInsocts_1.Location = new System.Drawing.Point(218, 0);
+ this.kbtn_RodentsInsocts_1.Name = "kbtn_RodentsInsocts_1";
+ this.kbtn_RodentsInsocts_1.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_RodentsInsocts_1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_RodentsInsocts_1.TabIndex = 8;
+ this.kbtn_RodentsInsocts_1.Values.Text = "-1";
+ this.kbtn_RodentsInsocts_1.Click += new System.EventHandler(this.kbtn_GlassOrWoodShreds_1_Click);
+ //
+ // kryptonPanel13
+ //
+ this.kryptonPanel13.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel13.Location = new System.Drawing.Point(0, 114);
+ this.kryptonPanel13.Name = "kryptonPanel13";
+ this.kryptonPanel13.Size = new System.Drawing.Size(246, 7);
+ this.kryptonPanel13.TabIndex = 6;
+ //
+ // kryptonPanel14
+ //
+ this.kryptonPanel14.Controls.Add(this.kryptonWrapLabel8);
+ this.kryptonPanel14.Controls.Add(this.kbtn_DirtMudGrass);
+ this.kryptonPanel14.Controls.Add(this.knud_DirtMudGrass);
+ this.kryptonPanel14.Controls.Add(this.kbtn_DirtMudGrass_1);
+ this.kryptonPanel14.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel14.Location = new System.Drawing.Point(0, 89);
+ this.kryptonPanel14.Name = "kryptonPanel14";
+ this.kryptonPanel14.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel14.TabIndex = 5;
+ //
+ // kryptonWrapLabel8
+ //
+ this.kryptonWrapLabel8.AutoSize = false;
+ this.kryptonWrapLabel8.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel8.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel8.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel8.Name = "kryptonWrapLabel8";
+ this.kryptonWrapLabel8.Size = new System.Drawing.Size(136, 25);
+ this.kryptonWrapLabel8.StateCommon.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel8.Text = "土、泥、草";
+ this.kryptonWrapLabel8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kbtn_DirtMudGrass
+ //
+ this.kbtn_DirtMudGrass.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_DirtMudGrass.Location = new System.Drawing.Point(136, 0);
+ this.kbtn_DirtMudGrass.Name = "kbtn_DirtMudGrass";
+ this.kbtn_DirtMudGrass.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_DirtMudGrass.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_DirtMudGrass.TabIndex = 6;
+ this.kbtn_DirtMudGrass.Values.Text = "+1";
+ this.kbtn_DirtMudGrass.Click += new System.EventHandler(this.ktb_GlassOrWoodShreds_Click);
+ //
+ // knud_DirtMudGrass
+ //
+ this.knud_DirtMudGrass.Dock = System.Windows.Forms.DockStyle.Right;
+ this.knud_DirtMudGrass.Enabled = false;
+ this.knud_DirtMudGrass.Location = new System.Drawing.Point(164, 0);
+ this.knud_DirtMudGrass.Maximum = new decimal(new int[] {
+ 200,
+ 0,
+ 0,
+ 0});
+ this.knud_DirtMudGrass.Name = "knud_DirtMudGrass";
+ this.knud_DirtMudGrass.ReadOnly = true;
+ this.knud_DirtMudGrass.Size = new System.Drawing.Size(54, 25);
+ this.knud_DirtMudGrass.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_DirtMudGrass.StateDisabled.Back.Color1 = System.Drawing.Color.White;
+ this.knud_DirtMudGrass.TabIndex = 3;
+ //
+ // kbtn_DirtMudGrass_1
+ //
+ this.kbtn_DirtMudGrass_1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_DirtMudGrass_1.Location = new System.Drawing.Point(218, 0);
+ this.kbtn_DirtMudGrass_1.Name = "kbtn_DirtMudGrass_1";
+ this.kbtn_DirtMudGrass_1.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_DirtMudGrass_1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_DirtMudGrass_1.TabIndex = 8;
+ this.kbtn_DirtMudGrass_1.Values.Text = "-1";
+ this.kbtn_DirtMudGrass_1.Click += new System.EventHandler(this.kbtn_GlassOrWoodShreds_1_Click);
+ //
+ // kryptonPanel11
+ //
+ this.kryptonPanel11.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel11.Location = new System.Drawing.Point(0, 82);
+ this.kryptonPanel11.Name = "kryptonPanel11";
+ this.kryptonPanel11.Size = new System.Drawing.Size(246, 7);
+ this.kryptonPanel11.TabIndex = 4;
+ //
+ // kryptonPanel12
+ //
+ this.kryptonPanel12.Controls.Add(this.kryptonWrapLabel7);
+ this.kryptonPanel12.Controls.Add(this.kbtn_MetalShaving);
+ this.kryptonPanel12.Controls.Add(this.knud_MetalShaving);
+ this.kryptonPanel12.Controls.Add(this.kbtn_MetalShaving_1);
+ this.kryptonPanel12.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel12.Location = new System.Drawing.Point(0, 57);
+ this.kryptonPanel12.Name = "kryptonPanel12";
+ this.kryptonPanel12.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel12.TabIndex = 3;
+ //
+ // kryptonWrapLabel7
+ //
+ this.kryptonWrapLabel7.AutoSize = false;
+ this.kryptonWrapLabel7.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel7.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel7.Name = "kryptonWrapLabel7";
+ this.kryptonWrapLabel7.Size = new System.Drawing.Size(136, 25);
+ this.kryptonWrapLabel7.StateCommon.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel7.Text = "金属刨花";
+ this.kryptonWrapLabel7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kbtn_MetalShaving
+ //
+ this.kbtn_MetalShaving.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_MetalShaving.Location = new System.Drawing.Point(136, 0);
+ this.kbtn_MetalShaving.Name = "kbtn_MetalShaving";
+ this.kbtn_MetalShaving.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_MetalShaving.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_MetalShaving.TabIndex = 6;
+ this.kbtn_MetalShaving.Values.Text = "+1";
+ this.kbtn_MetalShaving.Click += new System.EventHandler(this.ktb_GlassOrWoodShreds_Click);
+ //
+ // knud_MetalShaving
+ //
+ this.knud_MetalShaving.Dock = System.Windows.Forms.DockStyle.Right;
+ this.knud_MetalShaving.Enabled = false;
+ this.knud_MetalShaving.Location = new System.Drawing.Point(164, 0);
+ this.knud_MetalShaving.Maximum = new decimal(new int[] {
+ 200,
+ 0,
+ 0,
+ 0});
+ this.knud_MetalShaving.Name = "knud_MetalShaving";
+ this.knud_MetalShaving.ReadOnly = true;
+ this.knud_MetalShaving.Size = new System.Drawing.Size(54, 25);
+ this.knud_MetalShaving.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_MetalShaving.StateDisabled.Back.Color1 = System.Drawing.Color.White;
+ this.knud_MetalShaving.TabIndex = 3;
+ //
+ // kbtn_MetalShaving_1
+ //
+ this.kbtn_MetalShaving_1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_MetalShaving_1.Location = new System.Drawing.Point(218, 0);
+ this.kbtn_MetalShaving_1.Name = "kbtn_MetalShaving_1";
+ this.kbtn_MetalShaving_1.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_MetalShaving_1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_MetalShaving_1.TabIndex = 7;
+ this.kbtn_MetalShaving_1.Values.Text = "-1";
+ this.kbtn_MetalShaving_1.Click += new System.EventHandler(this.kbtn_GlassOrWoodShreds_1_Click);
+ //
+ // kryptonPanel10
+ //
+ this.kryptonPanel10.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel10.Location = new System.Drawing.Point(0, 50);
+ this.kryptonPanel10.Name = "kryptonPanel10";
+ this.kryptonPanel10.Size = new System.Drawing.Size(246, 7);
+ this.kryptonPanel10.TabIndex = 2;
+ //
+ // kryptonPanel9
+ //
+ this.kryptonPanel9.Controls.Add(this.kryptonWrapLabel6);
+ this.kryptonPanel9.Controls.Add(this.kbtn_GlassOrWoodShreds);
+ this.kryptonPanel9.Controls.Add(this.knud_GlassOrWoodShreds);
+ this.kryptonPanel9.Controls.Add(this.kbtn_GlassOrWoodShreds_1);
+ this.kryptonPanel9.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel9.Location = new System.Drawing.Point(0, 25);
+ this.kryptonPanel9.Name = "kryptonPanel9";
+ this.kryptonPanel9.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel9.TabIndex = 1;
+ //
+ // kryptonWrapLabel6
+ //
+ this.kryptonWrapLabel6.AutoSize = false;
+ this.kryptonWrapLabel6.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel6.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel6.Name = "kryptonWrapLabel6";
+ this.kryptonWrapLabel6.Size = new System.Drawing.Size(136, 25);
+ this.kryptonWrapLabel6.StateCommon.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel6.Text = "玻璃/木屑";
+ this.kryptonWrapLabel6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kbtn_GlassOrWoodShreds
+ //
+ this.kbtn_GlassOrWoodShreds.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_GlassOrWoodShreds.Location = new System.Drawing.Point(136, 0);
+ this.kbtn_GlassOrWoodShreds.Name = "kbtn_GlassOrWoodShreds";
+ this.kbtn_GlassOrWoodShreds.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_GlassOrWoodShreds.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_GlassOrWoodShreds.TabIndex = 6;
+ this.kbtn_GlassOrWoodShreds.Values.Text = "+1";
+ this.kbtn_GlassOrWoodShreds.Click += new System.EventHandler(this.ktb_GlassOrWoodShreds_Click);
+ //
+ // knud_GlassOrWoodShreds
+ //
+ this.knud_GlassOrWoodShreds.Dock = System.Windows.Forms.DockStyle.Right;
+ this.knud_GlassOrWoodShreds.Enabled = false;
+ this.knud_GlassOrWoodShreds.Location = new System.Drawing.Point(164, 0);
+ this.knud_GlassOrWoodShreds.Maximum = new decimal(new int[] {
+ 200,
+ 0,
+ 0,
+ 0});
+ this.knud_GlassOrWoodShreds.Name = "knud_GlassOrWoodShreds";
+ this.knud_GlassOrWoodShreds.ReadOnly = true;
+ this.knud_GlassOrWoodShreds.Size = new System.Drawing.Size(54, 25);
+ this.knud_GlassOrWoodShreds.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_GlassOrWoodShreds.StateDisabled.Back.Color1 = System.Drawing.Color.White;
+ this.knud_GlassOrWoodShreds.TabIndex = 3;
+ //
+ // kbtn_GlassOrWoodShreds_1
+ //
+ this.kbtn_GlassOrWoodShreds_1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_GlassOrWoodShreds_1.Location = new System.Drawing.Point(218, 0);
+ this.kbtn_GlassOrWoodShreds_1.Name = "kbtn_GlassOrWoodShreds_1";
+ this.kbtn_GlassOrWoodShreds_1.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_GlassOrWoodShreds_1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_GlassOrWoodShreds_1.TabIndex = 6;
+ this.kbtn_GlassOrWoodShreds_1.Values.Text = "-1";
+ this.kbtn_GlassOrWoodShreds_1.Click += new System.EventHandler(this.kbtn_GlassOrWoodShreds_1_Click);
+ //
+ // kryptonPanel5
+ //
+ this.kryptonPanel5.Controls.Add(this.kryptonWrapLabel2);
+ this.kryptonPanel5.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel5.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel5.Name = "kryptonPanel5";
+ this.kryptonPanel5.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel5.TabIndex = 0;
+ //
+ // kryptonWrapLabel2
+ //
+ this.kryptonWrapLabel2.AutoSize = false;
+ this.kryptonWrapLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel2.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel2.Name = "kryptonWrapLabel2";
+ this.kryptonWrapLabel2.Size = new System.Drawing.Size(246, 25);
+ this.kryptonWrapLabel2.StateCommon.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel2.Text = "物理污染";
+ this.kryptonWrapLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kryptonGroupBox4
+ //
+ this.kryptonGroupBox4.CaptionOverlap = 0D;
+ this.kryptonGroupBox4.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.kryptonGroupBox4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox4.Location = new System.Drawing.Point(771, 3);
+ this.kryptonGroupBox4.Name = "kryptonGroupBox4";
+ //
+ // kryptonGroupBox4.Panel
+ //
+ this.kryptonGroupBox4.Panel.Controls.Add(this.kryptonPanel23);
+ this.kryptonGroupBox4.Panel.Controls.Add(this.kryptonPanel39);
+ this.kryptonGroupBox4.Panel.Controls.Add(this.kryptonPanel8);
+ this.kryptonGroupBox4.Size = new System.Drawing.Size(250, 263);
+ this.kryptonGroupBox4.TabIndex = 2;
+ this.kryptonGroupBox4.Values.Heading = "";
+ //
+ // kryptonPanel23
+ //
+ this.kryptonPanel23.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel23.Location = new System.Drawing.Point(0, 50);
+ this.kryptonPanel23.Name = "kryptonPanel23";
+ this.kryptonPanel23.Size = new System.Drawing.Size(246, 7);
+ this.kryptonPanel23.TabIndex = 5;
+ //
+ // kryptonPanel39
+ //
+ this.kryptonPanel39.Controls.Add(this.kryptonWrapLabel19);
+ this.kryptonPanel39.Controls.Add(this.kbtn_Others);
+ this.kryptonPanel39.Controls.Add(this.knud_Others);
+ this.kryptonPanel39.Controls.Add(this.kbtn_Others_1);
+ this.kryptonPanel39.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel39.Location = new System.Drawing.Point(0, 25);
+ this.kryptonPanel39.Name = "kryptonPanel39";
+ this.kryptonPanel39.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel39.TabIndex = 3;
+ //
+ // kryptonWrapLabel19
+ //
+ this.kryptonWrapLabel19.AutoSize = false;
+ this.kryptonWrapLabel19.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel19.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel19.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel19.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel19.Name = "kryptonWrapLabel19";
+ this.kryptonWrapLabel19.Size = new System.Drawing.Size(136, 25);
+ this.kryptonWrapLabel19.StateCommon.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel19.Text = "其它污染";
+ this.kryptonWrapLabel19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kbtn_Others
+ //
+ this.kbtn_Others.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_Others.Location = new System.Drawing.Point(136, 0);
+ this.kbtn_Others.Name = "kbtn_Others";
+ this.kbtn_Others.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_Others.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_Others.TabIndex = 6;
+ this.kbtn_Others.Values.Text = "+1";
+ this.kbtn_Others.Click += new System.EventHandler(this.ktb_Other_Click);
+ //
+ // knud_Others
+ //
+ this.knud_Others.Dock = System.Windows.Forms.DockStyle.Right;
+ this.knud_Others.Enabled = false;
+ this.knud_Others.Location = new System.Drawing.Point(164, 0);
+ this.knud_Others.Maximum = new decimal(new int[] {
+ 200,
+ 0,
+ 0,
+ 0});
+ this.knud_Others.Name = "knud_Others";
+ this.knud_Others.ReadOnly = true;
+ this.knud_Others.Size = new System.Drawing.Size(54, 25);
+ this.knud_Others.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_Others.StateDisabled.Back.Color1 = System.Drawing.Color.White;
+ this.knud_Others.TabIndex = 3;
+ //
+ // kbtn_Others_1
+ //
+ this.kbtn_Others_1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_Others_1.Location = new System.Drawing.Point(218, 0);
+ this.kbtn_Others_1.Name = "kbtn_Others_1";
+ this.kbtn_Others_1.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_Others_1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_Others_1.TabIndex = 8;
+ this.kbtn_Others_1.Values.Text = "-1";
+ this.kbtn_Others_1.Click += new System.EventHandler(this.kbtn_Others_1_Click);
+ //
+ // kryptonPanel8
+ //
+ this.kryptonPanel8.Controls.Add(this.kryptonWrapLabel5);
+ this.kryptonPanel8.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel8.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel8.Name = "kryptonPanel8";
+ this.kryptonPanel8.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel8.TabIndex = 1;
+ //
+ // kryptonWrapLabel5
+ //
+ this.kryptonWrapLabel5.AutoSize = false;
+ this.kryptonWrapLabel5.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel5.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel5.Name = "kryptonWrapLabel5";
+ this.kryptonWrapLabel5.Size = new System.Drawing.Size(246, 25);
+ this.kryptonWrapLabel5.StateCommon.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel5.Text = "其它污染";
+ this.kryptonWrapLabel5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kryptonGroupBox3
+ //
+ this.kryptonGroupBox3.CaptionOverlap = 0D;
+ this.kryptonGroupBox3.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.kryptonGroupBox3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox3.Location = new System.Drawing.Point(515, 3);
+ this.kryptonGroupBox3.Name = "kryptonGroupBox3";
+ //
+ // kryptonGroupBox3.Panel
+ //
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kryptonPanel31);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kryptonPanel32);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kryptonPanel29);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kryptonPanel30);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kryptonPanel27);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kryptonPanel28);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kryptonPanel25);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kryptonPanel26);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kryptonPanel7);
+ this.kryptonGroupBox3.Size = new System.Drawing.Size(250, 263);
+ this.kryptonGroupBox3.TabIndex = 1;
+ this.kryptonGroupBox3.Values.Heading = "";
+ //
+ // kryptonPanel31
+ //
+ this.kryptonPanel31.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel31.Location = new System.Drawing.Point(0, 146);
+ this.kryptonPanel31.Name = "kryptonPanel31";
+ this.kryptonPanel31.Size = new System.Drawing.Size(246, 7);
+ this.kryptonPanel31.TabIndex = 10;
+ //
+ // kryptonPanel32
+ //
+ this.kryptonPanel32.Controls.Add(this.kryptonWrapLabel17);
+ this.kryptonPanel32.Controls.Add(this.kbtn_Mold);
+ this.kryptonPanel32.Controls.Add(this.knud_Mold);
+ this.kryptonPanel32.Controls.Add(this.kbtn_Mold_1);
+ this.kryptonPanel32.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel32.Location = new System.Drawing.Point(0, 121);
+ this.kryptonPanel32.Name = "kryptonPanel32";
+ this.kryptonPanel32.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel32.TabIndex = 9;
+ //
+ // kryptonWrapLabel17
+ //
+ this.kryptonWrapLabel17.AutoSize = false;
+ this.kryptonWrapLabel17.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel17.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel17.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel17.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel17.Name = "kryptonWrapLabel17";
+ this.kryptonWrapLabel17.Size = new System.Drawing.Size(136, 25);
+ this.kryptonWrapLabel17.StateCommon.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel17.Text = "霉菌";
+ this.kryptonWrapLabel17.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kbtn_Mold
+ //
+ this.kbtn_Mold.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_Mold.Location = new System.Drawing.Point(136, 0);
+ this.kbtn_Mold.Name = "kbtn_Mold";
+ this.kbtn_Mold.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_Mold.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_Mold.TabIndex = 6;
+ this.kbtn_Mold.Values.Text = "+1";
+ this.kbtn_Mold.Click += new System.EventHandler(this.ktb_GlassOrWoodShreds_Click);
+ //
+ // knud_Mold
+ //
+ this.knud_Mold.Dock = System.Windows.Forms.DockStyle.Right;
+ this.knud_Mold.Enabled = false;
+ this.knud_Mold.Location = new System.Drawing.Point(164, 0);
+ this.knud_Mold.Maximum = new decimal(new int[] {
+ 200,
+ 0,
+ 0,
+ 0});
+ this.knud_Mold.Name = "knud_Mold";
+ this.knud_Mold.ReadOnly = true;
+ this.knud_Mold.Size = new System.Drawing.Size(54, 25);
+ this.knud_Mold.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_Mold.StateDisabled.Back.Color1 = System.Drawing.Color.White;
+ this.knud_Mold.TabIndex = 3;
+ //
+ // kbtn_Mold_1
+ //
+ this.kbtn_Mold_1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_Mold_1.Location = new System.Drawing.Point(218, 0);
+ this.kbtn_Mold_1.Name = "kbtn_Mold_1";
+ this.kbtn_Mold_1.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_Mold_1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_Mold_1.TabIndex = 8;
+ this.kbtn_Mold_1.Values.Text = "-1";
+ this.kbtn_Mold_1.Click += new System.EventHandler(this.kbtn_GlassOrWoodShreds_1_Click);
+ //
+ // kryptonPanel29
+ //
+ this.kryptonPanel29.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel29.Location = new System.Drawing.Point(0, 114);
+ this.kryptonPanel29.Name = "kryptonPanel29";
+ this.kryptonPanel29.Size = new System.Drawing.Size(246, 7);
+ this.kryptonPanel29.TabIndex = 8;
+ //
+ // kryptonPanel30
+ //
+ this.kryptonPanel30.Controls.Add(this.kryptonWrapLabel16);
+ this.kryptonPanel30.Controls.Add(this.kbtn_OdorOrAtypicalSmell);
+ this.kryptonPanel30.Controls.Add(this.knud_OdorOrAtypicalSmell);
+ this.kryptonPanel30.Controls.Add(this.kbtn_OdorOrAtypicalSmell_1);
+ this.kryptonPanel30.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel30.Location = new System.Drawing.Point(0, 89);
+ this.kryptonPanel30.Name = "kryptonPanel30";
+ this.kryptonPanel30.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel30.TabIndex = 7;
+ //
+ // kryptonWrapLabel16
+ //
+ this.kryptonWrapLabel16.AutoSize = false;
+ this.kryptonWrapLabel16.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel16.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel16.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel16.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel16.Name = "kryptonWrapLabel16";
+ this.kryptonWrapLabel16.Size = new System.Drawing.Size(136, 25);
+ this.kryptonWrapLabel16.StateCommon.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel16.Text = "臭味或异味";
+ this.kryptonWrapLabel16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kbtn_OdorOrAtypicalSmell
+ //
+ this.kbtn_OdorOrAtypicalSmell.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_OdorOrAtypicalSmell.Location = new System.Drawing.Point(136, 0);
+ this.kbtn_OdorOrAtypicalSmell.Name = "kbtn_OdorOrAtypicalSmell";
+ this.kbtn_OdorOrAtypicalSmell.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_OdorOrAtypicalSmell.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_OdorOrAtypicalSmell.TabIndex = 6;
+ this.kbtn_OdorOrAtypicalSmell.Values.Text = "+1";
+ this.kbtn_OdorOrAtypicalSmell.Click += new System.EventHandler(this.ktb_GlassOrWoodShreds_Click);
+ //
+ // knud_OdorOrAtypicalSmell
+ //
+ this.knud_OdorOrAtypicalSmell.Dock = System.Windows.Forms.DockStyle.Right;
+ this.knud_OdorOrAtypicalSmell.Enabled = false;
+ this.knud_OdorOrAtypicalSmell.Location = new System.Drawing.Point(164, 0);
+ this.knud_OdorOrAtypicalSmell.Maximum = new decimal(new int[] {
+ 200,
+ 0,
+ 0,
+ 0});
+ this.knud_OdorOrAtypicalSmell.Name = "knud_OdorOrAtypicalSmell";
+ this.knud_OdorOrAtypicalSmell.ReadOnly = true;
+ this.knud_OdorOrAtypicalSmell.Size = new System.Drawing.Size(54, 25);
+ this.knud_OdorOrAtypicalSmell.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_OdorOrAtypicalSmell.StateDisabled.Back.Color1 = System.Drawing.Color.White;
+ this.knud_OdorOrAtypicalSmell.TabIndex = 3;
+ //
+ // kbtn_OdorOrAtypicalSmell_1
+ //
+ this.kbtn_OdorOrAtypicalSmell_1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_OdorOrAtypicalSmell_1.Location = new System.Drawing.Point(218, 0);
+ this.kbtn_OdorOrAtypicalSmell_1.Name = "kbtn_OdorOrAtypicalSmell_1";
+ this.kbtn_OdorOrAtypicalSmell_1.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_OdorOrAtypicalSmell_1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_OdorOrAtypicalSmell_1.TabIndex = 8;
+ this.kbtn_OdorOrAtypicalSmell_1.Values.Text = "-1";
+ this.kbtn_OdorOrAtypicalSmell_1.Click += new System.EventHandler(this.kbtn_GlassOrWoodShreds_1_Click);
+ //
+ // kryptonPanel27
+ //
+ this.kryptonPanel27.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel27.Location = new System.Drawing.Point(0, 82);
+ this.kryptonPanel27.Name = "kryptonPanel27";
+ this.kryptonPanel27.Size = new System.Drawing.Size(246, 7);
+ this.kryptonPanel27.TabIndex = 6;
+ //
+ // kryptonPanel28
+ //
+ this.kryptonPanel28.Controls.Add(this.kryptonWrapLabel15);
+ this.kryptonPanel28.Controls.Add(this.kbtn_FecesExcreta);
+ this.kryptonPanel28.Controls.Add(this.knud_FecesExcreta);
+ this.kryptonPanel28.Controls.Add(this.kbtn_FecesExcreta_1);
+ this.kryptonPanel28.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel28.Location = new System.Drawing.Point(0, 57);
+ this.kryptonPanel28.Name = "kryptonPanel28";
+ this.kryptonPanel28.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel28.TabIndex = 5;
+ //
+ // kryptonWrapLabel15
+ //
+ this.kryptonWrapLabel15.AutoSize = false;
+ this.kryptonWrapLabel15.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel15.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel15.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel15.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel15.Name = "kryptonWrapLabel15";
+ this.kryptonWrapLabel15.Size = new System.Drawing.Size(136, 25);
+ this.kryptonWrapLabel15.StateCommon.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel15.Text = "粪便、排泄物";
+ this.kryptonWrapLabel15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kbtn_FecesExcreta
+ //
+ this.kbtn_FecesExcreta.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_FecesExcreta.Location = new System.Drawing.Point(136, 0);
+ this.kbtn_FecesExcreta.Name = "kbtn_FecesExcreta";
+ this.kbtn_FecesExcreta.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_FecesExcreta.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_FecesExcreta.TabIndex = 6;
+ this.kbtn_FecesExcreta.Values.Text = "+1";
+ this.kbtn_FecesExcreta.Click += new System.EventHandler(this.ktb_GlassOrWoodShreds_Click);
+ //
+ // knud_FecesExcreta
+ //
+ this.knud_FecesExcreta.Dock = System.Windows.Forms.DockStyle.Right;
+ this.knud_FecesExcreta.Enabled = false;
+ this.knud_FecesExcreta.Location = new System.Drawing.Point(164, 0);
+ this.knud_FecesExcreta.Maximum = new decimal(new int[] {
+ 200,
+ 0,
+ 0,
+ 0});
+ this.knud_FecesExcreta.Name = "knud_FecesExcreta";
+ this.knud_FecesExcreta.ReadOnly = true;
+ this.knud_FecesExcreta.Size = new System.Drawing.Size(54, 25);
+ this.knud_FecesExcreta.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_FecesExcreta.StateDisabled.Back.Color1 = System.Drawing.Color.White;
+ this.knud_FecesExcreta.TabIndex = 3;
+ //
+ // kbtn_FecesExcreta_1
+ //
+ this.kbtn_FecesExcreta_1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_FecesExcreta_1.Location = new System.Drawing.Point(218, 0);
+ this.kbtn_FecesExcreta_1.Name = "kbtn_FecesExcreta_1";
+ this.kbtn_FecesExcreta_1.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_FecesExcreta_1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_FecesExcreta_1.TabIndex = 8;
+ this.kbtn_FecesExcreta_1.Values.Text = "-1";
+ this.kbtn_FecesExcreta_1.Click += new System.EventHandler(this.kbtn_GlassOrWoodShreds_1_Click);
+ //
+ // kryptonPanel25
+ //
+ this.kryptonPanel25.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel25.Location = new System.Drawing.Point(0, 50);
+ this.kryptonPanel25.Name = "kryptonPanel25";
+ this.kryptonPanel25.Size = new System.Drawing.Size(246, 7);
+ this.kryptonPanel25.TabIndex = 4;
+ //
+ // kryptonPanel26
+ //
+ this.kryptonPanel26.Controls.Add(this.kryptonWrapLabel14);
+ this.kryptonPanel26.Controls.Add(this.kbtn_MoistureOrWet);
+ this.kryptonPanel26.Controls.Add(this.knud_MoistureOrWet);
+ this.kryptonPanel26.Controls.Add(this.kbtn_MoistureOrWet_1);
+ this.kryptonPanel26.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel26.Location = new System.Drawing.Point(0, 25);
+ this.kryptonPanel26.Name = "kryptonPanel26";
+ this.kryptonPanel26.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel26.TabIndex = 3;
+ //
+ // kryptonWrapLabel14
+ //
+ this.kryptonWrapLabel14.AutoSize = false;
+ this.kryptonWrapLabel14.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel14.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel14.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel14.Name = "kryptonWrapLabel14";
+ this.kryptonWrapLabel14.Size = new System.Drawing.Size(136, 25);
+ this.kryptonWrapLabel14.StateCommon.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel14.Text = "有湿气或受潮";
+ this.kryptonWrapLabel14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // kbtn_MoistureOrWet
+ //
+ this.kbtn_MoistureOrWet.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_MoistureOrWet.Location = new System.Drawing.Point(136, 0);
+ this.kbtn_MoistureOrWet.Name = "kbtn_MoistureOrWet";
+ this.kbtn_MoistureOrWet.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_MoistureOrWet.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_MoistureOrWet.TabIndex = 6;
+ this.kbtn_MoistureOrWet.Values.Text = "+1";
+ this.kbtn_MoistureOrWet.Click += new System.EventHandler(this.ktb_GlassOrWoodShreds_Click);
+ //
+ // knud_MoistureOrWet
+ //
+ this.knud_MoistureOrWet.Dock = System.Windows.Forms.DockStyle.Right;
+ this.knud_MoistureOrWet.Enabled = false;
+ this.knud_MoistureOrWet.Location = new System.Drawing.Point(164, 0);
+ this.knud_MoistureOrWet.Maximum = new decimal(new int[] {
+ 200,
+ 0,
+ 0,
+ 0});
+ this.knud_MoistureOrWet.Name = "knud_MoistureOrWet";
+ this.knud_MoistureOrWet.ReadOnly = true;
+ this.knud_MoistureOrWet.Size = new System.Drawing.Size(54, 25);
+ this.knud_MoistureOrWet.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_MoistureOrWet.StateDisabled.Back.Color1 = System.Drawing.Color.White;
+ this.knud_MoistureOrWet.TabIndex = 3;
+ //
+ // kbtn_MoistureOrWet_1
+ //
+ this.kbtn_MoistureOrWet_1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kbtn_MoistureOrWet_1.Location = new System.Drawing.Point(218, 0);
+ this.kbtn_MoistureOrWet_1.Name = "kbtn_MoistureOrWet_1";
+ this.kbtn_MoistureOrWet_1.Size = new System.Drawing.Size(28, 25);
+ this.kbtn_MoistureOrWet_1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_MoistureOrWet_1.TabIndex = 8;
+ this.kbtn_MoistureOrWet_1.Values.Text = "-1";
+ this.kbtn_MoistureOrWet_1.Click += new System.EventHandler(this.kbtn_GlassOrWoodShreds_1_Click);
+ //
+ // kryptonPanel7
+ //
+ this.kryptonPanel7.Controls.Add(this.kryptonWrapLabel4);
+ this.kryptonPanel7.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel7.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel7.Name = "kryptonPanel7";
+ this.kryptonPanel7.Size = new System.Drawing.Size(246, 25);
+ this.kryptonPanel7.TabIndex = 1;
+ //
+ // kryptonWrapLabel4
+ //
+ this.kryptonWrapLabel4.AutoSize = false;
+ this.kryptonWrapLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonWrapLabel4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.kryptonWrapLabel4.Location = new System.Drawing.Point(0, 0);
+ this.kryptonWrapLabel4.Name = "kryptonWrapLabel4";
+ this.kryptonWrapLabel4.Size = new System.Drawing.Size(246, 25);
+ this.kryptonWrapLabel4.StateCommon.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonWrapLabel4.Text = "微生物污染";
+ this.kryptonWrapLabel4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // panMenu
+ //
+ this.panMenu.Controls.Add(this.btnParamater);
+ this.panMenu.Controls.Add(this.btnLogin);
+ this.panMenu.Controls.Add(this.btnBase);
+ this.panMenu.Controls.Add(this.btnWarningLog);
+ this.panMenu.Controls.Add(this.btnPrinter);
+ this.panMenu.Controls.Add(this.btnIR);
+ this.panMenu.Controls.Add(this.btnPLCConfig);
+ this.panMenu.Controls.Add(this.btnIO);
+ this.panMenu.Controls.Add(this.btnManual);
+ this.panMenu.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.panMenu.Location = new System.Drawing.Point(0, 613);
+ this.panMenu.Name = "panMenu";
+ this.panMenu.Size = new System.Drawing.Size(1024, 59);
+ this.panMenu.TabIndex = 7;
+ //
+ // btnParamater
+ //
+ this.btnParamater.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnParamater.AutoSize = true;
+ this.btnParamater.Location = new System.Drawing.Point(131, 6);
+ this.btnParamater.Name = "btnParamater";
+ this.btnParamater.OverrideDefault.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnParamater.OverrideDefault.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnParamater.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
+ this.btnParamater.Size = new System.Drawing.Size(124, 47);
+ this.btnParamater.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnParamater.StateNormal.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnParamater.StateNormal.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnParamater.StateNormal.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnParamater.StateNormal.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnParamater.StateNormal.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.btnParamater.StateNormal.Border.Rounding = 3;
+ this.btnParamater.StatePressed.Back.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(240)))));
+ this.btnParamater.StatePressed.Back.Color2 = System.Drawing.Color.RoyalBlue;
+ this.btnParamater.StatePressed.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnParamater.StatePressed.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnParamater.StatePressed.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.btnParamater.StatePressed.Border.Rounding = 3;
+ this.btnParamater.StateTracking.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnParamater.StateTracking.Back.Color2 = System.Drawing.Color.CornflowerBlue;
+ this.btnParamater.StateTracking.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnParamater.StateTracking.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnParamater.StateTracking.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.btnParamater.StateTracking.Border.Rounding = 3;
+ this.btnParamater.TabIndex = 20;
+ this.btnParamater.Tag = "frmParamater";
+ this.btnParamater.Values.Text = "参数配置";
+ this.btnParamater.Click += new System.EventHandler(this.btnParamater_Click);
+ //
+ // btnLogin
+ //
+ this.btnLogin.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnLogin.AutoSize = true;
+ this.btnLogin.Location = new System.Drawing.Point(870, 6);
+ this.btnLogin.Name = "btnLogin";
+ this.btnLogin.OverrideDefault.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnLogin.OverrideDefault.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnLogin.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
+ this.btnLogin.Size = new System.Drawing.Size(64, 47);
+ this.btnLogin.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnLogin.StateNormal.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnLogin.StateNormal.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnLogin.StateNormal.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnLogin.StateNormal.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnLogin.StateNormal.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.btnLogin.StateNormal.Border.Rounding = 3;
+ this.btnLogin.StatePressed.Back.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(240)))));
+ this.btnLogin.StatePressed.Back.Color2 = System.Drawing.Color.RoyalBlue;
+ this.btnLogin.StatePressed.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnLogin.StatePressed.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnLogin.StatePressed.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.btnLogin.StatePressed.Border.Rounding = 3;
+ this.btnLogin.StateTracking.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnLogin.StateTracking.Back.Color2 = System.Drawing.Color.CornflowerBlue;
+ this.btnLogin.StateTracking.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnLogin.StateTracking.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnLogin.StateTracking.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.btnLogin.StateTracking.Border.Rounding = 3;
+ this.btnLogin.TabIndex = 19;
+ this.btnLogin.Tag = "";
+ this.btnLogin.Values.Text = "注销登陆";
+ this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);
+ //
+ // btnBase
+ //
+ this.btnBase.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnBase.AutoSize = true;
+ this.btnBase.Location = new System.Drawing.Point(7, 6);
+ this.btnBase.Name = "btnBase";
+ this.btnBase.OverrideDefault.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnBase.OverrideDefault.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnBase.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
+ this.btnBase.Size = new System.Drawing.Size(116, 47);
+ this.btnBase.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnBase.StateNormal.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnBase.StateNormal.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnBase.StateNormal.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnBase.StateNormal.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnBase.StateNormal.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.btnBase.StateNormal.Border.Rounding = 3;
+ this.btnBase.StatePressed.Back.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(240)))));
+ this.btnBase.StatePressed.Back.Color2 = System.Drawing.Color.RoyalBlue;
+ this.btnBase.StatePressed.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnBase.StatePressed.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnBase.StatePressed.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.btnBase.StatePressed.Border.Rounding = 3;
+ this.btnBase.StateTracking.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnBase.StateTracking.Back.Color2 = System.Drawing.Color.CornflowerBlue;
+ this.btnBase.StateTracking.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnBase.StateTracking.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnBase.StateTracking.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.btnBase.StateTracking.Border.Rounding = 3;
+ this.btnBase.TabIndex = 18;
+ this.btnBase.Tag = "frmBase";
+ this.btnBase.Values.Text = "基础配置";
+ this.btnBase.Click += new System.EventHandler(this.btnBase_Click);
+ //
+ // btnWarningLog
+ //
+ this.btnWarningLog.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnWarningLog.AutoSize = true;
+ this.btnWarningLog.Location = new System.Drawing.Point(527, 6);
+ this.btnWarningLog.Name = "btnWarningLog";
+ this.btnWarningLog.OverrideDefault.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnWarningLog.OverrideDefault.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnWarningLog.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
+ this.btnWarningLog.Size = new System.Drawing.Size(68, 47);
+ this.btnWarningLog.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnWarningLog.StateNormal.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnWarningLog.StateNormal.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnWarningLog.StateNormal.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnWarningLog.StateNormal.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnWarningLog.StateNormal.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.btnWarningLog.StateNormal.Border.Rounding = 3;
+ this.btnWarningLog.StatePressed.Back.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(240)))));
+ this.btnWarningLog.StatePressed.Back.Color2 = System.Drawing.Color.RoyalBlue;
+ this.btnWarningLog.StatePressed.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnWarningLog.StatePressed.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnWarningLog.StatePressed.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.btnWarningLog.StatePressed.Border.Rounding = 3;
+ this.btnWarningLog.StateTracking.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnWarningLog.StateTracking.Back.Color2 = System.Drawing.Color.CornflowerBlue;
+ this.btnWarningLog.StateTracking.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnWarningLog.StateTracking.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnWarningLog.StateTracking.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.btnWarningLog.StateTracking.Border.Rounding = 3;
+ this.btnWarningLog.TabIndex = 17;
+ this.btnWarningLog.Tag = "frmPlcAlarmLog";
+ this.btnWarningLog.Values.Text = "报警情况";
+ this.btnWarningLog.Click += new System.EventHandler(this.btnWarningLog_Click);
+ //
+ // btnPrinter
+ //
+ this.btnPrinter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnPrinter.AutoSize = true;
+ this.btnPrinter.Location = new System.Drawing.Point(710, 6);
+ this.btnPrinter.Name = "btnPrinter";
+ this.btnPrinter.OverrideDefault.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnPrinter.OverrideDefault.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnPrinter.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
+ this.btnPrinter.Size = new System.Drawing.Size(154, 47);
+ this.btnPrinter.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnPrinter.StateNormal.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnPrinter.StateNormal.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnPrinter.StateNormal.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnPrinter.StateNormal.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnPrinter.StateNormal.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.btnPrinter.StateNormal.Border.Rounding = 3;
+ this.btnPrinter.StatePressed.Back.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(240)))));
+ this.btnPrinter.StatePressed.Back.Color2 = System.Drawing.Color.RoyalBlue;
+ this.btnPrinter.StatePressed.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnPrinter.StatePressed.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnPrinter.StatePressed.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.btnPrinter.StatePressed.Border.Rounding = 3;
+ this.btnPrinter.StateTracking.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnPrinter.StateTracking.Back.Color2 = System.Drawing.Color.CornflowerBlue;
+ this.btnPrinter.StateTracking.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnPrinter.StateTracking.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnPrinter.StateTracking.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.btnPrinter.StateTracking.Border.Rounding = 3;
+ this.btnPrinter.TabIndex = 16;
+ this.btnPrinter.Tag = "frmPrinterMain";
+ this.btnPrinter.Values.Text = "作业数据记录";
+ this.btnPrinter.Click += new System.EventHandler(this.btnPrinter_Click);
+ //
+ // btnIR
+ //
+ this.btnIR.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnIR.AutoSize = true;
+ this.btnIR.Location = new System.Drawing.Point(600, 6);
+ this.btnIR.Name = "btnIR";
+ this.btnIR.OverrideDefault.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnIR.OverrideDefault.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnIR.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
+ this.btnIR.Size = new System.Drawing.Size(105, 47);
+ this.btnIR.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnIR.StateNormal.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnIR.StateNormal.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnIR.StateNormal.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnIR.StateNormal.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnIR.StateNormal.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.btnIR.StateNormal.Border.Rounding = 3;
+ this.btnIR.StatePressed.Back.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(240)))));
+ this.btnIR.StatePressed.Back.Color2 = System.Drawing.Color.RoyalBlue;
+ this.btnIR.StatePressed.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnIR.StatePressed.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnIR.StatePressed.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.btnIR.StatePressed.Border.Rounding = 3;
+ this.btnIR.StateTracking.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnIR.StateTracking.Back.Color2 = System.Drawing.Color.CornflowerBlue;
+ this.btnIR.StateTracking.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnIR.StateTracking.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnIR.StateTracking.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.btnIR.StateTracking.Border.Rounding = 3;
+ this.btnIR.TabIndex = 13;
+ this.btnIR.Tag = "frmCurrWorkingIrMsg";
+ this.btnIR.Values.Text = "IR信息";
+ this.btnIR.Click += new System.EventHandler(this.btnIR_Click);
+ //
+ // btnPLCConfig
+ //
+ this.btnPLCConfig.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnPLCConfig.AutoSize = true;
+ this.btnPLCConfig.Location = new System.Drawing.Point(263, 6);
+ this.btnPLCConfig.Name = "btnPLCConfig";
+ this.btnPLCConfig.OverrideDefault.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnPLCConfig.OverrideDefault.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnPLCConfig.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
+ this.btnPLCConfig.Size = new System.Drawing.Size(120, 47);
+ this.btnPLCConfig.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnPLCConfig.StateNormal.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnPLCConfig.StateNormal.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnPLCConfig.StateNormal.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnPLCConfig.StateNormal.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnPLCConfig.StateNormal.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.btnPLCConfig.StateNormal.Border.Rounding = 3;
+ this.btnPLCConfig.StatePressed.Back.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(240)))));
+ this.btnPLCConfig.StatePressed.Back.Color2 = System.Drawing.Color.RoyalBlue;
+ this.btnPLCConfig.StatePressed.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnPLCConfig.StatePressed.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnPLCConfig.StatePressed.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.btnPLCConfig.StatePressed.Border.Rounding = 3;
+ this.btnPLCConfig.StateTracking.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnPLCConfig.StateTracking.Back.Color2 = System.Drawing.Color.CornflowerBlue;
+ this.btnPLCConfig.StateTracking.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnPLCConfig.StateTracking.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnPLCConfig.StateTracking.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.btnPLCConfig.StateTracking.Border.Rounding = 3;
+ this.btnPLCConfig.TabIndex = 12;
+ this.btnPLCConfig.Tag = "frmPlcItemConfig";
+ this.btnPLCConfig.Values.Text = "PLC变量配置";
+ this.btnPLCConfig.Click += new System.EventHandler(this.kryptonButton16_Click);
+ //
+ // btnIO
+ //
+ this.btnIO.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnIO.AutoSize = true;
+ this.btnIO.Location = new System.Drawing.Point(463, 6);
+ this.btnIO.Name = "btnIO";
+ this.btnIO.OverrideDefault.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnIO.OverrideDefault.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnIO.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
+ this.btnIO.Size = new System.Drawing.Size(60, 47);
+ this.btnIO.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnIO.StateNormal.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnIO.StateNormal.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnIO.StateNormal.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnIO.StateNormal.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnIO.StateNormal.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.btnIO.StateNormal.Border.Rounding = 3;
+ this.btnIO.StatePressed.Back.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(240)))));
+ this.btnIO.StatePressed.Back.Color2 = System.Drawing.Color.RoyalBlue;
+ this.btnIO.StatePressed.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnIO.StatePressed.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnIO.StatePressed.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.btnIO.StatePressed.Border.Rounding = 3;
+ this.btnIO.StateTracking.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnIO.StateTracking.Back.Color2 = System.Drawing.Color.CornflowerBlue;
+ this.btnIO.StateTracking.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnIO.StateTracking.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnIO.StateTracking.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.btnIO.StateTracking.Border.Rounding = 3;
+ this.btnIO.TabIndex = 12;
+ this.btnIO.Tag = "frmIOMonitor";
+ this.btnIO.Values.Text = "I/O点位";
+ this.btnIO.Click += new System.EventHandler(this.btnIO_Click);
+ //
+ // btnManual
+ //
+ this.btnManual.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnManual.AutoSize = true;
+ this.btnManual.Location = new System.Drawing.Point(387, 6);
+ this.btnManual.Name = "btnManual";
+ this.btnManual.OverrideDefault.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnManual.OverrideDefault.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnManual.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
+ this.btnManual.Size = new System.Drawing.Size(71, 47);
+ this.btnManual.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnManual.StateNormal.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnManual.StateNormal.Back.Color2 = System.Drawing.Color.LightSteelBlue;
+ this.btnManual.StateNormal.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnManual.StateNormal.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnManual.StateNormal.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.btnManual.StateNormal.Border.Rounding = 3;
+ this.btnManual.StatePressed.Back.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(240)))));
+ this.btnManual.StatePressed.Back.Color2 = System.Drawing.Color.RoyalBlue;
+ this.btnManual.StatePressed.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnManual.StatePressed.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnManual.StatePressed.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.btnManual.StatePressed.Border.Rounding = 3;
+ this.btnManual.StateTracking.Back.Color1 = System.Drawing.Color.WhiteSmoke;
+ this.btnManual.StateTracking.Back.Color2 = System.Drawing.Color.CornflowerBlue;
+ this.btnManual.StateTracking.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.HalfCut;
+ this.btnManual.StateTracking.Border.Color1 = System.Drawing.Color.CornflowerBlue;
+ this.btnManual.StateTracking.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.btnManual.StateTracking.Border.Rounding = 3;
+ this.btnManual.TabIndex = 11;
+ this.btnManual.Tag = "frmManual";
+ this.btnManual.Values.Text = "手动控制";
+ this.btnManual.Click += new System.EventHandler(this.btnManual_Click);
+ //
+ // frmMainDetail
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.kryptonPanel3);
+ this.Name = "frmMainDetail";
+ this.Size = new System.Drawing.Size(1024, 672);
+ this.Load += new System.EventHandler(this.frmMainDetail_Load);
+ this.Resize += new System.EventHandler(this.frmMainDetail_Resize);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox8.Panel)).EndInit();
+ this.kryptonGroupBox8.Panel.ResumeLayout(false);
+ this.kryptonGroupBox8.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox8)).EndInit();
+ this.kryptonGroupBox8.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox9.Panel)).EndInit();
+ this.kryptonGroupBox9.Panel.ResumeLayout(false);
+ this.kryptonGroupBox9.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox9)).EndInit();
+ this.kryptonGroupBox9.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox7.Panel)).EndInit();
+ this.kryptonGroupBox7.Panel.ResumeLayout(false);
+ this.kryptonGroupBox7.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox7)).EndInit();
+ this.kryptonGroupBox7.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ this.kryptonGroupBox1.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_SheetType)).EndInit();
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox5.Panel)).EndInit();
+ this.kryptonGroupBox5.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox5)).EndInit();
+ this.kryptonGroupBox5.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dwqeqw)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel24)).EndInit();
+ this.kryptonPanel24.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel21)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel22)).EndInit();
+ this.kryptonPanel22.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel19)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel20)).EndInit();
+ this.kryptonPanel20.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel17)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel18)).EndInit();
+ this.kryptonPanel18.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel6)).EndInit();
+ this.kryptonPanel6.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).EndInit();
+ this.kryptonPanel3.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel4)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel33)).EndInit();
+ this.kryptonPanel33.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel15)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel16)).EndInit();
+ this.kryptonPanel16.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel13)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel14)).EndInit();
+ this.kryptonPanel14.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel11)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel12)).EndInit();
+ this.kryptonPanel12.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel10)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel9)).EndInit();
+ this.kryptonPanel9.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel5)).EndInit();
+ this.kryptonPanel5.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4.Panel)).EndInit();
+ this.kryptonGroupBox4.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4)).EndInit();
+ this.kryptonGroupBox4.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel23)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel39)).EndInit();
+ this.kryptonPanel39.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel8)).EndInit();
+ this.kryptonPanel8.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3.Panel)).EndInit();
+ this.kryptonGroupBox3.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3)).EndInit();
+ this.kryptonGroupBox3.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel31)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel32)).EndInit();
+ this.kryptonPanel32.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel29)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel30)).EndInit();
+ this.kryptonPanel30.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel27)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel28)).EndInit();
+ this.kryptonPanel28.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel25)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel26)).EndInit();
+ this.kryptonPanel26.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel7)).EndInit();
+ this.kryptonPanel7.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.panMenu)).EndInit();
+ this.panMenu.ResumeLayout(false);
+ this.panMenu.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private LSwitchButton swtbtn_fullPalletMod;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox8;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton7;
+ private System.Windows.Forms.Label label9_SE;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_forceFinish;
+ private System.Windows.Forms.Label label4_SD;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton6;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox9;
+ private System.Windows.Forms.Label label6_SB;
+ private System.Windows.Forms.Label label3_SA;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton5;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton4;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton3;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox7;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel12;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel11;
+ private CircleButton cbt_fpalletmod;
+ private CircleButton cbt_staticbar;
+ private LSwitchButton swtbtn_staticBar;
+ private System.Windows.Forms.Label label2;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel6;
+ private System.Windows.Forms.Label label1;
+ private LSwitchButton swtbtn_nozzle1;
+ private CircleButton cbt_RunStatusTran;
+ private CircleButton cbt_NozzleStatusTran;
+ private CircleButton cbt_ResetSys;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel7;
+ private CircleButton cbt_StopTran;
+ private LSwitchButton swtbtn_brush3;
+ private CircleButton cbt_StartTran;
+ private CircleButton cbt_Brush3StatusTran;
+ private LSwitchButton swtbtn_brush1;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel8;
+ private CircleButton cbt_Brush1StatusTran;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel9;
+ private LSwitchButton swtbtn_brush2;
+ private CircleButton cbt_Brush2StatusTran;
+ private Microsoft.VisualBasic.PowerPacks.ShapeContainer shapeContainer1;
+ private Microsoft.VisualBasic.PowerPacks.LineShape lineShape1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_SheetType;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Scrap_1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Scrap;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_Scrap;
+ private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_RecordDate;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Panel panel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_CurrPalletCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel10;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_ScrapNum;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_CompleteNum;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
+ private System.Windows.Forms.Label label7;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton ktb_SaveIR;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_IR;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox5;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel dwqeqw;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel24;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel13;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Adhesives;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_Adhesives;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Adhesives_1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel21;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel22;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel12;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Solvents;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_Solvents;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Solvents_1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel19;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel20;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel11;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_StrongOdor;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_StrongOdor;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_StrongOdor_1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel17;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel18;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel10;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_OilOrGreaseOrPaint;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_OilOrGreaseOrPaint;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_OilOrGreaseOrPaint_1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel6;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel3;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel3;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel4;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel33;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel21;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_TapeOrStickers;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_TapeOrStickers;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_TapeOrStickers_1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel15;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel16;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel9;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_RodentsInsocts;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_RodentsInsocts;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_RodentsInsocts_1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel13;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel14;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel8;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_DirtMudGrass;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_DirtMudGrass;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_DirtMudGrass_1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel11;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel12;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel7;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_MetalShaving;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_MetalShaving;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_MetalShaving_1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel10;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel9;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel6;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_GlassOrWoodShreds;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_GlassOrWoodShreds;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_GlassOrWoodShreds_1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel5;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox4;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel23;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel39;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel19;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Others;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_Others;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Others_1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel8;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel5;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox3;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel31;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel32;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel17;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Mold;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_Mold;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Mold_1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel29;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel30;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel16;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_OdorOrAtypicalSmell;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_OdorOrAtypicalSmell;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_OdorOrAtypicalSmell_1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel27;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel28;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel15;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_FecesExcreta;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_FecesExcreta;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_FecesExcreta_1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel25;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel26;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel14;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_MoistureOrWet;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_MoistureOrWet;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_MoistureOrWet_1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel7;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel4;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel panMenu;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnParamater;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnLogin;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnBase;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnWarningLog;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnPrinter;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnIR;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnPLCConfig;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnIO;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnManual;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel13;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_WorkedFullPalletNum;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_FinishedPalletNum;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_CurrentPalletNum;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel15;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel14;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_WorkedFullPalletNum;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton2;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmMainDetail.cs b/CleanMachineHMI/FrmUserControl/frmMainDetail.cs
new file mode 100644
index 0000000..9af040f
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmMainDetail.cs
@@ -0,0 +1,3428 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using FastReport;
+using LeadDataBaseUtility;
+using NX_LogUtility;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Web.UI.WebControls;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ [FormType(EnumFormType.MainDetail)]
+ public partial class frmMainDetail : UserControl
+ {
+ public frmMainDetail()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ ///
+ /// 页面信息语言文本列表
+ ///
+ private readonly DataTable _InfoLanguageTextList;
+ private List basCleanTypeMsgList = new List();
+ ///
+ /// 模板地址
+ ///
+ private string _reportFolder = Application.StartupPath + "\\ReportMd\\";
+ public delegate void dlgCleanCurrentWorkingData();
+ public static dlgCleanCurrentWorkingData RefreshCurrentWorkingDataFrmHost;
+
+ private int _lastPaltteRemain = 0;
+ private object lockobj = new object();
+
+ ///
+ /// 上个IR在当前托盘上的残余
+ ///
+ private int lastPaltteRemain
+ {
+ get { return this._lastPaltteRemain; }
+ set
+ {
+ lock (lockobj)
+ {
+ this._lastPaltteRemain = value;
+ }
+ string LastPattleNumSql = $"update CM_LastPattleNum set value={value} where key='LastPattleNum'";
+ LeadDbHelperSQLite.ExecuteSql(LastPattleNumSql);
+
+ }
+
+ }
+
+
+
+ //private void InitControl()
+ //{
+ // var menuControl = panMenu.Controls;
+ // var menuButCount = panMenu.Controls.Count;
+ // var menuButWeight = 170;
+ // var intervalCount = menuControl.Count + 1;
+ // var intervalWeight = (this.Width - menuButWeight * menuButCount) / intervalCount;
+ // //菜单
+ // for (int i = 0; i < menuControl.Count; i++)
+ // {
+ // menuControl[i].Left = intervalWeight * (i + 1) + menuButWeight * i;
+ // menuControl[i].Width = menuButWeight;
+ // (menuControl[i] as KryptonButton).StateCommon.Content.ShortText.Font = new Font("微软雅黑", 10, FontStyle.Regular);
+ // }
+
+ //}
+
+ private void frmMainDetail_Resize(object sender, EventArgs e)
+ {
+ //InitControl();
+ }
+
+ private void btnWarningLog_Click(object sender, EventArgs e)
+ {
+ //GlobalHelper.MainForm.navigatorMain.SetNavPage(Domain.Enums.EnumFormType.PlcAlarmLog);
+ frmMainNew.SwitchFrmMenu(EnumFormType.PlcAlarmLog, false);
+ frmPlcAlarmLog.RefreshFrmHost(false);
+ }
+
+ private void btnLogin_Click(object sender, EventArgs e)
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】注销登录!", LogTypeEum.Run);
+ GlobalHelper.LoginForm.Show();
+ //GlobalHelper.MainForm.Hide();
+ GlobalHelper.MainFormNew.Hide();
+
+ }
+
+ private void kryptonButton16_Click(object sender, EventArgs e)
+ {
+ //GlobalHelper.MainForm.navigatorMain.SetNavPage(Domain.Enums.EnumFormType.PlcItemConfig);
+ frmMainNew.SwitchFrmMenu(EnumFormType.PlcItemConfig, false);
+ }
+
+ private void btnBase_Click(object sender, EventArgs e)
+ {
+ //GlobalHelper.MainForm.navigatorMain.SetNavPage(Domain.Enums.EnumFormType.Base);
+ frmMainNew.SwitchFrmMenu(EnumFormType.Base, false);
+ }
+
+ private void frmMainDetail_Load(object sender, EventArgs e)
+ {
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ try
+ {
+ InitControlEvent();
+ kdtp_RecordDate.Checked = false;
+ string sqlQueryCleanType = $@"
+ SELECT
+ A.CLEAN_MODE_CODE,
+ A.CLEAN_MODE_NAME,
+ B.CONTAMINATION_TYPE_CODE,
+ B.CONTAMINATION_TYPE_NAME,
+ C.CONTAMINATION_DTL_CODE,
+ C.CONTAMINATION_DTL_NAME
+ FROM
+ BAS_CLEAN_MODE A
+ LEFT JOIN BAS_CONTAMINATION_TYPE B ON A.CLEAN_MODE_CODE = B.CLEAN_MODE_CODE
+ LEFT JOIN BAS_CONTAMINATION_DTL C ON B.CONTAMINATION_TYPE_CODE = C.CONTAMINATION_TYPE_CODE
+ ";
+ DataTable dtQueryCleanType = LeadDbHelperSQLite.Query(sqlQueryCleanType).Tables[0];
+ if (dtQueryCleanType != null && dtQueryCleanType.Rows.Count > 0)
+ {
+ foreach (DataRow item in dtQueryCleanType.Rows)
+ {
+ string cleanTypeCode = item["CLEAN_MODE_CODE"].ToString();
+ string cleanTypeName = item["CLEAN_MODE_NAME"].ToString();
+ string contaminationTypeCode = item["CONTAMINATION_TYPE_CODE"] == null ? "" : item["CONTAMINATION_TYPE_CODE"].ToString();
+ string contaminationTypeName = item["CONTAMINATION_TYPE_NAME"] == null ? "" : item["CONTAMINATION_TYPE_NAME"].ToString();
+ string contaminationDtlCode = item["CONTAMINATION_DTL_CODE"] == null ? "" : item["CONTAMINATION_DTL_CODE"].ToString();
+ string contaminationDtlName = item["CONTAMINATION_DTL_NAME"] == null ? "" : item["CONTAMINATION_DTL_NAME"].ToString();
+ basCleanTypeMsgList.Add(new BasCleanTypeMsg
+ {
+ CLEAN_MODE_CODE = cleanTypeCode,
+ CLEAN_MODE_NAME = cleanTypeName,
+ CONTAMINATION_TYPE_CODE = contaminationTypeCode,
+ CONTAMINATION_TYPE_NAME = contaminationTypeName,
+ CONTAMINATION_DTL_CODE = contaminationDtlCode,
+ CONTAMINATION_DTL_NAME = contaminationDtlName,
+ });
+ }
+ }
+
+ string sqlQuerySheetType = $@"SELECT SHEET_TYPE_CODE,SHEET_TYPE_NAME FROM BAS_SHEET_TYPE WHERE USED_FLAG = 1 and DEL_FLAG = 0 ORDER BY SHEET_TYPE_ID";
+ DataTable dtQuerySheetType = LeadDbHelperSQLite.Query(sqlQuerySheetType).Tables[0];
+ if (dtQuerySheetType != null && dtQuerySheetType.Rows.Count > 0)
+ {
+ kcmb_SheetType.Items.Clear();
+ foreach (DataRow item in dtQuerySheetType.Rows)
+ {
+ kcmb_SheetType.Items.Add(new ListItem
+ {
+ Value = item["SHEET_TYPE_CODE"].ToString(),
+ Text = item["SHEET_TYPE_NAME"].ToString(),
+ });
+ }
+ kcmb_SheetType.SelectedIndex = 0;
+ }
+ //加载当前工作信息
+ LoadCurrentWorkingTray();
+ Thread th1 = new Thread(MainDtlRunTh)
+ {
+ IsBackground = true
+ };
+ th1.Start();
+
+ foreach (Control item in panMenu.Controls)
+ {
+ if (item.Tag != null && item.Tag.ToString() != "")
+ {
+ if (GlobalHelper.RoleMenuPermission != null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Tag.ToString()}' AND MENU_PID = '-1'");
+ if (drs.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ }
+
+ new EnvironmentSettings().ReportSettings.ShowProgress = false;
+ //毛刷1运行状态
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("Hairbrush1Selection", PlcItemTypeDesc.M)))
+ {
+ swtbtn_brush1.L_IsOpen = true;
+ }
+ else
+ {
+ swtbtn_brush1.L_IsOpen = false;
+ }
+ //毛刷2启用状态
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("Hairbrush2Selection", PlcItemTypeDesc.M)))
+ {
+ swtbtn_brush2.L_IsOpen = true;
+ }
+ else
+ {
+ swtbtn_brush2.L_IsOpen = false;
+ }
+ //毛刷3启用状态
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("Hairbrush3Selection", PlcItemTypeDesc.M)))
+ {
+ swtbtn_brush3.L_IsOpen = true;
+ }
+ else
+ {
+ swtbtn_brush3.L_IsOpen = false;
+ }
+ //喷头选择状态
+ //if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("NozzleSelection", PlcItemTypeDesc.M)))
+ //{
+ // swtbtn_nozzle1.L_IsOpen = true;
+ //}
+ //else
+ //{
+ // swtbtn_nozzle1.L_IsOpen = false;
+ //}
+
+ //静电棒选择状态
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("StaticbarsSel", PlcItemTypeDesc.M)))
+ {
+ swtbtn_staticBar.L_IsOpen = true;
+ }
+ else
+ {
+ swtbtn_staticBar.L_IsOpen = false;
+ }
+
+ //计数方式选择状态
+ //if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FullPalletMode", PlcItemTypeDesc.M)))
+ //{
+ // swtbtn_fullPalletMod.L_IsOpen = true;
+ // if (GlobalHelper.LanguageCode == "English")
+ // {
+ // kryptonLabel12.Text = "Delay Full";
+ // }
+ // else
+ // {
+ // kryptonLabel12.Text = "延时满料";
+ // }
+ //}
+ //else
+ //{
+ // swtbtn_fullPalletMod.L_IsOpen = false;
+ // if (GlobalHelper.LanguageCode == "English")
+ // {
+ // kryptonLabel12.Text = "Count Full";
+ // }
+ // else
+ // {
+ // kryptonLabel12.Text = "计数满料";
+ // }
+ //}
+ knud_WorkedFullPalletNum.Text = PlcOperationHelper.Instance.ReadPlcItem("WorkedFullPalletNum", PlcItemTypeDesc.D).ToString();
+ RefreshCurrentWorkingDataFrmHost = new dlgCleanCurrentWorkingData(cleanCurrentworkingData);
+ kryptonGroupBox1.Focus();
+ GlobalHelper.OnSyncFinishPalletData += SyncFinishPalletData;
+ //if (isOk)
+ //{
+ // kryptonButton2.StateCommon.Back.Color1 = Color.Lime;
+ // kryptonButton2.Text = "停止运行";
+ //}
+ //else
+ //{
+ // kryptonButton2.StateCommon.Back.Color1 = Color.Red;
+ // kryptonButton2.Text = "运行";
+ //}
+
+
+
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("主业务界面加载发生异常", "LoadMainDetailFrmExp") + $":【{ex.Message}】!");
+ LogHelper.WriteLog($"1111【{ex.Message}】", LogTypeEum.Err);
+ }
+ }
+ private void SyncFinishPalletData(object sender, EventArgs e)
+ {
+ Invoke(new Action(() =>
+ {
+ string text = sender as string;
+ knud_WorkedFullPalletNum.Text = text;
+ }));
+ }
+ private void cleanCurrentworkingData()
+ {
+ Invoke(new Action(() =>
+ {
+ //批次信息按钮可操作
+ ktb_SaveIR.Enabled = true;
+ kcmb_SheetType.Enabled = true;
+ ktb_IR.Enabled = true;
+ kdtp_RecordDate.Enabled = true;
+
+ //污染类型操作禁用
+ //kryptonGroupBox10.Enabled = false;
+ kryptonGroupBox2.Enabled = false;
+ kryptonGroupBox3.Enabled = false;
+ kryptonGroupBox4.Enabled = false;
+ kryptonGroupBox5.Enabled = false;
+
+ //清空历史批次信息
+ kcmb_SheetType.SelectedIndex = 0;
+ ktb_IR.Text = "";
+ kdtp_RecordDate.Text = "";
+ kdtp_RecordDate.Checked = false;
+
+ ktb_CompleteNum.Text = "0";
+ ktb_ScrapNum.Text = "0";
+ }));
+
+ //清空当前内存污染计数
+ foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
+ {
+ if (string.IsNullOrEmpty(item.CONTAMINATION_DTL_CODE))
+ {//常规清洗 清零(其他污染)
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("knud_" + item.CLEAN_MODE_CODE, true).Length > 0)
+ {
+ KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + item.CLEAN_MODE_CODE, true)[0] as KryptonNumericUpDown;
+ knudmd.Value = 0;
+ }
+ }));
+ }
+ else
+ {//特殊清洗 清零
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("knud_" + item.CONTAMINATION_DTL_CODE, true).Length > 0)
+ {
+ KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + item.CONTAMINATION_DTL_CODE, true)[0] as KryptonNumericUpDown;
+ knudmd.Value = 0;
+ }
+ }));
+ }
+ }
+ }
+ ///
+ /// 加载当前工作信息
+ ///
+ private void LoadCurrentWorkingTray()
+ {
+ try
+ {
+ string sql = $@"SELECT B.* FROM CM_WORKING_PALLET A LEFT JOIN CM_WORKING_PALLET_DTL B ON A.WORKING_PALLET_CODE = B.WORKING_PALLET_CODE Where B.WORKING_DTL_STATUS = 0 ORDER BY B.UPDATE_TIME DESC";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ string sheetType = dt.Rows[0]["SHEET_TYPE_CODE"].ToString();
+ string IrCode = dt.Rows[0]["IR_CODE"].ToString();
+ DateTime InputTime = Convert.ToDateTime(dt.Rows[0]["INPUT_TIME"]);
+ foreach (DataRow item in dt.Rows)
+ {
+ if (!string.IsNullOrEmpty(item["CONTAMINATION_DTL_CODE"].ToString()))
+ {
+ string controlCode = item["CONTAMINATION_DTL_CODE"].ToString();
+ decimal num = Convert.ToDecimal(item["CURRENT_NUMBER"].ToString());
+ Control[] cons = this.Controls.Find("knud_" + controlCode, true);
+ if (cons.Length > 0)
+ {
+ KryptonNumericUpDown knudmd = cons[0] as KryptonNumericUpDown;
+ knudmd.Value = num;
+ }
+ }
+ else
+ {
+ string controlCode = item["CLEAN_MODE_CODE"].ToString();
+ decimal num = Convert.ToDecimal(item["CURRENT_NUMBER"].ToString());
+ Control[] cons = this.Controls.Find("knud_" + controlCode, true);
+ if (cons.Length > 0)
+ {
+ KryptonNumericUpDown knudmd = cons[0] as KryptonNumericUpDown;
+ knudmd.Value = num;
+ }
+ }
+ }
+
+ kcmb_SheetType.Text = sheetType;
+ ktb_IR.Text = IrCode;
+ kdtp_RecordDate.Value = InputTime;
+
+ kdtp_RecordDate.Checked = true;
+ kcmb_SheetType.Enabled = false;
+ ktb_IR.Enabled = false;
+ kdtp_RecordDate.Enabled = false;
+ ktb_SaveIR.Enabled = false;
+
+ //kryptonGroupBox10.Enabled = true;
+ kryptonGroupBox2.Enabled = true;
+ kryptonGroupBox3.Enabled = true;
+ kryptonGroupBox4.Enabled = true;
+ kryptonGroupBox5.Enabled = true;
+ kbtn_Scrap.Enabled = true;
+ kbtn_Scrap_1.Enabled = true;
+ kbtn_forceFinish.Enabled = true;
+ }
+ else
+ {
+
+
+ //kryptonGroupBox10.Enabled = false;
+ kryptonGroupBox2.Enabled = false;
+ kryptonGroupBox3.Enabled = false;
+ kryptonGroupBox4.Enabled = false;
+ kryptonGroupBox5.Enabled = false;
+ kbtn_Scrap.Enabled = false;
+ kbtn_Scrap_1.Enabled = false;
+ kbtn_forceFinish.Enabled = false;
+
+ //如果
+ string LastPattleNumSql = "Select value from CM_LastPattleNum where key='LastPattleNum'";
+
+
+ int _RemainPallte = Convert.ToInt32(LeadDbHelperSQLite.GetSingle(LastPattleNumSql));
+ //读取PLC 当前计数值
+ int currNum = Convert.ToInt32(PlcOperationHelper.Instance.ReadPlcItem("NozzleNum", PlcItemTypeDesc.D));
+ if (currNum > 0)
+ {
+
+ //var result = KryptonMessageBox.Show("当前托盘已经有上个IR的物料是否继续", "", MessageBoxButtons.YesNo);
+ //if (result == DialogResult.Yes) //在当前托盘继续
+ //{
+ this.lastPaltteRemain = currNum;
+ //}
+ //else if (result == DialogResult.No) //更换托盘
+ //{
+ // this.lastPaltteRemain = 0;
+
+ // if (!PlcOperationHelper.Instance.isConn)
+ // {
+ // KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ // return;
+ // }
+ // if (PlcOperationHelper.Instance.WritePlcItem("NozzleNum", "0", PlcItemTypeDesc.D))
+ // {
+ // LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC计数清零信号成功!操作模式:【手动】", LogTypeEum.Run);
+ // }
+ //}
+ //else //
+ //{
+ // this._lastPaltteRemain = 0;
+ //}
+ }
+ else
+ {
+ this._lastPaltteRemain = 0;
+ }
+ }
+
+
+
+ }
+ catch (Exception err)
+ {
+
+ }
+ }
+
+ ///
+ /// 满料检查,并打印处理
+ ///
+ private void FinishWorkingPallet()
+ {
+ try
+ {
+ //满料标识
+ bool isFinishWorkingPallet = Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FinishWorkingPallet", PlcItemTypeDesc.M));
+ //ToDo: 根据满料的方式,增加相应的满料判断代码
+ bool fullPalletMode = Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FullPalletMode", PlcItemTypeDesc.M));
+
+ int countFullNum = Convert.ToInt32(PlcOperationHelper.Instance.ReadPlcItem("WorkedFullPalletNum", PlcItemTypeDesc.D));
+ //是否强制满料
+ bool isForceFullPallet = Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ForceFullPallet", PlcItemTypeDesc.M));
+
+ string sql_CurrPalletmsg = $@"SELECT * FROM CM_WORKING_PALLET WHERE WORKING_STATUS = 0";
+ DataTable dt_CurrPalletmsg = LeadDbHelperSQLite.Query(sql_CurrPalletmsg).Tables[0];
+
+ if (fullPalletMode)// 延时满料
+ {
+ //if (dt_CurrPalletmsg != null && dt_CurrPalletmsg.Rows.Count > 0 && isFinishWorkingPallet)
+ //{
+ // string palletCodeMsg = dt_CurrPalletmsg.Rows[0]["WORKING_PALLET_CODE"].ToString();
+ // LogHelper.WriteLog($"作业托盘:【{palletCodeMsg}】,开始处理延时满料业务。", LogTypeEum.Run);
+ // string sqlWorkingIrMsg = $@"SELECT DISTINCT IR_CODE FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = '{palletCodeMsg}'";
+
+ // DataTable dt_workingIrMsg = LeadDbHelperSQLite.Query(sqlWorkingIrMsg).Tables[0];
+ // if (dt_workingIrMsg != null && dt_workingIrMsg.Rows.Count > 0)
+ // {
+ // PrintPalletData(dt_workingIrMsg, palletCodeMsg);
+ // LogHelper.WriteLog($"作业托盘:【{palletCodeMsg}】,延时满料业务处理完成,数据打印完成。", LogTypeEum.Run);
+ // }
+ //}
+ }
+ else //计数满料
+ {
+ if (dt_CurrPalletmsg != null && dt_CurrPalletmsg.Rows.Count > 0)
+ {
+ string palletCodeMsg = dt_CurrPalletmsg.Rows[0]["WORKING_PALLET_CODE"].ToString();
+ string sqlCurrNumMsg = $@"SELECT SUM(CURRENT_NUMBER) FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = '{palletCodeMsg}' and CLEAN_MODE_CODE = 'SortedCleaned'";
+ DataTable dt_CurrNumMsg = LeadDbHelperSQLite.Query(sqlCurrNumMsg).Tables[0];
+ if (dt_CurrNumMsg != null && dt_CurrNumMsg.Rows.Count > 0)
+ {
+ //这个值只包含托盘在这个IR下个数量
+ int currentNum = Convert.ToInt32(dt_CurrNumMsg.Rows[0][0]);
+
+ currentNum += this.lastPaltteRemain;
+
+ string sqlWorkingIrMsg = $@"SELECT DISTINCT IR_CODE FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = '{palletCodeMsg}'";
+ DataTable dt_workingIrMsg = LeadDbHelperSQLite.Query(sqlWorkingIrMsg).Tables[0];
+ if (currentNum >= countFullNum && isFinishWorkingPallet && countFullNum > 0) //正常满料
+ {
+ LogHelper.WriteLog($"作业托盘:【{palletCodeMsg}】,开始处理计数满料业务。满料方式:【正常满料】", LogTypeEum.Run);
+ if (dt_workingIrMsg != null && dt_workingIrMsg.Rows.Count > 0)
+ PrintPalletData(dt_workingIrMsg.Rows[0][0].ToString(), palletCodeMsg, false);
+ LogHelper.WriteLog($"作业托盘:【{palletCodeMsg}】,计数满料业务正常处理完成,数据打印完成。", LogTypeEum.Run);
+
+ }
+ else if (currentNum < countFullNum && isFinishWorkingPallet && isForceFullPallet && countFullNum > 0)//强制满料
+ {
+ LogHelper.WriteLog($"作业托盘:【{palletCodeMsg}】,开始处理计数满料业务。满料方式:【强制满料】", LogTypeEum.Run);
+ if (dt_workingIrMsg != null && dt_workingIrMsg.Rows.Count > 0)
+ PrintPalletData(dt_workingIrMsg.Rows[0][0].ToString(), palletCodeMsg, true);
+ LogHelper.WriteLog($"作业托盘:【{palletCodeMsg}】,计数满料业务强制处理完成,数据打印完成。", LogTypeEum.Run);
+
+ }
+ }
+ }
+ }
+
+ if (!isFinishWorkingPallet)
+ {
+
+ string sql = $@"select * from CM_WORKING_PALLET where WORKING_STATUS = '-1'";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ string sql1 = $@"Update CM_WORKING_PALLET set WORKING_STATUS = 0 where WORKING_STATUS = '-1'";
+ string sql2 = $@"Update CM_WORKING_PALLET_DTL set WORKING_DTL_STATUS = 0 where WORKING_DTL_STATUS = '-1'";
+ LeadDbHelperSQLite.ExecuteSql(sql1);
+ LeadDbHelperSQLite.ExecuteSql(sql2);
+ Invoke(new Action(() =>
+ {
+ //污染类型操作禁用
+ //kryptonGroupBox10.Enabled = false;
+ kryptonGroupBox2.Enabled = true;
+ kryptonGroupBox3.Enabled = true;
+ kryptonGroupBox4.Enabled = true;
+ kryptonGroupBox5.Enabled = true;
+ kbtn_Scrap.Enabled = true;
+ kbtn_Scrap_1.Enabled = true;
+ kbtn_forceFinish.Enabled = true;
+
+ }));
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~托盘结束发生异常!【{ex.Message}】。~~~~~~~~~~~~~~", LogTypeEum.Run);
+ }
+ }
+
+ ///
+ /// 虚拟下盘
+ ///
+ ///
+ ///
+ private void SubPrintPalletData(string workingIRMsg, string PallerCodeMsg)
+ {
+
+ //结束当前托盘
+ string sqlUpdateWorkingPallet = $@"UPDATE CM_WORKING_PALLET SET WORKING_STATUS = 1,UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 where WORKING_PALLET_CODE = '{PallerCodeMsg}';";
+ string sqlUpdateWorkingPalletDtl = $@"UPDATE CM_WORKING_PALLET_DTL SET WORKING_DTL_STATUS = 1,UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 where WORKING_PALLET_CODE = '{PallerCodeMsg}';";
+ int row1 = LeadDbHelperSQLite.ExecuteSql(sqlUpdateWorkingPallet);
+ int row2 = LeadDbHelperSQLite.ExecuteSql(sqlUpdateWorkingPalletDtl);
+
+
+
+ //批次信息按钮可操作
+ ktb_SaveIR.Enabled = true;
+ kcmb_SheetType.Enabled = true;
+ ktb_IR.Enabled = true;
+ kdtp_RecordDate.Enabled = true;
+ kbtn_forceFinish.Enabled = true;
+
+ //污染类型操作禁用
+ //kryptonGroupBox10.Enabled = false;
+ kryptonGroupBox2.Enabled = false;
+ kryptonGroupBox3.Enabled = false;
+ kryptonGroupBox4.Enabled = false;
+ kryptonGroupBox5.Enabled = false;
+ kbtn_Scrap.Enabled = false;
+ kbtn_Scrap_1.Enabled = false;
+
+ //清空历史批次信息
+ kcmb_SheetType.SelectedIndex = 0;
+ ktb_IR.Text = "";
+ kdtp_RecordDate.Text = "";
+ kdtp_RecordDate.Checked = false;
+
+ ktb_CompleteNum.Text = "0";
+ ktb_ScrapNum.Text = "0";
+ ktb_CurrPalletCode.Text = "";
+ ktb_CurrentPalletNum.Text = "0";
+ ktb_FinishedPalletNum.Text = "0";
+
+
+
+ //清空当前内存污染计数
+ foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
+ {
+ if (string.IsNullOrEmpty(item.CONTAMINATION_DTL_CODE))
+ {//常规清洗 清零(其他污染)
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("knud_" + item.CLEAN_MODE_CODE, true).Length > 0)
+ {
+ KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + item.CLEAN_MODE_CODE, true)[0] as KryptonNumericUpDown;
+ knudmd.Value = 0;
+ }
+ }));
+ }
+ else
+ {//特殊清洗 清零
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("knud_" + item.CONTAMINATION_DTL_CODE, true).Length > 0)
+ {
+ KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + item.CONTAMINATION_DTL_CODE, true)[0] as KryptonNumericUpDown;
+ knudmd.Value = 0;
+ }
+ }));
+ }
+ }
+
+ LogHelper.WriteLog($"作业托盘:【{workingIRMsg}】已强制结束,作业主页面关键信息重置完成。", LogTypeEum.Run);
+
+ string sql = $@"SELECT WORKING_PALLET_CODE from CM_WORKING_PALLET_DTL GROUP BY WORKING_PALLET_CODE HAVING SUM(CURRENT_NUMBER) = 0";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ foreach (DataRow item in dt.Rows)
+ {
+ string sqlTmp = $@"delete from CM_WORKING_PALLET where WORKING_PALLET_CODE = '{item["WORKING_PALLET_CODE"].ToString()}'";
+ string sqlTmp1 = $@"delete from CM_WORKING_PALLET_DTL where WORKING_PALLET_CODE = '{item["WORKING_PALLET_CODE"].ToString()}'";
+ LeadDbHelperSQLite.ExecuteSql(sqlTmp);
+ LeadDbHelperSQLite.ExecuteSql(sqlTmp1);
+ Thread.Sleep(10);
+ }
+ }
+ PrintWorkedIrMsg(workingIRMsg);
+
+ if (row1 > 0 && row2 > 0)
+ {
+ string sqlQueryCleanNum = $@"SELECT CURRENT_NUMBER FROM CM_WORKING_PALLET_DTL WHERE WORKING_DTL_STATUS = 1 and CLEAN_MODE_CODE = 'SortedCleaned' AND WORKING_PALLET_CODE = '{PallerCodeMsg}'";
+ DataTable dtQueryCleanNum = LeadDbHelperSQLite.Query(sqlQueryCleanNum).Tables[0];
+ if (dtQueryCleanNum != null && dtQueryCleanNum.Rows.Count > 0)
+ {
+ int currCleanNum = Convert.ToInt32(dtQueryCleanNum.Rows[0][0]);
+ string sqlUpdateParam = $@"UPDATE SYS_PARAMETER SET PARAMETER_VALUE = PARAMETER_VALUE + '{currCleanNum}',UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime') WHERE PARAMETER_CODE = 'CleaningMacTotalNum';";
+ LeadDbHelperSQLite.ExecuteSql(sqlUpdateParam);
+ }
+ }
+
+
+ //保存打印数据
+ string sqlInsertZbkWorkingPallet = $@"INSERT INTO ZBK_WORKING_PALLET SELECT * FROM CM_WORKING_PALLET WHERE WORKING_PALLET_CODE in (select WORKING_PALLET_CODE from CM_WORKING_PALLET_DTL where IR_CODE = '{workingIRMsg}' and WORKING_DTL_STATUS = 1)";
+ string sqlInsertZbkWorkingPalletDtl = $@"INSERT INTO ZBK_WORKING_PALLET_DTL SELECT * FROM CM_WORKING_PALLET_DTL WHERE WORKING_DTL_STATUS = 1 and IR_CODE = '{workingIRMsg}';";
+ string sqlDeleteWorkingPallet = $@"delete from CM_WORKING_PALLET where WORKING_PALLET_CODE in (select WORKING_PALLET_CODE from CM_WORKING_PALLET_DTL where IR_CODE = '{workingIRMsg}' and WORKING_DTL_STATUS = 1);";
+ string sqlDeleteWorkingPalletDtl = $@"delete from CM_WORKING_PALLET_DTL where WORKING_DTL_STATUS = 1 and IR_CODE = '{workingIRMsg}';";
+
+ LeadDbHelperSQLite.ExecuteSql(sqlInsertZbkWorkingPalletDtl);
+ LeadDbHelperSQLite.ExecuteSql(sqlInsertZbkWorkingPallet);
+ LeadDbHelperSQLite.ExecuteSql(sqlDeleteWorkingPallet);
+ LeadDbHelperSQLite.ExecuteSql(sqlDeleteWorkingPalletDtl);
+
+ LogHelper.WriteLog($"作业IR:【{workingIRMsg}】已经结束,数据库信息重置完成。", LogTypeEum.Run);
+
+
+
+
+ }
+
+
+
+ ///
+ /// 打印托盘信息
+ ///
+ ///
+ ///
+ /// 是否强制满料
+ private void PrintPalletData(string workingIrMsg, string palletCodeMsg, bool isForceFinish)
+ {
+ //只有是满料了,就要清除托盘残余数量
+ this.lastPaltteRemain = 0;
+
+ string sqlUpdateWorkingPallet = $@"UPDATE CM_WORKING_PALLET SET WORKING_STATUS = 1,UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 where WORKING_PALLET_CODE = '{palletCodeMsg}';";
+ string sqlUpdateWorkingPalletDtl = $@"UPDATE CM_WORKING_PALLET_DTL SET WORKING_DTL_STATUS = 1,UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 where WORKING_PALLET_CODE = '{palletCodeMsg}';";
+ int row1 = LeadDbHelperSQLite.ExecuteSql(sqlUpdateWorkingPallet);
+ int row2 = LeadDbHelperSQLite.ExecuteSql(sqlUpdateWorkingPalletDtl);
+
+ if (isForceFinish)
+ {
+ Invoke(new Action(() =>
+ {
+ //批次信息按钮可操作
+ ktb_SaveIR.Enabled = true;
+ kcmb_SheetType.Enabled = true;
+ ktb_IR.Enabled = true;
+ kdtp_RecordDate.Enabled = true;
+ kbtn_forceFinish.Enabled = true;
+
+ //污染类型操作禁用
+ //kryptonGroupBox10.Enabled = false;
+ kryptonGroupBox2.Enabled = false;
+ kryptonGroupBox3.Enabled = false;
+ kryptonGroupBox4.Enabled = false;
+ kryptonGroupBox5.Enabled = false;
+ kbtn_Scrap.Enabled = false;
+ kbtn_Scrap_1.Enabled = false;
+
+ //清空历史批次信息
+ kcmb_SheetType.SelectedIndex = 0;
+ ktb_IR.Text = "";
+ kdtp_RecordDate.Text = "";
+ kdtp_RecordDate.Checked = false;
+
+ ktb_CompleteNum.Text = "0";
+ ktb_ScrapNum.Text = "0";
+ ktb_CurrPalletCode.Text = "";
+ ktb_CurrentPalletNum.Text = "0";
+ ktb_FinishedPalletNum.Text = "0";
+
+ }));
+
+ //清空当前内存污染计数
+ foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
+ {
+ if (string.IsNullOrEmpty(item.CONTAMINATION_DTL_CODE))
+ {//常规清洗 清零(其他污染)
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("knud_" + item.CLEAN_MODE_CODE, true).Length > 0)
+ {
+ KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + item.CLEAN_MODE_CODE, true)[0] as KryptonNumericUpDown;
+ knudmd.Value = 0;
+ }
+ }));
+ }
+ else
+ {//特殊清洗 清零
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("knud_" + item.CONTAMINATION_DTL_CODE, true).Length > 0)
+ {
+ KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + item.CONTAMINATION_DTL_CODE, true)[0] as KryptonNumericUpDown;
+ knudmd.Value = 0;
+ }
+ }));
+ }
+ }
+
+ LogHelper.WriteLog($"作业托盘:【{palletCodeMsg}】已强制结束,作业主页面关键信息重置完成。", LogTypeEum.Run);
+
+ string sql = $@"SELECT WORKING_PALLET_CODE from CM_WORKING_PALLET_DTL GROUP BY WORKING_PALLET_CODE HAVING SUM(CURRENT_NUMBER) = 0";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ foreach (DataRow item in dt.Rows)
+ {
+ string sqlTmp = $@"delete from CM_WORKING_PALLET where WORKING_PALLET_CODE = '{item["WORKING_PALLET_CODE"].ToString()}'";
+ string sqlTmp1 = $@"delete from CM_WORKING_PALLET_DTL where WORKING_PALLET_CODE = '{item["WORKING_PALLET_CODE"].ToString()}'";
+ LeadDbHelperSQLite.ExecuteSql(sqlTmp);
+ LeadDbHelperSQLite.ExecuteSql(sqlTmp1);
+ Thread.Sleep(10);
+ }
+ }
+ PrintWorkedIrMsg(workingIrMsg);
+ }
+ else
+ {
+ #region 生成的新的组盘信息,等待计数作业。
+ string trayCode = GlobalHelper.GetPalletCode();
+ string sqlInsertWorkPallet = $@"
+ INSERT INTO [CM_WORKING_PALLET] (
+ [WORKING_PALLET_CODE],
+ [WORKING_PALLET_DESC],
+ [WORKING_STATUS],
+ [CREATE_BY],
+ [UPDATE_BY],
+ [DATA_VERSION]
+ )
+ VALUES
+ (
+ '{trayCode}',
+ '{trayCode}',
+ '{-1}',
+ '{GlobalHelper.UserInfo.USER_ID}',
+ '{GlobalHelper.UserInfo.USER_ID}',
+ '{0}'
+ );
+ ";
+ LeadDbHelperSQLite.ExecuteSql(sqlInsertWorkPallet);
+
+ foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
+ {
+ string sqlInsertWorkPalletDtl = $@"
+ INSERT INTO [CM_WORKING_PALLET_DTL] (
+ [WORKING_PALLET_CODE],
+ [IR_CODE],
+ [SHEET_TYPE_CODE],
+ [INPUT_TIME],
+ [CLEAN_MODE_CODE],
+ [CONTAMINATION_TYPE_CODE],
+ [CONTAMINATION_DTL_CODE],
+ [CURRENT_NUMBER],
+ [OPERATE_USER_ID],
+ [OPERATE_USER_TIME],
+ [WORKING_DTL_STATUS],
+ [CREATE_BY],
+ [CREATE_TIME],
+ [UPDATE_BY],
+ [UPDATE_TIME],
+ [DATA_VERSION],
+ [REMARKS1],
+ [REMARKS2],
+ [REMARKS3],
+ [REMARKS4],
+ [REMARKS5]
+ )
+ VALUES
+ (
+ '{trayCode}',
+ '{ktb_IR.Text.Trim()}',
+ '{((ListItem)kcmb_SheetType.SelectedItem).Value}',
+ (datetime('now','localtime')),
+ '{item.CLEAN_MODE_CODE}',
+ '{item.CONTAMINATION_TYPE_CODE}',
+ '{item.CONTAMINATION_DTL_CODE}',
+ 0,
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ -1,
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ 0,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL
+ );
+ ";
+ LeadDbHelperSQLite.ExecuteSql(sqlInsertWorkPalletDtl);
+ }
+ Invoke(new Action(() =>
+ {
+ ktb_CurrPalletCode.Text = trayCode;
+ }));
+ LogHelper.WriteLog($"新增作业托盘:【{trayCode}】数据成功!新增板材:【{((ListItem)kcmb_SheetType.SelectedItem).Value}】,IR条码:【{ktb_IR.Text.Trim()}】的作业明细记录成功!", LogTypeEum.Run);
+ #endregion
+
+ Invoke(new Action(() =>
+ {
+ //污染类型操作禁用
+ //kryptonGroupBox10.Enabled = false;
+ kryptonGroupBox2.Enabled = false;
+ kryptonGroupBox3.Enabled = false;
+ kryptonGroupBox4.Enabled = false;
+ kryptonGroupBox5.Enabled = false;
+ kbtn_Scrap.Enabled = false;
+ kbtn_Scrap_1.Enabled = false;
+ kbtn_forceFinish.Enabled = false;
+
+ }));
+
+ //清空当前内存污染计数
+ foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
+ {
+ if (string.IsNullOrEmpty(item.CONTAMINATION_DTL_CODE))
+ {//常规清洗 清零(其他污染)
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("knud_" + item.CLEAN_MODE_CODE, true).Length > 0)
+ {
+ KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + item.CLEAN_MODE_CODE, true)[0] as KryptonNumericUpDown;
+ knudmd.Value = 0;
+ }
+ }));
+ }
+ else
+ {//特殊清洗 清零
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("knud_" + item.CONTAMINATION_DTL_CODE, true).Length > 0)
+ {
+ KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + item.CONTAMINATION_DTL_CODE, true)[0] as KryptonNumericUpDown;
+ knudmd.Value = 0;
+ }
+ }));
+ }
+ }
+ }
+ if (row1 > 0 && row2 > 0)
+ {
+ string sqlQueryCleanNum = $@"SELECT CURRENT_NUMBER FROM CM_WORKING_PALLET_DTL WHERE WORKING_DTL_STATUS = 1 and CLEAN_MODE_CODE = 'SortedCleaned' AND WORKING_PALLET_CODE = '{palletCodeMsg}'";
+ DataTable dtQueryCleanNum = LeadDbHelperSQLite.Query(sqlQueryCleanNum).Tables[0];
+ if (dtQueryCleanNum != null && dtQueryCleanNum.Rows.Count > 0)
+ {
+ int currCleanNum = Convert.ToInt32(dtQueryCleanNum.Rows[0][0]);
+ string sqlUpdateParam = $@"UPDATE SYS_PARAMETER SET PARAMETER_VALUE = PARAMETER_VALUE + '{currCleanNum}',UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime') WHERE PARAMETER_CODE = 'CleaningMacTotalNum';";
+ LeadDbHelperSQLite.ExecuteSql(sqlUpdateParam);
+ }
+ }
+ //清除满料信号
+ //if (PlcOperationHelper.Instance.WritePlcItem("FinishWorkingPallet", "False", PlcItemTypeDesc.M))
+ //{
+ // LogHelper.WriteLog($"作业托盘:【{palletCodeMsg}】已满料,发送PLC清除满料信号成功。", LogTypeEum.Run);
+ //}
+ //else
+ //{
+ // LogHelper.WriteLog($"作业托盘:【{palletCodeMsg}】已满料,发送PLC清除满料信号失败。", LogTypeEum.Err);
+ //}
+
+ //打印完成信号
+ if (PlcOperationHelper.Instance.WritePlcItem("PrintFinish", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"作业托盘:【{palletCodeMsg}】已满料,发送PLC打印完成信号成功。", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"作业托盘:【{palletCodeMsg}】已满料,发送PLC打印完成信号失败。", LogTypeEum.Err);
+ }
+
+ //当前托盘板材计数清零
+ if (PlcOperationHelper.Instance.WritePlcItem("NozzleNum", "0", PlcItemTypeDesc.D))
+ {
+ LogHelper.WriteLog($"作业托盘:【{palletCodeMsg}】已满料,发送PLC当前托盘板材计数清零信号成功。", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"作业托盘:【{palletCodeMsg}】已满料,发送PLC当前托盘板材计数清零信号失败。", LogTypeEum.Err);
+ }
+
+ if (isForceFinish)
+ {
+ //保存打印数据
+ string sqlInsertZbkWorkingPallet = $@"INSERT INTO ZBK_WORKING_PALLET SELECT * FROM CM_WORKING_PALLET WHERE WORKING_PALLET_CODE in (select WORKING_PALLET_CODE from CM_WORKING_PALLET_DTL where IR_CODE = '{workingIrMsg}' and WORKING_DTL_STATUS = 1)";
+ string sqlInsertZbkWorkingPalletDtl = $@"INSERT INTO ZBK_WORKING_PALLET_DTL SELECT * FROM CM_WORKING_PALLET_DTL WHERE WORKING_DTL_STATUS = 1 and IR_CODE = '{workingIrMsg}';";
+ string sqlDeleteWorkingPallet = $@"delete from CM_WORKING_PALLET where WORKING_PALLET_CODE in (select WORKING_PALLET_CODE from CM_WORKING_PALLET_DTL where IR_CODE = '{workingIrMsg}' and WORKING_DTL_STATUS = 1);";
+ string sqlDeleteWorkingPalletDtl = $@"delete from CM_WORKING_PALLET_DTL where WORKING_DTL_STATUS = 1 and IR_CODE = '{workingIrMsg}';";
+
+ LeadDbHelperSQLite.ExecuteSql(sqlInsertZbkWorkingPalletDtl);
+ LeadDbHelperSQLite.ExecuteSql(sqlInsertZbkWorkingPallet);
+ LeadDbHelperSQLite.ExecuteSql(sqlDeleteWorkingPallet);
+ LeadDbHelperSQLite.ExecuteSql(sqlDeleteWorkingPalletDtl);
+
+ LogHelper.WriteLog($"作业IR:【{workingIrMsg}】已经结束,数据库信息重置完成。", LogTypeEum.Run);
+ }
+ }
+ private void PrintWorkedIrMsg(string workingIrCodeMsg)
+ {
+ try
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】自动打印开始。~~~~~~~~~~~~~~", LogTypeEum.Run);
+ //string sql = $@"
+ // SELECT
+ // *
+ // FROM
+ // VW_WORKING_PALLET_MSG
+ // WHERE
+ // WORKING_PALLET_CODE = '{woringPalletMsg}'
+ // AND IR_CODE = '{workingIrCodeMsg}'
+ // ";
+ string sql = $@"
+ SELECT
+ *
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{workingIrCodeMsg}'
+ ";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印明细数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
+
+ string sqlGroup = $@"
+ SELECT
+ CONTAMINATION_TYPE_CODE,
+ CONTAMINATION_DTL_CODE,
+ SUM(CURRENT_NUMBER) CURRENT_NUMBER
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{workingIrCodeMsg}'
+ GROUP BY
+ CONTAMINATION_TYPE_CODE,
+ CONTAMINATION_DTL_CODE
+ ";
+ DataTable dtGroup = LeadDbHelperSQLite.Query(sqlGroup).Tables[0];
+
+ #region 物理污染
+ //string sql1 = $@"SELECT CONTAMINATION_DTL_CODE Kind,CURRENT_NUMBER Qty FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = '{woringPalletMsg}' AND IR_CODE = '{workingIrCodeMsg}' AND CONTAMINATION_TYPE_CODE = 'PhysicalContamination'";
+ //DataTable dt1 = LeadDbHelperSQLite.Query(sql1).Tables[0].Copy();
+
+ DataRow[] drs = dtGroup.Select(" CONTAMINATION_TYPE_CODE = 'PhysicalContamination'");
+ if (drs != null && drs.Length > 0)
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】物理污染 明细数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】物理污染 明细数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
+ }
+ DataTable dt1 = new DataTable();
+ dt1.Columns.Add("Kind", typeof(string));
+ dt1.Columns.Add("Qty", typeof(string));
+ foreach (DataRow item in drs)
+ {
+ DataRow row = dt1.NewRow();
+ row["Kind"] = item["CONTAMINATION_DTL_CODE"].ToString();
+ row["Qty"] = item["CURRENT_NUMBER"].ToString();
+ dt1.Rows.Add(row);
+ }
+ dt1.TableName = "Table1";
+ #endregion
+
+ #region 化学污染
+ //string sql2 = $@"SELECT CONTAMINATION_DTL_CODE Kind,CURRENT_NUMBER Qty FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = '{woringPalletMsg}' AND IR_CODE = '{workingIrCodeMsg}' AND CONTAMINATION_TYPE_CODE = 'ChemicalContamination'";
+ //DataTable dt2 = LeadDbHelperSQLite.Query(sql2).Tables[0].Copy();
+ drs = dtGroup.Select(" CONTAMINATION_TYPE_CODE = 'ChemicalContamination'");
+ if (drs != null && drs.Length > 0)
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】化学污染 明细数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】化学污染 明细数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
+ }
+ DataTable dt2 = dt1.Clone();
+ foreach (DataRow item in drs)
+ {
+ DataRow row = dt2.NewRow();
+ row["Kind"] = item["CONTAMINATION_DTL_CODE"].ToString();
+ row["Qty"] = item["CURRENT_NUMBER"].ToString();
+ dt2.Rows.Add(row);
+ }
+ dt2.TableName = "Table2";
+ #endregion
+
+ #region 微生物污染
+ //string sql3 = $@"SELECT CONTAMINATION_DTL_CODE Kind,CURRENT_NUMBER Qty FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = '{woringPalletMsg}' AND IR_CODE = '{workingIrCodeMsg}' AND CONTAMINATION_TYPE_CODE = 'MicrobiologicalContamination'";
+ //DataTable dt3 = LeadDbHelperSQLite.Query(sql3).Tables[0].Copy();
+ drs = dtGroup.Select(" CONTAMINATION_TYPE_CODE = 'MicrobiologicalContamination'");
+ if (drs != null && drs.Length > 0)
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】微生物污染 明细数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】微生物污染 明细数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
+ }
+ DataTable dt3 = dt1.Clone();
+ foreach (DataRow item in drs)
+ {
+ DataRow row = dt3.NewRow();
+ row["Kind"] = item["CONTAMINATION_DTL_CODE"].ToString();
+ row["Qty"] = item["CURRENT_NUMBER"].ToString();
+ dt3.Rows.Add(row);
+ }
+ dt3.TableName = "Table3";
+ #endregion
+
+ string sql4 = $@"
+ SELECT
+ C.SHEET_TYPE_CODE Sheets,
+ SUM(CASE CLEAN_MODE_CODE WHEN 'SortedCleaned' THEN Qty ELSE 0 END) SortedCleaned,
+ SUM(CASE CLEAN_MODE_CODE WHEN 'SpecialCleaning' THEN Qty ELSE 0 END) SpecialCleaning,
+ SUM(CASE CLEAN_MODE_CODE WHEN 'Scrap' THEN Qty ELSE 0 END) Scrap,
+ SUM(CASE CLEAN_MODE_CODE WHEN 'Others' THEN Qty ELSE 0 END) Others,
+ IFNULL(C.TotalQty, 0) TotalQty
+ FROM
+ (
+ SELECT
+ A.SHEET_TYPE_CODE,
+ B.CLEAN_MODE_CODE,
+ B.Qty,
+ C.TotalQty
+ FROM
+ BAS_SHEET_TYPE A LEFT JOIN
+ (
+ SELECT
+ SHEET_TYPE_CODE,
+ SUM(CURRENT_NUMBER) TotalQty
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{workingIrCodeMsg}'
+ GROUP BY SHEET_TYPE_CODE) C ON A.SHEET_TYPE_CODE = C.SHEET_TYPE_CODE
+ LEFT JOIN (
+ SELECT
+ SHEET_TYPE_CODE,
+ CLEAN_MODE_CODE,
+ SUM(CURRENT_NUMBER) Qty
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{workingIrCodeMsg}'
+ GROUP BY CLEAN_MODE_CODE,SHEET_TYPE_CODE
+ ) B ON C.SHEET_TYPE_CODE = B.SHEET_TYPE_CODE
+ ) C
+ GROUP BY C.SHEET_TYPE_CODE,C.TotalQty
+ ";
+
+ DataTable dt4 = LeadDbHelperSQLite.Query(sql4).Tables[0].Copy();
+ if (dt4 != null && dt4.Rows.Count > 0)
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】按照板材分类和清洗方式统计的数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】按照板材分类和清洗方式统计的数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
+ }
+
+ dt4.TableName = "Table4";
+
+
+ string sql5 = $@"
+ SELECT
+ SUM (CURRENT_NUMBER) CleanedSheets,
+ date (INPUT_TIME) DateAndTime,
+ USER_NAME Operator
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{workingIrCodeMsg}'
+ GROUP BY
+ date (INPUT_TIME),
+ OPERATE_USER_ID,
+ USER_CODE,
+ USER_NAME
+ ";
+
+ DataTable dt5 = LeadDbHelperSQLite.Query(sql5).Tables[0].Copy();
+ if (dt5 != null && dt5.Rows.Count > 0)
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】操作员每日作业板材数量的数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】操作员每日作业板材数量的数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
+ }
+ dt5.TableName = "Table5";
+
+ string userName = dt.Rows[0]["USER_NAME"].ToString();
+ DateTime dateMsg = Convert.ToDateTime(dt.Rows[0]["INPUT_TIME"]);
+ string IRNumber = dt.Rows[0]["IR_CODE"].ToString();
+ string MacCode = GlobalHelper.ParameterList.Select(" PARAMETER_CODE = 'CleanMachineName'")[0]["PARAMETER_VALUE"].ToString();
+
+ string sqlCleanedNum = $@"
+ SELECT
+ SUM(CURRENT_NUMBER) CURRENT_NUMBER
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{workingIrCodeMsg}'
+ AND CLEAN_MODE_CODE = 'SortedCleaned'
+ ";
+ DataTable dtCleanedNum = LeadDbHelperSQLite.Query(sqlCleanedNum).Tables[0];
+ string cleanNum = dtCleanedNum.Rows[0][0].ToString();
+
+ string sqlPalletNum = $@"
+ SELECT
+ DISTINCT WORKING_PALLET_CODE
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{workingIrCodeMsg}'
+ ";
+ DataTable dtPalletNum = LeadDbHelperSQLite.Query(sqlPalletNum).Tables[0];
+ string palletNum = dtPalletNum.Rows.Count.ToString();
+
+ string sqlScrapNum = $@"
+ SELECT
+ SUM(CURRENT_NUMBER) CURRENT_NUMBER
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{workingIrCodeMsg}'
+ AND CLEAN_MODE_CODE <> 'SortedCleaned'
+ ";
+ DataTable dtScrapNum = LeadDbHelperSQLite.Query(sqlScrapNum).Tables[0];
+ string scrapNum = dtScrapNum.Rows[0][0].ToString();
+
+ DataSet dts = new DataSet();
+ dts.Tables.Add(dt1);
+ dts.Tables.Add(dt2);
+ dts.Tables.Add(dt3);
+ dts.Tables.Add(dt4);
+ dts.Tables.Add(dt5);
+
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印模板所需要的数据拼装完成!~~~~~~~~~~~~~~", LogTypeEum.Run);
+
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】开始加载打印控件类!~~~~~~~~~~~~~~", LogTypeEum.Run);
+ Report report = new Report();
+ string filename = _reportFolder + "CleanMac_IRMsg_PrintMd.frx";
+ report.Load(filename);
+ report.RegisterData(dts);
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印控件类加载完成,数据传入成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
+ report.SetParameterValue("Parm_CusName", userName);
+ report.SetParameterValue("Parm_MachineCode", MacCode);
+ report.SetParameterValue("Parm_IRNumber", IRNumber);
+ report.SetParameterValue("Parm_RecDate", dateMsg);
+ report.SetParameterValue("Parm_RecordName", userName);
+ report.SetParameterValue("Parm_CleanedNum", cleanNum);
+ report.SetParameterValue("Parm_PalletNumber", palletNum);
+ report.SetParameterValue("Parm_ScrapNumber", scrapNum);
+
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印控件类所需参数设置成功,开始发送打印机数据!~~~~~~~~~~~~~~", LogTypeEum.Run);
+ report.Prepare();
+ report.PrintSettings.ShowDialog = false;
+ report.Print();
+ report.Clear();
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印控件类发送打印机数据成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印明细数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
+ }
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】自动打印结束。~~~~~~~~~~~~~~", LogTypeEum.Run);
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ private int remainingQty = 0;
+ ///
+ /// PLC 信号处理
+ ///
+ private void MainDtlRunTh()
+ {
+ while (GlobalHelper.SysThIsRunFlag)
+ {
+ try
+ {
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMacRunStatusNew", PlcItemTypeDesc.M)))
+ {
+ Invoke(new Action(() => { cbt_RunStatusTran.BackColor = Color.Lime; }));
+ }
+ else
+ {
+ Invoke(new Action(() => { cbt_RunStatusTran.BackColor = Color.Gray; }));
+ }
+ //毛刷1运行状态
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("Hairbrush1Selection", PlcItemTypeDesc.M)))
+ {
+ Invoke(new Action(() =>
+ {
+ cbt_Brush1StatusTran.BackColor = Color.Lime;
+ }));
+ }
+ else
+ {
+ Invoke(new Action(() =>
+ {
+ cbt_Brush1StatusTran.BackColor = Color.Gray;
+ }));
+ }
+
+ //毛刷2启用状态
+
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("Hairbrush2Selection", PlcItemTypeDesc.M)))
+ {
+ Invoke(new Action(() =>
+ {
+ cbt_Brush2StatusTran.BackColor = Color.Lime;
+ }));
+ }
+ else
+ {
+ Invoke(new Action(() =>
+ {
+ cbt_Brush2StatusTran.BackColor = Color.Gray;
+ }));
+ }
+ //毛刷3启用状态
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("Hairbrush3Selection", PlcItemTypeDesc.M)))
+ {
+ Invoke(new Action(() =>
+ {
+ cbt_Brush3StatusTran.BackColor = Color.Lime;
+ }));
+ }
+ else
+ {
+ Invoke(new Action(() =>
+ {
+ cbt_Brush3StatusTran.BackColor = Color.Gray;
+ }));
+ }
+ //喷头选择状态
+ //if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("NozzleSelection", PlcItemTypeDesc.M)))
+ //{
+ // Invoke(new Action(() =>
+ // {
+ // cbt_NozzleStatusTran.BackColor = Color.Lime;
+ // }));
+ //}
+ //else
+ //{
+ // Invoke(new Action(() =>
+ // {
+ // cbt_NozzleStatusTran.BackColor = Color.Gray;
+ // }));
+ //}
+ //静电棒选择
+
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("StaticbarsSel", PlcItemTypeDesc.M)))
+ {
+ Invoke(new Action(() =>
+ {
+ cbt_staticbar.BackColor = Color.Lime;
+ }));
+ }
+ else
+ {
+ Invoke(new Action(() =>
+ {
+ cbt_staticbar.BackColor = Color.Gray;
+ }));
+ }
+
+ //计数模式选择
+ //if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FullPalletMode", PlcItemTypeDesc.M)))
+ //{
+ // Invoke(new Action(() =>
+ // {
+ // cbt_fpalletmod.BackColor = Color.Lime;
+ // }));
+ //}
+ //else
+ //{
+ // Invoke(new Action(() =>
+ // {
+ // cbt_fpalletmod.BackColor = Color.Gray;
+ // }));
+ //}
+
+ //显示托盘编号
+ if (ktb_IR.Text.Trim().Length > 0)
+ {
+ string sqlWorkPalletSel = $@"SELECT * FROM CM_WORKING_PALLET WHERE WORKING_STATUS = 0 ORDER BY CREATE_TIME DESC";
+ DataTable dtWorkPalletSel = LeadDbHelperSQLite.Query(sqlWorkPalletSel).Tables[0];
+ if (dtWorkPalletSel.Rows.Count > 0)
+ {
+ Invoke(new Action(() =>
+ {
+ ktb_CurrPalletCode.Text = dtWorkPalletSel.Rows[0]["WORKING_PALLET_CODE"].ToString();
+
+ }));
+ }
+ else
+ {
+ Invoke(new Action(() =>
+ {
+ ktb_CurrPalletCode.Text = "";
+
+ }));
+ }
+ }
+
+ //防止中途关闭系统产生数据丢失,因此每周期都会更新数据
+ string sql = $@"SELECT SUM(CURRENT_NUMBER) FROM CM_WORKING_PALLET_DTL WHERE CLEAN_MODE_CODE = 'SortedCleaned' AND IR_CODE = '{ktb_IR.Text}' AND SHEET_TYPE_CODE = '{kcmb_SheetType.Text}'";
+ object obj = LeadDbHelperSQLite.GetSingle(sql);
+ if (obj == null)
+ {
+ Invoke(new Action(() => { ktb_CompleteNum.Text = "0"; }));
+ }
+ else
+ {
+ Invoke(new Action(() => { ktb_CompleteNum.Text = obj.ToString(); }));
+ }
+ string sql1 = $@"SELECT SUM(CURRENT_NUMBER) FROM CM_WORKING_PALLET_DTL WHERE CLEAN_MODE_CODE <> 'SortedCleaned' AND IR_CODE = '{ktb_IR.Text}' AND SHEET_TYPE_CODE = '{kcmb_SheetType.Text}'";
+ object obj1 = LeadDbHelperSQLite.GetSingle(sql1);
+ if (obj1 == null)
+ {
+ Invoke(new Action(() =>
+ {
+ ktb_ScrapNum.Text = "0";
+ }));
+ }
+ else
+ {
+ Invoke(new Action(() =>
+ {
+ ktb_ScrapNum.Text = obj1.ToString();
+ }));
+ }
+ string sql11 = $@"SELECT SUM(CURRENT_NUMBER) FROM CM_WORKING_PALLET_DTL WHERE CLEAN_MODE_CODE = 'Scrap' AND IR_CODE = '{ktb_IR.Text}' AND SHEET_TYPE_CODE = '{kcmb_SheetType.Text}' AND WORKING_PALLET_CODE = '{ktb_CurrPalletCode.Text}'";
+ object obj11 = LeadDbHelperSQLite.GetSingle(sql11);
+ if (obj11 == null)
+ {
+ Invoke(new Action(() =>
+ {
+ ktb_Scrap.Text = "0";
+ }));
+ }
+ else
+ {
+ Invoke(new Action(() =>
+ {
+ ktb_Scrap.Text = obj11.ToString();
+ }));
+ }
+
+ string sqlPalletCount = $@"SELECT CURRENT_NUMBER,WORKING_DTL_STATUS FROM CM_WORKING_PALLET_DTL WHERE CLEAN_MODE_CODE = 'SortedCleaned' AND IR_CODE = '{ktb_IR.Text}' AND SHEET_TYPE_CODE = '{kcmb_SheetType.Text}'";
+ DataTable dtPalletCount = LeadDbHelperSQLite.Query(sqlPalletCount).Tables[0];
+ if (dtPalletCount != null && dtPalletCount.Rows.Count > 0)
+ {
+ int finishedPalletNum = 0;
+ int currentPalletNum = 0;
+ foreach (DataRow item in dtPalletCount.Rows)
+ {
+ if (item["WORKING_DTL_STATUS"].ToString() == "1")
+ {
+ finishedPalletNum += Convert.ToInt32(item["CURRENT_NUMBER"]);
+ }
+ else
+ {
+ currentPalletNum += Convert.ToInt32(item["CURRENT_NUMBER"]);
+ }
+ }
+ ktb_CurrentPalletNum.Text = currentPalletNum.ToString();
+ ktb_FinishedPalletNum.Text = finishedPalletNum.ToString();
+ }
+ else
+ {
+ ktb_CurrentPalletNum.Text = "0";
+ ktb_FinishedPalletNum.Text = "0";
+ }
+ //读取PLC当前值-这个值带有初始值
+ int currNum = Convert.ToInt32(PlcOperationHelper.Instance.ReadPlcItem("NozzleNum", PlcItemTypeDesc.D));
+
+ int fullPalletNum = Convert.ToInt32(PlcOperationHelper.Instance.ReadPlcItem("WorkedFullPalletNum", PlcItemTypeDesc.D));
+ //
+
+ if (0 < (fullPalletNum - currNum) && (fullPalletNum - currNum) <= 10 && fullPalletNum != 0)
+ {
+ if ((fullPalletNum - currNum) != remainingQty)
+ {
+ frmMainNew.RefreshFrmHost($"The tray is about to fill up and the remaining quantity is [{fullPalletNum - currNum}]!!");
+ LogHelper.WriteLog($"托盘即将满料,剩余数量为【{fullPalletNum - currNum}】!!", LogTypeEum.Run);
+ remainingQty = fullPalletNum - currNum;
+ }
+ }
+ else
+ {
+
+ remainingQty = fullPalletNum - currNum;
+ frmMainNew.RefreshFrmHost(null);
+ }
+ //托盘在当前IR中的数量
+ currNum -= this.lastPaltteRemain;
+ if (currNum > 0)
+ {
+ //string sqlFinishIrSheetTypeDtl = $"select sum(CURRENT_NUMBER) from CM_WORKING_PALLET_DTL where CLEAN_MODE_CODE = 'SortedCleaned' and WORKING_DTL_STATUS = 1";
+ //DataTable dtFinishIrSheetTypeDtl = LeadDbHelperSQLite.Query(sqlFinishIrSheetTypeDtl).Tables[0];
+
+ //int finishIrSheetTypeNum = 0;
+ //if (dtFinishIrSheetTypeDtl != null && dtFinishIrSheetTypeDtl.Rows.Count > 0)
+ //{
+ // finishIrSheetTypeNum = Convert.ToInt32(dtFinishIrSheetTypeDtl.Rows[0][0] == DBNull.Value ? 0 : dtFinishIrSheetTypeDtl.Rows[0][0]);
+ //}
+ //if (autoCleanNum != (currNum - finishIrSheetTypeNum))
+ //{
+ //防止中途关闭系统后产生内存数据丢失
+ string sql12 = $@"
+ UPDATE CM_WORKING_PALLET_DTL
+ SET CURRENT_NUMBER = '{currNum }',
+ UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',
+ UPDATE_TIME = datetime('now', 'localtime'),
+ DATA_VERSION = DATA_VERSION + 1
+ WHERE
+ CLEAN_MODE_CODE = 'SortedCleaned'
+ AND IR_CODE = '{ktb_IR.Text}'
+ AND SHEET_TYPE_CODE = '{kcmb_SheetType.Text}'
+ AND WORKING_DTL_STATUS = 0
+ AND WORKING_PALLET_CODE = '{ktb_CurrPalletCode.Text.Trim()}'
+ ";
+
+ int row = LeadDbHelperSQLite.ExecuteSql(sql12);
+ //autoCleanNum = currNum - finishIrSheetTypeNum;
+ if (row > 0)
+ {
+ //LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】作业托盘:【{ktb_CurrPalletCode.Text}】作业IR:【{ktb_IR.Text}】作业板材:【{kcmb_SheetType.Text}】顺序清洗计数+1成功,数量为:【{currNum}】。", LogTypeEum.Run);
+ }
+ else
+ {
+ //LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】作业托盘:【{ktb_CurrPalletCode.Text}】作业IR:【{ktb_IR.Text}】作业板材:【{kcmb_SheetType.Text}】顺序清洗计数+1失败。", LogTypeEum.Run);
+ }
+ //}
+ }
+ else
+ {
+ //autoCleanNum = 0;
+ }
+ FinishWorkingPallet();
+ }
+ catch
+ {
+
+ }
+ Thread.Sleep(200);
+ }
+ }
+ private void btnPrinter_Click(object sender, EventArgs e)
+ {
+ //GlobalHelper.MainForm.navigatorMain.SetNavPage(Domain.Enums.EnumFormType.PrintMain);
+ frmMainNew.SwitchFrmMenu(EnumFormType.WorkingDataRecord, false);
+ }
+
+
+
+
+ //新建批次任务
+ private void ktb_SaveIR_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (string.IsNullOrEmpty(kcmb_SheetType.Text.Trim()))
+ {
+ //KryptonMessageBox.Show("请输入板材类型信息!!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入板材类型信息!", "EnterSheetTypeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(ktb_IR.Text.Trim()))
+ {
+ //KryptonMessageBox.Show("请输入IR收货编号信息!!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入IR收货编号信息!", "EnterIRMsgInfo"));
+ return;
+ }
+ if (!kdtp_RecordDate.Checked)
+ {
+ //KryptonMessageBox.Show("请选择录入时间!!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择录入时间!", "EnterInputTimeInfo"));
+ return;
+ }
+ //string sqlWorkPallet = $@"SELECT * FROM CM_WORKING_PALLET WHERE WORKING_STATUS = 0";
+ //DataTable dtWorkPallet = LeadDbHelperSQLite.Query(sqlWorkPallet).Tables[0];
+ ////当前托盘流水号
+ string curPalletid = "";
+
+ //if (dtWorkPallet != null && dtWorkPallet.Rows.Count > 0)
+ //{//存在未完成批次信息
+ // string trayCode = dtWorkPallet.Rows[0]["WORKING_PALLET_CODE"].ToString();
+ // curPalletid = dtWorkPallet.Rows[0]["WORKING_PALLET_CODE"].ToString();
+ // string sqlIsExistIR = $@"SELECT * FROM CM_WORKING_PALLET_DTL WHERE IR_CODE = '{ktb_IR.Text.Trim()}' AND SHEET_TYPE_CODE = '{((ListItem)kcmb_SheetType.SelectedItem).Value}'";
+ // DataTable dtIsExistIR = LeadDbHelperSQLite.Query(sqlIsExistIR).Tables[0];
+ // if (dtIsExistIR != null && dtIsExistIR.Rows.Count > 0)
+ // {//存在批次号对应记录则保存批次版本
+
+ // foreach (DataRow item in dtIsExistIR.Rows)
+ // {
+ // if (!string.IsNullOrEmpty(item["CONTAMINATION_DTL_CODE"].ToString()))
+ // {
+ // string controlCode = item["CONTAMINATION_DTL_CODE"].ToString();
+ // decimal num = Convert.ToDecimal(item["CURRENT_NUMBER"].ToString());
+ // Control[] cons = this.Controls.Find("knud_" + controlCode, true);
+ // if (cons.Length > 0)
+ // {
+ // KryptonNumericUpDown knudmd = cons[0] as KryptonNumericUpDown;
+ // knudmd.Value = num;
+ // }
+ // }
+ // else
+ // {
+ // string controlCode = item["CLEAN_MODE_CODE"].ToString();
+ // decimal num = Convert.ToDecimal(item["CURRENT_NUMBER"].ToString());
+ // Control[] cons = this.Controls.Find("knud_" + controlCode, true);
+ // if (cons.Length > 0)
+ // {
+ // KryptonNumericUpDown knudmd = cons[0] as KryptonNumericUpDown;
+ // knudmd.Value = num;
+ // }
+ // }
+ // }
+
+ // string sqlUpdateWorkPalletDtl = $@"UPDATE CM_WORKING_PALLET_DTL SET INPUT_TIME = datetime('now', 'localtime'),UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1,WORKING_DTL_STATUS = 0 WHERE WORKING_PALLET_CODE = '{trayCode}' and IR_CODE = '{ktb_IR.Text.Trim()}' and SHEET_TYPE_CODE = '{((ListItem)kcmb_SheetType.SelectedItem).Value}'";
+ // LeadDbHelperSQLite.ExecuteSql(sqlUpdateWorkPalletDtl);
+ // LogHelper.WriteLog($"当前作业托盘:【{trayCode}】存在板材:【{((ListItem)kcmb_SheetType.SelectedItem).Value}】,IR条码:【{ktb_IR.Text.Trim()}】的记录,切换板材、IR明细信息成功!", LogTypeEum.Run);
+ // }
+ // else
+ // {//不存在批次号对应记录则新建批次
+ // //string sqlInsertWorkPallet = $@"
+ // // INSERT INTO [CM_WORKING_PALLET] (
+ // // [WORKING_PALLET_CODE],
+ // // [WORKING_PALLET_DESC],
+ // // [WORKING_STATUS],
+ // // [CREATE_BY],
+ // // [UPDATE_BY],
+ // // [DATA_VERSION]
+ // // )
+ // // VALUES
+ // // (
+ // // '{trayCode}',
+ // // '{trayCode}',
+ // // '{0}',
+ // // '{GlobalHelper.UserInfo.USER_ID}',
+ // // '{GlobalHelper.UserInfo.USER_ID}',
+ // // '{0}'
+ // // );
+ // // ";
+ // //LeadDbHelperSQLite.ExecuteSql(sqlInsertWorkPallet);
+ // string sqlIsExistWorkingIrSheetTypeDtl = $"SELECT * FROM CM_WORKING_PALLET_DTL WHERE WORKING_DTL_STATUS = 0";
+ // DataTable dtIsExistWorkingIrSheetTypeDtl = LeadDbHelperSQLite.Query(sqlIsExistWorkingIrSheetTypeDtl).Tables[0];
+ // if (dtIsExistWorkingIrSheetTypeDtl != null && dtIsExistWorkingIrSheetTypeDtl.Rows.Count > 0)
+ // {
+ // string irMsg = dtIsExistWorkingIrSheetTypeDtl.Rows[0]["IR_CODE"].ToString();
+ // string sheetTypeMsg = dtIsExistWorkingIrSheetTypeDtl.Rows[0]["SHEET_TYPE_CODE"].ToString();
+ // string sqlUpdateWorkPalletDtl = $@"UPDATE CM_WORKING_PALLET_DTL SET INPUT_TIME = datetime('now', 'localtime'),UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1,WORKING_DTL_STATUS = 1 WHERE WORKING_PALLET_CODE = '{trayCode}' and IR_CODE = '{irMsg}' and SHEET_TYPE_CODE = '{sheetTypeMsg}'";
+ // LeadDbHelperSQLite.ExecuteSql(sqlUpdateWorkPalletDtl);
+ // }
+
+ // foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
+ // {
+ // string sqlInsertWorkPalletDtl = $@"
+ // INSERT INTO [CM_WORKING_PALLET_DTL] (
+ // [WORKING_PALLET_CODE],
+ // [IR_CODE],
+ // [SHEET_TYPE_CODE],
+ // [INPUT_TIME],
+ // [CLEAN_MODE_CODE],
+ // [CONTAMINATION_TYPE_CODE],
+ // [CONTAMINATION_DTL_CODE],
+ // [CURRENT_NUMBER],
+ // [OPERATE_USER_ID],
+ // [OPERATE_USER_TIME],
+ // [WORKING_DTL_STATUS],
+ // [CREATE_BY],
+ // [CREATE_TIME],
+ // [UPDATE_BY],
+ // [UPDATE_TIME],
+ // [DATA_VERSION],
+ // [REMARKS1],
+ // [REMARKS2],
+ // [REMARKS3],
+ // [REMARKS4],
+ // [REMARKS5]
+ // )
+ // VALUES
+ // (
+ // '{trayCode}',
+ // '{ktb_IR.Text.Trim()}',
+ // '{((ListItem)kcmb_SheetType.SelectedItem).Value}',
+ // (datetime('now','localtime')),
+ // '{item.CLEAN_MODE_CODE}',
+ // '{item.CONTAMINATION_TYPE_CODE}',
+ // '{item.CONTAMINATION_DTL_CODE}',
+ // 0,
+ // '{GlobalHelper.UserInfo.USER_ID}',
+ // datetime('now', 'localtime'),
+ // 0,
+ // '{GlobalHelper.UserInfo.USER_ID}',
+ // datetime('now', 'localtime'),
+ // '{GlobalHelper.UserInfo.USER_ID}',
+ // datetime('now', 'localtime'),
+ // 0,
+ // NULL,
+ // NULL,
+ // NULL,
+ // NULL,
+ // NULL
+ // );
+ // ";
+ // LeadDbHelperSQLite.ExecuteSql(sqlInsertWorkPalletDtl);
+ // }
+
+ // LogHelper.WriteLog($"当前作业托盘:【{trayCode}】不存在板材:【{((ListItem)kcmb_SheetType.SelectedItem).Value}】,IR条码:【{ktb_IR.Text.Trim()}】的记录,切换新增板材、IR明细信息成功!", LogTypeEum.Run);
+ // }
+ // //保存完成后,只有满托,或者强制满托后才可继续操作
+ // kcmb_SheetType.Enabled = false;
+ // ktb_IR.Enabled = false;
+ // kdtp_RecordDate.Enabled = false;
+ // ktb_SaveIR.Enabled = false;
+
+ // //kryptonGroupBox10.Enabled = true;
+ // kryptonGroupBox2.Enabled = true;
+ // kryptonGroupBox3.Enabled = true;
+ // kryptonGroupBox4.Enabled = true;
+ // kryptonGroupBox5.Enabled = true;
+ // kbtn_Scrap.Enabled = true;
+ // kbtn_Scrap_1.Enabled = true;
+ // kbtn_forceFinish.Enabled = true;
+
+ //}
+ //else
+ //{
+
+ //没有待完成的批次任务,则新建当前批次任务
+ //string trayCode = Guid.NewGuid().ToString("N");
+
+ string IRCode = this.ktb_IR.Text.Trim();
+
+
+ string strSql = $@"SELECT COUNT(*) FROM VW_WORKING_PALLET_MSG WHERE IR_CODE='{IRCode}'";
+ int count = Convert.ToInt32(LeadDbHelperSQLite.GetSingle(strSql));
+
+ if (count > 0)
+ {
+ KryptonMessageBox.Show("The IR code has been used");
+
+ }
+ else
+ {
+
+
+ string trayCode = GlobalHelper.GetPalletCode();
+ string sqlInsertWorkPallet = $@"
+ INSERT INTO [CM_WORKING_PALLET] (
+ [WORKING_PALLET_CODE],
+ [WORKING_PALLET_DESC],
+ [WORKING_STATUS],
+ [CREATE_BY],
+ [UPDATE_BY],
+ [DATA_VERSION]
+ )
+ VALUES
+ (
+ '{trayCode}',
+ '{trayCode}',
+ '{0}',
+ '{GlobalHelper.UserInfo.USER_ID}',
+ '{GlobalHelper.UserInfo.USER_ID}',
+ '{0}'
+ );
+ ";
+ LeadDbHelperSQLite.ExecuteSql(sqlInsertWorkPallet);
+
+ //当前托盘流水号查询
+ //string sqlWorkPalletSel = $@"SELECT * FROM CM_WORKING_PALLET WHERE WORKING_PALLET_CODE = '{trayCode}'";
+ //DataTable dtWorkPalletSel = LeadDbHelperSQLite.Query(sqlWorkPalletSel).Tables[0];
+ //curPalletid = dtWorkPalletSel.Rows[0]["WORKING_PALLET_CODE"].ToString();
+ curPalletid = trayCode;
+
+ foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
+ {
+ string sqlInsertWorkPalletDtl = $@"
+ INSERT INTO [CM_WORKING_PALLET_DTL] (
+ [WORKING_PALLET_CODE],
+ [IR_CODE],
+ [SHEET_TYPE_CODE],
+ [INPUT_TIME],
+ [CLEAN_MODE_CODE],
+ [CONTAMINATION_TYPE_CODE],
+ [CONTAMINATION_DTL_CODE],
+ [CURRENT_NUMBER],
+ [OPERATE_USER_ID],
+ [OPERATE_USER_TIME],
+ [WORKING_DTL_STATUS],
+ [CREATE_BY],
+ [CREATE_TIME],
+ [UPDATE_BY],
+ [UPDATE_TIME],
+ [DATA_VERSION],
+ [REMARKS1],
+ [REMARKS2],
+ [REMARKS3],
+ [REMARKS4],
+ [REMARKS5]
+ )
+ VALUES
+ (
+ '{trayCode}',
+ '{ktb_IR.Text.Trim()}',
+ '{((ListItem)kcmb_SheetType.SelectedItem).Value}',
+ (datetime('now','localtime')),
+ '{item.CLEAN_MODE_CODE}',
+ '{item.CONTAMINATION_TYPE_CODE}',
+ '{item.CONTAMINATION_DTL_CODE}',
+ 0,
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ 0,
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ 0,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL
+ );
+ ";
+ LeadDbHelperSQLite.ExecuteSql(sqlInsertWorkPalletDtl);
+ }
+
+ LogHelper.WriteLog($"新增作业托盘:【{trayCode}】数据成功!新增板材:【{((ListItem)kcmb_SheetType.SelectedItem).Value}】,IR条码:【{ktb_IR.Text.Trim()}】的作业明细记录成功!", LogTypeEum.Run);
+ //新建批次后,只有满托或者强制满托后才可新建批次操作;
+ kcmb_SheetType.Enabled = false;
+ ktb_IR.Enabled = false;
+ kdtp_RecordDate.Enabled = false;
+ ktb_SaveIR.Enabled = false;
+
+ //kryptonGroupBox10.Enabled = true;
+ kryptonGroupBox2.Enabled = true;
+ kryptonGroupBox3.Enabled = true;
+ kryptonGroupBox4.Enabled = true;
+ kryptonGroupBox5.Enabled = true;
+ kbtn_Scrap.Enabled = true;
+ kbtn_Scrap_1.Enabled = true;
+ kbtn_forceFinish.Enabled = true;
+
+ }
+ //显示当前托盘流水号
+ ktb_CurrPalletCode.Text = curPalletid;
+ }
+ catch (Exception ex)
+ {
+ //KryptonMessageBox.Show("保存IR数据发生异常!" + ex.Message);
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("保存作业板材和IR数据发生异常", "SaveSheetIRDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void ktb_GlassOrWoodShreds_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+
+ KryptonButton kbtnMd = sender as KryptonButton;
+ BasCleanTypeMsg md = basCleanTypeMsgList.Find(x => x.CONTAMINATION_DTL_CODE == kbtnMd.Name.Replace("kbtn_", ""));
+ if (ktb_SaveIR.Enabled)
+ {
+ //KryptonMessageBox.Show("未录入板材信息和IR收货编号信息,不能进行计数处理!");
+ KryptonMessageBox.Show("The plate information and IR receiving number information are not entered, so the counting process cannot be carried out!");
+ return;
+ }
+ string sql = $@"UPDATE CM_WORKING_PALLET_DTL SET CURRENT_NUMBER = CURRENT_NUMBER + 1,UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 WHERE IR_CODE = '{ktb_IR.Text.Trim()}' AND SHEET_TYPE_CODE = '{((ListItem)kcmb_SheetType.SelectedItem).Value}' AND CONTAMINATION_DTL_CODE = '{kbtnMd.Name.Replace("kbtn_", "")}' AND WORKING_PALLET_CODE = '{ktb_CurrPalletCode.Text.Trim()}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + kbtnMd.Name.Replace("kbtn_", ""), true)[0] as KryptonNumericUpDown;
+ int currentIndex = Convert.ToInt32(knudmd.Value);
+ if (row > 0)
+ {
+ knudmd.Value = currentIndex + 1;
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】,托盘号:【{ktb_CurrPalletCode.Text.Trim()}】,IR:【{ktb_IR.Text.Trim()}】,板材信息:【{kcmb_SheetType.Text}】。清洗类型:【{md.CLEAN_MODE_CODE}】污染类型:【{md.CONTAMINATION_TYPE_CODE}】污染明细:【{md.CONTAMINATION_TYPE_NAME}的明细+1计数成功。旧数据:【{currentIndex}】,新数据:【{currentIndex + 1}】!", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】,托盘号:【{ktb_CurrPalletCode.Text.Trim()}】,IR:【{ktb_IR.Text.Trim()}】,板材信息:【{kcmb_SheetType.Text}】。清洗类型:【{md.CLEAN_MODE_CODE}】污染类型:【{md.CONTAMINATION_TYPE_CODE}】污染明细:【{md.CONTAMINATION_TYPE_NAME}的明细计数+1功能,数据更新到数据库发生异常。", LogTypeEum.Err);
+ //KryptonMessageBox.Show($"清洗类型:【{md.CLEAN_MODE_CODE}】污染类型:【{md.CONTAMINATION_TYPE_CODE}】污染明细:【{md.CONTAMINATION_TYPE_NAME}】的计数+1功能,数据更新到数据库发生异常。");
+ KryptonMessageBox.Show($"Clean type: [{md.CLEAN_MODE_CODE}] pollution types: {md.CONTAMINATION_TYPE_CODE} [pollution] detail: [{md.CONTAMINATION_TYPE_NAME}] count + 1 function, abnormity data updates to the database.");
+ }
+ kryptonGroupBox1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ private void ktb_Other_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+
+ if (ktb_SaveIR.Enabled)
+ {
+ //KryptonMessageBox.Show("未录入板材信息和IR收货编号信息,不能进行计数处理!");
+ KryptonMessageBox.Show("The plate information and IR receiving number information are not entered, so the counting process cannot be carried out!");
+ return;
+ }
+ string sql = $@"UPDATE CM_WORKING_PALLET_DTL SET CURRENT_NUMBER = CURRENT_NUMBER + 1,UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 WHERE IR_CODE = '{ktb_IR.Text.Trim()}' AND SHEET_TYPE_CODE = '{((ListItem)kcmb_SheetType.SelectedItem).Value}' AND CLEAN_MODE_CODE = '{kbtn_Others.Name.Replace("kbtn_", "")}' AND WORKING_PALLET_CODE = '{ktb_CurrPalletCode.Text.Trim()}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ int currentIndex = Convert.ToInt32(knud_Others.Value);
+ if (row > 0)
+ {
+ knud_Others.Value = currentIndex + 1;
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】,托盘号:【{ktb_CurrPalletCode.Text.Trim()}】,IR:【{ktb_IR.Text.Trim()}】,板材信息:【{kcmb_SheetType.Text}】。其它污染明细+1计数成功。旧数据:【{currentIndex}】,新数据:【{currentIndex + 1}】!", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】,托盘号:【{ktb_CurrPalletCode.Text.Trim()}】,IR:【{ktb_IR.Text.Trim()}】,板材信息:【{kcmb_SheetType.Text}】。其它计数+1功能,数据更新到数据库发生异常!", LogTypeEum.Err);
+ //KryptonMessageBox.Show("其它计数+1功能,数据更新到数据库发生异常。");
+ KryptonMessageBox.Show("Other count +1 function, data update to the database occurred an exception.");
+ }
+ kryptonGroupBox1.Focus();
+ }
+ catch (Exception ex)
+ {
+ //KryptonMessageBox.Show("其它计数+1功能发生异常!" + ex.Message);
+ KryptonMessageBox.Show("Other count +1 function occurred abnormal!" + ex.Message);
+ }
+ }
+
+ private void kryptonButton1_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ DialogResult dr = KryptonMessageBox.Show("Are you sure you want to reenter the sheet and IR information? If you continue to reset the current job information, you will need to enter new IR and sheet information. please carefully operation!!!", "Prompt", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
+ if (dr == DialogResult.Yes)
+ {
+ string sqlUpdateWorkPalletDtl = $@"UPDATE CM_WORKING_PALLET_DTL SET INPUT_TIME = datetime('now', 'localtime'),UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1,WORKING_DTL_STATUS = 1 WHERE WORKING_PALLET_CODE = '{ktb_CurrPalletCode.Text}' and IR_CODE = '{ktb_IR.Text}' and SHEET_TYPE_CODE = '{kcmb_SheetType.Text}'";
+ LeadDbHelperSQLite.ExecuteSql(sqlUpdateWorkPalletDtl);
+
+ kcmb_SheetType.Enabled = true;
+ ktb_IR.Enabled = true;
+ kdtp_RecordDate.Enabled = true;
+ ktb_SaveIR.Enabled = true;
+
+ //kryptonGroupBox10.Enabled = false;
+ kryptonGroupBox2.Enabled = false;
+ kryptonGroupBox3.Enabled = false;
+ kryptonGroupBox4.Enabled = false;
+ kryptonGroupBox5.Enabled = false;
+ kbtn_Scrap.Enabled = false;
+ kbtn_Scrap_1.Enabled = false;
+
+ //清空当前内存污染计数
+ foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
+ {
+ if (string.IsNullOrEmpty(item.CONTAMINATION_DTL_CODE))
+ {//常规清洗 清零(其他污染)
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("knud_" + item.CLEAN_MODE_CODE, true).Length > 0)
+ {
+ KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + item.CLEAN_MODE_CODE, true)[0] as KryptonNumericUpDown;
+ knudmd.Value = 0;
+ }
+ }));
+ }
+ else
+ {//特殊清洗 清零
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("knud_" + item.CONTAMINATION_DTL_CODE, true).Length > 0)
+ {
+ KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + item.CONTAMINATION_DTL_CODE, true)[0] as KryptonNumericUpDown;
+ knudmd.Value = 0;
+ }
+ }));
+ }
+ }
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】点击重录按钮!当前作业托盘号:【{ktb_CurrPalletCode.Text.Trim()}】,当前作业IR:【{ktb_IR.Text.Trim()}】,当前作业板材信息:【{kcmb_SheetType.Text}】", LogTypeEum.Run);
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ private void kbtn_Scrap_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+ if (string.IsNullOrEmpty(ktb_Scrap.Text))
+ {
+ KryptonMessageBox.Show("No information was entered for waste count.");
+ return;
+ }
+ if (ktb_SaveIR.Enabled)
+ {
+ KryptonMessageBox.Show("The plate information and IR receiving number information are not entered, so the counting process cannot be carried out!");
+ return;
+ }
+ string sql = $@"UPDATE CM_WORKING_PALLET_DTL SET CURRENT_NUMBER = CURRENT_NUMBER + 1,UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 WHERE IR_CODE = '{ktb_IR.Text.Trim()}' AND SHEET_TYPE_CODE = '{((ListItem)kcmb_SheetType.SelectedItem).Value}' AND CLEAN_MODE_CODE = '{kbtn_Scrap.Name.Replace("kbtn_", "")}' AND WORKING_PALLET_CODE = '{ktb_CurrPalletCode.Text.Trim()}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ int currentIndex = Convert.ToInt32(ktb_Scrap.Text);
+ if (row > 0)
+ {
+ ktb_Scrap.Text = (currentIndex + 1).ToString();
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】,托盘号:【{ktb_CurrPalletCode.Text.Trim()}】,IR:【{ktb_IR.Text.Trim()}】,板材信息:【{kcmb_SheetType.Text}】。废料明细+1计数成功。旧数据:【{currentIndex}】,新数据:【{currentIndex + 1}】!", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】,托盘号:【{ktb_CurrPalletCode.Text.Trim()}】,IR:【{ktb_IR.Text.Trim()}】,板材信息:【{kcmb_SheetType.Text}】。废料计数+1功能,数据更新到数据库发生异常!", LogTypeEum.Err);
+ KryptonMessageBox.Show("Waste count +1 function, data update to the database occurred an exception.");
+ }
+ kryptonGroupBox1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show("Waste count +1 function abnormal!" + ex.Message);
+ }
+ }
+
+ private void btnManual_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ //自动模式下,当前前机器属于停机状态时可启动手动模式
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMacRunStatusNew", PlcItemTypeDesc.M)))
+ {
+ //if (!AppConfig.SysIsRunFlag)
+ //{
+ PlcOperationHelper.Instance.WritePlcItem("ManualOrAuto", "True", PlcItemTypeDesc.M);
+ //GlobalHelper.MainForm.navigatorMain.SetNavPage(Domain.Enums.EnumFormType.Manual);
+ frmMainNew.SwitchFrmMenu(EnumFormType.Manual, false);
+ frmManual.LoadManualFrmData();
+ //}
+ //else
+ //{
+ // KryptonMessageBox.Show("Please press the stop button first!");
+ //}
+ }
+ else
+ {
+ //提示先停止系统运行
+ KryptonMessageBox.Show("Stop Running First!");
+ }
+
+ }
+ catch
+ {
+
+ }
+ }
+
+ private void btnIO_Click(object sender, EventArgs e)
+ {
+ //GlobalHelper.MainForm.navigatorMain.SetNavPage(Domain.Enums.EnumFormType.IoMonitor);
+ //frmMainNew.SwitchFrmMenu(EnumFormType.IoMonitor, false);
+ if (GlobalHelper.IoMonitor_2 == null)
+ {
+ frmIoMonitorNew frm = new frmIoMonitorNew();
+ GlobalHelper.IoMonitor_2 = frm;
+ GlobalHelper.IoMonitor_2.Activate();
+ GlobalHelper.IoMonitor_2.ShowDialog();
+ }
+ else
+ {
+ GlobalHelper.IoMonitor_2.Activate();
+ GlobalHelper.IoMonitor_2.ShowDialog();
+ }
+ }
+
+ private void btnParamater_Click(object sender, EventArgs e)
+ {
+ //GlobalHelper.MainForm.navigatorMain.SetNavPage(Domain.Enums.EnumFormType.Parameter);
+ frmMainNew.SwitchFrmMenu(EnumFormType.Parameter, false);
+ }
+
+
+ //自动模式下复位启动 M200 按1松0 别名 ResetSys
+ private void cbt_ResetSys_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ResetSys", PlcItemTypeDesc.M)) && !Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ManualOrAuto", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("ResetSys", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】点击重置设备按钮,重置信号发送PLC成功!", LogTypeEum.Run);
+ }
+ }
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ //复位 按1松0
+ private void cbt_ResetSys_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ PlcOperationHelper.Instance.WritePlcItem("ResetSys", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ //自动模式下启动 M201 按1松0模式 别名 StartSys
+ private void cbt_StartTran_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ if (swtbtn_brush1.L_IsOpen || swtbtn_brush2.L_IsOpen || swtbtn_brush3.L_IsOpen)
+ {
+ //启动进入自动模式
+ //PlcOperationHelper.Instance.WritePlcItem("ManualOrAuto", "False", PlcItemTypeDesc.M);
+ //启动
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("StartSys", PlcItemTypeDesc.M)) && !Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ManualOrAuto", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("StartSys", "True", PlcItemTypeDesc.M))
+ {
+ //GlobalHelper.SysIsRunFlag = true;
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】点击启动设备按钮,启动信号发送PLC成功!", LogTypeEum.Run);
+ }
+
+ }
+ }
+ else
+ {
+ KryptonMessageBox.Show("Brush Need to be Selected First!");
+ }
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+ //启动 按1松0
+ private void cbt_StartTran_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("StartSys", "False", PlcItemTypeDesc.M))
+ {
+ //GlobalHelper.SysIsRunFlag = true;
+ }
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ //自动模式下停止 M202 按1 松0 别名 StopSys
+ private void cbt_StopTran_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("StopSys", PlcItemTypeDesc.M)) && !Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ManualOrAuto", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("StopSys", "True", PlcItemTypeDesc.M))
+ {
+ //GlobalHelper.SysIsRunFlag = false;
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】点击停止设备按钮,停止信号发送PLC成功!", LogTypeEum.Run);
+ }
+ }
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ //停止按1 松0
+ private void cbt_StopTran_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("StopSys", "False", PlcItemTypeDesc.M))
+ {
+ //GlobalHelper.SysIsRunFlag = false;
+ }
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ private void cbt_StartClean_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("NozzleSolenoidValve", PlcItemTypeDesc.M)))
+ {
+ PlcOperationHelper.Instance.WritePlcItem("NozzleSolenoidValve", "True", PlcItemTypeDesc.M);
+ }
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ private void cbt_StartClean_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ PlcOperationHelper.Instance.WritePlcItem("NozzleSolenoidValve", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ private void kryptonButton3_MouseDown(object sender, MouseEventArgs e)
+ {
+
+ }
+
+ private void kryptonButton3_MouseUp(object sender, MouseEventArgs e)
+ {
+
+ }
+
+
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ PlcOperationHelper.Instance.WritePlcItem("WoringPalletPrintFinish", "True", PlcItemTypeDesc.M);
+ }
+ catch (Exception)
+ {
+ throw;
+ }
+ }
+
+
+
+
+
+ private void btnIR_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (ktb_IR.Enabled)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("当前没有作业中的IR信息!", "CurrWorkingIsNoIrMsg"));
+ }
+ else
+ {
+ //GlobalHelper.MainForm.navigatorMain.SetNavPage(Domain.Enums.EnumFormType.CurrWorkingIR);
+ frmMainNew.SwitchFrmMenu(EnumFormType.CurrWorkingIR, false);
+ frmCurrWorkingIrMsg.RefreshFrmHost();
+ }
+ }
+ catch
+ {
+
+ }
+ }
+
+
+ private void swtbtn_brush1_LSwitched(object sender, LEventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ swtbtn_brush1.L_IsOpen = false;
+ return;
+ }
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ swtbtn_brush1.L_IsOpen = false;
+ return;
+ }
+
+ //选中状态,并且跟当前状态有差别则发送选中状态
+ if (swtbtn_brush1.L_IsOpen)
+ {
+ PlcOperationHelper.Instance.WritePlcItem("Hairbrush1Selection", "True", PlcItemTypeDesc.M);
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】选中清洁毛刷1运行", LogTypeEum.Run);
+ }
+ else
+ {
+ PlcOperationHelper.Instance.WritePlcItem("Hairbrush1Selection", "False", PlcItemTypeDesc.M);
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】取消清洁毛刷1选中", LogTypeEum.Run);
+ }
+ //关闭状态,并且跟当前状态有差别则发送关闭状态
+ /*if (!swtbtn_brush1.L_IsOpen && !swtbtn_brush1.L_IsOpen.Equals(Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("Hairbrush1Selection", PlcItemTypeDesc.M))))
+ {
+ PlcOperationHelper.Instance.WritePlcItem("Hairbrush1Selection", "False", PlcItemTypeDesc.M);
+ }*/
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ private void swtbtn_brush2_LSwitched(object sender, LEventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ swtbtn_brush2.L_IsOpen = false;
+ return;
+ }
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ swtbtn_brush2.L_IsOpen = false;
+ return;
+ }
+
+ //选中状态,并且跟当前状态有差别则发送选中状态
+ if (swtbtn_brush2.L_IsOpen)
+ {
+ PlcOperationHelper.Instance.WritePlcItem("Hairbrush2Selection", "True", PlcItemTypeDesc.M);
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】选中清洁毛刷2运行", LogTypeEum.Run);
+ }
+ else
+ {
+ PlcOperationHelper.Instance.WritePlcItem("Hairbrush2Selection", "False", PlcItemTypeDesc.M);
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】取消清洁毛刷2选中", LogTypeEum.Run);
+ }
+ //关闭状态,并且跟当前状态有差别则发送关闭状态
+ /*if (!swtbtn_brush2.L_IsOpen && !swtbtn_brush2.L_IsOpen.Equals(Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("Hairbrush2Selection", PlcItemTypeDesc.M))))
+ {
+ PlcOperationHelper.Instance.WritePlcItem("Hairbrush2Selection", "False", PlcItemTypeDesc.M);
+ }*/
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ private void swtbtn_brush3_LocationChanged(object sender, EventArgs e)
+ {
+
+ }
+
+ private void swtbtn_nozzle1_LSwitched(object sender, LEventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ swtbtn_nozzle1.L_IsOpen = false;
+ return;
+ }
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ swtbtn_nozzle1.L_IsOpen = false;
+ return;
+ }
+
+ //选中状态,并且跟当前状态有差别则发送选中状态
+ if (swtbtn_nozzle1.L_IsOpen)
+ {
+ PlcOperationHelper.Instance.WritePlcItem("NozzleSelection", "True", PlcItemTypeDesc.M);
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】选中清洁喷头运行", LogTypeEum.Run);
+ }
+ else
+ {
+ PlcOperationHelper.Instance.WritePlcItem("NozzleSelection", "False", PlcItemTypeDesc.M);
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】取消清洁喷头选中", LogTypeEum.Run);
+ }
+ //关闭状态,并且跟当前状态有差别则发送关闭状态
+ /*if (!swtbtn_nozzle1.L_IsOpen && !swtbtn_nozzle1.L_IsOpen.Equals(Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("NozzleSelection", PlcItemTypeDesc.M))))
+ {
+ PlcOperationHelper.Instance.WritePlcItem("NozzleSelection", "False", PlcItemTypeDesc.M);
+ }*/
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ private void swtbtn_brush3_LSwitched(object sender, LEventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ swtbtn_brush3.L_IsOpen = false;
+ return;
+ }
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ swtbtn_brush3.L_IsOpen = false;
+ return;
+ }
+
+ //选中状态,并且跟当前状态有差别则发送选中状态
+ if (swtbtn_brush3.L_IsOpen)
+ {
+ PlcOperationHelper.Instance.WritePlcItem("Hairbrush3Selection", "True", PlcItemTypeDesc.M);
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】选中清洁毛刷3运行", LogTypeEum.Run);
+ }
+ else
+ {
+ PlcOperationHelper.Instance.WritePlcItem("Hairbrush3Selection", "False", PlcItemTypeDesc.M);
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】取消清洁毛刷3选中", LogTypeEum.Run);
+ }
+ //关闭状态,并且跟当前状态有差别则发送关闭状态
+ /*if (!swtbtn_brush3.L_IsOpen && !swtbtn_brush3.L_IsOpen.Equals(Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("Hairbrush3Selection", PlcItemTypeDesc.M))))
+ {
+ PlcOperationHelper.Instance.WritePlcItem("Hairbrush3Selection", "False", PlcItemTypeDesc.M);
+ }*/
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+
+ //自动模式下,上料启动操控 M228 按1松0 别名 FeedingStartMac
+ private void kryptonButton3_MouseDown_1(object sender, MouseEventArgs e)
+ {
+ kryptonButton2.Enabled = false;
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+
+ //检查上料进滚筒状态为停止状态,则启动上料操控,
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ManualOrAuto", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("FeedingStartMac", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】点击清洁机A段设备运行按钮,运行信号发送PLC成功!", LogTypeEum.Run);
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ //上料启动 按1松0
+ private void kryptonButton3_MouseUp_1(object sender, MouseEventArgs e)
+ { // 启动上料操控,是否需要发两个信号??
+ try
+ {
+ PlcOperationHelper.Instance.WritePlcItem("FeedingStartMac", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox1.Focus();
+ kryptonButton2.Enabled = true;
+ }
+
+ //出料空托进启动操控
+ private void kryptonButton6_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ //检查出料进滚筒状态为停止状态,则启动上料操控,
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("Discharge1InDrumCheck_IO", PlcItemTypeDesc.Y)))
+ {
+ PlcOperationHelper.Instance.WritePlcItem("DischargeInTrayStartMac", "True", PlcItemTypeDesc.M);
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ private void kryptonButton6_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ // 启动上料操控,是否需要发两个信号??
+ PlcOperationHelper.Instance.WritePlcItem("DischargeInTrayStartMac", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ //上料升降台上升操控 M218 按1松0 别名 FeedingLiftingDrumRise
+ private void kryptonButton4_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+
+ if (PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrumRise", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】点击清洁机B段升降台上升按钮,上升信号发送PLC成功!", LogTypeEum.Run);
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+ //上料升降台上升操控 按1松0
+ private void kryptonButton4_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrumRise", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox1.Focus();
+ }
+ //上料升降台下降操控 按1 松0 M220 别名 FeedingLiftingDrumDecline
+ private void kryptonButton5_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+
+ if (PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrumDecline", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】点击清洁机B段升降台下降按钮,下降信号发送PLC成功!", LogTypeEum.Run);
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+ //上料升降台下降操控 按1 松0
+ private void kryptonButton5_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+
+ PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrumDecline", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox1.Focus();
+ }
+
+ //出料升降台上升控制
+ private void kryptonButton7_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("DischargeLiftingDrumRise_IO", PlcItemTypeDesc.Y)))
+ {
+ PlcOperationHelper.Instance.WritePlcItem("DischargeLiftingDrumRise", "True", PlcItemTypeDesc.M);
+ }
+
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+ //出料升降台上升控制恢复置位
+ private void kryptonButton7_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+
+ PlcOperationHelper.Instance.WritePlcItem("DischargeLiftingDrumRise", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+
+ //出料升降台下降控制
+ private void kryptonButton8_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("DischargeLiftingDrumDecline_IO", PlcItemTypeDesc.Y)))
+ {
+ PlcOperationHelper.Instance.WritePlcItem("DischargeLiftingDrumDecline", "True", PlcItemTypeDesc.M);
+ }
+
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+ ///出料升降台下降控制恢复置位
+ private void kryptonButton8_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+
+ PlcOperationHelper.Instance.WritePlcItem("DischargeLiftingDrumDecline", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+ //自动模式下非满托强制满料 M232 按1松0 别名 ForceFullPallet
+ private void kbtn_forceFinish_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ManualOrAuto", PlcItemTypeDesc.M)))
+ {
+ PlcOperationHelper.Instance.WritePlcItem("ForceFullPallet", "True", PlcItemTypeDesc.M);
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】点击清洁机强制满料按钮,强制满料信号发送PLC成功!", LogTypeEum.Run);
+
+ }
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ private void kbtn_forceFinish_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ PlcOperationHelper.Instance.WritePlcItem("FinishWorkingPallet", "False", PlcItemTypeDesc.M);
+
+ PlcOperationHelper.Instance.WritePlcItem("ForceFullPallet", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ private void kryptonButton6_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ //自动模式下 D段上料 M229 按1松0 别名EmptyTrayInMacStart
+ private void kryptonButton6_MouseDown_1(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+
+ //检查上料进滚筒状态为停止状态,则启动上料操控,
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ManualOrAuto", PlcItemTypeDesc.M)))
+ {
+ PlcOperationHelper.Instance.WritePlcItem("EmptyTrayInMacStart", "True", PlcItemTypeDesc.M);
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】点击清洁机B段升降台下降按钮,下降信号发送PLC成功!", LogTypeEum.Run);
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ //D段上料 按1松0
+ private void kryptonButton6_MouseUp_1(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ PlcOperationHelper.Instance.WritePlcItem("EmptyTrayInMacStart", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox1.Focus();
+ }
+
+ //自动模式下,强制满料移出打印 M230 交替 别名 FinishWorkingPallet 同时发送打印指令--待补充
+ private void kryptonButton2_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ManualOrAuto", PlcItemTypeDesc.M)))
+ {
+ //if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FinishWorkingPallet", PlcItemTypeDesc.M)))
+ //{
+ // PlcOperationHelper.Instance.WritePlcItem("FinishWorkingPallet", "False", PlcItemTypeDesc.M);
+ //}
+ //else
+ //{
+ PlcOperationHelper.Instance.WritePlcItem("FinishWorkingPallet", "True", PlcItemTypeDesc.M);
+ //}
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+
+ }
+
+ //自动模式下,打印结束操控 M231 交替 别名: PrintFinish
+ private void kryptonButton7_Click(object sender, EventArgs e)
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ManualOrAuto", PlcItemTypeDesc.M)))
+ {
+ //if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("PrintFinish", PlcItemTypeDesc.M)))
+ //{
+ // PlcOperationHelper.Instance.WritePlcItem("PrintFinish", "False", PlcItemTypeDesc.M);
+ //}
+ //else
+ //{
+ PlcOperationHelper.Instance.WritePlcItem("PrintFinish", "True", PlcItemTypeDesc.M);
+ //}
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】点击清洁机打印完成按钮,打印完成信号发送PLC成功!", LogTypeEum.Run);
+ }
+
+ kryptonGroupBox1.Focus();
+ }
+
+ //静电棒选择 交替 M236 别名:StaticbarsSel
+ private void swtbtn_staticBar_LSwitched(object sender, LEventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ swtbtn_staticBar.L_IsOpen = false;
+ return;
+ }
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ swtbtn_staticBar.L_IsOpen = false;
+ return;
+ }
+
+ //选中状态,并且跟当前状态有差别则发送选中状态
+ if (swtbtn_staticBar.L_IsOpen)
+ {
+ PlcOperationHelper.Instance.WritePlcItem("StaticbarsSel", "True", PlcItemTypeDesc.M);
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】选中清洁机静电棒。", LogTypeEum.Run);
+ }
+ else
+ {
+ PlcOperationHelper.Instance.WritePlcItem("StaticbarsSel", "False", PlcItemTypeDesc.M);
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】取消清洁机静电棒选中。", LogTypeEum.Run);
+ }
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ //满料方式选择 M223 交替 别名:FullPalletMode
+ private void swtbtn_fullPalletMod_LSwitched(object sender, LEventArgs e)
+ {
+ //if (isManualStatus())
+ //{
+ // KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ // swtbtn_fullPalletMod.L_IsOpen = false;
+ // return;
+ //}
+ //if (!PlcOperationHelper.Instance.isConn)
+ //{
+ // KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ // swtbtn_fullPalletMod.L_IsOpen = false;
+ // return;
+ //}
+
+ ////选中状态,并且跟当前状态有差别则发送选中状态
+ //if (swtbtn_fullPalletMod.L_IsOpen)
+ //{
+ // PlcOperationHelper.Instance.WritePlcItem("FullPalletMode", "True", PlcItemTypeDesc.M);
+ // if (GlobalHelper.LanguageCode == "English")
+ // {
+ // kryptonLabel12.Text = "Delay Full";
+ // }
+ // else
+ // {
+ // kryptonLabel12.Text = "延时满料";
+ // }
+ // LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】切换满料方式为:【延时满料】", LogTypeEum.Run);
+ //}
+ //else
+ //{
+ // PlcOperationHelper.Instance.WritePlcItem("FullPalletMode", "False", PlcItemTypeDesc.M);
+ // if (GlobalHelper.LanguageCode == "English")
+ // {
+ // kryptonLabel12.Text = "Count Full";
+ // }
+ // else
+ // {
+ // kryptonLabel12.Text = "计数满料";
+ // }
+ // LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】切换满料方式为:【计数满料】", LogTypeEum.Run);
+ //}
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_IR.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_IR.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ knud_WorkedFullPalletNum.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_WorkedFullPalletNum.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private bool isManualStatus()
+ {
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ManualOrAuto", PlcItemTypeDesc.M)))
+ {
+ return true;
+ }
+ return false;
+ }
+
+ private void kbtn_Others_1_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+ int currentIndex = Convert.ToInt32(knud_Others.Value);
+ if (currentIndex == 0)
+ {
+ KryptonMessageBox.Show("The count cannot be less than 0.");
+ return;
+ }
+
+ if (ktb_SaveIR.Enabled)
+ {
+ KryptonMessageBox.Show("The plate information and IR receiving number information are not entered, so the counting process cannot be carried out!");
+ return;
+ }
+ string sql = $@"UPDATE CM_WORKING_PALLET_DTL SET CURRENT_NUMBER = CURRENT_NUMBER - 1,UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 WHERE IR_CODE = '{ktb_IR.Text.Trim()}' AND SHEET_TYPE_CODE = '{((ListItem)kcmb_SheetType.SelectedItem).Value}' AND CLEAN_MODE_CODE = '{kbtn_Others.Name.Replace("kbtn_", "").Replace("_1", "")}' AND WORKING_PALLET_CODE = '{ktb_CurrPalletCode.Text.Trim()}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ knud_Others.Value = currentIndex - 1;
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】,托盘号:【{ktb_CurrPalletCode.Text.Trim()}】,IR:【{ktb_IR.Text.Trim()}】,板材信息:【{kcmb_SheetType.Text}】。其它污染明细 -1 计数成功。旧数据:【{currentIndex}】,新数据:【{currentIndex - 1}】!", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】,托盘号:【{ktb_CurrPalletCode.Text.Trim()}】,IR:【{ktb_IR.Text.Trim()}】,板材信息:【{kcmb_SheetType.Text}】。其它计数 -1 功能,数据更新到数据库发生异常!", LogTypeEum.Err);
+ KryptonMessageBox.Show("Other count -1 function, data update to the database occurred an exception.");
+ }
+ kryptonGroupBox1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show("Other count -1 function occurred abnormal!" + ex.Message);
+ }
+ }
+
+ private void kbtn_GlassOrWoodShreds_1_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+ KryptonButton kbtnMd = sender as KryptonButton;
+ BasCleanTypeMsg md = basCleanTypeMsgList.Find(x => x.CONTAMINATION_DTL_CODE == kbtnMd.Name.Replace("kbtn_", "").Replace("_1", ""));
+ if (ktb_SaveIR.Enabled)
+ {
+ KryptonMessageBox.Show("The plate information and IR receiving number information are not entered, so the counting process cannot be carried out!");
+ return;
+ }
+ KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + kbtnMd.Name.Replace("kbtn_", "").Replace("_1", ""), true)[0] as KryptonNumericUpDown;
+ int currentIndex = Convert.ToInt32(knudmd.Value);
+
+ if (currentIndex == 0)
+ {
+ KryptonMessageBox.Show("The count cannot be less than 0.");
+ return;
+ }
+ string sql = $@"UPDATE CM_WORKING_PALLET_DTL SET CURRENT_NUMBER = CURRENT_NUMBER - 1,UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 WHERE IR_CODE = '{ktb_IR.Text.Trim()}' AND SHEET_TYPE_CODE = '{((ListItem)kcmb_SheetType.SelectedItem).Value}' AND CONTAMINATION_DTL_CODE = '{kbtnMd.Name.Replace("kbtn_", "").Replace("_1", "")}' AND WORKING_PALLET_CODE = '{ktb_CurrPalletCode.Text.Trim()}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ knudmd.Value = currentIndex - 1;
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】,托盘号:【{ktb_CurrPalletCode.Text.Trim()}】,IR:【{ktb_IR.Text.Trim()}】,板材信息:【{kcmb_SheetType.Text}】。清洗类型:【{md.CLEAN_MODE_CODE}】污染类型:【{md.CONTAMINATION_TYPE_CODE}】污染明细:【{md.CONTAMINATION_TYPE_NAME}的明细 -1 计数成功。旧数据:【{currentIndex}】,新数据:【{currentIndex - 1}】!", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】,托盘号:【{ktb_CurrPalletCode.Text.Trim()}】,IR:【{ktb_IR.Text.Trim()}】,板材信息:【{kcmb_SheetType.Text}】。清洗类型:【{md.CLEAN_MODE_CODE}】污染类型:【{md.CONTAMINATION_TYPE_CODE}】污染明细:【{md.CONTAMINATION_TYPE_NAME}的明细计数 -1 功能,数据更新到数据库发生异常。", LogTypeEum.Err);
+ KryptonMessageBox.Show($"Clean type: [{md.CLEAN_MODE_CODE}] pollution types: {md.CONTAMINATION_TYPE_CODE} [pollution] detail: [{md.CONTAMINATION_TYPE_NAME}] count - 1 function, abnormity data updates to the database.");
+ }
+ kryptonGroupBox1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ private void kbtn_Scrap_1_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+
+ if (string.IsNullOrEmpty(ktb_Scrap.Text))
+ {
+ KryptonMessageBox.Show("No information was entered for waste count.");
+ return;
+ }
+ if (ktb_SaveIR.Enabled)
+ {
+ KryptonMessageBox.Show("The plate information and IR receiving number information are not entered, so the counting process cannot be carried out!");
+ return;
+ }
+ int currentIndex = Convert.ToInt32(ktb_Scrap.Text);
+ if (currentIndex == 0)
+ {
+ KryptonMessageBox.Show("The count cannot be less than 0.");
+ return;
+ }
+
+ string sql = $@"UPDATE CM_WORKING_PALLET_DTL SET CURRENT_NUMBER = CURRENT_NUMBER - 1,UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 WHERE IR_CODE = '{ktb_IR.Text.Trim()}' AND SHEET_TYPE_CODE = '{((ListItem)kcmb_SheetType.SelectedItem).Value}' AND CLEAN_MODE_CODE = '{kbtn_Scrap.Name.Replace("kbtn_", "").Replace("_1", "")}' AND WORKING_PALLET_CODE = '{ktb_CurrPalletCode.Text.Trim()}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ ktb_Scrap.Text = (currentIndex - 1).ToString();
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】,托盘号:【{ktb_CurrPalletCode.Text.Trim()}】,IR:【{ktb_IR.Text.Trim()}】,板材信息:【{kcmb_SheetType.Text}】。废料明细 -1 计数成功。旧数据:【{currentIndex}】,新数据:【{currentIndex - 1}】!", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】,托盘号:【{ktb_CurrPalletCode.Text.Trim()}】,IR:【{ktb_IR.Text.Trim()}】,板材信息:【{kcmb_SheetType.Text}】。废料计数 -1 功能,数据更新到数据库发生异常!", LogTypeEum.Err);
+ KryptonMessageBox.Show("Waste count -1 function, data update to the database occurred an exception.");
+ }
+ kryptonGroupBox1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show("Waste count -1 function abnormal!" + ex.Message);
+ }
+ }
+
+ private void kbtn_WorkedFullPalletNum_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+
+ //todo 这里应该要增加判断当前托盘数量
+
+
+ if (PlcOperationHelper.Instance.WritePlcItem("WorkedFullPalletNum", knud_WorkedFullPalletNum.Text, PlcItemTypeDesc.D))
+ {
+ GlobalHelper.SyncFinishPalletData(knud_WorkedFullPalletNum.Text, EventArgs.Empty);
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改满托数量成功,修改值:【{knud_WorkedFullPalletNum.Text}】。操作模式:【自动】!", LogTypeEum.Run);
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox1.Focus();
+ }
+
+ private void kbtn_forceFinish_Click_1(object sender, EventArgs e)
+ {
+ kbtn_forceFinish.Enabled = false;
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+
+ if (ktb_SaveIR.Enabled)
+ {
+ KryptonMessageBox.Show("If IR information is not entered, the termination cannot be forced.");
+ return;
+ }
+ DialogResult dr = KryptonMessageBox.Show("Are you sure you want to force the end of the current IR assignment? If you continue to reset the current job information, you will need to enter new IR and sheet information. Please carefully operation!!!", "Prompt", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
+ if (dr == DialogResult.Yes)
+ {
+ //
+ string sql = $@"select sum(CURRENT_NUMBER) from VW_WORKING_PALLET_MSG where IR_CODE = '{ktb_IR.Text}'";
+
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+
+ int num = Convert.ToInt32(dt.Rows[0][0]);
+ if (num == 0)
+ {
+ dr = KryptonMessageBox.Show("There is no plate count in the current IR. If the confirmation continues, all information in the current IR will be deleted. Please carefully operation!!!", "Prompt", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
+ if (dr == DialogResult.Yes)
+ {
+ string sql1 = $@"delete from CM_WORKING_PALLET where WORKING_PALLET_CODE in (select WORKING_PALLET_CODE from CM_WORKING_PALLET_DTL where IR_CODE = '{ktb_IR.Text}')";
+ string sql2 = $@"delete from CM_WORKING_PALLET_DTL where IR_CODE = '{ktb_IR.Text}'";
+ LeadDbHelperSQLite.ExecuteSql(sql1);
+ LeadDbHelperSQLite.ExecuteSql(sql2);
+ KryptonMessageBox.Show("Delete IR information success!");
+
+ Invoke(new Action(() =>
+ {
+ //批次信息按钮可操作
+ ktb_SaveIR.Enabled = true;
+ kcmb_SheetType.Enabled = true;
+ ktb_IR.Enabled = true;
+ kdtp_RecordDate.Enabled = true;
+ kbtn_forceFinish.Enabled = true;
+
+ //污染类型操作禁用
+ //kryptonGroupBox10.Enabled = false;
+ kryptonGroupBox2.Enabled = false;
+ kryptonGroupBox3.Enabled = false;
+ kryptonGroupBox4.Enabled = false;
+ kryptonGroupBox5.Enabled = false;
+ kbtn_Scrap.Enabled = false;
+ kbtn_Scrap_1.Enabled = false;
+
+ //清空历史批次信息
+ kcmb_SheetType.SelectedIndex = 0;
+ ktb_IR.Text = "";
+ kdtp_RecordDate.Text = "";
+ kdtp_RecordDate.Checked = false;
+
+ ktb_CompleteNum.Text = "0";
+ ktb_ScrapNum.Text = "0";
+ }));
+
+ //清空当前内存污染计数
+ foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
+ {
+ if (string.IsNullOrEmpty(item.CONTAMINATION_DTL_CODE))
+ {//常规清洗 清零(其他污染)
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("knud_" + item.CLEAN_MODE_CODE, true).Length > 0)
+ {
+ KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + item.CLEAN_MODE_CODE, true)[0] as KryptonNumericUpDown;
+ knudmd.Value = 0;
+ }
+ }));
+ }
+ else
+ {//特殊清洗 清零
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("knud_" + item.CONTAMINATION_DTL_CODE, true).Length > 0)
+ {
+ KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + item.CONTAMINATION_DTL_CODE, true)[0] as KryptonNumericUpDown;
+ knudmd.Value = 0;
+ }
+ }));
+ }
+ }
+ }
+ }
+ else
+ {
+ string sql1 = $@"select CURRENT_NUMBER from CM_WORKING_PALLET_DTL where WORKING_PALLET_CODE = '{ktb_CurrPalletCode.Text.Trim()}' and CLEAN_MODE_CODE = 'SortedCleaned'";
+ DataTable dt1 = LeadDbHelperSQLite.Query(sql1).Tables[0];
+ if (dt1 != null && dt1.Rows.Count > 0)
+ {
+ //当前托盘在本IR中的数量
+ int cleanMacNum = Convert.ToInt32(dt1.Rows[0][0]);
+ //当前托盘在之前IR的数量之和
+
+ if (cleanMacNum > 0)
+ {
+ var isUseForceFullPallet = KryptonMessageBox.Show("Continue stack on current pallet?", "", MessageBoxButtons.YesNo) == DialogResult.Yes;
+
+ if (!isUseForceFullPallet) //使用强制满料方式结束IR
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("ForceFullPallet", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"作业IR:【{ktb_IR.Text}】强制完成,发送PLC强制满料信号成功。", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"作业IR:【{ktb_IR.Text}】已满料,发送PLC强制满料信号失败。", LogTypeEum.Err);
+ }
+
+ }
+ else
+ {
+ //IR结束 托盘保留
+ //停止设备运行.防止设备继续过料
+ // cbt_StopTran_MouseDown(null, null);
+ this.lastPaltteRemain += cleanMacNum;//设置当前托盘之前已经装载的数量
+ SubPrintPalletData(ktb_IR.Text, ktb_CurrPalletCode.Text.Trim());
+ // cbt_StartClean_MouseDown(null, null);
+
+ }
+ return;
+ }
+ //如果最后依托没有计数
+ string sqlUpdateWorkingPallet = $@"UPDATE CM_WORKING_PALLET SET WORKING_STATUS = 1,UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 where WORKING_PALLET_CODE = '{ktb_CurrPalletCode.Text.Trim()}';";
+ string sqlUpdateWorkingPalletDtl = $@"UPDATE CM_WORKING_PALLET_DTL SET WORKING_DTL_STATUS = 1,UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 where WORKING_PALLET_CODE = '{ktb_CurrPalletCode.Text.Trim()}';";
+ int row1 = LeadDbHelperSQLite.ExecuteSql(sqlUpdateWorkingPallet);
+ int row2 = LeadDbHelperSQLite.ExecuteSql(sqlUpdateWorkingPalletDtl);
+ string sql2 = $@"SELECT WORKING_PALLET_CODE from CM_WORKING_PALLET_DTL GROUP BY WORKING_PALLET_CODE HAVING SUM(CURRENT_NUMBER) = 0";
+ DataTable dt2 = LeadDbHelperSQLite.Query(sql2).Tables[0];
+ if (dt2 != null && dt2.Rows.Count > 0)
+ {
+ foreach (DataRow item in dt2.Rows)
+ {
+ string sqlTmp = $@"delete from CM_WORKING_PALLET where WORKING_PALLET_CODE = '{item["WORKING_PALLET_CODE"].ToString()}'";
+ string sqlTmp1 = $@"delete from CM_WORKING_PALLET_DTL where WORKING_PALLET_CODE = '{item["WORKING_PALLET_CODE"].ToString()}'";
+ LeadDbHelperSQLite.ExecuteSql(sqlTmp);
+ LeadDbHelperSQLite.ExecuteSql(sqlTmp1);
+ }
+ }
+ PrintWorkedIrMsg(ktb_IR.Text);
+ //保存打印数据
+ string sqlInsertZbkWorkingPallet = $@"INSERT INTO ZBK_WORKING_PALLET SELECT * FROM CM_WORKING_PALLET WHERE WORKING_PALLET_CODE in (select WORKING_PALLET_CODE from CM_WORKING_PALLET_DTL where IR_CODE = '{ktb_IR.Text}' and WORKING_DTL_STATUS = 1)";
+ string sqlInsertZbkWorkingPalletDtl = $@"INSERT INTO ZBK_WORKING_PALLET_DTL SELECT * FROM CM_WORKING_PALLET_DTL WHERE WORKING_DTL_STATUS = 1 and IR_CODE = '{ktb_IR.Text}';";
+ string sqlDeleteWorkingPallet = $@"delete from CM_WORKING_PALLET where WORKING_PALLET_CODE in (select WORKING_PALLET_CODE from CM_WORKING_PALLET_DTL where IR_CODE = '{ktb_IR.Text}' and WORKING_DTL_STATUS = 1);";
+ string sqlDeleteWorkingPalletDtl = $@"delete from CM_WORKING_PALLET_DTL where WORKING_DTL_STATUS = 1 and IR_CODE = '{ktb_IR.Text}';";
+
+ LeadDbHelperSQLite.ExecuteSql(sqlInsertZbkWorkingPalletDtl);
+ LeadDbHelperSQLite.ExecuteSql(sqlInsertZbkWorkingPallet);
+ LeadDbHelperSQLite.ExecuteSql(sqlDeleteWorkingPallet);
+ LeadDbHelperSQLite.ExecuteSql(sqlDeleteWorkingPalletDtl);
+
+
+ LogHelper.WriteLog($"作业IR:【{ktb_IR.Text}】已经结束,数据库信息重置完成。", LogTypeEum.Run);
+
+ Invoke(new Action(() =>
+ {
+ //批次信息按钮可操作
+ ktb_SaveIR.Enabled = true;
+ kcmb_SheetType.Enabled = true;
+ ktb_IR.Enabled = true;
+ kdtp_RecordDate.Enabled = true;
+ kbtn_forceFinish.Enabled = true;
+
+ //污染类型操作禁用
+ //kryptonGroupBox10.Enabled = false;
+ kryptonGroupBox2.Enabled = false;
+ kryptonGroupBox3.Enabled = false;
+ kryptonGroupBox4.Enabled = false;
+ kryptonGroupBox5.Enabled = false;
+ kbtn_Scrap.Enabled = false;
+ kbtn_Scrap_1.Enabled = false;
+
+ //清空历史批次信息
+ kcmb_SheetType.SelectedIndex = 0;
+ ktb_IR.Text = "";
+ kdtp_RecordDate.Text = "";
+ kdtp_RecordDate.Checked = false;
+
+ ktb_CompleteNum.Text = "0";
+ ktb_ScrapNum.Text = "0";
+ ktb_CurrPalletCode.Text = "";
+ ktb_CurrentPalletNum.Text = "0";
+ ktb_FinishedPalletNum.Text = "0";
+
+ }));
+
+ //清空当前内存污染计数
+ foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
+ {
+ if (string.IsNullOrEmpty(item.CONTAMINATION_DTL_CODE))
+ {//常规清洗 清零(其他污染)
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("knud_" + item.CLEAN_MODE_CODE, true).Length > 0)
+ {
+ KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + item.CLEAN_MODE_CODE, true)[0] as KryptonNumericUpDown;
+ knudmd.Value = 0;
+ }
+ }));
+ }
+ else
+ {//特殊清洗 清零
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("knud_" + item.CONTAMINATION_DTL_CODE, true).Length > 0)
+ {
+ KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + item.CONTAMINATION_DTL_CODE, true)[0] as KryptonNumericUpDown;
+ knudmd.Value = 0;
+ }
+ }));
+ }
+ }
+
+ KryptonMessageBox.Show("Completed IR job successfully!");
+ }
+ else
+ {
+ KryptonMessageBox.Show("Completed IR job failed!");
+ }
+ }
+ }
+ }
+ kryptonGroupBox1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kbtn_forceFinish.Enabled = true;
+ }
+
+ private void kryptonNumericUpDown1_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void kryptonTextBox1_KeyPress(object sender, KeyPressEventArgs e)
+ {
+ if (e.KeyChar != '\b')//这是允许输入退格键
+ {
+ if ((e.KeyChar < '0') || (e.KeyChar > '9'))//这是允许输入0-9数字
+ {
+ e.Handled = true;
+ }
+ }
+ }
+
+ private void kryptonButton2_MouseDown(object sender, MouseEventArgs e)
+ {
+ kryptonButton3.Enabled = false;
+ try
+ {
+ if (isManualStatus())
+ {
+ KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
+ return;
+ }
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+
+ //检查上料进滚筒状态为停止状态,则启动上料操控,
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ManualOrAuto", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("FeedingDrumABRollback", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】点击清洁机AB段设备反转按钮,反转信号发送PLC成功!", LogTypeEum.Run);
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ private void kryptonButton2_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ PlcOperationHelper.Instance.WritePlcItem("FeedingDrumABRollback", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox1.Focus();
+ kryptonButton3.Enabled = true;
+ }
+
+ private void cbt_ResetSys_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void button1_Click_1(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmMainDetail.resx b/CleanMachineHMI/FrmUserControl/frmMainDetail.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmMainDetail.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/frmMaintenance.Designer.cs b/CleanMachineHMI/FrmUserControl/frmMaintenance.Designer.cs
new file mode 100644
index 0000000..0ce1be5
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmMaintenance.Designer.cs
@@ -0,0 +1,214 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmMaintenance
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.btn_logout = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.lbtitle = new System.Windows.Forms.Label();
+ this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonGroupBox4 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kbtn_Pass_Yes = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonLabel55 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbwarning = new System.Windows.Forms.Label();
+ this.kryptonTextBox1 = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4.Panel)).BeginInit();
+ this.kryptonGroupBox4.Panel.SuspendLayout();
+ this.kryptonGroupBox4.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.CaptionOverlap = 0D;
+ this.kryptonGroupBox1.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.btn_logout);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.lbtitle);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(1024, 95);
+ this.kryptonGroupBox1.TabIndex = 6;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // btn_logout
+ //
+ this.btn_logout.Location = new System.Drawing.Point(859, 15);
+ this.btn_logout.Name = "btn_logout";
+ this.btn_logout.Size = new System.Drawing.Size(101, 60);
+ this.btn_logout.StateCommon.Content.ShortText.Font = new System.Drawing.Font("新宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btn_logout.TabIndex = 18;
+ this.btn_logout.Values.Text = "EXIT";
+ this.btn_logout.Click += new System.EventHandler(this.btn_logout_Click);
+ //
+ // lbtitle
+ //
+ this.lbtitle.AutoSize = true;
+ this.lbtitle.BackColor = System.Drawing.Color.Transparent;
+ this.lbtitle.Font = new System.Drawing.Font("宋体", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbtitle.Location = new System.Drawing.Point(10, 29);
+ this.lbtitle.Name = "lbtitle";
+ this.lbtitle.Size = new System.Drawing.Size(552, 27);
+ this.lbtitle.TabIndex = 0;
+ this.lbtitle.Text = "The equipment is under maintenance !";
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.CaptionOverlap = 0D;
+ this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 95);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonGroupBox4);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.lbwarning);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(1024, 577);
+ this.kryptonGroupBox2.TabIndex = 7;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // kryptonGroupBox4
+ //
+ this.kryptonGroupBox4.CaptionOverlap = 0D;
+ this.kryptonGroupBox4.Location = new System.Drawing.Point(58, 98);
+ this.kryptonGroupBox4.Name = "kryptonGroupBox4";
+ //
+ // kryptonGroupBox4.Panel
+ //
+ this.kryptonGroupBox4.Panel.Controls.Add(this.kryptonTextBox1);
+ this.kryptonGroupBox4.Panel.Controls.Add(this.kbtn_Pass_Yes);
+ this.kryptonGroupBox4.Panel.Controls.Add(this.kryptonLabel55);
+ this.kryptonGroupBox4.Size = new System.Drawing.Size(872, 278);
+ this.kryptonGroupBox4.TabIndex = 22;
+ this.kryptonGroupBox4.Values.Heading = "Maintaining";
+ //
+ // kbtn_Pass_Yes
+ //
+ this.kbtn_Pass_Yes.Location = new System.Drawing.Point(312, 192);
+ this.kbtn_Pass_Yes.Name = "kbtn_Pass_Yes";
+ this.kbtn_Pass_Yes.Size = new System.Drawing.Size(245, 40);
+ this.kbtn_Pass_Yes.StateCommon.Back.Color1 = System.Drawing.Color.Lime;
+ this.kbtn_Pass_Yes.StateCommon.Back.Color2 = System.Drawing.Color.Lime;
+ this.kbtn_Pass_Yes.StateCommon.Border.Color1 = System.Drawing.Color.Black;
+ this.kbtn_Pass_Yes.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.kbtn_Pass_Yes.StateCommon.Border.Width = 2;
+ this.kbtn_Pass_Yes.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_Pass_Yes.TabIndex = 26;
+ this.kbtn_Pass_Yes.Values.Text = "Relieve Maintain";
+ this.kbtn_Pass_Yes.Click += new System.EventHandler(this.kbtn_Pass_Yes_Click);
+ //
+ // kryptonLabel55
+ //
+ this.kryptonLabel55.Location = new System.Drawing.Point(43, 41);
+ this.kryptonLabel55.Name = "kryptonLabel55";
+ this.kryptonLabel55.Size = new System.Drawing.Size(789, 35);
+ this.kryptonLabel55.StateCommon.ShortText.Color1 = System.Drawing.Color.Black;
+ this.kryptonLabel55.StateCommon.ShortText.Color2 = System.Drawing.Color.Black;
+ this.kryptonLabel55.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel55.TabIndex = 25;
+ this.kryptonLabel55.Values.Text = "Please enter the Maintenance Unconfirmation Code ! ";
+ //
+ // lbwarning
+ //
+ this.lbwarning.AutoSize = true;
+ this.lbwarning.BackColor = System.Drawing.Color.Transparent;
+ this.lbwarning.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbwarning.Location = new System.Drawing.Point(11, 366);
+ this.lbwarning.Name = "lbwarning";
+ this.lbwarning.Size = new System.Drawing.Size(19, 20);
+ this.lbwarning.TabIndex = 0;
+ this.lbwarning.Text = " ";
+ //
+ // kryptonTextBox1
+ //
+ this.kryptonTextBox1.Location = new System.Drawing.Point(213, 117);
+ this.kryptonTextBox1.Name = "kryptonTextBox1";
+ this.kryptonTextBox1.Size = new System.Drawing.Size(433, 37);
+ this.kryptonTextBox1.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.kryptonTextBox1.StateCommon.Border.Width = 2;
+ this.kryptonTextBox1.StateCommon.Content.Color1 = System.Drawing.Color.Black;
+ this.kryptonTextBox1.StateCommon.Content.Font = new System.Drawing.Font("新宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonTextBox1.TabIndex = 27;
+ this.kryptonTextBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // frmMaintenance
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.kryptonGroupBox2);
+ this.Controls.Add(this.kryptonGroupBox1);
+ this.Name = "frmMaintenance";
+ this.Size = new System.Drawing.Size(1024, 672);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ this.kryptonGroupBox1.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ this.kryptonGroupBox2.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4.Panel)).EndInit();
+ this.kryptonGroupBox4.Panel.ResumeLayout(false);
+ this.kryptonGroupBox4.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4)).EndInit();
+ this.kryptonGroupBox4.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btn_logout;
+ private System.Windows.Forms.Label lbtitle;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox4;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Pass_Yes;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel55;
+ private System.Windows.Forms.Label lbwarning;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox kryptonTextBox1;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmMaintenance.cs b/CleanMachineHMI/FrmUserControl/frmMaintenance.cs
new file mode 100644
index 0000000..1f6492d
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmMaintenance.cs
@@ -0,0 +1,76 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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
+{
+ [FormType(EnumFormType.Maintenance)]
+ public partial class frmMaintenance : UserControl
+ {
+ public frmMaintenance()
+ {
+ InitializeComponent();
+ }
+
+ private void kbtn_Pass_Yes_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (string.IsNullOrEmpty(kryptonTextBox1.Text))
+ {
+ KryptonMessageBox.Show("The code cannot be empty !");
+ return;
+ }
+ string sqlParam = $@"SELECT * FROM SYS_PARAMETER";
+ DataTable dtParam = LeadDbHelperSQLite.Query(sqlParam).Tables[0];
+ if (dtParam != null && dtParam.Rows.Count > 0)
+ {
+ string maintainRelieveCode = dtParam.Select("PARAMETER_CODE = 'MaintainRelieveCode'")[0]["PARAMETER_VALUE"].ToString();
+ if (kryptonTextBox1.Text == maintainRelieveCode)
+ {
+ bool canOperate = Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("SelfCheckPassFlag", PlcItemTypeDesc.M));
+ //自检通过则切换至主界面,否则进入自检画面
+ if (canOperate)
+ {
+ frmMainNew.SwitchFrmMenu(EnumFormType.MainDetail, true);
+ }
+ else
+ {
+ frmMainNew.SwitchFrmMenu(EnumFormType.MechineCheck, true);
+ }
+ string sqlUpdateParam = $@"update SYS_PARAMETER set PARAMETER_VALUE = '0' WHERE PARAMETER_CODE = 'MaintainFlag'";
+ LeadDbHelperSQLite.ExecuteSql(sqlUpdateParam);
+ string sqlUpdateRunTimeLen = $@"UPDATE SYS_PARAMETER set PARAMETER_VALUE = '0' WHERE PARAMETER_CODE = 'SysRuningTimeLen'";
+ LeadDbHelperSQLite.ExecuteSql(sqlUpdateRunTimeLen);
+ frmMainNew.RemoveMaintainingFlag();
+ }
+ else
+ {
+ KryptonMessageBox.Show("Inputted maintenance uncode error !");
+ return;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ private void btn_logout_Click(object sender, EventArgs e)
+ {
+ GlobalHelper.LoginForm.Show();
+ GlobalHelper.MainFormNew.Hide();
+ }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmMaintenance.resx b/CleanMachineHMI/FrmUserControl/frmMaintenance.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmMaintenance.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/frmManual.Designer.cs b/CleanMachineHMI/FrmUserControl/frmManual.Designer.cs
new file mode 100644
index 0000000..485aa55
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmManual.Designer.cs
@@ -0,0 +1,1004 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmManual
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.kryptonLabel9 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel11 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel10 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel8 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel7 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel6 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_DischargeLiftingDrumTime = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_WorkedFullPalletNum = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_DrumTimeOut = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_CleanMacOutDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_FrequencyOfFeedingLiftingDrum = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_CleanMacInDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_DischargeOutDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_FrequencyOfDischargeLiftingDrum = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_FeedingDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_DischargeDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.panMain = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel4 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonGroupBox8 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonButton8 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton9 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton7 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton2 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton6 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton3 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton4 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton5 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonPanel3 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonGroupBox4 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonGroupBox3 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonButton12 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbt_PushPalletValve = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.ktb_DischargeInTrayStartMac = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton10 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_BlockingSolenoidValve = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_DischargeLiftingDrumRise = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_DischargeLiftingDrumDecline = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonButton13 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_FeedingLiftingDrumDecline = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton14 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton11 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_FeedingLiftingDrumRise = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton15 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.ktb_FeedingStartMac = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.knud_WorkedFullPalletNum = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.knud_FrequencyOfDischargeLiftingDrum = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.knud_DischargeOutDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.knud_DischargeDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.knud_DischargeLiftingDrumTime = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.knud_DrumTimeOut = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.knud_AlarmDelayedTime = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.knud_FullPalletDelayTime = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.knud_CleanMacOutDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kbtn_AlarmDelayedTime = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_CleanMacInDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonLabel13 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.knud_FrequencyOfFeedingLiftingDrum = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.knud_FeedingDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ ((System.ComponentModel.ISupportInitialize)(this.panMain)).BeginInit();
+ this.panMain.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
+ this.kryptonPanel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel4)).BeginInit();
+ this.kryptonPanel4.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox8)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox8.Panel)).BeginInit();
+ this.kryptonGroupBox8.Panel.SuspendLayout();
+ this.kryptonGroupBox8.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit();
+ this.kryptonPanel3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4.Panel)).BeginInit();
+ this.kryptonGroupBox4.Panel.SuspendLayout();
+ this.kryptonGroupBox4.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3.Panel)).BeginInit();
+ this.kryptonGroupBox3.Panel.SuspendLayout();
+ this.kryptonGroupBox3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonLabel9
+ //
+ this.kryptonLabel9.Location = new System.Drawing.Point(417, 385);
+ this.kryptonLabel9.Name = "kryptonLabel9";
+ this.kryptonLabel9.Size = new System.Drawing.Size(67, 25);
+ this.kryptonLabel9.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel9.TabIndex = 15;
+ this.kryptonLabel9.Values.Text = "Piece";
+ //
+ // kryptonLabel11
+ //
+ this.kryptonLabel11.Location = new System.Drawing.Point(455, 26);
+ this.kryptonLabel11.Name = "kryptonLabel11";
+ this.kryptonLabel11.Size = new System.Drawing.Size(24, 25);
+ this.kryptonLabel11.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel11.TabIndex = 15;
+ this.kryptonLabel11.Values.Text = "S";
+ //
+ // kryptonLabel10
+ //
+ this.kryptonLabel10.Location = new System.Drawing.Point(455, 116);
+ this.kryptonLabel10.Name = "kryptonLabel10";
+ this.kryptonLabel10.Size = new System.Drawing.Size(24, 25);
+ this.kryptonLabel10.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel10.TabIndex = 15;
+ this.kryptonLabel10.Values.Text = "S";
+ //
+ // kryptonLabel8
+ //
+ this.kryptonLabel8.Location = new System.Drawing.Point(455, 298);
+ this.kryptonLabel8.Name = "kryptonLabel8";
+ this.kryptonLabel8.Size = new System.Drawing.Size(24, 25);
+ this.kryptonLabel8.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel8.TabIndex = 15;
+ this.kryptonLabel8.Values.Text = "S";
+ //
+ // kryptonLabel7
+ //
+ this.kryptonLabel7.Location = new System.Drawing.Point(439, 478);
+ this.kryptonLabel7.Name = "kryptonLabel7";
+ this.kryptonLabel7.Size = new System.Drawing.Size(35, 25);
+ this.kryptonLabel7.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel7.TabIndex = 15;
+ this.kryptonLabel7.Values.Text = "Hz";
+ //
+ // kryptonLabel6
+ //
+ this.kryptonLabel6.Location = new System.Drawing.Point(193, 478);
+ this.kryptonLabel6.Name = "kryptonLabel6";
+ this.kryptonLabel6.Size = new System.Drawing.Size(35, 25);
+ this.kryptonLabel6.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel6.TabIndex = 15;
+ this.kryptonLabel6.Values.Text = "Hz";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Location = new System.Drawing.Point(194, 385);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(35, 25);
+ this.kryptonLabel5.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel5.TabIndex = 15;
+ this.kryptonLabel5.Values.Text = "Hz";
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Location = new System.Drawing.Point(193, 296);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(35, 25);
+ this.kryptonLabel4.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel4.TabIndex = 15;
+ this.kryptonLabel4.Values.Text = "Hz";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Location = new System.Drawing.Point(193, 205);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(35, 25);
+ this.kryptonLabel3.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel3.TabIndex = 15;
+ this.kryptonLabel3.Values.Text = "Hz";
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Location = new System.Drawing.Point(193, 114);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(35, 25);
+ this.kryptonLabel2.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel2.TabIndex = 15;
+ this.kryptonLabel2.Values.Text = "Hz";
+ //
+ // kryptonLabel1
+ //
+ this.kryptonLabel1.Location = new System.Drawing.Point(193, 25);
+ this.kryptonLabel1.Name = "kryptonLabel1";
+ this.kryptonLabel1.Size = new System.Drawing.Size(35, 25);
+ this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel1.TabIndex = 15;
+ this.kryptonLabel1.Values.Text = "Hz";
+ //
+ // kryptonButton1
+ //
+ this.kryptonButton1.Location = new System.Drawing.Point(264, 327);
+ this.kryptonButton1.Name = "kryptonButton1";
+ this.kryptonButton1.Size = new System.Drawing.Size(220, 35);
+ this.kryptonButton1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton1.TabIndex = 13;
+ this.kryptonButton1.Values.Text = "满料延时时间";
+ this.kryptonButton1.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // kbtn_DischargeLiftingDrumTime
+ //
+ this.kbtn_DischargeLiftingDrumTime.Location = new System.Drawing.Point(264, 55);
+ this.kbtn_DischargeLiftingDrumTime.Name = "kbtn_DischargeLiftingDrumTime";
+ this.kbtn_DischargeLiftingDrumTime.Size = new System.Drawing.Size(220, 35);
+ this.kbtn_DischargeLiftingDrumTime.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_DischargeLiftingDrumTime.TabIndex = 11;
+ this.kbtn_DischargeLiftingDrumTime.Values.Text = "出料升降台滚筒超时时间";
+ this.kbtn_DischargeLiftingDrumTime.Click += new System.EventHandler(this.kbtn_DisChargeLiftingTime_Click);
+ //
+ // kbtn_WorkedFullPalletNum
+ //
+ this.kbtn_WorkedFullPalletNum.Location = new System.Drawing.Point(264, 416);
+ this.kbtn_WorkedFullPalletNum.Name = "kbtn_WorkedFullPalletNum";
+ this.kbtn_WorkedFullPalletNum.Size = new System.Drawing.Size(220, 35);
+ this.kbtn_WorkedFullPalletNum.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_WorkedFullPalletNum.TabIndex = 9;
+ this.kbtn_WorkedFullPalletNum.Values.Text = "满托数量";
+ this.kbtn_WorkedFullPalletNum.Click += new System.EventHandler(this.kbtn_WorkedPalletNum_Click);
+ //
+ // kbtn_DrumTimeOut
+ //
+ this.kbtn_DrumTimeOut.Location = new System.Drawing.Point(264, 145);
+ this.kbtn_DrumTimeOut.Name = "kbtn_DrumTimeOut";
+ this.kbtn_DrumTimeOut.Size = new System.Drawing.Size(220, 35);
+ this.kbtn_DrumTimeOut.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_DrumTimeOut.TabIndex = 7;
+ this.kbtn_DrumTimeOut.Values.Text = "滚筒超时时间";
+ this.kbtn_DrumTimeOut.Click += new System.EventHandler(this.kbtn_DrumTimeOut_Click);
+ //
+ // kbtn_CleanMacOutDrumFrequency
+ //
+ this.kbtn_CleanMacOutDrumFrequency.Location = new System.Drawing.Point(19, 327);
+ this.kbtn_CleanMacOutDrumFrequency.Name = "kbtn_CleanMacOutDrumFrequency";
+ this.kbtn_CleanMacOutDrumFrequency.Size = new System.Drawing.Size(220, 35);
+ this.kbtn_CleanMacOutDrumFrequency.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_CleanMacOutDrumFrequency.TabIndex = 2;
+ this.kbtn_CleanMacOutDrumFrequency.Values.Text = "清洁机出滚筒频率";
+ this.kbtn_CleanMacOutDrumFrequency.Click += new System.EventHandler(this.kbtn_CleanMacOutDrumFrequency_Click);
+ //
+ // kbtn_FrequencyOfFeedingLiftingDrum
+ //
+ this.kbtn_FrequencyOfFeedingLiftingDrum.Location = new System.Drawing.Point(19, 145);
+ this.kbtn_FrequencyOfFeedingLiftingDrum.Name = "kbtn_FrequencyOfFeedingLiftingDrum";
+ this.kbtn_FrequencyOfFeedingLiftingDrum.Size = new System.Drawing.Size(220, 35);
+ this.kbtn_FrequencyOfFeedingLiftingDrum.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_FrequencyOfFeedingLiftingDrum.TabIndex = 2;
+ this.kbtn_FrequencyOfFeedingLiftingDrum.Values.Text = "上料升降台滚筒频率";
+ this.kbtn_FrequencyOfFeedingLiftingDrum.Click += new System.EventHandler(this.kbtn_FrequencyOfFeedingLiftingDrum_Click);
+ //
+ // kbtn_CleanMacInDrumFrequency
+ //
+ this.kbtn_CleanMacInDrumFrequency.Location = new System.Drawing.Point(19, 236);
+ this.kbtn_CleanMacInDrumFrequency.Name = "kbtn_CleanMacInDrumFrequency";
+ this.kbtn_CleanMacInDrumFrequency.Size = new System.Drawing.Size(220, 35);
+ this.kbtn_CleanMacInDrumFrequency.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_CleanMacInDrumFrequency.TabIndex = 2;
+ this.kbtn_CleanMacInDrumFrequency.Values.Text = "清洁机进滚筒频率";
+ this.kbtn_CleanMacInDrumFrequency.Click += new System.EventHandler(this.kbtn_CleanMacInDrumFrequency_Click);
+ //
+ // kbtn_DischargeOutDrumFrequency
+ //
+ this.kbtn_DischargeOutDrumFrequency.Location = new System.Drawing.Point(19, 509);
+ this.kbtn_DischargeOutDrumFrequency.Name = "kbtn_DischargeOutDrumFrequency";
+ this.kbtn_DischargeOutDrumFrequency.Size = new System.Drawing.Size(220, 35);
+ this.kbtn_DischargeOutDrumFrequency.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_DischargeOutDrumFrequency.TabIndex = 2;
+ this.kbtn_DischargeOutDrumFrequency.Values.Text = "出料出滚筒频率";
+ this.kbtn_DischargeOutDrumFrequency.Click += new System.EventHandler(this.kbtn_DischargeOutDrumFrequency_Click);
+ //
+ // kbtn_FrequencyOfDischargeLiftingDrum
+ //
+ this.kbtn_FrequencyOfDischargeLiftingDrum.Location = new System.Drawing.Point(264, 509);
+ this.kbtn_FrequencyOfDischargeLiftingDrum.Name = "kbtn_FrequencyOfDischargeLiftingDrum";
+ this.kbtn_FrequencyOfDischargeLiftingDrum.Size = new System.Drawing.Size(220, 35);
+ this.kbtn_FrequencyOfDischargeLiftingDrum.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_FrequencyOfDischargeLiftingDrum.TabIndex = 2;
+ this.kbtn_FrequencyOfDischargeLiftingDrum.Values.Text = "出料升降台滚筒频率";
+ this.kbtn_FrequencyOfDischargeLiftingDrum.Click += new System.EventHandler(this.kbtn_FrequencyOfDischargeLiftingDrum_Click);
+ //
+ // kbtn_FeedingDrumFrequency
+ //
+ this.kbtn_FeedingDrumFrequency.Location = new System.Drawing.Point(19, 55);
+ this.kbtn_FeedingDrumFrequency.Name = "kbtn_FeedingDrumFrequency";
+ this.kbtn_FeedingDrumFrequency.Size = new System.Drawing.Size(220, 35);
+ this.kbtn_FeedingDrumFrequency.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_FeedingDrumFrequency.TabIndex = 2;
+ this.kbtn_FeedingDrumFrequency.Values.Text = "上料进滚筒频率";
+ this.kbtn_FeedingDrumFrequency.Click += new System.EventHandler(this.kbtn_FeedingDrumFrequency_Click);
+ //
+ // kbtn_DischargeDrumFrequency
+ //
+ this.kbtn_DischargeDrumFrequency.Location = new System.Drawing.Point(19, 416);
+ this.kbtn_DischargeDrumFrequency.Name = "kbtn_DischargeDrumFrequency";
+ this.kbtn_DischargeDrumFrequency.Size = new System.Drawing.Size(220, 35);
+ this.kbtn_DischargeDrumFrequency.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_DischargeDrumFrequency.TabIndex = 2;
+ this.kbtn_DischargeDrumFrequency.Values.Text = "出料进滚筒频率";
+ this.kbtn_DischargeDrumFrequency.Click += new System.EventHandler(this.kbtn_DischargeDrumFrequency_Click);
+ //
+ // panMain
+ //
+ this.panMain.Controls.Add(this.kryptonPanel2);
+ this.panMain.Controls.Add(this.kryptonPanel1);
+ this.panMain.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panMain.Location = new System.Drawing.Point(0, 0);
+ this.panMain.Name = "panMain";
+ this.panMain.Size = new System.Drawing.Size(1024, 672);
+ this.panMain.TabIndex = 1;
+ //
+ // kryptonPanel2
+ //
+ this.kryptonPanel2.Controls.Add(this.kryptonPanel4);
+ this.kryptonPanel2.Controls.Add(this.kryptonPanel3);
+ this.kryptonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel2.Location = new System.Drawing.Point(508, 0);
+ this.kryptonPanel2.Name = "kryptonPanel2";
+ this.kryptonPanel2.Size = new System.Drawing.Size(516, 672);
+ this.kryptonPanel2.TabIndex = 5;
+ //
+ // kryptonPanel4
+ //
+ this.kryptonPanel4.Controls.Add(this.kryptonGroupBox8);
+ this.kryptonPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel4.Location = new System.Drawing.Point(0, 370);
+ this.kryptonPanel4.Name = "kryptonPanel4";
+ this.kryptonPanel4.Size = new System.Drawing.Size(516, 302);
+ this.kryptonPanel4.TabIndex = 1;
+ //
+ // kryptonGroupBox8
+ //
+ this.kryptonGroupBox8.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox8.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox8.Name = "kryptonGroupBox8";
+ //
+ // kryptonGroupBox8.Panel
+ //
+ this.kryptonGroupBox8.Panel.Controls.Add(this.kryptonButton8);
+ this.kryptonGroupBox8.Panel.Controls.Add(this.kryptonButton9);
+ this.kryptonGroupBox8.Panel.Controls.Add(this.kryptonButton7);
+ this.kryptonGroupBox8.Panel.Controls.Add(this.kryptonButton2);
+ this.kryptonGroupBox8.Panel.Controls.Add(this.kryptonButton6);
+ this.kryptonGroupBox8.Panel.Controls.Add(this.kryptonButton3);
+ this.kryptonGroupBox8.Panel.Controls.Add(this.kryptonButton4);
+ this.kryptonGroupBox8.Panel.Controls.Add(this.kryptonButton5);
+ this.kryptonGroupBox8.Size = new System.Drawing.Size(516, 302);
+ this.kryptonGroupBox8.TabIndex = 2;
+ this.kryptonGroupBox8.Values.Heading = "SECTION C";
+ //
+ // kryptonButton8
+ //
+ this.kryptonButton8.Location = new System.Drawing.Point(18, 146);
+ this.kryptonButton8.Name = "kryptonButton8";
+ this.kryptonButton8.Size = new System.Drawing.Size(210, 35);
+ this.kryptonButton8.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton8.TabIndex = 12;
+ this.kryptonButton8.Values.Text = "静电启动";
+ this.kryptonButton8.Click += new System.EventHandler(this.kryptonButton8_Click);
+ //
+ // kryptonButton9
+ //
+ this.kryptonButton9.Location = new System.Drawing.Point(263, 146);
+ this.kryptonButton9.Name = "kryptonButton9";
+ this.kryptonButton9.Size = new System.Drawing.Size(210, 35);
+ this.kryptonButton9.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton9.TabIndex = 13;
+ this.kryptonButton9.Values.Text = "吸尘电机";
+ this.kryptonButton9.Click += new System.EventHandler(this.kryptonButton9_Click);
+ //
+ // kryptonButton7
+ //
+ this.kryptonButton7.Location = new System.Drawing.Point(263, 105);
+ this.kryptonButton7.Name = "kryptonButton7";
+ this.kryptonButton7.Size = new System.Drawing.Size(210, 35);
+ this.kryptonButton7.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton7.TabIndex = 11;
+ this.kryptonButton7.Values.Text = "清洁喷头";
+ this.kryptonButton7.Click += new System.EventHandler(this.kryptonButton7_Click);
+ //
+ // kryptonButton2
+ //
+ this.kryptonButton2.Location = new System.Drawing.Point(17, 23);
+ this.kryptonButton2.Name = "kryptonButton2";
+ this.kryptonButton2.Size = new System.Drawing.Size(210, 35);
+ this.kryptonButton2.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton2.TabIndex = 6;
+ this.kryptonButton2.Values.Text = "清洁1";
+ this.kryptonButton2.Click += new System.EventHandler(this.kryptonButton2_Click);
+ //
+ // kryptonButton6
+ //
+ this.kryptonButton6.Location = new System.Drawing.Point(263, 64);
+ this.kryptonButton6.Name = "kryptonButton6";
+ this.kryptonButton6.Size = new System.Drawing.Size(210, 35);
+ this.kryptonButton6.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton6.TabIndex = 10;
+ this.kryptonButton6.Values.Text = "清洁出料";
+ this.kryptonButton6.Click += new System.EventHandler(this.kryptonButton6_Click);
+ //
+ // kryptonButton3
+ //
+ this.kryptonButton3.Location = new System.Drawing.Point(17, 64);
+ this.kryptonButton3.Name = "kryptonButton3";
+ this.kryptonButton3.Size = new System.Drawing.Size(210, 35);
+ this.kryptonButton3.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton3.TabIndex = 7;
+ this.kryptonButton3.Values.Text = "清洁2";
+ this.kryptonButton3.Click += new System.EventHandler(this.kryptonButton3_Click);
+ //
+ // kryptonButton4
+ //
+ this.kryptonButton4.Location = new System.Drawing.Point(17, 105);
+ this.kryptonButton4.Name = "kryptonButton4";
+ this.kryptonButton4.Size = new System.Drawing.Size(210, 35);
+ this.kryptonButton4.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton4.TabIndex = 8;
+ this.kryptonButton4.Values.Text = "清洁3";
+ this.kryptonButton4.Click += new System.EventHandler(this.kryptonButton4_Click);
+ //
+ // kryptonButton5
+ //
+ this.kryptonButton5.Location = new System.Drawing.Point(263, 23);
+ this.kryptonButton5.Name = "kryptonButton5";
+ this.kryptonButton5.Size = new System.Drawing.Size(210, 35);
+ this.kryptonButton5.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton5.TabIndex = 9;
+ this.kryptonButton5.Values.Text = "清洁进料";
+ this.kryptonButton5.Click += new System.EventHandler(this.kryptonButton5_Click);
+ //
+ // kryptonPanel3
+ //
+ this.kryptonPanel3.Controls.Add(this.kryptonGroupBox4);
+ this.kryptonPanel3.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonPanel3.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel3.Name = "kryptonPanel3";
+ this.kryptonPanel3.Size = new System.Drawing.Size(516, 370);
+ this.kryptonPanel3.TabIndex = 0;
+ //
+ // kryptonGroupBox4
+ //
+ this.kryptonGroupBox4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox4.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox4.Name = "kryptonGroupBox4";
+ //
+ // kryptonGroupBox4.Panel
+ //
+ this.kryptonGroupBox4.Panel.Controls.Add(this.kryptonGroupBox3);
+ this.kryptonGroupBox4.Panel.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonGroupBox4.Size = new System.Drawing.Size(516, 370);
+ this.kryptonGroupBox4.TabIndex = 1;
+ this.kryptonGroupBox4.Values.Heading = "OTHER";
+ //
+ // kryptonGroupBox3
+ //
+ this.kryptonGroupBox3.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kryptonGroupBox3.Location = new System.Drawing.Point(263, 0);
+ this.kryptonGroupBox3.Name = "kryptonGroupBox3";
+ //
+ // kryptonGroupBox3.Panel
+ //
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kryptonButton12);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kbt_PushPalletValve);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.ktb_DischargeInTrayStartMac);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kryptonButton10);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kbtn_BlockingSolenoidValve);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kbtn_DischargeLiftingDrumRise);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kbtn_DischargeLiftingDrumDecline);
+ this.kryptonGroupBox3.Size = new System.Drawing.Size(249, 346);
+ this.kryptonGroupBox3.TabIndex = 1;
+ this.kryptonGroupBox3.Values.Heading = "SECTION DEF";
+ //
+ // kryptonButton12
+ //
+ this.kryptonButton12.Location = new System.Drawing.Point(18, 187);
+ this.kryptonButton12.Name = "kryptonButton12";
+ this.kryptonButton12.Size = new System.Drawing.Size(210, 35);
+ this.kryptonButton12.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton12.TabIndex = 15;
+ this.kryptonButton12.Values.Text = "出料升降滚筒";
+ this.kryptonButton12.Click += new System.EventHandler(this.kryptonButton12_Click);
+ //
+ // kbt_PushPalletValve
+ //
+ this.kbt_PushPalletValve.Location = new System.Drawing.Point(18, 277);
+ this.kbt_PushPalletValve.Name = "kbt_PushPalletValve";
+ this.kbt_PushPalletValve.Size = new System.Drawing.Size(210, 35);
+ this.kbt_PushPalletValve.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbt_PushPalletValve.TabIndex = 5;
+ this.kbt_PushPalletValve.Values.Text = "推料气缸";
+ this.kbt_PushPalletValve.Click += new System.EventHandler(this.kbt_PushPalletValve_Click);
+ //
+ // ktb_DischargeInTrayStartMac
+ //
+ this.ktb_DischargeInTrayStartMac.Location = new System.Drawing.Point(18, 9);
+ this.ktb_DischargeInTrayStartMac.Name = "ktb_DischargeInTrayStartMac";
+ this.ktb_DischargeInTrayStartMac.Size = new System.Drawing.Size(210, 35);
+ this.ktb_DischargeInTrayStartMac.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.ktb_DischargeInTrayStartMac.TabIndex = 4;
+ this.ktb_DischargeInTrayStartMac.Values.Text = "出料进滚筒";
+ this.ktb_DischargeInTrayStartMac.Click += new System.EventHandler(this.ktb_DischargeInTrayStartMac_Click);
+ //
+ // kryptonButton10
+ //
+ this.kryptonButton10.Location = new System.Drawing.Point(18, 53);
+ this.kryptonButton10.Name = "kryptonButton10";
+ this.kryptonButton10.Size = new System.Drawing.Size(210, 35);
+ this.kryptonButton10.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton10.TabIndex = 14;
+ this.kryptonButton10.Values.Text = "出料出滚筒";
+ this.kryptonButton10.Click += new System.EventHandler(this.kryptonButton10_Click);
+ //
+ // kbtn_BlockingSolenoidValve
+ //
+ this.kbtn_BlockingSolenoidValve.Location = new System.Drawing.Point(18, 232);
+ this.kbtn_BlockingSolenoidValve.Name = "kbtn_BlockingSolenoidValve";
+ this.kbtn_BlockingSolenoidValve.Size = new System.Drawing.Size(210, 35);
+ this.kbtn_BlockingSolenoidValve.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_BlockingSolenoidValve.TabIndex = 2;
+ this.kbtn_BlockingSolenoidValve.Values.Text = "挡料气缸";
+ this.kbtn_BlockingSolenoidValve.Click += new System.EventHandler(this.kbtn_BlockingSolenoidValve_Click);
+ //
+ // kbtn_DischargeLiftingDrumRise
+ //
+ this.kbtn_DischargeLiftingDrumRise.Location = new System.Drawing.Point(18, 97);
+ this.kbtn_DischargeLiftingDrumRise.Name = "kbtn_DischargeLiftingDrumRise";
+ this.kbtn_DischargeLiftingDrumRise.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
+ this.kbtn_DischargeLiftingDrumRise.Size = new System.Drawing.Size(210, 35);
+ this.kbtn_DischargeLiftingDrumRise.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_DischargeLiftingDrumRise.TabIndex = 2;
+ this.kbtn_DischargeLiftingDrumRise.Values.Image = global::CleanMachineHMI.Properties.Resources.上升_1;
+ this.kbtn_DischargeLiftingDrumRise.Values.Text = "出料升降台上升";
+ this.kbtn_DischargeLiftingDrumRise.MouseDown += new System.Windows.Forms.MouseEventHandler(this.kbtn_DischargeLiftingDrumRise_MouseDown);
+ this.kbtn_DischargeLiftingDrumRise.MouseUp += new System.Windows.Forms.MouseEventHandler(this.kbtn_DischargeLiftingDrumRise_MouseUp);
+ //
+ // kbtn_DischargeLiftingDrumDecline
+ //
+ this.kbtn_DischargeLiftingDrumDecline.Location = new System.Drawing.Point(18, 142);
+ this.kbtn_DischargeLiftingDrumDecline.Name = "kbtn_DischargeLiftingDrumDecline";
+ this.kbtn_DischargeLiftingDrumDecline.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
+ this.kbtn_DischargeLiftingDrumDecline.Size = new System.Drawing.Size(210, 35);
+ this.kbtn_DischargeLiftingDrumDecline.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_DischargeLiftingDrumDecline.TabIndex = 2;
+ this.kbtn_DischargeLiftingDrumDecline.Values.Image = global::CleanMachineHMI.Properties.Resources.下降_1;
+ this.kbtn_DischargeLiftingDrumDecline.Values.Text = "出料升降台下降";
+ this.kbtn_DischargeLiftingDrumDecline.MouseDown += new System.Windows.Forms.MouseEventHandler(this.kbtn_DischargeLiftingDrumDecline_MouseDown);
+ this.kbtn_DischargeLiftingDrumDecline.MouseUp += new System.Windows.Forms.MouseEventHandler(this.kbtn_DischargeLiftingDrumDecline_MouseUp);
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonButton13);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kbtn_FeedingLiftingDrumDecline);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonButton14);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonButton11);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kbtn_FeedingLiftingDrumRise);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonButton15);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.ktb_FeedingStartMac);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(512, 346);
+ this.kryptonGroupBox2.TabIndex = 0;
+ this.kryptonGroupBox2.Values.Heading = "SECTION AB";
+ //
+ // kryptonButton13
+ //
+ this.kryptonButton13.Location = new System.Drawing.Point(12, 277);
+ this.kryptonButton13.Name = "kryptonButton13";
+ this.kryptonButton13.Size = new System.Drawing.Size(240, 35);
+ this.kryptonButton13.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton13.TabIndex = 15;
+ this.kryptonButton13.Values.Text = "计数清零";
+ this.kryptonButton13.Click += new System.EventHandler(this.kryptonButton13_Click);
+ //
+ // kbtn_FeedingLiftingDrumDecline
+ //
+ this.kbtn_FeedingLiftingDrumDecline.Location = new System.Drawing.Point(12, 142);
+ this.kbtn_FeedingLiftingDrumDecline.Name = "kbtn_FeedingLiftingDrumDecline";
+ this.kbtn_FeedingLiftingDrumDecline.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
+ this.kbtn_FeedingLiftingDrumDecline.Size = new System.Drawing.Size(240, 35);
+ this.kbtn_FeedingLiftingDrumDecline.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_FeedingLiftingDrumDecline.TabIndex = 2;
+ this.kbtn_FeedingLiftingDrumDecline.Values.Image = global::CleanMachineHMI.Properties.Resources.下降_1;
+ this.kbtn_FeedingLiftingDrumDecline.Values.Text = "上料升降台下降";
+ this.kbtn_FeedingLiftingDrumDecline.MouseDown += new System.Windows.Forms.MouseEventHandler(this.kbtn_FeedingLiftingDrumDecline_MouseDown);
+ this.kbtn_FeedingLiftingDrumDecline.MouseUp += new System.Windows.Forms.MouseEventHandler(this.kbtn_FeedingLiftingDrumDecline_MouseUp);
+ //
+ // kryptonButton14
+ //
+ this.kryptonButton14.Location = new System.Drawing.Point(12, 232);
+ this.kryptonButton14.Name = "kryptonButton14";
+ this.kryptonButton14.Size = new System.Drawing.Size(240, 35);
+ this.kryptonButton14.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton14.TabIndex = 15;
+ this.kryptonButton14.Values.Text = "上料升降滚筒反转";
+ this.kryptonButton14.Click += new System.EventHandler(this.kryptonButton14_Click);
+ //
+ // kryptonButton11
+ //
+ this.kryptonButton11.Location = new System.Drawing.Point(12, 187);
+ this.kryptonButton11.Name = "kryptonButton11";
+ this.kryptonButton11.Size = new System.Drawing.Size(240, 35);
+ this.kryptonButton11.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton11.TabIndex = 15;
+ this.kryptonButton11.Values.Text = "上料升降滚筒正转";
+ this.kryptonButton11.Click += new System.EventHandler(this.kryptonButton11_Click);
+ //
+ // kbtn_FeedingLiftingDrumRise
+ //
+ this.kbtn_FeedingLiftingDrumRise.Location = new System.Drawing.Point(12, 97);
+ this.kbtn_FeedingLiftingDrumRise.Name = "kbtn_FeedingLiftingDrumRise";
+ this.kbtn_FeedingLiftingDrumRise.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
+ this.kbtn_FeedingLiftingDrumRise.Size = new System.Drawing.Size(240, 35);
+ this.kbtn_FeedingLiftingDrumRise.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_FeedingLiftingDrumRise.TabIndex = 2;
+ this.kbtn_FeedingLiftingDrumRise.Values.Image = global::CleanMachineHMI.Properties.Resources.上升_1;
+ this.kbtn_FeedingLiftingDrumRise.Values.Text = "上料升降台上升";
+ this.kbtn_FeedingLiftingDrumRise.MouseDown += new System.Windows.Forms.MouseEventHandler(this.kbtn_FeedingLiftingDrumRise_MouseDown);
+ this.kbtn_FeedingLiftingDrumRise.MouseUp += new System.Windows.Forms.MouseEventHandler(this.kbtn_FeedingLiftingDrumRise_MouseUp);
+ //
+ // kryptonButton15
+ //
+ this.kryptonButton15.Location = new System.Drawing.Point(12, 53);
+ this.kryptonButton15.Name = "kryptonButton15";
+ this.kryptonButton15.Size = new System.Drawing.Size(240, 35);
+ this.kryptonButton15.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton15.TabIndex = 3;
+ this.kryptonButton15.Values.Text = "上料进滚筒反转";
+ this.kryptonButton15.Click += new System.EventHandler(this.kryptonButton15_Click);
+ //
+ // ktb_FeedingStartMac
+ //
+ this.ktb_FeedingStartMac.Location = new System.Drawing.Point(12, 9);
+ this.ktb_FeedingStartMac.Name = "ktb_FeedingStartMac";
+ this.ktb_FeedingStartMac.Size = new System.Drawing.Size(240, 35);
+ this.ktb_FeedingStartMac.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.ktb_FeedingStartMac.TabIndex = 3;
+ this.ktb_FeedingStartMac.Values.Text = "上料进滚筒正转";
+ this.ktb_FeedingStartMac.Click += new System.EventHandler(this.ktb_FeedingStartMac_Click);
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Left;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(508, 672);
+ this.kryptonPanel1.TabIndex = 4;
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.knud_WorkedFullPalletNum);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.knud_FrequencyOfDischargeLiftingDrum);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.knud_DischargeOutDrumFrequency);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.knud_DischargeDrumFrequency);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.knud_DischargeLiftingDrumTime);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.knud_DrumTimeOut);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.knud_AlarmDelayedTime);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.knud_FullPalletDelayTime);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.knud_CleanMacOutDrumFrequency);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kbtn_AlarmDelayedTime);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.knud_CleanMacInDrumFrequency);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel13);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.knud_FrequencyOfFeedingLiftingDrum);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.knud_FeedingDrumFrequency);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel9);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel11);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel10);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel8);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel7);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel6);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel5);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel4);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel3);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel2);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel1);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonButton1);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kbtn_DischargeLiftingDrumTime);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kbtn_WorkedFullPalletNum);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kbtn_DrumTimeOut);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kbtn_CleanMacOutDrumFrequency);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kbtn_FrequencyOfFeedingLiftingDrum);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kbtn_CleanMacInDrumFrequency);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kbtn_DischargeOutDrumFrequency);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kbtn_FrequencyOfDischargeLiftingDrum);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kbtn_FeedingDrumFrequency);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kbtn_DischargeDrumFrequency);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(508, 672);
+ this.kryptonGroupBox1.TabIndex = 0;
+ this.kryptonGroupBox1.Values.Heading = "Paras";
+ //
+ // knud_WorkedFullPalletNum
+ //
+ this.knud_WorkedFullPalletNum.Location = new System.Drawing.Point(264, 381);
+ this.knud_WorkedFullPalletNum.Name = "knud_WorkedFullPalletNum";
+ this.knud_WorkedFullPalletNum.Size = new System.Drawing.Size(156, 35);
+ this.knud_WorkedFullPalletNum.StateCommon.Content.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_WorkedFullPalletNum.TabIndex = 16;
+ this.knud_WorkedFullPalletNum.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.knud_WorkedFullPalletNum.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.knud_FrequencyOfDischargeLiftingDrum_KeyPress);
+ //
+ // knud_FrequencyOfDischargeLiftingDrum
+ //
+ this.knud_FrequencyOfDischargeLiftingDrum.Location = new System.Drawing.Point(264, 474);
+ this.knud_FrequencyOfDischargeLiftingDrum.Name = "knud_FrequencyOfDischargeLiftingDrum";
+ this.knud_FrequencyOfDischargeLiftingDrum.Size = new System.Drawing.Size(174, 35);
+ this.knud_FrequencyOfDischargeLiftingDrum.StateCommon.Content.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_FrequencyOfDischargeLiftingDrum.TabIndex = 16;
+ this.knud_FrequencyOfDischargeLiftingDrum.Tag = "Hz";
+ this.knud_FrequencyOfDischargeLiftingDrum.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.knud_FrequencyOfDischargeLiftingDrum.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.knud_FrequencyOfDischargeLiftingDrum_KeyPress);
+ //
+ // knud_DischargeOutDrumFrequency
+ //
+ this.knud_DischargeOutDrumFrequency.Location = new System.Drawing.Point(19, 474);
+ this.knud_DischargeOutDrumFrequency.Name = "knud_DischargeOutDrumFrequency";
+ this.knud_DischargeOutDrumFrequency.Size = new System.Drawing.Size(174, 35);
+ this.knud_DischargeOutDrumFrequency.StateCommon.Content.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_DischargeOutDrumFrequency.TabIndex = 16;
+ this.knud_DischargeOutDrumFrequency.Tag = "Hz";
+ this.knud_DischargeOutDrumFrequency.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.knud_DischargeOutDrumFrequency.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.knud_FrequencyOfDischargeLiftingDrum_KeyPress);
+ //
+ // knud_DischargeDrumFrequency
+ //
+ this.knud_DischargeDrumFrequency.Location = new System.Drawing.Point(19, 381);
+ this.knud_DischargeDrumFrequency.Name = "knud_DischargeDrumFrequency";
+ this.knud_DischargeDrumFrequency.Size = new System.Drawing.Size(174, 35);
+ this.knud_DischargeDrumFrequency.StateCommon.Content.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_DischargeDrumFrequency.TabIndex = 16;
+ this.knud_DischargeDrumFrequency.Tag = "Hz";
+ this.knud_DischargeDrumFrequency.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.knud_DischargeDrumFrequency.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.knud_FrequencyOfDischargeLiftingDrum_KeyPress);
+ //
+ // knud_DischargeLiftingDrumTime
+ //
+ this.knud_DischargeLiftingDrumTime.Location = new System.Drawing.Point(264, 20);
+ this.knud_DischargeLiftingDrumTime.Name = "knud_DischargeLiftingDrumTime";
+ this.knud_DischargeLiftingDrumTime.Size = new System.Drawing.Size(190, 35);
+ this.knud_DischargeLiftingDrumTime.StateCommon.Content.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_DischargeLiftingDrumTime.TabIndex = 16;
+ this.knud_DischargeLiftingDrumTime.Tag = "time";
+ this.knud_DischargeLiftingDrumTime.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.knud_DischargeLiftingDrumTime.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.knud_FrequencyOfDischargeLiftingDrum_KeyPress);
+ //
+ // knud_DrumTimeOut
+ //
+ this.knud_DrumTimeOut.Location = new System.Drawing.Point(264, 110);
+ this.knud_DrumTimeOut.Name = "knud_DrumTimeOut";
+ this.knud_DrumTimeOut.Size = new System.Drawing.Size(190, 35);
+ this.knud_DrumTimeOut.StateCommon.Content.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_DrumTimeOut.TabIndex = 16;
+ this.knud_DrumTimeOut.Tag = "time";
+ this.knud_DrumTimeOut.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.knud_DrumTimeOut.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.knud_FrequencyOfDischargeLiftingDrum_KeyPress);
+ //
+ // knud_AlarmDelayedTime
+ //
+ this.knud_AlarmDelayedTime.Location = new System.Drawing.Point(264, 201);
+ this.knud_AlarmDelayedTime.Name = "knud_AlarmDelayedTime";
+ this.knud_AlarmDelayedTime.Size = new System.Drawing.Size(190, 35);
+ this.knud_AlarmDelayedTime.StateCommon.Content.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_AlarmDelayedTime.TabIndex = 16;
+ this.knud_AlarmDelayedTime.Tag = "time";
+ this.knud_AlarmDelayedTime.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.knud_AlarmDelayedTime.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.knud_FrequencyOfDischargeLiftingDrum_KeyPress);
+ //
+ // knud_FullPalletDelayTime
+ //
+ this.knud_FullPalletDelayTime.Location = new System.Drawing.Point(264, 292);
+ this.knud_FullPalletDelayTime.Name = "knud_FullPalletDelayTime";
+ this.knud_FullPalletDelayTime.Size = new System.Drawing.Size(190, 35);
+ this.knud_FullPalletDelayTime.StateCommon.Content.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_FullPalletDelayTime.TabIndex = 16;
+ this.knud_FullPalletDelayTime.Tag = "time";
+ this.knud_FullPalletDelayTime.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.knud_FullPalletDelayTime.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.knud_FrequencyOfDischargeLiftingDrum_KeyPress);
+ //
+ // knud_CleanMacOutDrumFrequency
+ //
+ this.knud_CleanMacOutDrumFrequency.Location = new System.Drawing.Point(19, 292);
+ this.knud_CleanMacOutDrumFrequency.Name = "knud_CleanMacOutDrumFrequency";
+ this.knud_CleanMacOutDrumFrequency.Size = new System.Drawing.Size(174, 35);
+ this.knud_CleanMacOutDrumFrequency.StateCommon.Content.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_CleanMacOutDrumFrequency.TabIndex = 16;
+ this.knud_CleanMacOutDrumFrequency.Tag = "Hz";
+ this.knud_CleanMacOutDrumFrequency.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.knud_CleanMacOutDrumFrequency.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.knud_FrequencyOfDischargeLiftingDrum_KeyPress);
+ //
+ // kbtn_AlarmDelayedTime
+ //
+ this.kbtn_AlarmDelayedTime.Location = new System.Drawing.Point(264, 236);
+ this.kbtn_AlarmDelayedTime.Name = "kbtn_AlarmDelayedTime";
+ this.kbtn_AlarmDelayedTime.Size = new System.Drawing.Size(220, 35);
+ this.kbtn_AlarmDelayedTime.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_AlarmDelayedTime.TabIndex = 5;
+ this.kbtn_AlarmDelayedTime.Values.Text = "报警延迟时间";
+ this.kbtn_AlarmDelayedTime.Click += new System.EventHandler(this.kbtn_AlarmDelayTime_Click);
+ //
+ // knud_CleanMacInDrumFrequency
+ //
+ this.knud_CleanMacInDrumFrequency.Location = new System.Drawing.Point(19, 201);
+ this.knud_CleanMacInDrumFrequency.Name = "knud_CleanMacInDrumFrequency";
+ this.knud_CleanMacInDrumFrequency.Size = new System.Drawing.Size(174, 35);
+ this.knud_CleanMacInDrumFrequency.StateCommon.Content.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_CleanMacInDrumFrequency.TabIndex = 16;
+ this.knud_CleanMacInDrumFrequency.Tag = "Hz";
+ this.knud_CleanMacInDrumFrequency.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.knud_CleanMacInDrumFrequency.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.knud_FrequencyOfDischargeLiftingDrum_KeyPress);
+ //
+ // kryptonLabel13
+ //
+ this.kryptonLabel13.Location = new System.Drawing.Point(455, 206);
+ this.kryptonLabel13.Name = "kryptonLabel13";
+ this.kryptonLabel13.Size = new System.Drawing.Size(24, 25);
+ this.kryptonLabel13.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel13.TabIndex = 15;
+ this.kryptonLabel13.Values.Text = "S";
+ //
+ // knud_FrequencyOfFeedingLiftingDrum
+ //
+ this.knud_FrequencyOfFeedingLiftingDrum.Location = new System.Drawing.Point(19, 110);
+ this.knud_FrequencyOfFeedingLiftingDrum.Name = "knud_FrequencyOfFeedingLiftingDrum";
+ this.knud_FrequencyOfFeedingLiftingDrum.Size = new System.Drawing.Size(174, 35);
+ this.knud_FrequencyOfFeedingLiftingDrum.StateCommon.Content.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_FrequencyOfFeedingLiftingDrum.TabIndex = 16;
+ this.knud_FrequencyOfFeedingLiftingDrum.Tag = "Hz";
+ this.knud_FrequencyOfFeedingLiftingDrum.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.knud_FrequencyOfFeedingLiftingDrum.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.knud_FrequencyOfDischargeLiftingDrum_KeyPress);
+ //
+ // knud_FeedingDrumFrequency
+ //
+ this.knud_FeedingDrumFrequency.Location = new System.Drawing.Point(19, 20);
+ this.knud_FeedingDrumFrequency.Name = "knud_FeedingDrumFrequency";
+ this.knud_FeedingDrumFrequency.Size = new System.Drawing.Size(174, 35);
+ this.knud_FeedingDrumFrequency.StateCommon.Content.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.knud_FeedingDrumFrequency.TabIndex = 16;
+ this.knud_FeedingDrumFrequency.Tag = "Hz";
+ this.knud_FeedingDrumFrequency.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.knud_FeedingDrumFrequency.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.knud_FrequencyOfDischargeLiftingDrum_KeyPress);
+ //
+ // frmManual
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panMain);
+ this.Name = "frmManual";
+ this.Size = new System.Drawing.Size(1024, 672);
+ this.Load += new System.EventHandler(this.frmManual_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.panMain)).EndInit();
+ this.panMain.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
+ this.kryptonPanel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel4)).EndInit();
+ this.kryptonPanel4.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox8.Panel)).EndInit();
+ this.kryptonGroupBox8.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox8)).EndInit();
+ this.kryptonGroupBox8.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).EndInit();
+ this.kryptonPanel3.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4.Panel)).EndInit();
+ this.kryptonGroupBox4.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4)).EndInit();
+ this.kryptonGroupBox4.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3.Panel)).EndInit();
+ this.kryptonGroupBox3.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3)).EndInit();
+ this.kryptonGroupBox3.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ this.kryptonGroupBox1.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel9;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel11;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel10;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel8;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel7;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel6;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_DischargeLiftingDrumTime;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_WorkedFullPalletNum;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_DrumTimeOut;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_CleanMacOutDrumFrequency;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_FrequencyOfFeedingLiftingDrum;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_CleanMacInDrumFrequency;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_DischargeOutDrumFrequency;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_FrequencyOfDischargeLiftingDrum;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_FeedingDrumFrequency;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_DischargeDrumFrequency;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel panMain;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel4;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox8;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton8;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton9;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton7;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton2;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton6;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton3;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton4;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton5;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel3;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox4;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox3;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton12;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_PushPalletValve;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton ktb_DischargeInTrayStartMac;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton10;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_BlockingSolenoidValve;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_DischargeLiftingDrumRise;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_DischargeLiftingDrumDecline;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton13;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_FeedingLiftingDrumDecline;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton11;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_FeedingLiftingDrumRise;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton ktb_FeedingStartMac;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_FeedingDrumFrequency;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_FrequencyOfFeedingLiftingDrum;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_CleanMacInDrumFrequency;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_CleanMacOutDrumFrequency;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_DischargeDrumFrequency;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_DischargeOutDrumFrequency;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_FrequencyOfDischargeLiftingDrum;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_WorkedFullPalletNum;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_FullPalletDelayTime;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_DrumTimeOut;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_DischargeLiftingDrumTime;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton14;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton15;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_AlarmDelayedTime;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_AlarmDelayedTime;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel13;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmManual.cs b/CleanMachineHMI/FrmUserControl/frmManual.cs
new file mode 100644
index 0000000..a14bb74
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmManual.cs
@@ -0,0 +1,1736 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using NX_LogUtility;
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ [FormType(EnumFormType.Manual)]
+ public partial class frmManual : UserControl
+ {
+ public frmManual()
+ {
+ InitializeComponent();
+ }
+ public delegate void dlgLoadManualFrmData();
+ public static dlgLoadManualFrmData LoadManualFrmData;
+ private Hashtable EmergencySwitchLst = Hashtable.Synchronized(new Hashtable());
+ private void frmManual_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ LoadManualFrmData = new dlgLoadManualFrmData(GetManualPlcItemVlaue);
+ GetManualPlcItemVlaue();
+ GlobalHelper.OnSyncFinishPalletData += SyncFinishPalletData;
+ //InitData(false);
+ //Thread th = new Thread(ThRunFunc)
+ //{
+ // IsBackground = true
+ //};
+ //th.Start();
+ kryptonGroupBox3.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ #region 20210206 孙亚龙新增 监控急停开关的代码
+ private bool ReadScramButtonValue()
+ {
+ return Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FeedingLiftingDrumLightCurtain2_IO", PlcItemTypeDesc.X)) || Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("DischargeLiftingDrumLightCurtain_IO", PlcItemTypeDesc.X)) || Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CrashStop_IO", PlcItemTypeDesc.X));
+ }
+ private void InitData(bool isReadNew)
+ {
+ if (!isReadNew)
+ {
+ EmergencySwitchLst.Add("FeedingLiftingDrumLightCurtain2_IO", new ScramButtonControl
+ {
+ OldValue = Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FeedingLiftingDrumLightCurtain2_IO", PlcItemTypeDesc.X)),
+ NewValue = Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FeedingLiftingDrumLightCurtain2_IO", PlcItemTypeDesc.X))
+ });
+ EmergencySwitchLst.Add("DischargeLiftingDrumLightCurtain_IO", new ScramButtonControl
+ {
+ OldValue = !Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("DischargeLiftingDrumLightCurtain_IO", PlcItemTypeDesc.X)),
+ NewValue = !Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("DischargeLiftingDrumLightCurtain_IO", PlcItemTypeDesc.X))
+ });
+ EmergencySwitchLst.Add("CrashStop_IO", new ScramButtonControl
+ {
+ OldValue = Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CrashStop_IO", PlcItemTypeDesc.X)),
+ NewValue = Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CrashStop_IO", PlcItemTypeDesc.X))
+ });
+ }
+ else
+ {
+ ((ScramButtonControl)EmergencySwitchLst["FeedingLiftingDrumLightCurtain2_IO"]).NewValue = Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FeedingLiftingDrumLightCurtain2_IO", PlcItemTypeDesc.X));
+ ((ScramButtonControl)EmergencySwitchLst["DischargeLiftingDrumLightCurtain_IO"]).NewValue = !Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("DischargeLiftingDrumLightCurtain_IO", PlcItemTypeDesc.X));
+ ((ScramButtonControl)EmergencySwitchLst["CrashStop_IO"]).NewValue = Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CrashStop_IO", PlcItemTypeDesc.X));
+ }
+ }
+ private bool GetScramButtonValue()
+ {
+ bool retVal = false;
+ foreach (ScramButtonControl item in EmergencySwitchLst.Values)
+ {
+ if (!item.OldValue && item.NewValue)
+ {
+ item.OldValue = item.NewValue;
+ retVal = true;
+ }
+ else
+ {
+ item.OldValue = item.NewValue;
+ }
+ }
+ return retVal;
+ }
+ private void ClearButtonBackColor()
+ {
+ Invoke(new Action(()=> {
+ #region 加载当前的手动变量状态数据
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FeedingInDrum", PlcItemTypeDesc.M)))
+ {
+ ktb_FeedingStartMac.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ ktb_FeedingStartMac.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FeedingLiftingDrum", PlcItemTypeDesc.M)))
+ {
+ kryptonButton11.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton11.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("DischargeInDrum", PlcItemTypeDesc.M)))
+ {
+ ktb_DischargeInTrayStartMac.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ ktb_DischargeInTrayStartMac.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("DischargeOutDrum", PlcItemTypeDesc.M)))
+ {
+ kryptonButton10.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton10.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("DischargeLiftingDrum", PlcItemTypeDesc.M)))
+ {
+ kryptonButton12.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton12.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("BlockingSolenoidValve", PlcItemTypeDesc.M)))
+ {
+ kbtn_BlockingSolenoidValve.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kbtn_BlockingSolenoidValve.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("PushingCylinderSolenoidValve", PlcItemTypeDesc.M)))
+ {
+ kbt_PushPalletValve.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kbt_PushPalletValve.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMac1BrushMotor", PlcItemTypeDesc.M)))
+ {
+ kryptonButton2.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton2.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMac2BrushMotor", PlcItemTypeDesc.M)))
+ {
+ kryptonButton3.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton3.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMac3BrushMotor", PlcItemTypeDesc.M)))
+ {
+ kryptonButton4.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton4.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FranklinismStartOrStop", PlcItemTypeDesc.M)))
+ {
+ kryptonButton8.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton8.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMacInDrum", PlcItemTypeDesc.M)))
+ {
+ kryptonButton5.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton5.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMacOutDrum", PlcItemTypeDesc.M)))
+ {
+ kryptonButton6.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton6.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("NozzleSolenoidValve", PlcItemTypeDesc.M)))
+ {
+ kryptonButton7.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton7.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("VacuumingStartOrStop", PlcItemTypeDesc.M)))
+ {
+ kryptonButton9.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton9.StateCommon.Back.Color1 = Color.Lime;
+ }
+ #endregion
+ }));
+ }
+ private void ThRunFunc()
+ {
+ while (GlobalHelper.SysThIsRunFlag)
+ {
+ try
+ {
+ InitData(true);
+ if (GetScramButtonValue())
+ {
+ ClearButtonBackColor();
+ }
+ }
+ catch
+ {
+
+ }
+ Thread.Sleep(50);
+ }
+ }
+ #endregion
+
+ //初始化用户参数信息
+ private void GetManualPlcItemVlaue()
+ {
+ foreach (var item in kryptonGroupBox1.Panel.Controls)
+ {
+ if (item is KryptonTextBox)
+ {
+ string plcItemCode = ((KryptonTextBox)item).Name.Replace("knud_", "");
+ if (((KryptonTextBox)item).Tag == null)
+ {
+ ((KryptonTextBox)item).Text = PlcOperationHelper.Instance.ReadPlcItem(plcItemCode, PlcItemTypeDesc.D).ToString();
+ }
+ else if (((KryptonTextBox)item).Tag.ToString() == "time")
+ {
+ ((KryptonTextBox)item).Text = (Convert.ToInt32(PlcOperationHelper.Instance.ReadPlcItem(plcItemCode, PlcItemTypeDesc.D)) / 10).ToString();
+ }
+ else
+ {
+ ((KryptonTextBox)item).Text = (Convert.ToInt32(PlcOperationHelper.Instance.ReadPlcItem(plcItemCode, PlcItemTypeDesc.D)) / 100).ToString();
+ }
+ }
+ }
+
+ #region 加载当前的手动变量状态数据
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FeedingInDrum", PlcItemTypeDesc.M)))
+ {
+ ktb_FeedingStartMac.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ ktb_FeedingStartMac.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FeedingLiftingDrum", PlcItemTypeDesc.M)))
+ {
+ kryptonButton11.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton11.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("DischargeInDrum", PlcItemTypeDesc.M)))
+ {
+ ktb_DischargeInTrayStartMac.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ ktb_DischargeInTrayStartMac.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("DischargeOutDrum", PlcItemTypeDesc.M)))
+ {
+ kryptonButton10.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton10.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("DischargeLiftingDrum", PlcItemTypeDesc.M)))
+ {
+ kryptonButton12.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton12.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("BlockingSolenoidValve", PlcItemTypeDesc.M)))
+ {
+ kbtn_BlockingSolenoidValve.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kbtn_BlockingSolenoidValve.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("PushingCylinderSolenoidValve", PlcItemTypeDesc.M)))
+ {
+ kbt_PushPalletValve.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kbt_PushPalletValve.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMac1BrushMotor", PlcItemTypeDesc.M)))
+ {
+ kryptonButton2.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton2.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMac2BrushMotor", PlcItemTypeDesc.M)))
+ {
+ kryptonButton3.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton3.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMac3BrushMotor", PlcItemTypeDesc.M)))
+ {
+ kryptonButton4.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton4.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FranklinismStartOrStop", PlcItemTypeDesc.M)))
+ {
+ kryptonButton8.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton8.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMacInDrum", PlcItemTypeDesc.M)))
+ {
+ kryptonButton5.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton5.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMacOutDrum", PlcItemTypeDesc.M)))
+ {
+ kryptonButton6.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton6.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("NozzleSolenoidValve", PlcItemTypeDesc.M)))
+ {
+ kryptonButton7.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton7.StateCommon.Back.Color1 = Color.Lime;
+ }
+
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("VacuumingStartOrStop", PlcItemTypeDesc.M)))
+ {
+ kryptonButton9.StateCommon.Back.Color1 = Color.Empty;
+ }
+ else
+ {
+ kryptonButton9.StateCommon.Back.Color1 = Color.Lime;
+ }
+ #endregion
+ }
+ private void SyncFinishPalletData(object sender, EventArgs e)
+ {
+ Invoke(new Action(() => {
+ string text = sender as string;
+ knud_WorkedFullPalletNum.Text = text;
+ }));
+ }
+ //上料进滚筒频率 D412 别名:FeedingDrumFrequency
+ private void kbtn_FeedingDrumFrequency_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //if (Regex.IsMatch(ktb_FeedingDrumFrequency.Text.Trim(), "^([1-9][0-9]*)$"))
+ //{
+ if (PlcOperationHelper.Instance.WritePlcItem("FeedingDrumFrequency", (Convert.ToInt32(knud_FeedingDrumFrequency.Text) * 100).ToString(), PlcItemTypeDesc.D))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改上料进滚筒频率成功,修改值:【{knud_FeedingDrumFrequency.Text}】。操作模式:【手动】!", LogTypeEum.Run);
+ }
+ //}
+ //else
+ //{
+ // KryptonMessageBox.Show(" Please enter the correct number !");
+ //}
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //清洁机出滚筒频率 D415 别名:CleanMacOutDrumFrequency
+ private void kbtn_CleanMacOutDrumFrequency_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //if (Regex.IsMatch(ktb_CleanMacOutDrumFrequency.Text.Trim(), "^([1-9][0-9]*)$"))
+ //{
+ if (PlcOperationHelper.Instance.WritePlcItem("CleanMacOutDrumFrequency", (Convert.ToInt32(knud_CleanMacOutDrumFrequency.Text) * 100).ToString(), PlcItemTypeDesc.D))
+ {
+
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改清洁机出滚筒频率成功,修改值:【{knud_CleanMacOutDrumFrequency.Text}】!", LogTypeEum.Run);
+ }
+ //}
+ //else
+ //{
+ // KryptonMessageBox.Show(" Please enter the correct number !");
+ //}
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //清洁机进滚筒频率 D414 CleanMacInDrumFrequency
+ private void kbtn_CleanMacInDrumFrequency_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //if (Regex.IsMatch(ktb_CleanMacInDrumFrequency.Text.Trim(), "^([1-9][0-9]*)$"))
+ //{
+ if (PlcOperationHelper.Instance.WritePlcItem("CleanMacInDrumFrequency", (Convert.ToInt32(knud_CleanMacInDrumFrequency.Text) * 100).ToString(), PlcItemTypeDesc.D))
+ {
+
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改清洁机进滚筒频率成功,修改值:【{knud_CleanMacInDrumFrequency.Text}】。操作模式:【手动】!", LogTypeEum.Run);
+ }
+ //}
+ //else
+ //{
+ // KryptonMessageBox.Show(" Please enter the correct number !");
+ //}
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //出料升降台滚筒频率 D417 别名:FrequencyOfDischargeLiftingDrum
+ private void kbtn_FrequencyOfDischargeLiftingDrum_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //if (Regex.IsMatch(ktb_FrequencyOfDischargeLiftingDrum.Text.Trim(), "^([1-9][0-9]*)$"))
+ //{
+ if (PlcOperationHelper.Instance.WritePlcItem("FrequencyOfDischargeLiftingDrum", (Convert.ToInt32(knud_FrequencyOfDischargeLiftingDrum.Text) * 100).ToString(), PlcItemTypeDesc.D))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改出料升降台滚筒频率成功,修改值:【{knud_FrequencyOfDischargeLiftingDrum.Text}】。操作模式:【手动】!", LogTypeEum.Run);
+ }
+ //}
+ //else
+ //{
+ // KryptonMessageBox.Show(" Please enter the correct number !");
+ //}
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //上料升降台 滚筒频率 D413 别名: FrequencyOfFeedingLiftingDrum
+ private void kbtn_FrequencyOfFeedingLiftingDrum_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //if (Regex.IsMatch(ktb_FrequencyOfFeedingLiftingDrum.Text.Trim(), "^([1-9][0-9]*)$"))
+ //{
+ if (PlcOperationHelper.Instance.WritePlcItem("FrequencyOfFeedingLiftingDrum", (Convert.ToInt32(knud_FrequencyOfFeedingLiftingDrum.Text) * 100).ToString(), PlcItemTypeDesc.D))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改上料升降台滚筒频率成功,修改值:【{knud_FrequencyOfFeedingLiftingDrum.Text}】。操作模式:【手动】!", LogTypeEum.Run);
+ }
+ //}
+ //else
+ //{
+ // KryptonMessageBox.Show(" Please enter the correct number !");
+ //}
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //出料出滚筒频率 D418 别名:DischargeOutDrumFrequency
+ private void kbtn_DischargeOutDrumFrequency_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //if (Regex.IsMatch(ktb_DischargeOutDrumFrequency.Text.Trim(), "^([1-9][0-9]*)$"))
+ //{
+ if (PlcOperationHelper.Instance.WritePlcItem("DischargeOutDrumFrequency", (Convert.ToInt32(knud_DischargeOutDrumFrequency.Text) * 100).ToString(), PlcItemTypeDesc.D))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改出料出滚筒频率成功,修改值:【{knud_DischargeOutDrumFrequency.Text}】。操作模式:【手动】!", LogTypeEum.Run);
+ }
+ //}
+ //else
+ //{
+ // KryptonMessageBox.Show(" Please enter the correct number !");
+ //}
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //出料进滚筒频率 D416 别名:DischargeDrumFrequency
+ private void kbtn_DischargeDrumFrequency_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //if (Regex.IsMatch(ktb_DischargeDrumFrequency.Text.Trim(), "^([1-9][0-9]*)$"))
+ //{
+ if (PlcOperationHelper.Instance.WritePlcItem("DischargeDrumFrequency", (Convert.ToInt32(knud_DischargeDrumFrequency.Text) * 100).ToString(), PlcItemTypeDesc.D))
+ {
+
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改出料进滚筒频率成功,修改值:【{knud_DischargeDrumFrequency.Text}】。操作模式:【手动】!", LogTypeEum.Run);
+ }
+ //}
+ //else
+ //{
+ // KryptonMessageBox.Show(" Please enter the correct number !");
+ //}
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //上料升降台上升操控 M218 按1松0 别名:FeedingLiftingDrumRise
+ private void kbtn_FeedingLiftingDrumRise_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //if (ReadScramButtonValue())
+ //{
+ // KryptonMessageBox.Show("When the emergency stop button is pressed, PLC data cannot be written at this time.");
+ // return;
+ //}
+ if (PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrumRise", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料升降台上升信号成功。操作模式:【手动】!", LogTypeEum.Run);
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ //上料升降台上升操控 按1松0
+ private void kbtn_FeedingLiftingDrumRise_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ //if (ReadScramButtonValue())
+ //{
+ // return;
+ //}
+ PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrumRise", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //喷头超时参数设置 D410 别名:NozzleDelayedCloseTime
+ private void kbtn_NozzleDelayedCloseTime_Click(object sender, EventArgs e)
+ {
+ //try
+ //{
+ // if (!PlcOperationHelper.Instance.isConn)
+ // {
+ // KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ // return;
+ // }
+ // if (PlcOperationHelper.Instance.WritePlcItem("NozzleDelayedCloseTime", (Convert.ToInt32(knud_NozzleDelayedCloseTime.Text) * 10).ToString(), PlcItemTypeDesc.D))
+ // {
+ // LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改喷头延迟时间成功,修改值:【{knud_NozzleDelayedCloseTime.Text}】。操作模式:【手动】。操作模式:【手动】!", LogTypeEum.Run);
+ // }
+ //}
+ //catch (Exception ex)
+ //{
+ // KryptonMessageBox.Show(ex.Message);
+ //}
+ //kryptonGroupBox3.Focus();
+ }
+
+ //滚筒超时时间参数设置 D411 别名:DrumTimeOut
+ private void kbtn_DrumTimeOut_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //if (Regex.IsMatch(ktb_DrumTimeOut.Text.Trim(), "^([1-9][0-9]*)$"))
+ //{
+ if (PlcOperationHelper.Instance.WritePlcItem("DrumTimeOut", (Convert.ToInt32(knud_DrumTimeOut.Text) * 10).ToString(), PlcItemTypeDesc.D))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改滚筒超时时间戳成功,修改值:【{knud_DrumTimeOut.Text}】。操作模式:【手动】!", LogTypeEum.Run);
+ }
+ //}
+ //else
+ //{
+ // KryptonMessageBox.Show(" Please enter the correct number !");
+ //}
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //出料台滚筒超时参数设置 D424 别名:DischargeLiftingDrumTime
+ private void kbtn_DisChargeLiftingTime_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //if (Regex.IsMatch(ktb_DischargeLiftingDrumTime.Text.Trim(), "^([1-9][0-9]*)$"))
+ //{
+ if (PlcOperationHelper.Instance.WritePlcItem("DischargeLiftingDrumTime", (Convert.ToInt32(knud_DischargeLiftingDrumTime.Text) * 10).ToString(), PlcItemTypeDesc.D))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改出料升降台滚筒超时时间成功,修改值:【{knud_DischargeLiftingDrumTime.Text}】。操作模式:【手动】!", LogTypeEum.Run);
+ }
+ //}
+ //else
+ //{
+ // KryptonMessageBox.Show(" Please enter the correct number !");
+ //}
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //托盘满料数量参数设置 D422 别名:WorkedFullPalletNum
+ private void kbtn_WorkedPalletNum_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //if (Regex.IsMatch(ktb_WorkedFullPalletNum.Text.Trim(), "^([1-9][0-9]*)$"))
+ //{
+ if (PlcOperationHelper.Instance.WritePlcItem("WorkedFullPalletNum", knud_WorkedFullPalletNum.Text, PlcItemTypeDesc.D))
+ {
+ GlobalHelper.SyncFinishPalletData(knud_WorkedFullPalletNum.Text, EventArgs.Empty);
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改满托数量成功,修改值:【{knud_WorkedFullPalletNum.Text}】。操作模式:【手动】!", LogTypeEum.Run);
+ }
+ //}
+ //else
+ //{
+ // KryptonMessageBox.Show(" Please enter the correct number !");
+ //}
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //启动按钮操作
+ private void cbt_StartTran_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("StartSys", PlcItemTypeDesc.M)))
+ {
+ PlcOperationHelper.Instance.WritePlcItem("StartSys", "True", PlcItemTypeDesc.M);
+ }
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ private void cbt_StartTran_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ PlcOperationHelper.Instance.WritePlcItem("StartSys", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ //停止按钮操作
+ private void cbt_StopTran_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("StopSys", PlcItemTypeDesc.M)))
+ {
+ PlcOperationHelper.Instance.WritePlcItem("StopSys", "True", PlcItemTypeDesc.M);
+ }
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ private void cbt_StopTran_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ PlcOperationHelper.Instance.WritePlcItem("StopSys", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+
+
+ //强制满料操控
+ private void kbtn_forceFinish_MouseDown(object sender, MouseEventArgs e)
+ {
+
+ }
+
+ private void kbtn_forceFinish_MouseUp(object sender, MouseEventArgs e)
+ {
+
+ }
+
+
+
+
+ //上料进滚筒操控 M207 交替 别名:FeedingInDrum
+ private void ktb_FeedingStartMac_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //if (ReadScramButtonValue())
+ //{
+ // KryptonMessageBox.Show("When the emergency stop button is pressed, PLC data cannot be written at this time.");
+ // return;
+ //}
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FeedingInDrum", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("FeedingInDrum", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料进滚筒正转运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ ktb_FeedingStartMac.StateCommon.Back.Color1 = Color.Lime;
+ kryptonButton15.Enabled = false;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("FeedingInDrum", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料进滚筒正转停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ ktb_FeedingStartMac.StateCommon.Back.Color1 = Color.Empty;
+ kryptonButton15.Enabled = true;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //上料升降台滚筒操控 M208 交替 别名 FeedingLiftingDrum
+ private void kryptonButton11_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FeedingLiftingDrum", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrum", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料升降滚筒正转运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton11.StateCommon.Back.Color1 = Color.Lime;
+ kryptonButton14.Enabled = false;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrum", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料升降滚筒正转停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton11.StateCommon.Back.Color1 = Color.Empty;
+ kryptonButton14.Enabled = true;
+ }
+ }
+
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //出料进滚筒操控 M209 交替 别名 DischargeInDrum
+ private void ktb_DischargeInTrayStartMac_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("DischargeInDrum", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("DischargeInDrum", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC出料进滚筒运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ ktb_DischargeInTrayStartMac.StateCommon.Back.Color1 = Color.Lime;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("DischargeInDrum", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC出料进滚筒停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ ktb_DischargeInTrayStartMac.StateCommon.Back.Color1 = Color.Empty;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //出料出滚筒操控 M210 交替 别名 DischargeOutDrum
+ private void kryptonButton10_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("DischargeOutDrum", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("DischargeOutDrum", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC出料出滚筒运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton10.StateCommon.Back.Color1 = Color.Lime;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("DischargeOutDrum", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC出料出滚筒停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton10.StateCommon.Back.Color1 = Color.Empty;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //挡料气缸操控 M213 交替 别名:BlockingSolenoidValve
+ private void kbtn_BlockingSolenoidValve_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("BlockingSolenoidValve", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("BlockingSolenoidValve", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC挡料气缸运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kbtn_BlockingSolenoidValve.StateCommon.Back.Color1 = Color.Lime;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("BlockingSolenoidValve", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC挡料气缸停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kbtn_BlockingSolenoidValve.StateCommon.Back.Color1 = Color.Empty;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //推料气缸操控 M234 交替 别名:PushingCylinderSolenoidValve
+ private void kbt_PushPalletValve_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("PushingCylinderSolenoidValve", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("PushingCylinderSolenoidValve", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC推料气缸运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kbt_PushPalletValve.StateCommon.Back.Color1 = Color.Lime;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("PushingCylinderSolenoidValve", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC推料气缸停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kbt_PushPalletValve.StateCommon.Back.Color1 = Color.Empty;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //出料升降台滚筒操控 M211 交替 别名:DischargeLiftingDrum
+ private void kryptonButton12_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("DischargeLiftingDrum", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("DischargeLiftingDrum", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC出料升降滚筒运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton12.StateCommon.Back.Color1 = Color.Lime;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("DischargeLiftingDrum", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC出料升降滚筒停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton12.StateCommon.Back.Color1 = Color.Empty;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //清洁头1操控 M215 交替 别名:CleanMac1BrushMotor
+ private void kryptonButton2_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMac1BrushMotor", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("CleanMac1BrushMotor", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机毛刷1运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton2.StateCommon.Back.Color1 = Color.Lime;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("CleanMac1BrushMotor", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机毛刷1停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton2.StateCommon.Back.Color1 = Color.Empty;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //清洁头2操控 M216 交替 别名:CleanMac2BrushMotor
+ private void kryptonButton3_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMac2BrushMotor", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("CleanMac2BrushMotor", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机毛刷2运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton3.StateCommon.Back.Color1 = Color.Lime;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("CleanMac2BrushMotor", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机毛刷2停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton3.StateCommon.Back.Color1 = Color.Empty;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //清洁头3操控 M217 交替 别名:CleanMac3BrushMotor
+ private void kryptonButton4_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMac3BrushMotor", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("CleanMac3BrushMotor", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机毛刷3运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton4.StateCommon.Back.Color1 = Color.Lime;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("CleanMac3BrushMotor", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机毛刷3停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton4.StateCommon.Back.Color1 = Color.Empty;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //喷头操控 M212 交替 别名:NozzleSolenoidValve
+ private void kryptonButton7_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("NozzleSolenoidValve", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("NozzleSolenoidValve", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁喷头运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton7.StateCommon.Back.Color1 = Color.Lime;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("NozzleSolenoidValve", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁喷头停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton7.StateCommon.Back.Color1 = Color.Empty;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //静电棒操控 M222 交替 别名:FranklinismStartOrStop
+ private void kryptonButton8_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FranklinismStartOrStop", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("FranklinismStartOrStop", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC静电启停 运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton8.StateCommon.Back.Color1 = Color.Lime;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("FranklinismStartOrStop", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC静电启停 停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton8.StateCommon.Back.Color1 = Color.Empty;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //吸尘操控 M214 交替 别名:VacuumingStartOrStop
+ private void kryptonButton9_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("VacuumingStartOrStop", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("VacuumingStartOrStop", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC吸尘电机运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton9.StateCommon.Back.Color1 = Color.Lime;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("VacuumingStartOrStop", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC吸尘电机停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton9.StateCommon.Back.Color1 = Color.Empty;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //清洁进料滚筒操控 M205 交替 别名:CleanMacInDrum
+ private void kryptonButton5_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMacInDrum", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("CleanMacInDrum", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机进料运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton5.StateCommon.Back.Color1 = Color.Lime;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("CleanMacInDrum", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机进料停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton5.StateCommon.Back.Color1 = Color.Empty;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //清洁出料滚筒操控 M206 交替 别名:CleanMacOutDrum
+ private void kryptonButton6_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMacOutDrum", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("CleanMacOutDrum", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机出料运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton6.StateCommon.Back.Color1 = Color.Lime;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("CleanMacOutDrum", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机出料停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton6.StateCommon.Back.Color1 = Color.Empty;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //满料延迟时间设定 D425 别名:FullPalletDelayTime
+ private void kryptonButton1_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //if (Regex.IsMatch(ktb_WorkedFullPalletNum.Text.Trim(), "^([1-9][0-9]*)$"))
+ //{
+ if (PlcOperationHelper.Instance.WritePlcItem("FullPalletDelayTime", (Convert.ToInt32(knud_FullPalletDelayTime.Text) * 10).ToString(), PlcItemTypeDesc.D))
+ {
+
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改满料延时时间成功,修改值:【{knud_FullPalletDelayTime.Text}】。操作模式:【手动】!", LogTypeEum.Run);
+ }
+ //}
+ //else
+ //{
+ // KryptonMessageBox.Show(" Please enter the correct number !");
+ //}
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ private void kbtn_forceFinish_Click(object sender, EventArgs e)
+ {
+ PlcOperationHelper.Instance.WritePlcItem("FinishWorkingPallet", "True", PlcItemTypeDesc.M);
+ }
+
+ //B段升降台 下降操控 M220 按1松0 别名 FeedingLiftingDrumDecline
+ private void kbtn_FeedingLiftingDrumDecline_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ if (PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrumDecline", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料升降台下降信号成功。操作模式:【手动】!", LogTypeEum.Run);
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ //B段升降台 下降操控 按1松0
+ private void kbtn_FeedingLiftingDrumDecline_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrumDecline", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //E段 出料升降台 上升 M219 按1松0 别名 DischargeLiftingDrumRise
+ private void kbtn_DischargeLiftingDrumRise_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ if (PlcOperationHelper.Instance.WritePlcItem("DischargeLiftingDrumRise", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC出料升降台上升信号成功!操作模式:【手动】", LogTypeEum.Run);
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ //出料台 上升 按1松0
+ private void kbtn_DischargeLiftingDrumRise_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ PlcOperationHelper.Instance.WritePlcItem("DischargeLiftingDrumRise", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ //出料台下降操控 M221 按1松0 别名 DischargeLiftingDrumDecline
+ private void kbtn_DischargeLiftingDrumDecline_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ if (PlcOperationHelper.Instance.WritePlcItem("DischargeLiftingDrumDecline", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC出料升降台下降信号成功!操作模式:【手动】", LogTypeEum.Run);
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ //出料台下降操控 按1松0
+ private void kbtn_DischargeLiftingDrumDecline_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ PlcOperationHelper.Instance.WritePlcItem("DischargeLiftingDrumDecline", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ private void kryptonButton13_Click(object sender, EventArgs e)
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ if (PlcOperationHelper.Instance.WritePlcItem("NozzleNum", "0", PlcItemTypeDesc.D))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC计数清零信号成功!操作模式:【手动】", LogTypeEum.Run);
+ }
+ }
+
+
+
+ private void ktb_FeedingDrumFrequency_Click(object sender, EventArgs e)
+ {
+ //KryptonMessageBox.Show("test");
+ }
+
+ private void ktb_DischargeLiftingDrumTime_Click(object sender, EventArgs e)
+ {
+ //KryptonMessageBox.Show("test");
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ knud_FeedingDrumFrequency.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_FeedingDrumFrequency.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ knud_DischargeLiftingDrumTime.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_DischargeLiftingDrumTime.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ knud_FrequencyOfFeedingLiftingDrum.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_FrequencyOfFeedingLiftingDrum.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ knud_DrumTimeOut.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_DrumTimeOut.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ knud_CleanMacInDrumFrequency.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_CleanMacInDrumFrequency.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ knud_AlarmDelayedTime.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_AlarmDelayedTime.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ knud_CleanMacOutDrumFrequency.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_CleanMacOutDrumFrequency.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ knud_FullPalletDelayTime.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_FullPalletDelayTime.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ knud_DischargeDrumFrequency.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_DischargeDrumFrequency.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ knud_WorkedFullPalletNum.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_WorkedFullPalletNum.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ knud_DischargeOutDrumFrequency.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_DischargeOutDrumFrequency.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ knud_FrequencyOfDischargeLiftingDrum.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_FrequencyOfDischargeLiftingDrum.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void knud_FrequencyOfDischargeLiftingDrum_KeyPress(object sender, KeyPressEventArgs e)
+ {
+ if (e.KeyChar != '\b')//这是允许输入退格键
+ {
+ if ((e.KeyChar < '0') || (e.KeyChar > '9'))//这是允许输入0-9数字
+ {
+ e.Handled = true;
+ }
+ }
+ }
+
+ private void kryptonButton15_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //if (ReadScramButtonValue())
+ //{
+ // KryptonMessageBox.Show("When the emergency stop button is pressed, PLC data cannot be written at this time.");
+ // return;
+ //}
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FeedingDrumARollback", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("FeedingDrumARollback", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料进滚筒反转运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton15.StateCommon.Back.Color1 = Color.Lime;
+ ktb_FeedingStartMac.Enabled = false;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("FeedingDrumARollback", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料进滚筒反转停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton15.StateCommon.Back.Color1 = Color.Empty;
+ ktb_FeedingStartMac.Enabled = true;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ private void kryptonButton14_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ //根据当运行前状态,做相反的指令控制
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FeedingLiftingDrumBRollback", PlcItemTypeDesc.M)))
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrumBRollback", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料升降滚筒正转运行信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton14.StateCommon.Back.Color1 = Color.Lime;
+ kryptonButton11.Enabled = false;
+ }
+ }
+ else
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrumBRollback", "False", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料升降滚筒正转停止信号成功!操作模式:【手动】", LogTypeEum.Run);
+ kryptonButton14.StateCommon.Back.Color1 = Color.Empty;
+ kryptonButton11.Enabled = true;
+ }
+ }
+
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+
+ private void kbtn_AlarmDelayTime_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ if (PlcOperationHelper.Instance.WritePlcItem("AlarmDelayedTime", (Convert.ToInt32(knud_AlarmDelayedTime.Text) * 10).ToString(), PlcItemTypeDesc.D))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改报警延迟时间成功,修改值:【{knud_AlarmDelayedTime.Text}】。操作模式:【手动】。操作模式:【手动】!", LogTypeEum.Run);
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ kryptonGroupBox3.Focus();
+ }
+ }
+
+ public class ScramButtonControl
+ {
+ public bool OldValue { get; set; }
+ public bool NewValue { get; set; }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmManual.resx b/CleanMachineHMI/FrmUserControl/frmManual.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmManual.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/frmMechineCheck.Designer.cs b/CleanMachineHMI/FrmUserControl/frmMechineCheck.Designer.cs
new file mode 100644
index 0000000..63b0d17
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmMechineCheck.Designer.cs
@@ -0,0 +1,466 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmMechineCheck
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_Brush3StatusTran = new CleanMachineHMI.CircleButton();
+ this.swtbtn_brush1 = new CleanMachineHMI.LSwitchButton();
+ this.swtbtn_brush3 = new CleanMachineHMI.LSwitchButton();
+ this.kryptonLabel7 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.swtbtn_brush2 = new CleanMachineHMI.LSwitchButton();
+ this.cbt_Brush2StatusTran = new CleanMachineHMI.CircleButton();
+ this.cbt_Brush1StatusTran = new CleanMachineHMI.CircleButton();
+ this.kryptonGroupBox5 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.cbt_RunStatusTran = new CleanMachineHMI.CircleButton();
+ this.lbwarning = new System.Windows.Forms.Label();
+ this.cbt_ResetSys = new CleanMachineHMI.CircleButton();
+ this.cbt_StartTran = new CleanMachineHMI.CircleButton();
+ this.kbtn_Pass_No = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_Pass_Yes = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonLabel66 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel55 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonGroupBox4 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonGroupBox3 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.btn_logout = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.lbtitle = new System.Windows.Forms.Label();
+ this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox5)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox5.Panel)).BeginInit();
+ this.kryptonGroupBox5.Panel.SuspendLayout();
+ this.kryptonGroupBox5.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4.Panel)).BeginInit();
+ this.kryptonGroupBox4.Panel.SuspendLayout();
+ this.kryptonGroupBox4.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3.Panel)).BeginInit();
+ this.kryptonGroupBox3.Panel.SuspendLayout();
+ this.kryptonGroupBox3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Location = new System.Drawing.Point(43, 125);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(69, 20);
+ this.kryptonLabel2.TabIndex = 29;
+ this.kryptonLabel2.Values.Text = "毛刷选择3";
+ //
+ // cbt_Brush3StatusTran
+ //
+ this.cbt_Brush3StatusTran.BackColor = System.Drawing.Color.Gray;
+ this.cbt_Brush3StatusTran.Location = new System.Drawing.Point(227, 120);
+ this.cbt_Brush3StatusTran.Name = "cbt_Brush3StatusTran";
+ this.cbt_Brush3StatusTran.Size = new System.Drawing.Size(30, 30);
+ this.cbt_Brush3StatusTran.TabIndex = 27;
+ this.cbt_Brush3StatusTran.UseVisualStyleBackColor = false;
+ //
+ // swtbtn_brush1
+ //
+ this.swtbtn_brush1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
+ this.swtbtn_brush1.L_AnimateType = LEase.LEaseType.Quartic;
+ this.swtbtn_brush1.L_BarHight = 24;
+ this.swtbtn_brush1.L_CloseColor = System.Drawing.Color.Red;
+ this.swtbtn_brush1.L_DotColor = System.Drawing.Color.White;
+ this.swtbtn_brush1.L_DotHight = 20;
+ this.swtbtn_brush1.L_IsOpen = false;
+ this.swtbtn_brush1.L_Margin = 2;
+ this.swtbtn_brush1.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+ this.swtbtn_brush1.Location = new System.Drawing.Point(129, 33);
+ this.swtbtn_brush1.Name = "swtbtn_brush1";
+ this.swtbtn_brush1.Size = new System.Drawing.Size(58, 25);
+ this.swtbtn_brush1.TabIndex = 23;
+ this.swtbtn_brush1.Text = "lSwitchButton1";
+ this.swtbtn_brush1.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_brush1_LSwitched);
+ //
+ // swtbtn_brush3
+ //
+ this.swtbtn_brush3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
+ this.swtbtn_brush3.L_AnimateType = LEase.LEaseType.Quartic;
+ this.swtbtn_brush3.L_BarHight = 24;
+ this.swtbtn_brush3.L_CloseColor = System.Drawing.Color.Red;
+ this.swtbtn_brush3.L_DotColor = System.Drawing.Color.White;
+ this.swtbtn_brush3.L_DotHight = 20;
+ this.swtbtn_brush3.L_IsOpen = false;
+ this.swtbtn_brush3.L_Margin = 2;
+ this.swtbtn_brush3.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+ this.swtbtn_brush3.Location = new System.Drawing.Point(129, 123);
+ this.swtbtn_brush3.Name = "swtbtn_brush3";
+ this.swtbtn_brush3.Size = new System.Drawing.Size(58, 25);
+ this.swtbtn_brush3.TabIndex = 28;
+ this.swtbtn_brush3.Text = "lSwitchButton3";
+ this.swtbtn_brush3.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_brush3_LSwitched);
+ //
+ // kryptonLabel7
+ //
+ this.kryptonLabel7.Location = new System.Drawing.Point(43, 80);
+ this.kryptonLabel7.Name = "kryptonLabel7";
+ this.kryptonLabel7.Size = new System.Drawing.Size(69, 20);
+ this.kryptonLabel7.TabIndex = 26;
+ this.kryptonLabel7.Values.Text = "毛刷选择2";
+ //
+ // swtbtn_brush2
+ //
+ this.swtbtn_brush2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
+ this.swtbtn_brush2.L_AnimateType = LEase.LEaseType.Quartic;
+ this.swtbtn_brush2.L_BarHight = 24;
+ this.swtbtn_brush2.L_CloseColor = System.Drawing.Color.Red;
+ this.swtbtn_brush2.L_DotColor = System.Drawing.Color.White;
+ this.swtbtn_brush2.L_DotHight = 20;
+ this.swtbtn_brush2.L_IsOpen = false;
+ this.swtbtn_brush2.L_Margin = 2;
+ this.swtbtn_brush2.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+ this.swtbtn_brush2.Location = new System.Drawing.Point(129, 78);
+ this.swtbtn_brush2.Name = "swtbtn_brush2";
+ this.swtbtn_brush2.Size = new System.Drawing.Size(58, 25);
+ this.swtbtn_brush2.TabIndex = 25;
+ this.swtbtn_brush2.Text = "lSwitchButton2";
+ this.swtbtn_brush2.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_brush2_LSwitched);
+ //
+ // cbt_Brush2StatusTran
+ //
+ this.cbt_Brush2StatusTran.BackColor = System.Drawing.Color.Gray;
+ this.cbt_Brush2StatusTran.Location = new System.Drawing.Point(227, 75);
+ this.cbt_Brush2StatusTran.Name = "cbt_Brush2StatusTran";
+ this.cbt_Brush2StatusTran.Size = new System.Drawing.Size(30, 30);
+ this.cbt_Brush2StatusTran.TabIndex = 24;
+ this.cbt_Brush2StatusTran.UseVisualStyleBackColor = false;
+ //
+ // cbt_Brush1StatusTran
+ //
+ this.cbt_Brush1StatusTran.BackColor = System.Drawing.Color.Gray;
+ this.cbt_Brush1StatusTran.Location = new System.Drawing.Point(227, 30);
+ this.cbt_Brush1StatusTran.Name = "cbt_Brush1StatusTran";
+ this.cbt_Brush1StatusTran.Size = new System.Drawing.Size(30, 30);
+ this.cbt_Brush1StatusTran.TabIndex = 10;
+ this.cbt_Brush1StatusTran.UseVisualStyleBackColor = false;
+ //
+ // kryptonGroupBox5
+ //
+ this.kryptonGroupBox5.CaptionOverlap = 0D;
+ this.kryptonGroupBox5.Location = new System.Drawing.Point(500, 24);
+ this.kryptonGroupBox5.Name = "kryptonGroupBox5";
+ //
+ // kryptonGroupBox5.Panel
+ //
+ this.kryptonGroupBox5.Panel.Controls.Add(this.kryptonLabel2);
+ this.kryptonGroupBox5.Panel.Controls.Add(this.cbt_Brush3StatusTran);
+ this.kryptonGroupBox5.Panel.Controls.Add(this.swtbtn_brush1);
+ this.kryptonGroupBox5.Panel.Controls.Add(this.swtbtn_brush3);
+ this.kryptonGroupBox5.Panel.Controls.Add(this.kryptonLabel7);
+ this.kryptonGroupBox5.Panel.Controls.Add(this.swtbtn_brush2);
+ this.kryptonGroupBox5.Panel.Controls.Add(this.cbt_Brush2StatusTran);
+ this.kryptonGroupBox5.Panel.Controls.Add(this.kryptonLabel1);
+ this.kryptonGroupBox5.Panel.Controls.Add(this.cbt_Brush1StatusTran);
+ this.kryptonGroupBox5.Size = new System.Drawing.Size(288, 209);
+ this.kryptonGroupBox5.TabIndex = 1;
+ this.kryptonGroupBox5.Values.Heading = "清洁毛刷选择";
+ //
+ // kryptonLabel1
+ //
+ this.kryptonLabel1.Location = new System.Drawing.Point(43, 35);
+ this.kryptonLabel1.Name = "kryptonLabel1";
+ this.kryptonLabel1.Size = new System.Drawing.Size(69, 20);
+ this.kryptonLabel1.TabIndex = 23;
+ this.kryptonLabel1.Values.Text = "毛刷选择1";
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Location = new System.Drawing.Point(59, 44);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(135, 20);
+ this.kryptonLabel4.TabIndex = 24;
+ this.kryptonLabel4.Values.Text = "System Running Status";
+ //
+ // cbt_RunStatusTran
+ //
+ this.cbt_RunStatusTran.BackColor = System.Drawing.Color.Gray;
+ this.cbt_RunStatusTran.Location = new System.Drawing.Point(200, 39);
+ this.cbt_RunStatusTran.Name = "cbt_RunStatusTran";
+ this.cbt_RunStatusTran.Size = new System.Drawing.Size(30, 30);
+ this.cbt_RunStatusTran.TabIndex = 13;
+ this.cbt_RunStatusTran.UseVisualStyleBackColor = false;
+ //
+ // lbwarning
+ //
+ this.lbwarning.AutoSize = true;
+ this.lbwarning.BackColor = System.Drawing.Color.Transparent;
+ this.lbwarning.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbwarning.Location = new System.Drawing.Point(11, 366);
+ this.lbwarning.Name = "lbwarning";
+ this.lbwarning.Size = new System.Drawing.Size(19, 20);
+ this.lbwarning.TabIndex = 0;
+ this.lbwarning.Text = " ";
+ //
+ // cbt_ResetSys
+ //
+ this.cbt_ResetSys.BackColor = System.Drawing.Color.DarkOrange;
+ this.cbt_ResetSys.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.cbt_ResetSys.ForeColor = System.Drawing.Color.White;
+ this.cbt_ResetSys.Location = new System.Drawing.Point(158, 81);
+ this.cbt_ResetSys.Name = "cbt_ResetSys";
+ this.cbt_ResetSys.Size = new System.Drawing.Size(60, 60);
+ this.cbt_ResetSys.TabIndex = 10;
+ this.cbt_ResetSys.Text = "RESET";
+ this.cbt_ResetSys.UseVisualStyleBackColor = false;
+ this.cbt_ResetSys.MouseDown += new System.Windows.Forms.MouseEventHandler(this.cbt_ResetSys_MouseDown);
+ this.cbt_ResetSys.MouseUp += new System.Windows.Forms.MouseEventHandler(this.cbt_ResetSys_MouseUp);
+ //
+ // cbt_StartTran
+ //
+ this.cbt_StartTran.BackColor = System.Drawing.Color.Lime;
+ this.cbt_StartTran.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.cbt_StartTran.Location = new System.Drawing.Point(74, 81);
+ this.cbt_StartTran.Name = "cbt_StartTran";
+ this.cbt_StartTran.Size = new System.Drawing.Size(60, 60);
+ this.cbt_StartTran.TabIndex = 12;
+ this.cbt_StartTran.Text = "START";
+ this.cbt_StartTran.UseVisualStyleBackColor = false;
+ this.cbt_StartTran.Click += new System.EventHandler(this.cbt_StartTran_Click_1);
+ //
+ // kbtn_Pass_No
+ //
+ this.kbtn_Pass_No.Location = new System.Drawing.Point(390, 101);
+ this.kbtn_Pass_No.Name = "kbtn_Pass_No";
+ this.kbtn_Pass_No.Size = new System.Drawing.Size(80, 80);
+ this.kbtn_Pass_No.StateCommon.Back.Color1 = System.Drawing.Color.Red;
+ this.kbtn_Pass_No.StateCommon.Back.Color2 = System.Drawing.Color.Red;
+ this.kbtn_Pass_No.StateCommon.Border.Color1 = System.Drawing.Color.Black;
+ this.kbtn_Pass_No.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.kbtn_Pass_No.StateCommon.Border.Width = 2;
+ this.kbtn_Pass_No.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_Pass_No.TabIndex = 26;
+ this.kbtn_Pass_No.Values.Text = "No";
+ this.kbtn_Pass_No.Click += new System.EventHandler(this.kbtn_Pass_No_Click);
+ //
+ // kbtn_Pass_Yes
+ //
+ this.kbtn_Pass_Yes.Location = new System.Drawing.Point(107, 101);
+ this.kbtn_Pass_Yes.Name = "kbtn_Pass_Yes";
+ this.kbtn_Pass_Yes.Size = new System.Drawing.Size(80, 80);
+ this.kbtn_Pass_Yes.StateCommon.Back.Color1 = System.Drawing.Color.Lime;
+ this.kbtn_Pass_Yes.StateCommon.Back.Color2 = System.Drawing.Color.Lime;
+ this.kbtn_Pass_Yes.StateCommon.Border.Color1 = System.Drawing.Color.Black;
+ this.kbtn_Pass_Yes.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.kbtn_Pass_Yes.StateCommon.Border.Width = 2;
+ this.kbtn_Pass_Yes.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kbtn_Pass_Yes.TabIndex = 26;
+ this.kbtn_Pass_Yes.Values.Text = "Yes";
+ this.kbtn_Pass_Yes.Click += new System.EventHandler(this.kbtn_Pass_Yes_Click);
+ //
+ // kryptonLabel66
+ //
+ this.kryptonLabel66.Location = new System.Drawing.Point(263, 105);
+ this.kryptonLabel66.Name = "kryptonLabel66";
+ this.kryptonLabel66.Size = new System.Drawing.Size(58, 26);
+ this.kryptonLabel66.StateCommon.ShortText.Color1 = System.Drawing.Color.Black;
+ this.kryptonLabel66.StateCommon.ShortText.Color2 = System.Drawing.Color.Black;
+ this.kryptonLabel66.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel66.TabIndex = 25;
+ this.kryptonLabel66.Values.Text = "PASS";
+ //
+ // kryptonLabel55
+ //
+ this.kryptonLabel55.Location = new System.Drawing.Point(42, 25);
+ this.kryptonLabel55.Name = "kryptonLabel55";
+ this.kryptonLabel55.Size = new System.Drawing.Size(485, 42);
+ this.kryptonLabel55.StateCommon.ShortText.Color1 = System.Drawing.Color.Black;
+ this.kryptonLabel55.StateCommon.ShortText.Color2 = System.Drawing.Color.Black;
+ this.kryptonLabel55.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel55.TabIndex = 25;
+ this.kryptonLabel55.Values.Text = "Cleaning performance test";
+ //
+ // kryptonGroupBox4
+ //
+ this.kryptonGroupBox4.CaptionOverlap = 0D;
+ this.kryptonGroupBox4.Location = new System.Drawing.Point(206, 239);
+ this.kryptonGroupBox4.Name = "kryptonGroupBox4";
+ //
+ // kryptonGroupBox4.Panel
+ //
+ this.kryptonGroupBox4.Panel.Controls.Add(this.kbtn_Pass_No);
+ this.kryptonGroupBox4.Panel.Controls.Add(this.kbtn_Pass_Yes);
+ this.kryptonGroupBox4.Panel.Controls.Add(this.kryptonLabel66);
+ this.kryptonGroupBox4.Panel.Controls.Add(this.kryptonLabel55);
+ this.kryptonGroupBox4.Size = new System.Drawing.Size(582, 235);
+ this.kryptonGroupBox4.TabIndex = 22;
+ this.kryptonGroupBox4.Values.Heading = "Machine Check Test Result";
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.CaptionOverlap = 0D;
+ this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 95);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonGroupBox4);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.lbwarning);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonGroupBox3);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonGroupBox5);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(1024, 577);
+ this.kryptonGroupBox2.TabIndex = 5;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // kryptonGroupBox3
+ //
+ this.kryptonGroupBox3.CaptionOverlap = 0D;
+ this.kryptonGroupBox3.Location = new System.Drawing.Point(206, 23);
+ this.kryptonGroupBox3.Name = "kryptonGroupBox3";
+ //
+ // kryptonGroupBox3.Panel
+ //
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kryptonLabel4);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.cbt_RunStatusTran);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.cbt_ResetSys);
+ this.kryptonGroupBox3.Panel.Controls.Add(this.cbt_StartTran);
+ this.kryptonGroupBox3.Size = new System.Drawing.Size(288, 210);
+ this.kryptonGroupBox3.TabIndex = 21;
+ this.kryptonGroupBox3.Values.Heading = "System Running";
+ //
+ // btn_logout
+ //
+ this.btn_logout.Location = new System.Drawing.Point(859, 15);
+ this.btn_logout.Name = "btn_logout";
+ this.btn_logout.Size = new System.Drawing.Size(101, 60);
+ this.btn_logout.TabIndex = 18;
+ this.btn_logout.Values.Text = "退出系统";
+ this.btn_logout.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // lbtitle
+ //
+ this.lbtitle.AutoSize = true;
+ this.lbtitle.BackColor = System.Drawing.Color.Transparent;
+ this.lbtitle.Font = new System.Drawing.Font("宋体", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbtitle.Location = new System.Drawing.Point(10, 29);
+ this.lbtitle.Name = "lbtitle";
+ this.lbtitle.Size = new System.Drawing.Size(255, 27);
+ this.lbtitle.TabIndex = 0;
+ this.lbtitle.Text = "清洁机操作自检测试";
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.CaptionOverlap = 0D;
+ this.kryptonGroupBox1.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.btn_logout);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.lbtitle);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(1024, 95);
+ this.kryptonGroupBox1.TabIndex = 4;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // frmMechineCheck
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.kryptonGroupBox2);
+ this.Controls.Add(this.kryptonGroupBox1);
+ this.Name = "frmMechineCheck";
+ this.Size = new System.Drawing.Size(1024, 672);
+ this.Load += new System.EventHandler(this.frmMechineCheck_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox5.Panel)).EndInit();
+ this.kryptonGroupBox5.Panel.ResumeLayout(false);
+ this.kryptonGroupBox5.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox5)).EndInit();
+ this.kryptonGroupBox5.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4.Panel)).EndInit();
+ this.kryptonGroupBox4.Panel.ResumeLayout(false);
+ this.kryptonGroupBox4.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4)).EndInit();
+ this.kryptonGroupBox4.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ this.kryptonGroupBox2.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3.Panel)).EndInit();
+ this.kryptonGroupBox3.Panel.ResumeLayout(false);
+ this.kryptonGroupBox3.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3)).EndInit();
+ this.kryptonGroupBox3.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ this.kryptonGroupBox1.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
+ private CircleButton cbt_Brush3StatusTran;
+ private LSwitchButton swtbtn_brush1;
+ private LSwitchButton swtbtn_brush3;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel7;
+ private LSwitchButton swtbtn_brush2;
+ private CircleButton cbt_Brush2StatusTran;
+ private CircleButton cbt_Brush1StatusTran;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox5;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
+ private CircleButton cbt_RunStatusTran;
+ private System.Windows.Forms.Label lbwarning;
+ private CircleButton cbt_ResetSys;
+ private CircleButton cbt_StartTran;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Pass_No;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Pass_Yes;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel66;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel55;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox4;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox3;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btn_logout;
+ private System.Windows.Forms.Label lbtitle;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmMechineCheck.cs b/CleanMachineHMI/FrmUserControl/frmMechineCheck.cs
new file mode 100644
index 0000000..d4b0bf1
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmMechineCheck.cs
@@ -0,0 +1,311 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ [FormType(EnumFormType.MechineCheck)]
+ public partial class frmMechineCheck : UserControl
+ {
+ ///
+ /// 页面信息语言文本列表
+ ///
+ private DataTable _InfoLanguageTextList;
+ public frmMechineCheck()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+
+ //注销退出
+ private void kryptonButton1_Click(object sender, EventArgs e)
+ {
+ GlobalHelper.LoginForm.Show();
+ //GlobalHelper.MainForm.Hide();
+ GlobalHelper.MainFormNew.Hide();
+ }
+ private void swtbtn_brush1_LSwitched(object sender, LEventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ swtbtn_brush1.L_IsOpen = false;
+ return;
+ }
+ //选中状态,并且跟当前状态有差别则发送选中状态
+ if (swtbtn_brush1.L_IsOpen)
+ {
+ PlcOperationHelper.Instance.WritePlcItem("Hairbrush1Selection", "True", PlcItemTypeDesc.M);
+ }
+ else
+ {
+ PlcOperationHelper.Instance.WritePlcItem("Hairbrush1Selection", "False", PlcItemTypeDesc.M);
+ }
+
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+ private void swtbtn_brush2_LSwitched(object sender, LEventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ swtbtn_brush2.L_IsOpen = false;
+ return;
+ }
+ //选中状态,并且跟当前状态有差别则发送选中状态
+ if (swtbtn_brush2.L_IsOpen)
+ {
+ PlcOperationHelper.Instance.WritePlcItem("Hairbrush2Selection", "True", PlcItemTypeDesc.M);
+ }
+ else
+ {
+ PlcOperationHelper.Instance.WritePlcItem("Hairbrush2Selection", "False", PlcItemTypeDesc.M);
+ }
+
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ private void cbt_ResetSys_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ResetSys", PlcItemTypeDesc.M)))
+ {
+ PlcOperationHelper.Instance.WritePlcItem("ResetSys", "True", PlcItemTypeDesc.M);
+ }
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ private void cbt_ResetSys_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ PlcOperationHelper.Instance.WritePlcItem("ResetSys", "False", PlcItemTypeDesc.M);
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ //初始化,同步内存监控点状态
+ private void frmMechineCheck_Load(object sender, EventArgs e)
+ {
+
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ Thread th1 = new Thread(MainDtlRunTh);
+ th1.IsBackground = true;
+ th1.Start();
+
+ //毛刷1运行状态
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("Hairbrush1Selection", PlcItemTypeDesc.M)))
+ {
+ swtbtn_brush1.L_IsOpen = true;
+ }
+ else
+ {
+ swtbtn_brush1.L_IsOpen = false;
+ }
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("Hairbrush2Selection", PlcItemTypeDesc.M)))
+ {
+ swtbtn_brush2.L_IsOpen = true;
+ }
+ else
+ {
+ swtbtn_brush2.L_IsOpen = false;
+ }
+ //毛刷3启用状态
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("Hairbrush3Selection", PlcItemTypeDesc.M)))
+ {
+ swtbtn_brush3.L_IsOpen = true;
+ }
+ else
+ {
+ swtbtn_brush3.L_IsOpen = false;
+ }
+
+ }
+
+ //同步运行状态
+ private void MainDtlRunTh()
+ {
+ while (GlobalHelper.SysThIsRunFlag)
+ {
+ try
+ {
+ //系统运行状态
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("SelfCheckFlag", PlcItemTypeDesc.M)))
+ {
+ Invoke(new Action(() => { cbt_RunStatusTran.BackColor = Color.Lime; }));
+ }
+ else
+ {
+ Invoke(new Action(() => { cbt_RunStatusTran.BackColor = Color.Gray; }));
+ }
+
+ //毛刷1运行状态
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("Hairbrush1Selection", PlcItemTypeDesc.M)))
+ {
+ Invoke(new Action(() => { cbt_Brush1StatusTran.BackColor = Color.Lime; }));
+ }
+ else
+ {
+ Invoke(new Action(() => { cbt_Brush1StatusTran.BackColor = Color.Gray; }));
+ }
+
+ //毛刷2启用状态
+
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("Hairbrush2Selection", PlcItemTypeDesc.M)))
+ {
+ Invoke(new Action(() => { cbt_Brush2StatusTran.BackColor = Color.Lime; }));
+ }
+ else
+ {
+ Invoke(new Action(() => { cbt_Brush2StatusTran.BackColor = Color.Gray; }));
+ }
+ //毛刷3启用状态
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("Hairbrush3Selection", PlcItemTypeDesc.M)))
+ {
+ Invoke(new Action(() => { cbt_Brush3StatusTran.BackColor = Color.Lime; }));
+ }
+ else
+ {
+ Invoke(new Action(() => { cbt_Brush3StatusTran.BackColor = Color.Gray; }));
+ }
+
+ if (GlobalHelper.CanOperate)
+ {
+ break;
+ }
+
+ }
+ catch
+ {
+
+ }
+ Thread.Sleep(50);
+ }
+ }
+
+ private void kbtn_Pass_Yes_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ //自检结束后发送停止检测信号
+ PlcOperationHelper.Instance.WritePlcItem("SelfCheckFlag", "False", PlcItemTypeDesc.M);
+ //自检通过后,发送检测通过信号
+ PlcOperationHelper.Instance.WritePlcItem("SelfCheckPassFlag", "True", PlcItemTypeDesc.M);
+ //系统默认进入自动模式
+ PlcOperationHelper.Instance.WritePlcItem("ManualOrAuto", "False", PlcItemTypeDesc.M);
+ //GlobalHelper.MainForm.navigatorMain.SetNavPage(Domain.Enums.EnumFormType.MainDetail);
+
+ frmMainNew.SwitchFrmMenu(EnumFormType.MainDetail, true);
+ //frmMainNew.SwitchFrmMenu(EnumFormType.IoMonitor, false);
+ GlobalHelper.CanOperate = true;
+
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ private void kbtn_Pass_No_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ //自检结束后发送停止检测信号
+ PlcOperationHelper.Instance.WritePlcItem("SelfCheckFlag", "False", PlcItemTypeDesc.M);
+ //自检通过后,发送检测通过信号
+ PlcOperationHelper.Instance.WritePlcItem("SelfCheckPassFlag", "False", PlcItemTypeDesc.M);
+ //测试未通过,请检查并重新测试
+ GlobalHelper.CanOperate = false;
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("测试未通过,请检查设备并重新测试!!", "NoPassShowMsg"));
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ private void cbt_StartTran_Click_1(object sender, EventArgs e)
+ {
+ try
+ {
+ if (swtbtn_brush1.L_IsOpen || swtbtn_brush2.L_IsOpen || swtbtn_brush3.L_IsOpen)
+ {
+ if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("SelfCheckFlag", PlcItemTypeDesc.M)))
+ {
+ PlcOperationHelper.Instance.WritePlcItem("SelfCheckFlag", "True", PlcItemTypeDesc.M);
+ }
+ else
+ {
+ KryptonMessageBox.Show("Press Yes or No First !");
+ }
+ }
+ else
+ {
+ KryptonMessageBox.Show("Brush Need to be Selected First!");
+ }
+
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ private void swtbtn_brush3_LSwitched(object sender, LEventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ swtbtn_brush3.L_IsOpen = false;
+ return;
+ }
+ //选中状态,并且跟当前状态有差别则发送选中状态
+ if (swtbtn_brush3.L_IsOpen)
+ {
+ PlcOperationHelper.Instance.WritePlcItem("Hairbrush3Selection", "True", PlcItemTypeDesc.M);
+ }
+ else
+ {
+ PlcOperationHelper.Instance.WritePlcItem("Hairbrush3Selection", "False", PlcItemTypeDesc.M);
+ }
+
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmMechineCheck.resx b/CleanMachineHMI/FrmUserControl/frmMechineCheck.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmMechineCheck.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/frmParamater.Designer.cs b/CleanMachineHMI/FrmUserControl/frmParamater.Designer.cs
new file mode 100644
index 0000000..75b5017
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmParamater.Designer.cs
@@ -0,0 +1,339 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmParamater
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonGroupBox3 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonDataGridView1 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
+ this.kryptonGroupBox4 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ 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.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_ParamaterCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.ktb_ParamaterName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
+ this.kryptonPanel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3.Panel)).BeginInit();
+ this.kryptonGroupBox3.Panel.SuspendLayout();
+ this.kryptonGroupBox3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4.Panel)).BeginInit();
+ this.kryptonGroupBox4.Panel.SuspendLayout();
+ this.kryptonGroupBox4.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonPanel2
+ //
+ this.kryptonPanel2.Controls.Add(this.kryptonGroupBox3);
+ this.kryptonPanel2.Controls.Add(this.kryptonGroupBox4);
+ this.kryptonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel2.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel2.Name = "kryptonPanel2";
+ this.kryptonPanel2.Size = new System.Drawing.Size(1024, 672);
+ this.kryptonPanel2.TabIndex = 5;
+ //
+ // kryptonGroupBox3
+ //
+ this.kryptonGroupBox3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
+ this.kryptonGroupBox3.CaptionOverlap = 0D;
+ this.kryptonGroupBox3.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
+ this.kryptonGroupBox3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox3.Location = new System.Drawing.Point(0, 150);
+ this.kryptonGroupBox3.Name = "kryptonGroupBox3";
+ //
+ // kryptonGroupBox3.Panel
+ //
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kryptonDataGridView1);
+ this.kryptonGroupBox3.Size = new System.Drawing.Size(1024, 522);
+ this.kryptonGroupBox3.TabIndex = 6;
+ this.kryptonGroupBox3.Values.Heading = "数据区:";
+ //
+ // kryptonDataGridView1
+ //
+ this.kryptonDataGridView1.AllowUserToAddRows = false;
+ this.kryptonDataGridView1.AllowUserToDeleteRows = false;
+ this.kryptonDataGridView1.AllowUserToResizeRows = false;
+ this.kryptonDataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ this.kryptonDataGridView1.DataMember = "TestData";
+ this.kryptonDataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonDataGridView1.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed;
+ this.kryptonDataGridView1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonDataGridView1.MultiSelect = false;
+ this.kryptonDataGridView1.Name = "kryptonDataGridView1";
+ this.kryptonDataGridView1.ReadOnly = true;
+ this.kryptonDataGridView1.RowHeadersVisible = false;
+ this.kryptonDataGridView1.RowHeadersWidth = 100;
+ this.kryptonDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.kryptonDataGridView1.Size = new System.Drawing.Size(1020, 500);
+ this.kryptonDataGridView1.TabIndex = 3;
+ //
+ // kryptonGroupBox4
+ //
+ this.kryptonGroupBox4.CaptionOverlap = 0D;
+ this.kryptonGroupBox4.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox4.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox4.Name = "kryptonGroupBox4";
+ //
+ // kryptonGroupBox4.Panel
+ //
+ this.kryptonGroupBox4.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox4.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox4.Size = new System.Drawing.Size(1024, 150);
+ this.kryptonGroupBox4.TabIndex = 0;
+ this.kryptonGroupBox4.Values.Heading = "查询操作:";
+ //
+ // kryptonButton1
+ //
+ this.kryptonButton1.Location = new System.Drawing.Point(3, 3);
+ this.kryptonButton1.Name = "kryptonButton1";
+ this.kryptonButton1.Size = new System.Drawing.Size(154, 35);
+ this.kryptonButton1.TabIndex = 7;
+ this.kryptonButton1.Values.Text = "出料运行方向切换";
+ this.kryptonButton1.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 4;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 160F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33444F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33444F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33112F));
+ this.tableLayoutPanel2.Controls.Add(this.kryptonButton1, 0, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 3, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 1, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(605, 78);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(415, 41);
+ this.tableLayoutPanel2.TabIndex = 6;
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(333, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(79, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(248, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(79, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(163, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(79, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_ParamaterCode, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_ParamaterName, 3, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(1020, 72);
+ this.tableLayoutPanel1.TabIndex = 5;
+ //
+ // kdtp_CreateEndTime
+ //
+ this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateEndTime.Location = new System.Drawing.Point(702, 43);
+ this.kdtp_CreateEndTime.Name = "kdtp_CreateEndTime";
+ this.kdtp_CreateEndTime.ShowCheckBox = true;
+ this.kdtp_CreateEndTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateEndTime.TabIndex = 7;
+ //
+ // kdtp_CreateStartTime
+ //
+ this.kdtp_CreateStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateStartTime.Location = new System.Drawing.Point(192, 43);
+ this.kdtp_CreateStartTime.Name = "kdtp_CreateStartTime";
+ this.kdtp_CreateStartTime.ShowCheckBox = true;
+ this.kdtp_CreateStartTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateStartTime.TabIndex = 7;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel2.TabIndex = 4;
+ this.kryptonLabel2.Values.Text = "参数编码:";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(558, 44);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 4;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // ktb_ParamaterCode
+ //
+ this.ktb_ParamaterCode.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_ParamaterCode.Location = new System.Drawing.Point(192, 6);
+ this.ktb_ParamaterCode.Name = "ktb_ParamaterCode";
+ this.ktb_ParamaterCode.Size = new System.Drawing.Size(246, 23);
+ this.ktb_ParamaterCode.TabIndex = 5;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(3, 39);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel4.TabIndex = 4;
+ this.kryptonLabel4.Values.Text = "创建时间:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(513, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel3.TabIndex = 4;
+ this.kryptonLabel3.Values.Text = "参数名称:";
+ //
+ // ktb_ParamaterName
+ //
+ this.ktb_ParamaterName.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_ParamaterName.Location = new System.Drawing.Point(702, 6);
+ this.ktb_ParamaterName.Name = "ktb_ParamaterName";
+ this.ktb_ParamaterName.Size = new System.Drawing.Size(246, 23);
+ this.ktb_ParamaterName.TabIndex = 5;
+ //
+ // frmParamater
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.kryptonPanel2);
+ this.Name = "frmParamater";
+ this.Size = new System.Drawing.Size(1024, 672);
+ this.Load += new System.EventHandler(this.frmParamater_Load);
+ this.Click += new System.EventHandler(this.frmParamater_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
+ this.kryptonPanel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3.Panel)).EndInit();
+ this.kryptonGroupBox3.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3)).EndInit();
+ this.kryptonGroupBox3.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4.Panel)).EndInit();
+ this.kryptonGroupBox4.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4)).EndInit();
+ this.kryptonGroupBox4.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox3;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox4;
+ 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 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_ParamaterCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_ParamaterName;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmParamater.cs b/CleanMachineHMI/FrmUserControl/frmParamater.cs
new file mode 100644
index 0000000..4998342
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmParamater.cs
@@ -0,0 +1,161 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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
+{
+ [FormType(EnumFormType.Parameter)]
+ public partial class frmParamater : UserControl
+ {
+ private DataTable _InfoLanguageTextList;
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+
+ public frmParamater()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+
+
+ public void Init()
+ {
+ var sql = $@"select PARAMETER_ID 序号,PARAMETER_CODE 参数编码,PARAMETER_NAME 参数名称,PARAMETER_VALUE 参数值,CREATE_TIME 创建时间 from SYS_PARAMETER where USED_FLAG=1 and DEL_FLAG=0 ";
+ if (!string.IsNullOrEmpty(ktb_ParamaterCode.Text))
+ {
+ sql += $" AND PARAMETER_CODE LIKE '%{ktb_ParamaterCode.Text}%'";
+ }
+ if (!string.IsNullOrEmpty(ktb_ParamaterName.Text))
+ {
+ sql += $" AND PARAMETER_NAME LIKE '%{ktb_ParamaterName.Text}%'";
+ }
+ if (kdtp_CreateStartTime.Checked)
+ {
+ sql += $" AND CREATE_TIME >= '{kdtp_CreateStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (kdtp_CreateEndTime.Checked)
+ {
+ sql += $" AND CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ kryptonDataGridView1.Columns.Clear();
+ kryptonDataGridView1.DataSource = dt;
+ kryptonDataGridView1.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+
+
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_ParamaterCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_ParamaterCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ ktb_ParamaterName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_ParamaterName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmParamater_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox3.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载系统参数界面发生异常", "LoadSysParamaterExp") + $":【{ex.Message}】!");
+
+ }
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询系统参数数据发生异常", "QuerySysParamaterData") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_ParamaterCode.Text = "";
+ ktb_ParamaterName.Text = "";
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (kryptonDataGridView1.SelectedRows.Count > 0)
+ {
+ frmEditParamater frm = new frmEditParamater();
+ frm.ParamaterId = kryptonDataGridView1.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的参数信息数据行!", "SelectWantToEditRow"));
+ }
+ }
+
+ private void kryptonButton1_Click(object sender, EventArgs e)
+ {
+ //if (!PlcOperationHelper.Instance.isConn)
+ //{
+ // KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ // return;
+ //}
+ frmSwitchRunDirection frm = new frmSwitchRunDirection();
+ frm.ShowDialog();
+ }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmParamater.resx b/CleanMachineHMI/FrmUserControl/frmParamater.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmParamater.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/frmPlcAlarmLog.Designer.cs b/CleanMachineHMI/FrmUserControl/frmPlcAlarmLog.Designer.cs
new file mode 100644
index 0000000..644b8b7
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmPlcAlarmLog.Designer.cs
@@ -0,0 +1,297 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmPlcAlarmLog
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.kryptonDataGridView1 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
+ this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.ktb_plcMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kcmb_plcAlarmStatus = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kcmb_plcAlarmHandleResult = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
+ this.kbtn_UuivertorAlarmClear = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_plcAlarmStatus)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_plcAlarmHandleResult)).BeginInit();
+ this.tableLayoutPanel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonDataGridView1
+ //
+ this.kryptonDataGridView1.AllowUserToAddRows = false;
+ this.kryptonDataGridView1.AllowUserToDeleteRows = false;
+ this.kryptonDataGridView1.AllowUserToResizeColumns = false;
+ this.kryptonDataGridView1.AllowUserToResizeRows = false;
+ this.kryptonDataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
+ this.kryptonDataGridView1.ClipboardCopyMode = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
+ this.kryptonDataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonDataGridView1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonDataGridView1.MultiSelect = false;
+ this.kryptonDataGridView1.Name = "kryptonDataGridView1";
+ this.kryptonDataGridView1.RowTemplate.Height = 23;
+ this.kryptonDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.kryptonDataGridView1.Size = new System.Drawing.Size(1020, 522);
+ this.kryptonDataGridView1.TabIndex = 0;
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.CaptionOverlap = 0D;
+ this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 126);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonDataGridView1);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(1024, 546);
+ this.kryptonGroupBox2.TabIndex = 5;
+ this.kryptonGroupBox2.Values.Heading = "数据区:";
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 6;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 150F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel1, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_plcMsg, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kcmb_plcAlarmStatus, 3, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 4, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kcmb_plcAlarmHandleResult, 5, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 1;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(1020, 38);
+ this.tableLayoutPanel1.TabIndex = 0;
+ //
+ // kryptonLabel1
+ //
+ this.kryptonLabel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel1.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel1.Name = "kryptonLabel1";
+ this.kryptonLabel1.Size = new System.Drawing.Size(114, 32);
+ this.kryptonLabel1.TabIndex = 1;
+ this.kryptonLabel1.Values.Text = "报警信息:";
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(333, 3);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(114, 32);
+ this.kryptonLabel4.TabIndex = 1;
+ this.kryptonLabel4.Values.Text = "报警状态:";
+ //
+ // ktb_plcMsg
+ //
+ this.ktb_plcMsg.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_plcMsg.Location = new System.Drawing.Point(132, 7);
+ this.ktb_plcMsg.Name = "ktb_plcMsg";
+ this.ktb_plcMsg.Size = new System.Drawing.Size(186, 23);
+ this.ktb_plcMsg.TabIndex = 2;
+ //
+ // kcmb_plcAlarmStatus
+ //
+ this.kcmb_plcAlarmStatus.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kcmb_plcAlarmStatus.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.kcmb_plcAlarmStatus.DropDownWidth = 248;
+ this.kcmb_plcAlarmStatus.Items.AddRange(new object[] {
+ "请选择",
+ "正在报警",
+ "报警结束"});
+ this.kcmb_plcAlarmStatus.Location = new System.Drawing.Point(462, 8);
+ this.kcmb_plcAlarmStatus.Name = "kcmb_plcAlarmStatus";
+ this.kcmb_plcAlarmStatus.Size = new System.Drawing.Size(186, 21);
+ this.kcmb_plcAlarmStatus.TabIndex = 3;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(663, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(144, 32);
+ this.kryptonLabel2.TabIndex = 1;
+ this.kryptonLabel2.Values.Text = "报警处理结果:";
+ //
+ // kcmb_plcAlarmHandleResult
+ //
+ this.kcmb_plcAlarmHandleResult.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kcmb_plcAlarmHandleResult.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.kcmb_plcAlarmHandleResult.DropDownWidth = 248;
+ this.kcmb_plcAlarmHandleResult.Items.AddRange(new object[] {
+ "请选择",
+ "未处理",
+ "已处理"});
+ this.kcmb_plcAlarmHandleResult.Location = new System.Drawing.Point(821, 8);
+ this.kcmb_plcAlarmHandleResult.Name = "kcmb_plcAlarmHandleResult";
+ this.kcmb_plcAlarmHandleResult.Size = new System.Drawing.Size(187, 21);
+ this.kcmb_plcAlarmHandleResult.TabIndex = 3;
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(285, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(137, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(144, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(135, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 3;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel2.Controls.Add(this.kbtn_UuivertorAlarmClear, 0, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 1, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(585, 49);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(425, 41);
+ this.tableLayoutPanel2.TabIndex = 1;
+ //
+ // kbtn_UuivertorAlarmClear
+ //
+ this.kbtn_UuivertorAlarmClear.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbtn_UuivertorAlarmClear.Location = new System.Drawing.Point(3, 3);
+ this.kbtn_UuivertorAlarmClear.Name = "kbtn_UuivertorAlarmClear";
+ this.kbtn_UuivertorAlarmClear.Size = new System.Drawing.Size(135, 35);
+ this.kbtn_UuivertorAlarmClear.TabIndex = 2;
+ this.kbtn_UuivertorAlarmClear.Values.Text = "变频器报警清除";
+ this.kbtn_UuivertorAlarmClear.MouseDown += new System.Windows.Forms.MouseEventHandler(this.kbtn_UuivertorAlarmClear_MouseDown);
+ this.kbtn_UuivertorAlarmClear.MouseUp += new System.Windows.Forms.MouseEventHandler(this.kbtn_UuivertorAlarmClear_MouseUp);
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.CaptionOverlap = 0D;
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(1024, 126);
+ this.kryptonGroupBox1.TabIndex = 4;
+ this.kryptonGroupBox1.Values.Heading = "查询操作";
+ //
+ // frmPlcAlarmLog
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.kryptonGroupBox2);
+ this.Controls.Add(this.kryptonGroupBox1);
+ this.Name = "frmPlcAlarmLog";
+ this.Size = new System.Drawing.Size(1024, 672);
+ this.Load += new System.EventHandler(this.frmPlcAlarmLog_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_plcAlarmStatus)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_plcAlarmHandleResult)).EndInit();
+ this.tableLayoutPanel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_plcMsg;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_plcAlarmStatus;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_plcAlarmHandleResult;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_UuivertorAlarmClear;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmPlcAlarmLog.cs b/CleanMachineHMI/FrmUserControl/frmPlcAlarmLog.cs
new file mode 100644
index 0000000..d693975
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmPlcAlarmLog.cs
@@ -0,0 +1,272 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+using NX_LogUtility;
+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
+{
+ [FormType(EnumFormType.PlcAlarmLog)]
+ public partial class frmPlcAlarmLog : UserControl
+ {
+ public frmPlcAlarmLog()
+ {
+ InitializeComponent();
+ _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _ComboBoxLanguageTextList;
+ private DataTable _InfoLanguageTextList;
+
+ public delegate void dlgRefreshFrmHost(bool isContainHisData);
+ public static dlgRefreshFrmHost RefreshFrmHost;
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ RefreshPlcData(true);
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载报警数据界面发生异常", "LoadFrmPlcAlarmExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ kcmb_plcAlarmStatus.SelectedIndex = 0;
+ kcmb_plcAlarmHandleResult.SelectedIndex = 0;
+ ktb_plcMsg.Text = "";
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_plcMsg.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_plcMsg.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmPlcAlarmLog_Load(object sender, EventArgs e)
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ kcmb_plcAlarmStatus.Items.Clear();
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcAlarmStatus.Name, "KryptonComboBox"))
+ {
+ kcmb_plcAlarmStatus.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ kcmb_plcAlarmHandleResult.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcAlarmHandleResult.Name, "KryptonComboBox"))
+ {
+ kcmb_plcAlarmHandleResult.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ }
+ kcmb_plcAlarmStatus.SelectedIndex = 0;
+ kcmb_plcAlarmHandleResult.SelectedIndex = 0;
+ RefreshFrmHost = new dlgRefreshFrmHost(RefreshPlcData);
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox1.Focus();
+ }
+ private void RefreshPlcData(bool isContainHisData)
+ {
+ List tmpWarningLogList = new List();
+ tmpWarningLogList.AddRange(GlobalHelper.CmWarningLogMd_List);
+ if (isContainHisData)
+ {
+ string sql = $@"SELECT * FROM CM_WARNING_LOG";
+ DataTable dtHis = LeadDbHelperSQLite.Query(sql).Tables[0];
+ foreach (DataRow item in dtHis.Rows)
+ {
+ tmpWarningLogList.Add(new CM_WarningLogMd
+ {
+ WarningCode = item["WARNING_CODE"].ToString(),
+ WarningName = item["WARNING_NAME"].ToString(),
+ WarningType = item["WARNING_TYPE"].ToString(),
+ WarningMessage = item["WARNING_MESSAGE"].ToString(),
+ WarningTime = Convert.ToDateTime(item["WARNING_TIME"]),
+ PlcItemCode = item["PLC_ITEM_CODE"].ToString(),
+ WarningStatus = Convert.ToInt32(item["WARING_STATUS"]),
+ WarningHandleResult = Convert.ToInt32(item["WARNING_HANDLE_RESULT"]),
+ WarningHandleTime = Convert.ToDateTime(item["WARNING_HANDLE_TIME"]),
+ CreateBy = Convert.ToInt32(item["CREATE_BY"]),
+ CreateTime = Convert.ToDateTime(item["CREATE_TIME"]),
+ UpdateBy = Convert.ToInt32(item["UPDATE_BY"]),
+ UpdateTime = Convert.ToDateTime(item["UPDATE_TIME"]),
+ DataVersion = Convert.ToInt32(item["DATA_VERSION"]),
+ });
+ }
+ }
+ if (!string.IsNullOrEmpty(ktb_plcMsg.Text.Trim()))
+ {
+ tmpWarningLogList = tmpWarningLogList.FindAll(x => x.WarningCode.Contains(ktb_plcMsg.Text.Trim()) || x.WarningName.Contains(ktb_plcMsg.Text.Trim()));
+ }
+ if (tmpWarningLogList == null && tmpWarningLogList.Count > 0)
+ {
+ if (kcmb_plcAlarmStatus.SelectedIndex != 0)
+ {
+ tmpWarningLogList = tmpWarningLogList.FindAll(x => x.WarningStatus == (kcmb_plcAlarmStatus.SelectedIndex - 1));
+ }
+ if (tmpWarningLogList == null && tmpWarningLogList.Count > 0)
+ {
+ if (kcmb_plcAlarmHandleResult.SelectedIndex != 0)
+ {
+ tmpWarningLogList = tmpWarningLogList.FindAll(x => x.WarningHandleResult == (kcmb_plcAlarmHandleResult.SelectedIndex - 1));
+ }
+ }
+ }
+ if (tmpWarningLogList != null && tmpWarningLogList.Count > 0)
+ {
+ tmpWarningLogList.OrderByDescending(x => x.WarningTime);
+ DataTable dt = new DataTable();
+ DataColumn dc1 = new DataColumn("序号", Type.GetType("System.Int32"));
+ DataColumn dc2 = new DataColumn("PLC变量地址", Type.GetType("System.String"));
+ DataColumn dc3 = new DataColumn("报警条码", Type.GetType("System.String"));
+ DataColumn dc4 = new DataColumn("报警内容", Type.GetType("System.String"));
+ DataColumn dc5 = new DataColumn("报警时间", Type.GetType("System.String"));
+ DataColumn dc6 = new DataColumn("报警状态", Type.GetType("System.String"));
+ DataColumn dc7 = new DataColumn("处理结果", Type.GetType("System.String"));
+ DataColumn dc8 = new DataColumn("处理时间", Type.GetType("System.String"));
+ DataColumn dc9 = new DataColumn("报警时长", Type.GetType("System.String"));
+
+ dt.Columns.Add(dc1);
+ dt.Columns.Add(dc2);
+ dt.Columns.Add(dc3);
+ dt.Columns.Add(dc4);
+ dt.Columns.Add(dc5);
+ dt.Columns.Add(dc6);
+ dt.Columns.Add(dc7);
+ dt.Columns.Add(dc8);
+ dt.Columns.Add(dc9);
+ int index = 1;
+ foreach (CM_WarningLogMd item in tmpWarningLogList)
+ {
+ DataRow dr = dt.NewRow();
+ dr["序号"] = index;
+ dr["PLC变量地址"] = item.PlcItemCode;
+ dr["报警条码"] = item.WarningCode;
+ dr["报警内容"] = item.WarningName;
+ dr["报警时间"] = item.WarningTime;
+ if (item.WarningStatus == 0)
+ {
+ //dr["报警状态"] = "正在报警";
+ dr["报警状态"] = "Occurrent Alarm";
+ dr["处理时间"] = "";
+ string dateDiff = null;
+
+ TimeSpan ts1 = new TimeSpan(item.WarningTime.Ticks);
+ TimeSpan ts2 = new TimeSpan(DateTime.Now.Ticks);
+ TimeSpan ts = ts1.Subtract(ts2).Duration();
+ dateDiff = ts.Days.ToString() + "天"
+ + ts.Hours.ToString() + "小时"
+ + ts.Minutes.ToString() + "分钟"
+ + ts.Seconds.ToString() + "秒";
+ dr["报警时长"] = dateDiff;
+ }
+ else
+ {
+ dr["报警状态"] = "Alarm Reset";
+ dr["处理时间"] = item.WarningHandleTime;
+ string dateDiff = null;
+
+ TimeSpan ts1 = new TimeSpan(item.WarningTime.Ticks);
+ TimeSpan ts2 = new TimeSpan(item.WarningHandleTime.Ticks);
+ TimeSpan ts = ts1.Subtract(ts2).Duration();
+ dateDiff = ts.Days.ToString() + "天"
+ + ts.Hours.ToString() + "小时"
+ + ts.Minutes.ToString() + "分钟"
+ + ts.Seconds.ToString() + "秒"
+ + ts.Milliseconds.ToString() + "毫秒";
+ dr["报警时长"] = dateDiff;
+ }
+ if (item.WarningHandleResult == 0)
+ {
+ //dr["处理结果"] = "未处理";
+ dr["处理结果"] = "Untreated";
+ }
+ else
+ {
+ //dr["处理结果"] = "已处理";
+ dr["处理结果"] = "Handled";
+ }
+ dt.Rows.Add(dr);
+ index++;
+ }
+ dt.DefaultView.Sort = "报警时间 DESC";
+ dt = dt.DefaultView.ToTable();
+ kryptonDataGridView1.DataSource = dt;
+ kryptonDataGridView1.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ }
+ else
+ {
+ kryptonDataGridView1.DataSource = null;
+ }
+ }
+
+ private void kbtn_UuivertorAlarmClear_MouseDown(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ if (PlcOperationHelper.Instance.WritePlcItem("FrequencyMacAlarmClear", "True", PlcItemTypeDesc.M))
+ {
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC变频器报警清除信号成功。", LogTypeEum.Err);
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ private void kbtn_UuivertorAlarmClear_MouseUp(object sender, MouseEventArgs e)
+ {
+ try
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("FrequencyMacAlarmClear", "False", PlcItemTypeDesc.M))
+ {
+
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmPlcAlarmLog.resx b/CleanMachineHMI/FrmUserControl/frmPlcAlarmLog.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmPlcAlarmLog.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/frmPlcItemConfig.Designer.cs b/CleanMachineHMI/FrmUserControl/frmPlcItemConfig.Designer.cs
new file mode 100644
index 0000000..a1bf4be
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmPlcItemConfig.Designer.cs
@@ -0,0 +1,377 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmPlcItemConfig
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.kryptonDataGridView1 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
+ this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.ktb_plcMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kcmb_plcItemType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.kcmb_plcItemDateType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.ktb_plcItemModbusAddress = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.ktb_plcItemPriAddress = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ 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.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
+ this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_plcItemType)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_plcItemDateType)).BeginInit();
+ this.tableLayoutPanel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonDataGridView1
+ //
+ this.kryptonDataGridView1.AllowUserToAddRows = false;
+ this.kryptonDataGridView1.AllowUserToDeleteRows = false;
+ this.kryptonDataGridView1.AllowUserToResizeColumns = false;
+ this.kryptonDataGridView1.AllowUserToResizeRows = false;
+ this.kryptonDataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
+ this.kryptonDataGridView1.ClipboardCopyMode = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
+ this.kryptonDataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonDataGridView1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonDataGridView1.MultiSelect = false;
+ this.kryptonDataGridView1.Name = "kryptonDataGridView1";
+ this.kryptonDataGridView1.RowTemplate.Height = 23;
+ this.kryptonDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.kryptonDataGridView1.Size = new System.Drawing.Size(1020, 502);
+ this.kryptonDataGridView1.TabIndex = 0;
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.CaptionOverlap = 0D;
+ this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 146);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonDataGridView1);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(1024, 526);
+ this.kryptonGroupBox2.TabIndex = 3;
+ this.kryptonGroupBox2.Values.Heading = "数据区:";
+ //
+ // kryptonLabel1
+ //
+ this.kryptonLabel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel1.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel1.Name = "kryptonLabel1";
+ this.kryptonLabel1.Size = new System.Drawing.Size(154, 27);
+ this.kryptonLabel1.TabIndex = 1;
+ this.kryptonLabel1.Values.Text = "PLC信息:";
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 6;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 160F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 160F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 160F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel1, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 4, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_plcMsg, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kcmb_plcItemType, 3, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kcmb_plcItemDateType, 5, 0);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_plcItemModbusAddress, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_plcItemPriAddress, 3, 1);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(1020, 66);
+ this.tableLayoutPanel1.TabIndex = 0;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 36);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(154, 27);
+ this.kryptonLabel2.TabIndex = 1;
+ this.kryptonLabel2.Values.Text = "PLC变量Modbus地址:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(343, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(154, 27);
+ this.kryptonLabel3.TabIndex = 1;
+ this.kryptonLabel3.Values.Text = "PLC变量类型:";
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(683, 3);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(154, 27);
+ this.kryptonLabel4.TabIndex = 1;
+ this.kryptonLabel4.Values.Text = "PLC变量数据类型:";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel5.Location = new System.Drawing.Point(343, 36);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(154, 27);
+ this.kryptonLabel5.TabIndex = 1;
+ this.kryptonLabel5.Values.Text = "PLC变量寄存器地址:";
+ //
+ // ktb_plcMsg
+ //
+ this.ktb_plcMsg.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_plcMsg.Location = new System.Drawing.Point(166, 5);
+ this.ktb_plcMsg.Name = "ktb_plcMsg";
+ this.ktb_plcMsg.Size = new System.Drawing.Size(168, 23);
+ this.ktb_plcMsg.TabIndex = 2;
+ //
+ // kcmb_plcItemType
+ //
+ this.kcmb_plcItemType.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kcmb_plcItemType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.kcmb_plcItemType.DropDownWidth = 248;
+ this.kcmb_plcItemType.Items.AddRange(new object[] {
+ "请选择",
+ "写入变量",
+ "读取变量",
+ "可读可写"});
+ this.kcmb_plcItemType.Location = new System.Drawing.Point(506, 6);
+ this.kcmb_plcItemType.Name = "kcmb_plcItemType";
+ this.kcmb_plcItemType.Size = new System.Drawing.Size(168, 21);
+ this.kcmb_plcItemType.TabIndex = 3;
+ //
+ // kcmb_plcItemDateType
+ //
+ this.kcmb_plcItemDateType.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kcmb_plcItemDateType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.kcmb_plcItemDateType.DropDownWidth = 248;
+ this.kcmb_plcItemDateType.Items.AddRange(new object[] {
+ "请选择",
+ "M 布尔类型",
+ "D 整数类型",
+ "X 数据类型",
+ "Y 数据类型;"});
+ this.kcmb_plcItemDateType.Location = new System.Drawing.Point(845, 6);
+ this.kcmb_plcItemDateType.Name = "kcmb_plcItemDateType";
+ this.kcmb_plcItemDateType.Size = new System.Drawing.Size(170, 21);
+ this.kcmb_plcItemDateType.TabIndex = 3;
+ //
+ // ktb_plcItemModbusAddress
+ //
+ this.ktb_plcItemModbusAddress.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_plcItemModbusAddress.Location = new System.Drawing.Point(166, 38);
+ this.ktb_plcItemModbusAddress.Name = "ktb_plcItemModbusAddress";
+ this.ktb_plcItemModbusAddress.Size = new System.Drawing.Size(168, 23);
+ this.ktb_plcItemModbusAddress.TabIndex = 2;
+ //
+ // ktb_plcItemPriAddress
+ //
+ this.ktb_plcItemPriAddress.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_plcItemPriAddress.Location = new System.Drawing.Point(506, 38);
+ this.ktb_plcItemPriAddress.Name = "ktb_plcItemPriAddress";
+ this.ktb_plcItemPriAddress.Size = new System.Drawing.Size(168, 23);
+ this.ktb_plcItemPriAddress.TabIndex = 2;
+ //
+ // kbt_Add
+ //
+ this.kbt_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Add.Location = new System.Drawing.Point(3, 3);
+ this.kbt_Add.Name = "kbt_Add";
+ this.kbt_Add.Size = new System.Drawing.Size(111, 35);
+ this.kbt_Add.TabIndex = 0;
+ this.kbt_Add.Values.Text = "新增";
+ this.kbt_Add.Click += new System.EventHandler(this.kbt_Add_Click);
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(471, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(113, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(120, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(111, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // kbt_Delete
+ //
+ this.kbt_Delete.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Delete.Location = new System.Drawing.Point(237, 3);
+ this.kbt_Delete.Name = "kbt_Delete";
+ this.kbt_Delete.Size = new System.Drawing.Size(111, 35);
+ this.kbt_Delete.TabIndex = 0;
+ this.kbt_Delete.Values.Text = "删除";
+ this.kbt_Delete.Click += new System.EventHandler(this.kbt_Delete_Click);
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 5;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 4, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Delete, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 3, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Add, 0, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(423, 73);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(587, 41);
+ this.tableLayoutPanel2.TabIndex = 1;
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(354, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(111, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.CaptionOverlap = 0D;
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(1024, 146);
+ this.kryptonGroupBox1.TabIndex = 2;
+ this.kryptonGroupBox1.Values.Heading = "查询操作";
+ //
+ // frmPlcItemConfig
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.kryptonGroupBox2);
+ this.Controls.Add(this.kryptonGroupBox1);
+ this.Name = "frmPlcItemConfig";
+ this.Size = new System.Drawing.Size(1024, 672);
+ this.Load += new System.EventHandler(this.frmPlcItemConfig_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_plcItemType)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_plcItemDateType)).EndInit();
+ this.tableLayoutPanel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_plcMsg;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_plcItemType;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_plcItemDateType;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_plcItemModbusAddress;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_plcItemPriAddress;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmPlcItemConfig.cs b/CleanMachineHMI/FrmUserControl/frmPlcItemConfig.cs
new file mode 100644
index 0000000..50861ad
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmPlcItemConfig.cs
@@ -0,0 +1,334 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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
+{
+ [FormType(EnumFormType.PlcItemConfig)]
+ public partial class frmPlcItemConfig : UserControl
+ {
+ public frmPlcItemConfig()
+ {
+ InitializeComponent();
+ _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _ComboBoxLanguageTextList;
+ private DataTable _InfoLanguageTextList;
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_plcMsg.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_plcMsg.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ ktb_plcItemModbusAddress.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_plcItemModbusAddress.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ ktb_plcItemPriAddress.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_plcItemPriAddress.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+ private void frmPlcItemConfig_Load(object sender, EventArgs e)
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ kcmb_plcItemType.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcItemType.Name, "KryptonComboBox"))
+ {
+ kcmb_plcItemType.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ kcmb_plcItemDateType.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcItemDateType.Name, "KryptonComboBox"))
+ {
+ kcmb_plcItemDateType.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ }
+ kcmb_plcItemType.SelectedIndex = 0;
+ kcmb_plcItemDateType.SelectedIndex = 0;
+ RefreshFrmHost = new dlgRefreshFrmHost(RefreshPlcData);
+ RefreshPlcData();
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox1.Focus();
+ }
+ private void RefreshPlcData()
+ {
+ try
+ {
+ #region 已删除
+ //string sql = $@"
+ // SELECT
+ // PLC_ITEM_ID '序号',
+ // PLC_ITEM_CODE 'PLC变量编码',
+ // PLC_ITEM_NAME 'PLC变量名称',
+ // CASE PLC_ITEM_TYPE
+ // WHEN 0 THEN
+ // '写入变量'
+ // WHEN 1 THEN
+ // '读取变量'
+ // ELSE
+ // '可读可写'
+ // END 'PLC变量类型',
+ // CASE PLC_ITEM_DATA_TYPE
+ // WHEN 0 THEN
+ // 'M 布尔类型'
+ // WHEN 1 THEN
+ // 'D 整数类型'
+ // WHEN 2 THEN
+ // 'X 数据类型'
+ // WHEN 3 THEN
+ // 'Y 数据类型'
+ // ELSE
+ // '未知'
+ // END 'PLC变量数据类型',
+ // PLC_ITEM_PRI_ADDRESS 'PLC寄存器地址',
+ // PLC_ITEM_MODBUS_ADDRESS 'ModBus地址',
+ // PLC_ITEM_VALUE '当前值'
+ // FROM
+ // BAS_PLC_ITEM
+ // WHERE 1=1
+ // ";
+ //if (!string.IsNullOrEmpty(ktb_plcMsg.Text.Trim()))
+ //{
+ // sql += $" AND (PLC_ITEM_CODE LIKE '%{ktb_plcMsg.Text.Trim()}%' OR PLC_ITEM_NAME LIKE '%{ktb_plcMsg.Text.Trim()}%')";
+ //}
+ //if (kcmb_plcItemType.SelectedIndex != 0)
+ //{
+ // sql += $" AND PLC_ITEM_TYPE = '{kcmb_plcItemType.SelectedIndex -1}'";
+ //}
+ //if (kcmb_plcItemDateType.SelectedIndex != 0)
+ //{
+ // sql += $" AND PLC_ITEM_DATA_TYPE = '{kcmb_plcItemDateType.SelectedIndex - 1}'";
+ //}
+ //if (!string.IsNullOrEmpty(ktb_plcItemModbusAddress.Text.Trim()))
+ //{
+ // sql += $" AND PLC_ITEM_MODBUS_ADDRESS = '{ktb_plcItemModbusAddress.Text.Trim()}'";
+ //}
+ //if (!string.IsNullOrEmpty(ktb_plcItemPriAddress.Text.Trim()))
+ //{
+ // sql += $" AND PLC_ITEM_PRI_ADDRESS = '{ktb_plcItemPriAddress.Text.Trim()}'";
+ //}
+ //DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ #endregion
+
+ List tmpMdList;
+ if (!string.IsNullOrEmpty(ktb_plcMsg.Text.Trim()))
+ {
+ tmpMdList = GlobalHelper.PlcItemMdList.FindAll(x => x.PlcItemCode.Contains(ktb_plcMsg.Text.Trim()) || x.PlcItemName.Contains(ktb_plcMsg.Text.Trim()));
+ }
+ else
+ {
+ tmpMdList = GlobalHelper.PlcItemMdList;
+ }
+ if (tmpMdList != null && tmpMdList.Count > 0)
+ {
+ if (kcmb_plcItemType.SelectedIndex != 0)
+ {
+ tmpMdList = tmpMdList.FindAll(x => x.PlcItemType == (kcmb_plcItemType.SelectedIndex - 1));
+ }
+ if (tmpMdList != null && tmpMdList.Count > 0)
+ {
+ if (kcmb_plcItemDateType.SelectedIndex != 0)
+ {
+ tmpMdList = tmpMdList.FindAll(x => x.PlcItemDataType == (kcmb_plcItemDateType.SelectedIndex - 1));
+ }
+ if (tmpMdList != null && tmpMdList.Count > 0)
+ {
+ if (!string.IsNullOrEmpty(ktb_plcItemModbusAddress.Text.Trim()))
+ {
+ tmpMdList = tmpMdList.FindAll(x => x.PlcItemModbusAddress == ktb_plcItemModbusAddress.Text.Trim());
+ }
+ if (tmpMdList != null && tmpMdList.Count > 0)
+ {
+ if (!string.IsNullOrEmpty(ktb_plcItemPriAddress.Text.Trim()))
+ {
+ tmpMdList = tmpMdList.FindAll(x => x.PlcItemPriAddress == ktb_plcItemPriAddress.Text.Trim());
+ }
+ }
+ }
+ }
+ }
+
+
+ if (tmpMdList != null && tmpMdList.Count > 0)
+ {
+ DataTable dt = new DataTable();
+ DataColumn dc1 = new DataColumn("序号", Type.GetType("System.Int32"));
+ DataColumn dc2 = new DataColumn("PLC变量编码", Type.GetType("System.String"));
+ DataColumn dc3 = new DataColumn("PLC变量名称", Type.GetType("System.String"));
+ DataColumn dc8 = new DataColumn("当前值", Type.GetType("System.String"));
+ DataColumn dc4 = new DataColumn("PLC变量类型", Type.GetType("System.String"));
+ DataColumn dc5 = new DataColumn("PLC变量数据类型", Type.GetType("System.String"));
+ DataColumn dc6 = new DataColumn("PLC寄存器地址", Type.GetType("System.String"));
+ DataColumn dc7 = new DataColumn("ModBus地址", Type.GetType("System.String"));
+
+ dt.Columns.Add(dc1);
+ dt.Columns.Add(dc2);
+ dt.Columns.Add(dc3);
+ dt.Columns.Add(dc8);
+ dt.Columns.Add(dc4);
+ dt.Columns.Add(dc5);
+ dt.Columns.Add(dc6);
+ dt.Columns.Add(dc7);
+ foreach (BasPlcItemMd item in tmpMdList)
+ {
+ DataRow dr = dt.NewRow();
+ dr["序号"] = item.PlcItemId;
+ dr["PLC变量编码"] = item.PlcItemCode;
+ dr["PLC变量名称"] = item.PlcItemName;
+ if (item.PlcItemType == 0)
+ {
+ dr["PLC变量类型"] = "Can Write";
+ }
+ else if (item.PlcItemType == 1)
+ {
+ dr["PLC变量类型"] = "Can Read";
+ }
+ else
+ {
+ dr["PLC变量类型"] = "Read and Write";
+ }
+
+ if (item.PlcItemDataType == 0)
+ {
+ dr["PLC变量数据类型"] = "M Type";
+ }
+ else if (item.PlcItemDataType == 1)
+ {
+ dr["PLC变量数据类型"] = "D Type";
+ }
+ else if (item.PlcItemDataType == 2)
+ {
+ dr["PLC变量数据类型"] = "X Type";
+ }
+ else
+ {
+ dr["PLC变量数据类型"] = "Y Type";
+ }
+ dr["PLC寄存器地址"] = item.PlcItemPriAddress;
+ dr["ModBus地址"] = item.PlcItemModbusAddress;
+ dr["当前值"] = item.PlcItemValue;
+ dt.Rows.Add(dr);
+ }
+ kryptonDataGridView1.DataSource = dt;
+ kryptonDataGridView1.ClearSelection();
+ kryptonDataGridView1.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ }
+ else
+ {
+ kryptonDataGridView1.DataSource = null;
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载PLC变量数据界面发生异常", "LoadFrmPlcItemExp") + $":【{ex.Message}】!");
+ }
+ }
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ RefreshPlcData();
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_plcMsg.Text = "";
+ ktb_plcItemModbusAddress.Text = "";
+ ktb_plcItemPriAddress.Text = "";
+ kcmb_plcItemDateType.SelectedIndex = 0;
+ kcmb_plcItemType.SelectedIndex = 0;
+ }
+
+ private void kbt_Add_Click(object sender, EventArgs e)
+ {
+ frmAddPlcItem frm = new frmAddPlcItem();
+ frm.ShowDialog();
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (kryptonDataGridView1.SelectedRows.Count > 0)
+ {
+ frmEditPlcItem frm = new frmEditPlcItem();
+ frm.PlcItemId = kryptonDataGridView1.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ //KryptonMessageBox.Show("请选择要编辑的PLC变量数据行!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的PLC变量数据行!", "SelectWantToEditRow"));
+ }
+ }
+
+ private void kbt_Delete_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (kryptonDataGridView1.SelectedRows.Count > 0)
+ {
+ DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的PLC变量信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ if (dr == DialogResult.OK)
+ {
+ string PlcItemId = kryptonDataGridView1.SelectedRows[0].Cells[0].Value.ToString();
+ string sql = $@"DELETE FROM BAS_PLC_ITEM WHERE PLC_ITEM_ID = '{PlcItemId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ //KryptonMessageBox.Show("删除PLC变量数据成功!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除PLC变量数据成功!", "DeleteSuccessInfo"));
+ RefreshFrmHost();
+ }
+ else
+ {
+ //KryptonMessageBox.Show("删除PLC变量数据失败!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除PLC变量数据失败!", "DeleteFailInfo"));
+ }
+ }
+ }
+ else
+ {
+ //KryptonMessageBox.Show("请选择要删除的PLC变量数据行!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的PLC变量数据行!", "SelectWantToDeleteRow"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除PLC变量数据发生异常", "DeletePlcItemDataExp") + $":【{ex.Message}】!");
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmPlcItemConfig.resx b/CleanMachineHMI/FrmUserControl/frmPlcItemConfig.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmPlcItemConfig.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/frmPrinterMain.Designer.cs b/CleanMachineHMI/FrmUserControl/frmPrinterMain.Designer.cs
new file mode 100644
index 0000000..65711c0
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmPrinterMain.Designer.cs
@@ -0,0 +1,475 @@
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ partial class frmPrinterMain
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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()
+ {
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ this.kryptonDataGridView2 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
+ this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
+ this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonButton2 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_EditWorkingPalletData = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.kdtp_InputStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
+ this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.ktb_palletMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kcmb_sheetType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.ktb_irMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kdtp_InputEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
+ this.kryptonGroupBox3 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.创建时间 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ this.创建人 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ this.作业状态 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ this.托盘号 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ this.序号 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ this.Column1 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewCheckBoxColumn();
+ this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonDataGridView1 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_sheetType)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3.Panel)).BeginInit();
+ this.kryptonGroupBox3.Panel.SuspendLayout();
+ this.kryptonGroupBox3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonDataGridView2
+ //
+ this.kryptonDataGridView2.AllowUserToAddRows = false;
+ this.kryptonDataGridView2.AllowUserToDeleteRows = false;
+ this.kryptonDataGridView2.AllowUserToResizeColumns = false;
+ this.kryptonDataGridView2.AllowUserToResizeRows = false;
+ this.kryptonDataGridView2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells;
+ this.kryptonDataGridView2.ClipboardCopyMode = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
+ this.kryptonDataGridView2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonDataGridView2.Location = new System.Drawing.Point(0, 0);
+ this.kryptonDataGridView2.MultiSelect = false;
+ this.kryptonDataGridView2.Name = "kryptonDataGridView2";
+ this.kryptonDataGridView2.ReadOnly = true;
+ this.kryptonDataGridView2.RowTemplate.Height = 23;
+ this.kryptonDataGridView2.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.kryptonDataGridView2.Size = new System.Drawing.Size(1020, 364);
+ this.kryptonDataGridView2.TabIndex = 0;
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.CaptionOverlap = 0D;
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(1024, 118);
+ this.kryptonGroupBox1.TabIndex = 7;
+ this.kryptonGroupBox1.Values.Heading = "查询操作";
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 4;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 3, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kryptonButton2, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbtn_EditWorkingPalletData, 0, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(525, 58);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(492, 33);
+ this.tableLayoutPanel2.TabIndex = 1;
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(372, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(117, 27);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(249, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(117, 27);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kryptonButton2
+ //
+ this.kryptonButton2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kryptonButton2.Location = new System.Drawing.Point(126, 3);
+ this.kryptonButton2.Name = "kryptonButton2";
+ this.kryptonButton2.Size = new System.Drawing.Size(117, 27);
+ this.kryptonButton2.TabIndex = 0;
+ this.kryptonButton2.Values.Text = "补打IR单据";
+ this.kryptonButton2.Click += new System.EventHandler(this.kryptonButton2_Click);
+ //
+ // kbtn_EditWorkingPalletData
+ //
+ this.kbtn_EditWorkingPalletData.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbtn_EditWorkingPalletData.Location = new System.Drawing.Point(3, 3);
+ this.kbtn_EditWorkingPalletData.Name = "kbtn_EditWorkingPalletData";
+ this.kbtn_EditWorkingPalletData.Size = new System.Drawing.Size(117, 27);
+ this.kbtn_EditWorkingPalletData.TabIndex = 0;
+ this.kbtn_EditWorkingPalletData.Values.Text = "修改作业数据";
+ this.kbtn_EditWorkingPalletData.Click += new System.EventHandler(this.kbtn_EditWorkingPalletData_Click);
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 6;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 150F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_InputStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel1, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_palletMsg, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 4, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kcmb_sheetType, 5, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_irMsg, 3, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_InputEndTime, 3, 1);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(1020, 55);
+ this.tableLayoutPanel1.TabIndex = 0;
+ //
+ // kdtp_InputStartTime
+ //
+ this.kdtp_InputStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_InputStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_InputStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_InputStartTime.Location = new System.Drawing.Point(132, 30);
+ this.kdtp_InputStartTime.Name = "kdtp_InputStartTime";
+ this.kdtp_InputStartTime.ShowCheckBox = true;
+ this.kdtp_InputStartTime.Size = new System.Drawing.Size(186, 21);
+ this.kdtp_InputStartTime.TabIndex = 8;
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(3, 30);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(114, 22);
+ this.kryptonLabel3.TabIndex = 1;
+ this.kryptonLabel3.Values.Text = "录入时间:";
+ //
+ // kryptonLabel1
+ //
+ this.kryptonLabel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel1.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel1.Name = "kryptonLabel1";
+ this.kryptonLabel1.Size = new System.Drawing.Size(114, 21);
+ this.kryptonLabel1.TabIndex = 1;
+ this.kryptonLabel1.Values.Text = "托盘信息:";
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(333, 3);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(114, 21);
+ this.kryptonLabel4.TabIndex = 1;
+ this.kryptonLabel4.Values.Text = "IR信息:";
+ //
+ // ktb_palletMsg
+ //
+ this.ktb_palletMsg.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_palletMsg.Location = new System.Drawing.Point(132, 3);
+ this.ktb_palletMsg.Name = "ktb_palletMsg";
+ this.ktb_palletMsg.Size = new System.Drawing.Size(186, 23);
+ this.ktb_palletMsg.TabIndex = 2;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(663, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(144, 21);
+ this.kryptonLabel2.TabIndex = 1;
+ this.kryptonLabel2.Values.Text = "板材信息:";
+ //
+ // kcmb_sheetType
+ //
+ this.kcmb_sheetType.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kcmb_sheetType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.kcmb_sheetType.DropDownWidth = 248;
+ this.kcmb_sheetType.Location = new System.Drawing.Point(821, 3);
+ this.kcmb_sheetType.Name = "kcmb_sheetType";
+ this.kcmb_sheetType.Size = new System.Drawing.Size(187, 21);
+ this.kcmb_sheetType.TabIndex = 3;
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(378, 31);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 1;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // ktb_irMsg
+ //
+ this.ktb_irMsg.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_irMsg.Location = new System.Drawing.Point(462, 3);
+ this.ktb_irMsg.Name = "ktb_irMsg";
+ this.ktb_irMsg.Size = new System.Drawing.Size(186, 23);
+ this.ktb_irMsg.TabIndex = 2;
+ //
+ // kdtp_InputEndTime
+ //
+ this.kdtp_InputEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_InputEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_InputEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_InputEndTime.Location = new System.Drawing.Point(462, 30);
+ this.kdtp_InputEndTime.Name = "kdtp_InputEndTime";
+ this.kdtp_InputEndTime.ShowCheckBox = true;
+ this.kdtp_InputEndTime.Size = new System.Drawing.Size(186, 21);
+ this.kdtp_InputEndTime.TabIndex = 8;
+ //
+ // kryptonGroupBox3
+ //
+ this.kryptonGroupBox3.CaptionOverlap = 0D;
+ this.kryptonGroupBox3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox3.Location = new System.Drawing.Point(0, 284);
+ this.kryptonGroupBox3.Name = "kryptonGroupBox3";
+ //
+ // kryptonGroupBox3.Panel
+ //
+ this.kryptonGroupBox3.Panel.Controls.Add(this.kryptonDataGridView2);
+ this.kryptonGroupBox3.Size = new System.Drawing.Size(1024, 388);
+ this.kryptonGroupBox3.TabIndex = 9;
+ this.kryptonGroupBox3.Values.Heading = "托盘明细表数据:";
+ //
+ // kryptonButton1
+ //
+ this.kryptonButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kryptonButton1.Location = new System.Drawing.Point(728, 47);
+ this.kryptonButton1.Name = "kryptonButton1";
+ this.kryptonButton1.Size = new System.Drawing.Size(144, 19);
+ this.kryptonButton1.TabIndex = 0;
+ this.kryptonButton1.Values.Text = "重置条件";
+ //
+ // 创建时间
+ //
+ this.创建时间.HeaderText = "创建时间";
+ this.创建时间.Name = "创建时间";
+ this.创建时间.Width = 163;
+ //
+ // 创建人
+ //
+ this.创建人.HeaderText = "创建人";
+ this.创建人.Name = "创建人";
+ this.创建人.Width = 163;
+ //
+ // 作业状态
+ //
+ this.作业状态.HeaderText = "作业状态";
+ this.作业状态.Name = "作业状态";
+ this.作业状态.Width = 163;
+ //
+ // 托盘号
+ //
+ this.托盘号.HeaderText = "托盘号";
+ this.托盘号.Name = "托盘号";
+ this.托盘号.Width = 164;
+ //
+ // 序号
+ //
+ this.序号.HeaderText = "序号";
+ this.序号.Name = "序号";
+ this.序号.Width = 163;
+ //
+ // Column1
+ //
+ dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle1.NullValue = false;
+ this.Column1.DefaultCellStyle = dataGridViewCellStyle1;
+ this.Column1.FalseValue = null;
+ this.Column1.HeaderText = "";
+ this.Column1.IndeterminateValue = null;
+ this.Column1.Name = "Column1";
+ this.Column1.TrueValue = null;
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.CaptionOverlap = 0D;
+ this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 118);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonDataGridView1);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonButton1);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(1024, 166);
+ this.kryptonGroupBox2.TabIndex = 8;
+ this.kryptonGroupBox2.Values.Heading = "托盘主表数据:";
+ //
+ // kryptonDataGridView1
+ //
+ this.kryptonDataGridView1.AllowUserToAddRows = false;
+ this.kryptonDataGridView1.AllowUserToDeleteRows = false;
+ this.kryptonDataGridView1.AllowUserToResizeColumns = false;
+ this.kryptonDataGridView1.AllowUserToResizeRows = false;
+ this.kryptonDataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ this.kryptonDataGridView1.ClipboardCopyMode = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
+ this.kryptonDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.序号,
+ this.托盘号,
+ this.作业状态,
+ this.创建人,
+ this.创建时间});
+ this.kryptonDataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonDataGridView1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonDataGridView1.MultiSelect = false;
+ this.kryptonDataGridView1.Name = "kryptonDataGridView1";
+ this.kryptonDataGridView1.RowTemplate.Height = 23;
+ this.kryptonDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.kryptonDataGridView1.Size = new System.Drawing.Size(1020, 142);
+ this.kryptonDataGridView1.TabIndex = 0;
+ this.kryptonDataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.kryptonDataGridView1_CellContentClick);
+ this.kryptonDataGridView1.SelectionChanged += new System.EventHandler(this.kryptonDataGridView1_SelectionChanged);
+ //
+ // frmPrinterMain
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.kryptonGroupBox3);
+ this.Controls.Add(this.kryptonGroupBox2);
+ this.Controls.Add(this.kryptonGroupBox1);
+ this.Name = "frmPrinterMain";
+ this.Size = new System.Drawing.Size(1024, 672);
+ this.Load += new System.EventHandler(this.frmPrinterMain_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_sheetType)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3.Panel)).EndInit();
+ this.kryptonGroupBox3.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3)).EndInit();
+ this.kryptonGroupBox3.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridView kryptonDataGridView2;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ 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 kryptonButton2;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_EditWorkingPalletData;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_InputStartTime;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_palletMsg;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_sheetType;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_irMsg;
+ private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_InputEndTime;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox3;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 创建时间;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 创建人;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 作业状态;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 托盘号;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 序号;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewCheckBoxColumn Column1;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmPrinterMain.cs b/CleanMachineHMI/FrmUserControl/frmPrinterMain.cs
new file mode 100644
index 0000000..54f44e1
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmPrinterMain.cs
@@ -0,0 +1,704 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using FastReport;
+using LeadDataBaseUtility;
+using NX_LogUtility;
+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.Web.UI.WebControls;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.FrmUserControl
+{
+ [FormType(EnumFormType.WorkingDataRecord)]
+ public partial class frmPrinterMain : UserControl
+ {
+ ///
+ /// 页面信息语言文本列表
+ ///
+ private DataTable _InfoLanguageTextList;
+
+ ///
+ /// 模板地址
+ ///
+ private string _reportFolder = Application.StartupPath + "\\ReportMd\\";
+ public frmPrinterMain()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+ private void InitDtlData(string palletCode)
+ {
+ string sql = $@"SELECT WORKING_PALLET_DTL_ID 序号,IR_CODE IR条码,SHEET_TYPE_NAME 板材信息,INPUT_TIME 录入时间,CLEAN_MODE_NAME 清洗方式,CONTAMINATION_TYPE_NAME 污染类型,CONTAMINATION_DTL_NAME 污染明细, CURRENT_NUMBER 当前计数,USER_NAME 操作用户 FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = '{palletCode}'";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ kryptonDataGridView2.DataSource = dt;
+ kryptonDataGridView2.SetDataViewColumnText(this.Name + "." + kryptonDataGridView2.Name, GlobalHelper.LanguageCode);
+ }
+ else
+ {
+ kryptonDataGridView2.DataSource = null;
+ }
+ }
+ bool isSlectRow = false;
+ private void Init()
+ {
+ string sql = $@"
+ SELECT
+ WORKING_PALLET_ID 序号,
+ WORKING_PALLET_CODE 托盘号,
+ WORKING_STATUS 作业状态,
+ USER_NAME 创建人,
+ CREATE_TIME 创建时间
+ FROM
+ VW_WORKING_PALLET
+ WHERE 1=1
+ ";
+ if (!string.IsNullOrEmpty(ktb_palletMsg.Text))
+ {
+ sql += $" AND WORKING_PALLET_CODE like '%{ktb_palletMsg.Text}%'";
+ }
+ if (!string.IsNullOrEmpty(ktb_irMsg.Text))
+ {
+ sql += $" AND WORKING_PALLET_CODE in (select DISTINCT WORKING_PALLET_CODE from VW_WORKING_PALLET_MSG where IR_CODE like '%{ktb_irMsg.Text}%')";
+ }
+ if (kcmb_sheetType.SelectedIndex != 0)
+ {
+ sql += $" AND WORKING_PALLET_CODE in (select DISTINCT WORKING_PALLET_CODE from VW_WORKING_PALLET_MSG where SHEET_TYPE_CODE = '{((ListItem)kcmb_sheetType.SelectedItem).Value}')";
+ }
+ if (kdtp_InputStartTime.Checked)
+ {
+ sql += $"AND WORKING_PALLET_CODE in (select DISTINCT WORKING_PALLET_CODE from VW_WORKING_PALLET_MSG where INPUT_TIME >= '{kdtp_InputStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}')";
+ }
+ if (kdtp_InputEndTime.Checked)
+ {
+ sql += $"AND WORKING_PALLET_CODE in (select DISTINCT WORKING_PALLET_CODE from VW_WORKING_PALLET_MSG where INPUT_TIME <= '{kdtp_InputEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}')";
+ }
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ //kryptonDataGridView1.DataSource = dt;
+ kryptonDataGridView1.Rows.Clear();
+ isSlectRow = false;
+ foreach (DataRow item in dt.Rows)
+ {
+ int index = kryptonDataGridView1.Rows.Add();
+ kryptonDataGridView1.Rows[index].Cells[1].Value = item["序号"].ToString();
+ kryptonDataGridView1.Rows[index].Cells[2].Value = item["托盘号"].ToString();
+ kryptonDataGridView1.Rows[index].Cells[3].Value = item["作业状态"].ToString();
+ kryptonDataGridView1.Rows[index].Cells[4].Value = item["创建人"].ToString();
+ kryptonDataGridView1.Rows[index].Cells[5].Value = item["创建时间"].ToString();
+ }
+ kryptonDataGridView1.SetDataViewColumnText(this.Name + "." + kryptonDataGridView1.Name, GlobalHelper.LanguageCode);
+ isSlectRow = true;
+ kryptonDataGridView1_SelectionChanged(kryptonDataGridView1, new EventArgs());
+ }
+ else
+ {
+ kryptonDataGridView1.SetDataViewColumnText(this.Name + "." + kryptonDataGridView1.Name, GlobalHelper.LanguageCode);
+ kryptonDataGridView1.Rows.Clear();
+ }
+ }
+
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_irMsg.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_irMsg.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ ktb_palletMsg.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_palletMsg.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+ private void frmPrinterMain_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ string sqlQuerySheetType = $@"SELECT SHEET_TYPE_CODE,SHEET_TYPE_NAME FROM BAS_SHEET_TYPE WHERE USED_FLAG = 1 and DEL_FLAG = 0 ORDER BY SHEET_TYPE_ID";
+ DataTable dtQuerySheetType = LeadDbHelperSQLite.Query(sqlQuerySheetType).Tables[0];
+ if (dtQuerySheetType != null && dtQuerySheetType.Rows.Count > 0)
+ {
+ kcmb_sheetType.Items.Clear();
+ kcmb_sheetType.Items.Add(new ListItem
+ {
+ Value = "",
+ Text = "Please Select",
+ });
+ foreach (DataRow item in dtQuerySheetType.Rows)
+ {
+ kcmb_sheetType.Items.Add(new ListItem
+ {
+ Value = item["SHEET_TYPE_CODE"].ToString(),
+ Text = item["SHEET_TYPE_NAME"].ToString(),
+ });
+ }
+ kcmb_sheetType.SelectedIndex = 0;
+ }
+ kdtp_InputStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_InputEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_InputEndTime.Checked = false;
+ kdtp_InputStartTime.Checked = false;
+ new EnvironmentSettings().ReportSettings.ShowProgress = false;
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载作业数据查询界面发生异常", "LoadQueryWorkingDataExp") + $":【{ex.Message}】!");
+ }
+ }
+ #region 打印测试代码
+ private void kryptonButton1_Click(object sender, EventArgs e)
+ {
+ kryptonButton1.Enabled = false;
+ try
+ {
+ string sql = $@"
+ SELECT
+ *
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ WORKING_PALLET_CODE = 'e2f4294d698a412d84c382fc4bba01a3'
+ AND IR_CODE = '32211'
+ ";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+
+ string sql1 = $@"SELECT CONTAMINATION_DTL_CODE Kind,CURRENT_NUMBER Qty FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = 'e2f4294d698a412d84c382fc4bba01a3' AND IR_CODE = '32211' AND CONTAMINATION_TYPE_CODE = 'PhysicalContamination'";
+ DataTable dt1 = LeadDbHelperSQLite.Query(sql1).Tables[0].Copy();
+ dt1.TableName = "Table1";
+ string sql2 = $@"SELECT CONTAMINATION_DTL_CODE Kind,CURRENT_NUMBER Qty FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = 'e2f4294d698a412d84c382fc4bba01a3' AND IR_CODE = '32211' AND CONTAMINATION_TYPE_CODE = 'ChemicalContamination'";
+ DataTable dt2 = LeadDbHelperSQLite.Query(sql2).Tables[0].Copy();
+ dt2.TableName = "Table2";
+ string sql3 = $@"SELECT CONTAMINATION_DTL_CODE Kind,CURRENT_NUMBER Qty FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = 'e2f4294d698a412d84c382fc4bba01a3' AND IR_CODE = '32211' AND CONTAMINATION_TYPE_CODE = 'MicrobiologicalContamination'";
+ DataTable dt3 = LeadDbHelperSQLite.Query(sql3).Tables[0].Copy();
+ dt3.TableName = "Table3";
+
+ string sql4 = $@"
+ SELECT
+ C.SHEET_TYPE_CODE Sheets,
+ SUM(CASE CLEAN_MODE_CODE WHEN 'SortedCleaned' THEN Qty ELSE 0 END) SortedCleaned,
+ SUM(CASE CLEAN_MODE_CODE WHEN 'SpecialCleaning' THEN Qty ELSE 0 END) SpecialCleaning,
+ SUM(CASE CLEAN_MODE_CODE WHEN 'Scrap' THEN Qty ELSE 0 END) Scrap,
+ SUM(CASE CLEAN_MODE_CODE WHEN 'Others' THEN Qty ELSE 0 END) Others,
+ IFNULL(C.TotalQty, 0) TotalQty
+ FROM
+ (
+ SELECT
+ A.SHEET_TYPE_CODE,
+ B.CLEAN_MODE_CODE,
+ B.Qty,
+ C.TotalQty
+ FROM
+ BAS_SHEET_TYPE A LEFT JOIN
+ (
+ SELECT
+ SHEET_TYPE_CODE,
+ SUM(CURRENT_NUMBER) TotalQty
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ WORKING_PALLET_CODE = 'e2f4294d698a412d84c382fc4bba01a3'
+ AND IR_CODE = '32211'
+ GROUP BY SHEET_TYPE_CODE) C ON A.SHEET_TYPE_CODE = C.SHEET_TYPE_CODE
+ LEFT JOIN (
+ SELECT
+ SHEET_TYPE_CODE,
+ CLEAN_MODE_CODE,
+ SUM(CURRENT_NUMBER) Qty
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ WORKING_PALLET_CODE = 'e2f4294d698a412d84c382fc4bba01a3'
+ AND IR_CODE = '32211'
+ GROUP BY CLEAN_MODE_CODE,SHEET_TYPE_CODE
+ ) B ON C.SHEET_TYPE_CODE = B.SHEET_TYPE_CODE
+ ) C
+ GROUP BY C.SHEET_TYPE_CODE,C.TotalQty
+ ";
+
+ DataTable dt4 = LeadDbHelperSQLite.Query(sql4).Tables[0].Copy();
+ dt4.TableName = "Table4";
+
+ string sql5 = $@"
+ SELECT
+ SUM (CURRENT_NUMBER) CleanedSheets,
+ date (INPUT_TIME) DateAndTime,
+ USER_NAME Operator
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ WORKING_PALLET_CODE = 'e2f4294d698a412d84c382fc4bba01a3'
+ AND IR_CODE = '32211'
+ GROUP BY
+ date (INPUT_TIME),
+ OPERATE_USER_ID,
+ USER_CODE,
+ USER_NAME
+ ";
+
+
+ DataTable dt5 = LeadDbHelperSQLite.Query(sql5).Tables[0].Copy();
+ dt5.TableName = "Table5";
+
+ string userName = dt.Rows[0]["USER_NAME"].ToString();
+ DateTime dateMsg = Convert.ToDateTime(dt.Rows[0]["INPUT_TIME"]);
+ string IRNumber = dt.Rows[0]["IR_CODE"].ToString();
+ string MacCode = "CleanMac_01";
+ FastReport.Report report = new FastReport.Report();
+ string filename = _reportFolder + "CleanMac_IRMsg_PrintMd.frx";
+ DataSet dts = new DataSet();
+ dts.Tables.Add(dt1);
+ dts.Tables.Add(dt2);
+ dts.Tables.Add(dt3);
+ dts.Tables.Add(dt4);
+ dts.Tables.Add(dt5);
+ report.Load(filename);
+ report.RegisterData(dts);
+ report.SetParameterValue("Parm_CusName", userName);
+ report.SetParameterValue("Parm_MachineCode", MacCode);
+ report.SetParameterValue("Parm_IRNumber", IRNumber);
+ report.SetParameterValue("Parm_RecDate", dateMsg);
+ report.SetParameterValue("Parm_RecordName", userName);
+ report.Prepare();
+ report.PrintSettings.ShowDialog = false;
+ report.Print();
+ report.Clear();
+ }
+
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show(ex.Message);
+ }
+ kryptonButton1.Enabled = true;
+ }
+ #endregion
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_irMsg.Text = "";
+ ktb_palletMsg.Text = "";
+ kcmb_sheetType.SelectedIndex = 0;
+
+ kdtp_InputStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_InputEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_InputEndTime.Checked = false;
+ kdtp_InputStartTime.Checked = false;
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ kryptonDataGridView2.DataSource = null;
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询作业托盘数据发生异常", "QueryWorkingPalletDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kryptonDataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
+ {
+ if (e.ColumnIndex == 0)
+ {
+ KryptonDataGridViewCheckBoxCell checkcell = (KryptonDataGridViewCheckBoxCell)kryptonDataGridView1.CurrentCell;
+ if (Convert.ToBoolean(checkcell.EditedFormattedValue))
+ {
+ foreach (DataGridViewRow item in kryptonDataGridView1.Rows)
+ {
+ if (!item.IsNewRow && item != kryptonDataGridView1.CurrentRow)
+ {
+ item.Cells[0].Value = false;
+ item.Cells[0].Style.BackColor = Color.White;
+ }
+ }
+ kryptonDataGridView1.CurrentCell.Style.BackColor = Color.FromArgb(51, 153, 255);
+ }
+ else
+ {
+ kryptonDataGridView1.CurrentCell.Style.BackColor = Color.White;
+ }
+ }
+ }
+
+ private void kryptonDataGridView1_DataError(object sender, DataGridViewDataErrorEventArgs e)
+ {
+
+ }
+
+ private void kryptonDataGridView1_SelectionChanged(object sender, EventArgs e)
+ {
+ if (kryptonDataGridView1.SelectedRows.Count > 0 && isSlectRow)
+ {
+ string palletCode = kryptonDataGridView1.SelectedRows[0].Cells[2].Value.ToString();
+ InitDtlData(palletCode);
+ }
+ }
+
+ private void kryptonButton2_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ int rowCheck = 0;
+ string palletCodeMsg = string.Empty;
+ foreach (DataGridViewRow item in kryptonDataGridView1.Rows)
+ {
+ KryptonDataGridViewCheckBoxCell checkcell = (KryptonDataGridViewCheckBoxCell)item.Cells[0];
+ if (Convert.ToBoolean(checkcell.EditedFormattedValue))
+ {
+ rowCheck++;
+ palletCodeMsg = item.Cells[2].Value.ToString();
+ }
+ }
+ if (rowCheck > 0)
+ {
+ string sqlWorkingIrMsg = $@"SELECT DISTINCT IR_CODE FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = '{palletCodeMsg}'";
+
+ DataTable dt_workingIrMsg = LeadDbHelperSQLite.Query(sqlWorkingIrMsg).Tables[0];
+ if (dt_workingIrMsg != null && dt_workingIrMsg.Rows.Count > 0)
+ {
+ foreach (DataRow item in dt_workingIrMsg.Rows)
+ {
+ string workingIrCodeMsg = item["IR_CODE"].ToString();
+ PrintWorkedIrMsg(workingIrCodeMsg);
+ }
+ }
+
+ }
+ else
+ {
+ //KryptonMessageBox.Show("请勾选要打印的托盘数据行!!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请勾选要打印的托盘数据行!", "SelectWantToPrintRow"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("打印作业托盘数据发生异常", "PrintWorkingPalletDataExp") + $":【{ex.Message}】!");
+ }
+ }
+ private void PrintWorkedIrMsg(string workingIrCodeMsg)
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】手动打印开始。~~~~~~~~~~~~~~", LogTypeEum.Run);
+ string sql = $@"
+ SELECT
+ *
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{workingIrCodeMsg}'
+ ";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印明细数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
+
+ string sqlGroup = $@"
+ SELECT
+ CONTAMINATION_TYPE_CODE,
+ CONTAMINATION_DTL_CODE,
+ SUM(CURRENT_NUMBER) CURRENT_NUMBER
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{workingIrCodeMsg}'
+ GROUP BY
+ CONTAMINATION_TYPE_CODE,
+ CONTAMINATION_DTL_CODE
+ ";
+ DataTable dtGroup = LeadDbHelperSQLite.Query(sqlGroup).Tables[0];
+
+ #region 物理污染
+ //string sql1 = $@"SELECT CONTAMINATION_DTL_CODE Kind,CURRENT_NUMBER Qty FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = '{woringPalletMsg}' AND IR_CODE = '{workingIrCodeMsg}' AND CONTAMINATION_TYPE_CODE = 'PhysicalContamination'";
+ //DataTable dt1 = LeadDbHelperSQLite.Query(sql1).Tables[0].Copy();
+
+ DataRow[] drs = dtGroup.Select(" CONTAMINATION_TYPE_CODE = 'PhysicalContamination'");
+ if (drs != null && drs.Length > 0)
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】物理污染 明细数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】物理污染 明细数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
+ }
+ DataTable dt1 = new DataTable();
+ dt1.Columns.Add("Kind", typeof(string));
+ dt1.Columns.Add("Qty", typeof(string));
+ foreach (DataRow item in drs)
+ {
+ DataRow row = dt1.NewRow();
+ row["Kind"] = item["CONTAMINATION_DTL_CODE"].ToString();
+ row["Qty"] = item["CURRENT_NUMBER"].ToString();
+ dt1.Rows.Add(row);
+ }
+ dt1.TableName = "Table1";
+ #endregion
+
+ #region 化学污染
+ //string sql2 = $@"SELECT CONTAMINATION_DTL_CODE Kind,CURRENT_NUMBER Qty FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = '{woringPalletMsg}' AND IR_CODE = '{workingIrCodeMsg}' AND CONTAMINATION_TYPE_CODE = 'ChemicalContamination'";
+ //DataTable dt2 = LeadDbHelperSQLite.Query(sql2).Tables[0].Copy();
+ drs = dtGroup.Select(" CONTAMINATION_TYPE_CODE = 'ChemicalContamination'");
+ if (drs != null && drs.Length > 0)
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】化学污染 明细数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】化学污染 明细数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
+ }
+ DataTable dt2 = dt1.Clone();
+ foreach (DataRow item in drs)
+ {
+ DataRow row = dt2.NewRow();
+ row["Kind"] = item["CONTAMINATION_DTL_CODE"].ToString();
+ row["Qty"] = item["CURRENT_NUMBER"].ToString();
+ dt2.Rows.Add(row);
+ }
+ dt2.TableName = "Table2";
+ #endregion
+
+ #region 微生物污染
+ //string sql3 = $@"SELECT CONTAMINATION_DTL_CODE Kind,CURRENT_NUMBER Qty FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = '{woringPalletMsg}' AND IR_CODE = '{workingIrCodeMsg}' AND CONTAMINATION_TYPE_CODE = 'MicrobiologicalContamination'";
+ //DataTable dt3 = LeadDbHelperSQLite.Query(sql3).Tables[0].Copy();
+ drs = dtGroup.Select(" CONTAMINATION_TYPE_CODE = 'MicrobiologicalContamination'");
+ if (drs != null && drs.Length > 0)
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】微生物污染 明细数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】微生物污染 明细数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
+ }
+ DataTable dt3 = dt1.Clone();
+ foreach (DataRow item in drs)
+ {
+ DataRow row = dt3.NewRow();
+ row["Kind"] = item["CONTAMINATION_DTL_CODE"].ToString();
+ row["Qty"] = item["CURRENT_NUMBER"].ToString();
+ dt3.Rows.Add(row);
+ }
+ dt3.TableName = "Table3";
+ #endregion
+
+ string sql4 = $@"
+ SELECT
+ C.SHEET_TYPE_CODE Sheets,
+ SUM(CASE CLEAN_MODE_CODE WHEN 'SortedCleaned' THEN Qty ELSE 0 END) SortedCleaned,
+ SUM(CASE CLEAN_MODE_CODE WHEN 'SpecialCleaning' THEN Qty ELSE 0 END) SpecialCleaning,
+ SUM(CASE CLEAN_MODE_CODE WHEN 'Scrap' THEN Qty ELSE 0 END) Scrap,
+ SUM(CASE CLEAN_MODE_CODE WHEN 'Others' THEN Qty ELSE 0 END) Others,
+ IFNULL(C.TotalQty, 0) TotalQty
+ FROM
+ (
+ SELECT
+ A.SHEET_TYPE_CODE,
+ B.CLEAN_MODE_CODE,
+ B.Qty,
+ C.TotalQty
+ FROM
+ BAS_SHEET_TYPE A LEFT JOIN
+ (
+ SELECT
+ SHEET_TYPE_CODE,
+ SUM(CURRENT_NUMBER) TotalQty
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{workingIrCodeMsg}'
+ GROUP BY SHEET_TYPE_CODE) C ON A.SHEET_TYPE_CODE = C.SHEET_TYPE_CODE
+ LEFT JOIN (
+ SELECT
+ SHEET_TYPE_CODE,
+ CLEAN_MODE_CODE,
+ SUM(CURRENT_NUMBER) Qty
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{workingIrCodeMsg}'
+ GROUP BY CLEAN_MODE_CODE,SHEET_TYPE_CODE
+ ) B ON C.SHEET_TYPE_CODE = B.SHEET_TYPE_CODE
+ ) C
+ GROUP BY C.SHEET_TYPE_CODE,C.TotalQty
+ ";
+ DataTable dt4 = LeadDbHelperSQLite.Query(sql4).Tables[0].Copy();
+ if (dt4 != null && dt4.Rows.Count > 0)
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】按照板材分类和清洗方式统计的数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】按照板材分类和清洗方式统计的数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
+ }
+ dt4.TableName = "Table4";
+ string sql5 = $@"
+ SELECT
+ SUM (CURRENT_NUMBER) CleanedSheets,
+ date (INPUT_TIME) DateAndTime,
+ USER_NAME Operator
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{workingIrCodeMsg}'
+ GROUP BY
+ date (INPUT_TIME),
+ OPERATE_USER_ID,
+ USER_CODE,
+ USER_NAME
+ ";
+ DataTable dt5 = LeadDbHelperSQLite.Query(sql5).Tables[0].Copy();
+ if (dt5 != null && dt5.Rows.Count > 0)
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】操作员每日作业板材数量的数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】操作员每日作业板材数量的数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
+ }
+ dt5.TableName = "Table5";
+ string userName = dt.Rows[0]["USER_NAME"].ToString();
+ DateTime dateMsg = Convert.ToDateTime(dt.Rows[0]["INPUT_TIME"]);
+ string IRNumber = dt.Rows[0]["IR_CODE"].ToString();
+ string MacCode = GlobalHelper.ParameterList.Select(" PARAMETER_CODE = 'CleanMachineName'")[0]["PARAMETER_VALUE"].ToString();
+
+ string sqlCleanedNum = $@"
+ SELECT
+ SUM(CURRENT_NUMBER) CURRENT_NUMBER
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{workingIrCodeMsg}'
+ AND CLEAN_MODE_CODE = 'SortedCleaned'
+ ";
+ DataTable dtCleanedNum = LeadDbHelperSQLite.Query(sqlCleanedNum).Tables[0];
+ string cleanNum = dtCleanedNum.Rows[0][0].ToString();
+
+ string sqlPalletNum = $@"
+ SELECT
+ DISTINCT WORKING_PALLET_CODE
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{workingIrCodeMsg}'
+ ";
+ DataTable dtPalletNum = LeadDbHelperSQLite.Query(sqlPalletNum).Tables[0];
+ string palletNum = dtPalletNum.Rows.Count.ToString();
+
+ string sqlScrapNum = $@"
+ SELECT
+ SUM(CURRENT_NUMBER) CURRENT_NUMBER
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ IR_CODE = '{workingIrCodeMsg}'
+ AND CLEAN_MODE_CODE <> 'SortedCleaned'
+ ";
+ DataTable dtScrapNum = LeadDbHelperSQLite.Query(sqlScrapNum).Tables[0];
+ string scrapNum = dtScrapNum.Rows[0][0].ToString();
+
+ DataSet dts = new DataSet();
+ dts.Tables.Add(dt1);
+ dts.Tables.Add(dt2);
+ dts.Tables.Add(dt3);
+ dts.Tables.Add(dt4);
+ dts.Tables.Add(dt5);
+
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印模板所需要的数据拼装完成!~~~~~~~~~~~~~~", LogTypeEum.Run);
+
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】开始加载打印控件类!~~~~~~~~~~~~~~", LogTypeEum.Run);
+
+ FastReport.Report report = new FastReport.Report();
+ string filename = _reportFolder + "CleanMac_IRMsg_PrintMd.frx";
+ report.Load(filename);
+ report.RegisterData(dts);
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印控件类加载完成,数据传入成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
+
+ report.SetParameterValue("Parm_CusName", userName);
+ report.SetParameterValue("Parm_MachineCode", MacCode);
+ report.SetParameterValue("Parm_IRNumber", IRNumber);
+ report.SetParameterValue("Parm_RecDate", dateMsg);
+ report.SetParameterValue("Parm_RecordName", userName);
+ report.SetParameterValue("Parm_CleanedNum", cleanNum);
+ report.SetParameterValue("Parm_PalletNumber", palletNum);
+ report.SetParameterValue("Parm_ScrapNumber", scrapNum);
+
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印控件类所需参数设置成功,开始发送打印机数据!~~~~~~~~~~~~~~", LogTypeEum.Run);
+ report.Prepare();
+ report.PrintSettings.ShowDialog = false;
+ report.Print();
+ report.Clear();
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印控件类发送打印机数据成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
+ }
+ else
+ {
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印明细数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
+ }
+ LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】手动打印结束。~~~~~~~~~~~~~~", LogTypeEum.Run);
+ }
+
+ private void kbtn_EditWorkingPalletData_Click(object sender, EventArgs e)
+ {
+ int rowCheck = 0;
+ string palletCodeMsg = string.Empty;
+ foreach (DataGridViewRow item in kryptonDataGridView1.Rows)
+ {
+ KryptonDataGridViewCheckBoxCell checkcell = (KryptonDataGridViewCheckBoxCell)item.Cells[0];
+ if (Convert.ToBoolean(checkcell.EditedFormattedValue))
+ {
+ rowCheck++;
+ palletCodeMsg = item.Cells[2].Value.ToString();
+ }
+ }
+ if (rowCheck > 0)
+ {
+ frmEditWorkingPalletData frm = new frmEditWorkingPalletData();
+ frm.PalletCode = palletCodeMsg;
+ frm.ShowDialog();
+ }
+ else
+ {
+ //KryptonMessageBox.Show("请勾选要编辑的作业托盘数据行!!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请勾选要编辑的作业托盘数据行!", "SelectWantToEditRow"));
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/FrmUserControl/frmPrinterMain.resx b/CleanMachineHMI/FrmUserControl/frmPrinterMain.resx
new file mode 100644
index 0000000..1b40b2c
--- /dev/null
+++ b/CleanMachineHMI/FrmUserControl/frmPrinterMain.resx
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/Model/BasCleanTypeMsg.cs b/CleanMachineHMI/Model/BasCleanTypeMsg.cs
new file mode 100644
index 0000000..305a107
--- /dev/null
+++ b/CleanMachineHMI/Model/BasCleanTypeMsg.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CleanMachineHMI
+{
+ public class BasCleanTypeMsg
+ {
+ public string CLEAN_MODE_CODE { get; set; }
+ public string CLEAN_MODE_NAME { get; set; }
+ public string CONTAMINATION_TYPE_CODE { get; set; }
+ public string CONTAMINATION_TYPE_NAME { get; set; }
+ public string CONTAMINATION_DTL_CODE { get; set; }
+ public string CONTAMINATION_DTL_NAME { get; set; }
+ }
+}
diff --git a/CleanMachineHMI/Model/BasPlcItemMd.cs b/CleanMachineHMI/Model/BasPlcItemMd.cs
new file mode 100644
index 0000000..7bbc792
--- /dev/null
+++ b/CleanMachineHMI/Model/BasPlcItemMd.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CleanMachineHMI
+{
+ public class BasPlcItemMd
+ {
+ public int PlcItemId { get; set; }
+ public string PlcItemCode { get; set; }
+ public string PlcItemName { get; set; }
+ public int PlcItemType { get; set; }
+ public int PlcItemDataType { get; set; }
+ public string PlcItemPriAddress { get; set; }
+ public string PlcItemModbusAddress { get; set; }
+ public string PlcItemDeviationAddress { get; set; }
+ public string PlcItemValue { get; set; }
+ public int PlcItemDataLen { get; set; }
+ }
+}
diff --git a/CleanMachineHMI/Model/Bas_WarningMd.cs b/CleanMachineHMI/Model/Bas_WarningMd.cs
new file mode 100644
index 0000000..5f610fc
--- /dev/null
+++ b/CleanMachineHMI/Model/Bas_WarningMd.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CleanMachineHMI
+{
+ public class Bas_WarningMd
+ {
+ public string WarningCode { get; set; }
+ public string WarningName { get; set; }
+ public string PlcItemCode { get; set; }
+ public string WarningType { get; set; }
+ public string WarningMessage { get; set; }
+ }
+}
diff --git a/CleanMachineHMI/Model/CM_WarningLogMd.cs b/CleanMachineHMI/Model/CM_WarningLogMd.cs
new file mode 100644
index 0000000..8fb1d27
--- /dev/null
+++ b/CleanMachineHMI/Model/CM_WarningLogMd.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CleanMachineHMI
+{
+ public class CM_WarningLogMd
+ {
+ public string WarningCode { get; set; }
+ public string WarningName { get; set; }
+ public string WarningType { get; set; }
+ public string WarningMessage { get; set; }
+ public DateTime WarningTime { get; set; }
+ public string PlcItemCode { get; set; }
+ public int WarningStatus { get; set; }
+ public int WarningHandleResult { get; set; }
+ public DateTime WarningHandleTime { get; set; }
+
+ public int CreateBy { get; set; }
+ public DateTime CreateTime { get; set; }
+
+ public int UpdateBy { get; set; }
+ public DateTime UpdateTime { get; set; }
+
+ public int DataVersion { get; set; }
+ }
+}
diff --git a/CleanMachineHMI/Program.cs b/CleanMachineHMI/Program.cs
new file mode 100644
index 0000000..d63e970
--- /dev/null
+++ b/CleanMachineHMI/Program.cs
@@ -0,0 +1,38 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.Domain.Models.ViewModels;
+using CleanMachineHMI.forms;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Reflection;
+using System.Threading;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI
+{
+ static class Program
+ {
+ ///
+ /// 应用程序的主入口点。
+ ///
+ [STAThread]
+ static void Main()
+ {
+ bool canCreateNew;
+ Mutex m = new Mutex(true, "DRM1", out canCreateNew);
+ if (canCreateNew)
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ GlobalHelper.LoadAllFormData();
+ Application.Run(GlobalHelper.LoginForm);
+ }
+ else
+ {
+ KryptonMessageBox.Show("The program is running!");
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/Properties/AssemblyInfo.cs b/CleanMachineHMI/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..7372305
--- /dev/null
+++ b/CleanMachineHMI/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+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
new file mode 100644
index 0000000..ccabb2c
--- /dev/null
+++ b/CleanMachineHMI/Properties/Resources.Designer.cs
@@ -0,0 +1,123 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+// 运行时版本:4.0.30319.42000
+//
+// 对此文件的更改可能会导致不正确的行为,并且如果
+// 重新生成代码,这些更改将会丢失。
+//
+//------------------------------------------------------------------------------
+
+namespace CleanMachineHMI.Properties {
+ using System;
+
+
+ ///
+ /// 一个强类型的资源类,用于查找本地化的字符串等。
+ ///
+ // 此类是由 StronglyTypedResourceBuilder
+ // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
+ // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
+ // (以 /str 作为命令选项),或重新生成 VS 项目。
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.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 (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CleanMachineHMI.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;
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap add {
+ get {
+ object obj = ResourceManager.GetObject("add", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap conn {
+ get {
+ object obj = ResourceManager.GetObject("conn", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap 上升 {
+ get {
+ object obj = ResourceManager.GetObject("上升", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap 上升_1 {
+ get {
+ object obj = ResourceManager.GetObject("上升_1", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap 下降 {
+ get {
+ object obj = ResourceManager.GetObject("下降", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap 下降_1 {
+ get {
+ object obj = ResourceManager.GetObject("下降_1", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/Properties/Resources.resx b/CleanMachineHMI/Properties/Resources.resx
new file mode 100644
index 0000000..cb5869f
--- /dev/null
+++ b/CleanMachineHMI/Properties/Resources.resx
@@ -0,0 +1,139 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+
+ ..\Resources\add.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\conn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\上升.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\上升_1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\下降.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\下降_1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/Properties/Settings.Designer.cs b/CleanMachineHMI/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..9a9b1a9
--- /dev/null
+++ b/CleanMachineHMI/Properties/Settings.Designer.cs
@@ -0,0 +1,37 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+// 运行时版本:4.0.30319.42000
+//
+// 对此文件的更改可能会导致不正确的行为,并且如果
+// 重新生成代码,这些更改将会丢失。
+//
+//------------------------------------------------------------------------------
+
+namespace CleanMachineHMI.Properties {
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.7.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;
+ }
+ }
+
+ [global::System.Configuration.ApplicationScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
+ [global::System.Configuration.DefaultSettingValueAttribute("Data Source=.;Initial Catalog=NX_CLEAR_MAC_20200915;Persist Security Info=True;Us" +
+ "er ID=sa;Password=1q2w3e4r!@")]
+ public string NX_CLEAR_MAC_20200915ConnectionString {
+ get {
+ return ((string)(this["NX_CLEAR_MAC_20200915ConnectionString"]));
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/Properties/Settings.settings b/CleanMachineHMI/Properties/Settings.settings
new file mode 100644
index 0000000..3b08baa
--- /dev/null
+++ b/CleanMachineHMI/Properties/Settings.settings
@@ -0,0 +1,14 @@
+
+
+
+
+
+ <?xml version="1.0" encoding="utf-16"?>
+<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <ConnectionString>Data Source=.;Initial Catalog=NX_CLEAR_MAC_20200915;Persist Security Info=True;User ID=sa;Password=1q2w3e4r!@</ConnectionString>
+ <ProviderName>System.Data.SqlClient</ProviderName>
+</SerializableConnectionString>
+ Data Source=.;Initial Catalog=NX_CLEAR_MAC_20200915;Persist Security Info=True;User ID=sa;Password=1q2w3e4r!@
+
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/ReportMd/CleanMac_IRMsg_PrintMd.frd b/CleanMachineHMI/ReportMd/CleanMac_IRMsg_PrintMd.frd
new file mode 100644
index 0000000..31dba04
--- /dev/null
+++ b/CleanMachineHMI/ReportMd/CleanMac_IRMsg_PrintMd.frd
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/CleanMachineHMI/ReportMd/CleanMac_IRMsg_PrintMd.frx b/CleanMachineHMI/ReportMd/CleanMac_IRMsg_PrintMd.frx
new file mode 100644
index 0000000..7eadfc9
--- /dev/null
+++ b/CleanMachineHMI/ReportMd/CleanMac_IRMsg_PrintMd.frx
@@ -0,0 +1,365 @@
+
+
+ using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Data;
+using FastReport;
+using FastReport.Data;
+using FastReport.Dialog;
+using FastReport.Barcode;
+using FastReport.Table;
+using FastReport.Utils;
+
+namespace FastReport
+{
+ public class ReportScript
+ {
+
+ private void Table1_ManualBuild(object sender, EventArgs e)
+ {
+ TableCell tab1=new TableCell();
+ tab1.HorzAlign=HorzAlign.Center;
+ tab1.VertAlign=VertAlign.Center;
+ tab1.FillColor=Color.LightGray;
+ tab1.Border.Lines=BorderLines.All;
+ tab1.Border.Color=Color.Black;
+ tab1.Font=new Font("宋体",9);
+
+
+ DataSourceBase data1 = Report.GetDataSource("Table1"); // 获取DataSet中表名为Table1的数据源
+ data1.Init(); // 初始化
+
+ Table1.PrintRow(0); // 控件Table1打印第0行
+ Table1.PrintColumns(); // 每打印一行,都要调用 PrintColumn或PrintColumns
+ int index = 0;
+ while(data1.HasMoreRows) // 打印重复循环的行
+ {
+
+ Table1.PrintRow(1);
+ Table1.PrintColumns();
+
+ if((++index)%2==0)
+ {
+ for(int i=0;i<Table1.ColumnCount;i++)
+ {
+ Table1.ResultTable.Rows[index][i].SetStyle(tab1);
+ }
+ }
+
+
+
+ data1.Next(); // 读取下一行
+
+ }
+ }
+
+ private void Table6_ManualBuild(object sender, EventArgs e)
+ {
+ TableCell tab1=new TableCell();
+ tab1.HorzAlign=HorzAlign.Center;
+ tab1.VertAlign=VertAlign.Center;
+ tab1.FillColor=Color.LightGray;
+ tab1.Border.Lines=BorderLines.All;
+ tab1.Border.Color=Color.Black;
+ tab1.Font=new Font("宋体",9);
+
+
+ DataSourceBase data1 = Report.GetDataSource("Table2"); // 获取DataSet中表名为Table1的数据源
+ data1.Init(); // 初始化
+
+ Table6.PrintRow(0); // 控件Table1打印第0行
+ Table6.PrintColumns(); // 每打印一行,都要调用 PrintColumn或PrintColumns
+ int index = 0;
+ while(data1.HasMoreRows) // 打印重复循环的行
+ {
+
+ Table6.PrintRow(1);
+ Table6.PrintColumns();
+
+ if((++index)%2==0)
+ {
+ for(int i=0;i<Table6.ColumnCount;i++)
+ {
+ Table6.ResultTable.Rows[index][i].SetStyle(tab1);
+ }
+ }
+
+
+
+ data1.Next(); // 读取下一行
+
+ }
+ }
+
+ private void Table7_ManualBuild(object sender, EventArgs e)
+ {
+ TableCell tab1=new TableCell();
+ tab1.HorzAlign=HorzAlign.Center;
+ tab1.VertAlign=VertAlign.Center;
+ tab1.FillColor=Color.LightGray;
+ tab1.Border.Lines=BorderLines.All;
+ tab1.Border.Color=Color.Black;
+ tab1.Font=new Font("宋体",9);
+
+
+ DataSourceBase data1 = Report.GetDataSource("Table3"); // 获取DataSet中表名为Table1的数据源
+ data1.Init(); // 初始化
+
+ Table7.PrintRow(0); // 控件Table1打印第0行
+ Table7.PrintColumns(); // 每打印一行,都要调用 PrintColumn或PrintColumns
+ int index = 0;
+ while(data1.HasMoreRows) // 打印重复循环的行
+ {
+
+ Table7.PrintRow(1);
+ Table7.PrintColumns();
+
+ if((++index)%2==0)
+ {
+ for(int i=0;i<Table7.ColumnCount;i++)
+ {
+ Table7.ResultTable.Rows[index][i].SetStyle(tab1);
+ }
+ }
+
+
+
+ data1.Next(); // 读取下一行
+
+ }
+ }
+
+ private void Table4_ManualBuild(object sender, EventArgs e)
+ {
+ TableCell tab1=new TableCell();
+ tab1.HorzAlign=HorzAlign.Center;
+ tab1.VertAlign=VertAlign.Center;
+ tab1.FillColor=Color.LightGray;
+ tab1.Border.Lines=BorderLines.All;
+ tab1.Border.Color=Color.Black;
+ tab1.Font=new Font("宋体",9);
+
+
+ DataSourceBase data1 = Report.GetDataSource("Table5"); // 获取DataSet中表名为Table1的数据源
+ data1.Init(); // 初始化
+
+ Table4.PrintRow(0); // 控件Table1打印第0行
+ Table4.PrintColumns(); // 每打印一行,都要调用 PrintColumn或PrintColumns
+ int index = 0;
+ while(data1.HasMoreRows) // 打印重复循环的行
+ {
+
+ Table4.PrintRow(1);
+ Table4.PrintColumns();
+
+ if((++index)%2==0)
+ {
+ for(int i=0;i<Table4.ColumnCount;i++)
+ {
+ Table4.ResultTable.Rows[index][i].SetStyle(tab1);
+ }
+ }
+
+
+
+ data1.Next(); // 读取下一行
+
+ }
+ }
+
+ private void Table5_ManualBuild(object sender, EventArgs e)
+ {
+ TableCell tab1=new TableCell();
+ tab1.HorzAlign=HorzAlign.Center;
+ tab1.VertAlign=VertAlign.Center;
+ tab1.FillColor=Color.LightGray;
+ tab1.Border.Lines=BorderLines.All;
+ tab1.Border.Color=Color.Black;
+ tab1.Font=new Font("宋体",9);
+
+
+ DataSourceBase data1 = Report.GetDataSource("Table4"); // 获取DataSet中表名为Table1的数据源
+ data1.Init(); // 初始化
+
+ Table5.PrintRow(0); // 控件Table1打印第0行
+ Table5.PrintColumns(); // 每打印一行,都要调用 PrintColumn或PrintColumns
+ int index = 0;
+ while(data1.HasMoreRows) // 打印重复循环的行
+ {
+
+ Table5.PrintRow(1);
+ Table5.PrintColumns();
+
+ if((++index)%2==0)
+ {
+ for(int i=0;i<Table5.ColumnCount;i++)
+ {
+ Table5.ResultTable.Rows[index][i].SetStyle(tab1);
+ }
+ }
+
+
+
+ data1.Next(); // 读取下一行
+
+ }
+ }
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/CleanMachineHMI/Resources/Uninstall_Tool.ico b/CleanMachineHMI/Resources/Uninstall_Tool.ico
new file mode 100644
index 0000000..0428a89
Binary files /dev/null and b/CleanMachineHMI/Resources/Uninstall_Tool.ico differ
diff --git a/CleanMachineHMI/Resources/add.png b/CleanMachineHMI/Resources/add.png
new file mode 100644
index 0000000..701e82f
Binary files /dev/null and b/CleanMachineHMI/Resources/add.png differ
diff --git a/CleanMachineHMI/Resources/cleaner_128px_1238161_easyicon.net.ico b/CleanMachineHMI/Resources/cleaner_128px_1238161_easyicon.net.ico
new file mode 100644
index 0000000..80e29ac
Binary files /dev/null and b/CleanMachineHMI/Resources/cleaner_128px_1238161_easyicon.net.ico differ
diff --git a/CleanMachineHMI/Resources/cleaning_spray.ico b/CleanMachineHMI/Resources/cleaning_spray.ico
new file mode 100644
index 0000000..276dab1
Binary files /dev/null and b/CleanMachineHMI/Resources/cleaning_spray.ico differ
diff --git a/CleanMachineHMI/Resources/conn.png b/CleanMachineHMI/Resources/conn.png
new file mode 100644
index 0000000..e323f11
Binary files /dev/null and b/CleanMachineHMI/Resources/conn.png differ
diff --git a/CleanMachineHMI/Resources/favicon.ico b/CleanMachineHMI/Resources/favicon.ico
new file mode 100644
index 0000000..7c70064
Binary files /dev/null and b/CleanMachineHMI/Resources/favicon.ico differ
diff --git a/CleanMachineHMI/Resources/上升.png b/CleanMachineHMI/Resources/上升.png
new file mode 100644
index 0000000..6adae3a
Binary files /dev/null and b/CleanMachineHMI/Resources/上升.png differ
diff --git a/CleanMachineHMI/Resources/上升_1.png b/CleanMachineHMI/Resources/上升_1.png
new file mode 100644
index 0000000..d5dd11f
Binary files /dev/null and b/CleanMachineHMI/Resources/上升_1.png differ
diff --git a/CleanMachineHMI/Resources/下降.png b/CleanMachineHMI/Resources/下降.png
new file mode 100644
index 0000000..50a9d20
Binary files /dev/null and b/CleanMachineHMI/Resources/下降.png differ
diff --git a/CleanMachineHMI/Resources/下降_1.png b/CleanMachineHMI/Resources/下降_1.png
new file mode 100644
index 0000000..883f7b3
Binary files /dev/null and b/CleanMachineHMI/Resources/下降_1.png differ
diff --git a/CleanMachineHMI/Resources/客情维护.png b/CleanMachineHMI/Resources/客情维护.png
new file mode 100644
index 0000000..a3810cd
Binary files /dev/null and b/CleanMachineHMI/Resources/客情维护.png differ
diff --git a/CleanMachineHMI/Resources/报警 (1).png b/CleanMachineHMI/Resources/报警 (1).png
new file mode 100644
index 0000000..c9c724f
Binary files /dev/null and b/CleanMachineHMI/Resources/报警 (1).png differ
diff --git a/CleanMachineHMI/Resources/清洁员图片1.ico b/CleanMachineHMI/Resources/清洁员图片1.ico
new file mode 100644
index 0000000..613ccfd
Binary files /dev/null and b/CleanMachineHMI/Resources/清洁员图片1.ico differ
diff --git a/CleanMachineHMI/Resources/清洁员图片2.ico b/CleanMachineHMI/Resources/清洁员图片2.ico
new file mode 100644
index 0000000..80e29ac
Binary files /dev/null and b/CleanMachineHMI/Resources/清洁员图片2.ico differ
diff --git a/CleanMachineHMI/Utils/AppConfigHelper.cs b/CleanMachineHMI/Utils/AppConfigHelper.cs
new file mode 100644
index 0000000..085cce1
--- /dev/null
+++ b/CleanMachineHMI/Utils/AppConfigHelper.cs
@@ -0,0 +1,52 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CleanMachineHMI.Utils
+{
+ ///
+ /// 配置文件操作
+ ///
+ public static class AppConfigHelper
+ {
+ public static string Get(string key)
+ {
+ var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
+ return config.AppSettings.Settings[key].Value;
+ }
+
+ public static void Remove(string key)
+ {
+ var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
+ config.AppSettings.Settings.Remove(key);
+ config.Save(ConfigurationSaveMode.Modified);
+ ConfigurationManager.RefreshSection("appSettings");
+ }
+
+ public static void Add(string key, string value)
+ {
+ var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
+ config.AppSettings.Settings.Add(key, value);
+ config.Save(ConfigurationSaveMode.Modified);
+ ConfigurationManager.RefreshSection("appSettings");
+ }
+
+ public static void Update(string key, string value)
+ {
+ try
+ {
+ Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
+ config.AppSettings.Settings[key].Value = value;
+ config.Save(ConfigurationSaveMode.Modified);
+ ConfigurationManager.RefreshSection("appSettings");
+ }
+ catch (Exception)
+ {
+ Add(key, value);
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/Utils/CircleButton.cs b/CleanMachineHMI/Utils/CircleButton.cs
new file mode 100644
index 0000000..5ec0792
--- /dev/null
+++ b/CleanMachineHMI/Utils/CircleButton.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI
+{
+ [ToolboxItem(true)]
+ public class CircleButton : Button//继承按钮类 重新生成解决方案就能看见我啦
+ {
+ protected override void OnPaint(PaintEventArgs e)//重新设置控件的形状
+ {
+ base.OnPaint(e);//递归 每次重新都发生此方法,保证其形状为自定义形状
+ System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath();
+ path.AddEllipse(2, 2, this.Width - 6, this.Height - 6);
+ Graphics g = e.Graphics;
+ g.DrawEllipse(new Pen(Color.White, 0), 2, 2, Width - 6, Height - 6);
+ Region = new Region(path);
+ }
+ }
+}
diff --git a/CleanMachineHMI/Utils/FormTypeAttribute.cs b/CleanMachineHMI/Utils/FormTypeAttribute.cs
new file mode 100644
index 0000000..f585f47
--- /dev/null
+++ b/CleanMachineHMI/Utils/FormTypeAttribute.cs
@@ -0,0 +1,22 @@
+using CleanMachineHMI.Domain.Enums;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CleanMachineHMI.Utils
+{
+ ///
+ /// 自定义窗体类型特性
+ ///
+ [AttributeUsage(AttributeTargets.Class)]
+ public class FormTypeAttribute : Attribute
+ {
+ public EnumFormType Value { get; set; }
+ public FormTypeAttribute(EnumFormType enumFormType)
+ {
+ this.Value = enumFormType;
+ }
+ }
+}
diff --git a/CleanMachineHMI/Utils/GlobalHelper.cs b/CleanMachineHMI/Utils/GlobalHelper.cs
new file mode 100644
index 0000000..207578b
--- /dev/null
+++ b/CleanMachineHMI/Utils/GlobalHelper.cs
@@ -0,0 +1,179 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.Domain.Models.ViewModels;
+using CleanMachineHMI.forms;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Linq;
+using System.Reflection;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI
+{
+ ///
+ /// 应用配置
+ ///
+ public static class GlobalHelper
+ {
+ ///
+ /// 主窗体_New
+ ///
+ public static frmMainNew MainFormNew{ get; set; }
+
+ ///
+ /// 登陆窗体
+ ///
+ public static frmLogin LoginForm { get; set; }
+
+ ///
+ /// 基础信息窗体容器
+ ///
+ public static frmBase BaseForm { get; set; }
+
+ public static frmIoMonitorNew IoMonitor_2 { get; set; }
+
+ ///
+ /// 所有窗体模型
+ ///
+ public static List> FrmModelList { get; set; }
+
+ ///
+ /// 语言编码
+ ///
+ public static string LanguageCode { get; set; } = AppConfigHelper.Get("LanguageCode");
+
+ ///
+ /// 用户信息
+ ///
+ public static UserInfo UserInfo { get; set; }
+
+ ///
+ /// 参数列表
+ ///
+ public static DataTable ParameterList { get; set; }
+
+ ///
+ /// 角色菜单权限数据
+ ///
+ public static DataTable RoleMenuPermission { get; set; }
+ ///
+ ///
+ ///
+ public static List PlcItemMdList { get; set; }
+ public static List PlcItemMd_D_List { get; set; }
+
+ public static List PlcItemMd_M_List { get; set; }
+
+ public static List PlcItemMd_X_List { get; set; }
+
+ public static List PlcItemMd_Y_List { get; set; }
+
+ public static List BasWarningMd_List { get; set; }
+
+ public static List CmWarningLogMd_List { get; set; }
+
+ public static List CmWarningLogMd_List_1 { get; set; }
+
+ ///
+ /// 参数列表
+ ///
+ public static bool CanOperate { get; set; }
+ ///
+ /// 系统是否运行
+ ///
+ public static bool SysThIsRunFlag { get; set; }
+ #region 委托事件
+ //定义一个委托类型的事件
+ public static event EventHandler OnShowX_Y_Status;
+ public static bool eventLock = false;
+ public static void ShowX_Y_Status(object sender, EventArgs e)
+ {
+ if (!eventLock)
+ {
+ OnShowX_Y_Status?.Invoke(sender, e);
+ }
+ }
+ //定义一个委托类型的事件
+ public static event EventHandler OnShowSensorStatus;
+ public static void ShowSensorStatus(object sender, EventArgs e)
+ {
+ if (!eventLock)
+ {
+ OnShowSensorStatus?.Invoke(sender, e);
+ }
+ }
+ //定义一个委托类型的事件
+ public static event EventHandler OnShowMainFrmAlarmMsg;
+ public static bool eventAlarmLock = false;
+ public static void ShowMainFrmAlarmMsg(object sender, EventArgs e)
+ {
+ if (!eventAlarmLock)
+ {
+ OnShowMainFrmAlarmMsg?.Invoke(sender, e);
+ }
+ }
+ public static frmPopupWarningMsg PopupWarningMsgForm { get; set; }
+ //定义一个委托类型的事件
+ public static event EventHandler OnSyncFinishPalletData;
+ public static void SyncFinishPalletData(object sender, EventArgs e)
+ {
+ OnSyncFinishPalletData?.Invoke(sender, e);
+ }
+ #endregion
+ ///
+ /// 获取拖盘号
+ ///
+ ///
+ public static string GetPalletCode()
+ {
+ string currDateStr = DateTime.Now.ToString("yyyyMMdd");
+ string PalletIndexPrefix = AppConfigHelper.Get("PalletIndexPrefix");
+ string PalletIndexDateMsg = AppConfigHelper.Get("PalletIndexDateMsg");
+ int PalletIndexLen = Convert.ToInt32(AppConfigHelper.Get("PalletIndexLen"));
+ int PalletIndexValue = Convert.ToInt32(AppConfigHelper.Get("PalletIndexValue"));
+ if (currDateStr == PalletIndexDateMsg)
+ {
+ PalletIndexValue++;
+ string tmpPalletCode = PalletIndexPrefix + currDateStr + PalletIndexValue.ToString().PadLeft(PalletIndexLen, '0');
+ AppConfigHelper.Update("PalletIndexValue", PalletIndexValue.ToString());
+ return tmpPalletCode;
+ }
+ else
+ {
+ PalletIndexValue = 1;
+ string tmpPalletCode = PalletIndexPrefix + currDateStr + PalletIndexValue.ToString().PadLeft(PalletIndexLen, '0');
+ AppConfigHelper.Update("PalletIndexValue", PalletIndexValue.ToString());
+ AppConfigHelper.Update("PalletIndexDateMsg", currDateStr);
+ return tmpPalletCode;
+ }
+ }
+ ///
+ /// 根据自定义特性和窗体的绑定原理,
+ /// 自动加载所有的窗体数据。
+ ///
+ public static void LoadAllFormData()
+ {
+ var types = Assembly.GetExecutingAssembly().GetTypes().Where(x => x.GetCustomAttributes(typeof(FormTypeAttribute), false).Count() > 0);
+ FrmModelList = new List>();
+ foreach (var item in types)
+ {
+ FormTypeAttribute tmpAttribute = (FormTypeAttribute)item.GetCustomAttribute(typeof(FormTypeAttribute));
+ FrmModelList.Add(new FormModel
+ {
+ //Form = (UserControl)Activator.CreateInstance(item),
+ Form = item,
+ FormType = tmpAttribute.Value
+ });
+ }
+ //MainForm = (frmMain)FrmModelList.Find(x => x.FormType == EnumFormType.Main).Form;
+ //MainFormNew = (frmMainNew)FrmModelList.Find(x => x.FormType == EnumFormType.Main).Form;
+ //LoginForm = (frmLogin)FrmModelList.Find(x => x.FormType == EnumFormType.Login).Form;
+ LoginForm = new frmLogin();
+ CanOperate = false;
+ }
+
+ }
+}
diff --git a/CleanMachineHMI/Utils/KeyboardAutoPopUp.cs b/CleanMachineHMI/Utils/KeyboardAutoPopUp.cs
new file mode 100644
index 0000000..e7d1751
--- /dev/null
+++ b/CleanMachineHMI/Utils/KeyboardAutoPopUp.cs
@@ -0,0 +1,60 @@
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Linq;
+using System.Runtime.InteropServices;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CleanMachineHMI
+{
+ public class KeyboardAutoPopUp
+ {
+ private const Int32 WM_SYSCOMMAND = 274;
+ private const UInt32 SC_CLOSE = 61536;
+ [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
+ private static extern bool PostMessage(IntPtr hWnd, int Msg, int wParam, int lParam);
+ [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
+ private static extern bool PostMessage(IntPtr hWnd, int Msg, uint wParam, uint lParam);
+ [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
+ private static extern bool PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
+ [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
+ private static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
+ private static extern int RegisterWindowMessage(string lpString);
+
+ //显示屏幕键盘
+ public static int ShowInputPanel()
+ {
+ try
+ {
+ dynamic file = "C:\\Program Files\\Common Files\\microsoft shared\\ink\\TabTip.exe";
+ if (!System.IO.File.Exists(file))
+ return -1;
+ Process.Start(file);
+ return 1;
+ }
+ catch (Exception)
+ {
+ return 255;
+ }
+ }
+
+ //隐藏屏幕键盘
+ public static void HideInputPanel()
+ {
+ try
+ {
+ IntPtr TouchhWnd = new IntPtr(0);
+ TouchhWnd = FindWindow("IPTip_Main_Window", null);
+ if (TouchhWnd == IntPtr.Zero)
+ return;
+ PostMessage(TouchhWnd, WM_SYSCOMMAND, SC_CLOSE, 0);
+ }
+ catch
+ {
+
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/Utils/LEnum.cs b/CleanMachineHMI/Utils/LEnum.cs
new file mode 100644
index 0000000..b7c6364
--- /dev/null
+++ b/CleanMachineHMI/Utils/LEnum.cs
@@ -0,0 +1,68 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace CleanMachineHMI
+{
+ ///
+ /// 方向
+ ///
+ public enum Orientation
+ {
+ ///
+ /// 水平方向(从左到右)
+ ///
+ Horizontal_LR,
+ ///
+ /// 水平方向(从右到左)
+ ///
+ Horizontal_RL,
+ ///
+ /// 垂直方向(从上到上)
+ ///
+ Vertical_BT,
+ ///
+ /// 垂直方向(从上到下)
+ ///
+ Vertical_TB
+ }
+
+ ///
+ /// 鼠标状态
+ ///
+ public enum MouseStatus
+ {
+ ///
+ /// 鼠标进入
+ ///
+ Enter,
+ ///
+ /// 鼠标离开
+ ///
+ Leave,
+ ///
+ /// 鼠标按下
+ ///
+ Down,
+ ///
+ /// 鼠标按下释放
+ ///
+ Up
+ }
+
+ ///
+ /// 滚动条方向
+ ///
+ public enum OrientationScrollBar
+ {
+ ///
+ /// 水平方向
+ ///
+ Horizontal,
+ ///
+ /// 垂直方向
+ ///
+ Vertical
+ }
+}
diff --git a/CleanMachineHMI/Utils/LEventArgs.cs b/CleanMachineHMI/Utils/LEventArgs.cs
new file mode 100644
index 0000000..7c9516c
--- /dev/null
+++ b/CleanMachineHMI/Utils/LEventArgs.cs
@@ -0,0 +1,52 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace CleanMachineHMI
+{
+ ///
+ /// 事件数据
+ ///
+ public class LEventArgs:EventArgs
+ {
+ ///
+ /// 事件数据
+ ///
+ /// 值
+ public LEventArgs(object value)
+ {
+ Value = value;
+ }
+ ///
+ /// 值
+ ///
+ public object Value { get; set; }
+ }
+
+ ///
+ /// 滚动条事件数据
+ ///
+ public class LScrollEventArgs : EventArgs
+ {
+ ///
+ /// 滚动条事件数据
+ ///
+ /// 滑块距顶部(垂直)/左侧(横向)位置
+ /// 显示位置(正数)
+ public LScrollEventArgs(float sliderPosition, float showPosition)
+ {
+ SliderPosition = sliderPosition;
+ ShowPosition = showPosition;
+ }
+
+ ///
+ /// 滑块距顶部(垂直)/左侧(横向)位置
+ ///
+ public float SliderPosition { get; set; }
+ ///
+ /// 显示位置(正数)
+ ///
+ public float ShowPosition { get; set; }
+ }
+}
diff --git a/CleanMachineHMI/Utils/LSwitchButton.cs b/CleanMachineHMI/Utils/LSwitchButton.cs
new file mode 100644
index 0000000..849ca4d
--- /dev/null
+++ b/CleanMachineHMI/Utils/LSwitchButton.cs
@@ -0,0 +1,292 @@
+/*
+ * 作者:Leslie Xin
+ * 邮箱:lesliexin@outlook.com
+ * 网站:www.lesliexin.com
+ *
+ * 版权所有,使用本代码需附上本段注释。
+ *
+ */
+
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+using LEase;
+
+namespace CleanMachineHMI
+{
+
+ [ToolboxItem(true)]
+ ///
+ /// 开关按钮
+ ///
+ [DefaultEvent("LSwitched")]
+ public class LSwitchButton:Control
+ {
+ ///
+ /// 开关按钮
+ ///
+ public LSwitchButton()
+ {
+ SetStyle(ControlStyles.AllPaintingInWmPaint, true);
+ SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
+ CreateControl();
+
+ tTimer = new System.Windows.Forms.Timer();
+ tTimer.Interval = 10;
+ tTimer.Tick += TTimer_Tick;
+
+ }
+
+ #region Event
+ ///
+ /// 委托
+ ///
+ ///
+ ///
+ public delegate void LSwitchedEventHandler(object sender, LEventArgs e);
+ ///
+ /// 开关状态发生改变时引发的事件
+ ///
+ public event LSwitchedEventHandler LSwitched;
+ #endregion
+
+ #region Property
+
+ private Color _CloseColor = Color.FromArgb(224, 224, 224);//浅灰
+ ///
+ /// “关”时背景色默认:浅灰
+ ///
+ [Category("DemoUI"), Description("“关”时背景色\r\n默认:浅灰")]
+ public Color L_CloseColor
+ {
+ get { return _CloseColor; }
+ set
+ {
+ _CloseColor = value;
+ Invalidate();
+ }
+ }
+
+ private Color _OpenColor = Color.FromArgb(128, 255, 128);//浅绿
+ ///
+ /// “开”时背景色默认:浅绿
+ ///
+ [Category("DemoUI"), Description("“开”时背景色\r\n默认:浅绿")]
+ public Color L_OpenColor
+ {
+ get { return _OpenColor; }
+ set
+ {
+ _OpenColor = value;
+ Invalidate();
+ }
+ }
+
+ private Color _DotColor = Color.White;
+ ///
+ /// 圆点颜色默认:白色
+ ///
+ [Category("DemoUI"), Description("圆点颜色\r\n默认:白色")]
+ public Color L_DotColor
+ {
+ get { return _DotColor; }
+ set
+ {
+ _DotColor = value;
+ Invalidate();
+ }
+ }
+
+ private int _DotHight = 20;
+ ///
+ /// 圆点高度(直径)默认:20
+ ///
+ [Category("DemoUI"), Description("圆点高度(直径)\r\n默认:20")]
+ public int L_DotHight
+ {
+ get { return _DotHight; }
+ set
+ {
+ _DotHight = value < 0 ? 0 : value;
+ Size =new Size(Width,Math.Max(_DotHight, _BarHight));
+ Invalidate();
+ }
+ }
+
+ private int _BarHight = 24;
+ ///
+ /// 背景条高度默认:24
+ ///
+ [Category("DemoUI"), Description("背景条高度\r\n默认:24")]
+ public int L_BarHight
+ {
+ get { return _BarHight; }
+ set
+ {
+ _BarHight = value < 0 ? 0 : value;
+ Size = new Size(Width, Math.Max(_DotHight, _BarHight));
+ Invalidate();
+ }
+ }
+
+ private bool _IsOpen = false;
+ ///
+ /// 开关状态是否是“开”默认:false
+ ///
+ [Category("DemoUI"), Description("开关状态是否是“开”\r\n默认:false")]
+ public bool L_IsOpen
+ {
+ get { return _IsOpen; }
+ set
+ {
+ _IsOpen = value;
+ Invalidate();
+ }
+ }
+
+ private int _Margin = 2;
+ ///
+ /// 圆点距左右两侧距离默认:2
+ ///
+ [Category("DemoUI"), Description("圆点距左右两侧距离\r\n默认:2")]
+ public int L_Margin
+ {
+ get { return _Margin; }
+ set
+ {
+ _Margin = value < 0 ? 0 : value; ;
+ Invalidate();
+ }
+ }
+
+ ///
+ /// 动画效果默认:Quartic
+ ///
+ [Category("DemoUI"), Description("动画效果\r\n默认:Quartic")]
+ public LEaseType L_AnimateType { get; set; } = LEaseType.Quartic;
+
+ #endregion
+
+ #region Private
+ Timer tTimer;
+ float fNowLocationBar, fNowLocationDot;
+ ///
+ /// 动画效果时长,毫秒
+ ///
+ int iDuration = 200;
+ int iNow;
+ bool bInAnimate = false;
+ float fRangeBar,fRangeDot;
+ #endregion
+
+ private void TTimer_Tick(object sender, EventArgs e)
+ {
+ bool b = (_IsOpen?(iNow>=0):(iNow<=iDuration));
+ if (b)
+ {
+ double d = 0;
+ switch (L_AnimateType)
+ {
+ case LEaseType.Back:
+ d = AnimateBase.Back(Convert.ToDouble(iNow) / iDuration, _IsOpen ? LEaseMode.EaseIn : LEaseMode.EaseOut);
+ break;
+ case LEaseType.Bounce:
+ d = AnimateBase.Bounce(Convert.ToDouble(iNow) / iDuration, _IsOpen ? LEaseMode.EaseIn : LEaseMode.EaseOut);
+ break;
+ case LEaseType.Circle:
+ d = AnimateBase.Circle(Convert.ToDouble(iNow) / iDuration, _IsOpen ? LEaseMode.EaseIn : LEaseMode.EaseOut);
+ break;
+ case LEaseType.Cubic:
+ d = AnimateBase.Cubic(Convert.ToDouble(iNow) / iDuration, _IsOpen ? LEaseMode.EaseIn : LEaseMode.EaseOut);
+ break;
+ case LEaseType.Elastic:
+ d = AnimateBase.Elastic(Convert.ToDouble(iNow) / iDuration, _IsOpen ? LEaseMode.EaseIn : LEaseMode.EaseOut);
+ break;
+ case LEaseType.Exponential:
+ d = AnimateBase.Exponential(Convert.ToDouble(iNow) / iDuration, _IsOpen ? LEaseMode.EaseIn : LEaseMode.EaseOut);
+ break;
+ case LEaseType.Quadratic:
+ d = AnimateBase.Quadratic(Convert.ToDouble(iNow) / iDuration, _IsOpen ? LEaseMode.EaseIn : LEaseMode.EaseOut);
+ break;
+ case LEaseType.Quartic:
+ d = AnimateBase.Quartic(Convert.ToDouble(iNow) / iDuration, _IsOpen ? LEaseMode.EaseIn : LEaseMode.EaseOut);
+ break;
+ case LEaseType.Quintic:
+ d = AnimateBase.Quintic(Convert.ToDouble(iNow) / iDuration, _IsOpen ? LEaseMode.EaseIn : LEaseMode.EaseOut);
+ break;
+ case LEaseType.Sine:
+ d = AnimateBase.Sine(Convert.ToDouble(iNow) / iDuration, _IsOpen ? LEaseMode.EaseIn : LEaseMode.EaseOut);
+ break;
+ }
+
+ fNowLocationBar = Convert.ToSingle(d * fRangeBar);
+ fNowLocationDot = Convert.ToSingle(d * fRangeDot)+_Margin;
+ iNow = _IsOpen ? (iNow-tTimer.Interval) : (iNow+tTimer.Interval);
+ Invalidate();
+ }
+ else
+ {
+ tTimer.Stop();
+ bInAnimate = false;
+ LSwitched?.Invoke(this, new LEventArgs(_IsOpen));
+ }
+ }
+
+ protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
+ {
+ //为达到较好的视觉效果,宽度至少要是高度的两倍
+ int iHeight = Math.Max(_DotHight,_BarHight);
+ int iWidth = Math.Max(iHeight * 2, width);
+ iHeight++;
+ fRangeBar = iWidth - _BarHight;
+ fRangeDot = iWidth - _DotHight- _Margin * 2;
+ base.SetBoundsCore(x, y, iWidth, iHeight, specified);
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);
+ e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
+
+ Pen penBarBack = new Pen(_CloseColor, _BarHight);
+ Pen penBarFore = new Pen(_OpenColor, _BarHight);
+ penBarBack.StartCap = LineCap.Round;
+ penBarBack.EndCap = LineCap.Round;
+ penBarFore.StartCap = LineCap.Round;
+ penBarFore.EndCap = LineCap.Round;
+
+ float fCapHalfWidth = _BarHight / 2.0f;
+ float fLeftTop = Convert.ToSingle(Height - _DotHight) / 2.0f;
+
+ if (!bInAnimate)
+ {
+ fNowLocationBar = _IsOpen ? 0: fRangeBar;
+ fNowLocationDot = _IsOpen ? _Margin : (fRangeDot + _Margin);
+ }
+
+ //画背景
+ e.Graphics.DrawLine(penBarBack, fCapHalfWidth, Height / 2f, Width - fCapHalfWidth, Height / 2f);
+ //画前景
+ e.Graphics.DrawLine(penBarFore, fCapHalfWidth, Height / 2f, Width - fCapHalfWidth - fNowLocationBar, Height / 2f);
+ //画圆点
+ e.Graphics.FillEllipse(new SolidBrush(_DotColor),Width-_DotHight- fNowLocationDot, fLeftTop, _DotHight, _DotHight);
+ }
+
+ protected override void OnMouseDown(MouseEventArgs e)
+ {
+ base.OnMouseDown(e);
+ if (!bInAnimate)
+ {
+ bInAnimate = true;
+ _IsOpen = !_IsOpen;
+ iNow = _IsOpen ? iDuration : 0;
+ tTimer.Start();
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/Utils/PlcOperationHelper.cs b/CleanMachineHMI/Utils/PlcOperationHelper.cs
new file mode 100644
index 0000000..b1ca0c6
--- /dev/null
+++ b/CleanMachineHMI/Utils/PlcOperationHelper.cs
@@ -0,0 +1,837 @@
+using LeadDataBaseUtility;
+using Modbus.Device;
+using NX_LogUtility;
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Diagnostics;
+using System.IO.Ports;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CleanMachineHMI
+{
+ public class PlcOperationHelper
+ {
+ #region 单例模式
+ ///
+ /// 单例模式对象
+ ///
+ private static PlcOperationHelper _instance = null;
+ private static object lockObj = new object();
+ ///
+ /// 单例模式方法
+ ///
+ public static PlcOperationHelper Instance
+ {
+ get
+ {
+ if (_instance == null)
+ {
+ lock (lockObj)
+ {
+ if (_instance == null)
+ {
+ _instance = new PlcOperationHelper();
+ }
+ }
+ }
+ return _instance;
+ }
+ }
+ #endregion
+
+
+ private bool _isConn = false;
+
+
+ public bool isConn
+ {
+ get
+ {
+
+
+ return this._isConn;
+
+
+ }
+ set { this._isConn = value; }
+ }
+ private static IModbusMaster master;
+ private static SerialPort port;
+
+ public bool PlcInit()
+ {
+ try
+ {
+ string portname = GlobalHelper.ParameterList.Select(" PARAMETER_CODE = 'PortName'")[0]["PARAMETER_VALUE"].ToString();
+ int baudrate = Convert.ToInt32(GlobalHelper.ParameterList.Select(" PARAMETER_CODE = 'BaudRate'")[0]["PARAMETER_VALUE"]);
+ int databits = Convert.ToInt32(GlobalHelper.ParameterList.Select(" PARAMETER_CODE = 'DataBits'")[0]["PARAMETER_VALUE"]);
+ StopBits stopbis = Convert.ToInt32(GlobalHelper.ParameterList.Select(" PARAMETER_CODE = 'StopBits'")[0]["PARAMETER_VALUE"]) == 0 ? StopBits.None : (Convert.ToInt32(GlobalHelper.ParameterList.Select(" PARAMETER_CODE = 'StopBits'")[0]["PARAMETER_VALUE"]) == 1 ? StopBits.One : StopBits.Two);
+ Parity paritymsg = Convert.ToInt32(GlobalHelper.ParameterList.Select(" PARAMETER_CODE = 'ParityMsg'")[0]["PARAMETER_VALUE"]) == 0 ? Parity.None : (Convert.ToInt32(GlobalHelper.ParameterList.Select(" PARAMETER_CODE = 'ParityMsg'")[0]["PARAMETER_VALUE"]) == 1 ? Parity.Odd : Parity.Even);
+ int modbusPattern = Convert.ToInt32(GlobalHelper.ParameterList.Select(" PARAMETER_CODE = 'ModbusPattern'")[0]["PARAMETER_VALUE"]);
+ port = new SerialPort(portname, baudrate, paritymsg, databits, stopbis);
+ if (modbusPattern == 0)
+ {
+ master = ModbusSerialMaster.CreateRtu(port);
+ }
+ else
+ {
+ master = ModbusSerialMaster.CreateAscii(port);
+ }
+ port.Open();
+ return true;
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog($"初始化PLC连接时发生异常:【{ex.Message}】", LogTypeEum.Err);
+ isConn = false;
+ return false;
+ }
+ }
+ public void ClosePlcConn()
+ {
+ if (port.IsOpen)
+ {
+ port.Close();
+ master = null;
+ isConn = false;
+ }
+ }
+ public void RefreshPlcItem_M()
+ {
+ try
+ {
+ bool[] readBytArr_M = master.ReadCoils(1, 2248, 50);
+ bool[] readBytArr_M1 = master.ReadCoils(1, 2048, 50);
+ if (readBytArr_M.Length > 0 && readBytArr_M1.Length > 0)
+ {
+ if (GlobalHelper.PlcItemMd_M_List != null && GlobalHelper.PlcItemMd_M_List.Count > 0)
+ {
+ foreach (BasPlcItemMd item in GlobalHelper.PlcItemMd_M_List)
+ {
+ if (Convert.ToInt32(item.PlcItemPriAddress) >= 200)
+ {
+ if (!string.IsNullOrEmpty(item.PlcItemDeviationAddress))
+ {
+ string PlcItemId = item.PlcItemId.ToString();
+ string plcdatatype = item.PlcItemDataType.ToString();
+ int plcItemDeviationAddress = Convert.ToInt32(item.PlcItemDeviationAddress);
+ item.PlcItemValue = readBytArr_M[plcItemDeviationAddress].ToString();
+ GlobalHelper.ShowSensorStatus(item, new EventArgs());
+ }
+ }
+ else
+ {
+ if (!string.IsNullOrEmpty(item.PlcItemDeviationAddress))
+ {
+ string PlcItemId = item.PlcItemId.ToString();
+ string plcdatatype = item.PlcItemDataType.ToString();
+ int plcItemDeviationAddress = Convert.ToInt32(item.PlcItemDeviationAddress);
+ item.PlcItemValue = readBytArr_M1[plcItemDeviationAddress].ToString();
+ GlobalHelper.ShowSensorStatus(item, new EventArgs());
+ }
+ }
+ }
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog($"读取M 类型PLC变量时发生异常:【{ex.Message}】", LogTypeEum.Err);
+ }
+ }
+ public void RefreshPlcItem_D()
+ {
+ try
+ {
+ ushort[] tmpReadAlarmBytArr_D = master.ReadHoldingRegisters(1, 4106, 50);
+ ushort[] readBytArr_D = master.ReadHoldingRegisters(1, 4505, 50);
+ if (readBytArr_D.Length > 0 && tmpReadAlarmBytArr_D.Length > 0)
+ {
+ if (GlobalHelper.PlcItemMd_D_List != null && GlobalHelper.PlcItemMd_D_List.Count > 0)
+ {
+ foreach (BasPlcItemMd item in GlobalHelper.PlcItemMd_D_List)
+ {
+ if (!string.IsNullOrEmpty(item.PlcItemDeviationAddress))
+ {
+
+ string PlcItemId = item.PlcItemId.ToString();
+ string plcdatatype = item.PlcItemDataType.ToString();
+ int plcItemDeviationAddress = Convert.ToInt32(item.PlcItemDeviationAddress);
+ if (Convert.ToInt32(item.PlcItemPriAddress) < 409)
+ {
+ item.PlcItemValue = tmpReadAlarmBytArr_D[plcItemDeviationAddress].ToString();
+ }
+ else
+ {
+ if (item.PlcItemDataLen == 2)
+ {
+ ushort[] tmp_1 = new ushort[] { readBytArr_D[plcItemDeviationAddress], readBytArr_D[plcItemDeviationAddress + 1] };
+
+ #region 方法一 :Short数组转换为int数据 20201014 孙亚龙
+ ////低位 short 的字节数组。
+ //byte[] tmpByt_1 = BitConverter.GetBytes(readBytArr_D[plcItemDeviationAddress]);
+ ////高位 short 的字节数组。
+ //byte[] tmpByt_2 = BitConverter.GetBytes(readBytArr_D[plcItemDeviationAddress + 1]);
+ ////组合为int32的字节数组。
+ //byte[] tmpByt_3 = new byte[] { tmpByt_1[0], tmpByt_1[1], tmpByt_2[0], tmpByt_2[1] };
+ ////readBytArr_D[plcItemDeviationAddress + 1] << 16 +
+ //item.PlcItemValue = BitConverter.ToUInt32(tmpByt_3, 0).ToString();
+ #endregion
+
+ #region 方法二 :Short数组转换为int数据 20201014 孙亚龙
+ //相较而言 使用位移的算法效率更高一些。
+ item.PlcItemValue = ((readBytArr_D[plcItemDeviationAddress + 1] << 16) + readBytArr_D[plcItemDeviationAddress]).ToString();
+ #endregion
+
+ }
+ else
+ {
+ item.PlcItemValue = readBytArr_D[plcItemDeviationAddress].ToString();
+ }
+ }
+ }
+ }
+ }
+ HandleWaringLog(tmpReadAlarmBytArr_D);
+ }
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog($"读取D 类型PLC变量时发生异常:【{ex.Message}】", LogTypeEum.Err);
+ }
+ }
+
+ //报警信息记录
+ private void HandleWaringLog(ushort[] tmpReadAlarmBytArr_D)
+ {
+ try
+ {
+ int index = 10;
+ string priStr = "D";
+ string priWarnCode = "bit";
+ for (int i = 0; i < tmpReadAlarmBytArr_D.Length; i++)
+ {
+ if (i <= 1)
+ {//D10~D11 报警
+ char[] tmpCharArr = Convert.ToString(tmpReadAlarmBytArr_D[i], 2).PadLeft(16, '0').Reverse().ToArray();
+ for (int j = 0; j < tmpCharArr.Length; j++)
+ {
+ if (tmpCharArr[j] == '1')
+ {//当前报警
+ Bas_WarningMd tmpMd = GlobalHelper.BasWarningMd_List.Find(x => x.PlcItemCode == $"{priStr + (index + i)}" && x.WarningCode == $"{priWarnCode + j}" && x.WarningType == "1");
+ if (tmpMd != null)
+ {
+ CM_WarningLogMd warnLogTmp = GlobalHelper.CmWarningLogMd_List.Find(y => y.WarningStatus == 0 && y.WarningHandleResult == 0 && y.WarningCode == tmpMd.WarningCode && y.PlcItemCode == tmpMd.PlcItemCode);
+ if (warnLogTmp != null)
+ {//找到报警项,并增加版本
+ warnLogTmp.UpdateTime = DateTime.Now;
+ warnLogTmp.DataVersion += 1;
+ }
+ else
+ {//新报警增加记录
+ GlobalHelper.CmWarningLogMd_List.Add(new CM_WarningLogMd
+ {
+ WarningCode = tmpMd.WarningCode,
+ WarningName = tmpMd.WarningName,
+ WarningType = tmpMd.WarningType,
+ WarningMessage = tmpMd.WarningMessage,
+ WarningTime = DateTime.Now,
+ PlcItemCode = tmpMd.PlcItemCode,
+ WarningStatus = 0,
+ WarningHandleResult = 0,
+ CreateBy = 1,
+ CreateTime = DateTime.Now,
+ UpdateBy = 1,
+ UpdateTime = DateTime.Now,
+ DataVersion = 0,
+ });
+ }
+ }
+ #region 已删除
+
+ // string sql = $@"SELECT * FROM BAS_WARNING WHERE PLC_ITEM_CODE = '{priStr + (index + i)}' and WARNING_CODE = '{priWarnCode + i}' and WARNING_TYPE = '1'";
+ // DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ // if (dt != null && dt.Rows.Count > 0)
+ // {
+ // string sql1 = $@"
+ // INSERT INTO CM_WARNING_LOG (
+ // WARNING_CODE,
+ // WARNING_NAME,
+ // WARNING_TYPE,
+ // WARNING_MESSAGE,
+ // WARNING_TIME,
+ // PLC_ITEM_CODE,
+ // WARING_STATUS,
+ // WARNING_HANDLE_RESULT,
+ // CREATE_BY,
+ // CREATE_TIME,
+ // UPDATE_BY,
+ // UPDATE_TIME,
+ // DATA_VERSION
+ // )
+ // SELECT
+ // '{dt.Rows[0]["WARNING_CODE"]}',
+ // '{dt.Rows[0]["WARNING_NAME"]}',
+ // '{dt.Rows[0]["WARNING_TYPE"]}',
+ // '{dt.Rows[0]["WARNING_MESSAGE"]}',
+ // datetime('now', 'localtime'),
+ // '{dt.Rows[0]["PLC_ITEM_CODE"]}',
+ // 0,
+ // 0,
+ // 1,
+ // datetime('now', 'localtime'),
+ // 1,
+ // datetime('now', 'localtime'),
+ // 0
+ // WHERE NOT EXISTS (SELECT 1 FROM CM_WARNING_LOG WHERE WARING_STATUS = 0 and WARNING_HANDLE_RESULT = 0 and WARNING_CODE = '{dt.Rows[0]["WARNING_CODE"]}' and PLC_ITEM_CODE = '{dt.Rows[0]["PLC_ITEM_CODE"]}')
+ // ";
+ // LeadDbHelperSQLite.ExecuteSql(sql1);
+
+ // string sql2 = $@"
+ //UPDATE CM_WARNING_LOG set UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1
+ // WHERE EXISTS(SELECT 1 FROM CM_WARNING_LOG WHERE WARING_STATUS = 0 and WARNING_HANDLE_RESULT = 0 and WARNING_CODE = '{dt.Rows[0]["WARNING_CODE"]}' and PLC_ITEM_CODE = '{dt.Rows[0]["PLC_ITEM_CODE"]}') and WARING_STATUS = 0 and WARNING_HANDLE_RESULT = 0 and WARNING_CODE = '{dt.Rows[0]["WARNING_CODE"]}' and PLC_ITEM_CODE = '{dt.Rows[0]["PLC_ITEM_CODE"]}';
+ // ";
+ // LeadDbHelperSQLite.ExecuteSql(sql2);
+ // }
+
+ #endregion
+ }
+ else
+ {//当前报警项没有报警
+ Bas_WarningMd tmpMd = GlobalHelper.BasWarningMd_List.Find(x => x.PlcItemCode == $"{priStr + (index + i)}" && x.WarningCode == $"{priWarnCode + j}" && x.WarningType == "1");
+ if (tmpMd != null)
+ {//之前有报警,则结束当前报警项
+ CM_WarningLogMd warnLogTmp = GlobalHelper.CmWarningLogMd_List.Find(y => y.WarningStatus == 0 && y.WarningHandleResult == 0 && y.WarningCode == tmpMd.WarningCode && y.PlcItemCode == tmpMd.PlcItemCode);
+ if (warnLogTmp != null)
+ {
+ warnLogTmp.UpdateTime = DateTime.Now;
+ warnLogTmp.DataVersion += 1;
+ warnLogTmp.WarningStatus = 1;
+ warnLogTmp.WarningHandleResult = 1;
+ warnLogTmp.WarningHandleTime = DateTime.Now;
+ }
+ }
+ #region 已删除
+ //string sql = $@"SELECT * FROM BAS_WARNING WHERE PLC_ITEM_CODE = '{priStr + (index + i)}' and WARNING_CODE = '{priWarnCode + i}' and WARNING_TYPE = '1'";
+ //DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ //if (dt != null && dt.Rows.Count > 0)
+ //{
+ // string sql2 = $@"
+ // UPDATE CM_WARNING_LOG
+ // SET UPDATE_TIME = datetime('now', 'localtime'),
+ // DATA_VERSION = DATA_VERSION + 1,
+ // WARING_STATUS = 1,
+ // WARNING_HANDLE_RESULT = 1,
+ // WARNING_HANDLE_TIME = datetime('now', 'localtime')
+ // WHERE
+ // EXISTS ( SELECT 1 FROM CM_WARNING_LOG WHERE WARING_STATUS = 0 AND WARNING_HANDLE_RESULT = 0 AND WARNING_CODE = '{dt.Rows[0]["WARNING_CODE"]}' AND PLC_ITEM_CODE = '{dt.Rows[0]["PLC_ITEM_CODE"]}' )
+ // AND WARING_STATUS = 0
+ // AND WARNING_HANDLE_RESULT = 0
+ // AND WARNING_CODE = '{dt.Rows[0]["WARNING_CODE"]}'
+ // AND PLC_ITEM_CODE = '{dt.Rows[0]["PLC_ITEM_CODE"]}';
+ // ";
+ // LeadDbHelperSQLite.ExecuteSql(sql2);
+ //}
+ #endregion
+ }
+ }
+ }
+ else if (i == 2)
+ {
+ //char[] tmpCharArr = Convert.ToString(tmpReadAlarmBytArr_D[i], 2).PadLeft(16, '0').Reverse().ToArray();
+ //if (tmpCharArr.Contains('1'))
+ //{
+ // List warnLst = new List();
+ // for (int j = 0; j < tmpCharArr.Length; j++)
+ // {
+ // if (tmpCharArr[j] == '1')
+ // {
+ // Bas_WarningMd tmpMd = GlobalHelper.BasWarningMd_List.Find(x => x.PlcItemCode == $"{priStr + (index + i)}" && x.WarningCode == $"{priWarnCode + j}" && x.WarningType == "1");
+ // if (tmpMd != null)
+ // {
+ // warnLst.Add(tmpMd);
+ // }
+ // }
+ // }
+ // GlobalHelper.ShowWarningMsg(warnLst, new EventArgs());
+ //}
+ }
+ else if (i >= 3 && i <= 9)
+ {//D13~D19报警
+ if (tmpReadAlarmBytArr_D[i] == 0)
+ {
+ CM_WarningLogMd warnLogTmp = GlobalHelper.CmWarningLogMd_List.Find(y => y.WarningStatus == 0 && y.WarningHandleResult == 0 && y.PlcItemCode == $"{priStr + (index + i)}");
+ if (warnLogTmp != null)
+ {
+ warnLogTmp.UpdateTime = DateTime.Now;
+ warnLogTmp.DataVersion += 1;
+ warnLogTmp.WarningStatus = 1;
+ warnLogTmp.WarningHandleResult = 1;
+ warnLogTmp.WarningHandleTime = DateTime.Now;
+ }
+ #region 已删除
+ //string sql2 = $@"
+ // UPDATE CM_WARNING_LOG
+ // SET UPDATE_TIME = datetime('now', 'localtime'),
+ // DATA_VERSION = DATA_VERSION + 1,
+ // WARING_STATUS = 1,
+ // WARNING_HANDLE_RESULT = 1,
+ // WARNING_HANDLE_TIME = datetime('now', 'localtime')
+ // WHERE
+ // EXISTS ( SELECT 1 FROM CM_WARNING_LOG WHERE WARING_STATUS = 0 AND WARNING_HANDLE_RESULT = 0 AND WARNING_CODE = '{i}' AND PLC_ITEM_CODE is NULL )
+ // AND WARING_STATUS = 0
+ // AND WARNING_HANDLE_RESULT = 0
+ // AND WARNING_CODE = 'i'
+ // AND PLC_ITEM_CODE is NULL;
+ // ";
+ //LeadDbHelperSQLite.ExecuteSql(sql2);
+ #endregion
+ }
+ else
+ {//根据报警编码,获取报警信息,根据读取顺序编号,组成PlcItemCode
+ Bas_WarningMd tmpMd = GlobalHelper.BasWarningMd_List.Find(x => string.IsNullOrEmpty(x.PlcItemCode) && x.WarningCode == tmpReadAlarmBytArr_D[i].ToString() && x.WarningType == "2");
+ if (tmpMd != null)
+ {
+ CM_WarningLogMd warnLogTmp = GlobalHelper.CmWarningLogMd_List.Find(y => y.WarningStatus == 0 && y.WarningHandleResult == 0 && y.WarningCode == tmpMd.WarningCode && y.PlcItemCode == $"{priStr + (index + i)}");
+ if (warnLogTmp != null)
+ {
+ warnLogTmp.UpdateTime = DateTime.Now;
+ warnLogTmp.DataVersion += 1;
+ }
+ else
+ {
+ GlobalHelper.CmWarningLogMd_List.Add(new CM_WarningLogMd
+ {
+ WarningCode = tmpMd.WarningCode,
+ WarningName = tmpMd.WarningName,
+ WarningType = tmpMd.WarningType,
+ WarningMessage = tmpMd.WarningMessage,
+ WarningTime = DateTime.Now,
+ PlcItemCode = $"{priStr + (index + i)}",
+ WarningStatus = 0,
+ WarningHandleResult = 0,
+ CreateBy = 1,
+ CreateTime = DateTime.Now,
+ UpdateBy = 1,
+ UpdateTime = DateTime.Now,
+ DataVersion = 0,
+ });
+ }
+ }
+
+ #region 已删除
+
+ // string sql = $@"SELECT * FROM BAS_WARNING WHERE PLC_ITEM_CODE is NULL and WARNING_CODE = '{i}' and WARNING_TYPE = '2'";
+ // DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ // if (dt != null && dt.Rows.Count > 0)
+ // {
+ // string sql1 = $@"
+ // INSERT INTO CM_WARNING_LOG (
+ // WARNING_CODE,
+ // WARNING_NAME,
+ // WARNING_TYPE,
+ // WARNING_MESSAGE,
+ // WARNING_TIME,
+ // PLC_ITEM_CODE,
+ // WARING_STATUS,
+ // WARNING_HANDLE_RESULT,
+ // CREATE_BY,
+ // CREATE_TIME,
+ // UPDATE_BY,
+ // UPDATE_TIME,
+ // DATA_VERSION
+ // )
+ // SELECT
+ // '{dt.Rows[0]["WARNING_CODE"]}',
+ // '{dt.Rows[0]["WARNING_NAME"]}',
+ // '{dt.Rows[0]["WARNING_TYPE"]}',
+ // '{dt.Rows[0]["WARNING_MESSAGE"]}',
+ // datetime('now', 'localtime'),
+ // '{dt.Rows[0]["PLC_ITEM_CODE"]}',
+ // 0,
+ // 0,
+ // 1,
+ // datetime('now', 'localtime'),
+ // 1,
+ // datetime('now', 'localtime'),
+ // 0
+ // WHERE NOT EXISTS (SELECT 1 FROM CM_WARNING_LOG WHERE WARING_STATUS = 0 and WARNING_HANDLE_RESULT = 0 and WARNING_CODE = '{dt.Rows[0]["WARNING_CODE"]}' and PLC_ITEM_CODE is NULL)
+ // ";
+ // LeadDbHelperSQLite.ExecuteSql(sql1);
+ // string sql2 = $@"
+ //UPDATE CM_WARNING_LOG set UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1
+ // WHERE EXISTS(SELECT 1 FROM CM_WARNING_LOG WHERE WARING_STATUS = 0 and WARNING_HANDLE_RESULT = 0 and WARNING_CODE = '{dt.Rows[0]["WARNING_CODE"]}' and PLC_ITEM_CODE is NULL) and WARING_STATUS = 0 and WARNING_HANDLE_RESULT = 0 and WARNING_CODE = '{dt.Rows[0]["WARNING_CODE"]}' and is NULL;
+ // ";
+ // LeadDbHelperSQLite.ExecuteSql(sql2);
+ // }
+ #endregion
+
+ }
+ }
+ else if (i > 9)
+ {
+ break;
+ }
+ }
+
+ List tmpLst = GlobalHelper.CmWarningLogMd_List.FindAll(x => x.WarningHandleResult == 1 && x.WarningStatus == 1);
+ if (tmpLst.Count >= 10)
+ {
+ foreach (CM_WarningLogMd item in tmpLst)
+ {
+ string sql1 = $@"
+ INSERT INTO CM_WARNING_LOG (
+ WARNING_CODE,
+ WARNING_NAME,
+ WARNING_TYPE,
+ WARNING_MESSAGE,
+ WARNING_TIME,
+ PLC_ITEM_CODE,
+ WARING_STATUS,
+ WARNING_HANDLE_RESULT,
+ WARNING_HANDLE_TIME,
+ CREATE_BY,
+ CREATE_TIME,
+ UPDATE_BY,
+ UPDATE_TIME,
+ DATA_VERSION
+ )
+ VALUES (
+ '{item.WarningCode}',
+ '{item.WarningName}',
+ '{item.WarningType}',
+ '{item.WarningMessage}',
+ '{item.WarningTime.ToString("yyyy-MM-dd HH:mm:ss")}',
+ '{item.PlcItemCode}',
+ '{item.WarningStatus}',
+ '{item.WarningHandleResult}',
+ '{item.WarningHandleTime.ToString("yyyy-MM-dd HH:mm:ss")}',
+ '{item.CreateBy}',
+ '{item.CreateTime.ToString("yyyy-MM-dd HH:mm:ss")}',
+ '{item.UpdateBy}',
+ '{item.UpdateTime.ToString("yyyy-MM-dd HH:mm:ss")}',
+ '{item.DataVersion}'
+ );
+ ";
+ LeadDbHelperSQLite.ExecuteSql(sql1);
+ }
+ GlobalHelper.CmWarningLogMd_List.RemoveAll(x => x.WarningHandleResult == 1 && x.WarningStatus == 1);
+ }
+
+ if (GlobalHelper.CmWarningLogMd_List.FindAll(x => x.WarningHandleResult == 0 && x.WarningStatus == 0).Count > 0)
+ {
+ //frmMainNew.Show_ptb_Alarm(true);
+ GlobalHelper.ShowMainFrmAlarmMsg(true, EventArgs.Empty);
+ }
+ else
+ {
+ //frmMainNew.Show_ptb_Alarm(false);
+ GlobalHelper.ShowMainFrmAlarmMsg(false, EventArgs.Empty);
+ }
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog($"处理设备报警信息时发生异常:【{ex.Message}】", LogTypeEum.Err);
+ }
+ }
+
+ public void RefreshPlcItem_X()
+ {
+ try
+ {
+ bool[] readBytArr_X = master.ReadInputs(1, 1024, 50);
+ if (readBytArr_X.Length > 0)
+ //if(true)
+ {
+ if (GlobalHelper.PlcItemMd_X_List != null && GlobalHelper.PlcItemMd_X_List.Count > 0)
+ {
+ foreach (BasPlcItemMd item in GlobalHelper.PlcItemMd_X_List)
+ {
+ if (!string.IsNullOrEmpty(item.PlcItemDeviationAddress))
+ {
+ string PlcItemId = item.PlcItemId.ToString();
+ string plcdatatype = item.PlcItemDataType.ToString();
+ int plcItemDeviationAddress = Convert.ToInt32(item.PlcItemDeviationAddress);
+ item.PlcItemValue = readBytArr_X[plcItemDeviationAddress].ToString();
+
+ //Random r = new Random();
+ //item.PlcItemValue = r.Next(0, 2) == 0 ? "False" : "True";
+
+ GlobalHelper.ShowX_Y_Status(item, new EventArgs());
+ GlobalHelper.ShowSensorStatus(item, new EventArgs());
+ }
+ }
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog($"读取X 类型PLC变量时发生异常:【{ex.Message}】", LogTypeEum.Err);
+ }
+ }
+
+ public void RefreshPlcItem_Y()
+ {
+ try
+ {
+ bool[] readBytArr_Y = master.ReadCoils(1, 1280, 50);
+ if (readBytArr_Y.Length > 0)
+ //if(true)
+ {
+ if (GlobalHelper.PlcItemMd_Y_List != null && GlobalHelper.PlcItemMd_Y_List.Count > 0)
+ {
+ foreach (BasPlcItemMd item in GlobalHelper.PlcItemMd_Y_List)
+ {
+ if (!string.IsNullOrEmpty(item.PlcItemDeviationAddress))
+ {
+ string PlcItemId = item.PlcItemId.ToString();
+ string plcdatatype = item.PlcItemDataType.ToString();
+ int plcItemDeviationAddress = Convert.ToInt32(item.PlcItemDeviationAddress);
+ item.PlcItemValue = readBytArr_Y[plcItemDeviationAddress].ToString();
+
+ //Random r = new Random();
+ //item.PlcItemValue = r.Next(0, 2) == 0 ? "False" : "True";
+
+ GlobalHelper.ShowX_Y_Status(item, new EventArgs());
+
+ }
+ }
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog($"读取Y 类型PLC变量时发生异常:【{ex.Message}】", LogTypeEum.Err);
+ }
+ }
+
+ public object ReadPlcItem(string plcItemCode, PlcItemTypeDesc itemType)
+ {
+ try
+ {
+ object retObj;
+ switch (itemType)
+ {
+ case PlcItemTypeDesc.M:
+ BasPlcItemMd item_M = GlobalHelper.PlcItemMd_M_List.Find(x => x.PlcItemCode == plcItemCode);
+ if (item_M == null)
+ {
+ return null;
+ }
+ if (string.IsNullOrEmpty(item_M.PlcItemValue))
+ {
+ retObj = false;
+ }
+ else
+ {
+ retObj = bool.Parse(item_M.PlcItemValue);
+ }
+ break;
+ case PlcItemTypeDesc.D:
+ BasPlcItemMd item_D = GlobalHelper.PlcItemMd_D_List.Find(x => x.PlcItemCode == plcItemCode);
+ if (item_D == null)
+ {
+ return null;
+ }
+ if (string.IsNullOrEmpty(item_D.PlcItemValue))
+ {
+ retObj = 0;
+ }
+ else
+ {
+ retObj = short.Parse(item_D.PlcItemValue);
+ }
+ break;
+ case PlcItemTypeDesc.X:
+ BasPlcItemMd item_X = GlobalHelper.PlcItemMd_X_List.Find(x => x.PlcItemCode == plcItemCode);
+ if (item_X == null)
+ {
+ return null;
+ }
+ if (string.IsNullOrEmpty(item_X.PlcItemValue))
+ {
+ retObj = false;
+ }
+ else
+ {
+ retObj = bool.Parse(item_X.PlcItemValue);
+ }
+ break;
+ case PlcItemTypeDesc.Y:
+ BasPlcItemMd item_Y = GlobalHelper.PlcItemMd_Y_List.Find(x => x.PlcItemCode == plcItemCode);
+ if (item_Y == null)
+ {
+ return null;
+ }
+ if (string.IsNullOrEmpty(item_Y.PlcItemValue))
+ {
+ retObj = false;
+ }
+ else
+ {
+ retObj = bool.Parse(item_Y.PlcItemValue);
+ }
+ break;
+ default:
+ retObj = null;
+ break;
+ }
+ return retObj;
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog($"读取测试:【{plcItemCode}】", LogTypeEum.Err);
+ LogHelper.WriteLog($"读取【{itemType.ToString()}】类型PLC变量【{plcItemCode}】时发生异常:【{ex.Message}】", LogTypeEum.Err);
+ return null;
+ }
+ }
+
+ public bool WritePlcItem(string plcItemCode, string writeValue, PlcItemTypeDesc itemType)
+ {
+ try
+ {
+ switch (itemType)
+ {
+ case PlcItemTypeDesc.M:
+ BasPlcItemMd item_M = GlobalHelper.PlcItemMd_M_List.Find(x => x.PlcItemCode == plcItemCode);
+ if (item_M == null)
+ {
+ return false;
+ }
+ master.WriteSingleCoilAsync(1, Convert.ToUInt16(item_M.PlcItemModbusAddress), bool.Parse(writeValue));
+ return true;
+ case PlcItemTypeDesc.Y:
+ BasPlcItemMd item_Y = GlobalHelper.PlcItemMd_Y_List.Find(x => x.PlcItemCode == plcItemCode);
+ if (item_Y == null)
+ {
+ return false;
+ }
+ master.WriteSingleCoilAsync(1, Convert.ToUInt16(item_Y.PlcItemModbusAddress), bool.Parse(writeValue));
+ return true;
+ case PlcItemTypeDesc.D:
+ BasPlcItemMd item_D = GlobalHelper.PlcItemMd_D_List.Find(x => x.PlcItemCode == plcItemCode);
+ if (item_D == null)
+ {
+ return false;
+ }
+ master.WriteSingleRegisterAsync(1, Convert.ToUInt16(item_D.PlcItemModbusAddress), ushort.Parse(writeValue));
+ return true;
+ case PlcItemTypeDesc.X:
+ return false;
+ default:
+ return false;
+ }
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog($"写入【{itemType.ToString()}】类型PLC变量【{plcItemCode}】的值【{writeValue}】时发生异常:【{ex.Message}】", LogTypeEum.Err);
+ return false;
+ }
+ }
+ private int wcsToPlcHeartDataNew = 0;
+ private DateTime HeartbeatTime = new DateTime();
+ private int ReConnNum = 1;
+ public void HeartbeatDetection()
+ {
+ try
+ {
+ int wcsToPlcHeartData = Convert.ToInt32(ReadPlcItem("PlcHeartbeatWriteData", PlcItemTypeDesc.D) == null ? 0 : ReadPlcItem("PlcHeartbeatWriteData", PlcItemTypeDesc.D));
+ int plcToWcsHeartData = Convert.ToInt32(ReadPlcItem("PlcHeartbeatReadData", PlcItemTypeDesc.D) == null ? 0 : ReadPlcItem("PlcHeartbeatReadData", PlcItemTypeDesc.D));
+ if (wcsToPlcHeartData == 0 && plcToWcsHeartData == 0)
+ {
+ WritePlcItem("PlcHeartbeatWriteData", "1", PlcItemTypeDesc.D);
+ wcsToPlcHeartDataNew = 1;
+ }
+ else if (wcsToPlcHeartDataNew == plcToWcsHeartData && plcToWcsHeartData != 0 && wcsToPlcHeartDataNew != 0)
+ {
+ if (plcToWcsHeartData >= 256)
+ {
+ wcsToPlcHeartDataNew = 1;
+ wcsToPlcHeartData = wcsToPlcHeartDataNew;
+ }
+ else
+ {
+ wcsToPlcHeartData = wcsToPlcHeartDataNew + 1;
+ }
+ if (WritePlcItem("PlcHeartbeatWriteData", wcsToPlcHeartData.ToString(), PlcItemTypeDesc.D))
+ {
+ isConn = true;
+ HeartbeatTime = DateTime.Now;
+ wcsToPlcHeartDataNew = wcsToPlcHeartData;
+ frmMainNew.Show_Plc_Alarm("Serial port open success, PLC connect success!");
+ }
+ }
+ else if (wcsToPlcHeartDataNew == 0 && plcToWcsHeartData != 0)
+ {
+ if (plcToWcsHeartData == wcsToPlcHeartData)
+ {
+ if (plcToWcsHeartData >= 256)
+ {
+ wcsToPlcHeartDataNew = 1;
+ wcsToPlcHeartData = wcsToPlcHeartDataNew;
+ }
+ else
+ {
+ wcsToPlcHeartData = wcsToPlcHeartDataNew + 1;
+ }
+ if (WritePlcItem("PlcHeartbeatWriteData", wcsToPlcHeartData.ToString(), PlcItemTypeDesc.D))
+ {
+ isConn = true;
+ HeartbeatTime = DateTime.Now;
+ wcsToPlcHeartDataNew = wcsToPlcHeartData;
+ frmMainNew.Show_Plc_Alarm("Serial port open success, PLC connect success!");
+ }
+ }
+ }
+ else
+ {
+ WritePlcItem("PlcHeartbeatWriteData", wcsToPlcHeartDataNew.ToString(), PlcItemTypeDesc.D);
+ }
+
+ 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++;
+ }
+ }
+ catch
+ {
+
+ }
+ }
+ }
+
+
+
+
+ public enum PlcItemTypeDesc
+ {
+ ///
+ /// M 类型布尔变量
+ ///
+ M,
+ ///
+ /// D 类型整数变量
+ ///
+ D,
+ ///
+ /// X 类型布尔变量
+ ///
+ X,
+ ///
+ /// Y 类型布尔变量
+ ///
+ Y
+ }
+}
diff --git a/CleanMachineHMI/Utils/frmUtil.cs b/CleanMachineHMI/Utils/frmUtil.cs
new file mode 100644
index 0000000..3d00f1a
--- /dev/null
+++ b/CleanMachineHMI/Utils/frmUtil.cs
@@ -0,0 +1,434 @@
+using CleanMachineHMI.Domain.Enums;
+using ComponentFactory.Krypton.Navigator;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+using NX_LogUtility;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Linq;
+using System.Runtime.CompilerServices;
+using System.Security.Cryptography;
+using System.Text;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.Utils
+{
+ ///
+ /// 窗体工具
+ ///
+ public static class frmUtil
+ {
+ ///
+ /// 给一个字符串进行MD5加密
+ ///
+ /// 待加密字符串
+ /// 加密后的字符串
+ public static string MD5Encrypt(string strText)
+ {
+ try
+ {
+ MD5 md5 = MD5.Create();
+ byte[] buffer = Encoding.Default.GetBytes(strText);
+ byte[] md5buffer = md5.ComputeHash(buffer);
+ string str = null;
+ foreach (byte b in md5buffer)
+ {
+ str += b.ToString("x2");
+ }
+ return str;
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
+ return null;
+ }
+ }
+
+ ///
+ /// 设置窗体容器
+ ///
+ ///
+ ///
+ public static void SetPageForm(this KryptonForm objFrm, KryptonPage panelPage)
+ {
+
+ try
+ {
+ objFrm.TopLevel = false;
+ objFrm.FormBorderStyle = FormBorderStyle.None;
+ objFrm.Dock = DockStyle.Fill;
+ objFrm.MinimizeBox = false;
+ objFrm.Parent = panelPage;
+ objFrm.Show();
+ objFrm.Refresh();
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
+ }
+ }
+
+ ///
+ /// 界面刷新
+ ///
+ ///
+ ///
+ public static void SetNavPage(this KryptonNavigator kryptonNavigator, EnumFormType enumFormType)
+ {
+
+ try
+ {
+ Type frmType = GlobalHelper.FrmModelList.Where(s => s.FormType == enumFormType).FirstOrDefault().Form;
+ KryptonPage newPage;
+ if (!kryptonNavigator.Pages.Where(s => s.Name == enumFormType.ToString()).Any())
+ {
+ newPage = new KryptonPage { Text = "", Name = enumFormType.ToString(), };
+ kryptonNavigator.Pages.Add(newPage);
+ }
+ else
+ {
+ newPage = kryptonNavigator.Pages.Where(s => s.Name == enumFormType.ToString()).FirstOrDefault();
+ }
+
+ kryptonNavigator.SelectedPage = newPage;
+ if (frmType.BaseType.Name == "UserControl")
+ {
+ var objFrm = (UserControl)Activator.CreateInstance(frmType);
+ objFrm.Dock = DockStyle.Fill;
+ objFrm.Parent = newPage;
+ objFrm.Show();
+ }
+ else
+ {
+ var objFrm = (KryptonForm)Activator.CreateInstance(frmType);
+ objFrm.TopLevel = false;
+ objFrm.FormBorderStyle = FormBorderStyle.None;
+ objFrm.Dock = DockStyle.Fill;
+ objFrm.Parent = newPage;
+ objFrm.Show();
+ }
+
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
+ }
+ }
+
+ ///
+ /// object 选择返回值
+ ///
+ ///
+ ///
+ public static string GetObjToString(this object obj)
+ {
+ if (obj == null)
+ {
+ return string.Empty;
+ }
+ if (obj.ToString() == "")
+ {
+ return string.Empty;
+ }
+ return obj.ToString();
+ }
+
+ ///
+ /// 设定窗体语言
+ ///
+ /// 窗体对象
+ /// 语言编码
+ public static void SetFormControlText(this Form form,string languageCode)
+ {
+
+ try
+ {
+ var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
+ WHERE USED_FLAG = 1 AND DEL_FLAG = 0
+ AND FORM_CODE='{form.Name}' AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE !='DataSource'";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ ErgodicControlsText(form, dt);
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
+ }
+ }
+ public static void SetFormControlText(this UserControl form, string languageCode)
+ {
+
+ try
+ {
+ var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
+ WHERE USED_FLAG = 1 AND DEL_FLAG = 0
+ AND FORM_CODE='{form.Name}' AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE !='DataSource'";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ ErgodicControlsText(form, dt);
+
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
+ }
+ }
+ ///
+ /// 设定数据视图列文本
+ ///
+ ///
+ ///
+ ///
+ public static void SetDataViewColumnText(this DataGridView dataGrid ,string formName, string languageCode)
+ {
+
+ try
+ {
+
+ var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
+ WHERE USED_FLAG = 1 AND DEL_FLAG = 0
+ AND FORM_CODE='{formName}' AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE ='DataSource'";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ ErgodicColumnsText(dataGrid, dt);
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
+ }
+ }
+
+ ///
+ /// 设定数据视图列文本
+ ///
+ ///
+ ///
+ ///
+ public static DataTable GetInfoLanguageText(this Form form, string languageCode, string controlType = "Info")
+ {
+
+ try
+ {
+
+ var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
+ WHERE USED_FLAG = 1 AND DEL_FLAG = 0
+ AND (FORM_CODE='{form.Name}' OR IFNULL(FORM_CODE,'')='') AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE = '{controlType}' ORDER BY LANGUAGE_CONTROL_ID";
+ return LeadDbHelperSQLite.Query(sql).Tables[0];
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
+ return null;
+ }
+ }
+ public static DataTable GetInfoLanguageText(this UserControl form, string languageCode, string controlType = "Info")
+ {
+
+ try
+ {
+
+ var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
+ WHERE USED_FLAG = 1 AND DEL_FLAG = 0
+ AND (FORM_CODE='{form.Name}' OR IFNULL(FORM_CODE,'')='') AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE = '{controlType}' ORDER BY LANGUAGE_CONTROL_ID";
+ return LeadDbHelperSQLite.Query(sql).Tables[0];
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
+ return null;
+ }
+ }
+ public static DataTable GetInfoLanguageText_1(this Form form, string languageCode, string controlType = "Info")
+ {
+
+ try
+ {
+ var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
+ WHERE USED_FLAG = 1 AND DEL_FLAG = 0
+ AND (FORM_CODE='{form.Name}' OR IFNULL(FORM_CODE,'')='') AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE like '{controlType}' ORDER BY LANGUAGE_CONTROL_ID";
+ return LeadDbHelperSQLite.Query(sql).Tables[0];
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
+ return null;
+ }
+ }
+ public static DataTable GetInfoLanguageText_1(this UserControl form, string languageCode, string controlType = "Info")
+ {
+
+ try
+ {
+ var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
+ WHERE USED_FLAG = 1 AND DEL_FLAG = 0
+ AND (FORM_CODE='{form.Name}' OR IFNULL(FORM_CODE,'')='') AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE like '{controlType}' ORDER BY LANGUAGE_CONTROL_ID";
+ return LeadDbHelperSQLite.Query(sql).Tables[0];
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
+ return null;
+ }
+ }
+ ///
+ /// 获取等于查询行
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static DataRow[] GetEqualSelectRow(this DataTable dataTable,string key,string value)
+ {
+
+ try
+ {
+ var likeSql = $"`{key}` = '{value}'";
+ DataRow[] dataRow = dataTable.Select(likeSql);
+ return dataRow;
+
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
+ return null;
+ }
+ }
+
+ ///
+ /// 获取包含查询行
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static DataRow[] GetContainSelectRow(this DataTable dataTable, string key, string value)
+ {
+
+ try
+ {
+
+ var likeSql = $"`{key}` like '%{value}%'";
+ DataRow[] dataRow = dataTable.Select(likeSql);
+ return dataRow;
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
+ return null;
+ }
+ }
+
+ ///
+ /// 获取信息文本
+ ///
+ ///
+ ///
+ ///
+ public static string GetInfoText(this DataTable dataTable,string defaultValue,string key)
+ {
+
+ try
+ {
+ var likeSql = $"`CONTROL_CODE` = '{key}' and `CONTROL_TYPE` = 'Info'";
+ DataRow[] dataRow = dataTable.Select(likeSql);
+ if (dataRow == null || !dataRow.Any())
+ {
+ return defaultValue;
+ }
+ else
+ {
+ return dataRow[0]["CONTROL_NAME"].ToString();
+ }
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
+ return null;
+ }
+ }
+ public static string GetInfoText_1(this DataTable dataTable, string defaultValue, string key, string controlType)
+ {
+
+ try
+ {
+ var likeSql = $"`CONTROL_CODE` = '{key}' and `CONTROL_TYPE` = '{controlType}'";
+ DataRow[] dataRow = dataTable.Select(likeSql);
+ if (dataRow == null || !dataRow.Any())
+ {
+ return defaultValue;
+ }
+ else
+ {
+ return dataRow[0]["CONTROL_NAME"].ToString();
+ }
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
+ return null;
+ }
+ }
+ public static DataRow[] GetComBoboxItemArr(this DataTable dataTable, string key, string controlType)
+ {
+
+ try
+ {
+ var likeSql = $"`CONTROL_CODE` = '{key}' and `CONTROL_TYPE` = '{controlType}'";
+ DataRow[] dataRow = dataTable.Select(likeSql);
+ return dataRow;
+
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
+ return null;
+ }
+ }
+ ///
+ /// 遍历控制界面
+ ///
+ ///
+ ///
+ private static void ErgodicControlsText(Control container,DataTable dataTable)
+ {
+ for (int i = 0; i < dataTable.Rows.Count; i++)
+ {
+ Control[] tmpC = container.Controls.Find(dataTable.Rows[i]["CONTROL_CODE"].ToString(), true);
+ if (tmpC.Length>0)
+ {
+ if (tmpC[0] is KryptonGroupBox)
+ {
+ //Console.Write("模块名称"+ ((KryptonGroupBox)tmpC[0]).Values.Heading);
+ //Console.Write("\r\n");
+ ((KryptonGroupBox)tmpC[0]).Values.Heading = dataTable.Rows[i]["CONTROL_NAME"].ToString();
+
+ continue;
+ }
+
+ //Console.Write("控件名称:"+ tmpC[0].Name+ ":控件中文名:" + tmpC[0].Text);
+ //Console.Write("\r\n");
+ tmpC[0].Text = dataTable.Rows[i]["CONTROL_NAME"].ToString();
+
+ }
+ }
+ }
+
+ ///
+ /// 遍历数据视图控件
+ ///
+ ///
+ ///
+ private static void ErgodicColumnsText(DataGridView dataGrid, DataTable dataTable)
+ {
+ for(int k = 0; k < dataGrid.Columns.Count; k++)
+ {
+ for (int i = 0; i < dataTable.Rows.Count; i++)
+ {
+ if (dataGrid.Columns[k].Name == dataTable.Rows[i]["CONTROL_CODE"].ToString())
+ {
+ dataGrid.Columns[k].HeaderText = dataTable.Rows[i]["CONTROL_NAME"].ToString();
+ break;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/desktop.ini b/CleanMachineHMI/desktop.ini
new file mode 100644
index 0000000..d957fd1
--- /dev/null
+++ b/CleanMachineHMI/desktop.ini
@@ -0,0 +1,4 @@
+[ViewState]
+Mode=
+Vid=
+FolderType=Generic
diff --git a/CleanMachineHMI/forms/frmCleanMode.Designer.cs b/CleanMachineHMI/forms/frmCleanMode.Designer.cs
new file mode 100644
index 0000000..1a3446c
--- /dev/null
+++ b/CleanMachineHMI/forms/frmCleanMode.Designer.cs
@@ -0,0 +1,357 @@
+namespace CleanMachineHMI.forms
+{
+ partial class frmCleanMode
+ {
+ ///
+ /// 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.kryptonGroupBox1 = new ComponentFactory.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.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();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(786, 131);
+ this.kryptonGroupBox1.TabIndex = 0;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 5;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 4, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Delete, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 3, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Add, 0, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(221, 78);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(561, 41);
+ this.tableLayoutPanel2.TabIndex = 6;
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(451, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(107, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(115, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // kbt_Delete
+ //
+ this.kbt_Delete.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Delete.Location = new System.Drawing.Point(227, 3);
+ this.kbt_Delete.Name = "kbt_Delete";
+ this.kbt_Delete.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Delete.TabIndex = 0;
+ this.kbt_Delete.Values.Text = "删除";
+ this.kbt_Delete.Click += new System.EventHandler(this.kbt_Delete_Click);
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(339, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kbt_Add
+ //
+ this.kbt_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Add.Location = new System.Drawing.Point(3, 3);
+ this.kbt_Add.Name = "kbt_Add";
+ this.kbt_Add.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Add.TabIndex = 0;
+ this.kbt_Add.Values.Text = "新增";
+ this.kbt_Add.Click += new System.EventHandler(this.kbt_Add_Click);
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 140F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 140F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_CleanModeCode, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_CleanModeName, 3, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(782, 72);
+ this.tableLayoutPanel1.TabIndex = 5;
+ //
+ // kdtp_CreateEndTime
+ //
+ this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateEndTime.Location = new System.Drawing.Point(534, 43);
+ this.kdtp_CreateEndTime.Name = "kdtp_CreateEndTime";
+ this.kdtp_CreateEndTime.ShowCheckBox = true;
+ this.kdtp_CreateEndTime.Size = new System.Drawing.Size(245, 21);
+ this.kdtp_CreateEndTime.TabIndex = 7;
+ //
+ // kdtp_CreateStartTime
+ //
+ this.kdtp_CreateStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateStartTime.Location = new System.Drawing.Point(143, 43);
+ this.kdtp_CreateStartTime.Name = "kdtp_CreateStartTime";
+ this.kdtp_CreateStartTime.ShowCheckBox = true;
+ this.kdtp_CreateStartTime.Size = new System.Drawing.Size(245, 21);
+ this.kdtp_CreateStartTime.TabIndex = 7;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(134, 30);
+ this.kryptonLabel2.TabIndex = 4;
+ this.kryptonLabel2.Values.Text = "清洁方式编码:";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(449, 44);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 4;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // ktb_CleanModeCode
+ //
+ this.ktb_CleanModeCode.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_CleanModeCode.Location = new System.Drawing.Point(143, 6);
+ this.ktb_CleanModeCode.Name = "ktb_CleanModeCode";
+ this.ktb_CleanModeCode.Size = new System.Drawing.Size(245, 23);
+ this.ktb_CleanModeCode.TabIndex = 5;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(3, 39);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(134, 30);
+ this.kryptonLabel4.TabIndex = 4;
+ this.kryptonLabel4.Values.Text = "创建时间:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(394, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(134, 30);
+ this.kryptonLabel3.TabIndex = 4;
+ this.kryptonLabel3.Values.Text = "清洁方式名称:";
+ //
+ // ktb_CleanModeName
+ //
+ this.ktb_CleanModeName.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_CleanModeName.Location = new System.Drawing.Point(534, 6);
+ this.ktb_CleanModeName.Name = "ktb_CleanModeName";
+ this.ktb_CleanModeName.Size = new System.Drawing.Size(245, 23);
+ this.ktb_CleanModeName.TabIndex = 5;
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel1.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(786, 552);
+ this.kryptonPanel1.TabIndex = 3;
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
+ this.kryptonGroupBox2.CaptionOverlap = 0D;
+ this.kryptonGroupBox2.CaptionStyle = ComponentFactory.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";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.dataGridView);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(786, 421);
+ this.kryptonGroupBox2.TabIndex = 6;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ 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.Location = new System.Drawing.Point(0, 0);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ this.dataGridView.RowHeadersWidth = 100;
+ this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView.Size = new System.Drawing.Size(782, 417);
+ this.dataGridView.TabIndex = 3;
+ //
+ // frmCleanMode
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(786, 552);
+ this.Controls.Add(this.kryptonPanel1);
+ this.Name = "frmCleanMode";
+ this.Text = "frmCleanMode";
+ this.Load += new System.EventHandler(this.frmCleanMode_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #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 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 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;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmCleanMode.cs b/CleanMachineHMI/forms/frmCleanMode.cs
new file mode 100644
index 0000000..8408364
--- /dev/null
+++ b/CleanMachineHMI/forms/frmCleanMode.cs
@@ -0,0 +1,199 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.forms
+{
+ public partial class frmCleanMode : KryptonForm
+ {
+ private DataTable _InfoLanguageTextList;
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+
+ public frmCleanMode()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+
+ }
+ protected override CreateParams CreateParams
+ {
+ get
+ {
+ CreateParams cp = base.CreateParams;
+ cp.ExStyle |= 0x02000000;
+ return cp;
+ }
+ }
+
+ public void Init()
+ {
+ var sql = $@"select CLEAN_MODE_ID 序号,CLEAN_MODE_CODE 清洁方式编码,CLEAN_MODE_NAME 清洁方式名称,CREATE_TIME 创建时间 from BAS_CLEAN_MODE where DEL_FLAG=0";
+ if (!string.IsNullOrEmpty(ktb_CleanModeCode.Text))
+ {
+ sql += $" AND CLEAN_MODE_CODE LIKE '%{ktb_CleanModeCode.Text}%'";
+ }
+ if (!string.IsNullOrEmpty(ktb_CleanModeName.Text))
+ {
+ sql += $" AND CLEAN_MODE_NAME LIKE '%{ktb_CleanModeName.Text}%'";
+ }
+ if (kdtp_CreateStartTime.Checked)
+ {
+ sql += $" AND CREATE_TIME >= '{kdtp_CreateStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (kdtp_CreateEndTime.Checked)
+ {
+ sql += $" AND CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_CleanModeCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_CleanModeCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ ktb_CleanModeName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_CleanModeName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmCleanMode_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox2.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载清洁方式界面发生异常", "LoadFrmCleanModeExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询清洁方式数据发生异常", "QueryCleanModeData") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_CleanModeCode.Text = "";
+ ktb_CleanModeName.Text = "";
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ }
+
+ private void kbt_Add_Click(object sender, EventArgs e)
+ {
+ frmAddCleanCode frm = new frmAddCleanCode();
+ frm.ShowDialog();
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmEditCleanCode frm = new frmEditCleanCode();
+ frm.CleanModeId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的清洗方式数据行!", "SelectWantToEditRow"));
+ }
+ }
+
+ private void kbt_Delete_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的清洗方式数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ if (dr == DialogResult.OK)
+ {
+ string CleanModeId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ string sql = $@"DELETE FROM BAS_CLEAN_MODE WHERE CLEAN_MODE_ID = '{CleanModeId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除清洗方式数据成功!", "DeleteSuccessInfo"));
+ RefreshFrmHost();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除清洗方式数据失败!", "DeleteFailInfo"));
+ }
+ }
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的清洗方式数据行!", "SelectWantToDeleteRow"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除清洁方式数据发生异常", "DeleteCleanModeDataExp") + $":【{ex.Message}】!");
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/forms/frmCleanMode.resx b/CleanMachineHMI/forms/frmCleanMode.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/forms/frmCleanMode.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmContaminationDTL.Designer.cs b/CleanMachineHMI/forms/frmContaminationDTL.Designer.cs
new file mode 100644
index 0000000..53bc565
--- /dev/null
+++ b/CleanMachineHMI/forms/frmContaminationDTL.Designer.cs
@@ -0,0 +1,390 @@
+namespace CleanMachineHMI.forms
+{
+ partial class frmContaminationDTL
+ {
+ ///
+ /// 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.kryptonGroupBox1 = new ComponentFactory.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.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();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_ContaminationType)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
+ this.kryptonPanel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit();
+ this.kryptonPanel3.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(786, 131);
+ this.kryptonGroupBox1.TabIndex = 0;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 5;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 4, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Delete, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 3, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Add, 0, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(211, 78);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(561, 41);
+ this.tableLayoutPanel2.TabIndex = 10;
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(451, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(107, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(115, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // kbt_Delete
+ //
+ this.kbt_Delete.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Delete.Location = new System.Drawing.Point(227, 3);
+ this.kbt_Delete.Name = "kbt_Delete";
+ this.kbt_Delete.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Delete.TabIndex = 0;
+ this.kbt_Delete.Values.Text = "删除";
+ this.kbt_Delete.Click += new System.EventHandler(this.kbt_Delete_Click);
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(339, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kbt_Add
+ //
+ this.kbt_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Add.Location = new System.Drawing.Point(3, 3);
+ this.kbt_Add.Name = "kbt_Add";
+ this.kbt_Add.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Add.TabIndex = 0;
+ this.kbt_Add.Values.Text = "新增";
+ this.kbt_Add.Click += new System.EventHandler(this.kbt_Add_Click);
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 220F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 130F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_ContaminationDtlMsg, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kcmb_ContaminationType, 3, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(782, 72);
+ this.tableLayoutPanel1.TabIndex = 9;
+ //
+ // kdtp_CreateEndTime
+ //
+ this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateEndTime.Location = new System.Drawing.Point(569, 43);
+ this.kdtp_CreateEndTime.Name = "kdtp_CreateEndTime";
+ this.kdtp_CreateEndTime.ShowCheckBox = true;
+ this.kdtp_CreateEndTime.Size = new System.Drawing.Size(210, 21);
+ this.kdtp_CreateEndTime.TabIndex = 7;
+ //
+ // kdtp_CreateStartTime
+ //
+ this.kdtp_CreateStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateStartTime.Location = new System.Drawing.Point(223, 43);
+ this.kdtp_CreateStartTime.Name = "kdtp_CreateStartTime";
+ this.kdtp_CreateStartTime.ShowCheckBox = true;
+ this.kdtp_CreateStartTime.Size = new System.Drawing.Size(210, 21);
+ this.kdtp_CreateStartTime.TabIndex = 7;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(214, 30);
+ this.kryptonLabel2.TabIndex = 4;
+ this.kryptonLabel2.Values.Text = "污染明细信息:";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(489, 44);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 4;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // ktb_ContaminationDtlMsg
+ //
+ this.ktb_ContaminationDtlMsg.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_ContaminationDtlMsg.Location = new System.Drawing.Point(223, 6);
+ this.ktb_ContaminationDtlMsg.Name = "ktb_ContaminationDtlMsg";
+ this.ktb_ContaminationDtlMsg.Size = new System.Drawing.Size(210, 23);
+ this.ktb_ContaminationDtlMsg.TabIndex = 5;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(3, 39);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(214, 30);
+ this.kryptonLabel4.TabIndex = 4;
+ this.kryptonLabel4.Values.Text = "创建时间:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(439, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(124, 30);
+ this.kryptonLabel3.TabIndex = 4;
+ this.kryptonLabel3.Values.Text = "污染类型:";
+ //
+ // kcmb_ContaminationType
+ //
+ this.kcmb_ContaminationType.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kcmb_ContaminationType.DropDownWidth = 246;
+ this.kcmb_ContaminationType.Location = new System.Drawing.Point(569, 7);
+ this.kcmb_ContaminationType.Name = "kcmb_ContaminationType";
+ this.kcmb_ContaminationType.Size = new System.Drawing.Size(210, 21);
+ this.kcmb_ContaminationType.TabIndex = 8;
+ //
+ // kryptonPanel2
+ //
+ this.kryptonPanel2.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel2.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel2.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel2.Name = "kryptonPanel2";
+ this.kryptonPanel2.Size = new System.Drawing.Size(786, 552);
+ this.kryptonPanel2.TabIndex = 3;
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
+ this.kryptonGroupBox2.CaptionOverlap = 0D;
+ this.kryptonGroupBox2.CaptionStyle = ComponentFactory.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";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.dataGridView);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(786, 421);
+ this.kryptonGroupBox2.TabIndex = 7;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
+ 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.Location = new System.Drawing.Point(0, 0);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ this.dataGridView.RowHeadersWidth = 100;
+ this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView.Size = new System.Drawing.Size(782, 417);
+ this.dataGridView.TabIndex = 3;
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kryptonPanel3);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(786, 552);
+ this.kryptonPanel1.TabIndex = 4;
+ //
+ // kryptonPanel3
+ //
+ this.kryptonPanel3.Controls.Add(this.kryptonPanel2);
+ this.kryptonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel3.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel3.Name = "kryptonPanel3";
+ this.kryptonPanel3.Size = new System.Drawing.Size(786, 552);
+ this.kryptonPanel3.TabIndex = 1;
+ //
+ // frmContaminationDTL
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(786, 552);
+ this.Controls.Add(this.kryptonPanel1);
+ this.Name = "frmContaminationDTL";
+ this.Text = "frmContaminationDTL";
+ this.Load += new System.EventHandler(this.frmContaminationDTL_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_ContaminationType)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
+ this.kryptonPanel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).EndInit();
+ this.kryptonPanel3.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #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 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 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;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmContaminationDTL.cs b/CleanMachineHMI/forms/frmContaminationDTL.cs
new file mode 100644
index 0000000..43e9710
--- /dev/null
+++ b/CleanMachineHMI/forms/frmContaminationDTL.cs
@@ -0,0 +1,204 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.Web.UI.WebControls;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.forms
+{
+ public partial class frmContaminationDTL : KryptonForm
+ {
+ private DataTable _InfoLanguageTextList;
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+
+ public frmContaminationDTL()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+
+ public void Init()
+ {
+ var sql = $@"SELECT A.CONTAMINATION_DTL_ID 序号,B.CONTAMINATION_TYPE_CODE 污染类型编码,B.CONTAMINATION_TYPE_NAME 污染类型名称,A.CONTAMINATION_DTL_CODE 污染明细编码,A.CONTAMINATION_DTL_NAME 污染明细名称,A.CREATE_TIME 创建时间 FROM BAS_CONTAMINATION_DTL A LEFT JOIN BAS_CONTAMINATION_TYPE B ON A.CONTAMINATION_TYPE_CODE = B.CONTAMINATION_TYPE_CODE WHERE 1=1 ";
+ if (!string.IsNullOrEmpty(ktb_ContaminationDtlMsg.Text))
+ {
+ sql += $" AND (A.CONTAMINATION_DTL_CODE LIKE '%{ktb_ContaminationDtlMsg.Text}%' or A.CONTAMINATION_DTL_NAME LIKE '%{ktb_ContaminationDtlMsg.Text}%')";
+ }
+ if (kcmb_ContaminationType.SelectedIndex != 0)
+ {
+ sql += $" AND B.CONTAMINATION_TYPE_CODE = '{((ListItem)kcmb_ContaminationType.SelectedItem).Value}'";
+ }
+ if (kdtp_CreateStartTime.Checked)
+ {
+ sql += $" AND A.CREATE_TIME >= '{kdtp_CreateStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (kdtp_CreateEndTime.Checked)
+ {
+ sql += $" AND A.CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_ContaminationDtlMsg.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_ContaminationDtlMsg.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ }
+
+ private void frmContaminationDTL_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ string sql = $@"select CONTAMINATION_TYPE_CODE,CONTAMINATION_TYPE_NAME from BAS_CONTAMINATION_TYPE where DEL_FLAG=0";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ kcmb_ContaminationType.Items.Add(new ListItem
+ {
+ Value = "0",
+ Text = "Please Select",
+ });
+ foreach (DataRow item in dt.Rows)
+ {
+ kcmb_ContaminationType.Items.Add(new ListItem
+ {
+ Value = item["CONTAMINATION_TYPE_CODE"].ToString(),
+ Text = item["CONTAMINATION_TYPE_NAME"].ToString(),
+ });
+ }
+ kcmb_ContaminationType.SelectedIndex = 0;
+ }
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox2.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载污染明细界面发生异常", "LoadContaminationDTLExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询污染明细数据发生异常", "QueryContaminationDTLData") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_ContaminationDtlMsg.Text = "";
+ kcmb_ContaminationType.SelectedIndex = 0;
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ }
+
+ private void kbt_Add_Click(object sender, EventArgs e)
+ {
+ frmAddContaminationDtl frm = new frmAddContaminationDtl();
+ frm.ShowDialog();
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmEditContaminationDtl frm = new frmEditContaminationDtl();
+ frm.ContaminationDtlId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的污染明细数据行!", "SelectWantToEditRow"));
+ }
+ }
+
+ private void kbt_Delete_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的污染明细数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ if (dr == DialogResult.OK)
+ {
+ string ContaminationDtlId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ string sql = $@"DELETE FROM BAS_CONTAMINATION_DTL WHERE CONTAMINATION_DTL_ID = '{ContaminationDtlId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染明细数据成功!", "DeleteSuccessInfo"));
+ RefreshFrmHost();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染明细数据失败!", "DeleteFailInfo"));
+ }
+ }
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的污染明细数据行!", "SelectWantToDeleteRow"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染明细数据发生异常", "DeleteContaminationDTLDataExp") + $":【{ex.Message}】!");
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/forms/frmContaminationDTL.resx b/CleanMachineHMI/forms/frmContaminationDTL.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/forms/frmContaminationDTL.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmContaminationType.Designer.cs b/CleanMachineHMI/forms/frmContaminationType.Designer.cs
new file mode 100644
index 0000000..1d08d9a
--- /dev/null
+++ b/CleanMachineHMI/forms/frmContaminationType.Designer.cs
@@ -0,0 +1,390 @@
+namespace CleanMachineHMI.forms
+{
+ partial class frmContaminationType
+ {
+ ///
+ /// 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.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.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.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();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit();
+ this.kryptonPanel3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
+ this.kryptonPanel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_CleanMode)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonPanel3
+ //
+ this.kryptonPanel3.Controls.Add(this.kryptonPanel2);
+ this.kryptonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel3.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel3.Name = "kryptonPanel3";
+ this.kryptonPanel3.Size = new System.Drawing.Size(786, 552);
+ this.kryptonPanel3.TabIndex = 1;
+ //
+ // kryptonPanel2
+ //
+ this.kryptonPanel2.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel2.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel2.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel2.Name = "kryptonPanel2";
+ this.kryptonPanel2.Size = new System.Drawing.Size(786, 552);
+ this.kryptonPanel2.TabIndex = 3;
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
+ this.kryptonGroupBox2.CaptionOverlap = 0D;
+ this.kryptonGroupBox2.CaptionStyle = ComponentFactory.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";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.dataGridView);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(786, 423);
+ this.kryptonGroupBox2.TabIndex = 6;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
+ 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.Location = new System.Drawing.Point(0, 0);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ this.dataGridView.RowHeadersWidth = 100;
+ this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView.Size = new System.Drawing.Size(782, 419);
+ this.dataGridView.TabIndex = 3;
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(786, 129);
+ this.kryptonGroupBox1.TabIndex = 0;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 5;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 4, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Delete, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 3, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Add, 0, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(220, 76);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(561, 41);
+ this.tableLayoutPanel2.TabIndex = 8;
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(451, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(107, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(115, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // kbt_Delete
+ //
+ this.kbt_Delete.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Delete.Location = new System.Drawing.Point(227, 3);
+ this.kbt_Delete.Name = "kbt_Delete";
+ this.kbt_Delete.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Delete.TabIndex = 0;
+ this.kbt_Delete.Values.Text = "删除";
+ this.kbt_Delete.Click += new System.EventHandler(this.kbt_Delete_Click);
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(339, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kbt_Add
+ //
+ this.kbt_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Add.Location = new System.Drawing.Point(3, 3);
+ this.kbt_Add.Name = "kbt_Add";
+ this.kbt_Add.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Add.TabIndex = 0;
+ this.kbt_Add.Values.Text = "新增";
+ this.kbt_Add.Click += new System.EventHandler(this.kbt_Add_Click);
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 220F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 100F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_ContaminationTypeMsg, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kcmb_CleanMode, 3, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(782, 72);
+ this.tableLayoutPanel1.TabIndex = 7;
+ //
+ // kdtp_CreateEndTime
+ //
+ this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateEndTime.Location = new System.Drawing.Point(561, 43);
+ this.kdtp_CreateEndTime.Name = "kdtp_CreateEndTime";
+ this.kdtp_CreateEndTime.ShowCheckBox = true;
+ this.kdtp_CreateEndTime.Size = new System.Drawing.Size(210, 21);
+ this.kdtp_CreateEndTime.TabIndex = 7;
+ //
+ // kdtp_CreateStartTime
+ //
+ this.kdtp_CreateStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateStartTime.Location = new System.Drawing.Point(230, 43);
+ this.kdtp_CreateStartTime.Name = "kdtp_CreateStartTime";
+ this.kdtp_CreateStartTime.ShowCheckBox = true;
+ this.kdtp_CreateStartTime.Size = new System.Drawing.Size(210, 21);
+ this.kdtp_CreateStartTime.TabIndex = 7;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(214, 30);
+ this.kryptonLabel2.TabIndex = 4;
+ this.kryptonLabel2.Values.Text = "污染类型信息:";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(489, 44);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 4;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // ktb_ContaminationTypeMsg
+ //
+ this.ktb_ContaminationTypeMsg.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_ContaminationTypeMsg.Location = new System.Drawing.Point(230, 6);
+ this.ktb_ContaminationTypeMsg.Name = "ktb_ContaminationTypeMsg";
+ this.ktb_ContaminationTypeMsg.Size = new System.Drawing.Size(210, 23);
+ this.ktb_ContaminationTypeMsg.TabIndex = 5;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(3, 39);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(214, 30);
+ this.kryptonLabel4.TabIndex = 4;
+ this.kryptonLabel4.Values.Text = "创建时间:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(454, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(94, 30);
+ this.kryptonLabel3.TabIndex = 4;
+ this.kryptonLabel3.Values.Text = "清洁方式:";
+ //
+ // kcmb_CleanMode
+ //
+ this.kcmb_CleanMode.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kcmb_CleanMode.DropDownWidth = 246;
+ this.kcmb_CleanMode.Location = new System.Drawing.Point(561, 7);
+ this.kcmb_CleanMode.Name = "kcmb_CleanMode";
+ this.kcmb_CleanMode.Size = new System.Drawing.Size(210, 21);
+ this.kcmb_CleanMode.TabIndex = 8;
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kryptonPanel3);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(786, 552);
+ this.kryptonPanel1.TabIndex = 3;
+ //
+ // frmContaminationType
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(786, 552);
+ this.Controls.Add(this.kryptonPanel1);
+ this.Name = "frmContaminationType";
+ this.Text = "frmContaminationType";
+ this.Load += new System.EventHandler(this.frmContaminationType_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).EndInit();
+ this.kryptonPanel3.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
+ this.kryptonPanel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_CleanMode)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #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 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 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;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmContaminationType.cs b/CleanMachineHMI/forms/frmContaminationType.cs
new file mode 100644
index 0000000..07ccfb9
--- /dev/null
+++ b/CleanMachineHMI/forms/frmContaminationType.cs
@@ -0,0 +1,215 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.Web.UI.WebControls;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.forms
+{
+ public partial class frmContaminationType : KryptonForm
+ {
+ private DataTable _InfoLanguageTextList;
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+
+ public frmContaminationType()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+
+ protected override CreateParams CreateParams
+ {
+ get
+ {
+ CreateParams cp = base.CreateParams;
+ cp.ExStyle |= 0x02000000;
+ return cp;
+ }
+ }
+
+ public void Init()
+ {
+ var sql = $@"SELECT A.CONTAMINATION_TYPE_ID 序号,B.CLEAN_MODE_CODE 清洁方式编码,B.CLEAN_MODE_NAME 清洁方式名称,A.CONTAMINATION_TYPE_CODE 污染类型编码,A.CONTAMINATION_TYPE_NAME 污染类型名称,A.CREATE_TIME 创建时间 FROM BAS_CONTAMINATION_TYPE A LEFT JOIN BAS_CLEAN_MODE B ON A.CLEAN_MODE_CODE = B.CLEAN_MODE_CODE Where 1=1";
+ if (!string.IsNullOrEmpty(ktb_ContaminationTypeMsg.Text))
+ {
+ sql += $" AND (A.CONTAMINATION_TYPE_CODE LIKE '%{ktb_ContaminationTypeMsg.Text}%' or A.CONTAMINATION_TYPE_NAME LIKE '%{ktb_ContaminationTypeMsg.Text}%')";
+ }
+ if (kcmb_CleanMode.SelectedIndex != 0)
+ {
+ sql += $" AND B.CLEAN_MODE_CODE = '{((ListItem)kcmb_CleanMode.SelectedItem).Value}'";
+ }
+ if (kdtp_CreateStartTime.Checked)
+ {
+ sql += $" AND A.CREATE_TIME >= '{kdtp_CreateStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (kdtp_CreateEndTime.Checked)
+ {
+ sql += $" AND A.CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_ContaminationTypeMsg.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_ContaminationTypeMsg.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ }
+
+ private void frmContaminationType_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ string sql = $@"select CLEAN_MODE_CODE,CLEAN_MODE_NAME from BAS_CLEAN_MODE where DEL_FLAG=0";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ kcmb_CleanMode.Items.Add(new ListItem
+ {
+ Value = "0",
+ Text = "Please Select",
+ });
+ foreach (DataRow item in dt.Rows)
+ {
+ kcmb_CleanMode.Items.Add(new ListItem
+ {
+ Value = item["CLEAN_MODE_CODE"].ToString(),
+ Text = item["CLEAN_MODE_NAME"].ToString(),
+ });
+ }
+ kcmb_CleanMode.SelectedIndex = 0;
+ }
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox2.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载污染类型界面发生异常", "LoadContaminationTypeExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询污染类型数据发生异常", "QueryContaminationTypeData") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_ContaminationTypeMsg.Text = "";
+ kcmb_CleanMode.SelectedIndex = 0;
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ }
+
+ private void kbt_Add_Click(object sender, EventArgs e)
+ {
+ frmAddContaminationType frm = new frmAddContaminationType();
+ frm.ShowDialog();
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmEditContaminationType frm = new frmEditContaminationType();
+ frm.ContaminationId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的污染类型数据行!", "SelectWantToEditRow"));
+ }
+ }
+
+ private void kbt_Delete_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的污染类型数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ if (dr == DialogResult.OK)
+ {
+ string ContaminationId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ string sql = $@"DELETE FROM BAS_CONTAMINATION_TYPE WHERE CONTAMINATION_TYPE_ID = '{ContaminationId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染类型数据成功!", "DeleteSuccessInfo"));
+ RefreshFrmHost();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染类型数据失败!", "DeleteFailInfo"));
+ }
+ }
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的污染类型数据行!", "SelectWantToDeleteRow"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染类型数据发生异常", "DeleteContaminationTypeDataExp") + $":【{ex.Message}】!");
+ }
+ }
+ }
+
+}
diff --git a/CleanMachineHMI/forms/frmContaminationType.resx b/CleanMachineHMI/forms/frmContaminationType.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/forms/frmContaminationType.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmDataSearch.Designer.cs b/CleanMachineHMI/forms/frmDataSearch.Designer.cs
new file mode 100644
index 0000000..c5f24a0
--- /dev/null
+++ b/CleanMachineHMI/forms/frmDataSearch.Designer.cs
@@ -0,0 +1,100 @@
+namespace CleanMachineHMI.forms
+{
+ partial class frmDataSearch
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.btnWork = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.navigatorMain = new ComponentFactory.Krypton.Navigator.KryptonNavigator();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.navigatorMain)).BeginInit();
+ this.navigatorMain.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.btnWork);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Left;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(321, 715);
+ this.kryptonPanel1.TabIndex = 5;
+ //
+ // btnWork
+ //
+ this.btnWork.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.btnWork.Location = new System.Drawing.Point(26, 302);
+ this.btnWork.Name = "btnWork";
+ this.btnWork.Size = new System.Drawing.Size(265, 73);
+ this.btnWork.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnWork.TabIndex = 9;
+ this.btnWork.Values.Text = "历史作业表";
+ this.btnWork.Click += new System.EventHandler(this.btnCleanMode_Click);
+ //
+ // 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.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.Size = new System.Drawing.Size(837, 715);
+ this.navigatorMain.TabIndex = 6;
+ this.navigatorMain.Text = "kryptonNavigator1";
+ //
+ // frmDataSearch
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1158, 715);
+ this.Controls.Add(this.navigatorMain);
+ this.Controls.Add(this.kryptonPanel1);
+ this.Name = "frmDataSearch";
+ this.Text = "frmDataSearch";
+ this.Shown += new System.EventHandler(this.frmDataSearch_Shown);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.navigatorMain)).EndInit();
+ this.navigatorMain.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnWork;
+ public ComponentFactory.Krypton.Navigator.KryptonNavigator navigatorMain;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmDataSearch.cs b/CleanMachineHMI/forms/frmDataSearch.cs
new file mode 100644
index 0000000..bc53527
--- /dev/null
+++ b/CleanMachineHMI/forms/frmDataSearch.cs
@@ -0,0 +1,33 @@
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+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.forms
+{
+ public partial class frmDataSearch : KryptonForm
+ {
+ public frmDataSearch()
+ {
+ InitializeComponent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ }
+
+ private void btnCleanMode_Click(object sender, EventArgs e)
+ {
+ //this.navigatorMain.SetNavPage(Domain.Enums.EnumFormType.WorkingPallet);
+ }
+
+ private void frmDataSearch_Shown(object sender, EventArgs e)
+ {
+ //this.navigatorMain.SetNavPage(Domain.Enums.EnumFormType.WorkingPallet);
+ }
+ }
+}
diff --git a/CleanMachineHMI/forms/frmDataSearch.resx b/CleanMachineHMI/forms/frmDataSearch.resx
new file mode 100644
index 0000000..0d0d798
--- /dev/null
+++ b/CleanMachineHMI/forms/frmDataSearch.resx
@@ -0,0 +1,132 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmParamater.Designer.cs b/CleanMachineHMI/forms/frmParamater.Designer.cs
new file mode 100644
index 0000000..885d452
--- /dev/null
+++ b/CleanMachineHMI/forms/frmParamater.Designer.cs
@@ -0,0 +1,325 @@
+namespace CleanMachineHMI.forms
+{
+ partial class frmParamater
+ {
+ ///
+ /// 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.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.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.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.tableLayoutPanel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3.Panel)).BeginInit();
+ this.kryptonGroupBox3.Panel.SuspendLayout();
+ this.kryptonGroupBox3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
+ this.kryptonPanel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4.Panel)).BeginInit();
+ this.kryptonGroupBox4.Panel.SuspendLayout();
+ this.kryptonGroupBox4.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(550, 44);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 4;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // ktb_ParamaterCode
+ //
+ this.ktb_ParamaterCode.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_ParamaterCode.Location = new System.Drawing.Point(188, 6);
+ this.ktb_ParamaterCode.Name = "ktb_ParamaterCode";
+ this.ktb_ParamaterCode.Size = new System.Drawing.Size(246, 23);
+ this.ktb_ParamaterCode.TabIndex = 5;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(3, 39);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel4.TabIndex = 4;
+ this.kryptonLabel4.Values.Text = "创建时间:";
+ //
+ // ktb_ParamaterName
+ //
+ this.ktb_ParamaterName.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_ParamaterName.Location = new System.Drawing.Point(690, 6);
+ this.ktb_ParamaterName.Name = "ktb_ParamaterName";
+ this.ktb_ParamaterName.Size = new System.Drawing.Size(246, 23);
+ this.ktb_ParamaterName.TabIndex = 5;
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 3;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 0, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(658, 78);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(346, 41);
+ this.tableLayoutPanel2.TabIndex = 6;
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(233, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(110, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(118, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(109, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(3, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(109, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // kdtp_CreateEndTime
+ //
+ this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateEndTime.Location = new System.Drawing.Point(690, 43);
+ this.kdtp_CreateEndTime.Name = "kdtp_CreateEndTime";
+ this.kdtp_CreateEndTime.ShowCheckBox = true;
+ this.kdtp_CreateEndTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateEndTime.TabIndex = 7;
+ //
+ // kdtp_CreateStartTime
+ //
+ this.kdtp_CreateStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateStartTime.Location = new System.Drawing.Point(188, 43);
+ this.kdtp_CreateStartTime.Name = "kdtp_CreateStartTime";
+ this.kdtp_CreateStartTime.ShowCheckBox = true;
+ this.kdtp_CreateStartTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateStartTime.TabIndex = 7;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel2.TabIndex = 4;
+ this.kryptonLabel2.Values.Text = "参数编码:";
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_ParamaterCode, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_ParamaterName, 3, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(1004, 72);
+ this.tableLayoutPanel1.TabIndex = 5;
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(505, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel3.TabIndex = 4;
+ this.kryptonLabel3.Values.Text = "参数名称:";
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ 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.Location = new System.Drawing.Point(0, 0);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ this.dataGridView.RowHeadersWidth = 100;
+ this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView.Size = new System.Drawing.Size(1004, 498);
+ this.dataGridView.TabIndex = 3;
+ //
+ // kryptonGroupBox3
+ //
+ this.kryptonGroupBox3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
+ this.kryptonGroupBox3.CaptionOverlap = 0D;
+ this.kryptonGroupBox3.CaptionStyle = ComponentFactory.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";
+ //
+ // kryptonGroupBox3.Panel
+ //
+ this.kryptonGroupBox3.Panel.Controls.Add(this.dataGridView);
+ this.kryptonGroupBox3.Size = new System.Drawing.Size(1008, 502);
+ this.kryptonGroupBox3.TabIndex = 6;
+ this.kryptonGroupBox3.Values.Heading = "";
+ //
+ // kryptonPanel2
+ //
+ this.kryptonPanel2.Controls.Add(this.kryptonGroupBox3);
+ this.kryptonPanel2.Controls.Add(this.kryptonGroupBox4);
+ this.kryptonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel2.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel2.Name = "kryptonPanel2";
+ this.kryptonPanel2.Size = new System.Drawing.Size(1008, 633);
+ this.kryptonPanel2.TabIndex = 6;
+ //
+ // kryptonGroupBox4
+ //
+ this.kryptonGroupBox4.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox4.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox4.Name = "kryptonGroupBox4";
+ //
+ // kryptonGroupBox4.Panel
+ //
+ this.kryptonGroupBox4.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox4.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox4.Size = new System.Drawing.Size(1008, 131);
+ this.kryptonGroupBox4.TabIndex = 0;
+ this.kryptonGroupBox4.Values.Heading = "";
+ //
+ // frmParamater
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1008, 633);
+ this.Controls.Add(this.kryptonPanel2);
+ this.Name = "frmParamater";
+ this.Text = "frmParamater";
+ this.Load += new System.EventHandler(this.frmParamater_Load);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3.Panel)).EndInit();
+ this.kryptonGroupBox3.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3)).EndInit();
+ this.kryptonGroupBox3.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
+ this.kryptonPanel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4.Panel)).EndInit();
+ this.kryptonGroupBox4.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox4)).EndInit();
+ this.kryptonGroupBox4.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #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 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 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;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmParamater.cs b/CleanMachineHMI/forms/frmParamater.cs
new file mode 100644
index 0000000..52c299f
--- /dev/null
+++ b/CleanMachineHMI/forms/frmParamater.cs
@@ -0,0 +1,149 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.forms
+{
+ public partial class frmParamater : KryptonForm
+ {
+ private DataTable _InfoLanguageTextList;
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+
+ public frmParamater()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+
+
+ public void Init()
+ {
+ var sql = $@"select PARAMETER_ID 序号,PARAMETER_CODE 参数编码,PARAMETER_NAME 参数名称,PARAMETER_VALUE 参数值,CREATE_TIME 创建时间 from SYS_PARAMETER where USED_FLAG=1 and DEL_FLAG=0 ";
+ if (!string.IsNullOrEmpty(ktb_ParamaterCode.Text))
+ {
+ sql += $" AND PARAMETER_CODE LIKE '%{ktb_ParamaterCode.Text}%'";
+ }
+ if (!string.IsNullOrEmpty(ktb_ParamaterName.Text))
+ {
+ sql += $" AND PARAMETER_NAME LIKE '%{ktb_ParamaterName.Text}%'";
+ }
+ if (kdtp_CreateStartTime.Checked)
+ {
+ sql += $" AND CREATE_TIME >= '{kdtp_CreateStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (kdtp_CreateEndTime.Checked)
+ {
+ sql += $" AND CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+
+
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_ParamaterCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_ParamaterCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ ktb_ParamaterName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_ParamaterName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmParamater_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox3.Focus();
+ }
+ catch(Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载系统参数界面发生异常", "LoadSysParamaterExp") + $":【{ex.Message}】!");
+
+ }
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询系统参数数据发生异常", "QuerySysParamaterData") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_ParamaterCode.Text = "";
+ ktb_ParamaterName.Text = "";
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmEditParamater frm = new frmEditParamater();
+ frm.ParamaterId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的参数信息数据行!", "SelectWantToEditRow"));
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/forms/frmParamater.resx b/CleanMachineHMI/forms/frmParamater.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/forms/frmParamater.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmRole.Designer.cs b/CleanMachineHMI/forms/frmRole.Designer.cs
new file mode 100644
index 0000000..a3bb48b
--- /dev/null
+++ b/CleanMachineHMI/forms/frmRole.Designer.cs
@@ -0,0 +1,413 @@
+namespace CleanMachineHMI.forms
+{
+ partial class frmRole
+ {
+ ///
+ /// 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.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ 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.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.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_roleGrade)).BeginInit();
+ this.tableLayoutPanel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel6)).BeginInit();
+ this.kryptonPanel6.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // dataGridViewTextBoxColumn1
+ //
+ this.dataGridViewTextBoxColumn1.HeaderText = "报警消息";
+ this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
+ this.dataGridViewTextBoxColumn1.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn3
+ //
+ this.dataGridViewTextBoxColumn3.HeaderText = "报警名称";
+ this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
+ this.dataGridViewTextBoxColumn3.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn4
+ //
+ this.dataGridViewTextBoxColumn4.HeaderText = "报警编码";
+ this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
+ this.dataGridViewTextBoxColumn4.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn2
+ //
+ this.dataGridViewTextBoxColumn2.HeaderText = "报警类别";
+ this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
+ this.dataGridViewTextBoxColumn2.ReadOnly = true;
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kcmb_roleGrade, 3, 0);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_roleMsg, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(782, 72);
+ this.tableLayoutPanel1.TabIndex = 0;
+ //
+ // kdtp_CreateEndTime
+ //
+ this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateEndTime.Location = new System.Drawing.Point(523, 43);
+ this.kdtp_CreateEndTime.Name = "kdtp_CreateEndTime";
+ this.kdtp_CreateEndTime.ShowCheckBox = true;
+ this.kdtp_CreateEndTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateEndTime.TabIndex = 7;
+ //
+ // kdtp_CreateStartTime
+ //
+ this.kdtp_CreateStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateStartTime.Location = new System.Drawing.Point(132, 43);
+ this.kdtp_CreateStartTime.Name = "kdtp_CreateStartTime";
+ this.kdtp_CreateStartTime.ShowCheckBox = true;
+ this.kdtp_CreateStartTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateStartTime.TabIndex = 7;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel2.TabIndex = 4;
+ this.kryptonLabel2.Values.Text = "角色信息:";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(439, 44);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 4;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // kcmb_roleGrade
+ //
+ this.kcmb_roleGrade.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kcmb_roleGrade.DropDownWidth = 121;
+ this.kcmb_roleGrade.Items.AddRange(new object[] {
+ "请选择",
+ "管理员",
+ "普通用户"});
+ this.kcmb_roleGrade.Location = new System.Drawing.Point(523, 7);
+ this.kcmb_roleGrade.Name = "kcmb_roleGrade";
+ this.kcmb_roleGrade.Size = new System.Drawing.Size(246, 21);
+ this.kcmb_roleGrade.TabIndex = 6;
+ //
+ // ktb_roleMsg
+ //
+ this.ktb_roleMsg.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_roleMsg.Location = new System.Drawing.Point(132, 6);
+ this.ktb_roleMsg.Name = "ktb_roleMsg";
+ this.ktb_roleMsg.Size = new System.Drawing.Size(246, 23);
+ this.ktb_roleMsg.TabIndex = 5;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(3, 39);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel4.TabIndex = 4;
+ this.kryptonLabel4.Values.Text = "创建时间:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(394, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel3.TabIndex = 4;
+ this.kryptonLabel3.Values.Text = "角色级别:";
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(423, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(99, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kbt_Add
+ //
+ this.kbt_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Add.Location = new System.Drawing.Point(3, 3);
+ this.kbt_Add.Name = "kbt_Add";
+ this.kbt_Add.Size = new System.Drawing.Size(99, 35);
+ this.kbt_Add.TabIndex = 0;
+ this.kbt_Add.Values.Text = "新增";
+ this.kbt_Add.Click += new System.EventHandler(this.kbt_Add_Click);
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(528, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(100, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(108, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(99, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 6;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Add, 0, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 5, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 4, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Delete, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.ktb_setRoleMenuPermission, 3, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(148, 78);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(631, 41);
+ this.tableLayoutPanel2.TabIndex = 2;
+ //
+ // kbt_Delete
+ //
+ this.kbt_Delete.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Delete.Location = new System.Drawing.Point(213, 3);
+ this.kbt_Delete.Name = "kbt_Delete";
+ this.kbt_Delete.Size = new System.Drawing.Size(99, 35);
+ this.kbt_Delete.TabIndex = 0;
+ this.kbt_Delete.Values.Text = "删除";
+ this.kbt_Delete.Click += new System.EventHandler(this.kbt_Delete_Click);
+ //
+ // ktb_setRoleMenuPermission
+ //
+ this.ktb_setRoleMenuPermission.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.ktb_setRoleMenuPermission.Location = new System.Drawing.Point(318, 3);
+ this.ktb_setRoleMenuPermission.Name = "ktb_setRoleMenuPermission";
+ this.ktb_setRoleMenuPermission.Size = new System.Drawing.Size(99, 35);
+ this.ktb_setRoleMenuPermission.TabIndex = 0;
+ this.ktb_setRoleMenuPermission.Values.Text = "权限配置";
+ this.ktb_setRoleMenuPermission.Click += new System.EventHandler(this.ktb_setRoleMenuPermission_Click);
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(786, 129);
+ this.kryptonGroupBox2.TabIndex = 0;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
+ this.kryptonGroupBox1.CaptionOverlap = 0D;
+ this.kryptonGroupBox1.CaptionStyle = ComponentFactory.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";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.dataGridView);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(786, 423);
+ this.kryptonGroupBox1.TabIndex = 4;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ 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.Location = new System.Drawing.Point(0, 0);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ this.dataGridView.RowHeadersWidth = 100;
+ this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView.Size = new System.Drawing.Size(782, 419);
+ this.dataGridView.TabIndex = 3;
+ //
+ // kryptonPanel6
+ //
+ this.kryptonPanel6.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+ this.kryptonPanel6.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel6.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel6.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel6.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel6.Name = "kryptonPanel6";
+ this.kryptonPanel6.Size = new System.Drawing.Size(786, 552);
+ this.kryptonPanel6.TabIndex = 5;
+ //
+ // frmRole
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(786, 552);
+ this.Controls.Add(this.kryptonPanel6);
+ this.Name = "frmRole";
+ this.Text = "frmRole";
+ this.Load += new System.EventHandler(this.frmRole_Load);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_roleGrade)).EndInit();
+ this.tableLayoutPanel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel6)).EndInit();
+ this.kryptonPanel6.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
+ 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 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;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmRole.cs b/CleanMachineHMI/forms/frmRole.cs
new file mode 100644
index 0000000..191468e
--- /dev/null
+++ b/CleanMachineHMI/forms/frmRole.cs
@@ -0,0 +1,219 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.forms
+{
+ public partial class frmRole : KryptonForm
+ {
+ public frmRole()
+ {
+ InitializeComponent();
+ _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _ComboBoxLanguageTextList;
+ private DataTable _InfoLanguageTextList;
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+ public void Init()
+ {
+ var sql = $@"SELECT ROLE_ID 序号,ROLE_CODE 角色编码,ROLE_NAME 角色名称,CASE ROLE_GRADE WHEN '100' THEN 'Administrator' ELSE 'User' END 角色级别,CREATE_TIME 创建时间 FROM SYS_ROLE where DEL_FLAG = 0 ";
+ if (!string.IsNullOrEmpty(ktb_roleMsg.Text))
+ {
+ sql += $" And (ROLE_CODE like '%{ktb_roleMsg.Text}%' or ROLE_NAME like '%{ktb_roleMsg.Text}%')";
+ }
+ if (kcmb_roleGrade.SelectedIndex != 0)
+ {
+ if (kcmb_roleGrade.SelectedIndex == 1)
+ {
+ sql += $" AND ROLE_GRADE = '100'";
+ }
+ else
+ {
+ sql += $" AND ROLE_GRADE = '1'";
+ }
+ }
+ if (kdtp_CreateStartTime.Checked)
+ {
+ sql += $" AND CREATE_TIME >= '{kdtp_CreateStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (kdtp_CreateEndTime.Checked)
+ {
+ sql += $" AND CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_roleMsg.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_roleMsg.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ }
+ private void frmRole_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ kcmb_roleGrade.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_roleGrade.Name, "KryptonComboBox"))
+ {
+ kcmb_roleGrade.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ kcmb_roleGrade.SelectedIndex = 0;
+ }
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox2.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载角色信息界面发生异常", "LoadRoleMsgExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Add_Click(object sender, EventArgs e)
+ {
+ frmAddRole frm = new frmAddRole();
+ frm.ShowDialog();
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmEditRole frm = new frmEditRole();
+ frm.RoleId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的角色数据行!", "SelectWantToEditRow"));
+ }
+ }
+
+ private void kbt_Delete_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的角色信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ if (dr == DialogResult.OK)
+ {
+ string UserId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ string sqlIsExistAdmin = $@"SELECT 1 FROM SYS_ROLE WHERE ROLE_GRADE = '100' AND ROLE_ID = '{UserId}'";
+ DataTable dtIsExistAdmin = LeadDbHelperSQLite.Query(sqlIsExistAdmin).Tables[0];
+ if (dtIsExistAdmin != null && dtIsExistAdmin.Rows.Count > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("管理员角色不允许删除!", "DeleteAdminRoleInfo"));
+ return;
+ }
+ string sql = $@"DELETE FROM SYS_ROLE WHERE ROLE_ID = '{UserId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除角色数据成功!", "DeleteSuccessInfo"));
+ RefreshFrmHost();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除角色数据失败!", "DeleteFailInfo"));
+ }
+ }
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的角色数据行!", "SelectWantToDeleteRow"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除角色数据发生异常", "DeleteRoleDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询角色信息数据发生异常", "QueryRoleMsgData") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_roleMsg.Text = "";
+ kcmb_roleGrade.SelectedIndex = 0;
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ }
+
+ private void ktb_setRoleMenuPermission_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmSetRoleMenuPermission frm = new frmSetRoleMenuPermission();
+ frm.RoleId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要授权菜单权限的角色数据行!", "SelectWantToPermissionRow"));
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/forms/frmRole.resx b/CleanMachineHMI/forms/frmRole.resx
new file mode 100644
index 0000000..ecfd18c
--- /dev/null
+++ b/CleanMachineHMI/forms/frmRole.resx
@@ -0,0 +1,132 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmSchedule.Designer.cs b/CleanMachineHMI/forms/frmSchedule.Designer.cs
new file mode 100644
index 0000000..e7e0215
--- /dev/null
+++ b/CleanMachineHMI/forms/frmSchedule.Designer.cs
@@ -0,0 +1,326 @@
+namespace CleanMachineHMI.forms
+{
+ partial class frmSchedule
+ {
+ ///
+ /// 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.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();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit();
+ this.kryptonPanel3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
+ this.kryptonPanel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kryptonPanel3);
+ this.kryptonPanel1.Controls.Add(this.kryptonPanel2);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(1134, 797);
+ this.kryptonPanel1.TabIndex = 3;
+ //
+ // kryptonPanel3
+ //
+ this.kryptonPanel3.Controls.Add(this.dataGridView);
+ this.kryptonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel3.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel3.Name = "kryptonPanel3";
+ this.kryptonPanel3.Size = new System.Drawing.Size(650, 797);
+ this.kryptonPanel3.TabIndex = 1;
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ this.dataGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ 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.Location = new System.Drawing.Point(7, 9);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ 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.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)));
+ this.dataGridView.TabIndex = 4;
+ //
+ // kryptonPanel2
+ //
+ this.kryptonPanel2.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel2.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kryptonPanel2.Location = new System.Drawing.Point(650, 0);
+ this.kryptonPanel2.Name = "kryptonPanel2";
+ this.kryptonPanel2.Size = new System.Drawing.Size(484, 797);
+ this.kryptonPanel2.TabIndex = 0;
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)));
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(7, 5);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.mTxtEndTime);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.mTxtBeginTime);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.lbEnd);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.lbBegin);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.btnDeleted);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.btnSave);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.btnEdit);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.btnAdd);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.txtScheduleName);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.lbScheduleName);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.txtScheduleCode);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.lbScheduleCode);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(469, 785);
+ this.kryptonGroupBox1.TabIndex = 0;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // mTxtEndTime
+ //
+ this.mTxtEndTime.Location = new System.Drawing.Point(21, 303);
+ this.mTxtEndTime.Name = "mTxtEndTime";
+ this.mTxtEndTime.Size = new System.Drawing.Size(421, 27);
+ this.mTxtEndTime.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.mTxtEndTime.TabIndex = 18;
+ this.mTxtEndTime.Text = "00:00:00";
+ //
+ // mTxtBeginTime
+ //
+ this.mTxtBeginTime.Location = new System.Drawing.Point(20, 225);
+ this.mTxtBeginTime.Name = "mTxtBeginTime";
+ this.mTxtBeginTime.Size = new System.Drawing.Size(421, 27);
+ this.mTxtBeginTime.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.mTxtBeginTime.TabIndex = 17;
+ this.mTxtBeginTime.Text = "00:00:00";
+ //
+ // lbEnd
+ //
+ this.lbEnd.LabelStyle = ComponentFactory.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);
+ this.lbEnd.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbEnd.TabIndex = 16;
+ this.lbEnd.Values.Text = "结束时间:";
+ //
+ // lbBegin
+ //
+ this.lbBegin.LabelStyle = ComponentFactory.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);
+ this.lbBegin.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbBegin.TabIndex = 14;
+ this.lbBegin.Values.Text = "开始时间:";
+ //
+ // btnDeleted
+ //
+ this.btnDeleted.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnDeleted.Location = new System.Drawing.Point(350, 933);
+ this.btnDeleted.Name = "btnDeleted";
+ this.btnDeleted.Size = new System.Drawing.Size(92, 40);
+ this.btnDeleted.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnDeleted.TabIndex = 13;
+ this.btnDeleted.Values.Text = "删除";
+ this.btnDeleted.Click += new System.EventHandler(this.btnDeleted_Click);
+ //
+ // btnSave
+ //
+ this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnSave.Location = new System.Drawing.Point(240, 933);
+ this.btnSave.Name = "btnSave";
+ this.btnSave.Size = new System.Drawing.Size(92, 40);
+ this.btnSave.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnSave.TabIndex = 12;
+ this.btnSave.Values.Text = "保存";
+ this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
+ //
+ // btnEdit
+ //
+ this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnEdit.Location = new System.Drawing.Point(131, 933);
+ this.btnEdit.Name = "btnEdit";
+ this.btnEdit.Size = new System.Drawing.Size(92, 40);
+ this.btnEdit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnEdit.TabIndex = 11;
+ this.btnEdit.Values.Text = "编辑";
+ this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(20, 933);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(92, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 9;
+ this.btnAdd.Values.Text = "新增";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // txtScheduleName
+ //
+ 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.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.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)));
+ this.txtScheduleName.TabIndex = 4;
+ //
+ // lbScheduleName
+ //
+ this.lbScheduleName.LabelStyle = ComponentFactory.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);
+ this.lbScheduleName.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbScheduleName.TabIndex = 3;
+ this.lbScheduleName.Values.Text = "排班名称:";
+ //
+ // txtScheduleCode
+ //
+ 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.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.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)));
+ this.txtScheduleCode.TabIndex = 2;
+ //
+ // lbScheduleCode
+ //
+ this.lbScheduleCode.LabelStyle = ComponentFactory.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);
+ this.lbScheduleCode.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbScheduleCode.TabIndex = 1;
+ this.lbScheduleCode.Values.Text = "排班编码:";
+ //
+ // frmSchedule
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1134, 797);
+ this.Controls.Add(this.kryptonPanel1);
+ this.Name = "frmSchedule";
+ this.Text = "frmSchedule";
+ this.Load += new System.EventHandler(this.frmSchedule_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).EndInit();
+ this.kryptonPanel3.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
+ this.kryptonPanel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ this.kryptonGroupBox1.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #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;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmSchedule.cs b/CleanMachineHMI/forms/frmSchedule.cs
new file mode 100644
index 0000000..7731ce2
--- /dev/null
+++ b/CleanMachineHMI/forms/frmSchedule.cs
@@ -0,0 +1,215 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.forms
+{
+ public partial class frmSchedule : KryptonForm
+ {
+ private EnumOperateType _LastOperateType;
+
+ private DataTable _InfoLanguageTextList;
+
+ public frmSchedule()
+ {
+ InitializeComponent();
+ this.dataGridView.MouseClick += new MouseEventHandler(this.dataGridView_MouseClick);
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+
+ protected override CreateParams CreateParams
+ {
+ get
+ {
+ CreateParams cp = base.CreateParams;
+ cp.ExStyle |= 0x02000000;
+ return cp;
+ }
+ }
+
+ public void Init()
+ {
+ var sql = $@"select
+ ScheduleName = (select A.SCHEDULE_NAME from SYS_SCHEDULE_DTL A
+ where A.SCHEDULE_CODE=SYS_SCHEDULE_DTL.SCHEDULE_CODE),
+ BeginTime=CONVERT(varchar(100), BEGIN_TIME, 24),EndTime=CONVERT(varchar(100), END_TIME, 24),* from SYS_SCHEDULE_DTL where DEL_FLAG=0
+ ";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+
+ //修改列头
+ dataGridView.Columns["SCHEDULE_DTL_ID"].Visible = false;
+ dataGridView.Columns["USED_FLAG"].Visible = false;
+ dataGridView.Columns["DEL_FLAG"].Visible = false;
+ dataGridView.Columns["BEGIN_TIME"].Visible = false;
+ dataGridView.Columns["END_TIME"].Visible = false;
+ dataGridView.Columns["CREATE_BY"].Visible = false;
+ dataGridView.Columns["CREATE_TIME"].Visible = false;
+ dataGridView.Columns["UPDATE_BY"].Visible = false;
+ dataGridView.Columns["UPDATE_TIME"].Visible = false;
+ dataGridView.Columns["DATA_VERSION"].Visible = false;
+ dataGridView.Columns["REMARKS1"].Visible = false;
+ dataGridView.Columns["REMARKS2"].Visible = false;
+ dataGridView.Columns["REMARKS3"].Visible = false;
+ dataGridView.Columns["REMARKS4"].Visible = false;
+ dataGridView.Columns["REMARKS5"].Visible = false;
+
+ txtScheduleCode.Text = "";
+ txtScheduleCode.Enabled = false;
+ txtScheduleName.Text = "";
+ txtScheduleName.Enabled = false;
+ }
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ txtScheduleCode.Text = "";
+ txtScheduleName.Text = "";
+
+ txtScheduleCode.Enabled = true;
+ txtScheduleName.Enabled = true;
+ _LastOperateType = EnumOperateType.Add;
+ }
+
+ private void dataGridView_MouseClick(object sender, MouseEventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ SetRowContent(dataGridView.SelectedRows[0].Index);
+ }
+ }
+
+ private void SetRowContent(int rowIndex)
+ {
+ txtScheduleCode.Enabled = false;
+ txtScheduleName.Enabled = false;
+ mTxtBeginTime.Enabled = false;
+ mTxtEndTime.Enabled = false;
+
+ txtScheduleCode.Text = dataGridView.Rows[rowIndex].Cells["SCHEDULE_CODE"].Value.GetObjToString();
+ txtScheduleName.Text = dataGridView.Rows[rowIndex].Cells["ScheduleName"].Value.GetObjToString();
+
+ _LastOperateType = EnumOperateType.Select;
+ }
+
+ private void frmSchedule_Load(object sender, EventArgs e)
+ {
+ Init();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ }
+
+ private void btnEdit_Click(object sender, EventArgs e)
+ {
+ txtScheduleCode.Enabled = false;
+ txtScheduleName.Enabled = true;
+ mTxtBeginTime.Enabled = true;
+ mTxtEndTime.Enabled = true;
+ _LastOperateType = EnumOperateType.Edit;
+ }
+
+ private void btnDeleted_Click(object sender, EventArgs e)
+ {
+ _LastOperateType = EnumOperateType.Deleted;
+ btnSave_Click(null, null);
+ }
+
+ private void btnSave_Click(object sender, EventArgs e)
+ {
+ if (string.IsNullOrWhiteSpace(txtScheduleCode.Text))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入排班类型编码!", "PleaseInputCode"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ return;
+ }
+ if (string.IsNullOrWhiteSpace(txtScheduleName.Text))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入排班类型名称!", "PleaseInputName"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ return;
+ }
+
+ var sql = string.Empty;
+ if (_LastOperateType == EnumOperateType.Add)
+ {
+ sql = $@"select SCHEDULE_DTL_ID from SYS_SCHEDULE_DTL where DEL_FLAG=0 AND SCHEDULE_CODE='{txtScheduleCode.Text}'";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt.Rows.Count > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编码已存在,请输入其它编码!", "PleaseInputCodeExists"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ return;
+ }
+ }
+
+ int affterRow;
+ var now = DateTime.Now;
+ switch (_LastOperateType)
+ {
+ 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})";
+ affterRow = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (affterRow == 1)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增成功!", "AddSuccess"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ Init();
+ }
+ break;
+ case EnumOperateType.Edit:
+ 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}'" +
+ $"WHERE SCHEDULE_CODE='{txtScheduleCode.Text}'";
+ affterRow = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (affterRow == 1)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑成功!", "EditSuccess"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ Init();
+ }
+ break;
+ case EnumOperateType.Deleted:
+ sql = $@"UPDATE SYS_SCHEDULE_DTL SET DEL_FLAG='1',UPDATE_BY='{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME='{now}'" +
+ $"WHERE SCHEDULE_CODE='{txtScheduleCode.Text}'";
+ affterRow = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (affterRow == 1)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除成功!", "DeleteSuccess"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ Init();
+ }
+ break;
+ }
+ }
+
+ ///
+ /// 获取转换时间格式
+ ///
+ ///
+ ///
+ private string GetConverTimeFlag(string txt)
+ {
+ DateTime dt;
+ var time = DateTime.TryParse(txt,out dt);
+ if (!time)
+ {
+ return "";
+ }
+ else
+ {
+ return dt.ToString();
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/forms/frmSchedule.resx b/CleanMachineHMI/forms/frmSchedule.resx
new file mode 100644
index 0000000..f7d659c
--- /dev/null
+++ b/CleanMachineHMI/forms/frmSchedule.resx
@@ -0,0 +1,165 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmSheetType.Designer.cs b/CleanMachineHMI/forms/frmSheetType.Designer.cs
new file mode 100644
index 0000000..0f3add6
--- /dev/null
+++ b/CleanMachineHMI/forms/frmSheetType.Designer.cs
@@ -0,0 +1,358 @@
+namespace CleanMachineHMI.forms
+{
+ partial class frmSheetType
+ {
+ ///
+ /// 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.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.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.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();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel1.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(786, 552);
+ this.kryptonPanel1.TabIndex = 2;
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
+ this.kryptonGroupBox2.CaptionOverlap = 0D;
+ this.kryptonGroupBox2.CaptionStyle = ComponentFactory.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";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.dataGridView);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(786, 423);
+ this.kryptonGroupBox2.TabIndex = 5;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ 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.Location = new System.Drawing.Point(0, 0);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ this.dataGridView.RowHeadersWidth = 100;
+ this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView.Size = new System.Drawing.Size(782, 419);
+ this.dataGridView.TabIndex = 3;
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(786, 129);
+ this.kryptonGroupBox1.TabIndex = 0;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 5;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 4, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Delete, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 3, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Add, 0, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(218, 78);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(561, 41);
+ this.tableLayoutPanel2.TabIndex = 4;
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(451, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(107, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(115, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // kbt_Delete
+ //
+ this.kbt_Delete.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Delete.Location = new System.Drawing.Point(227, 3);
+ this.kbt_Delete.Name = "kbt_Delete";
+ this.kbt_Delete.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Delete.TabIndex = 0;
+ this.kbt_Delete.Values.Text = "删除";
+ this.kbt_Delete.Click += new System.EventHandler(this.kbt_Delete_Click);
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(339, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kbt_Add
+ //
+ this.kbt_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Add.Location = new System.Drawing.Point(3, 3);
+ this.kbt_Add.Name = "kbt_Add";
+ this.kbt_Add.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Add.TabIndex = 0;
+ this.kbt_Add.Values.Text = "新增";
+ this.kbt_Add.Click += new System.EventHandler(this.kbt_Add_Click);
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 130F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 130F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_SheetTypeCode, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_SheetTypeName, 3, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(782, 72);
+ this.tableLayoutPanel1.TabIndex = 3;
+ //
+ // kdtp_CreateEndTime
+ //
+ this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateEndTime.Location = new System.Drawing.Point(528, 43);
+ this.kdtp_CreateEndTime.Name = "kdtp_CreateEndTime";
+ this.kdtp_CreateEndTime.ShowCheckBox = true;
+ this.kdtp_CreateEndTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateEndTime.TabIndex = 7;
+ //
+ // kdtp_CreateStartTime
+ //
+ this.kdtp_CreateStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateStartTime.Location = new System.Drawing.Point(137, 43);
+ this.kdtp_CreateStartTime.Name = "kdtp_CreateStartTime";
+ this.kdtp_CreateStartTime.ShowCheckBox = true;
+ this.kdtp_CreateStartTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateStartTime.TabIndex = 7;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(124, 30);
+ this.kryptonLabel2.TabIndex = 4;
+ this.kryptonLabel2.Values.Text = "板材编码:";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(444, 44);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 4;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // ktb_SheetTypeCode
+ //
+ this.ktb_SheetTypeCode.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_SheetTypeCode.Location = new System.Drawing.Point(137, 6);
+ this.ktb_SheetTypeCode.Name = "ktb_SheetTypeCode";
+ this.ktb_SheetTypeCode.Size = new System.Drawing.Size(246, 23);
+ this.ktb_SheetTypeCode.TabIndex = 5;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(3, 39);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(124, 30);
+ this.kryptonLabel4.TabIndex = 4;
+ this.kryptonLabel4.Values.Text = "创建时间:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(394, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(124, 30);
+ this.kryptonLabel3.TabIndex = 4;
+ this.kryptonLabel3.Values.Text = "板材名称:";
+ //
+ // ktb_SheetTypeName
+ //
+ this.ktb_SheetTypeName.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_SheetTypeName.Location = new System.Drawing.Point(528, 6);
+ this.ktb_SheetTypeName.Name = "ktb_SheetTypeName";
+ this.ktb_SheetTypeName.Size = new System.Drawing.Size(246, 23);
+ this.ktb_SheetTypeName.TabIndex = 5;
+ //
+ // frmSheetType
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(786, 552);
+ this.Controls.Add(this.kryptonPanel1);
+ this.Name = "frmSheetType";
+ this.Text = "frmSheetType";
+ this.Load += new System.EventHandler(this.frmSheetType_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #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 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 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;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmSheetType.cs b/CleanMachineHMI/forms/frmSheetType.cs
new file mode 100644
index 0000000..dbc9ca4
--- /dev/null
+++ b/CleanMachineHMI/forms/frmSheetType.cs
@@ -0,0 +1,194 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.forms
+{
+ public partial class frmSheetType : KryptonForm
+ {
+ public frmSheetType()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _InfoLanguageTextList;
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+ protected override CreateParams CreateParams
+ {
+ get
+ {
+ CreateParams cp = base.CreateParams;
+ cp.ExStyle |= 0x02000000;
+ return cp;
+ }
+ }
+
+ public void Init()
+ {
+ var sql = $@"select SHEET_TYPE_ID 序号,SHEET_TYPE_CODE 板材编码,SHEET_TYPE_NAME 板材名称,CREATE_TIME 创建时间 from BAS_SHEET_TYPE where DEL_FLAG=0";
+ if (!string.IsNullOrEmpty(ktb_SheetTypeCode.Text))
+ {
+ sql += $" AND SHEET_TYPE_CODE LIKE '%{ktb_SheetTypeCode.Text}%'";
+ }
+ if (!string.IsNullOrEmpty(ktb_SheetTypeName.Text))
+ {
+ sql += $" AND SHEET_TYPE_NAME LIKE '%{ktb_SheetTypeName.Text}%'";
+ }
+ if (kdtp_CreateStartTime.Checked)
+ {
+ sql += $" AND CREATE_TIME >= '{kdtp_CreateStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (kdtp_CreateEndTime.Checked)
+ {
+ sql += $" AND CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_SheetTypeCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_SheetTypeCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ ktb_SheetTypeName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_SheetTypeName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmSheetType_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox2.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载板材类型界面发生异常", "LoadSheetTypeExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询板材类型数据发生异常", "QuerySheetTypeData") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_SheetTypeCode.Text = "";
+ ktb_SheetTypeName.Text = "";
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ }
+
+ private void kbt_Add_Click(object sender, EventArgs e)
+ {
+ frmAddSheetType frm = new frmAddSheetType();
+ frm.ShowDialog();
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmEditSheetType frm = new frmEditSheetType();
+ frm.SheetTypeId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的板材类型数据行!", "SelectWantToEditRow"));
+ }
+ }
+
+ private void kbt_Delete_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的板材类型数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ if (dr == DialogResult.OK)
+ {
+ string SheetTypeId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ string sql = $@"DELETE FROM BAS_SHEET_TYPE WHERE SHEET_TYPE_ID = '{SheetTypeId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除板材类型数据成功!", "DeleteSuccessInfo"));
+ RefreshFrmHost();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除板材类型数据失败!", "DeleteFailInfo"));
+ }
+ }
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的板材类型数据行!", "SelectWantToDeleteRow"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染板材类型数据发生异常", "DeleteSheetTypeDataExp") + $":【{ex.Message}】!");
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/forms/frmSheetType.resx b/CleanMachineHMI/forms/frmSheetType.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/forms/frmSheetType.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmUser.Designer.cs b/CleanMachineHMI/forms/frmUser.Designer.cs
new file mode 100644
index 0000000..7b4f342
--- /dev/null
+++ b/CleanMachineHMI/forms/frmUser.Designer.cs
@@ -0,0 +1,397 @@
+namespace CleanMachineHMI.forms
+{
+ partial class frmUser
+ {
+ ///
+ /// 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.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.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.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.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel6)).BeginInit();
+ this.kryptonPanel6.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_gender)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonPanel6
+ //
+ this.kryptonPanel6.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+ this.kryptonPanel6.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel6.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel6.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel6.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel6.Name = "kryptonPanel6";
+ this.kryptonPanel6.Size = new System.Drawing.Size(786, 552);
+ this.kryptonPanel6.TabIndex = 4;
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
+ this.kryptonGroupBox1.CaptionOverlap = 0D;
+ this.kryptonGroupBox1.CaptionStyle = ComponentFactory.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";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.dataGridView);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(786, 423);
+ this.kryptonGroupBox1.TabIndex = 4;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ 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.Location = new System.Drawing.Point(0, 0);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ this.dataGridView.RowHeadersWidth = 100;
+ this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView.Size = new System.Drawing.Size(782, 419);
+ this.dataGridView.TabIndex = 3;
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(786, 129);
+ this.kryptonGroupBox2.TabIndex = 0;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 5;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 4, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Delete, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 3, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Add, 0, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(218, 78);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(561, 41);
+ this.tableLayoutPanel2.TabIndex = 2;
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(451, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(107, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(115, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // kbt_Delete
+ //
+ this.kbt_Delete.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Delete.Location = new System.Drawing.Point(227, 3);
+ this.kbt_Delete.Name = "kbt_Delete";
+ this.kbt_Delete.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Delete.TabIndex = 0;
+ this.kbt_Delete.Values.Text = "删除";
+ this.kbt_Delete.Click += new System.EventHandler(this.kbt_Delete_Click);
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(339, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kbt_Add
+ //
+ this.kbt_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Add.Location = new System.Drawing.Point(3, 3);
+ this.kbt_Add.Name = "kbt_Add";
+ this.kbt_Add.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Add.TabIndex = 0;
+ this.kbt_Add.Values.Text = "新增";
+ this.kbt_Add.Click += new System.EventHandler(this.kbt_Add_Click);
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 60F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kcmb_gender, 3, 0);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_userMsg, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(782, 72);
+ this.tableLayoutPanel1.TabIndex = 0;
+ //
+ // kdtp_CreateEndTime
+ //
+ this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateEndTime.Location = new System.Drawing.Point(508, 43);
+ this.kdtp_CreateEndTime.Name = "kdtp_CreateEndTime";
+ this.kdtp_CreateEndTime.ShowCheckBox = true;
+ this.kdtp_CreateEndTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateEndTime.TabIndex = 7;
+ //
+ // kdtp_CreateStartTime
+ //
+ this.kdtp_CreateStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateStartTime.Location = new System.Drawing.Point(147, 43);
+ this.kdtp_CreateStartTime.Name = "kdtp_CreateStartTime";
+ this.kdtp_CreateStartTime.ShowCheckBox = true;
+ this.kdtp_CreateStartTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateStartTime.TabIndex = 7;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel2.TabIndex = 4;
+ this.kryptonLabel2.Values.Text = "用户信息:";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(439, 44);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 4;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // kcmb_gender
+ //
+ this.kcmb_gender.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kcmb_gender.DropDownWidth = 121;
+ this.kcmb_gender.Items.AddRange(new object[] {
+ "请选择",
+ "男",
+ "女"});
+ this.kcmb_gender.Location = new System.Drawing.Point(508, 7);
+ this.kcmb_gender.Name = "kcmb_gender";
+ this.kcmb_gender.Size = new System.Drawing.Size(246, 21);
+ this.kcmb_gender.TabIndex = 6;
+ //
+ // ktb_userMsg
+ //
+ this.ktb_userMsg.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_userMsg.Location = new System.Drawing.Point(147, 6);
+ this.ktb_userMsg.Name = "ktb_userMsg";
+ this.ktb_userMsg.Size = new System.Drawing.Size(246, 23);
+ this.ktb_userMsg.TabIndex = 5;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(3, 39);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel4.TabIndex = 4;
+ this.kryptonLabel4.Values.Text = "创建时间:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(424, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(54, 30);
+ this.kryptonLabel3.TabIndex = 4;
+ this.kryptonLabel3.Values.Text = "性别:";
+ //
+ // dataGridViewTextBoxColumn4
+ //
+ this.dataGridViewTextBoxColumn4.HeaderText = "报警编码";
+ this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
+ this.dataGridViewTextBoxColumn4.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn3
+ //
+ this.dataGridViewTextBoxColumn3.HeaderText = "报警名称";
+ this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
+ this.dataGridViewTextBoxColumn3.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn2
+ //
+ this.dataGridViewTextBoxColumn2.HeaderText = "报警类别";
+ this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
+ this.dataGridViewTextBoxColumn2.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn1
+ //
+ this.dataGridViewTextBoxColumn1.HeaderText = "报警消息";
+ this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
+ this.dataGridViewTextBoxColumn1.ReadOnly = true;
+ //
+ // frmUser
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(786, 552);
+ this.Controls.Add(this.kryptonPanel6);
+ this.Name = "frmUser";
+ this.Text = "frmUser";
+ this.Load += new System.EventHandler(this.frmUser_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel6)).EndInit();
+ this.kryptonPanel6.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_gender)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ private ComponentFactory.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 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 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;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmUser.cs b/CleanMachineHMI/forms/frmUser.cs
new file mode 100644
index 0000000..6298c67
--- /dev/null
+++ b/CleanMachineHMI/forms/frmUser.cs
@@ -0,0 +1,199 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.forms
+{
+ public partial class frmUser : KryptonForm
+ {
+ public frmUser()
+ {
+ InitializeComponent();
+ _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _ComboBoxLanguageTextList;
+ private DataTable _InfoLanguageTextList;
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+
+ public void Init()
+ {
+ var sql = $@"select USER_ID 序号,USER_CODE 用户编码,USER_NAME 用户名称,PASSWORD 密码,CASE GENDER WHEN 1 THEN 'man' ELSE 'woman' END 性别,CREATE_TIME 创建时间 from SYS_USER where DEL_FLAG = 0 ";
+ if (!string.IsNullOrEmpty(ktb_userMsg.Text))
+ {
+ sql += $" And (USER_CODE like '%{ktb_userMsg.Text}%' or USER_NAME like '%{ktb_userMsg.Text}%')";
+ }
+ if (kcmb_gender.SelectedIndex != 0)
+ {
+ sql += $" AND GENDER = '{kcmb_gender.SelectedIndex}'";
+ }
+ if (kdtp_CreateStartTime.Checked)
+ {
+ sql += $" AND CREATE_TIME >= '{kdtp_CreateStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (kdtp_CreateEndTime.Checked)
+ {
+ sql += $" AND CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (GlobalHelper.UserInfo.ROLE_GRADE != 100)
+ {
+ sql += $" AND USER_ID = '{GlobalHelper.UserInfo.USER_ID}'";
+ }
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_userMsg.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_userMsg.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ }
+
+ private void frmUser_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ kcmb_gender.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_gender.Name, "KryptonComboBox"))
+ {
+ kcmb_gender.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ }
+ kcmb_gender.SelectedIndex = 0;
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox2.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载用户信息界面发生异常", "LoadUserMsgExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询用户信息数据发生异常", "QueryUserMsgData") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_userMsg.Text = "";
+ kcmb_gender.SelectedIndex = 0;
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ }
+
+ private void kbt_Add_Click(object sender, EventArgs e)
+ {
+ frmAddUser frm = new frmAddUser();
+ frm.ShowDialog();
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmEditUser frm = new frmEditUser();
+ frm.UserId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的用户信息数据行!", "SelectWantToEditRow"));
+ }
+ }
+
+ private void kbt_Delete_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的用户信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ if (dr == DialogResult.OK)
+ {
+ string UserId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ string sql = $@"DELETE FROM SYS_USER WHERE USER_ID = '{UserId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除用户数据成功!", "DeleteSuccessInfo"));
+ RefreshFrmHost();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除用户数据失败!", "DeleteFailInfo"));
+ }
+ }
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的用户数据行!", "SelectWantToDeleteRow"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除用户信息数据发生异常", "DeleteUserMsgDataExp") + $":【{ex.Message}】!");
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/forms/frmUser.resx b/CleanMachineHMI/forms/frmUser.resx
new file mode 100644
index 0000000..28cde32
--- /dev/null
+++ b/CleanMachineHMI/forms/frmUser.resx
@@ -0,0 +1,132 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmWarning.Designer.cs b/CleanMachineHMI/forms/frmWarning.Designer.cs
new file mode 100644
index 0000000..96dec2e
--- /dev/null
+++ b/CleanMachineHMI/forms/frmWarning.Designer.cs
@@ -0,0 +1,396 @@
+namespace CleanMachineHMI.forms
+{
+ partial class frmWarning
+ {
+ ///
+ /// 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.kryptonGroupBox2 = new ComponentFactory.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.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.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();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_WarningType)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel6)).BeginInit();
+ this.kryptonPanel6.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.tableLayoutPanel2);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(786, 128);
+ this.kryptonGroupBox2.TabIndex = 0;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel2.ColumnCount = 5;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 4, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Edit, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Delete, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 3, 0);
+ this.tableLayoutPanel2.Controls.Add(this.kbt_Add, 0, 0);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(218, 77);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 1;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(561, 41);
+ this.tableLayoutPanel2.TabIndex = 6;
+ //
+ // kbt_Reset
+ //
+ this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Reset.Location = new System.Drawing.Point(451, 3);
+ this.kbt_Reset.Name = "kbt_Reset";
+ this.kbt_Reset.Size = new System.Drawing.Size(107, 35);
+ this.kbt_Reset.TabIndex = 0;
+ this.kbt_Reset.Tag = "show";
+ this.kbt_Reset.Values.Text = "重置条件";
+ this.kbt_Reset.Click += new System.EventHandler(this.kbt_Reset_Click);
+ //
+ // kbt_Edit
+ //
+ this.kbt_Edit.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Edit.Location = new System.Drawing.Point(115, 3);
+ this.kbt_Edit.Name = "kbt_Edit";
+ this.kbt_Edit.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Edit.TabIndex = 0;
+ this.kbt_Edit.Values.Text = "编辑";
+ this.kbt_Edit.Click += new System.EventHandler(this.kbt_Edit_Click);
+ //
+ // kbt_Delete
+ //
+ this.kbt_Delete.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Delete.Location = new System.Drawing.Point(227, 3);
+ this.kbt_Delete.Name = "kbt_Delete";
+ this.kbt_Delete.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Delete.TabIndex = 0;
+ this.kbt_Delete.Values.Text = "删除";
+ this.kbt_Delete.Click += new System.EventHandler(this.kbt_Delete_Click);
+ //
+ // kbt_Query
+ //
+ this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Query.Location = new System.Drawing.Point(339, 3);
+ this.kbt_Query.Name = "kbt_Query";
+ this.kbt_Query.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Query.TabIndex = 0;
+ this.kbt_Query.Tag = "show";
+ this.kbt_Query.Values.Text = "查询";
+ this.kbt_Query.Click += new System.EventHandler(this.kbt_Query_Click);
+ //
+ // kbt_Add
+ //
+ this.kbt_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kbt_Add.Location = new System.Drawing.Point(3, 3);
+ this.kbt_Add.Name = "kbt_Add";
+ this.kbt_Add.Size = new System.Drawing.Size(106, 35);
+ this.kbt_Add.TabIndex = 0;
+ this.kbt_Add.Values.Text = "新增";
+ this.kbt_Add.Click += new System.EventHandler(this.kbt_Add_Click);
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 4;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 100F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kdtp_CreateStartTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel5, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.ktb_WarningMsg, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel4, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonLabel3, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kcmb_WarningType, 3, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(782, 72);
+ this.tableLayoutPanel1.TabIndex = 5;
+ //
+ // kdtp_CreateEndTime
+ //
+ this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateEndTime.Location = new System.Drawing.Point(518, 43);
+ this.kdtp_CreateEndTime.Name = "kdtp_CreateEndTime";
+ this.kdtp_CreateEndTime.ShowCheckBox = true;
+ this.kdtp_CreateEndTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateEndTime.TabIndex = 7;
+ //
+ // kdtp_CreateStartTime
+ //
+ this.kdtp_CreateStartTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kdtp_CreateStartTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
+ this.kdtp_CreateStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.kdtp_CreateStartTime.Location = new System.Drawing.Point(137, 43);
+ this.kdtp_CreateStartTime.Name = "kdtp_CreateStartTime";
+ this.kdtp_CreateStartTime.ShowCheckBox = true;
+ this.kdtp_CreateStartTime.Size = new System.Drawing.Size(246, 21);
+ this.kdtp_CreateStartTime.TabIndex = 7;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel2.Location = new System.Drawing.Point(3, 3);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel2.TabIndex = 4;
+ this.kryptonLabel2.Values.Text = "报警信息:";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kryptonLabel5.Location = new System.Drawing.Point(439, 44);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(23, 20);
+ this.kryptonLabel5.TabIndex = 4;
+ this.kryptonLabel5.Values.Text = "至";
+ //
+ // ktb_WarningMsg
+ //
+ this.ktb_WarningMsg.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.ktb_WarningMsg.Location = new System.Drawing.Point(137, 6);
+ this.ktb_WarningMsg.Name = "ktb_WarningMsg";
+ this.ktb_WarningMsg.Size = new System.Drawing.Size(246, 23);
+ this.ktb_WarningMsg.TabIndex = 5;
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel4.Location = new System.Drawing.Point(3, 39);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(114, 30);
+ this.kryptonLabel4.TabIndex = 4;
+ this.kryptonLabel4.Values.Text = "创建时间:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonLabel3.Location = new System.Drawing.Point(404, 3);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(94, 30);
+ this.kryptonLabel3.TabIndex = 4;
+ this.kryptonLabel3.Values.Text = "报警类型:";
+ //
+ // kcmb_WarningType
+ //
+ this.kcmb_WarningType.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.kcmb_WarningType.DropDownWidth = 246;
+ this.kcmb_WarningType.Items.AddRange(new object[] {
+ "请选择",
+ "清洁机报警",
+ "变频器报警"});
+ this.kcmb_WarningType.Location = new System.Drawing.Point(518, 7);
+ this.kcmb_WarningType.Name = "kcmb_WarningType";
+ this.kcmb_WarningType.Size = new System.Drawing.Size(246, 21);
+ this.kcmb_WarningType.TabIndex = 8;
+ //
+ // dataGridViewTextBoxColumn1
+ //
+ this.dataGridViewTextBoxColumn1.HeaderText = "报警消息";
+ this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
+ this.dataGridViewTextBoxColumn1.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn2
+ //
+ this.dataGridViewTextBoxColumn2.HeaderText = "报警类别";
+ this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
+ this.dataGridViewTextBoxColumn2.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn3
+ //
+ this.dataGridViewTextBoxColumn3.HeaderText = "报警名称";
+ this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
+ this.dataGridViewTextBoxColumn3.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn4
+ //
+ this.dataGridViewTextBoxColumn4.HeaderText = "报警编码";
+ this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
+ this.dataGridViewTextBoxColumn4.ReadOnly = true;
+ //
+ // kryptonPanel6
+ //
+ this.kryptonPanel6.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel6.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel6.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel6.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel6.Name = "kryptonPanel6";
+ this.kryptonPanel6.Size = new System.Drawing.Size(786, 552);
+ this.kryptonPanel6.TabIndex = 3;
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
+ this.kryptonGroupBox1.CaptionOverlap = 0D;
+ this.kryptonGroupBox1.CaptionStyle = ComponentFactory.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";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.dataGridView);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(786, 424);
+ this.kryptonGroupBox1.TabIndex = 7;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
+ 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.Location = new System.Drawing.Point(0, 0);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ this.dataGridView.RowHeadersWidth = 100;
+ this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView.Size = new System.Drawing.Size(782, 420);
+ this.dataGridView.TabIndex = 3;
+ //
+ // frmWarning
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(786, 552);
+ this.Controls.Add(this.kryptonPanel6);
+ this.Name = "frmWarning";
+ this.Text = "frmWarning";
+ this.Load += new System.EventHandler(this.frmWarning_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_WarningType)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel6)).EndInit();
+ this.kryptonPanel6.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ private ComponentFactory.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 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 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;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmWarning.cs b/CleanMachineHMI/forms/frmWarning.cs
new file mode 100644
index 0000000..0046dfe
--- /dev/null
+++ b/CleanMachineHMI/forms/frmWarning.cs
@@ -0,0 +1,207 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.forms
+{
+ public partial class frmWarning : KryptonForm
+ {
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+
+ public frmWarning()
+ {
+ InitializeComponent();
+ _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _ComboBoxLanguageTextList;
+ private DataTable _InfoLanguageTextList;
+ public void Init()
+ {
+ var sql = $@"select WARNING_ID 序号,WARNING_CODE 报警编码,WARNING_NAME 报警名称,PLC_ITEM_CODE 'PLC信息',CASE WARNING_TYPE WHEN '1' THEN 'Cleaning machine alarm' ELSE 'Frequency converter alarm' END '报警类型',WARNING_MESSAGE 报警描述,CREATE_TIME 创建时间 from BAS_WARNING where DEL_FLAG=0";
+ if (!string.IsNullOrEmpty(ktb_WarningMsg.Text))
+ {
+ sql += $" AND (WARNING_CODE like '%{ktb_WarningMsg.Text}%' OR WARNING_NAME like '%{ktb_WarningMsg.Text}%')";
+ }
+ if (kcmb_WarningType.SelectedIndex != 0)
+ {
+ sql += $" AND WARNING_TYPE = '{kcmb_WarningType.SelectedIndex}'";
+ }
+ if (kdtp_CreateStartTime.Checked)
+ {
+ sql += $" AND CREATE_TIME >= '{kdtp_CreateStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+ if (kdtp_CreateEndTime.Checked)
+ {
+ sql += $" AND CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
+ }
+
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+
+ }
+
+ protected override CreateParams CreateParams
+ {
+ get
+ {
+ CreateParams cp = base.CreateParams;
+ cp.ExStyle |= 0x02000000;
+ return cp;
+ }
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_WarningMsg.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_WarningMsg.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ }
+
+ private void frmWarning_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ kcmb_WarningType.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_WarningType.Name, "KryptonComboBox"))
+ {
+ kcmb_WarningType.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ }
+ kcmb_WarningType.SelectedIndex = 0;
+
+ RefreshFrmHost = new dlgRefreshFrmHost(Init);
+ Init();
+ foreach (Control item in tableLayoutPanel2.Controls)
+ {
+ if (item.Tag == null)
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
+ DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
+ if (drs1.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ kryptonGroupBox2.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载报警信息界面发生异常", "LoadWarningMsgExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Query_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询报警信息数据发生异常", "QueryWarningMsgDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbt_Reset_Click(object sender, EventArgs e)
+ {
+ ktb_WarningMsg.Text = "";
+ kcmb_WarningType.SelectedIndex = 0;
+ kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
+ kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
+ kdtp_CreateStartTime.Checked = false;
+ kdtp_CreateEndTime.Checked = false;
+ }
+
+ private void kbt_Add_Click(object sender, EventArgs e)
+ {
+ frmAddWaringMsg frm = new frmAddWaringMsg();
+ frm.ShowDialog();
+ }
+
+ private void kbt_Edit_Click(object sender, EventArgs e)
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ frmEditWaringMsg frm = new frmEditWaringMsg();
+ frm.WarningId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ frm.ShowDialog();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的报警信息数据行!", "SelectWantToEditRow"));
+ }
+ }
+
+ private void kbt_Delete_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (dataGridView.SelectedRows.Count > 0)
+ {
+ DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的报警信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ if (dr == DialogResult.OK)
+ {
+ string WarningId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
+ string sql = $@"DELETE FROM BAS_WARNING WHERE WARNING_ID = '{WarningId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除报警数据成功!", "DeleteSuccessInfo"));
+ RefreshFrmHost();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除报警数据失败!", "DeleteFailInfo"));
+ }
+ }
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的报警数据行!", "SelectWantToDeleteRow"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除报警信息数据发生异常", "DeleteWarningMsgDataExp") + $":【{ex.Message}】!");
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/forms/frmWarning.resx b/CleanMachineHMI/forms/frmWarning.resx
new file mode 100644
index 0000000..0363d79
--- /dev/null
+++ b/CleanMachineHMI/forms/frmWarning.resx
@@ -0,0 +1,135 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmWorkingPallet.Designer.cs b/CleanMachineHMI/forms/frmWorkingPallet.Designer.cs
new file mode 100644
index 0000000..01e87eb
--- /dev/null
+++ b/CleanMachineHMI/forms/frmWorkingPallet.Designer.cs
@@ -0,0 +1,300 @@
+namespace CleanMachineHMI.forms
+{
+ partial class frmWorkingPallet
+ {
+ ///
+ /// 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.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.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();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel5)).BeginInit();
+ this.kryptonPanel5.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.cmbStatus)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonPanel5
+ //
+ this.kryptonPanel5.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel5.Controls.Add(this.kryptonGroupBox1);
+ this.kryptonPanel5.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel5.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel5.Name = "kryptonPanel5";
+ this.kryptonPanel5.Size = new System.Drawing.Size(1288, 740);
+ this.kryptonPanel5.TabIndex = 2;
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 78);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.dataGridView);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(1288, 662);
+ this.kryptonGroupBox2.TabIndex = 1;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.AllowUserToResizeRows = false;
+ this.dataGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | 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.Location = new System.Drawing.Point(10, 8);
+ this.dataGridView.MultiSelect = false;
+ this.dataGridView.Name = "dataGridView";
+ this.dataGridView.ReadOnly = true;
+ this.dataGridView.RowHeadersVisible = false;
+ this.dataGridView.RowHeadersWidth = 100;
+ this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView.Size = new System.Drawing.Size(1264, 636);
+ this.dataGridView.TabIndex = 4;
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(1288, 78);
+ this.kryptonGroupBox1.TabIndex = 0;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.ColumnCount = 7;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 150F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 150F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 140F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 100F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
+ this.tableLayoutPanel1.Controls.Add(this.lbStatus, 2, 0);
+ this.tableLayoutPanel1.Controls.Add(this.lbCode, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.txtCode, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.lbBeginTime, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.lbEndTime, 2, 1);
+ this.tableLayoutPanel1.Controls.Add(this.dtpBeginTime, 1, 1);
+ this.tableLayoutPanel1.Controls.Add(this.dtpEndTime, 3, 1);
+ this.tableLayoutPanel1.Controls.Add(this.btnSearch, 5, 1);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonButton1, 6, 1);
+ this.tableLayoutPanel1.Controls.Add(this.cmbStatus, 3, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(1284, 70);
+ this.tableLayoutPanel1.TabIndex = 0;
+ //
+ // lbStatus
+ //
+ this.lbStatus.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.lbStatus.Location = new System.Drawing.Point(465, 3);
+ this.lbStatus.Name = "lbStatus";
+ this.lbStatus.Size = new System.Drawing.Size(144, 29);
+ this.lbStatus.TabIndex = 9;
+ this.lbStatus.Values.Text = "作业托盘状态:";
+ //
+ // lbCode
+ //
+ this.lbCode.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.lbCode.Location = new System.Drawing.Point(3, 3);
+ this.lbCode.Name = "lbCode";
+ this.lbCode.Size = new System.Drawing.Size(144, 29);
+ this.lbCode.TabIndex = 11;
+ this.lbCode.Values.Text = "作业托盘编码:";
+ //
+ // txtCode
+ //
+ this.txtCode.AlwaysActive = false;
+ 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.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.StateCommon.Border.Rounding = 4;
+ this.txtCode.StateCommon.Border.Width = 1;
+ this.txtCode.TabIndex = 10;
+ //
+ // lbBeginTime
+ //
+ this.lbBeginTime.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.lbBeginTime.Location = new System.Drawing.Point(3, 38);
+ this.lbBeginTime.Name = "lbBeginTime";
+ this.lbBeginTime.Size = new System.Drawing.Size(144, 29);
+ this.lbBeginTime.TabIndex = 13;
+ this.lbBeginTime.Values.Text = "录入开始时间:";
+ //
+ // lbEndTime
+ //
+ this.lbEndTime.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.lbEndTime.Location = new System.Drawing.Point(465, 38);
+ this.lbEndTime.Name = "lbEndTime";
+ this.lbEndTime.Size = new System.Drawing.Size(144, 29);
+ this.lbEndTime.TabIndex = 14;
+ this.lbEndTime.Values.Text = "结束时间:";
+ //
+ // dtpBeginTime
+ //
+ this.dtpBeginTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.dtpBeginTime.Location = new System.Drawing.Point(175, 42);
+ this.dtpBeginTime.Name = "dtpBeginTime";
+ this.dtpBeginTime.ShowCheckBox = true;
+ this.dtpBeginTime.Size = new System.Drawing.Size(261, 21);
+ this.dtpBeginTime.TabIndex = 15;
+ //
+ // dtpEndTime
+ //
+ this.dtpEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.dtpEndTime.Location = new System.Drawing.Point(637, 42);
+ this.dtpEndTime.Name = "dtpEndTime";
+ this.dtpEndTime.ShowCheckBox = true;
+ this.dtpEndTime.Size = new System.Drawing.Size(261, 21);
+ this.dtpEndTime.TabIndex = 16;
+ //
+ // btnSearch
+ //
+ this.btnSearch.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.btnSearch.Location = new System.Drawing.Point(1067, 38);
+ this.btnSearch.Name = "btnSearch";
+ this.btnSearch.Size = new System.Drawing.Size(94, 29);
+ this.btnSearch.TabIndex = 10;
+ this.btnSearch.Values.Text = "查询";
+ this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
+ //
+ // kryptonButton1
+ //
+ this.kryptonButton1.Location = new System.Drawing.Point(1167, 38);
+ this.kryptonButton1.Name = "kryptonButton1";
+ this.kryptonButton1.Size = new System.Drawing.Size(114, 29);
+ this.kryptonButton1.TabIndex = 23;
+ this.kryptonButton1.Values.Text = "重置条件";
+ this.kryptonButton1.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // cmbStatus
+ //
+ this.cmbStatus.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.cmbStatus.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cmbStatus.DropDownWidth = 259;
+ this.cmbStatus.Items.AddRange(new object[] {
+ "请选择",
+ "作业中",
+ "作业完成"});
+ this.cmbStatus.Location = new System.Drawing.Point(638, 7);
+ this.cmbStatus.Name = "cmbStatus";
+ this.cmbStatus.Size = new System.Drawing.Size(259, 21);
+ this.cmbStatus.TabIndex = 24;
+ //
+ // frmWorkingPallet
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1288, 740);
+ this.Controls.Add(this.kryptonPanel5);
+ this.Name = "frmWorkingPallet";
+ this.Text = "frmWorkingPallet";
+ this.Load += new System.EventHandler(this.frmWorkingPallet_Load);
+ this.Shown += new System.EventHandler(this.frmWorkingPallet_Shown);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel5)).EndInit();
+ this.kryptonPanel5.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.cmbStatus)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #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 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;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/forms/frmWorkingPallet.cs b/CleanMachineHMI/forms/frmWorkingPallet.cs
new file mode 100644
index 0000000..10bb949
--- /dev/null
+++ b/CleanMachineHMI/forms/frmWorkingPallet.cs
@@ -0,0 +1,147 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.forms
+{
+ public partial class frmWorkingPallet : KryptonForm
+ {
+ private DataTable _InfoLanguageTextList;
+
+ public frmWorkingPallet()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ }
+
+ private void frmWorkingPallet_Shown(object sender, EventArgs e)
+ {
+ }
+
+ protected override CreateParams CreateParams
+ {
+ get
+ {
+ CreateParams cp = base.CreateParams;
+ cp.ExStyle |= 0x02000000;
+ return cp;
+ }
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ txtCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ }
+
+ private void frmWorkingPallet_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ cmbStatus.Items.Clear();
+ foreach (DataRow item in _InfoLanguageTextList.GetComBoboxItemArr(cmbStatus.Name, "KryptonComboBox"))
+ {
+ cmbStatus.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ }
+ cmbStatus.SelectedIndex = 0;
+ dtpBeginTime.Checked = false;
+ dtpEndTime.Checked = false;
+ Init();
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ kryptonGroupBox2.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载作业托盘界面发生异常", "LoadWorkingPalletExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ public void Init()
+ {
+ var sql = @"
+ SELECT
+ WORKING_PALLET_DTL_ID 序号,
+ WORKING_PALLET_CODE 作业托盘,
+ WORKING_STATUS_NAME 作业状态,
+ SHEET_TYPE_CODE 板材编码,
+ IR_CODE 收货编码,
+ INPUT_TIME 录入时间,
+ CLEAN_MODE_CODE 清洁方式编码,
+ CLEAN_MODE_NAME 清洁方式名称,
+ CONTAMINATION_TYPE_CODE 污染类型编码,
+ CONTAMINATION_DTL_CODE 污染类型名称,
+ CURRENT_NUMBER 当前计数,
+ USER_CODE 操作员编码,
+ USER_NAME 操作员名称
+ FROM
+ VW_WORKING_PALLET_MSG
+ WHERE
+ 1 == 1
+ ";
+ if (!string.IsNullOrWhiteSpace(txtCode.Text))
+ {
+ sql += " AND WORKING_PALLET_CODE LIKE '%" + txtCode.Text + "%'";
+ }
+ if (cmbStatus.SelectedIndex != 0)
+ {
+ sql += " AND WORKING_STATUS = '" + (cmbStatus.SelectedIndex - 1) + "'";
+ }
+ if (dtpBeginTime.Checked)
+ {
+ sql += " AND INPUT_TIME >= '" + dtpBeginTime.Value.ToString() + "'";
+ }
+ if (dtpEndTime.Checked)
+ {
+ sql += " AND INPUT_TIME <= '" + dtpEndTime.Value.ToString() + "'";
+ }
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ }
+
+ private void btnSearch_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Init();
+ dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询作业托盘数据发生异常", "QueryWorkingPalletDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kryptonButton1_Click(object sender, EventArgs e)
+ {
+ cmbStatus.SelectedIndex = 0;
+ dtpBeginTime.Checked = false;
+ dtpEndTime.Checked = false;
+ txtCode.Text = "";
+ }
+ }
+}
diff --git a/CleanMachineHMI/forms/frmWorkingPallet.resx b/CleanMachineHMI/forms/frmWorkingPallet.resx
new file mode 100644
index 0000000..1b79064
--- /dev/null
+++ b/CleanMachineHMI/forms/frmWorkingPallet.resx
@@ -0,0 +1,132 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmBase.Designer.cs b/CleanMachineHMI/frmBase.Designer.cs
new file mode 100644
index 0000000..dae715a
--- /dev/null
+++ b/CleanMachineHMI/frmBase.Designer.cs
@@ -0,0 +1,209 @@
+namespace CleanMachineHMI.forms
+{
+ partial class frmBase
+ {
+ ///
+ /// 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.kryptonPage1 = new ComponentFactory.Krypton.Navigator.KryptonPage();
+ this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.btnRole = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnUser = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnContaminationTypeDetail = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnWarning = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnContaminationType = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnSheetType = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnCleanMode = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.navigatorMain = new ComponentFactory.Krypton.Navigator.KryptonNavigator();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPage1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.navigatorMain)).BeginInit();
+ this.navigatorMain.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonPage1
+ //
+ this.kryptonPage1.AutoHiddenSlideSize = new System.Drawing.Size(200, 200);
+ this.kryptonPage1.Flags = 65534;
+ this.kryptonPage1.LastVisibleSet = true;
+ this.kryptonPage1.MinimumSize = new System.Drawing.Size(50, 50);
+ this.kryptonPage1.Name = "kryptonPage1";
+ this.kryptonPage1.Size = new System.Drawing.Size(248, 766);
+ this.kryptonPage1.Text = "kryptonPage1";
+ this.kryptonPage1.ToolTipTitle = "Page ToolTip";
+ this.kryptonPage1.UniqueName = "F03907041C4A474CF4B63451BC9A3B9D";
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.btnRole);
+ this.kryptonPanel1.Controls.Add(this.btnUser);
+ this.kryptonPanel1.Controls.Add(this.btnContaminationTypeDetail);
+ this.kryptonPanel1.Controls.Add(this.btnWarning);
+ this.kryptonPanel1.Controls.Add(this.btnContaminationType);
+ this.kryptonPanel1.Controls.Add(this.btnSheetType);
+ this.kryptonPanel1.Controls.Add(this.btnCleanMode);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Left;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(206, 591);
+ this.kryptonPanel1.TabIndex = 4;
+ //
+ // btnRole
+ //
+ this.btnRole.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.btnRole.Location = new System.Drawing.Point(9, 130);
+ this.btnRole.Name = "btnRole";
+ this.btnRole.Size = new System.Drawing.Size(191, 40);
+ this.btnRole.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnRole.TabIndex = 13;
+ this.btnRole.Tag = "frmRole";
+ this.btnRole.Values.Text = "角色信息";
+ this.btnRole.Click += new System.EventHandler(this.btnRole_Click);
+ //
+ // btnUser
+ //
+ this.btnUser.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.btnUser.Location = new System.Drawing.Point(9, 57);
+ this.btnUser.Name = "btnUser";
+ this.btnUser.Size = new System.Drawing.Size(191, 40);
+ this.btnUser.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnUser.TabIndex = 13;
+ this.btnUser.Tag = "frmUser";
+ this.btnUser.Values.Text = "用户信息";
+ this.btnUser.Click += new System.EventHandler(this.btnUser_Click);
+ //
+ // btnContaminationTypeDetail
+ //
+ this.btnContaminationTypeDetail.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.btnContaminationTypeDetail.Location = new System.Drawing.Point(9, 419);
+ this.btnContaminationTypeDetail.Name = "btnContaminationTypeDetail";
+ this.btnContaminationTypeDetail.Size = new System.Drawing.Size(191, 40);
+ this.btnContaminationTypeDetail.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnContaminationTypeDetail.TabIndex = 12;
+ this.btnContaminationTypeDetail.Tag = "frmContaminationDTL";
+ this.btnContaminationTypeDetail.Values.Text = "污染明细表";
+ this.btnContaminationTypeDetail.Click += new System.EventHandler(this.btnContaminationTypeDetail_Click);
+ //
+ // btnWarning
+ //
+ this.btnWarning.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.btnWarning.Location = new System.Drawing.Point(9, 490);
+ this.btnWarning.Name = "btnWarning";
+ this.btnWarning.Size = new System.Drawing.Size(191, 40);
+ this.btnWarning.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnWarning.TabIndex = 11;
+ this.btnWarning.Tag = "frmWarning";
+ this.btnWarning.Values.Text = "报警配置表";
+ this.btnWarning.Click += new System.EventHandler(this.btnWarning_Click);
+ //
+ // btnContaminationType
+ //
+ this.btnContaminationType.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.btnContaminationType.Location = new System.Drawing.Point(9, 348);
+ this.btnContaminationType.Name = "btnContaminationType";
+ this.btnContaminationType.Size = new System.Drawing.Size(191, 40);
+ this.btnContaminationType.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnContaminationType.TabIndex = 10;
+ this.btnContaminationType.Tag = "frmContaminationType";
+ this.btnContaminationType.Values.Text = "污染类型表";
+ this.btnContaminationType.Click += new System.EventHandler(this.btnContaminationType_Click);
+ //
+ // btnSheetType
+ //
+ this.btnSheetType.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.btnSheetType.Location = new System.Drawing.Point(9, 204);
+ this.btnSheetType.Name = "btnSheetType";
+ this.btnSheetType.Size = new System.Drawing.Size(191, 40);
+ this.btnSheetType.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnSheetType.TabIndex = 8;
+ this.btnSheetType.Tag = "frmSheetType";
+ this.btnSheetType.Values.Text = "板材类型表";
+ this.btnSheetType.Click += new System.EventHandler(this.btnSheetType_Click);
+ //
+ // btnCleanMode
+ //
+ this.btnCleanMode.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.btnCleanMode.Location = new System.Drawing.Point(9, 275);
+ this.btnCleanMode.Name = "btnCleanMode";
+ this.btnCleanMode.Size = new System.Drawing.Size(191, 40);
+ this.btnCleanMode.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnCleanMode.TabIndex = 9;
+ this.btnCleanMode.Tag = "frmCleanMode";
+ this.btnCleanMode.Values.Text = "清洁方式表";
+ this.btnCleanMode.Click += new System.EventHandler(this.btnCleanMode_Click);
+ //
+ // 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.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.navigatorMain.Location = new System.Drawing.Point(206, 0);
+ this.navigatorMain.Name = "navigatorMain";
+ this.navigatorMain.NavigatorMode = ComponentFactory.Krypton.Navigator.NavigatorMode.Group;
+ this.navigatorMain.PageBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.PanelClient;
+ this.navigatorMain.Size = new System.Drawing.Size(802, 591);
+ this.navigatorMain.TabIndex = 5;
+ this.navigatorMain.Text = "kryptonNavigator1";
+ //
+ // frmBase
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1008, 591);
+ this.Controls.Add(this.navigatorMain);
+ this.Controls.Add(this.kryptonPanel1);
+ this.Name = "frmBase";
+ this.ShowIcon = false;
+ this.Text = "frmBase";
+ this.Load += new System.EventHandler(this.frmBase_Load);
+ this.Shown += new System.EventHandler(this.frmBase_Shown);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPage1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.navigatorMain)).EndInit();
+ this.navigatorMain.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Navigator.KryptonPage kryptonPage1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ public ComponentFactory.Krypton.Navigator.KryptonNavigator navigatorMain;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnWarning;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnContaminationType;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnSheetType;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnCleanMode;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnContaminationTypeDetail;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnUser;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnRole;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmBase.cs b/CleanMachineHMI/frmBase.cs
new file mode 100644
index 0000000..ba8e4ad
--- /dev/null
+++ b/CleanMachineHMI/frmBase.cs
@@ -0,0 +1,107 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+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.forms
+{
+ [FormType(EnumFormType.Base)]
+ public partial class frmBase : KryptonForm
+ {
+ public frmBase()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ ///
+ /// 页面信息语言文本列表
+ ///
+ private DataTable _InfoLanguageTextList;
+
+ protected override CreateParams CreateParams
+ {
+ get
+ {
+ CreateParams cp = base.CreateParams;
+ cp.ExStyle |= 0x02000000;
+ return cp;
+ }
+ }
+
+ private void btnSheetType_Click(object sender, EventArgs e)
+ {
+ this.navigatorMain.SetNavPage(EnumFormType.SheetType);
+ }
+
+ private void btnCleanMode_Click(object sender, EventArgs e)
+ {
+ this.navigatorMain.SetNavPage(EnumFormType.CleanMode);
+ }
+
+ private void btnContaminationType_Click(object sender, EventArgs e)
+ {
+ this.navigatorMain.SetNavPage(EnumFormType.ContaminationType);
+ }
+
+ private void btnContaminationTypeDetail_Click(object sender, EventArgs e)
+ {
+ this.navigatorMain.SetNavPage(EnumFormType.ContaminationDTL);
+ }
+
+ private void btnWarning_Click(object sender, EventArgs e)
+ {
+ this.navigatorMain.SetNavPage(EnumFormType.Warning);
+ }
+
+ private void frmBase_Shown(object sender, EventArgs e)
+ {
+ //btnSheetType_Click(null, null);
+ }
+
+ private void frmBase_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ foreach (Control item in kryptonPanel1.Controls)
+ {
+ if (item.Tag != null && item.Tag.ToString() != "")
+ {
+ DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Tag.ToString()}' AND MENU_PID = '-1'");
+ if (drs.Length > 0)
+ {
+ item.Enabled = true;
+ }
+ else
+ {
+ item.Enabled = false;
+ }
+ }
+ }
+ btnSheetType_Click(null, null);
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载基础配置界面发生异常", "LoadFrmBaseExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnUser_Click(object sender, EventArgs e)
+ {
+ this.navigatorMain.SetNavPage(EnumFormType.User);
+ }
+
+ private void btnRole_Click(object sender, EventArgs e)
+ {
+ this.navigatorMain.SetNavPage(EnumFormType.Role);
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmBase.resx b/CleanMachineHMI/frmBase.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmBase.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmAddCleanCode.Designer.cs b/CleanMachineHMI/frmChild/frmAddCleanCode.Designer.cs
new file mode 100644
index 0000000..c3e53aa
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddCleanCode.Designer.cs
@@ -0,0 +1,168 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmAddCleanCode
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.txtCleanModeName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.txtCleanModeCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbCleanModeName = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbCleanModeCode = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.btnEdit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.txtCleanModeName);
+ this.kryptonPanel1.Controls.Add(this.txtCleanModeCode);
+ this.kryptonPanel1.Controls.Add(this.lbCleanModeName);
+ this.kryptonPanel1.Controls.Add(this.lbCleanModeCode);
+ this.kryptonPanel1.Controls.Add(this.btnEdit);
+ this.kryptonPanel1.Controls.Add(this.btnAdd);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(289, 227);
+ this.kryptonPanel1.TabIndex = 3;
+ //
+ // txtCleanModeName
+ //
+ this.txtCleanModeName.AlwaysActive = false;
+ this.txtCleanModeName.Location = new System.Drawing.Point(21, 110);
+ this.txtCleanModeName.Name = "txtCleanModeName";
+ this.txtCleanModeName.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtCleanModeName.Size = new System.Drawing.Size(250, 35);
+ this.txtCleanModeName.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtCleanModeName.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.txtCleanModeName.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.txtCleanModeName.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtCleanModeName.StateCommon.Border.Rounding = 4;
+ this.txtCleanModeName.StateCommon.Border.Width = 2;
+ this.txtCleanModeName.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtCleanModeName.TabIndex = 39;
+ //
+ // txtCleanModeCode
+ //
+ this.txtCleanModeCode.AlwaysActive = false;
+ this.txtCleanModeCode.Location = new System.Drawing.Point(21, 39);
+ this.txtCleanModeCode.Name = "txtCleanModeCode";
+ this.txtCleanModeCode.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtCleanModeCode.Size = new System.Drawing.Size(250, 35);
+ this.txtCleanModeCode.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtCleanModeCode.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.txtCleanModeCode.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.txtCleanModeCode.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtCleanModeCode.StateCommon.Border.Rounding = 4;
+ this.txtCleanModeCode.StateCommon.Border.Width = 2;
+ this.txtCleanModeCode.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtCleanModeCode.TabIndex = 38;
+ //
+ // lbCleanModeName
+ //
+ this.lbCleanModeName.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbCleanModeName.Location = new System.Drawing.Point(20, 82);
+ this.lbCleanModeName.Name = "lbCleanModeName";
+ this.lbCleanModeName.Size = new System.Drawing.Size(115, 26);
+ this.lbCleanModeName.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbCleanModeName.TabIndex = 37;
+ this.lbCleanModeName.Values.Text = "清洁方式名称:";
+ //
+ // lbCleanModeCode
+ //
+ this.lbCleanModeCode.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbCleanModeCode.Location = new System.Drawing.Point(20, 11);
+ this.lbCleanModeCode.Name = "lbCleanModeCode";
+ this.lbCleanModeCode.Size = new System.Drawing.Size(115, 26);
+ this.lbCleanModeCode.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbCleanModeCode.TabIndex = 36;
+ this.lbCleanModeCode.Values.Text = "清洁方式编码:";
+ //
+ // btnEdit
+ //
+ this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnEdit.Location = new System.Drawing.Point(183, 166);
+ this.btnEdit.Name = "btnEdit";
+ this.btnEdit.Size = new System.Drawing.Size(82, 40);
+ this.btnEdit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnEdit.TabIndex = 35;
+ this.btnEdit.Values.Text = "取消";
+ this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(23, 166);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(82, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 34;
+ this.btnAdd.Values.Text = "确认";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // frmAddCleanCode
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(289, 227);
+ this.Controls.Add(this.kryptonPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmAddCleanCode";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "AddCleanCode";
+ this.Load += new System.EventHandler(this.frmAddCleanCode_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnEdit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtCleanModeName;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtCleanModeCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbCleanModeName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbCleanModeCode;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmAddCleanCode.cs b/CleanMachineHMI/frmChild/frmAddCleanCode.cs
new file mode 100644
index 0000000..0155b39
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddCleanCode.cs
@@ -0,0 +1,129 @@
+using CleanMachineHMI.forms;
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.frmChild
+{
+ public partial class frmAddCleanCode : KryptonForm
+ {
+ public frmAddCleanCode()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _InfoLanguageTextList;
+
+ private void frmAddCleanCode_Load(object sender, EventArgs e)
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ txtCleanModeCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtCleanModeCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtCleanModeName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtCleanModeName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (string.IsNullOrEmpty(txtCleanModeCode.Text))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入清洗方式编码!", "EnterCleanCodeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtCleanModeName.Text))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入清洗方式名称!", "EnterCleanNameInfo"));
+ return;
+ }
+ string sqlIsExistCode = $@"SELECT 1 FROM BAS_CLEAN_MODE WHERE CLEAN_MODE_CODE = '{txtCleanModeCode.Text}'";
+ DataTable dtIsExistCode = LeadDbHelperSQLite.Query(sqlIsExistCode).Tables[0];
+ if (dtIsExistCode != null && dtIsExistCode.Rows.Count > 0)
+ {
+ //KryptonMessageBox.Show($"清洗方式条码:【{txtCleanModeCode.Text}】已经存在,请重新输入!");
+ KryptonMessageBox.Show($"Clean methol code: 【{txtCleanModeCode.Text}】already exist, please re-enter!");
+ return;
+ }
+ string sql = $@"
+ INSERT INTO BAS_CLEAN_MODE (
+ CLEAN_MODE_CODE,
+ CLEAN_MODE_NAME,
+ USED_FLAG,
+ DEL_FLAG,
+ CREATE_BY,
+ CREATE_TIME,
+ UPDATE_BY,
+ UPDATE_TIME,
+ DATA_VERSION,
+ REMARKS1,
+ REMARKS2,
+ REMARKS3,
+ REMARKS4,
+ REMARKS5
+ )
+ VALUES
+ (
+ '{txtCleanModeCode.Text}',
+ '{txtCleanModeName.Text}',
+ 1,
+ 0,
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ 0,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL
+ );
+ ";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增清洗方式数据成功!", "AddSuccessInfo"));
+ frmCleanMode.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增清洗方式数据失败!", "AddFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增清洗方式数据发生异常", "AddCleanModeDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnEdit_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmAddCleanCode.resx b/CleanMachineHMI/frmChild/frmAddCleanCode.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddCleanCode.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmAddContaminationDtl.Designer.cs b/CleanMachineHMI/frmChild/frmAddContaminationDtl.Designer.cs
new file mode 100644
index 0000000..94db623
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddContaminationDtl.Designer.cs
@@ -0,0 +1,196 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmAddContaminationDtl
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.cmbContaminationType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.txtContaminationDTLName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.txtContaminationDTLCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbContaminationType = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbContaminationDTLName = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbContaminationDTLCode = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.btnEdit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.cmbContaminationType)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.cmbContaminationType);
+ this.kryptonPanel1.Controls.Add(this.txtContaminationDTLName);
+ this.kryptonPanel1.Controls.Add(this.txtContaminationDTLCode);
+ this.kryptonPanel1.Controls.Add(this.lbContaminationType);
+ this.kryptonPanel1.Controls.Add(this.lbContaminationDTLName);
+ this.kryptonPanel1.Controls.Add(this.lbContaminationDTLCode);
+ this.kryptonPanel1.Controls.Add(this.btnEdit);
+ this.kryptonPanel1.Controls.Add(this.btnAdd);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(334, 290);
+ this.kryptonPanel1.TabIndex = 5;
+ //
+ // cmbContaminationType
+ //
+ this.cmbContaminationType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cmbContaminationType.DropDownWidth = 271;
+ this.cmbContaminationType.Location = new System.Drawing.Point(23, 41);
+ this.cmbContaminationType.Name = "cmbContaminationType";
+ this.cmbContaminationType.Size = new System.Drawing.Size(287, 27);
+ this.cmbContaminationType.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.cmbContaminationType.TabIndex = 41;
+ //
+ // txtContaminationDTLName
+ //
+ this.txtContaminationDTLName.AlwaysActive = false;
+ this.txtContaminationDTLName.Location = new System.Drawing.Point(23, 179);
+ this.txtContaminationDTLName.Name = "txtContaminationDTLName";
+ this.txtContaminationDTLName.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtContaminationDTLName.Size = new System.Drawing.Size(287, 35);
+ this.txtContaminationDTLName.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtContaminationDTLName.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.txtContaminationDTLName.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.txtContaminationDTLName.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtContaminationDTLName.StateCommon.Border.Rounding = 4;
+ this.txtContaminationDTLName.StateCommon.Border.Width = 2;
+ this.txtContaminationDTLName.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtContaminationDTLName.TabIndex = 40;
+ //
+ // txtContaminationDTLCode
+ //
+ this.txtContaminationDTLCode.AlwaysActive = false;
+ this.txtContaminationDTLCode.Location = new System.Drawing.Point(23, 108);
+ this.txtContaminationDTLCode.Name = "txtContaminationDTLCode";
+ this.txtContaminationDTLCode.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtContaminationDTLCode.Size = new System.Drawing.Size(287, 35);
+ this.txtContaminationDTLCode.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtContaminationDTLCode.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.txtContaminationDTLCode.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.txtContaminationDTLCode.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtContaminationDTLCode.StateCommon.Border.Rounding = 4;
+ this.txtContaminationDTLCode.StateCommon.Border.Width = 2;
+ this.txtContaminationDTLCode.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtContaminationDTLCode.TabIndex = 39;
+ //
+ // lbContaminationType
+ //
+ this.lbContaminationType.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbContaminationType.Location = new System.Drawing.Point(23, 9);
+ this.lbContaminationType.Name = "lbContaminationType";
+ this.lbContaminationType.Size = new System.Drawing.Size(82, 26);
+ this.lbContaminationType.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbContaminationType.TabIndex = 38;
+ this.lbContaminationType.Values.Text = "污染类型:";
+ //
+ // lbContaminationDTLName
+ //
+ this.lbContaminationDTLName.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbContaminationDTLName.Location = new System.Drawing.Point(23, 147);
+ this.lbContaminationDTLName.Name = "lbContaminationDTLName";
+ this.lbContaminationDTLName.Size = new System.Drawing.Size(115, 26);
+ this.lbContaminationDTLName.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbContaminationDTLName.TabIndex = 37;
+ this.lbContaminationDTLName.Values.Text = "污染明细名称:";
+ //
+ // lbContaminationDTLCode
+ //
+ this.lbContaminationDTLCode.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbContaminationDTLCode.Location = new System.Drawing.Point(23, 76);
+ this.lbContaminationDTLCode.Name = "lbContaminationDTLCode";
+ this.lbContaminationDTLCode.Size = new System.Drawing.Size(115, 26);
+ this.lbContaminationDTLCode.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbContaminationDTLCode.TabIndex = 36;
+ this.lbContaminationDTLCode.Values.Text = "污染明细编码:";
+ //
+ // btnEdit
+ //
+ this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnEdit.Location = new System.Drawing.Point(228, 231);
+ this.btnEdit.Name = "btnEdit";
+ this.btnEdit.Size = new System.Drawing.Size(82, 40);
+ this.btnEdit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnEdit.TabIndex = 35;
+ this.btnEdit.Values.Text = "取消";
+ this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(23, 231);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(82, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 34;
+ this.btnAdd.Values.Text = "确认";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // frmAddContaminationDtl
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(334, 290);
+ this.Controls.Add(this.kryptonPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmAddContaminationDtl";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "AddContaminationDtl";
+ this.Load += new System.EventHandler(this.frmAddContaminationDtl_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.cmbContaminationType)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnEdit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox cmbContaminationType;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtContaminationDTLName;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtContaminationDTLCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbContaminationType;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbContaminationDTLName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbContaminationDTLCode;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmAddContaminationDtl.cs b/CleanMachineHMI/frmChild/frmAddContaminationDtl.cs
new file mode 100644
index 0000000..7419398
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddContaminationDtl.cs
@@ -0,0 +1,164 @@
+using CleanMachineHMI.forms;
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.Web.UI.WebControls;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.frmChild
+{
+ public partial class frmAddContaminationDtl : KryptonForm
+ {
+ public frmAddContaminationDtl()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _InfoLanguageTextList;
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ txtContaminationDTLCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtContaminationDTLCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtContaminationDTLName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtContaminationDTLName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmAddContaminationDtl_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ string sql = $@"select CONTAMINATION_TYPE_CODE,CONTAMINATION_TYPE_NAME from BAS_CONTAMINATION_TYPE where DEL_FLAG=0";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ cmbContaminationType.Items.Add(new ListItem
+ {
+ Value = "0",
+ Text = "Please Select",
+ });
+ foreach (DataRow item in dt.Rows)
+ {
+ cmbContaminationType.Items.Add(new ListItem
+ {
+ Value = item["CONTAMINATION_TYPE_CODE"].ToString(),
+ Text = item["CONTAMINATION_TYPE_NAME"].ToString(),
+ });
+ }
+ cmbContaminationType.SelectedIndex = 0;
+ }
+ kryptonPanel1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染明细界面加载异常", "LoadAddFrmExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (cmbContaminationType.SelectedIndex == 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择污染类型!", "SelectContaminationTypeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtContaminationDTLCode.Text))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入污染明细编码!", "EnterContaminationDtlCodeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtContaminationDTLName.Text))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入污染明细名称!", "EnterContaminationDtlNameInfo"));
+ return;
+ }
+ string sqlIsExistCode = $@"SELECT 1 FROM BAS_CONTAMINATION_DTL WHERE CONTAMINATION_TYPE_CODE = '{((ListItem)cmbContaminationType.SelectedItem).Value}' AND CONTAMINATION_DTL_CODE = '{txtContaminationDTLCode.Text}'";
+ DataTable dtIsExistCode = LeadDbHelperSQLite.Query(sqlIsExistCode).Tables[0];
+ if (dtIsExistCode != null && dtIsExistCode.Rows.Count > 0)
+ {
+ //KryptonMessageBox.Show($"污染明细条码:【{txtContaminationDTLCode.Text}】已经存在,请重新输入!");
+ KryptonMessageBox.Show($"Pollution detail code: 【{txtContaminationDTLCode.Text}】already exist, please re-enter!");
+ return;
+ }
+ string sql = $@"
+ INSERT INTO BAS_CONTAMINATION_DTL (
+ CONTAMINATION_TYPE_CODE,
+ CONTAMINATION_DTL_CODE,
+ CONTAMINATION_DTL_NAME,
+ USED_FLAG,
+ DEL_FLAG,
+ CREATE_BY,
+ CREATE_TIME,
+ UPDATE_BY,
+ UPDATE_TIME,
+ DATA_VERSION,
+ REMARKS1,
+ REMARKS2,
+ REMARKS3,
+ REMARKS4,
+ REMARKS5
+ )
+ VALUES
+ (
+ '{((ListItem)cmbContaminationType.SelectedItem).Value}',
+ '{txtContaminationDTLCode.Text}',
+ '{txtContaminationDTLName.Text}',
+ 1,
+ 0,
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ 0,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL
+ );
+ ";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染明细数据成功!", "AddSuccessInfo"));
+ frmContaminationDTL.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染明细数据失败!", "AddFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染明细数据发生异常", "AddContaminationDtlDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnEdit_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmAddContaminationDtl.resx b/CleanMachineHMI/frmChild/frmAddContaminationDtl.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddContaminationDtl.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmAddContaminationType.Designer.cs b/CleanMachineHMI/frmChild/frmAddContaminationType.Designer.cs
new file mode 100644
index 0000000..72aa3e7
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddContaminationType.Designer.cs
@@ -0,0 +1,196 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmAddContaminationType
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.cmbCleanMode = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.txtContaminationTypeName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.txtContaminationTypeCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbCleanMode = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbContaminationTypeName = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbContaminationTypeCode = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.btnEdit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.cmbCleanMode)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.cmbCleanMode);
+ this.kryptonPanel1.Controls.Add(this.txtContaminationTypeName);
+ this.kryptonPanel1.Controls.Add(this.txtContaminationTypeCode);
+ this.kryptonPanel1.Controls.Add(this.lbCleanMode);
+ this.kryptonPanel1.Controls.Add(this.lbContaminationTypeName);
+ this.kryptonPanel1.Controls.Add(this.lbContaminationTypeCode);
+ this.kryptonPanel1.Controls.Add(this.btnEdit);
+ this.kryptonPanel1.Controls.Add(this.btnAdd);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(289, 290);
+ this.kryptonPanel1.TabIndex = 4;
+ //
+ // cmbCleanMode
+ //
+ this.cmbCleanMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cmbCleanMode.DropDownWidth = 271;
+ this.cmbCleanMode.Location = new System.Drawing.Point(15, 39);
+ this.cmbCleanMode.Name = "cmbCleanMode";
+ this.cmbCleanMode.Size = new System.Drawing.Size(261, 31);
+ this.cmbCleanMode.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.cmbCleanMode.TabIndex = 41;
+ //
+ // txtContaminationTypeName
+ //
+ this.txtContaminationTypeName.AlwaysActive = false;
+ this.txtContaminationTypeName.Location = new System.Drawing.Point(15, 174);
+ this.txtContaminationTypeName.Name = "txtContaminationTypeName";
+ this.txtContaminationTypeName.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtContaminationTypeName.Size = new System.Drawing.Size(261, 35);
+ this.txtContaminationTypeName.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtContaminationTypeName.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.txtContaminationTypeName.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.txtContaminationTypeName.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtContaminationTypeName.StateCommon.Border.Rounding = 4;
+ this.txtContaminationTypeName.StateCommon.Border.Width = 2;
+ this.txtContaminationTypeName.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtContaminationTypeName.TabIndex = 40;
+ //
+ // txtContaminationTypeCode
+ //
+ this.txtContaminationTypeCode.AlwaysActive = false;
+ this.txtContaminationTypeCode.Location = new System.Drawing.Point(15, 103);
+ this.txtContaminationTypeCode.Name = "txtContaminationTypeCode";
+ this.txtContaminationTypeCode.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtContaminationTypeCode.Size = new System.Drawing.Size(261, 35);
+ this.txtContaminationTypeCode.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtContaminationTypeCode.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.txtContaminationTypeCode.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.txtContaminationTypeCode.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtContaminationTypeCode.StateCommon.Border.Rounding = 4;
+ this.txtContaminationTypeCode.StateCommon.Border.Width = 2;
+ this.txtContaminationTypeCode.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtContaminationTypeCode.TabIndex = 39;
+ //
+ // lbCleanMode
+ //
+ this.lbCleanMode.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbCleanMode.Location = new System.Drawing.Point(15, 12);
+ this.lbCleanMode.Name = "lbCleanMode";
+ this.lbCleanMode.Size = new System.Drawing.Size(82, 26);
+ this.lbCleanMode.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbCleanMode.TabIndex = 38;
+ this.lbCleanMode.Values.Text = "清洁方式:";
+ //
+ // lbContaminationTypeName
+ //
+ this.lbContaminationTypeName.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbContaminationTypeName.Location = new System.Drawing.Point(15, 147);
+ this.lbContaminationTypeName.Name = "lbContaminationTypeName";
+ this.lbContaminationTypeName.Size = new System.Drawing.Size(115, 26);
+ this.lbContaminationTypeName.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbContaminationTypeName.TabIndex = 37;
+ this.lbContaminationTypeName.Values.Text = "污染类型名称:";
+ //
+ // lbContaminationTypeCode
+ //
+ this.lbContaminationTypeCode.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbContaminationTypeCode.Location = new System.Drawing.Point(15, 76);
+ this.lbContaminationTypeCode.Name = "lbContaminationTypeCode";
+ this.lbContaminationTypeCode.Size = new System.Drawing.Size(115, 26);
+ this.lbContaminationTypeCode.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbContaminationTypeCode.TabIndex = 36;
+ this.lbContaminationTypeCode.Values.Text = "污染类型编码:";
+ //
+ // btnEdit
+ //
+ this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnEdit.Location = new System.Drawing.Point(183, 229);
+ this.btnEdit.Name = "btnEdit";
+ this.btnEdit.Size = new System.Drawing.Size(82, 40);
+ this.btnEdit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnEdit.TabIndex = 35;
+ this.btnEdit.Values.Text = "取消";
+ this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(23, 229);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(82, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 34;
+ this.btnAdd.Values.Text = "确认";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // frmAddContaminationType
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(289, 290);
+ this.Controls.Add(this.kryptonPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmAddContaminationType";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "AddContaminationType";
+ this.Load += new System.EventHandler(this.frmAddContaminationType_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.cmbCleanMode)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnEdit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox cmbCleanMode;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtContaminationTypeName;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtContaminationTypeCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbCleanMode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbContaminationTypeName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbContaminationTypeCode;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmAddContaminationType.cs b/CleanMachineHMI/frmChild/frmAddContaminationType.cs
new file mode 100644
index 0000000..b1ef0d0
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddContaminationType.cs
@@ -0,0 +1,166 @@
+using CleanMachineHMI.forms;
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.Web.UI.WebControls;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.frmChild
+{
+ public partial class frmAddContaminationType : KryptonForm
+ {
+ public frmAddContaminationType()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _InfoLanguageTextList;
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ txtContaminationTypeCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtContaminationTypeCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtContaminationTypeName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtContaminationTypeName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmAddContaminationType_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ string sql = $@"select CLEAN_MODE_CODE,CLEAN_MODE_NAME from BAS_CLEAN_MODE where DEL_FLAG=0";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ cmbCleanMode.Items.Add(new ListItem
+ {
+ Value = "0",
+ Text = "Please Select",
+ });
+ foreach (DataRow item in dt.Rows)
+ {
+ cmbCleanMode.Items.Add(new ListItem
+ {
+ Value = item["CLEAN_MODE_CODE"].ToString(),
+ Text = item["CLEAN_MODE_NAME"].ToString(),
+ });
+ }
+ cmbCleanMode.SelectedIndex = 0;
+ }
+ kryptonPanel1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染类型界面加载异常", "LoadAddFrmExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (cmbCleanMode.SelectedIndex == 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择清洗方式!", "SelectCleanModeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtContaminationTypeCode.Text))
+ {
+ //KryptonMessageBox.Show("请输入污染类型编码!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入污染类型编码!", "EnterContaminationTypeCodeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtContaminationTypeName.Text))
+ {
+ //KryptonMessageBox.Show("请输入污染类型名称!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入污染类型名称!", "EnterContaminationTypeNameInfo"));
+ return;
+ }
+ string sqlIsExistCode = $@"SELECT 1 FROM BAS_CONTAMINATION_TYPE WHERE CLEAN_MODE_CODE = '{((ListItem)cmbCleanMode.SelectedItem).Value}' AND CONTAMINATION_TYPE_CODE = '{txtContaminationTypeCode.Text}'";
+ DataTable dtIsExistCode = LeadDbHelperSQLite.Query(sqlIsExistCode).Tables[0];
+ if (dtIsExistCode != null && dtIsExistCode.Rows.Count > 0)
+ {
+ //KryptonMessageBox.Show($"污染类型条码:【{txtContaminationTypeCode.Text}】已经存在,请重新输入!");
+ KryptonMessageBox.Show($"Pollution type code: 【{txtContaminationTypeCode.Text}】already exist, please re-enter!");
+ return;
+ }
+ string sql = $@"
+ INSERT INTO BAS_CONTAMINATION_TYPE (
+ CONTAMINATION_TYPE_CODE,
+ CONTAMINATION_TYPE_NAME,
+ CLEAN_MODE_CODE,
+ USED_FLAG,
+ DEL_FLAG,
+ CREATE_BY,
+ CREATE_TIME,
+ UPDATE_BY,
+ UPDATE_TIME,
+ DATA_VERSION,
+ REMARKS1,
+ REMARKS2,
+ REMARKS3,
+ REMARKS4,
+ REMARKS5
+ )
+ VALUES
+ (
+ '{txtContaminationTypeCode.Text}',
+ '{txtContaminationTypeName.Text}',
+ '{((ListItem)cmbCleanMode.SelectedItem).Value}',
+ 1,
+ 0,
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ 0,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL
+ );
+ ";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染类型数据成功!", "AddSuccessInfo"));
+ frmContaminationType.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染类型数据失败!", "AddFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染类型数据发生异常", "AddContaminationTypeDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnEdit_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmAddContaminationType.resx b/CleanMachineHMI/frmChild/frmAddContaminationType.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddContaminationType.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmAddPlcItem.Designer.cs b/CleanMachineHMI/frmChild/frmAddPlcItem.Designer.cs
new file mode 100644
index 0000000..0705d6a
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddPlcItem.Designer.cs
@@ -0,0 +1,250 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmAddPlcItem
+ {
+ ///
+ /// 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.kryptonManager = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components);
+ this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_plcItemDeviationAddress = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.knud_plcItemPriAddress = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.kcmb_plcItemDataType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.kcmb_plcItemType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.ktb_plcItemName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel6 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.ktb_plcItemCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonButton2 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_plcItemDataType)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_plcItemType)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonManager
+ //
+ this.kryptonManager.GlobalPaletteMode = ComponentFactory.Krypton.Toolkit.PaletteModeManager.Office2007Blue;
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kryptonButton2);
+ this.kryptonPanel1.Controls.Add(this.kryptonButton1);
+ this.kryptonPanel1.Controls.Add(this.knud_plcItemDeviationAddress);
+ this.kryptonPanel1.Controls.Add(this.knud_plcItemPriAddress);
+ this.kryptonPanel1.Controls.Add(this.kcmb_plcItemDataType);
+ this.kryptonPanel1.Controls.Add(this.kcmb_plcItemType);
+ this.kryptonPanel1.Controls.Add(this.ktb_plcItemName);
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel5);
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel4);
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel6);
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel3);
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel2);
+ this.kryptonPanel1.Controls.Add(this.ktb_plcItemCode);
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel1);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(273, 401);
+ this.kryptonPanel1.TabIndex = 5;
+ //
+ // kryptonButton1
+ //
+ this.kryptonButton1.Location = new System.Drawing.Point(21, 340);
+ this.kryptonButton1.Name = "kryptonButton1";
+ this.kryptonButton1.Size = new System.Drawing.Size(90, 36);
+ this.kryptonButton1.TabIndex = 15;
+ this.kryptonButton1.Values.Text = "确认";
+ this.kryptonButton1.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // knud_plcItemDeviationAddress
+ //
+ this.knud_plcItemDeviationAddress.Location = new System.Drawing.Point(21, 299);
+ this.knud_plcItemDeviationAddress.Maximum = new decimal(new int[] {
+ 50,
+ 0,
+ 0,
+ 0});
+ this.knud_plcItemDeviationAddress.Name = "knud_plcItemDeviationAddress";
+ this.knud_plcItemDeviationAddress.Size = new System.Drawing.Size(228, 22);
+ this.knud_plcItemDeviationAddress.TabIndex = 14;
+ //
+ // knud_plcItemPriAddress
+ //
+ this.knud_plcItemPriAddress.Location = new System.Drawing.Point(21, 245);
+ this.knud_plcItemPriAddress.Maximum = new decimal(new int[] {
+ 9999,
+ 0,
+ 0,
+ 0});
+ this.knud_plcItemPriAddress.Name = "knud_plcItemPriAddress";
+ this.knud_plcItemPriAddress.Size = new System.Drawing.Size(228, 22);
+ this.knud_plcItemPriAddress.TabIndex = 14;
+ //
+ // kcmb_plcItemDataType
+ //
+ this.kcmb_plcItemDataType.DropDownWidth = 207;
+ this.kcmb_plcItemDataType.Items.AddRange(new object[] {
+ "M 布尔类型",
+ "D 整数类型",
+ "X 布尔类型",
+ "Y 布尔类型"});
+ this.kcmb_plcItemDataType.Location = new System.Drawing.Point(21, 193);
+ this.kcmb_plcItemDataType.Name = "kcmb_plcItemDataType";
+ this.kcmb_plcItemDataType.Size = new System.Drawing.Size(228, 21);
+ this.kcmb_plcItemDataType.TabIndex = 12;
+ this.kcmb_plcItemDataType.SelectionChangeCommitted += new System.EventHandler(this.kcmb_plcItemDataType_SelectionChangeCommitted);
+ //
+ // kcmb_plcItemType
+ //
+ this.kcmb_plcItemType.DropDownWidth = 207;
+ this.kcmb_plcItemType.Items.AddRange(new object[] {
+ "写入变量",
+ "读取变量",
+ "可读可写"});
+ this.kcmb_plcItemType.Location = new System.Drawing.Point(21, 140);
+ this.kcmb_plcItemType.Name = "kcmb_plcItemType";
+ this.kcmb_plcItemType.Size = new System.Drawing.Size(228, 21);
+ this.kcmb_plcItemType.TabIndex = 13;
+ //
+ // ktb_plcItemName
+ //
+ this.ktb_plcItemName.Location = new System.Drawing.Point(21, 85);
+ this.ktb_plcItemName.Name = "ktb_plcItemName";
+ this.ktb_plcItemName.Size = new System.Drawing.Size(228, 23);
+ this.ktb_plcItemName.TabIndex = 10;
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Location = new System.Drawing.Point(24, 219);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(134, 20);
+ this.kryptonLabel5.TabIndex = 5;
+ this.kryptonLabel5.Values.Text = "PLC变量寄存器地址:";
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Location = new System.Drawing.Point(24, 167);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(121, 20);
+ this.kryptonLabel4.TabIndex = 6;
+ this.kryptonLabel4.Values.Text = "PLC变量数据类型:";
+ //
+ // kryptonLabel6
+ //
+ this.kryptonLabel6.Location = new System.Drawing.Point(24, 273);
+ this.kryptonLabel6.Name = "kryptonLabel6";
+ this.kryptonLabel6.Size = new System.Drawing.Size(121, 20);
+ this.kryptonLabel6.TabIndex = 8;
+ this.kryptonLabel6.Values.Text = "PLC变量偏移位置:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Location = new System.Drawing.Point(24, 114);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(95, 20);
+ this.kryptonLabel3.TabIndex = 7;
+ this.kryptonLabel3.Values.Text = "PLC变量类型:";
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Location = new System.Drawing.Point(24, 63);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(95, 20);
+ this.kryptonLabel2.TabIndex = 8;
+ this.kryptonLabel2.Values.Text = "PLC变量名称:";
+ //
+ // ktb_plcItemCode
+ //
+ this.ktb_plcItemCode.Location = new System.Drawing.Point(21, 34);
+ this.ktb_plcItemCode.Name = "ktb_plcItemCode";
+ this.ktb_plcItemCode.Size = new System.Drawing.Size(228, 23);
+ this.ktb_plcItemCode.TabIndex = 11;
+ //
+ // kryptonLabel1
+ //
+ this.kryptonLabel1.Location = new System.Drawing.Point(24, 12);
+ this.kryptonLabel1.Name = "kryptonLabel1";
+ this.kryptonLabel1.Size = new System.Drawing.Size(95, 20);
+ this.kryptonLabel1.TabIndex = 9;
+ this.kryptonLabel1.Values.Text = "PLC变量编码:";
+ //
+ // kryptonButton2
+ //
+ this.kryptonButton2.Location = new System.Drawing.Point(159, 340);
+ this.kryptonButton2.Name = "kryptonButton2";
+ this.kryptonButton2.Size = new System.Drawing.Size(90, 36);
+ this.kryptonButton2.TabIndex = 15;
+ this.kryptonButton2.Values.Text = "取消";
+ this.kryptonButton2.Click += new System.EventHandler(this.kryptonButton2_Click);
+ //
+ // frmAddPlcItem
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(273, 401);
+ this.Controls.Add(this.kryptonPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmAddPlcItem";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "Add PLC variable";
+ this.Load += new System.EventHandler(this.frmAddPlcItem_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_plcItemDataType)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_plcItemType)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ public ComponentFactory.Krypton.Toolkit.KryptonManager kryptonManager;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_plcItemPriAddress;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_plcItemDataType;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_plcItemType;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_plcItemName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_plcItemCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel6;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_plcItemDeviationAddress;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton2;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmAddPlcItem.cs b/CleanMachineHMI/frmChild/frmAddPlcItem.cs
new file mode 100644
index 0000000..0c99e1c
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddPlcItem.cs
@@ -0,0 +1,250 @@
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.frmChild
+{
+ public partial class frmAddPlcItem : KryptonForm
+ {
+ public frmAddPlcItem()
+ {
+ InitializeComponent();
+ _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _ComboBoxLanguageTextList;
+ private DataTable _InfoLanguageTextList;
+
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_plcItemCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_plcItemCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ ktb_plcItemName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_plcItemName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ knud_plcItemPriAddress.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_plcItemPriAddress.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ knud_plcItemDeviationAddress.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_plcItemDeviationAddress.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+ int modbusMinIndex = 0;
+ private void frmAddPlcItem_Load(object sender, EventArgs e)
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ kcmb_plcItemType.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcItemType.Name, "KryptonComboBox"))
+ {
+ kcmb_plcItemType.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ kcmb_plcItemDataType.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcItemDataType.Name, "KryptonComboBox"))
+ {
+ kcmb_plcItemDataType.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ }
+ kcmb_plcItemType.SelectedIndex = 0;
+ kcmb_plcItemDataType.SelectedIndex = 0;
+ kryptonPanel1.Focus();
+
+ }
+ ///
+ /// 判断是否八进制格式字符串
+ ///
+ ///
+ ///
+ public bool IsOctal(string str)
+ {
+ string PATTERN = @"[0-7]+$";
+ return System.Text.RegularExpressions.Regex.IsMatch(str, PATTERN);
+ }
+ private void kryptonButton1_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (string.IsNullOrEmpty(ktb_plcItemCode.Text))
+ {
+ //KryptonMessageBox.Show("请输入PLC编码");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入PLC变量编码!", "EnterPlcItemCodeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(ktb_plcItemName.Text))
+ {
+ //KryptonMessageBox.Show("请输入PLC名称");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入PLC变量名称!", "EnterPlcItemNameInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(kcmb_plcItemType.Text))
+ {
+ //KryptonMessageBox.Show("请选择PLC类型");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择PLC变量类型!", "SelectPlcItemTypeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(kcmb_plcItemDataType.Text))
+ {
+ //KryptonMessageBox.Show("请选择PLC数据类型");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择PLC变量数据类型!", "SelectPlcItemDataTypeInfo"));
+ return;
+ }
+ int addPriIndex = Convert.ToInt32(knud_plcItemPriAddress.Value);
+ if (kcmb_plcItemDataType.SelectedIndex == 0)
+ {
+ if (addPriIndex <= 1535)
+ {
+ modbusMinIndex = 2049;
+ }
+ else
+ {
+ modbusMinIndex = 5057;
+ }
+ }
+ else if (kcmb_plcItemDataType.SelectedIndex == 1)
+ {
+ modbusMinIndex = 4097;
+ }
+ else if (kcmb_plcItemDataType.SelectedIndex == 2)
+ {
+ modbusMinIndex = 1025;
+ if (!IsOctal(addPriIndex.ToString()))
+ {
+ //KryptonMessageBox.Show("当PLC数据类型为:【X】,输入的PLC地址只能是八进制的数字!");
+ KryptonMessageBox.Show("When PLC data type is【X】, input PLC address can only be octal number!");
+ return;
+ }
+ }
+ else if (kcmb_plcItemDataType.SelectedIndex == 3)
+ {
+ modbusMinIndex = 1281;
+ if (!IsOctal(addPriIndex.ToString()))
+ {
+ //KryptonMessageBox.Show("当PLC数据类型为:【Y】,输入的PLC地址只能是八进制的数字!");
+ KryptonMessageBox.Show("When PLC data type is【Y】, input PLC address can only be octal number!");
+ return;
+ }
+ }
+ int plcModbusAdd = modbusMinIndex + addPriIndex - 1;
+ string sqlCheck = $@"SELECT 1 FROM BAS_PLC_ITEM WHERE PLC_ITEM_CODE = '{ktb_plcItemCode.Text}'";
+ DataTable dtCheck = LeadDbHelperSQLite.Query(sqlCheck).Tables[0];
+ if (dtCheck != null && dtCheck.Rows.Count > 0)
+ {
+ //KryptonMessageBox.Show($"PLC编码:【{ktb_plcItemCode.Text}】已经被使用,请重新输入!");
+ KryptonMessageBox.Show($"PLC item code 【{0}】already exist, please re-enter");
+ return;
+ }
+ string sql = $@"
+ INSERT INTO [BAS_PLC_ITEM] (
+ [PLC_ITEM_CODE],
+ [PLC_ITEM_NAME],
+ [PLC_ITEM_TYPE],
+ [PLC_ITEM_DATA_TYPE],
+ [PLC_ITEM_DATA_LENGTH],
+ [PLC_ITEM_PRI_ADDRESS],
+ [PLC_ITEM_MODBUS_ADDRESS],
+ [PLC_ITEM_DEVIATION_ADDRESS],
+ [PLC_ITEM_VALUE],
+ [USED_FLAG],
+ [DEL_FLAG],
+ [CREATE_BY],
+ [CREATE_TIME],
+ [UPDATE_BY],
+ [UPDATE_TIME],
+ [DATA_VERSION],
+ [REMARKS1],
+ [REMARKS2],
+ [REMARKS3],
+ [REMARKS4],
+ [REMARKS5]
+ )
+ VALUES
+ (
+ '{ktb_plcItemCode.Text}',
+ '{ktb_plcItemName.Text}',
+ '{kcmb_plcItemType.SelectedIndex}',
+ '{kcmb_plcItemDataType.SelectedIndex}',
+ '{0}',
+ '{addPriIndex}',
+ '{plcModbusAdd}',
+ '{Convert.ToInt32(knud_plcItemDeviationAddress.Value)}',
+ NULL,
+ 1,
+ 0,
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ 0,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL
+ );
+ ";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ //KryptonMessageBox.Show("添加PLC变量数据成功!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增PLC变量数据成功!", "AddSuccessInfo"));
+ frmPlcItemConfig.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ //KryptonMessageBox.Show("添加PLC变量数据失败!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增PLC变量数据失败!", "AddFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增PLC变量数据发生异常", "AddPlcItemDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kcmb_plcItemDataType_SelectionChangeCommitted(object sender, EventArgs e)
+ {
+ if (kcmb_plcItemDataType.SelectedIndex == 0)
+ {
+ knud_plcItemPriAddress.Maximum = 4095;
+ }
+ else if (kcmb_plcItemDataType.SelectedIndex == 1)
+ {
+ knud_plcItemPriAddress.Maximum = 9999;
+ }
+ else if (kcmb_plcItemDataType.SelectedIndex == 2)
+ {
+ knud_plcItemPriAddress.Maximum = 377;
+ }
+ else if (kcmb_plcItemDataType.SelectedIndex == 3)
+ {
+ knud_plcItemPriAddress.Maximum = 377;
+ }
+ }
+
+ private void kryptonButton2_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmAddPlcItem.resx b/CleanMachineHMI/frmChild/frmAddPlcItem.resx
new file mode 100644
index 0000000..598d181
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddPlcItem.resx
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 17, 17
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmAddRole.Designer.cs b/CleanMachineHMI/frmChild/frmAddRole.Designer.cs
new file mode 100644
index 0000000..1a587bf
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddRole.Designer.cs
@@ -0,0 +1,197 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmAddRole
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.btnClose = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kcmb_roleGrade = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.lbGender = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtRoleName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbName = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtRoleCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbAccount = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_roleGrade)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.btnClose);
+ this.kryptonPanel1.Controls.Add(this.btnAdd);
+ this.kryptonPanel1.Controls.Add(this.kcmb_roleGrade);
+ this.kryptonPanel1.Controls.Add(this.lbGender);
+ this.kryptonPanel1.Controls.Add(this.txtRoleName);
+ this.kryptonPanel1.Controls.Add(this.lbName);
+ this.kryptonPanel1.Controls.Add(this.txtRoleCode);
+ this.kryptonPanel1.Controls.Add(this.lbAccount);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(289, 266);
+ this.kryptonPanel1.TabIndex = 1;
+ //
+ // btnClose
+ //
+ this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnClose.Location = new System.Drawing.Point(179, 214);
+ this.btnClose.Name = "btnClose";
+ this.btnClose.Size = new System.Drawing.Size(82, 40);
+ this.btnClose.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnClose.TabIndex = 35;
+ this.btnClose.Values.Text = "取消";
+ this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(29, 214);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(82, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 34;
+ this.btnAdd.Values.Text = "确认";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // kcmb_roleGrade
+ //
+ this.kcmb_roleGrade.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.kcmb_roleGrade.DropDownWidth = 271;
+ this.kcmb_roleGrade.Items.AddRange(new object[] {
+ "请选择",
+ "管理员",
+ "普通用户"});
+ this.kcmb_roleGrade.Location = new System.Drawing.Point(29, 172);
+ this.kcmb_roleGrade.Name = "kcmb_roleGrade";
+ this.kcmb_roleGrade.Size = new System.Drawing.Size(232, 31);
+ this.kcmb_roleGrade.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kcmb_roleGrade.TabIndex = 33;
+ //
+ // lbGender
+ //
+ this.lbGender.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbGender.Location = new System.Drawing.Point(29, 145);
+ this.lbGender.Name = "lbGender";
+ this.lbGender.Size = new System.Drawing.Size(82, 26);
+ this.lbGender.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbGender.TabIndex = 30;
+ this.lbGender.Values.Text = "角色级别:";
+ //
+ // txtRoleName
+ //
+ this.txtRoleName.AlwaysActive = false;
+ this.txtRoleName.Location = new System.Drawing.Point(29, 104);
+ this.txtRoleName.Name = "txtRoleName";
+ this.txtRoleName.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtRoleName.Size = new System.Drawing.Size(232, 35);
+ this.txtRoleName.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtRoleName.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.txtRoleName.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.txtRoleName.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtRoleName.StateCommon.Border.Rounding = 4;
+ this.txtRoleName.StateCommon.Border.Width = 2;
+ this.txtRoleName.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtRoleName.TabIndex = 25;
+ //
+ // lbName
+ //
+ this.lbName.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbName.Location = new System.Drawing.Point(29, 78);
+ this.lbName.Name = "lbName";
+ this.lbName.Size = new System.Drawing.Size(82, 26);
+ this.lbName.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbName.TabIndex = 24;
+ this.lbName.Values.Text = "角色名称:";
+ //
+ // txtRoleCode
+ //
+ this.txtRoleCode.AlwaysActive = false;
+ this.txtRoleCode.Location = new System.Drawing.Point(29, 37);
+ this.txtRoleCode.Name = "txtRoleCode";
+ this.txtRoleCode.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtRoleCode.Size = new System.Drawing.Size(232, 35);
+ this.txtRoleCode.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtRoleCode.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.txtRoleCode.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.txtRoleCode.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtRoleCode.StateCommon.Border.Rounding = 4;
+ this.txtRoleCode.StateCommon.Border.Width = 2;
+ this.txtRoleCode.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtRoleCode.TabIndex = 23;
+ //
+ // lbAccount
+ //
+ this.lbAccount.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbAccount.Location = new System.Drawing.Point(29, 10);
+ this.lbAccount.Name = "lbAccount";
+ this.lbAccount.Size = new System.Drawing.Size(82, 26);
+ this.lbAccount.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbAccount.TabIndex = 22;
+ this.lbAccount.Values.Text = "角色编码:";
+ //
+ // frmAddRole
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(289, 266);
+ this.Controls.Add(this.kryptonPanel1);
+ this.Name = "frmAddRole";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "frmAddRole";
+ this.Load += new System.EventHandler(this.frmAddRole_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_roleGrade)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnClose;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_roleGrade;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbGender;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtRoleName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbName;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtRoleCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbAccount;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmAddRole.cs b/CleanMachineHMI/frmChild/frmAddRole.cs
new file mode 100644
index 0000000..965be09
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddRole.cs
@@ -0,0 +1,166 @@
+using CleanMachineHMI.forms;
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.frmChild
+{
+ public partial class frmAddRole : KryptonForm
+ {
+ public frmAddRole()
+ {
+ InitializeComponent();
+ _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _ComboBoxLanguageTextList;
+ private DataTable _InfoLanguageTextList;
+
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ txtRoleCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtRoleCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtRoleName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtRoleName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmAddRole_Load(object sender, EventArgs e)
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ kcmb_roleGrade.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_roleGrade.Name, "KryptonComboBox"))
+ {
+ kcmb_roleGrade.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ }
+ kcmb_roleGrade.SelectedIndex = 0;
+ kryptonPanel1.Focus();
+ }
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (string.IsNullOrEmpty(txtRoleCode.Text))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入角色编码!", "EnterRoleCodeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtRoleName.Text))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入角色名称!", "EnterRoleNameInfo"));
+ return;
+ }
+ int roleGrade = 0;
+ if (kcmb_roleGrade.SelectedIndex == 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择角色级别!", "SelectRoleGradeInfo"));
+ return;
+ }
+ else if (kcmb_roleGrade.SelectedIndex == 1)
+ {
+ string sqlIsExistAdmin = $@"SELECT 1 FROM SYS_ROLE WHERE ROLE_GRADE = '100'";
+ DataTable dtIsExistAdmin = LeadDbHelperSQLite.Query(sqlIsExistAdmin).Tables[0];
+ if (dtIsExistAdmin != null && dtIsExistAdmin.Rows.Count > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("管理员角色只能存在一个,请重新选择!", "AdminOnlyInfo"));
+ return;
+ }
+ roleGrade = 100;
+ }
+ else
+ {
+ roleGrade = 1;
+ }
+ string sqlIsExistCode = $@"SELECT 1 FROM SYS_ROLE WHERE ROLE_CODE = '{txtRoleCode.Text}'";
+ DataTable dtIsExistCode = LeadDbHelperSQLite.Query(sqlIsExistCode).Tables[0];
+ if (dtIsExistCode != null && dtIsExistCode.Rows.Count > 0)
+ {
+ //KryptonMessageBox.Show($"角色名:【{txtRoleCode.Text}】已经存在,请重新输入!");
+ KryptonMessageBox.Show($"Role name 【{txtRoleCode.Text}】already exist, please re-enter!");
+ return;
+ }
+
+ string sql = $@"
+ INSERT INTO main.SYS_ROLE (
+ ROLE_CODE,
+ ROLE_NAME,
+ ROLE_GRADE,
+ USED_FLAG,
+ DEL_FLAG,
+ CREATE_BY,
+ CREATE_TIME,
+ UPDATE_BY,
+ UPDATE_TIME,
+ DATA_VERSION,
+ REMARKS1,
+ REMARKS2,
+ REMARKS3,
+ REMARKS4,
+ REMARKS5
+ )
+ VALUES
+ (
+ '{txtRoleCode.Text}',
+ '{txtRoleName.Text}',
+ '{roleGrade}',
+ 1,
+ 0,
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ 0,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL
+ );
+ ";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增角色数据成功!", "AddSuccessInfo"));
+ frmRole.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增角色数据失败!", "AddFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增角色数据发生异常", "AddRoleDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnClose_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmAddRole.resx b/CleanMachineHMI/frmChild/frmAddRole.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddRole.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmAddSheetType.Designer.cs b/CleanMachineHMI/frmChild/frmAddSheetType.Designer.cs
new file mode 100644
index 0000000..2c3ce12
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddSheetType.Designer.cs
@@ -0,0 +1,168 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmAddSheetType
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.txtSheetTypeName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbSheetTypeName = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtSheetTypeCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbSheetTypeCode = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.btnEdit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.txtSheetTypeName);
+ this.kryptonPanel1.Controls.Add(this.lbSheetTypeName);
+ this.kryptonPanel1.Controls.Add(this.txtSheetTypeCode);
+ this.kryptonPanel1.Controls.Add(this.lbSheetTypeCode);
+ this.kryptonPanel1.Controls.Add(this.btnEdit);
+ this.kryptonPanel1.Controls.Add(this.btnAdd);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(289, 227);
+ this.kryptonPanel1.TabIndex = 1;
+ //
+ // txtSheetTypeName
+ //
+ this.txtSheetTypeName.AlwaysActive = false;
+ this.txtSheetTypeName.Location = new System.Drawing.Point(23, 114);
+ this.txtSheetTypeName.Name = "txtSheetTypeName";
+ this.txtSheetTypeName.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtSheetTypeName.Size = new System.Drawing.Size(243, 35);
+ this.txtSheetTypeName.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtSheetTypeName.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.txtSheetTypeName.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.txtSheetTypeName.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtSheetTypeName.StateCommon.Border.Rounding = 4;
+ this.txtSheetTypeName.StateCommon.Border.Width = 2;
+ this.txtSheetTypeName.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtSheetTypeName.TabIndex = 39;
+ //
+ // lbSheetTypeName
+ //
+ this.lbSheetTypeName.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbSheetTypeName.Location = new System.Drawing.Point(22, 87);
+ this.lbSheetTypeName.Name = "lbSheetTypeName";
+ this.lbSheetTypeName.Size = new System.Drawing.Size(115, 26);
+ this.lbSheetTypeName.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbSheetTypeName.TabIndex = 38;
+ this.lbSheetTypeName.Values.Text = "板材类型名称:";
+ //
+ // txtSheetTypeCode
+ //
+ this.txtSheetTypeCode.AlwaysActive = false;
+ this.txtSheetTypeCode.Location = new System.Drawing.Point(23, 43);
+ this.txtSheetTypeCode.Name = "txtSheetTypeCode";
+ this.txtSheetTypeCode.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtSheetTypeCode.Size = new System.Drawing.Size(243, 35);
+ this.txtSheetTypeCode.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtSheetTypeCode.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.txtSheetTypeCode.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.txtSheetTypeCode.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtSheetTypeCode.StateCommon.Border.Rounding = 4;
+ this.txtSheetTypeCode.StateCommon.Border.Width = 2;
+ this.txtSheetTypeCode.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtSheetTypeCode.TabIndex = 37;
+ //
+ // lbSheetTypeCode
+ //
+ this.lbSheetTypeCode.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbSheetTypeCode.Location = new System.Drawing.Point(23, 16);
+ this.lbSheetTypeCode.Name = "lbSheetTypeCode";
+ this.lbSheetTypeCode.Size = new System.Drawing.Size(115, 26);
+ this.lbSheetTypeCode.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbSheetTypeCode.TabIndex = 36;
+ this.lbSheetTypeCode.Values.Text = "板材类型编码:";
+ //
+ // btnEdit
+ //
+ this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnEdit.Location = new System.Drawing.Point(183, 166);
+ this.btnEdit.Name = "btnEdit";
+ this.btnEdit.Size = new System.Drawing.Size(82, 40);
+ this.btnEdit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnEdit.TabIndex = 35;
+ this.btnEdit.Values.Text = "取消";
+ this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(23, 166);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(82, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 34;
+ this.btnAdd.Values.Text = "确认";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // frmAddSheetType
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(289, 227);
+ this.Controls.Add(this.kryptonPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmAddSheetType";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "frmAddSheetType";
+ this.Load += new System.EventHandler(this.frmAddSheetType_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnEdit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtSheetTypeName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbSheetTypeName;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtSheetTypeCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbSheetTypeCode;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmAddSheetType.cs b/CleanMachineHMI/frmChild/frmAddSheetType.cs
new file mode 100644
index 0000000..9feb919
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddSheetType.cs
@@ -0,0 +1,135 @@
+using CleanMachineHMI.forms;
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.frmChild
+{
+ public partial class frmAddSheetType : KryptonForm
+ {
+ public frmAddSheetType()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _InfoLanguageTextList;
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (string.IsNullOrEmpty(txtSheetTypeCode.Text))
+ {
+ //KryptonMessageBox.Show("请输入板材编码!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入板材编码!", "EnterSheetTypeCodeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtSheetTypeName.Text))
+ {
+ //KryptonMessageBox.Show("请输入板材名称!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入板材名称!", "EnterSheetTypeNameInfo"));
+ return;
+ }
+ string sqlIsExistCode = $@"SELECT 1 FROM BAS_SHEET_TYPE WHERE SHEET_TYPE_CODE = '{txtSheetTypeCode.Text}'";
+ DataTable dtIsExistCode = LeadDbHelperSQLite.Query(sqlIsExistCode).Tables[0];
+ if (dtIsExistCode != null && dtIsExistCode.Rows.Count > 0)
+ {
+ //KryptonMessageBox.Show($"板材条码:【{txtSheetTypeCode.Text}】已经存在,请重新输入!");
+ KryptonMessageBox.Show($"Sheet type code 【{txtSheetTypeCode.Text}】already exist, please re-enter!");
+ return;
+ }
+ string sql = $@"
+ INSERT INTO BAS_SHEET_TYPE (
+ SHEET_TYPE_CODE,
+ SHEET_TYPE_NAME,
+ USED_FLAG,
+ DEL_FLAG,
+ CREATE_BY,
+ CREATE_TIME,
+ UPDATE_BY,
+ UPDATE_TIME,
+ DATA_VERSION,
+ REMARKS1,
+ REMARKS2,
+ REMARKS3,
+ REMARKS4,
+ REMARKS5
+ )
+ VALUES
+ (
+ '{txtSheetTypeCode.Text}',
+ '{txtSheetTypeName.Text}',
+ 1,
+ 0,
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ 0,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL
+ );
+ ";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ //KryptonMessageBox.Show("新增板材数据成功!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增板材数据成功!", "AddSuccessInfo"));
+ frmSheetType.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ //KryptonMessageBox.Show("新增板材数据失败!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增板材数据失败!", "AddFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增板材类型数据发生异常", "AddSheetTypeDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnEdit_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ txtSheetTypeCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtSheetTypeCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtSheetTypeName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtSheetTypeName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmAddSheetType_Load(object sender, EventArgs e)
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ kryptonPanel1.Focus();
+
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmAddSheetType.resx b/CleanMachineHMI/frmChild/frmAddSheetType.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddSheetType.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmAddUser.Designer.cs b/CleanMachineHMI/frmChild/frmAddUser.Designer.cs
new file mode 100644
index 0000000..23f80c1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddUser.Designer.cs
@@ -0,0 +1,302 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmAddUser
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.btnClose = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.cmbGender = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.lbGender = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtPS1 = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbPS1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtPS = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbPS = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbName = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtAccount = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbAccount = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.klb_Role = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kcmb_Role = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.cmbGender)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_Role)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.btnClose);
+ this.kryptonPanel1.Controls.Add(this.btnAdd);
+ this.kryptonPanel1.Controls.Add(this.kcmb_Role);
+ this.kryptonPanel1.Controls.Add(this.cmbGender);
+ this.kryptonPanel1.Controls.Add(this.klb_Role);
+ this.kryptonPanel1.Controls.Add(this.lbGender);
+ this.kryptonPanel1.Controls.Add(this.txtPS1);
+ this.kryptonPanel1.Controls.Add(this.lbPS1);
+ this.kryptonPanel1.Controls.Add(this.txtPS);
+ this.kryptonPanel1.Controls.Add(this.lbPS);
+ this.kryptonPanel1.Controls.Add(this.txtName);
+ this.kryptonPanel1.Controls.Add(this.lbName);
+ this.kryptonPanel1.Controls.Add(this.txtAccount);
+ this.kryptonPanel1.Controls.Add(this.lbAccount);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(289, 483);
+ this.kryptonPanel1.TabIndex = 0;
+ //
+ // btnClose
+ //
+ this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnClose.Location = new System.Drawing.Point(179, 422);
+ this.btnClose.Name = "btnClose";
+ this.btnClose.Size = new System.Drawing.Size(82, 40);
+ this.btnClose.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnClose.TabIndex = 35;
+ this.btnClose.Values.Text = "取消";
+ this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(29, 422);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(82, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 34;
+ this.btnAdd.Values.Text = "确认";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // cmbGender
+ //
+ this.cmbGender.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cmbGender.DropDownWidth = 271;
+ this.cmbGender.Items.AddRange(new object[] {
+ "请选择",
+ "男",
+ "女"});
+ this.cmbGender.Location = new System.Drawing.Point(29, 305);
+ this.cmbGender.Name = "cmbGender";
+ this.cmbGender.Size = new System.Drawing.Size(232, 31);
+ this.cmbGender.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.cmbGender.TabIndex = 33;
+ //
+ // lbGender
+ //
+ this.lbGender.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbGender.Location = new System.Drawing.Point(29, 278);
+ this.lbGender.Name = "lbGender";
+ this.lbGender.Size = new System.Drawing.Size(49, 26);
+ this.lbGender.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbGender.TabIndex = 30;
+ this.lbGender.Values.Text = "性别:";
+ //
+ // txtPS1
+ //
+ this.txtPS1.AlwaysActive = false;
+ this.txtPS1.Location = new System.Drawing.Point(29, 237);
+ this.txtPS1.Name = "txtPS1";
+ this.txtPS1.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtPS1.PasswordChar = '*';
+ this.txtPS1.Size = new System.Drawing.Size(232, 35);
+ this.txtPS1.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtPS1.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.txtPS1.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.txtPS1.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtPS1.StateCommon.Border.Rounding = 4;
+ this.txtPS1.StateCommon.Border.Width = 2;
+ this.txtPS1.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtPS1.TabIndex = 29;
+ //
+ // lbPS1
+ //
+ this.lbPS1.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbPS1.Location = new System.Drawing.Point(29, 211);
+ this.lbPS1.Name = "lbPS1";
+ this.lbPS1.Size = new System.Drawing.Size(82, 26);
+ this.lbPS1.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbPS1.TabIndex = 28;
+ this.lbPS1.Values.Text = "密码确认:";
+ //
+ // txtPS
+ //
+ this.txtPS.AlwaysActive = false;
+ this.txtPS.Location = new System.Drawing.Point(29, 170);
+ this.txtPS.Name = "txtPS";
+ this.txtPS.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtPS.PasswordChar = '*';
+ this.txtPS.Size = new System.Drawing.Size(232, 35);
+ this.txtPS.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtPS.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.txtPS.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.txtPS.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtPS.StateCommon.Border.Rounding = 4;
+ this.txtPS.StateCommon.Border.Width = 2;
+ this.txtPS.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtPS.TabIndex = 27;
+ //
+ // lbPS
+ //
+ this.lbPS.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbPS.Location = new System.Drawing.Point(29, 145);
+ this.lbPS.Name = "lbPS";
+ this.lbPS.Size = new System.Drawing.Size(82, 26);
+ this.lbPS.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbPS.TabIndex = 26;
+ this.lbPS.Values.Text = "登陆密码:";
+ //
+ // txtName
+ //
+ this.txtName.AlwaysActive = false;
+ this.txtName.Location = new System.Drawing.Point(29, 104);
+ this.txtName.Name = "txtName";
+ this.txtName.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtName.Size = new System.Drawing.Size(232, 35);
+ this.txtName.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtName.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.txtName.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.txtName.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtName.StateCommon.Border.Rounding = 4;
+ this.txtName.StateCommon.Border.Width = 2;
+ this.txtName.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtName.TabIndex = 25;
+ //
+ // lbName
+ //
+ this.lbName.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbName.Location = new System.Drawing.Point(29, 78);
+ this.lbName.Name = "lbName";
+ this.lbName.Size = new System.Drawing.Size(82, 26);
+ this.lbName.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbName.TabIndex = 24;
+ this.lbName.Values.Text = "用户姓名:";
+ //
+ // txtAccount
+ //
+ this.txtAccount.AlwaysActive = false;
+ this.txtAccount.Location = new System.Drawing.Point(29, 37);
+ this.txtAccount.Name = "txtAccount";
+ this.txtAccount.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtAccount.Size = new System.Drawing.Size(232, 35);
+ this.txtAccount.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtAccount.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.txtAccount.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.txtAccount.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtAccount.StateCommon.Border.Rounding = 4;
+ this.txtAccount.StateCommon.Border.Width = 2;
+ this.txtAccount.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtAccount.TabIndex = 23;
+ //
+ // lbAccount
+ //
+ this.lbAccount.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbAccount.Location = new System.Drawing.Point(29, 10);
+ this.lbAccount.Name = "lbAccount";
+ this.lbAccount.Size = new System.Drawing.Size(82, 26);
+ this.lbAccount.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbAccount.TabIndex = 22;
+ this.lbAccount.Values.Text = "用户账号:";
+ //
+ // klb_Role
+ //
+ this.klb_Role.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.klb_Role.Location = new System.Drawing.Point(29, 342);
+ this.klb_Role.Name = "klb_Role";
+ this.klb_Role.Size = new System.Drawing.Size(82, 26);
+ this.klb_Role.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Role.TabIndex = 30;
+ this.klb_Role.Values.Text = "所属角色:";
+ //
+ // kcmb_Role
+ //
+ this.kcmb_Role.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.kcmb_Role.DropDownWidth = 271;
+ this.kcmb_Role.Location = new System.Drawing.Point(29, 369);
+ this.kcmb_Role.Name = "kcmb_Role";
+ this.kcmb_Role.Size = new System.Drawing.Size(232, 31);
+ this.kcmb_Role.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kcmb_Role.TabIndex = 33;
+ //
+ // frmAddUser
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(289, 483);
+ this.Controls.Add(this.kryptonPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmAddUser";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "frmAddUser";
+ this.Load += new System.EventHandler(this.frmAddUser_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.cmbGender)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_Role)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox cmbGender;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbGender;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtPS1;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbPS1;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtPS;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbPS;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbName;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtAccount;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbAccount;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnClose;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_Role;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Role;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmAddUser.cs b/CleanMachineHMI/frmChild/frmAddUser.cs
new file mode 100644
index 0000000..0f46435
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddUser.cs
@@ -0,0 +1,209 @@
+using CleanMachineHMI.forms;
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.Web.UI.WebControls;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.frmChild
+{
+ public partial class frmAddUser : KryptonForm
+ {
+ public frmAddUser()
+ {
+ InitializeComponent();
+ _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _ComboBoxLanguageTextList;
+ private DataTable _InfoLanguageTextList;
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ txtAccount.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtAccount.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtPS.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtPS.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtPS1.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtPS1.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmAddUser_Load(object sender, EventArgs e)
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ cmbGender.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(cmbGender.Name, "KryptonComboBox"))
+ {
+ cmbGender.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ }
+ string sql = $"SELECT ROLE_ID,ROLE_CODE,ROLE_NAME FROM SYS_ROLE ";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ kcmb_Role.Items.Clear();
+ kcmb_Role.Items.Add(new ListItem
+ {
+ Value = "0",
+ Text = "Please Select",
+ });
+ foreach (DataRow item in dt.Rows)
+ {
+ kcmb_Role.Items.Add(new ListItem
+ {
+ Value = item["ROLE_ID"].ToString(),
+ Text = item["ROLE_CODE"].ToString(),
+ });
+ }
+ }
+ kcmb_Role.SelectedIndex = 0;
+ cmbGender.SelectedIndex = 0;
+ kryptonPanel1.Focus();
+ }
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (string.IsNullOrEmpty(txtAccount.Text))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入用户编码!", "EnterUserCodeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtName.Text))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入用户名称!", "EnterUserNameInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtPS.Text))
+ {
+ //KryptonMessageBox.Show("请输入用户密码!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入用户密码!", "EnterUserPasswordInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtPS1.Text))
+ {
+ //KryptonMessageBox.Show("请确认用户密码!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请确认用户密码!", "ConfirmUserPasswordInfo"));
+ return;
+ }
+ if (cmbGender.SelectedIndex == 0)
+ {
+ //KryptonMessageBox.Show("请选择性别!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择性别!", "SelectUserGenderInfo"));
+ return;
+ }
+ if (kcmb_Role.SelectedIndex == 0)
+ {
+ //KryptonMessageBox.Show("请选择所属角色!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择所属角色!", "SelectUserRoleInfo"));
+ return;
+ }
+ if (txtPS1.Text != txtPS.Text)
+ {
+ //KryptonMessageBox.Show("两次输入的密码不同,请重新输入!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("两次输入的密码不同,请重新输入!", "ConfirmUserPasswordErrInfo"));
+ return;
+ }
+ string sqlIsExistCode = $@"SELECT 1 FROM SYS_USER WHERE USER_CODE = '{txtAccount.Text}'";
+ DataTable dtIsExistCode = LeadDbHelperSQLite.Query(sqlIsExistCode).Tables[0];
+ if (dtIsExistCode != null && dtIsExistCode.Rows.Count > 0)
+ {
+ //KryptonMessageBox.Show($"用户名:【{txtAccount.Text}】已经存在,请重新输入!");
+ KryptonMessageBox.Show($"User name 【{txtAccount.Text}】already exist, please re-enter!");
+ return;
+ }
+
+ string sql = $@"
+ INSERT INTO SYS_USER (
+ USER_CODE,
+ USER_NAME,
+ PASSWORD,
+ GENDER,
+ SCHEDULE_CODE,
+ ROLE_ID,
+ USED_FLAG,
+ DEL_FLAG,
+ CREATE_BY,
+ CREATE_TIME,
+ UPDATE_BY,
+ UPDATE_TIME,
+ DATA_VERSION,
+ REMARKS1,
+ REMARKS2,
+ REMARKS3,
+ REMARKS4,
+ REMARKS5
+ )
+ VALUES
+ (
+ '{txtAccount.Text}',
+ '{txtName.Text}',
+ '{txtPS1.Text}',
+ '{cmbGender.SelectedIndex}',
+ '1',
+ '{((ListItem)kcmb_Role.SelectedItem).Value}',
+ 1,
+ 0,
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ 0,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL
+ );
+ ";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ //KryptonMessageBox.Show("新增用户数据成功!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增用户数据成功!", "AddSuccessInfo"));
+ frmUser.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ //KryptonMessageBox.Show("新增用户数据失败!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增用户数据失败!", "AddFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增用户数据发生异常", "AddUserDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnClose_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmAddUser.resx b/CleanMachineHMI/frmChild/frmAddUser.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddUser.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmAddWaringMsg.Designer.cs b/CleanMachineHMI/frmChild/frmAddWaringMsg.Designer.cs
new file mode 100644
index 0000000..7444594
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddWaringMsg.Designer.cs
@@ -0,0 +1,280 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmAddWaringMsg
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kcmb_WarningType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.ktb_PlcCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.txtWarningMessage = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbWarningMessage = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtWarningName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbWarningName = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtWarningCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbWarningCode = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.btnEdit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_WarningType)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kcmb_WarningType);
+ this.kryptonPanel1.Controls.Add(this.ktb_PlcCode);
+ this.kryptonPanel1.Controls.Add(this.txtWarningMessage);
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel2);
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel1);
+ this.kryptonPanel1.Controls.Add(this.lbWarningMessage);
+ this.kryptonPanel1.Controls.Add(this.txtWarningName);
+ this.kryptonPanel1.Controls.Add(this.lbWarningName);
+ this.kryptonPanel1.Controls.Add(this.txtWarningCode);
+ this.kryptonPanel1.Controls.Add(this.lbWarningCode);
+ this.kryptonPanel1.Controls.Add(this.btnEdit);
+ this.kryptonPanel1.Controls.Add(this.btnAdd);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(289, 441);
+ this.kryptonPanel1.TabIndex = 6;
+ //
+ // kcmb_WarningType
+ //
+ this.kcmb_WarningType.DropDownWidth = 236;
+ this.kcmb_WarningType.Items.AddRange(new object[] {
+ "请选择",
+ "清洁机报警",
+ "变频器报警"});
+ this.kcmb_WarningType.Location = new System.Drawing.Point(23, 330);
+ this.kcmb_WarningType.Name = "kcmb_WarningType";
+ this.kcmb_WarningType.Size = new System.Drawing.Size(242, 33);
+ this.kcmb_WarningType.StateActive.ComboBox.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.kcmb_WarningType.StateActive.ComboBox.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.kcmb_WarningType.StateCommon.ComboBox.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.kcmb_WarningType.StateCommon.ComboBox.Border.Rounding = 4;
+ this.kcmb_WarningType.StateCommon.ComboBox.Border.Width = 2;
+ this.kcmb_WarningType.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kcmb_WarningType.TabIndex = 42;
+ //
+ // ktb_PlcCode
+ //
+ this.ktb_PlcCode.AlwaysActive = false;
+ this.ktb_PlcCode.Location = new System.Drawing.Point(23, 256);
+ this.ktb_PlcCode.Name = "ktb_PlcCode";
+ this.ktb_PlcCode.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.ktb_PlcCode.Size = new System.Drawing.Size(242, 35);
+ this.ktb_PlcCode.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.ktb_PlcCode.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.ktb_PlcCode.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.ktb_PlcCode.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.ktb_PlcCode.StateCommon.Border.Rounding = 4;
+ this.ktb_PlcCode.StateCommon.Border.Width = 2;
+ this.ktb_PlcCode.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.ktb_PlcCode.TabIndex = 41;
+ //
+ // txtWarningMessage
+ //
+ this.txtWarningMessage.AlwaysActive = false;
+ this.txtWarningMessage.Location = new System.Drawing.Point(23, 185);
+ this.txtWarningMessage.Name = "txtWarningMessage";
+ this.txtWarningMessage.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtWarningMessage.Size = new System.Drawing.Size(242, 35);
+ this.txtWarningMessage.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtWarningMessage.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.txtWarningMessage.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.txtWarningMessage.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtWarningMessage.StateCommon.Border.Rounding = 4;
+ this.txtWarningMessage.StateCommon.Border.Width = 2;
+ this.txtWarningMessage.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtWarningMessage.TabIndex = 41;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.kryptonLabel2.Location = new System.Drawing.Point(23, 297);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(82, 26);
+ this.kryptonLabel2.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel2.TabIndex = 40;
+ this.kryptonLabel2.Values.Text = "报警类型:";
+ //
+ // kryptonLabel1
+ //
+ this.kryptonLabel1.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.kryptonLabel1.Location = new System.Drawing.Point(23, 226);
+ this.kryptonLabel1.Name = "kryptonLabel1";
+ this.kryptonLabel1.Size = new System.Drawing.Size(80, 26);
+ this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel1.TabIndex = 40;
+ this.kryptonLabel1.Values.Text = "PLC信息:";
+ //
+ // lbWarningMessage
+ //
+ this.lbWarningMessage.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbWarningMessage.Location = new System.Drawing.Point(23, 155);
+ this.lbWarningMessage.Name = "lbWarningMessage";
+ this.lbWarningMessage.Size = new System.Drawing.Size(82, 26);
+ this.lbWarningMessage.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbWarningMessage.TabIndex = 40;
+ this.lbWarningMessage.Values.Text = "报警消息:";
+ //
+ // txtWarningName
+ //
+ this.txtWarningName.AlwaysActive = false;
+ this.txtWarningName.Location = new System.Drawing.Point(23, 112);
+ this.txtWarningName.Name = "txtWarningName";
+ this.txtWarningName.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtWarningName.Size = new System.Drawing.Size(242, 35);
+ this.txtWarningName.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtWarningName.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.txtWarningName.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.txtWarningName.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtWarningName.StateCommon.Border.Rounding = 4;
+ this.txtWarningName.StateCommon.Border.Width = 2;
+ this.txtWarningName.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtWarningName.TabIndex = 39;
+ //
+ // lbWarningName
+ //
+ this.lbWarningName.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbWarningName.Location = new System.Drawing.Point(23, 86);
+ this.lbWarningName.Name = "lbWarningName";
+ this.lbWarningName.Size = new System.Drawing.Size(82, 26);
+ this.lbWarningName.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbWarningName.TabIndex = 38;
+ this.lbWarningName.Values.Text = "报警名称:";
+ //
+ // txtWarningCode
+ //
+ this.txtWarningCode.AlwaysActive = false;
+ this.txtWarningCode.Location = new System.Drawing.Point(23, 45);
+ this.txtWarningCode.Name = "txtWarningCode";
+ this.txtWarningCode.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtWarningCode.Size = new System.Drawing.Size(242, 35);
+ this.txtWarningCode.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtWarningCode.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.txtWarningCode.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.txtWarningCode.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtWarningCode.StateCommon.Border.Rounding = 4;
+ this.txtWarningCode.StateCommon.Border.Width = 2;
+ this.txtWarningCode.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtWarningCode.TabIndex = 37;
+ //
+ // lbWarningCode
+ //
+ this.lbWarningCode.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbWarningCode.Location = new System.Drawing.Point(23, 13);
+ this.lbWarningCode.Name = "lbWarningCode";
+ this.lbWarningCode.Size = new System.Drawing.Size(82, 26);
+ this.lbWarningCode.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbWarningCode.TabIndex = 36;
+ this.lbWarningCode.Values.Text = "报警编码:";
+ //
+ // btnEdit
+ //
+ this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnEdit.Location = new System.Drawing.Point(183, 382);
+ this.btnEdit.Name = "btnEdit";
+ this.btnEdit.Size = new System.Drawing.Size(82, 40);
+ this.btnEdit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnEdit.TabIndex = 35;
+ this.btnEdit.Values.Text = "取消";
+ this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(23, 382);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(82, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 34;
+ this.btnAdd.Values.Text = "确认";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // frmAddWaringMsg
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(289, 441);
+ this.Controls.Add(this.kryptonPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmAddWaringMsg";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "AddWaringMsg";
+ this.Load += new System.EventHandler(this.frmAddWaringMsg_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_WarningType)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnEdit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtWarningMessage;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbWarningMessage;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtWarningName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbWarningName;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtWarningCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbWarningCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_PlcCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_WarningType;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmAddWaringMsg.cs b/CleanMachineHMI/frmChild/frmAddWaringMsg.cs
new file mode 100644
index 0000000..37cfe8d
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddWaringMsg.cs
@@ -0,0 +1,164 @@
+using CleanMachineHMI.forms;
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.frmChild
+{
+ public partial class frmAddWaringMsg : KryptonForm
+ {
+ public frmAddWaringMsg()
+ {
+ InitializeComponent();
+ _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _ComboBoxLanguageTextList;
+ private DataTable _InfoLanguageTextList;
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ txtWarningCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtWarningCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtWarningName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtWarningName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtWarningMessage.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtWarningMessage.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ ktb_PlcCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_PlcCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmAddWaringMsg_Load(object sender, EventArgs e)
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ kcmb_WarningType.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_WarningType.Name, "KryptonComboBox"))
+ {
+ kcmb_WarningType.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ }
+ kcmb_WarningType.SelectedIndex = 0;
+ kryptonPanel1.Focus();
+ }
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (string.IsNullOrEmpty(txtWarningCode.Text))
+ {
+ //KryptonMessageBox.Show("请输入报警条码!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入报警条码!", "EnterWarningCodeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtWarningName.Text))
+ {
+ //KryptonMessageBox.Show("请输入报警名称!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入报警名称!", "EnterWarningNameInfo"));
+ return;
+ }
+ if (kcmb_WarningType.SelectedIndex == 0)
+ {
+ //KryptonMessageBox.Show("请选择报警类型!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择报警类型!", "SelectWarningTypeInfo"));
+ return;
+ }
+ string sqlIsExistCode = $@"SELECT 1 FROM BAS_WARNING WHERE WARNING_TYPE = '{kcmb_WarningType.SelectedIndex}' AND PLC_ITEM_CODE = '{ktb_PlcCode.Text}' AND WARNING_CODE = '{txtWarningCode.Text}'";
+ DataTable dtIsExistCode = LeadDbHelperSQLite.Query(sqlIsExistCode).Tables[0];
+ if (dtIsExistCode != null && dtIsExistCode.Rows.Count > 0)
+ {
+ //KryptonMessageBox.Show($"相同报警类类型:【{kcmb_WarningType.Text}】,PLC条码:【{ktb_PlcCode.Text}】的报警编码:【{txtWarningCode.Text}】已经存在,请重新输入!");
+ KryptonMessageBox.Show($"Same alarm type: [{kcmb_WarningType.Text}],PLC item code: [{ktb_PlcCode.Text}] alarm code: [{txtWarningCode.Text}] already exists, please re-enter!");
+ return;
+ }
+ string sql = $@"
+ INSERT INTO BAS_WARNING (
+ WARNING_CODE,
+ WARNING_NAME,
+ PLC_ITEM_CODE,
+ WARNING_TYPE,
+ WARNING_MESSAGE,
+ USED_FLAG,
+ DEL_FLAG,
+ CREATE_BY,
+ CREATE_TIME,
+ UPDATE_BY,
+ UPDATE_TIME,
+ DATA_VERSION,
+ REMARKS1,
+ REMARKS2,
+ REMARKS3,
+ REMARKS4,
+ REMARKS5
+ )
+ VALUES
+ (
+ '{txtWarningCode.Text}',
+ '{txtWarningName.Text}',
+ '{ktb_PlcCode.Text}',
+ '{kcmb_WarningType.SelectedIndex}',
+ '{txtWarningMessage.Text}',
+ 1,
+ 0,
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ '{GlobalHelper.UserInfo.USER_ID}',
+ datetime('now', 'localtime'),
+ 0,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL
+ );
+ ";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ //KryptonMessageBox.Show("新增基础报警数据成功!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增基础报警数据成功!", "AddSuccessInfo"));
+ frmWarning.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ //KryptonMessageBox.Show("新增基础报警数据失败!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增基础报警数据失败!", "AddFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ //KryptonMessageBox.Show(ex.Message);
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增基础报警数据发生异常", "AddWarningDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnEdit_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmAddWaringMsg.resx b/CleanMachineHMI/frmChild/frmAddWaringMsg.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmAddWaringMsg.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditCleanCode.Designer.cs b/CleanMachineHMI/frmChild/frmEditCleanCode.Designer.cs
new file mode 100644
index 0000000..431fc74
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditCleanCode.Designer.cs
@@ -0,0 +1,168 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmEditCleanCode
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.txtCleanModeName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.txtCleanModeCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbCleanModeName = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbCleanModeCode = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.btnEdit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.txtCleanModeName);
+ this.kryptonPanel1.Controls.Add(this.txtCleanModeCode);
+ this.kryptonPanel1.Controls.Add(this.lbCleanModeName);
+ this.kryptonPanel1.Controls.Add(this.lbCleanModeCode);
+ this.kryptonPanel1.Controls.Add(this.btnEdit);
+ this.kryptonPanel1.Controls.Add(this.btnAdd);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(289, 227);
+ this.kryptonPanel1.TabIndex = 4;
+ //
+ // txtCleanModeName
+ //
+ this.txtCleanModeName.AlwaysActive = false;
+ this.txtCleanModeName.Location = new System.Drawing.Point(21, 110);
+ this.txtCleanModeName.Name = "txtCleanModeName";
+ this.txtCleanModeName.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtCleanModeName.Size = new System.Drawing.Size(250, 35);
+ this.txtCleanModeName.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtCleanModeName.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.txtCleanModeName.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.txtCleanModeName.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtCleanModeName.StateCommon.Border.Rounding = 4;
+ this.txtCleanModeName.StateCommon.Border.Width = 2;
+ this.txtCleanModeName.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtCleanModeName.TabIndex = 39;
+ //
+ // txtCleanModeCode
+ //
+ this.txtCleanModeCode.AlwaysActive = false;
+ this.txtCleanModeCode.Location = new System.Drawing.Point(21, 39);
+ this.txtCleanModeCode.Name = "txtCleanModeCode";
+ this.txtCleanModeCode.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtCleanModeCode.Size = new System.Drawing.Size(250, 35);
+ this.txtCleanModeCode.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtCleanModeCode.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.txtCleanModeCode.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.txtCleanModeCode.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtCleanModeCode.StateCommon.Border.Rounding = 4;
+ this.txtCleanModeCode.StateCommon.Border.Width = 2;
+ this.txtCleanModeCode.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtCleanModeCode.TabIndex = 38;
+ //
+ // lbCleanModeName
+ //
+ this.lbCleanModeName.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbCleanModeName.Location = new System.Drawing.Point(20, 82);
+ this.lbCleanModeName.Name = "lbCleanModeName";
+ this.lbCleanModeName.Size = new System.Drawing.Size(115, 26);
+ this.lbCleanModeName.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbCleanModeName.TabIndex = 37;
+ this.lbCleanModeName.Values.Text = "清洁方式名称:";
+ //
+ // lbCleanModeCode
+ //
+ this.lbCleanModeCode.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbCleanModeCode.Location = new System.Drawing.Point(20, 11);
+ this.lbCleanModeCode.Name = "lbCleanModeCode";
+ this.lbCleanModeCode.Size = new System.Drawing.Size(115, 26);
+ this.lbCleanModeCode.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbCleanModeCode.TabIndex = 36;
+ this.lbCleanModeCode.Values.Text = "清洁方式编码:";
+ //
+ // btnEdit
+ //
+ this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnEdit.Location = new System.Drawing.Point(183, 166);
+ this.btnEdit.Name = "btnEdit";
+ this.btnEdit.Size = new System.Drawing.Size(82, 40);
+ this.btnEdit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnEdit.TabIndex = 35;
+ this.btnEdit.Values.Text = "取消";
+ this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(23, 166);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(82, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 34;
+ this.btnAdd.Values.Text = "确认";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // frmEditCleanCode
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(289, 227);
+ this.Controls.Add(this.kryptonPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmEditCleanCode";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "EditCleanCode";
+ this.Load += new System.EventHandler(this.frmEditCleanCode_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtCleanModeName;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtCleanModeCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbCleanModeName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbCleanModeCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnEdit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditCleanCode.cs b/CleanMachineHMI/frmChild/frmEditCleanCode.cs
new file mode 100644
index 0000000..15b87f0
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditCleanCode.cs
@@ -0,0 +1,107 @@
+using CleanMachineHMI.forms;
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.frmChild
+{
+ public partial class frmEditCleanCode : KryptonForm
+ {
+ public frmEditCleanCode()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _InfoLanguageTextList;
+ public string CleanModeId { get; set; }
+ private void frmAddCleanCode_Load(object sender, EventArgs e)
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ txtCleanModeCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtCleanModeCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtCleanModeName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtCleanModeName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmEditCleanCode_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ string sql = $@"SELECT * FROM BAS_CLEAN_MODE WHERE CLEAN_MODE_ID = '{CleanModeId}'";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ txtCleanModeCode.Text = dt.Rows[0]["CLEAN_MODE_CODE"].ToString();
+ txtCleanModeCode.Enabled = false;
+ txtCleanModeName.Text = dt.Rows[0]["CLEAN_MODE_NAME"].ToString();
+ }
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ kryptonPanel1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("修改清洁方式数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (string.IsNullOrEmpty(txtCleanModeName.Text))
+ {
+ //KryptonMessageBox.Show("请输入板材名称!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入清洗方式名称!", "EnterCleanNameInfo"));
+ return;
+ }
+ string sql = $@"update BAS_CLEAN_MODE set CLEAN_MODE_NAME = '{txtCleanModeName.Text}',UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime') where CLEAN_MODE_ID = '{CleanModeId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ //KryptonMessageBox.Show("修改清洗方式数据成功!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑清洗方式数据成功!", "EditSuccessInfo"));
+ frmCleanMode.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ //KryptonMessageBox.Show("修改清洗方式数据失败!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑清洗方式数据失败!", "EditFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑清洗方式数据发生异常", "EditCleanModeDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnEdit_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmEditCleanCode.resx b/CleanMachineHMI/frmChild/frmEditCleanCode.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditCleanCode.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditContaminationDtl.Designer.cs b/CleanMachineHMI/frmChild/frmEditContaminationDtl.Designer.cs
new file mode 100644
index 0000000..bd99499
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditContaminationDtl.Designer.cs
@@ -0,0 +1,196 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmEditContaminationDtl
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.cmbContaminationType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.txtContaminationDTLName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.txtContaminationDTLCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbContaminationType = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbContaminationDTLName = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbContaminationDTLCode = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.btnEdit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.cmbContaminationType)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.cmbContaminationType);
+ this.kryptonPanel1.Controls.Add(this.txtContaminationDTLName);
+ this.kryptonPanel1.Controls.Add(this.txtContaminationDTLCode);
+ this.kryptonPanel1.Controls.Add(this.lbContaminationType);
+ this.kryptonPanel1.Controls.Add(this.lbContaminationDTLName);
+ this.kryptonPanel1.Controls.Add(this.lbContaminationDTLCode);
+ this.kryptonPanel1.Controls.Add(this.btnEdit);
+ this.kryptonPanel1.Controls.Add(this.btnAdd);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(334, 290);
+ this.kryptonPanel1.TabIndex = 6;
+ //
+ // cmbContaminationType
+ //
+ this.cmbContaminationType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cmbContaminationType.DropDownWidth = 271;
+ this.cmbContaminationType.Location = new System.Drawing.Point(23, 41);
+ this.cmbContaminationType.Name = "cmbContaminationType";
+ this.cmbContaminationType.Size = new System.Drawing.Size(287, 27);
+ this.cmbContaminationType.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.cmbContaminationType.TabIndex = 41;
+ //
+ // txtContaminationDTLName
+ //
+ this.txtContaminationDTLName.AlwaysActive = false;
+ this.txtContaminationDTLName.Location = new System.Drawing.Point(23, 179);
+ this.txtContaminationDTLName.Name = "txtContaminationDTLName";
+ this.txtContaminationDTLName.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtContaminationDTLName.Size = new System.Drawing.Size(287, 35);
+ this.txtContaminationDTLName.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtContaminationDTLName.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.txtContaminationDTLName.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.txtContaminationDTLName.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtContaminationDTLName.StateCommon.Border.Rounding = 4;
+ this.txtContaminationDTLName.StateCommon.Border.Width = 2;
+ this.txtContaminationDTLName.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtContaminationDTLName.TabIndex = 40;
+ //
+ // txtContaminationDTLCode
+ //
+ this.txtContaminationDTLCode.AlwaysActive = false;
+ this.txtContaminationDTLCode.Location = new System.Drawing.Point(23, 108);
+ this.txtContaminationDTLCode.Name = "txtContaminationDTLCode";
+ this.txtContaminationDTLCode.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtContaminationDTLCode.Size = new System.Drawing.Size(287, 35);
+ this.txtContaminationDTLCode.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtContaminationDTLCode.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.txtContaminationDTLCode.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.txtContaminationDTLCode.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtContaminationDTLCode.StateCommon.Border.Rounding = 4;
+ this.txtContaminationDTLCode.StateCommon.Border.Width = 2;
+ this.txtContaminationDTLCode.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtContaminationDTLCode.TabIndex = 39;
+ //
+ // lbContaminationType
+ //
+ this.lbContaminationType.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbContaminationType.Location = new System.Drawing.Point(23, 9);
+ this.lbContaminationType.Name = "lbContaminationType";
+ this.lbContaminationType.Size = new System.Drawing.Size(82, 26);
+ this.lbContaminationType.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbContaminationType.TabIndex = 38;
+ this.lbContaminationType.Values.Text = "污染类型:";
+ //
+ // lbContaminationDTLName
+ //
+ this.lbContaminationDTLName.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbContaminationDTLName.Location = new System.Drawing.Point(23, 147);
+ this.lbContaminationDTLName.Name = "lbContaminationDTLName";
+ this.lbContaminationDTLName.Size = new System.Drawing.Size(115, 26);
+ this.lbContaminationDTLName.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbContaminationDTLName.TabIndex = 37;
+ this.lbContaminationDTLName.Values.Text = "污染明细名称:";
+ //
+ // lbContaminationDTLCode
+ //
+ this.lbContaminationDTLCode.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbContaminationDTLCode.Location = new System.Drawing.Point(23, 76);
+ this.lbContaminationDTLCode.Name = "lbContaminationDTLCode";
+ this.lbContaminationDTLCode.Size = new System.Drawing.Size(115, 26);
+ this.lbContaminationDTLCode.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbContaminationDTLCode.TabIndex = 36;
+ this.lbContaminationDTLCode.Values.Text = "污染明细编码:";
+ //
+ // btnEdit
+ //
+ this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnEdit.Location = new System.Drawing.Point(228, 231);
+ this.btnEdit.Name = "btnEdit";
+ this.btnEdit.Size = new System.Drawing.Size(82, 40);
+ this.btnEdit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnEdit.TabIndex = 35;
+ this.btnEdit.Values.Text = "取消";
+ this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(23, 231);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(82, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 34;
+ this.btnAdd.Values.Text = "确认";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // frmEditContaminationDtl
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(334, 290);
+ this.Controls.Add(this.kryptonPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmEditContaminationDtl";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "EditContaminationDtl";
+ this.Load += new System.EventHandler(this.frmEditContaminationDtl_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.cmbContaminationType)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox cmbContaminationType;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtContaminationDTLName;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtContaminationDTLCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbContaminationType;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbContaminationDTLName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbContaminationDTLCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnEdit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditContaminationDtl.cs b/CleanMachineHMI/frmChild/frmEditContaminationDtl.cs
new file mode 100644
index 0000000..8c5235f
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditContaminationDtl.cs
@@ -0,0 +1,135 @@
+using CleanMachineHMI.forms;
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.Web.UI.WebControls;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.frmChild
+{
+ public partial class frmEditContaminationDtl : KryptonForm
+ {
+ public frmEditContaminationDtl()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _InfoLanguageTextList;
+ public string ContaminationDtlId { get; set; }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ txtContaminationDTLCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtContaminationDTLCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtContaminationDTLName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtContaminationDTLName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+ private void frmEditContaminationDtl_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ string sql = $@"select CONTAMINATION_TYPE_CODE,CONTAMINATION_TYPE_NAME from BAS_CONTAMINATION_TYPE where DEL_FLAG=0";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ cmbContaminationType.Items.Add(new ListItem
+ {
+ Value = "0",
+ Text = "Please Select",
+ });
+ foreach (DataRow item in dt.Rows)
+ {
+ cmbContaminationType.Items.Add(new ListItem
+ {
+ Value = item["CONTAMINATION_TYPE_CODE"].ToString(),
+ Text = item["CONTAMINATION_TYPE_NAME"].ToString(),
+ });
+ }
+ cmbContaminationType.SelectedIndex = 0;
+ }
+ string sql1 = $@"SELECT B.CONTAMINATION_TYPE_CODE,B.CONTAMINATION_TYPE_NAME,A.CONTAMINATION_DTL_CODE,A.CONTAMINATION_DTL_NAME FROM BAS_CONTAMINATION_DTL A LEFT JOIN BAS_CONTAMINATION_TYPE B ON A.CONTAMINATION_TYPE_CODE = B.CONTAMINATION_TYPE_CODE WHERE A.CONTAMINATION_DTL_ID = '{ContaminationDtlId}'";
+ DataTable dt1 = LeadDbHelperSQLite.Query(sql1).Tables[0];
+ if (dt1 != null && dt1.Rows.Count > 0)
+ {
+ txtContaminationDTLCode.Text = dt1.Rows[0]["CONTAMINATION_DTL_CODE"].ToString();
+ txtContaminationDTLCode.Enabled = false;
+ txtContaminationDTLName.Text = dt1.Rows[0]["CONTAMINATION_DTL_NAME"].ToString();
+ cmbContaminationType.Text = dt1.Rows[0]["CONTAMINATION_TYPE_NAME"].ToString();
+ cmbContaminationType.Enabled = false;
+ }
+ kryptonPanel1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑污染明细数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (cmbContaminationType.SelectedIndex == 0)
+ {
+ //KryptonMessageBox.Show("请选择污染类型!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择污染类型!", "SelectContaminationTypeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtContaminationDTLCode.Text))
+ {
+ //KryptonMessageBox.Show("请输入污染明细编码!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入污染明细编码!", "EnterContaminationDtlCodeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtContaminationDTLName.Text))
+ {
+ //KryptonMessageBox.Show("请输入污染明细名称!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入污染明细名称!", "EnterContaminationDtlNameInfo"));
+ return;
+ }
+ string sql = $@"update BAS_CONTAMINATION_DTL set CONTAMINATION_DTL_NAME = '{txtContaminationDTLName.Text}',UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime') where CONTAMINATION_DTL_ID = '{ContaminationDtlId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ //KryptonMessageBox.Show("修改污染明细数据成功!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染明细数据成功!", "EditSuccessInfo"));
+ frmContaminationDTL.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ //KryptonMessageBox.Show("修改污染明细数据失败!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染明细数据失败!", "EditFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑污染明细数据发生异常", "EditContaminationDtlDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnEdit_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmEditContaminationDtl.resx b/CleanMachineHMI/frmChild/frmEditContaminationDtl.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditContaminationDtl.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditContaminationType.Designer.cs b/CleanMachineHMI/frmChild/frmEditContaminationType.Designer.cs
new file mode 100644
index 0000000..e2dcf09
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditContaminationType.Designer.cs
@@ -0,0 +1,196 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmEditContaminationType
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.cmbCleanMode = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.txtContaminationTypeName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.txtContaminationTypeCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbCleanMode = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbContaminationTypeName = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbContaminationTypeCode = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.btnEdit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.cmbCleanMode)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.cmbCleanMode);
+ this.kryptonPanel1.Controls.Add(this.txtContaminationTypeName);
+ this.kryptonPanel1.Controls.Add(this.txtContaminationTypeCode);
+ this.kryptonPanel1.Controls.Add(this.lbCleanMode);
+ this.kryptonPanel1.Controls.Add(this.lbContaminationTypeName);
+ this.kryptonPanel1.Controls.Add(this.lbContaminationTypeCode);
+ this.kryptonPanel1.Controls.Add(this.btnEdit);
+ this.kryptonPanel1.Controls.Add(this.btnAdd);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(289, 290);
+ this.kryptonPanel1.TabIndex = 5;
+ //
+ // cmbCleanMode
+ //
+ this.cmbCleanMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cmbCleanMode.DropDownWidth = 271;
+ this.cmbCleanMode.Location = new System.Drawing.Point(15, 37);
+ this.cmbCleanMode.Name = "cmbCleanMode";
+ this.cmbCleanMode.Size = new System.Drawing.Size(261, 31);
+ this.cmbCleanMode.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.cmbCleanMode.TabIndex = 41;
+ //
+ // txtContaminationTypeName
+ //
+ this.txtContaminationTypeName.AlwaysActive = false;
+ this.txtContaminationTypeName.Location = new System.Drawing.Point(15, 174);
+ this.txtContaminationTypeName.Name = "txtContaminationTypeName";
+ this.txtContaminationTypeName.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtContaminationTypeName.Size = new System.Drawing.Size(261, 35);
+ this.txtContaminationTypeName.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtContaminationTypeName.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.txtContaminationTypeName.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.txtContaminationTypeName.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtContaminationTypeName.StateCommon.Border.Rounding = 4;
+ this.txtContaminationTypeName.StateCommon.Border.Width = 2;
+ this.txtContaminationTypeName.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtContaminationTypeName.TabIndex = 40;
+ //
+ // txtContaminationTypeCode
+ //
+ this.txtContaminationTypeCode.AlwaysActive = false;
+ this.txtContaminationTypeCode.Location = new System.Drawing.Point(15, 103);
+ this.txtContaminationTypeCode.Name = "txtContaminationTypeCode";
+ this.txtContaminationTypeCode.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtContaminationTypeCode.Size = new System.Drawing.Size(261, 35);
+ this.txtContaminationTypeCode.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtContaminationTypeCode.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.txtContaminationTypeCode.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.txtContaminationTypeCode.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtContaminationTypeCode.StateCommon.Border.Rounding = 4;
+ this.txtContaminationTypeCode.StateCommon.Border.Width = 2;
+ this.txtContaminationTypeCode.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtContaminationTypeCode.TabIndex = 39;
+ //
+ // lbCleanMode
+ //
+ this.lbCleanMode.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbCleanMode.Location = new System.Drawing.Point(15, 10);
+ this.lbCleanMode.Name = "lbCleanMode";
+ this.lbCleanMode.Size = new System.Drawing.Size(82, 26);
+ this.lbCleanMode.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbCleanMode.TabIndex = 38;
+ this.lbCleanMode.Values.Text = "清洁方式:";
+ //
+ // lbContaminationTypeName
+ //
+ this.lbContaminationTypeName.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbContaminationTypeName.Location = new System.Drawing.Point(15, 147);
+ this.lbContaminationTypeName.Name = "lbContaminationTypeName";
+ this.lbContaminationTypeName.Size = new System.Drawing.Size(115, 26);
+ this.lbContaminationTypeName.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbContaminationTypeName.TabIndex = 37;
+ this.lbContaminationTypeName.Values.Text = "污染类型编码:";
+ //
+ // lbContaminationTypeCode
+ //
+ this.lbContaminationTypeCode.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbContaminationTypeCode.Location = new System.Drawing.Point(15, 76);
+ this.lbContaminationTypeCode.Name = "lbContaminationTypeCode";
+ this.lbContaminationTypeCode.Size = new System.Drawing.Size(115, 26);
+ this.lbContaminationTypeCode.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbContaminationTypeCode.TabIndex = 36;
+ this.lbContaminationTypeCode.Values.Text = "污染类型编码:";
+ //
+ // btnEdit
+ //
+ this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnEdit.Location = new System.Drawing.Point(183, 229);
+ this.btnEdit.Name = "btnEdit";
+ this.btnEdit.Size = new System.Drawing.Size(82, 40);
+ this.btnEdit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnEdit.TabIndex = 35;
+ this.btnEdit.Values.Text = "取消";
+ this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(23, 229);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(82, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 34;
+ this.btnAdd.Values.Text = "确认";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // frmEditContaminationType
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(289, 290);
+ this.Controls.Add(this.kryptonPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmEditContaminationType";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "EditContaminationType";
+ this.Load += new System.EventHandler(this.frmEditContaminationType_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.cmbCleanMode)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox cmbCleanMode;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtContaminationTypeName;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtContaminationTypeCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbCleanMode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbContaminationTypeName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbContaminationTypeCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnEdit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditContaminationType.cs b/CleanMachineHMI/frmChild/frmEditContaminationType.cs
new file mode 100644
index 0000000..fdf1f23
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditContaminationType.cs
@@ -0,0 +1,131 @@
+using CleanMachineHMI.forms;
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.Web.UI.WebControls;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.frmChild
+{
+ public partial class frmEditContaminationType : KryptonForm
+ {
+ public frmEditContaminationType()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _InfoLanguageTextList;
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ txtContaminationTypeCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtContaminationTypeCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtContaminationTypeName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtContaminationTypeName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+ public string ContaminationId { get; set; }
+ private void frmEditContaminationType_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ string sql = $@"select CLEAN_MODE_CODE,CLEAN_MODE_NAME from BAS_CLEAN_MODE where DEL_FLAG=0";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ cmbCleanMode.Items.Add(new ListItem
+ {
+ Value = "0",
+ Text = "Please Select",
+ });
+ foreach (DataRow item in dt.Rows)
+ {
+ cmbCleanMode.Items.Add(new ListItem
+ {
+ Value = item["CLEAN_MODE_CODE"].ToString(),
+ Text = item["CLEAN_MODE_NAME"].ToString(),
+ });
+ }
+ cmbCleanMode.SelectedIndex = 0;
+ }
+
+ string sql1 = $@"SELECT A.CONTAMINATION_TYPE_CODE,A.CONTAMINATION_TYPE_NAME,B.CLEAN_MODE_CODE,B.CLEAN_MODE_NAME FROM BAS_CONTAMINATION_TYPE A LEFT JOIN BAS_CLEAN_MODE B ON A.CLEAN_MODE_CODE = B.CLEAN_MODE_CODE WHERE A.CONTAMINATION_TYPE_ID = '{ContaminationId}'";
+ DataTable dt1 = LeadDbHelperSQLite.Query(sql1).Tables[0];
+ if (dt1 != null && dt1.Rows.Count > 0)
+ {
+ txtContaminationTypeCode.Text = dt1.Rows[0]["CONTAMINATION_TYPE_CODE"].ToString();
+ txtContaminationTypeCode.Enabled = false;
+ txtContaminationTypeName.Text = dt1.Rows[0]["CONTAMINATION_TYPE_NAME"].ToString();
+ cmbCleanMode.Text = dt1.Rows[0]["CLEAN_MODE_NAME"].ToString();
+ cmbCleanMode.Enabled = false;
+ }
+ kryptonPanel1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑污染类型界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (cmbCleanMode.SelectedIndex == 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择清洗方式!", "SelectCleanModeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtContaminationTypeCode.Text))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入污染类型编码!", "EnterContaminationTypeCodeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtContaminationTypeName.Text))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入污染类型名称!", "EnterContaminationTypeNameInfo"));
+ return;
+ }
+ string sql = $@"update BAS_CONTAMINATION_TYPE set CONTAMINATION_TYPE_NAME = '{txtContaminationTypeName.Text}',UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime') where CONTAMINATION_TYPE_ID = '{ContaminationId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑污染类型数据成功!", "EditSuccessInfo"));
+ frmContaminationType.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑污染类型数据失败!", "EditFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑污染类型数据发生异常", "EditContaminationTypeDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnEdit_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmEditContaminationType.resx b/CleanMachineHMI/frmChild/frmEditContaminationType.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditContaminationType.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditParamater.Designer.cs b/CleanMachineHMI/frmChild/frmEditParamater.Designer.cs
new file mode 100644
index 0000000..1c16338
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditParamater.Designer.cs
@@ -0,0 +1,168 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmEditParamater
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.txtValue = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.txtKey = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbValue = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbKey = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.btnEdit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.txtValue);
+ this.kryptonPanel1.Controls.Add(this.txtKey);
+ this.kryptonPanel1.Controls.Add(this.lbValue);
+ this.kryptonPanel1.Controls.Add(this.lbKey);
+ this.kryptonPanel1.Controls.Add(this.btnEdit);
+ this.kryptonPanel1.Controls.Add(this.btnAdd);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(289, 229);
+ this.kryptonPanel1.TabIndex = 4;
+ //
+ // txtValue
+ //
+ this.txtValue.AlwaysActive = false;
+ this.txtValue.Location = new System.Drawing.Point(23, 117);
+ this.txtValue.Name = "txtValue";
+ this.txtValue.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtValue.Size = new System.Drawing.Size(248, 35);
+ this.txtValue.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtValue.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.txtValue.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.txtValue.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtValue.StateCommon.Border.Rounding = 4;
+ this.txtValue.StateCommon.Border.Width = 2;
+ this.txtValue.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtValue.TabIndex = 39;
+ //
+ // txtKey
+ //
+ this.txtKey.AlwaysActive = false;
+ this.txtKey.Location = new System.Drawing.Point(23, 44);
+ this.txtKey.Name = "txtKey";
+ this.txtKey.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtKey.Size = new System.Drawing.Size(248, 35);
+ this.txtKey.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtKey.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.txtKey.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.txtKey.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtKey.StateCommon.Border.Rounding = 4;
+ this.txtKey.StateCommon.Border.Width = 2;
+ this.txtKey.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtKey.TabIndex = 38;
+ //
+ // lbValue
+ //
+ this.lbValue.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbValue.Location = new System.Drawing.Point(23, 85);
+ this.lbValue.Name = "lbValue";
+ this.lbValue.Size = new System.Drawing.Size(66, 26);
+ this.lbValue.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbValue.TabIndex = 37;
+ this.lbValue.Values.Text = "设定值:";
+ //
+ // lbKey
+ //
+ this.lbKey.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbKey.Location = new System.Drawing.Point(23, 12);
+ this.lbKey.Name = "lbKey";
+ this.lbKey.Size = new System.Drawing.Size(82, 26);
+ this.lbKey.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbKey.TabIndex = 36;
+ this.lbKey.Values.Text = "参数名称:";
+ //
+ // btnEdit
+ //
+ this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnEdit.Location = new System.Drawing.Point(183, 168);
+ this.btnEdit.Name = "btnEdit";
+ this.btnEdit.Size = new System.Drawing.Size(82, 40);
+ this.btnEdit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnEdit.TabIndex = 35;
+ this.btnEdit.Values.Text = "取消";
+ this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(23, 168);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(82, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 34;
+ this.btnAdd.Values.Text = "确认";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // frmEditParamater
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(289, 229);
+ this.Controls.Add(this.kryptonPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmEditParamater";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "frmEditParamater";
+ this.Load += new System.EventHandler(this.frmEditParamater_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnEdit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtValue;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtKey;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbValue;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbKey;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditParamater.cs b/CleanMachineHMI/frmChild/frmEditParamater.cs
new file mode 100644
index 0000000..7ea9927
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditParamater.cs
@@ -0,0 +1,99 @@
+using CleanMachineHMI.forms;
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.frmChild
+{
+ public partial class frmEditParamater : KryptonForm
+ {
+ public frmEditParamater()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _InfoLanguageTextList;
+ public string ParamaterId { get; set; }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ txtValue.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtValue.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmEditParamater_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ string sql = $@"SELECT * FROM SYS_PARAMETER WHERE PARAMETER_ID = '{ParamaterId}'";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ txtKey.Text = dt.Rows[0]["PARAMETER_CODE"].ToString();
+ txtKey.Enabled = false;
+ txtValue.Text = dt.Rows[0]["PARAMETER_VALUE"].ToString();
+ }
+ kryptonPanel1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑参数数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (string.IsNullOrEmpty(txtValue.Text))
+ {
+ //KryptonMessageBox.Show("请输入参数值!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入参数值!", "EnterparamaterVlaueInfo"));
+ return;
+ }
+ string sql = $@"update SYS_PARAMETER set PARAMETER_VALUE = '{txtValue.Text}',UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime') where PARAMETER_ID = '{ParamaterId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ //KryptonMessageBox.Show("修改参数信息数据成功!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑参数数据成功!", "EditSuccessInfo"));
+ frmParamater.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ //KryptonMessageBox.Show("修改参数信息数据失败!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑参数数据失败!", "EditFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑参数数据发生异常", "EditParamaterDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnEdit_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmEditParamater.resx b/CleanMachineHMI/frmChild/frmEditParamater.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditParamater.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditPlcItem.Designer.cs b/CleanMachineHMI/frmChild/frmEditPlcItem.Designer.cs
new file mode 100644
index 0000000..7344ef7
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditPlcItem.Designer.cs
@@ -0,0 +1,250 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmEditPlcItem
+ {
+ ///
+ /// 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.kryptonManager = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components);
+ this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.knud_plcItemDeviationAddress = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.kryptonLabel6 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kcmb_plcItemDataType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.kcmb_plcItemType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.knud_plcItemPriAddress = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
+ this.ktb_plcItemName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.ktb_plcItemCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonButton2 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_plcItemDataType)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_plcItemType)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonManager
+ //
+ this.kryptonManager.GlobalPaletteMode = ComponentFactory.Krypton.Toolkit.PaletteModeManager.Office2007Blue;
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.knud_plcItemDeviationAddress);
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel6);
+ this.kryptonPanel1.Controls.Add(this.kcmb_plcItemDataType);
+ this.kryptonPanel1.Controls.Add(this.kcmb_plcItemType);
+ this.kryptonPanel1.Controls.Add(this.kryptonButton2);
+ this.kryptonPanel1.Controls.Add(this.kryptonButton1);
+ this.kryptonPanel1.Controls.Add(this.knud_plcItemPriAddress);
+ this.kryptonPanel1.Controls.Add(this.ktb_plcItemName);
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel5);
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel4);
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel3);
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel2);
+ this.kryptonPanel1.Controls.Add(this.ktb_plcItemCode);
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel1);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(274, 396);
+ this.kryptonPanel1.TabIndex = 18;
+ //
+ // knud_plcItemDeviationAddress
+ //
+ this.knud_plcItemDeviationAddress.Location = new System.Drawing.Point(18, 305);
+ this.knud_plcItemDeviationAddress.Maximum = new decimal(new int[] {
+ 50,
+ 0,
+ 0,
+ 0});
+ this.knud_plcItemDeviationAddress.Name = "knud_plcItemDeviationAddress";
+ this.knud_plcItemDeviationAddress.Size = new System.Drawing.Size(235, 22);
+ this.knud_plcItemDeviationAddress.TabIndex = 30;
+ //
+ // kryptonLabel6
+ //
+ this.kryptonLabel6.Location = new System.Drawing.Point(18, 279);
+ this.kryptonLabel6.Name = "kryptonLabel6";
+ this.kryptonLabel6.Size = new System.Drawing.Size(121, 20);
+ this.kryptonLabel6.TabIndex = 29;
+ this.kryptonLabel6.Values.Text = "PLC变量偏移位置:";
+ //
+ // kcmb_plcItemDataType
+ //
+ this.kcmb_plcItemDataType.DropDownWidth = 207;
+ this.kcmb_plcItemDataType.Items.AddRange(new object[] {
+ "M 布尔类型",
+ "D 整数类型",
+ "X 布尔类型",
+ "Y 布尔类型"});
+ this.kcmb_plcItemDataType.Location = new System.Drawing.Point(18, 198);
+ this.kcmb_plcItemDataType.Name = "kcmb_plcItemDataType";
+ this.kcmb_plcItemDataType.Size = new System.Drawing.Size(235, 21);
+ this.kcmb_plcItemDataType.TabIndex = 27;
+ this.kcmb_plcItemDataType.SelectionChangeCommitted += new System.EventHandler(this.kcmb_plcItemDataType_SelectionChangeCommitted);
+ //
+ // kcmb_plcItemType
+ //
+ this.kcmb_plcItemType.DropDownWidth = 207;
+ this.kcmb_plcItemType.Items.AddRange(new object[] {
+ "写入变量",
+ "读取变量",
+ "可读可写"});
+ this.kcmb_plcItemType.Location = new System.Drawing.Point(18, 145);
+ this.kcmb_plcItemType.Name = "kcmb_plcItemType";
+ this.kcmb_plcItemType.Size = new System.Drawing.Size(235, 21);
+ this.kcmb_plcItemType.TabIndex = 28;
+ //
+ // kryptonButton1
+ //
+ this.kryptonButton1.Location = new System.Drawing.Point(18, 343);
+ this.kryptonButton1.Name = "kryptonButton1";
+ this.kryptonButton1.Size = new System.Drawing.Size(90, 36);
+ this.kryptonButton1.TabIndex = 26;
+ this.kryptonButton1.Values.Text = "确认";
+ this.kryptonButton1.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // knud_plcItemPriAddress
+ //
+ this.knud_plcItemPriAddress.Location = new System.Drawing.Point(18, 251);
+ this.knud_plcItemPriAddress.Maximum = new decimal(new int[] {
+ 9999,
+ 0,
+ 0,
+ 0});
+ this.knud_plcItemPriAddress.Name = "knud_plcItemPriAddress";
+ this.knud_plcItemPriAddress.Size = new System.Drawing.Size(235, 22);
+ this.knud_plcItemPriAddress.TabIndex = 25;
+ //
+ // ktb_plcItemName
+ //
+ this.ktb_plcItemName.Location = new System.Drawing.Point(18, 90);
+ this.ktb_plcItemName.Name = "ktb_plcItemName";
+ this.ktb_plcItemName.Size = new System.Drawing.Size(235, 23);
+ this.ktb_plcItemName.TabIndex = 23;
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Location = new System.Drawing.Point(18, 225);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(134, 20);
+ this.kryptonLabel5.TabIndex = 18;
+ this.kryptonLabel5.Values.Text = "PLC变量寄存器地址:";
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Location = new System.Drawing.Point(18, 172);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(121, 20);
+ this.kryptonLabel4.TabIndex = 19;
+ this.kryptonLabel4.Values.Text = "PLC变量数据类型:";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Location = new System.Drawing.Point(18, 119);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(95, 20);
+ this.kryptonLabel3.TabIndex = 20;
+ this.kryptonLabel3.Values.Text = "PLC变量类型:";
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Location = new System.Drawing.Point(18, 64);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(95, 20);
+ this.kryptonLabel2.TabIndex = 21;
+ this.kryptonLabel2.Values.Text = "PLC变量编码:";
+ //
+ // ktb_plcItemCode
+ //
+ this.ktb_plcItemCode.Location = new System.Drawing.Point(18, 35);
+ this.ktb_plcItemCode.Name = "ktb_plcItemCode";
+ this.ktb_plcItemCode.Size = new System.Drawing.Size(235, 23);
+ this.ktb_plcItemCode.TabIndex = 24;
+ //
+ // kryptonLabel1
+ //
+ this.kryptonLabel1.Location = new System.Drawing.Point(18, 11);
+ this.kryptonLabel1.Name = "kryptonLabel1";
+ this.kryptonLabel1.Size = new System.Drawing.Size(95, 20);
+ this.kryptonLabel1.TabIndex = 22;
+ this.kryptonLabel1.Values.Text = "PLC变量编码:";
+ //
+ // kryptonButton2
+ //
+ this.kryptonButton2.Location = new System.Drawing.Point(163, 343);
+ this.kryptonButton2.Name = "kryptonButton2";
+ this.kryptonButton2.Size = new System.Drawing.Size(90, 36);
+ this.kryptonButton2.TabIndex = 26;
+ this.kryptonButton2.Values.Text = "取消";
+ this.kryptonButton2.Click += new System.EventHandler(this.kryptonButton2_Click);
+ //
+ // frmEditPlcItem
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(274, 396);
+ this.Controls.Add(this.kryptonPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmEditPlcItem";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "Edit PLC variable";
+ this.Load += new System.EventHandler(this.frmEditPlcItem_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_plcItemDataType)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_plcItemType)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ public ComponentFactory.Krypton.Toolkit.KryptonManager kryptonManager;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_plcItemDataType;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_plcItemType;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_plcItemPriAddress;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_plcItemName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_plcItemCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown knud_plcItemDeviationAddress;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel6;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton2;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditPlcItem.cs b/CleanMachineHMI/frmChild/frmEditPlcItem.cs
new file mode 100644
index 0000000..6096f75
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditPlcItem.cs
@@ -0,0 +1,226 @@
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.frmChild
+{
+ public partial class frmEditPlcItem : KryptonForm
+ {
+ public frmEditPlcItem()
+ {
+ InitializeComponent();
+ _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _ComboBoxLanguageTextList;
+ private DataTable _InfoLanguageTextList;
+ public string PlcItemId { get; set; }
+ int modbusMinIndex = 0;
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ ktb_plcItemCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_plcItemCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ ktb_plcItemName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_plcItemName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ knud_plcItemPriAddress.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_plcItemPriAddress.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ knud_plcItemDeviationAddress.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ knud_plcItemDeviationAddress.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+ private void frmEditPlcItem_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ kcmb_plcItemType.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcItemType.Name, "KryptonComboBox"))
+ {
+ kcmb_plcItemType.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ kcmb_plcItemDataType.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcItemDataType.Name, "KryptonComboBox"))
+ {
+ kcmb_plcItemDataType.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ }
+ kcmb_plcItemType.SelectedIndex = 0;
+ kcmb_plcItemDataType.SelectedIndex = 0;
+ string sql = $@"SELECT * FROM BAS_PLC_ITEM WHERE PLC_ITEM_ID = '{PlcItemId}'";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ ktb_plcItemCode.Text = dt.Rows[0]["PLC_ITEM_CODE"].ToString();
+ ktb_plcItemName.Text = dt.Rows[0]["PLC_ITEM_NAME"].ToString();
+ kcmb_plcItemType.SelectedIndex = Convert.ToInt32(dt.Rows[0]["PLC_ITEM_TYPE"]);
+ kcmb_plcItemDataType.SelectedIndex = Convert.ToInt32(dt.Rows[0]["PLC_ITEM_DATA_TYPE"]);
+ knud_plcItemPriAddress.Value = Convert.ToInt32(dt.Rows[0]["PLC_ITEM_PRI_ADDRESS"]);
+ knud_plcItemDeviationAddress.Value = Convert.ToInt32(dt.Rows[0]["PLC_ITEM_DEVIATION_ADDRESS"]);
+ ktb_plcItemCode.Enabled = false;
+ kcmb_plcItemDataType_SelectionChangeCommitted(sender, e);
+ }
+ kryptonPanel1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑PLC变量数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ }
+ }
+ ///
+ /// 判断是否八进制格式字符串
+ ///
+ ///
+ ///
+ public bool IsOctal(string str)
+ {
+ string PATTERN = @"[0-7]+$";
+ return System.Text.RegularExpressions.Regex.IsMatch(str, PATTERN);
+ }
+ private void kryptonButton1_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (string.IsNullOrEmpty(ktb_plcItemCode.Text))
+ {
+ //KryptonMessageBox.Show("请输入PLC编码");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入PLC变量编码!", "EnterPlcItemCodeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(ktb_plcItemName.Text))
+ {
+ //KryptonMessageBox.Show("请输入PLC名称");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入PLC变量名称!", "EnterPlcItemNameInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(kcmb_plcItemType.Text))
+ {
+ //KryptonMessageBox.Show("请选择PLC类型");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择PLC变量类型!", "SelectPlcItemTypeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(kcmb_plcItemDataType.Text))
+ {
+ //KryptonMessageBox.Show("请选择PLC数据类型");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择PLC变量数据类型!", "SelectPlcItemDataTypeInfo"));
+ return;
+ }
+ int addPriIndex = Convert.ToInt32(knud_plcItemPriAddress.Value);
+ if (kcmb_plcItemDataType.SelectedIndex == 0)
+ {
+ if (addPriIndex <= 1535)
+ {
+ modbusMinIndex = 2049;
+ }
+ else
+ {
+ modbusMinIndex = 5057;
+ }
+ }
+ else if (kcmb_plcItemDataType.SelectedIndex == 1)
+ {
+ modbusMinIndex = 4097;
+ }
+ else if (kcmb_plcItemDataType.SelectedIndex == 2)
+ {
+ modbusMinIndex = 1025;
+ if (!IsOctal(addPriIndex.ToString()))
+ {
+ //KryptonMessageBox.Show("当PLC数据类型为:【X】,输入的PLC地址只能是八进制的数字!");
+ KryptonMessageBox.Show("When PLC item data type is【X】, input PLC address can only be octal number!");
+ return;
+ }
+ }
+ else if (kcmb_plcItemDataType.SelectedIndex == 3)
+ {
+ modbusMinIndex = 1281;
+ if (!IsOctal(addPriIndex.ToString()))
+ {
+ //KryptonMessageBox.Show("当PLC数据类型为:【Y】,输入的PLC地址只能是八进制的数字!");
+ KryptonMessageBox.Show("When PLC item data type is【Y】, input PLC address can only be octal number!");
+ return;
+ }
+ }
+ int plcModbusAdd = modbusMinIndex + addPriIndex - 1;
+ string sql = $@"
+ UPDATE BAS_PLC_ITEM
+ SET PLC_ITEM_NAME = '{ktb_plcItemName.Text}',
+ PLC_ITEM_TYPE = '{kcmb_plcItemType.SelectedIndex}',
+ PLC_ITEM_DATA_TYPE = '{kcmb_plcItemDataType.SelectedIndex}',
+ PLC_ITEM_MODBUS_ADDRESS = '{plcModbusAdd}',
+ PLC_ITEM_DEVIATION_ADDRESS = '{Convert.ToInt32(knud_plcItemDeviationAddress.Value)}',
+ PLC_ITEM_PRI_ADDRESS = '{addPriIndex}',
+ UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',
+ UPDATE_TIME = datetime('now', 'localtime'),
+ DATA_VERSION = DATA_VERSION + 1
+ WHERE
+ PLC_ITEM_ID = '{PlcItemId}'
+ ";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ //KryptonMessageBox.Show("编辑PLC变量数据成功!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑PLC变量数据成功!", "EditSuccessInfo"));
+ frmPlcItemConfig.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ //KryptonMessageBox.Show("编辑PLC变量数据失败!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑PLC变量数据失败!", "EditFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑PLC变量数据发生异常", "EditPlcItemDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kcmb_plcItemDataType_SelectionChangeCommitted(object sender, EventArgs e)
+ {
+ if (kcmb_plcItemDataType.SelectedIndex == 0)
+ {
+ knud_plcItemPriAddress.Maximum = 4095;
+ }
+ else if (kcmb_plcItemDataType.SelectedIndex == 1)
+ {
+ knud_plcItemPriAddress.Maximum = 9999;
+ }
+ else if (kcmb_plcItemDataType.SelectedIndex == 2)
+ {
+ knud_plcItemPriAddress.Maximum = 377;
+ }
+ else if (kcmb_plcItemDataType.SelectedIndex == 3)
+ {
+ knud_plcItemPriAddress.Maximum = 377;
+ }
+ }
+
+ private void kryptonButton2_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmEditPlcItem.resx b/CleanMachineHMI/frmChild/frmEditPlcItem.resx
new file mode 100644
index 0000000..598d181
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditPlcItem.resx
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 17, 17
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditRole.Designer.cs b/CleanMachineHMI/frmChild/frmEditRole.Designer.cs
new file mode 100644
index 0000000..62f2c7b
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditRole.Designer.cs
@@ -0,0 +1,197 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmEditRole
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.btnClose = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kcmb_roleGrade = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.lbGender = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtRoleName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbName = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtRoleCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbAccount = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_roleGrade)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.btnClose);
+ this.kryptonPanel1.Controls.Add(this.btnAdd);
+ this.kryptonPanel1.Controls.Add(this.kcmb_roleGrade);
+ this.kryptonPanel1.Controls.Add(this.lbGender);
+ this.kryptonPanel1.Controls.Add(this.txtRoleName);
+ this.kryptonPanel1.Controls.Add(this.lbName);
+ this.kryptonPanel1.Controls.Add(this.txtRoleCode);
+ this.kryptonPanel1.Controls.Add(this.lbAccount);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(289, 266);
+ this.kryptonPanel1.TabIndex = 2;
+ //
+ // btnClose
+ //
+ this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnClose.Location = new System.Drawing.Point(179, 214);
+ this.btnClose.Name = "btnClose";
+ this.btnClose.Size = new System.Drawing.Size(82, 40);
+ this.btnClose.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnClose.TabIndex = 35;
+ this.btnClose.Values.Text = "取消";
+ this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(29, 214);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(82, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 34;
+ this.btnAdd.Values.Text = "确认";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // kcmb_roleGrade
+ //
+ this.kcmb_roleGrade.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.kcmb_roleGrade.DropDownWidth = 271;
+ this.kcmb_roleGrade.Items.AddRange(new object[] {
+ "请选择",
+ "管理员",
+ "普通用户"});
+ this.kcmb_roleGrade.Location = new System.Drawing.Point(29, 172);
+ this.kcmb_roleGrade.Name = "kcmb_roleGrade";
+ this.kcmb_roleGrade.Size = new System.Drawing.Size(232, 31);
+ this.kcmb_roleGrade.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kcmb_roleGrade.TabIndex = 33;
+ //
+ // lbGender
+ //
+ this.lbGender.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbGender.Location = new System.Drawing.Point(29, 145);
+ this.lbGender.Name = "lbGender";
+ this.lbGender.Size = new System.Drawing.Size(82, 26);
+ this.lbGender.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbGender.TabIndex = 30;
+ this.lbGender.Values.Text = "角色级别:";
+ //
+ // txtRoleName
+ //
+ this.txtRoleName.AlwaysActive = false;
+ this.txtRoleName.Location = new System.Drawing.Point(29, 104);
+ this.txtRoleName.Name = "txtRoleName";
+ this.txtRoleName.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtRoleName.Size = new System.Drawing.Size(232, 35);
+ this.txtRoleName.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtRoleName.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.txtRoleName.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.txtRoleName.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtRoleName.StateCommon.Border.Rounding = 4;
+ this.txtRoleName.StateCommon.Border.Width = 2;
+ this.txtRoleName.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtRoleName.TabIndex = 25;
+ //
+ // lbName
+ //
+ this.lbName.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbName.Location = new System.Drawing.Point(29, 78);
+ this.lbName.Name = "lbName";
+ this.lbName.Size = new System.Drawing.Size(82, 26);
+ this.lbName.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbName.TabIndex = 24;
+ this.lbName.Values.Text = "角色名称:";
+ //
+ // txtRoleCode
+ //
+ this.txtRoleCode.AlwaysActive = false;
+ this.txtRoleCode.Location = new System.Drawing.Point(29, 37);
+ this.txtRoleCode.Name = "txtRoleCode";
+ this.txtRoleCode.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtRoleCode.Size = new System.Drawing.Size(232, 35);
+ this.txtRoleCode.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtRoleCode.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.txtRoleCode.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.txtRoleCode.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtRoleCode.StateCommon.Border.Rounding = 4;
+ this.txtRoleCode.StateCommon.Border.Width = 2;
+ this.txtRoleCode.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtRoleCode.TabIndex = 23;
+ //
+ // lbAccount
+ //
+ this.lbAccount.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbAccount.Location = new System.Drawing.Point(29, 10);
+ this.lbAccount.Name = "lbAccount";
+ this.lbAccount.Size = new System.Drawing.Size(82, 26);
+ this.lbAccount.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbAccount.TabIndex = 22;
+ this.lbAccount.Values.Text = "角色编码:";
+ //
+ // frmEditRole
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(289, 266);
+ this.Controls.Add(this.kryptonPanel1);
+ this.Name = "frmEditRole";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "frmEditRole";
+ this.Load += new System.EventHandler(this.frmEditRole_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_roleGrade)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnClose;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_roleGrade;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbGender;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtRoleName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbName;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtRoleCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbAccount;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditRole.cs b/CleanMachineHMI/frmChild/frmEditRole.cs
new file mode 100644
index 0000000..5a816a8
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditRole.cs
@@ -0,0 +1,143 @@
+using CleanMachineHMI.forms;
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.frmChild
+{
+ public partial class frmEditRole : KryptonForm
+ {
+ public frmEditRole()
+ {
+ InitializeComponent();
+ _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _ComboBoxLanguageTextList;
+ private DataTable _InfoLanguageTextList;
+ public string RoleId { get; set; }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ txtRoleCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtRoleCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtRoleName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtRoleName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+ private void frmEditRole_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ kcmb_roleGrade.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_roleGrade.Name, "KryptonComboBox"))
+ {
+ kcmb_roleGrade.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ }
+ kcmb_roleGrade.SelectedIndex = 0;
+ string sql = $@"SELECT * FROM SYS_ROLE WHERE ROLE_ID = '{RoleId}'";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ txtRoleCode.Text = dt.Rows[0]["ROLE_CODE"].ToString();
+ txtRoleCode.Enabled = false;
+ txtRoleName.Text = dt.Rows[0]["ROLE_NAME"].ToString();
+ if (Convert.ToInt32(dt.Rows[0]["ROLE_GRADE"]) == 100)
+ {
+ kcmb_roleGrade.SelectedIndex = 1;
+ }
+ else
+ {
+ kcmb_roleGrade.SelectedIndex = 2;
+ }
+ kcmb_roleGrade.Enabled = false;
+ }
+ kryptonPanel1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑角色数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (string.IsNullOrEmpty(txtRoleName.Text))
+ {
+ //KryptonMessageBox.Show("请输入角色名称!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入角色名称!", "EnterRoleNameInfo"));
+ return;
+ }
+ int roleGrade = 0;
+ if (kcmb_roleGrade.SelectedIndex == 0)
+ {
+ //KryptonMessageBox.Show("请选择角色级别!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择角色级别!", "SelectRoleGradeInfo"));
+ return;
+ }
+ else if (kcmb_roleGrade.SelectedIndex == 1)
+ {
+ //string sqlIsExistAdmin = $@"SELECT 1 FROM SYS_ROLE WHERE ROLE_GRADE = '100'";
+ //DataTable dtIsExistAdmin = LeadDbHelperSQLite.Query(sqlIsExistAdmin).Tables[0];
+ //if (dtIsExistAdmin != null && dtIsExistAdmin.Rows.Count > 0)
+ //{
+ // KryptonMessageBox.Show($"管理员角色只能存在一个,请重新选择!");
+ // return;
+ //}
+ roleGrade = 100;
+ }
+ else
+ {
+ roleGrade = 1;
+ }
+ string sql = $@"update SYS_ROLE set ROLE_CODE = '{txtRoleCode.Text}',ROLE_NAME = '{txtRoleName.Text}',ROLE_GRADE = '{roleGrade}',UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime') where ROLE_ID = '{RoleId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ //KryptonMessageBox.Show("修改角色数据成功!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("修改角色数据成功!", "EditSuccessInfo"));
+ frmRole.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ //KryptonMessageBox.Show("修改角色数据失败!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("修改角色数据失败!", "EditFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑角色数据发生异常", "EditRoleDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnClose_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmEditRole.resx b/CleanMachineHMI/frmChild/frmEditRole.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditRole.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditSheetType.Designer.cs b/CleanMachineHMI/frmChild/frmEditSheetType.Designer.cs
new file mode 100644
index 0000000..26bcc52
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditSheetType.Designer.cs
@@ -0,0 +1,168 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmEditSheetType
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.txtSheetTypeName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbSheetTypeName = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtSheetTypeCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbSheetTypeCode = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.btnEdit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.txtSheetTypeName);
+ this.kryptonPanel1.Controls.Add(this.lbSheetTypeName);
+ this.kryptonPanel1.Controls.Add(this.txtSheetTypeCode);
+ this.kryptonPanel1.Controls.Add(this.lbSheetTypeCode);
+ this.kryptonPanel1.Controls.Add(this.btnEdit);
+ this.kryptonPanel1.Controls.Add(this.btnAdd);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(289, 227);
+ this.kryptonPanel1.TabIndex = 2;
+ //
+ // txtSheetTypeName
+ //
+ this.txtSheetTypeName.AlwaysActive = false;
+ this.txtSheetTypeName.Location = new System.Drawing.Point(23, 114);
+ this.txtSheetTypeName.Name = "txtSheetTypeName";
+ this.txtSheetTypeName.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtSheetTypeName.Size = new System.Drawing.Size(243, 35);
+ this.txtSheetTypeName.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtSheetTypeName.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.txtSheetTypeName.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.txtSheetTypeName.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtSheetTypeName.StateCommon.Border.Rounding = 4;
+ this.txtSheetTypeName.StateCommon.Border.Width = 2;
+ this.txtSheetTypeName.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtSheetTypeName.TabIndex = 39;
+ //
+ // lbSheetTypeName
+ //
+ this.lbSheetTypeName.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbSheetTypeName.Location = new System.Drawing.Point(22, 87);
+ this.lbSheetTypeName.Name = "lbSheetTypeName";
+ this.lbSheetTypeName.Size = new System.Drawing.Size(115, 26);
+ this.lbSheetTypeName.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbSheetTypeName.TabIndex = 38;
+ this.lbSheetTypeName.Values.Text = "板材类型名称:";
+ //
+ // txtSheetTypeCode
+ //
+ this.txtSheetTypeCode.AlwaysActive = false;
+ this.txtSheetTypeCode.Location = new System.Drawing.Point(23, 43);
+ this.txtSheetTypeCode.Name = "txtSheetTypeCode";
+ this.txtSheetTypeCode.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtSheetTypeCode.Size = new System.Drawing.Size(243, 35);
+ this.txtSheetTypeCode.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtSheetTypeCode.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.txtSheetTypeCode.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.txtSheetTypeCode.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtSheetTypeCode.StateCommon.Border.Rounding = 4;
+ this.txtSheetTypeCode.StateCommon.Border.Width = 2;
+ this.txtSheetTypeCode.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtSheetTypeCode.TabIndex = 37;
+ //
+ // lbSheetTypeCode
+ //
+ this.lbSheetTypeCode.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbSheetTypeCode.Location = new System.Drawing.Point(23, 16);
+ this.lbSheetTypeCode.Name = "lbSheetTypeCode";
+ this.lbSheetTypeCode.Size = new System.Drawing.Size(115, 26);
+ this.lbSheetTypeCode.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbSheetTypeCode.TabIndex = 36;
+ this.lbSheetTypeCode.Values.Text = "板材类型编码:";
+ //
+ // btnEdit
+ //
+ this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnEdit.Location = new System.Drawing.Point(183, 166);
+ this.btnEdit.Name = "btnEdit";
+ this.btnEdit.Size = new System.Drawing.Size(82, 40);
+ this.btnEdit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnEdit.TabIndex = 35;
+ this.btnEdit.Values.Text = "取消";
+ this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(23, 166);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(82, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 34;
+ this.btnAdd.Values.Text = "确认";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // frmEditSheetType
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(289, 227);
+ this.Controls.Add(this.kryptonPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmEditSheetType";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "frmEditSheetType";
+ this.Load += new System.EventHandler(this.frmEditSheetType_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtSheetTypeName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbSheetTypeName;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtSheetTypeCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbSheetTypeCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnEdit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditSheetType.cs b/CleanMachineHMI/frmChild/frmEditSheetType.cs
new file mode 100644
index 0000000..9257335
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditSheetType.cs
@@ -0,0 +1,102 @@
+using CleanMachineHMI.forms;
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.frmChild
+{
+ public partial class frmEditSheetType : KryptonForm
+ {
+ public frmEditSheetType()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _InfoLanguageTextList;
+ public string SheetTypeId { get; set; }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ txtSheetTypeCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtSheetTypeCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtSheetTypeName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtSheetTypeName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmEditSheetType_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ string sql = $@"SELECT * FROM BAS_SHEET_TYPE WHERE SHEET_TYPE_ID = '{SheetTypeId}'";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ txtSheetTypeCode.Text = dt.Rows[0]["SHEET_TYPE_CODE"].ToString();
+ txtSheetTypeCode.Enabled = false;
+ txtSheetTypeName.Text = dt.Rows[0]["SHEET_TYPE_NAME"].ToString();
+ }
+ kryptonPanel1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑板材数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (string.IsNullOrEmpty(txtSheetTypeName.Text))
+ {
+ //KryptonMessageBox.Show("请输入板材名称!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入板材名称!", "EnterSheetTypeNameInfo"));
+ return;
+ }
+ string sql = $@"update BAS_SHEET_TYPE set SHEET_TYPE_NAME = '{txtSheetTypeName.Text}',UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime') where SHEET_TYPE_ID = '{SheetTypeId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ //KryptonMessageBox.Show("修改板材数据成功!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑板材数据成功!", "EditSuccessInfo"));
+ frmSheetType.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ //KryptonMessageBox.Show("修改板材数据失败!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑板材数据失败!", "EditFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑板材类型数据发生异常", "EditSheetTypeDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnEdit_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmEditSheetType.resx b/CleanMachineHMI/frmChild/frmEditSheetType.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditSheetType.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditUser.Designer.cs b/CleanMachineHMI/frmChild/frmEditUser.Designer.cs
new file mode 100644
index 0000000..a5af898
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditUser.Designer.cs
@@ -0,0 +1,300 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmEditUser
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.btnClose = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.cmbGender = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.lbGender = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtPS1 = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbPS1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtPS = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbPS = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbName = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtAccount = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbAccount = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kcmb_Role = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.klb_Role = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.cmbGender)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_Role)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kcmb_Role);
+ this.kryptonPanel1.Controls.Add(this.klb_Role);
+ this.kryptonPanel1.Controls.Add(this.btnClose);
+ this.kryptonPanel1.Controls.Add(this.btnAdd);
+ this.kryptonPanel1.Controls.Add(this.cmbGender);
+ this.kryptonPanel1.Controls.Add(this.lbGender);
+ this.kryptonPanel1.Controls.Add(this.txtPS1);
+ this.kryptonPanel1.Controls.Add(this.lbPS1);
+ this.kryptonPanel1.Controls.Add(this.txtPS);
+ this.kryptonPanel1.Controls.Add(this.lbPS);
+ this.kryptonPanel1.Controls.Add(this.txtName);
+ this.kryptonPanel1.Controls.Add(this.lbName);
+ this.kryptonPanel1.Controls.Add(this.txtAccount);
+ this.kryptonPanel1.Controls.Add(this.lbAccount);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(289, 479);
+ this.kryptonPanel1.TabIndex = 1;
+ //
+ // btnClose
+ //
+ this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnClose.Location = new System.Drawing.Point(179, 418);
+ this.btnClose.Name = "btnClose";
+ this.btnClose.Size = new System.Drawing.Size(82, 40);
+ this.btnClose.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnClose.TabIndex = 35;
+ this.btnClose.Values.Text = "取消";
+ this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(29, 418);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(82, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 34;
+ this.btnAdd.Values.Text = "确认";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // cmbGender
+ //
+ this.cmbGender.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cmbGender.DropDownWidth = 271;
+ this.cmbGender.Items.AddRange(new object[] {
+ "请选择",
+ "男",
+ "女"});
+ this.cmbGender.Location = new System.Drawing.Point(29, 305);
+ this.cmbGender.Name = "cmbGender";
+ this.cmbGender.Size = new System.Drawing.Size(232, 31);
+ this.cmbGender.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.cmbGender.TabIndex = 33;
+ //
+ // lbGender
+ //
+ this.lbGender.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbGender.Location = new System.Drawing.Point(29, 278);
+ this.lbGender.Name = "lbGender";
+ this.lbGender.Size = new System.Drawing.Size(49, 26);
+ this.lbGender.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbGender.TabIndex = 30;
+ this.lbGender.Values.Text = "性别:";
+ //
+ // txtPS1
+ //
+ this.txtPS1.AlwaysActive = false;
+ this.txtPS1.Location = new System.Drawing.Point(29, 237);
+ this.txtPS1.Name = "txtPS1";
+ this.txtPS1.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtPS1.Size = new System.Drawing.Size(232, 35);
+ this.txtPS1.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtPS1.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.txtPS1.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.txtPS1.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtPS1.StateCommon.Border.Rounding = 4;
+ this.txtPS1.StateCommon.Border.Width = 2;
+ this.txtPS1.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtPS1.TabIndex = 29;
+ //
+ // lbPS1
+ //
+ this.lbPS1.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbPS1.Location = new System.Drawing.Point(29, 211);
+ this.lbPS1.Name = "lbPS1";
+ this.lbPS1.Size = new System.Drawing.Size(82, 26);
+ this.lbPS1.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbPS1.TabIndex = 28;
+ this.lbPS1.Values.Text = "密码确认:";
+ //
+ // txtPS
+ //
+ this.txtPS.AlwaysActive = false;
+ this.txtPS.Location = new System.Drawing.Point(29, 170);
+ this.txtPS.Name = "txtPS";
+ this.txtPS.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtPS.Size = new System.Drawing.Size(232, 35);
+ this.txtPS.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtPS.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.txtPS.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.txtPS.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtPS.StateCommon.Border.Rounding = 4;
+ this.txtPS.StateCommon.Border.Width = 2;
+ this.txtPS.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtPS.TabIndex = 27;
+ //
+ // lbPS
+ //
+ this.lbPS.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbPS.Location = new System.Drawing.Point(29, 145);
+ this.lbPS.Name = "lbPS";
+ this.lbPS.Size = new System.Drawing.Size(82, 26);
+ this.lbPS.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbPS.TabIndex = 26;
+ this.lbPS.Values.Text = "登陆密码:";
+ //
+ // txtName
+ //
+ this.txtName.AlwaysActive = false;
+ this.txtName.Location = new System.Drawing.Point(29, 104);
+ this.txtName.Name = "txtName";
+ this.txtName.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtName.Size = new System.Drawing.Size(232, 35);
+ this.txtName.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtName.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.txtName.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.txtName.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtName.StateCommon.Border.Rounding = 4;
+ this.txtName.StateCommon.Border.Width = 2;
+ this.txtName.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtName.TabIndex = 25;
+ //
+ // lbName
+ //
+ this.lbName.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbName.Location = new System.Drawing.Point(29, 78);
+ this.lbName.Name = "lbName";
+ this.lbName.Size = new System.Drawing.Size(82, 26);
+ this.lbName.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbName.TabIndex = 24;
+ this.lbName.Values.Text = "用户姓名:";
+ //
+ // txtAccount
+ //
+ this.txtAccount.AlwaysActive = false;
+ this.txtAccount.Location = new System.Drawing.Point(29, 37);
+ this.txtAccount.Name = "txtAccount";
+ this.txtAccount.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtAccount.Size = new System.Drawing.Size(232, 35);
+ this.txtAccount.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtAccount.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.txtAccount.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.txtAccount.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtAccount.StateCommon.Border.Rounding = 4;
+ this.txtAccount.StateCommon.Border.Width = 2;
+ this.txtAccount.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtAccount.TabIndex = 23;
+ //
+ // lbAccount
+ //
+ this.lbAccount.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbAccount.Location = new System.Drawing.Point(29, 10);
+ this.lbAccount.Name = "lbAccount";
+ this.lbAccount.Size = new System.Drawing.Size(82, 26);
+ this.lbAccount.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbAccount.TabIndex = 22;
+ this.lbAccount.Values.Text = "用户账号:";
+ //
+ // kcmb_Role
+ //
+ this.kcmb_Role.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.kcmb_Role.DropDownWidth = 271;
+ this.kcmb_Role.Location = new System.Drawing.Point(29, 369);
+ this.kcmb_Role.Name = "kcmb_Role";
+ this.kcmb_Role.Size = new System.Drawing.Size(232, 31);
+ this.kcmb_Role.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kcmb_Role.TabIndex = 37;
+ //
+ // klb_Role
+ //
+ this.klb_Role.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.klb_Role.Location = new System.Drawing.Point(29, 342);
+ this.klb_Role.Name = "klb_Role";
+ this.klb_Role.Size = new System.Drawing.Size(82, 26);
+ this.klb_Role.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Role.TabIndex = 36;
+ this.klb_Role.Values.Text = "所属角色:";
+ //
+ // frmEditUser
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(289, 479);
+ this.Controls.Add(this.kryptonPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmEditUser";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "frmEditUser";
+ this.Load += new System.EventHandler(this.frmEditUser_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.cmbGender)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_Role)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnClose;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox cmbGender;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbGender;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtPS1;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbPS1;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtPS;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbPS;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbName;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtAccount;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbAccount;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_Role;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Role;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditUser.cs b/CleanMachineHMI/frmChild/frmEditUser.cs
new file mode 100644
index 0000000..03bde61
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditUser.cs
@@ -0,0 +1,168 @@
+using CleanMachineHMI.forms;
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.Web.UI.WebControls;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.frmChild
+{
+ public partial class frmEditUser : KryptonForm
+ {
+ public frmEditUser()
+ {
+ InitializeComponent();
+ _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _ComboBoxLanguageTextList;
+ private DataTable _InfoLanguageTextList;
+ public string UserId { get; set; }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ txtAccount.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtAccount.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtPS.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtPS.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtPS1.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtPS1.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ }
+
+ private void frmEditUser_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ cmbGender.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(cmbGender.Name, "KryptonComboBox"))
+ {
+ cmbGender.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ }
+ string sql1 = $"SELECT ROLE_ID,ROLE_CODE,ROLE_NAME FROM SYS_ROLE ";
+ DataTable dt1 = LeadDbHelperSQLite.Query(sql1).Tables[0];
+ if (dt1 != null && dt1.Rows.Count > 0)
+ {
+ kcmb_Role.Items.Clear();
+ foreach (DataRow item in dt1.Rows)
+ {
+ kcmb_Role.Items.Add(new ListItem
+ {
+ Value = item["ROLE_ID"].ToString(),
+ Text = item["ROLE_CODE"].ToString(),
+ });
+ }
+ }
+ cmbGender.SelectedIndex = 0;
+ string sql = $@"SELECT A.USER_ID,A.USER_CODE,A.USER_NAME,A.GENDER,A.ROLE_ID,B.ROLE_CODE,B.ROLE_NAME,A.PASSWORD FROM SYS_USER A LEFT JOIN SYS_ROLE B on A.ROLE_ID = B.ROLE_ID WHERE A.USER_ID = '{UserId}'";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ txtAccount.Text = dt.Rows[0]["USER_CODE"].ToString();
+ txtAccount.Enabled = false;
+ txtName.Text = dt.Rows[0]["USER_NAME"].ToString();
+ txtPS.Text = dt.Rows[0]["PASSWORD"].ToString();
+ txtPS1.Text = dt.Rows[0]["PASSWORD"].ToString();
+ cmbGender.SelectedIndex = Convert.ToInt32(dt.Rows[0]["GENDER"]);
+ kcmb_Role.Text = dt.Rows[0]["ROLE_CODE"].ToString();
+ }
+ kryptonPanel1.Focus();
+
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑用户数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (string.IsNullOrEmpty(txtAccount.Text))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入用户编码!", "EnterUserCodeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtName.Text))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入用户名称!", "EnterUserNameInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtPS.Text))
+ {
+ //KryptonMessageBox.Show("请输入用户密码!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入用户密码!", "EnterUserPasswordInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtPS1.Text))
+ {
+ //KryptonMessageBox.Show("请确认用户密码!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请确认用户密码!", "ConfirmUserPasswordInfo"));
+ return;
+ }
+ if (cmbGender.SelectedIndex == 0)
+ {
+ //KryptonMessageBox.Show("请选择性别!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择性别!", "SelectUserGenderInfo"));
+ return;
+ }
+ if (txtPS1.Text != txtPS.Text)
+ {
+ //KryptonMessageBox.Show("两次输入的密码不同,请重新输入!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("两次输入的密码不同,请重新输入!", "ConfirmUserPasswordErrInfo"));
+ return;
+ }
+ string sql = $@"update SYS_USER set USER_CODE = '{txtAccount.Text}',USER_NAME = '{txtName.Text}',PASSWORD = '{txtPS1.Text}',GENDER = '{cmbGender.SelectedIndex}',ROLE_ID = '{((ListItem)kcmb_Role.SelectedItem).Value}',UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime') where USER_ID = '{UserId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ //KryptonMessageBox.Show("修改用户数据成功!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("修改用户数据成功!", "EditSuccessInfo"));
+ frmUser.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ //KryptonMessageBox.Show("修改用户数据失败!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("修改用户数据失败!", "EditFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑用户数据发生异常", "EditUserDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnClose_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmEditUser.resx b/CleanMachineHMI/frmChild/frmEditUser.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditUser.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditWaringMsg.Designer.cs b/CleanMachineHMI/frmChild/frmEditWaringMsg.Designer.cs
new file mode 100644
index 0000000..737662d
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditWaringMsg.Designer.cs
@@ -0,0 +1,280 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmEditWaringMsg
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kcmb_WarningType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.ktb_PlcCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.txtWarningMessage = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbWarningMessage = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtWarningName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbWarningName = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.txtWarningCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbWarningCode = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.btnEdit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_WarningType)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kcmb_WarningType);
+ this.kryptonPanel1.Controls.Add(this.ktb_PlcCode);
+ this.kryptonPanel1.Controls.Add(this.txtWarningMessage);
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel2);
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel1);
+ this.kryptonPanel1.Controls.Add(this.lbWarningMessage);
+ this.kryptonPanel1.Controls.Add(this.txtWarningName);
+ this.kryptonPanel1.Controls.Add(this.lbWarningName);
+ this.kryptonPanel1.Controls.Add(this.txtWarningCode);
+ this.kryptonPanel1.Controls.Add(this.lbWarningCode);
+ this.kryptonPanel1.Controls.Add(this.btnEdit);
+ this.kryptonPanel1.Controls.Add(this.btnAdd);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(289, 441);
+ this.kryptonPanel1.TabIndex = 7;
+ //
+ // kcmb_WarningType
+ //
+ this.kcmb_WarningType.DropDownWidth = 236;
+ this.kcmb_WarningType.Items.AddRange(new object[] {
+ "请选择",
+ "清洁机报警",
+ "变频器报警"});
+ this.kcmb_WarningType.Location = new System.Drawing.Point(23, 329);
+ this.kcmb_WarningType.Name = "kcmb_WarningType";
+ this.kcmb_WarningType.Size = new System.Drawing.Size(242, 33);
+ this.kcmb_WarningType.StateActive.ComboBox.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.kcmb_WarningType.StateActive.ComboBox.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.kcmb_WarningType.StateCommon.ComboBox.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.kcmb_WarningType.StateCommon.ComboBox.Border.Rounding = 4;
+ this.kcmb_WarningType.StateCommon.ComboBox.Border.Width = 2;
+ this.kcmb_WarningType.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kcmb_WarningType.TabIndex = 52;
+ //
+ // ktb_PlcCode
+ //
+ this.ktb_PlcCode.AlwaysActive = false;
+ this.ktb_PlcCode.Location = new System.Drawing.Point(23, 255);
+ this.ktb_PlcCode.Name = "ktb_PlcCode";
+ this.ktb_PlcCode.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.ktb_PlcCode.Size = new System.Drawing.Size(242, 35);
+ this.ktb_PlcCode.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.ktb_PlcCode.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.ktb_PlcCode.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.ktb_PlcCode.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.ktb_PlcCode.StateCommon.Border.Rounding = 4;
+ this.ktb_PlcCode.StateCommon.Border.Width = 2;
+ this.ktb_PlcCode.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.ktb_PlcCode.TabIndex = 50;
+ //
+ // txtWarningMessage
+ //
+ this.txtWarningMessage.AlwaysActive = false;
+ this.txtWarningMessage.Location = new System.Drawing.Point(23, 184);
+ this.txtWarningMessage.Name = "txtWarningMessage";
+ this.txtWarningMessage.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtWarningMessage.Size = new System.Drawing.Size(242, 35);
+ this.txtWarningMessage.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtWarningMessage.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.txtWarningMessage.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.txtWarningMessage.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtWarningMessage.StateCommon.Border.Rounding = 4;
+ this.txtWarningMessage.StateCommon.Border.Width = 2;
+ this.txtWarningMessage.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtWarningMessage.TabIndex = 51;
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.kryptonLabel2.Location = new System.Drawing.Point(23, 296);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(82, 26);
+ this.kryptonLabel2.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel2.TabIndex = 47;
+ this.kryptonLabel2.Values.Text = "报警类型:";
+ //
+ // kryptonLabel1
+ //
+ this.kryptonLabel1.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.kryptonLabel1.Location = new System.Drawing.Point(23, 225);
+ this.kryptonLabel1.Name = "kryptonLabel1";
+ this.kryptonLabel1.Size = new System.Drawing.Size(80, 26);
+ this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel1.TabIndex = 48;
+ this.kryptonLabel1.Values.Text = "PLC信息:";
+ //
+ // lbWarningMessage
+ //
+ this.lbWarningMessage.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbWarningMessage.Location = new System.Drawing.Point(23, 154);
+ this.lbWarningMessage.Name = "lbWarningMessage";
+ this.lbWarningMessage.Size = new System.Drawing.Size(82, 26);
+ this.lbWarningMessage.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbWarningMessage.TabIndex = 49;
+ this.lbWarningMessage.Values.Text = "报警消息:";
+ //
+ // txtWarningName
+ //
+ this.txtWarningName.AlwaysActive = false;
+ this.txtWarningName.Location = new System.Drawing.Point(23, 111);
+ this.txtWarningName.Name = "txtWarningName";
+ this.txtWarningName.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtWarningName.Size = new System.Drawing.Size(242, 35);
+ this.txtWarningName.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtWarningName.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.txtWarningName.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.txtWarningName.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtWarningName.StateCommon.Border.Rounding = 4;
+ this.txtWarningName.StateCommon.Border.Width = 2;
+ this.txtWarningName.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtWarningName.TabIndex = 46;
+ //
+ // lbWarningName
+ //
+ this.lbWarningName.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbWarningName.Location = new System.Drawing.Point(23, 85);
+ this.lbWarningName.Name = "lbWarningName";
+ this.lbWarningName.Size = new System.Drawing.Size(82, 26);
+ this.lbWarningName.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbWarningName.TabIndex = 45;
+ this.lbWarningName.Values.Text = "报警名称:";
+ //
+ // txtWarningCode
+ //
+ this.txtWarningCode.AlwaysActive = false;
+ this.txtWarningCode.Location = new System.Drawing.Point(23, 44);
+ this.txtWarningCode.Name = "txtWarningCode";
+ this.txtWarningCode.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.txtWarningCode.Size = new System.Drawing.Size(242, 35);
+ this.txtWarningCode.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.txtWarningCode.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.txtWarningCode.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.txtWarningCode.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.txtWarningCode.StateCommon.Border.Rounding = 4;
+ this.txtWarningCode.StateCommon.Border.Width = 2;
+ this.txtWarningCode.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtWarningCode.TabIndex = 44;
+ //
+ // lbWarningCode
+ //
+ this.lbWarningCode.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbWarningCode.Location = new System.Drawing.Point(23, 12);
+ this.lbWarningCode.Name = "lbWarningCode";
+ this.lbWarningCode.Size = new System.Drawing.Size(82, 26);
+ this.lbWarningCode.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbWarningCode.TabIndex = 43;
+ this.lbWarningCode.Values.Text = "报警编码:";
+ //
+ // btnEdit
+ //
+ this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnEdit.Location = new System.Drawing.Point(183, 382);
+ this.btnEdit.Name = "btnEdit";
+ this.btnEdit.Size = new System.Drawing.Size(82, 40);
+ this.btnEdit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnEdit.TabIndex = 35;
+ this.btnEdit.Values.Text = "取消";
+ this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(23, 382);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(82, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 34;
+ this.btnAdd.Values.Text = "确认";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // frmEditWaringMsg
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(289, 441);
+ this.Controls.Add(this.kryptonPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmEditWaringMsg";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "EditWaringMsg";
+ this.Load += new System.EventHandler(this.frmEditWaringMsg_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_WarningType)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnEdit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_WarningType;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_PlcCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtWarningMessage;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbWarningMessage;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtWarningName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbWarningName;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtWarningCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbWarningCode;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditWaringMsg.cs b/CleanMachineHMI/frmChild/frmEditWaringMsg.cs
new file mode 100644
index 0000000..54fe8bb
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditWaringMsg.cs
@@ -0,0 +1,142 @@
+using CleanMachineHMI.forms;
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.frmChild
+{
+ public partial class frmEditWaringMsg : KryptonForm
+ {
+ public frmEditWaringMsg()
+ {
+ InitializeComponent();
+ _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _ComboBoxLanguageTextList;
+ private DataTable _InfoLanguageTextList;
+ public string WarningId { get; set; }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ private void InitControlEvent()
+ {
+ txtWarningCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtWarningCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtWarningName.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtWarningName.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtWarningMessage.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtWarningMessage.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ ktb_PlcCode.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ ktb_PlcCode.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+ }
+
+ private void frmEditWaringMsg_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControlEvent();
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ kcmb_WarningType.Items.Clear();
+ foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_WarningType.Name, "KryptonComboBox"))
+ {
+ kcmb_WarningType.Items.Add(item["CONTROL_NAME"].ToString());
+ }
+ }
+ kcmb_WarningType.SelectedIndex = 0;
+ string sql1 = $@"select WARNING_ID,WARNING_CODE,WARNING_NAME,PLC_ITEM_CODE,WARNING_TYPE,WARNING_MESSAGE,CREATE_TIME from BAS_WARNING where WARNING_ID = '{WarningId}'";
+ DataTable dt1 = LeadDbHelperSQLite.Query(sql1).Tables[0];
+ if (dt1 != null && dt1.Rows.Count > 0)
+ {
+ txtWarningCode.Text = dt1.Rows[0]["WARNING_CODE"].ToString();
+ txtWarningCode.Enabled = false;
+ txtWarningName.Text = dt1.Rows[0]["WARNING_NAME"].ToString();
+ txtWarningMessage.Text = dt1.Rows[0]["WARNING_MESSAGE"].ToString();
+ ktb_PlcCode.Text = dt1.Rows[0]["PLC_ITEM_CODE"].ToString();
+ kcmb_WarningType.SelectedIndex = Convert.ToInt32(dt1.Rows[0]["WARNING_TYPE"]);
+ }
+ kryptonPanel1.Focus();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑基础报警数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (string.IsNullOrEmpty(txtWarningCode.Text))
+ {
+ //KryptonMessageBox.Show("请输入报警条码!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入报警条码!", "EnterWarningCodeInfo"));
+ return;
+ }
+ if (string.IsNullOrEmpty(txtWarningName.Text))
+ {
+ //KryptonMessageBox.Show("请输入报警名称!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入报警名称!", "EnterWarningNameInfo"));
+ return;
+ }
+ if (kcmb_WarningType.SelectedIndex == 0)
+ {
+ //KryptonMessageBox.Show("请选择报警类型!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择报警类型!", "SelectWarningTypeInfo"));
+ return;
+ }
+ string sqlIsExistCode = $@"SELECT 1 FROM BAS_WARNING WHERE WARNING_TYPE = '{kcmb_WarningType.SelectedIndex}' AND PLC_ITEM_CODE = '{ktb_PlcCode.Text}' AND WARNING_CODE = '{txtWarningCode.Text}'";
+ DataTable dtIsExistCode = LeadDbHelperSQLite.Query(sqlIsExistCode).Tables[0];
+ if (dtIsExistCode != null && dtIsExistCode.Rows.Count > 0)
+ {
+ //KryptonMessageBox.Show($"相同报警类型;【{kcmb_WarningType.Text}】,PLC条码:【{ktb_PlcCode.Text}】下的报警编码:【{txtWarningCode.Text}】已经存在,请重新输入!");
+ KryptonMessageBox.Show($"Same alarm type: [{kcmb_WarningType.Text}],PLC item code: [{ktb_PlcCode.Text}] alarm code: [{txtWarningCode.Text}] already exists, please re-enter!");
+ return;
+ }
+ string sql = $@"update BAS_WARNING set WARNING_NAME = '{txtWarningName.Text}',WARNING_MESSAGE = '{txtWarningMessage.Text}',PLC_ITEM_CODE = '{ktb_PlcCode.Text}',WARNING_TYPE = '{kcmb_WarningType.SelectedIndex}',UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime') where WARNING_ID = '{WarningId}'";
+ int row = LeadDbHelperSQLite.ExecuteSql(sql);
+ if (row > 0)
+ {
+ //KryptonMessageBox.Show("修改基础报警数据成功!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("修改基础报警数据成功!", "EditSuccessInfo"));
+ frmWarning.RefreshFrmHost();
+ this.Close();
+ }
+ else
+ {
+ //KryptonMessageBox.Show("修改基础报警数据失败!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("修改基础报警数据失败!", "EditFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑基础报警数据发生异常", "EditWarningDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnEdit_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmEditWaringMsg.resx b/CleanMachineHMI/frmChild/frmEditWaringMsg.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditWaringMsg.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditWorkingPalletData.Designer.cs b/CleanMachineHMI/frmChild/frmEditWorkingPalletData.Designer.cs
new file mode 100644
index 0000000..1ba74d6
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditWorkingPalletData.Designer.cs
@@ -0,0 +1,266 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmEditWorkingPalletData
+ {
+ ///
+ /// 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.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kbtn_Cancel = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_Confirm = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonDataGridView1 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
+ this.序号 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ this.清洁方式 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ this.污染类型 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ this.污染明细 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ this.当前数量 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ this.更改数量 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ this.IR条码 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ this.托盘号 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ this.板材号 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ this.录入时间 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.CaptionOverlap = 0D;
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kbtn_Cancel);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kbtn_Confirm);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(984, 73);
+ this.kryptonGroupBox1.TabIndex = 0;
+ this.kryptonGroupBox1.Values.Heading = "按钮操作:";
+ //
+ // kbtn_Cancel
+ //
+ this.kbtn_Cancel.Location = new System.Drawing.Point(145, 7);
+ this.kbtn_Cancel.Name = "kbtn_Cancel";
+ this.kbtn_Cancel.Size = new System.Drawing.Size(90, 35);
+ this.kbtn_Cancel.TabIndex = 0;
+ this.kbtn_Cancel.Values.Text = "取消";
+ this.kbtn_Cancel.Click += new System.EventHandler(this.kbtn_Cancel_Click);
+ //
+ // kbtn_Confirm
+ //
+ this.kbtn_Confirm.Location = new System.Drawing.Point(25, 7);
+ this.kbtn_Confirm.Name = "kbtn_Confirm";
+ this.kbtn_Confirm.Size = new System.Drawing.Size(90, 35);
+ this.kbtn_Confirm.TabIndex = 0;
+ this.kbtn_Confirm.Values.Text = "确认";
+ this.kbtn_Confirm.Click += new System.EventHandler(this.kbtn_Confirm_Click);
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.CaptionOverlap = 0D;
+ this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 73);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonDataGridView1);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonButton1);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(984, 518);
+ this.kryptonGroupBox2.TabIndex = 6;
+ this.kryptonGroupBox2.Values.Heading = "作业托盘明细数据:";
+ //
+ // kryptonDataGridView1
+ //
+ this.kryptonDataGridView1.AllowUserToAddRows = false;
+ this.kryptonDataGridView1.AllowUserToDeleteRows = false;
+ this.kryptonDataGridView1.AllowUserToResizeColumns = false;
+ this.kryptonDataGridView1.AllowUserToResizeRows = false;
+ this.kryptonDataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
+ this.kryptonDataGridView1.ClipboardCopyMode = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
+ this.kryptonDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.序号,
+ this.清洁方式,
+ this.污染类型,
+ this.污染明细,
+ this.当前数量,
+ this.更改数量,
+ this.IR条码,
+ this.托盘号,
+ this.板材号,
+ this.录入时间});
+ this.kryptonDataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonDataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
+ this.kryptonDataGridView1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonDataGridView1.MultiSelect = false;
+ this.kryptonDataGridView1.Name = "kryptonDataGridView1";
+ this.kryptonDataGridView1.RowTemplate.Height = 23;
+ this.kryptonDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.kryptonDataGridView1.Size = new System.Drawing.Size(980, 494);
+ this.kryptonDataGridView1.TabIndex = 0;
+ this.kryptonDataGridView1.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.kryptonDataGridView1_CellBeginEdit);
+ this.kryptonDataGridView1.CellContentDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.kryptonDataGridView1_CellContentDoubleClick);
+ this.kryptonDataGridView1.CellLeave += new System.Windows.Forms.DataGridViewCellEventHandler(this.kryptonDataGridView1_CellLeave);
+ this.kryptonDataGridView1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.kryptonDataGridView1_DataError);
+ //
+ // 序号
+ //
+ this.序号.HeaderText = "序号";
+ this.序号.Name = "序号";
+ this.序号.ReadOnly = true;
+ this.序号.Width = 62;
+ //
+ // 清洁方式
+ //
+ this.清洁方式.HeaderText = "清洁方式";
+ this.清洁方式.Name = "清洁方式";
+ this.清洁方式.ReadOnly = true;
+ this.清洁方式.Width = 88;
+ //
+ // 污染类型
+ //
+ this.污染类型.HeaderText = "污染类型";
+ this.污染类型.Name = "污染类型";
+ this.污染类型.ReadOnly = true;
+ this.污染类型.Width = 88;
+ //
+ // 污染明细
+ //
+ this.污染明细.HeaderText = "污染明细";
+ this.污染明细.Name = "污染明细";
+ this.污染明细.ReadOnly = true;
+ this.污染明细.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.污染明细.Width = 88;
+ //
+ // 当前数量
+ //
+ this.当前数量.HeaderText = "当前数量";
+ this.当前数量.Name = "当前数量";
+ this.当前数量.ReadOnly = true;
+ this.当前数量.Width = 88;
+ //
+ // 更改数量
+ //
+ this.更改数量.HeaderText = "更改数量";
+ this.更改数量.Name = "更改数量";
+ this.更改数量.Width = 88;
+ //
+ // IR条码
+ //
+ this.IR条码.HeaderText = "IR条码";
+ this.IR条码.Name = "IR条码";
+ this.IR条码.ReadOnly = true;
+ this.IR条码.Width = 72;
+ //
+ // 托盘号
+ //
+ this.托盘号.HeaderText = "托盘号";
+ this.托盘号.Name = "托盘号";
+ this.托盘号.ReadOnly = true;
+ this.托盘号.Width = 75;
+ //
+ // 板材号
+ //
+ this.板材号.HeaderText = "板材号";
+ this.板材号.Name = "板材号";
+ this.板材号.ReadOnly = true;
+ this.板材号.Width = 75;
+ //
+ // 录入时间
+ //
+ this.录入时间.HeaderText = "录入时间";
+ this.录入时间.Name = "录入时间";
+ this.录入时间.ReadOnly = true;
+ this.录入时间.Width = 88;
+ //
+ // kryptonButton1
+ //
+ this.kryptonButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kryptonButton1.Location = new System.Drawing.Point(728, 47);
+ this.kryptonButton1.Name = "kryptonButton1";
+ this.kryptonButton1.Size = new System.Drawing.Size(104, 387);
+ this.kryptonButton1.TabIndex = 0;
+ this.kryptonButton1.Values.Text = "重置条件";
+ //
+ // frmEditWorkingPalletData
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(984, 591);
+ this.Controls.Add(this.kryptonGroupBox2);
+ this.Controls.Add(this.kryptonGroupBox1);
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmEditWorkingPalletData";
+ this.ShowIcon = false;
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "frmEditWorkingPalletData";
+ this.Load += new System.EventHandler(this.frmEditWorkingPalletData_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Cancel;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Confirm;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 序号;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 清洁方式;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 污染类型;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 污染明细;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 当前数量;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 更改数量;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn IR条码;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 托盘号;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 板材号;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 录入时间;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmEditWorkingPalletData.cs b/CleanMachineHMI/frmChild/frmEditWorkingPalletData.cs
new file mode 100644
index 0000000..66b4c09
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditWorkingPalletData.cs
@@ -0,0 +1,130 @@
+using ComponentFactory.Krypton.Toolkit;
+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;
+using LeadDataBaseUtility;
+using System.Text.RegularExpressions;
+using CleanMachineHMI.Utils;
+using CleanMachineHMI.FrmUserControl;
+
+namespace CleanMachineHMI.frmChild
+{
+ public partial class frmEditWorkingPalletData : KryptonForm
+ {
+ public frmEditWorkingPalletData()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _InfoLanguageTextList;
+ public string PalletCode { get; set; }
+ private void frmEditWorkingPalletData_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ string sql = $@"select * from VW_WORKING_PALLET_MSG where WORKING_PALLET_CODE = '{PalletCode}'";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ kryptonDataGridView1.Rows.Clear();
+ foreach (DataRow item in dt.Rows)
+ {
+ int index = kryptonDataGridView1.Rows.Add();
+ kryptonDataGridView1.Rows[index].Cells[0].Value = item["WORKING_PALLET_DTL_ID"].ToString();
+ kryptonDataGridView1.Rows[index].Cells[1].Value = item["CLEAN_MODE_NAME"].ToString();
+ kryptonDataGridView1.Rows[index].Cells[2].Value = item["CONTAMINATION_TYPE_NAME"].ToString();
+ kryptonDataGridView1.Rows[index].Cells[3].Value = item["CONTAMINATION_DTL_NAME"].ToString();
+ kryptonDataGridView1.Rows[index].Cells[4].Value = item["CURRENT_NUMBER"].ToString();
+ kryptonDataGridView1.Rows[index].Cells[6].Value = item["IR_CODE"].ToString();
+ kryptonDataGridView1.Rows[index].Cells[7].Value = item["WORKING_PALLET_CODE"].ToString();
+ kryptonDataGridView1.Rows[index].Cells[8].Value = item["SHEET_TYPE_NAME"].ToString();
+ kryptonDataGridView1.Rows[index].Cells[9].Value = item["INPUT_TIME"].ToString();
+ }
+
+ kryptonDataGridView1.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑作业托盘数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbtn_Confirm_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ int rowIndex = 0;
+ foreach (DataGridViewRow item in kryptonDataGridView1.Rows)
+ {
+ rowIndex++;
+ string workingDtlId = item.Cells[0].Value.ToString();
+ if (item.Cells[5].Value != null)
+ {
+ if (Regex.IsMatch(item.Cells[5].Value.ToString(), "^([1-9][0-9]*)$"))
+ {
+ string sql = $@"update CM_WORKING_PALLET_DTL set CURRENT_NUMBER = '{item.Cells[5].Value}',OPERATE_USER_ID = '{GlobalHelper.UserInfo.USER_ID}',OPERATE_USER_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 where WORKING_PALLET_DTL_ID = '{workingDtlId}'";
+ string sql1 = $@"update ZBK_WORKING_PALLET_DTL set CURRENT_NUMBER = '{item.Cells[5].Value}',OPERATE_USER_ID = '{GlobalHelper.UserInfo.USER_ID}',OPERATE_USER_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 where WORKING_PALLET_DTL_ID = '{workingDtlId}'";
+ LeadDbHelperSQLite.ExecuteSql(sql);
+ LeadDbHelperSQLite.ExecuteSql(sql1);
+ }
+ else
+ {
+ //KryptonMessageBox.Show($"第:{rowIndex}行输入的更改数量,不是正整数!");
+ KryptonMessageBox.Show($"The number of changes entered in line: {rowIndex} is not a positive integer!");
+ }
+ }
+ }
+ frmPrinterMain.RefreshFrmHost();
+ KryptonMessageBox.Show($"Edit Success!");
+ this.Close();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑作业托盘数据异常", "EditWorkingPalletDataExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kbtn_Cancel_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+
+ private void kryptonDataGridView1_CellLeave(object sender, DataGridViewCellEventArgs e)
+ {
+ if (e.ColumnIndex == 5)
+ {
+ BeginInvoke(new Action(() => {
+ KeyboardAutoPopUp.HideInputPanel();
+ }));
+ }
+ }
+
+ private void kryptonDataGridView1_DataError(object sender, DataGridViewDataErrorEventArgs e)
+ {
+
+ }
+
+ private void kryptonDataGridView1_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
+ {
+ if (e.ColumnIndex == 5)
+ {
+ BeginInvoke(new Action(() => {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }));
+ }
+ }
+
+ private void kryptonDataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
+ {
+
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmEditWorkingPalletData.resx b/CleanMachineHMI/frmChild/frmEditWorkingPalletData.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmEditWorkingPalletData.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmPopupWarningMsg.Designer.cs b/CleanMachineHMI/frmChild/frmPopupWarningMsg.Designer.cs
new file mode 100644
index 0000000..73fe8f4
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmPopupWarningMsg.Designer.cs
@@ -0,0 +1,160 @@
+
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmPopupWarningMsg
+ {
+ ///
+ /// 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.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonDataGridView1 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
+ this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.Column1 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ this.Column2 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.CaptionOverlap = 0D;
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonDataGridView1);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonPanel1);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(675, 426);
+ this.kryptonGroupBox1.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.kryptonGroupBox1.StateCommon.Border.Rounding = 0;
+ this.kryptonGroupBox1.StateCommon.Border.Width = 1;
+ this.kryptonGroupBox1.TabIndex = 0;
+ this.kryptonGroupBox1.Values.Heading = "Alarm Message:";
+ this.kryptonGroupBox1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.kryptonGroupBox1_MouseDown);
+ //
+ // kryptonDataGridView1
+ //
+ this.kryptonDataGridView1.AllowUserToAddRows = false;
+ this.kryptonDataGridView1.AllowUserToDeleteRows = false;
+ this.kryptonDataGridView1.AllowUserToResizeRows = false;
+ this.kryptonDataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ this.kryptonDataGridView1.ColumnHeadersHeight = 30;
+ this.kryptonDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ this.kryptonDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column2});
+ this.kryptonDataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonDataGridView1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonDataGridView1.Name = "kryptonDataGridView1";
+ this.kryptonDataGridView1.ReadOnly = true;
+ this.kryptonDataGridView1.RowHeadersVisible = false;
+ this.kryptonDataGridView1.RowHeadersWidth = 30;
+ this.kryptonDataGridView1.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
+ this.kryptonDataGridView1.RowTemplate.Height = 23;
+ this.kryptonDataGridView1.Size = new System.Drawing.Size(673, 362);
+ this.kryptonDataGridView1.TabIndex = 2;
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kryptonButton1);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 362);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(673, 41);
+ this.kryptonPanel1.TabIndex = 3;
+ //
+ // kryptonButton1
+ //
+ this.kryptonButton1.Location = new System.Drawing.Point(276, 8);
+ this.kryptonButton1.Name = "kryptonButton1";
+ this.kryptonButton1.Size = new System.Drawing.Size(122, 25);
+ this.kryptonButton1.TabIndex = 0;
+ this.kryptonButton1.Values.Text = "Confirm";
+ this.kryptonButton1.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // Column1
+ //
+ this.Column1.FillWeight = 30.45685F;
+ this.Column1.HeaderText = "Numerical Order";
+ this.Column1.Name = "Column1";
+ this.Column1.ReadOnly = true;
+ this.Column1.Width = 102;
+ //
+ // Column2
+ //
+ this.Column2.FillWeight = 169.5432F;
+ this.Column2.HeaderText = "Alarm prompt message";
+ this.Column2.Name = "Column2";
+ this.Column2.ReadOnly = true;
+ this.Column2.Width = 570;
+ //
+ // frmPopupWarningMsg
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(675, 426);
+ this.Controls.Add(this.kryptonGroupBox1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmPopupWarningMsg";
+ this.ShowIcon = false;
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+ this.Text = "Alarm prompt message";
+ this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmPopupWarningMsg_FormClosing);
+ this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.frmPopupWarningMsg_FormClosed);
+ this.Load += new System.EventHandler(this.frmPopupWarningMsg_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn Column1;
+ private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn Column2;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmPopupWarningMsg.cs b/CleanMachineHMI/frmChild/frmPopupWarningMsg.cs
new file mode 100644
index 0000000..5fd78a0
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmPopupWarningMsg.cs
@@ -0,0 +1,120 @@
+using ComponentFactory.Krypton.Toolkit;
+using NX_LogUtility;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Runtime.InteropServices;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.frmChild
+{
+ public partial class frmPopupWarningMsg : KryptonForm
+ {
+ public frmPopupWarningMsg()
+ {
+ InitializeComponent();
+ RefreshFrmHost = new dlgRefreshFrmHost(SetDataGridView);
+ }
+ public delegate void dlgRefreshFrmHost();
+ public static dlgRefreshFrmHost RefreshFrmHost;
+ public static List warnLst = new List();
+ private void frmPopupWarningMsg_Load(object sender, EventArgs e)
+ {
+
+ }
+ private void SetDataGridView()
+ {
+ try
+ {
+ Invoke(new Action(() =>
+ {
+ if (warnLst.Count > 0)
+ {
+ kryptonDataGridView1.Rows.Clear();
+ foreach (Bas_WarningMd item in warnLst)
+ {
+ int index = kryptonDataGridView1.Rows.Add();
+ kryptonDataGridView1.Rows[index].Cells[0].Value = index + 1;
+ kryptonDataGridView1.Rows[index].Cells[1].Value = item.WarningMessage.ToString();
+ }
+ }
+ }));
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog($"刷新报警信息发生异常:【{ex.Message}】", LogTypeEum.Err);
+ }
+ }
+ private void frmPopupWarningMsg_FormClosing(object sender, FormClosingEventArgs e)
+ {
+ //try
+ //{
+ // Task.Run(async delegate
+ // {
+ // if (PlcOperationHelper.Instance.WritePlcItem("AlarmPopUpMsg", "0", PlcItemTypeDesc.D))
+ // {
+ // LogHelper.WriteLog($"清空PLC报警提示变量成功!", LogTypeEum.Run);
+ // }
+ // await Task.Delay(100);
+ // GlobalHelper.PopupWarningMsgForm = null;
+ // });
+ //}
+ //catch (Exception ex)
+ //{
+ // LogHelper.WriteLog($"关闭报警信息弹出页面发生异常:【{ex.Message}】", LogTypeEum.Err);
+ //}
+ }
+
+ private void frmPopupWarningMsg_FormClosed(object sender, FormClosedEventArgs e)
+ {
+ //if (PlcOperationHelper.Instance.WritePlcItem("AlarmPopUpMsg", "0", PlcItemTypeDesc.D))
+ //{
+ // LogHelper.WriteLog($"清空PLC报警提示变量成功!", LogTypeEum.Run);
+ //}
+ }
+
+ private void kryptonButton1_Click(object sender, EventArgs e)
+ {
+ kryptonButton1.Enabled = false;
+ try
+ {
+ Task.Run(async delegate
+ {
+ if (PlcOperationHelper.Instance.WritePlcItem("AlarmPopUpMsg", "0", PlcItemTypeDesc.D))
+ {
+ LogHelper.WriteLog($"清空PLC报警提示变量成功!", LogTypeEum.Run);
+ }
+ await Task.Delay(500);
+ GlobalHelper.PopupWarningMsgForm = null;
+ this.Close();
+ });
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog($"关闭报警信息弹出页面发生异常:【{ex.Message}】", LogTypeEum.Err);
+ //kryptonButton1.Enabled = true;
+ }
+ //kryptonButton1.Enabled = true;
+ }
+ [DllImport("user32.dll")]
+ public static extern bool ReleaseCapture();
+
+ [DllImport("user32.dll")]
+ public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
+ public const int WM_SYSCOMMAND = 0x0112;
+ public const int SC_MOVE = 0xF010;
+ public const int HTCAPTION = 0x0002;
+ public bool isFrmStateNormal = true;
+ private void kryptonGroupBox1_MouseDown(object sender, MouseEventArgs e)
+ {
+ ReleaseCapture();
+ SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0);
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmPopupWarningMsg.resx b/CleanMachineHMI/frmChild/frmPopupWarningMsg.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmPopupWarningMsg.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmSetRoleMenuPermission.Designer.cs b/CleanMachineHMI/frmChild/frmSetRoleMenuPermission.Designer.cs
new file mode 100644
index 0000000..7baf60e
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmSetRoleMenuPermission.Designer.cs
@@ -0,0 +1,102 @@
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmSetRoleMenuPermission
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kbtn_Cancel = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kbtn_Confirm = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonTreeView1 = new ComponentFactory.Krypton.Toolkit.KryptonTreeView();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kbtn_Cancel);
+ this.kryptonPanel1.Controls.Add(this.kbtn_Confirm);
+ this.kryptonPanel1.Controls.Add(this.kryptonTreeView1);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(299, 614);
+ this.kryptonPanel1.TabIndex = 0;
+ //
+ // kbtn_Cancel
+ //
+ this.kbtn_Cancel.Location = new System.Drawing.Point(175, 566);
+ this.kbtn_Cancel.Name = "kbtn_Cancel";
+ this.kbtn_Cancel.Size = new System.Drawing.Size(90, 39);
+ this.kbtn_Cancel.TabIndex = 1;
+ this.kbtn_Cancel.Values.Text = "取消";
+ this.kbtn_Cancel.Click += new System.EventHandler(this.kbtn_Cancel_Click);
+ //
+ // kbtn_Confirm
+ //
+ this.kbtn_Confirm.Location = new System.Drawing.Point(29, 566);
+ this.kbtn_Confirm.Name = "kbtn_Confirm";
+ this.kbtn_Confirm.Size = new System.Drawing.Size(90, 39);
+ this.kbtn_Confirm.TabIndex = 1;
+ this.kbtn_Confirm.Values.Text = "确认";
+ this.kbtn_Confirm.Click += new System.EventHandler(this.kbtn_Confirm_Click);
+ //
+ // kryptonTreeView1
+ //
+ this.kryptonTreeView1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonTreeView1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonTreeView1.Name = "kryptonTreeView1";
+ this.kryptonTreeView1.Size = new System.Drawing.Size(299, 557);
+ this.kryptonTreeView1.TabIndex = 0;
+ this.kryptonTreeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.kryptonTreeView1_AfterSelect);
+ //
+ // frmSetRoleMenuPermission
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(299, 614);
+ this.Controls.Add(this.kryptonPanel1);
+ this.MaximizeBox = false;
+ this.Name = "frmSetRoleMenuPermission";
+ this.ShowIcon = false;
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "frmSetRoleMenuPermission";
+ this.Load += new System.EventHandler(this.frmSetRoleMenuPermission_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonTreeView kryptonTreeView1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Cancel;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Confirm;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmSetRoleMenuPermission.cs b/CleanMachineHMI/frmChild/frmSetRoleMenuPermission.cs
new file mode 100644
index 0000000..e1d8dbf
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmSetRoleMenuPermission.cs
@@ -0,0 +1,232 @@
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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.frmChild
+{
+ public partial class frmSetRoleMenuPermission : KryptonForm
+ {
+ public frmSetRoleMenuPermission()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _InfoLanguageTextList;
+ public string RoleId { get; set; }
+ DataTable allMenuData = new DataTable();
+ private void frmSetRoleMenuPermission_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ string sql = $@"SELECT * FROM SYS_MENU";
+ allMenuData = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (allMenuData != null && allMenuData.Rows.Count > 0)
+ {
+ DataRow[] drs = allMenuData.Select(" MENU_PID = '-1'");
+ foreach (DataRow item in drs)
+ {
+ TreeNode tn = kryptonTreeView1.Nodes.Add(item["MENU_NAME"].ToString());
+ DataRow[] drs1 = allMenuData.Select($" MENU_PID = '{item["MENU_ID"]}'");
+ foreach (DataRow item1 in drs1)
+ {
+ tn.Nodes.Add(item1["MENU_NAME"].ToString());
+ }
+ }
+ }
+ kryptonTreeView1.ExpandAll();
+ kryptonTreeView1.CheckBoxes = true;
+ sql = $@"SELECT A.ROLE_ID,A.ROLE_CODE,A.ROLE_NAME,B.MENU_ID,C.MENU_CODE,C.MENU_NAME,C.MENU_URL,C.MENU_PID FROM SYS_ROLE A LEFT JOIN SYS_ROLE_MENU_PERMISSION B on A.ROLE_ID = B.ROLE_ID LEFT JOIN SYS_MENU C on B.MENU_ID = C.MENU_ID WHERE A.ROLE_ID = '{RoleId}'";
+
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ for (int i = 0; i < kryptonTreeView1.Nodes.Count; i++)
+ {
+ string str = kryptonTreeView1.Nodes[i].Text;
+ DataRow[] drs = dt.Select($" MENU_NAME = '{str}'");
+ if (drs.Length > 0)
+ {
+ kryptonTreeView1.Nodes[i].Checked = true;
+ }
+ for (int j = 0; j < kryptonTreeView1.Nodes[i].Nodes.Count; j++)
+ {
+ string str1 = kryptonTreeView1.Nodes[i].Nodes[j].Text;
+ DataRow[] drs1 = dt.Select($" MENU_NAME = '{str1}'");
+ if (drs1.Length > 0)
+ {
+ kryptonTreeView1.Nodes[i].Nodes[j].Checked = true;
+ }
+ else
+ {
+ kryptonTreeView1.Nodes[i].Nodes[j].Checked = false;
+ }
+ }
+ }
+ }
+
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("角色菜单权限配置界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void kryptonTreeView1_AfterSelect(object sender, TreeViewEventArgs e)
+ {
+ try
+ {
+ TreeNode nd = e.Node;
+ if (nd.Checked)
+ {
+ if (nd.Parent != null)//存在父节点
+ {
+ if (!nd.Parent.Checked)//当前选中节点存在父节点,选中子节点时,自动选中父节点
+ {
+ nd.Parent.Checked = true;
+ }
+ }
+ else//不存在父节点,当前选中节点为父节点
+ {
+ bool b = true;
+ foreach (TreeNode ite in nd.Nodes)
+ {
+ if (ite.Checked)
+ {
+ b = false;
+ break;
+ }
+ }
+ if (b)
+ {
+ //选中当前父节点下的所有子节点
+ foreach (TreeNode item in nd.Nodes)
+ {
+ item.Checked = true;
+ }
+ }
+ }
+ }
+ else
+ {
+ if (nd.Parent != null)//存在父节点
+ {
+ if (nd.Parent.Checked)//当前释放节点存在父节点,释放子节点时,根据父节点下是否还有选中的子节点,判断父节点是否同时释放
+ {
+ bool b = true;
+ foreach (TreeNode item in nd.Parent.Nodes)
+ {
+ if (item.Checked)
+ {
+ b = false;
+ break;
+ }
+ }
+ if (b)
+ {
+ nd.Parent.Checked = false;
+ }
+ }
+ }
+ else//不存在父节点,当前释放的节点为父节点
+ {
+ //释放当前父节点下的所有子节点
+ foreach (TreeNode item in nd.Nodes)
+ {
+ item.Checked = false;
+ }
+ }
+ }
+ }
+ catch
+ {
+
+ }
+ }
+
+ private void kbtn_Cancel_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+
+ private void kbtn_Confirm_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ for (int i = 0; i < kryptonTreeView1.Nodes.Count; i++)
+ {
+ bool ischeck = false;
+ for (int j = 0; j < kryptonTreeView1.Nodes[i].Nodes.Count; j++)
+ {
+ string str1 = kryptonTreeView1.Nodes[i].Nodes[j].Text;
+ if (!kryptonTreeView1.Nodes[i].Nodes[j].Checked)
+ {
+ DataRow[] drs = allMenuData.Select($" MENU_NAME = '{str1}'");
+ if (drs.Length > 0)
+ {
+ allMenuData.Rows.Remove(drs[0]);
+ }
+ }
+ else
+ {
+ ischeck = true;
+ }
+ }
+ if (!ischeck)
+ {
+ string str = kryptonTreeView1.Nodes[i].Text;
+ if (!kryptonTreeView1.Nodes[i].Checked)
+ {
+ DataRow[] drs = allMenuData.Select($" MENU_NAME = '{str}'");
+ if (drs.Length > 0)
+ {
+ allMenuData.Rows.Remove(drs[0]);
+ }
+ }
+ }
+ }
+
+ if (allMenuData.Rows.Count > 0)
+ {
+ string sqlDeleteOldData = $@"delete from SYS_ROLE_MENU_PERMISSION where ROLE_ID = '{RoleId}'";
+ LeadDbHelperSQLite.ExecuteSql(sqlDeleteOldData);
+ int rowSum = 0;
+ foreach (DataRow item in allMenuData.Rows)
+ {
+ string sqlAddNewData = $@"INSERT INTO main.SYS_ROLE_MENU_PERMISSION (ROLE_ID, MENU_ID, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, DATA_VERSION, REMARKS1, REMARKS2, REMARKS3, REMARKS4, REMARKS5 ) VALUES ( '{RoleId}', '{item["MENU_ID"]}', '{GlobalHelper.UserInfo.USER_ID}', '2020-11-13 15:22:34', '{GlobalHelper.UserInfo.USER_ID}', '2020-11-13 15:22:34', 0, NULL, NULL, NULL, NULL, NULL );";
+ rowSum += LeadDbHelperSQLite.ExecuteSql(sqlAddNewData);
+ }
+ if (rowSum > 0)
+ {
+ //KryptonMessageBox.Show("该角色菜单授权成功!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("该角色的菜单权限授权成功!", "EditSuccessInfo"));
+ this.Close();
+ }
+ else
+ {
+ //KryptonMessageBox.Show("该角色菜单授权失败!");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("该角色的菜单权限授权失败!", "EditFailInfo"));
+ }
+ }
+ else
+ {
+ //KryptonMessageBox.Show("未选择任何菜单项,无法配置权限。");
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("未选择任何菜单项,无法配置权限!", "EmptyMenuDataInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑角色的菜单权限授权异常", "EditRoleMenuPermissionExp") + $":【{ex.Message}】!");
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmSetRoleMenuPermission.resx b/CleanMachineHMI/frmChild/frmSetRoleMenuPermission.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmSetRoleMenuPermission.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmSwitchRunDirection.Designer.cs b/CleanMachineHMI/frmChild/frmSwitchRunDirection.Designer.cs
new file mode 100644
index 0000000..f7502b3
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmSwitchRunDirection.Designer.cs
@@ -0,0 +1,166 @@
+
+namespace CleanMachineHMI.frmChild
+{
+ partial class frmSwitchRunDirection
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kcmb_SwitchRunDirection = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
+ this.ktb_CurrRunDirection = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbCleanModeName = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbCleanModeCode = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.btnEdit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnAdd = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_SwitchRunDirection)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kcmb_SwitchRunDirection);
+ this.kryptonPanel1.Controls.Add(this.ktb_CurrRunDirection);
+ this.kryptonPanel1.Controls.Add(this.lbCleanModeName);
+ this.kryptonPanel1.Controls.Add(this.lbCleanModeCode);
+ this.kryptonPanel1.Controls.Add(this.btnEdit);
+ this.kryptonPanel1.Controls.Add(this.btnAdd);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(289, 227);
+ this.kryptonPanel1.TabIndex = 4;
+ //
+ // kcmb_SwitchRunDirection
+ //
+ this.kcmb_SwitchRunDirection.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.kcmb_SwitchRunDirection.DropDownWidth = 271;
+ this.kcmb_SwitchRunDirection.Items.AddRange(new object[] {
+ "请选择",
+ "正方向",
+ "反方向"});
+ this.kcmb_SwitchRunDirection.Location = new System.Drawing.Point(21, 114);
+ this.kcmb_SwitchRunDirection.Name = "kcmb_SwitchRunDirection";
+ this.kcmb_SwitchRunDirection.Size = new System.Drawing.Size(250, 27);
+ this.kcmb_SwitchRunDirection.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kcmb_SwitchRunDirection.TabIndex = 42;
+ //
+ // ktb_CurrRunDirection
+ //
+ this.ktb_CurrRunDirection.AlwaysActive = false;
+ this.ktb_CurrRunDirection.Enabled = false;
+ this.ktb_CurrRunDirection.Location = new System.Drawing.Point(21, 39);
+ this.ktb_CurrRunDirection.Name = "ktb_CurrRunDirection";
+ this.ktb_CurrRunDirection.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalOffice2003;
+ this.ktb_CurrRunDirection.Size = new System.Drawing.Size(250, 35);
+ this.ktb_CurrRunDirection.StateActive.Border.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.ktb_CurrRunDirection.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.ktb_CurrRunDirection.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.ktb_CurrRunDirection.StateCommon.Border.GraphicsHint = ComponentFactory.Krypton.Toolkit.PaletteGraphicsHint.AntiAlias;
+ this.ktb_CurrRunDirection.StateCommon.Border.Rounding = 4;
+ this.ktb_CurrRunDirection.StateCommon.Border.Width = 2;
+ this.ktb_CurrRunDirection.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.ktb_CurrRunDirection.TabIndex = 38;
+ //
+ // lbCleanModeName
+ //
+ this.lbCleanModeName.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbCleanModeName.Location = new System.Drawing.Point(20, 82);
+ this.lbCleanModeName.Name = "lbCleanModeName";
+ this.lbCleanModeName.Size = new System.Drawing.Size(115, 26);
+ this.lbCleanModeName.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbCleanModeName.TabIndex = 37;
+ this.lbCleanModeName.Values.Text = "选择切换方向:";
+ //
+ // lbCleanModeCode
+ //
+ this.lbCleanModeCode.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbCleanModeCode.Location = new System.Drawing.Point(20, 11);
+ this.lbCleanModeCode.Name = "lbCleanModeCode";
+ this.lbCleanModeCode.Size = new System.Drawing.Size(115, 26);
+ this.lbCleanModeCode.StateCommon.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbCleanModeCode.TabIndex = 36;
+ this.lbCleanModeCode.Values.Text = "当前运行方向:";
+ //
+ // btnEdit
+ //
+ this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnEdit.Location = new System.Drawing.Point(183, 166);
+ this.btnEdit.Name = "btnEdit";
+ this.btnEdit.Size = new System.Drawing.Size(82, 40);
+ this.btnEdit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnEdit.TabIndex = 35;
+ this.btnEdit.Values.Text = "取消";
+ this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(21, 166);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(82, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 34;
+ this.btnAdd.Values.Text = "确认";
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+ //
+ // frmSwitchRunDirection
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(289, 227);
+ this.Controls.Add(this.kryptonPanel1);
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmSwitchRunDirection";
+ this.ShowIcon = false;
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "frmSwitchRunDirection";
+ this.Load += new System.EventHandler(this.frmSwitchRunDirection_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kcmb_SwitchRunDirection)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_CurrRunDirection;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbCleanModeName;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel lbCleanModeCode;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnEdit;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnAdd;
+ private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_SwitchRunDirection;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmChild/frmSwitchRunDirection.cs b/CleanMachineHMI/frmChild/frmSwitchRunDirection.cs
new file mode 100644
index 0000000..9bbb3d0
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmSwitchRunDirection.cs
@@ -0,0 +1,112 @@
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+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.Web.UI.WebControls;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI.frmChild
+{
+ public partial class frmSwitchRunDirection : KryptonForm
+ {
+ public frmSwitchRunDirection()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ }
+ private DataTable _InfoLanguageTextList;
+
+ private void frmSwitchRunDirection_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ int directNum = Convert.ToInt32(PlcOperationHelper.Instance.ReadPlcItem("DischargeDirectionSelection", PlcItemTypeDesc.D));
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ if (directNum == 0)
+ {
+ ktb_CurrRunDirection.Text = "Positive direction";
+ }
+ else
+ {
+ ktb_CurrRunDirection.Text = "Negative direction";
+ }
+ kcmb_SwitchRunDirection.Items.Clear();
+ kcmb_SwitchRunDirection.Items.Add(new ListItem
+ {
+ Value = "",
+ Text = "Please Select",
+ });
+ kcmb_SwitchRunDirection.Items.Add(new ListItem
+ {
+ Value = "1",
+ Text = "Positive direction",
+ });
+ kcmb_SwitchRunDirection.Items.Add(new ListItem
+ {
+ Value = "2",
+ Text = "Negative direction",
+ });
+ }
+ else
+ {
+ if (directNum == 0)
+ {
+ ktb_CurrRunDirection.Text = "正方向";
+ }
+ else
+ {
+ ktb_CurrRunDirection.Text = "反方向";
+ }
+ }
+ kcmb_SwitchRunDirection.SelectedIndex = 0;
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载出料运行方向切换界面发生异常", "LoadSwitchRunDirectionExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnAdd_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (kcmb_SwitchRunDirection.SelectedIndex == 0)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择切换方向!", "SelectSwitchDirectionInfo"));
+ return;
+ }
+ if (!PlcOperationHelper.Instance.isConn)
+ {
+ KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
+ return;
+ }
+ if (PlcOperationHelper.Instance.WritePlcItem("DischargeDirectionSelection", (kcmb_SwitchRunDirection.SelectedIndex - 1).ToString(), PlcItemTypeDesc.D))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("切换出料运行方向成功!", "SwitchDirectionSuccessInfo"));
+ this.Close();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("切换出料运行方向失败!", "SwitchDirectionFailInfo"));
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("切换出料运行方向的函数发生异常", "SwitchRunDirectionExp") + $":【{ex.Message}】!");
+ }
+ }
+
+ private void btnEdit_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmChild/frmSwitchRunDirection.resx b/CleanMachineHMI/frmChild/frmSwitchRunDirection.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmChild/frmSwitchRunDirection.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmIOMonitor_Old.Designer.cs b/CleanMachineHMI/frmIOMonitor_Old.Designer.cs
new file mode 100644
index 0000000..ffd7528
--- /dev/null
+++ b/CleanMachineHMI/frmIOMonitor_Old.Designer.cs
@@ -0,0 +1,114 @@
+namespace CleanMachineHMI
+{
+ partial class frmIOMonitor_Old
+ {
+ ///
+ /// 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.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.kryptonPanel3 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(1004, 591);
+ this.kryptonPanel1.TabIndex = 0;
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
+ this.tableLayoutPanel1.ColumnCount = 2;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kryptonPanel3, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonPanel2, 0, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 1;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(1004, 591);
+ this.tableLayoutPanel1.TabIndex = 0;
+ //
+ // kryptonPanel3
+ //
+ this.kryptonPanel3.AutoScroll = true;
+ this.kryptonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel3.Location = new System.Drawing.Point(505, 4);
+ this.kryptonPanel3.Name = "kryptonPanel3";
+ this.kryptonPanel3.Size = new System.Drawing.Size(495, 583);
+ this.kryptonPanel3.TabIndex = 1;
+ //
+ // kryptonPanel2
+ //
+ this.kryptonPanel2.AutoScroll = true;
+ this.kryptonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel2.Location = new System.Drawing.Point(4, 4);
+ this.kryptonPanel2.Name = "kryptonPanel2";
+ this.kryptonPanel2.Size = new System.Drawing.Size(494, 583);
+ this.kryptonPanel2.TabIndex = 0;
+ //
+ // frmIOMonitor_Old
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1004, 591);
+ this.Controls.Add(this.kryptonPanel1);
+ this.Name = "frmIOMonitor_Old";
+ this.Text = "frmIOMonitor";
+ this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmIOMonitor_FormClosing);
+ this.Load += new System.EventHandler(this.frmIOMonitor_Load);
+ this.SizeChanged += new System.EventHandler(this.frmIOMonitor_SizeChanged);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel3;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmIOMonitor_Old.cs b/CleanMachineHMI/frmIOMonitor_Old.cs
new file mode 100644
index 0000000..216b77d
--- /dev/null
+++ b/CleanMachineHMI/frmIOMonitor_Old.cs
@@ -0,0 +1,421 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+using NX_LogUtility;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Diagnostics;
+using System.Drawing;
+using System.Linq;
+using System.Runtime.CompilerServices;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI
+{
+ public partial class frmIOMonitor_Old : KryptonForm
+ {
+ public frmIOMonitor_Old()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "Label");
+ //InitControl();
+ }
+ ///
+ /// 页面信息语言文本列表
+ ///
+ private DataTable _InfoLanguageTextList;
+ bool isThRun = false;
+ List lstMoitor_X = new List();
+ List lstMoitor_Y = new List();
+
+ Stopwatch sw = new Stopwatch();
+ public class BtnPlcItemMonitor
+ {
+ public CircleButton ctn { get; set; }
+ public BasPlcItemMd plcItemMd { get; set; }
+ }
+ private void frmIOMonitor_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ InitControl();
+ Thread th1 = new Thread(ReFreshControl_Y);
+ th1.IsBackground = true;
+ th1.Start();
+ }
+ catch (Exception)
+ {
+ }
+
+ }
+ private void ReFreshControl_Y()
+ {
+ while (GlobalHelper.SysThIsRunFlag)
+ {
+ try
+ {
+ if (lstMoitor_X.Count > 0)
+ {
+ //LogHelper.WriteLog("~~~~~~~~~~~~~~I/O监控界面,X 类型PLC变量的圆形展示控件渲染开始~~~~~~~~~~~~~~", LogTypeEum.Run);
+ //sw.Start();
+ foreach (BtnPlcItemMonitor item in lstMoitor_X)
+ {
+ Invoke(new Action(() =>
+ {
+ if (string.IsNullOrEmpty(item.plcItemMd.PlcItemValue))
+ {
+ if (isThRun)
+ {
+ item.ctn.BackColor = Color.FromArgb(191, 219, 255);
+ }
+ }
+ else if (bool.Parse(item.plcItemMd.PlcItemValue.ToString()))
+ {
+ if (isThRun)
+ {
+ item.ctn.BackColor = Color.Lime;
+ }
+ }
+ else
+ {
+ if (isThRun)
+ {
+ item.ctn.BackColor = Color.Red;
+ }
+ }
+ }));
+ }
+ //sw.Stop();
+ //LogHelper.WriteLog($"~~~~~~~~~~~~~~I/O监控界面,X 类型PLC变量的圆形展示控件渲染结束,总花费时间为:【{sw.ElapsedMilliseconds}】。~~~~~~~~~~~~~~", LogTypeEum.Run);
+ //sw.Reset();
+ }
+
+ if (lstMoitor_Y.Count > 0)
+ {
+ //LogHelper.WriteLog("~~~~~~~~~~~~~~I/O监控界面,Y 类型PLC变量的圆形展示控件渲染开始~~~~~~~~~~~~~~", LogTypeEum.Run);
+ //sw.Start();
+ foreach (BtnPlcItemMonitor item in lstMoitor_Y)
+ {
+ Invoke(new Action(() =>
+ {
+ if (string.IsNullOrEmpty(item.plcItemMd.PlcItemValue))
+ {
+ if (isThRun)
+ {
+ item.ctn.BackColor = Color.FromArgb(191, 219, 255);
+ }
+ }
+ else if (bool.Parse(item.plcItemMd.PlcItemValue.ToString()))
+ {
+ if (isThRun)
+ {
+ item.ctn.BackColor = Color.Lime;
+ }
+ }
+ else
+ {
+ if (isThRun)
+ {
+ item.ctn.BackColor = Color.Red;
+ }
+ }
+ }));
+ }
+ //sw.Stop();
+ //LogHelper.WriteLog($"~~~~~~~~~~~~~~I/O监控界面,Y 类型PLC变量的圆形展示控件渲染结束,总花费时间为:【{sw.ElapsedMilliseconds}】。~~~~~~~~~~~~~~", LogTypeEum.Run);
+ //sw.Reset();
+ }
+ }
+ catch
+ {
+
+ }
+ Thread.Sleep(5);
+ }
+ }
+ private void InitControl()
+ {
+ try
+ {
+ lstMoitor_X.Clear();
+ lstMoitor_Y.Clear();
+
+ #region PLC X数据类型变量
+ if (GlobalHelper.PlcItemMd_X_List != null && GlobalHelper.PlcItemMd_X_List.Count > 0)
+ {
+ //List tempLst = AppConfig.PlcItemMd_X_List.FindAll(x => x.PlcItemName != "备用").OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
+ List tempLst = GlobalHelper.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
+ int dataSum = tempLst.Count;
+ int rowNum;
+ if (dataSum % 2 == 0)
+ {
+ rowNum = dataSum / 2;
+ }
+ else
+ {
+ rowNum = dataSum / 2 + 1;
+ }
+
+ int tmpNum = 1;
+ //int colFirstLocX = 35;
+ int colFirstLocY = 8;
+
+ int colSecondLocX = 325;
+ int colSecondLocY = 8;
+
+ int panalTemplateWidth = 245;
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ panalTemplateWidth = 245;
+ }
+ else
+ {
+ panalTemplateWidth = 175;
+ }
+ int panalTemplateHeight = 30;
+
+ int wdNum = kryptonPanel2.Width / 2;
+
+ int tmpSpace = (wdNum - panalTemplateWidth) / 2 == 0 ? 1 : (wdNum - panalTemplateWidth) / 2;
+
+ colSecondLocX = wdNum + tmpSpace + 1;
+
+ int rowSpace = 7;
+ foreach (BasPlcItemMd item in tempLst)
+ {
+
+ if (tmpNum <= rowNum)
+ {
+ Panel panel = new Panel();
+ panel.Location = new Point(tmpSpace, colFirstLocY + panalTemplateHeight * (tmpNum - 1) + rowSpace * (tmpNum - 1));
+ panel.Size = new Size(panalTemplateWidth, panalTemplateHeight);
+ panel.BackColor = Color.White;
+ panel.BorderStyle = BorderStyle.FixedSingle;
+
+ KryptonLabel label = new KryptonLabel();
+ label.StateCommon.ShortText.Font = new Font("宋体", (float)10, FontStyle.Bold);
+ label.Location = new Point(-1, 6);
+ int a = Convert.ToInt32(item.PlcItemPriAddress);
+ label.Text = "X" + Convert.ToString(a, 8).PadLeft(2, '0');
+ CircleButton button = new CircleButton();
+ button.Name = "cbtn_" + item.PlcItemCode;
+ button.Size = new Size(23, 23);
+ button.Location = new Point(28, 3);
+ button.BackColor = Color.FromArgb(191, 219, 255);
+ KryptonLabel label1 = new KryptonLabel();
+ label1.StateCommon.ShortText.Font = new Font("宋体", (float)8.5, FontStyle.Regular);
+ label1.Location = new Point(44, 6);
+ label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
+
+ panel.Controls.Add(label);
+ panel.Controls.Add(button);
+
+ panel.Controls.Add(label1);
+ kryptonPanel2.Controls.Add(panel);
+ lstMoitor_X.Add(new BtnPlcItemMonitor {
+ ctn = button,
+ plcItemMd = item,
+ });
+ }
+ else
+ {
+ Panel panel = new Panel();
+ panel.Location = new Point(colSecondLocX, colSecondLocY + panalTemplateHeight * (tmpNum - rowNum - 1) + rowSpace * (tmpNum - rowNum - 1));
+ panel.Size = new Size(panalTemplateWidth, panalTemplateHeight);
+ panel.BackColor = Color.White;
+ panel.BorderStyle = BorderStyle.FixedSingle;
+
+ KryptonLabel label = new KryptonLabel();
+ label.StateCommon.ShortText.Font = new Font("宋体", (float)10, FontStyle.Bold);
+ label.Location = new Point(-1, 6);
+ int a = Convert.ToInt32(item.PlcItemPriAddress);
+ label.Text = "X" + Convert.ToString(a, 8).PadLeft(2, '0');
+ CircleButton button = new CircleButton();
+ button.Name = "cbtn_" + item.PlcItemCode;
+ button.Size = new Size(23, 23);
+ button.Location = new Point(28, 3);
+ button.BackColor = Color.FromArgb(191, 219, 255);
+ KryptonLabel label1 = new KryptonLabel();
+ label1.StateCommon.ShortText.Font = new Font("宋体", (float)8.5, FontStyle.Regular);
+ label1.Location = new Point(44, 6);
+ //label1.Text = item.PlcItemName.Replace("(I/O监控)", "");
+ label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
+
+ panel.Controls.Add(label);
+ panel.Controls.Add(button);
+ panel.Controls.Add(label1);
+ kryptonPanel2.Controls.Add(panel);
+ lstMoitor_X.Add(new BtnPlcItemMonitor
+ {
+ ctn = button,
+ plcItemMd = item,
+ });
+ }
+ tmpNum++;
+ }
+ Label label2 = new Label();
+ label2.BackColor = Color.FromArgb(160, 160, 160);
+ label2.Text = "";
+ label2.Location = new Point(wdNum, 0);
+ label2.Size = new Size(1, kryptonPanel2.Height);
+ kryptonPanel2.Controls.Add(label2);
+ }
+ #endregion
+
+ #region PLC Y数据类型变量
+ if (GlobalHelper.PlcItemMd_Y_List != null && GlobalHelper.PlcItemMd_Y_List.Count > 0)
+ {
+ //List tempLst = AppConfig.PlcItemMd_Y_List.FindAll(x => x.PlcItemName != "备用").OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
+ List tempLst = GlobalHelper.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
+ int dataSum = tempLst.Count;
+ //int dataSum = AppConfig.PlcItemMd_Y_List.Count;
+ int rowNum;
+ if (dataSum % 2 == 0)
+ {
+ rowNum = dataSum / 2;
+ }
+ else
+ {
+ rowNum = dataSum / 2 + 1;
+ }
+
+ int tmpNum = 1;
+ int colFirstLocX = 35;
+ int colFirstLocY = 8;
+
+ int colSecondLocX = 325;
+ int colSecondLocY = 8;
+
+ int panalTemplateWidth = 245;
+ if (GlobalHelper.LanguageCode == "English")
+ {
+ panalTemplateWidth = 245;
+ }
+ else
+ {
+ panalTemplateWidth = 175;
+ }
+ int panalTemplateHeight = 30;
+
+ int wdNum = kryptonPanel3.Width / 2;
+
+ int tmpSpace = (wdNum - panalTemplateWidth) / 2;
+
+ colFirstLocX = tmpSpace;
+
+ colSecondLocX = wdNum + tmpSpace + 1;
+
+ int rowSpace = 7;
+ foreach (BasPlcItemMd item in tempLst)
+ {
+
+ if (tmpNum <= rowNum)
+ {
+ Panel panel = new Panel();
+ panel.Location = new Point(colFirstLocX, colFirstLocY + panalTemplateHeight * (tmpNum - 1) + rowSpace * (tmpNum - 1));
+ panel.Size = new Size(panalTemplateWidth, panalTemplateHeight);
+ panel.BackColor = Color.White;
+ panel.BorderStyle = BorderStyle.FixedSingle;
+
+ KryptonLabel label = new KryptonLabel();
+ label.StateCommon.ShortText.Font = new Font("宋体", (float)10, FontStyle.Bold);
+ label.Location = new Point(-1, 6);
+ int a = Convert.ToInt32(item.PlcItemPriAddress);
+ label.Text = "Y" + Convert.ToString(a, 8).PadLeft(2, '0');
+ CircleButton button = new CircleButton();
+ button.Name = "cbtn_" + item.PlcItemCode;
+ button.Size = new Size(23, 23);
+ button.Location = new Point(28, 3);
+ button.BackColor = Color.FromArgb(191, 219, 255);
+ KryptonLabel label1 = new KryptonLabel();
+ label1.StateCommon.ShortText.Font = new Font("宋体", (float)8.5, FontStyle.Regular);
+ label1.Location = new Point(44, 6);
+ label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
+
+ panel.Controls.Add(label);
+ panel.Controls.Add(button);
+ panel.Controls.Add(label1);
+ kryptonPanel3.Controls.Add(panel);
+ lstMoitor_Y.Add(new BtnPlcItemMonitor
+ {
+ ctn = button,
+ plcItemMd = item,
+ });
+
+ }
+ else
+ {
+ Panel panel = new Panel();
+ panel.Location = new Point(colSecondLocX, colSecondLocY + panalTemplateHeight * (tmpNum - rowNum - 1) + rowSpace * (tmpNum - rowNum - 1));
+ panel.Size = new Size(panalTemplateWidth, panalTemplateHeight);
+ panel.BackColor = Color.White;
+ panel.BorderStyle = BorderStyle.FixedSingle;
+
+ KryptonLabel label = new KryptonLabel();
+ label.StateCommon.ShortText.Font = new Font("宋体", (float)10, FontStyle.Bold);
+ label.Location = new Point(-1, 6);
+ int a = Convert.ToInt32(item.PlcItemPriAddress);
+ label.Text = "Y" + Convert.ToString(a, 8).PadLeft(2, '0');
+ CircleButton button = new CircleButton();
+ button.Name = "cbtn_" + item.PlcItemCode;
+ button.Size = new Size(23, 23);
+ button.Location = new Point(28, 3);
+ button.BackColor = Color.FromArgb(191, 219, 255);
+ KryptonLabel label1 = new KryptonLabel();
+ label1.StateCommon.ShortText.Font = new Font("宋体", (float)8.5, FontStyle.Regular);
+ label1.Location = new Point(44, 6);
+ label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
+
+ panel.Controls.Add(label);
+ panel.Controls.Add(button);
+ panel.Controls.Add(label1);
+ kryptonPanel3.Controls.Add(panel);
+ lstMoitor_Y.Add(new BtnPlcItemMonitor
+ {
+ ctn = button,
+ plcItemMd = item,
+ });
+ }
+ tmpNum++;
+ }
+
+
+ Label label2 = new Label();
+ label2.BackColor = Color.FromArgb(160, 160, 160);
+ label2.Text = "";
+ label2.Location = new Point(wdNum, 0);
+ label2.Size = new Size(1, kryptonPanel3.Height);
+ kryptonPanel3.Controls.Add(label2);
+
+
+ }
+ #endregion
+
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show(ex.Message);
+ }
+ }
+
+ private void frmIOMonitor_SizeChanged(object sender, EventArgs e)
+ {
+ //isThRun = false;
+ //kryptonPanel2.Controls.Clear();
+ //kryptonPanel3.Controls.Clear();
+ //InitControl();
+ //isThRun = true;
+ }
+
+ private void frmIOMonitor_FormClosing(object sender, FormClosingEventArgs e)
+ {
+
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmIOMonitor_Old.resx b/CleanMachineHMI/frmIOMonitor_Old.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmIOMonitor_Old.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmIoMonitorNew.Designer.cs b/CleanMachineHMI/frmIoMonitorNew.Designer.cs
new file mode 100644
index 0000000..6dc2ab6
--- /dev/null
+++ b/CleanMachineHMI/frmIoMonitorNew.Designer.cs
@@ -0,0 +1,3947 @@
+
+namespace CleanMachineHMI
+{
+ partial class frmIoMonitorNew
+ {
+ ///
+ /// 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.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonNavigator1 = new ComponentFactory.Krypton.Navigator.KryptonNavigator();
+ this.kryptonPage1 = new ComponentFactory.Krypton.Navigator.KryptonPage();
+ this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.kryptonPanel3 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.panel64 = new System.Windows.Forms.Panel();
+ this.klb_Y37 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel126 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel36 = new System.Windows.Forms.Panel();
+ this.klb_Y21 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel70 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel63 = new System.Windows.Forms.Panel();
+ this.klb_Y36 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel124 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel33 = new System.Windows.Forms.Panel();
+ this.klb_Y00 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel64 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel62 = new System.Windows.Forms.Panel();
+ this.klb_Y17 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel122 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel34 = new System.Windows.Forms.Panel();
+ this.klb_Y20 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel66 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel61 = new System.Windows.Forms.Panel();
+ this.klb_Y34 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel120 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel35 = new System.Windows.Forms.Panel();
+ this.klb_Y01 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel68 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel60 = new System.Windows.Forms.Panel();
+ this.klb_Y16 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel118 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel37 = new System.Windows.Forms.Panel();
+ this.klb_Y02 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel72 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel59 = new System.Windows.Forms.Panel();
+ this.klb_Y14 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel116 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel38 = new System.Windows.Forms.Panel();
+ this.klb_Y22 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel74 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel58 = new System.Windows.Forms.Panel();
+ this.klb_Y35 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel114 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel39 = new System.Windows.Forms.Panel();
+ this.klb_Y03 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel76 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel57 = new System.Windows.Forms.Panel();
+ this.klb_Y15 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel112 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel40 = new System.Windows.Forms.Panel();
+ this.klb_Y23 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel78 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel56 = new System.Windows.Forms.Panel();
+ this.klb_Y33 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel110 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel41 = new System.Windows.Forms.Panel();
+ this.klb_Y04 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel80 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel55 = new System.Windows.Forms.Panel();
+ this.klb_Y13 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel108 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel42 = new System.Windows.Forms.Panel();
+ this.klb_Y24 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel82 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel54 = new System.Windows.Forms.Panel();
+ this.klb_Y32 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel106 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel43 = new System.Windows.Forms.Panel();
+ this.klb_Y05 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel84 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel53 = new System.Windows.Forms.Panel();
+ this.klb_Y12 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel104 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel44 = new System.Windows.Forms.Panel();
+ this.klb_Y25 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel86 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel52 = new System.Windows.Forms.Panel();
+ this.klb_Y31 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel102 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel45 = new System.Windows.Forms.Panel();
+ this.klb_Y06 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel88 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel51 = new System.Windows.Forms.Panel();
+ this.klb_Y11 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel100 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel46 = new System.Windows.Forms.Panel();
+ this.klb_Y26 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel90 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel50 = new System.Windows.Forms.Panel();
+ this.klb_Y30 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel98 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel47 = new System.Windows.Forms.Panel();
+ this.klb_Y07 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel92 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel49 = new System.Windows.Forms.Panel();
+ this.klb_Y10 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel96 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel48 = new System.Windows.Forms.Panel();
+ this.klb_Y27 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel94 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.panel32 = new System.Windows.Forms.Panel();
+ this.klb_X37 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel62 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel30 = new System.Windows.Forms.Panel();
+ this.klb_X36 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel58 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel31 = new System.Windows.Forms.Panel();
+ this.klb_X17 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel60 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel26 = new System.Windows.Forms.Panel();
+ this.klb_X34 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel50 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel29 = new System.Windows.Forms.Panel();
+ this.klb_X16 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel56 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel25 = new System.Windows.Forms.Panel();
+ this.klb_X14 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel48 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel28 = new System.Windows.Forms.Panel();
+ this.klb_X35 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel54 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel27 = new System.Windows.Forms.Panel();
+ this.klb_X15 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel52 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel24 = new System.Windows.Forms.Panel();
+ this.klb_X33 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel46 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel23 = new System.Windows.Forms.Panel();
+ this.klb_X13 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel44 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel22 = new System.Windows.Forms.Panel();
+ this.klb_X32 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel42 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel21 = new System.Windows.Forms.Panel();
+ this.klb_X12 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel40 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel20 = new System.Windows.Forms.Panel();
+ this.klb_X31 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel38 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel19 = new System.Windows.Forms.Panel();
+ this.klb_X11 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel36 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel18 = new System.Windows.Forms.Panel();
+ this.klb_X30 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel34 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel17 = new System.Windows.Forms.Panel();
+ this.klb_X10 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel32 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel16 = new System.Windows.Forms.Panel();
+ this.klb_X27 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel30 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel15 = new System.Windows.Forms.Panel();
+ this.klb_X07 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel28 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel14 = new System.Windows.Forms.Panel();
+ this.klb_X26 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel26 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel13 = new System.Windows.Forms.Panel();
+ this.klb_X06 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel24 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel12 = new System.Windows.Forms.Panel();
+ this.klb_X25 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel22 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel11 = new System.Windows.Forms.Panel();
+ this.klb_X05 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel20 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel10 = new System.Windows.Forms.Panel();
+ this.klb_X24 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel18 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel9 = new System.Windows.Forms.Panel();
+ this.klb_X04 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel16 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel8 = new System.Windows.Forms.Panel();
+ this.klb_X23 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel14 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel7 = new System.Windows.Forms.Panel();
+ this.klb_X03 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel12 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel6 = new System.Windows.Forms.Panel();
+ this.klb_X22 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel10 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel5 = new System.Windows.Forms.Panel();
+ this.klb_X02 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel8 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel4 = new System.Windows.Forms.Panel();
+ this.klb_X21 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel6 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.klb_X01 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.klb_X20 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.klb_X00 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonPage2 = new ComponentFactory.Krypton.Navigator.KryptonPage();
+ this.kryptonPanel4 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.kryptonLabel35 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel33 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel31 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel29 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel27 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel25 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel23 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel21 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel19 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel17 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel15 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.picb_M35 = new System.Windows.Forms.PictureBox();
+ this.picb_M34 = new System.Windows.Forms.PictureBox();
+ this.picb_X03 = new System.Windows.Forms.PictureBox();
+ this.picb_M37 = new System.Windows.Forms.PictureBox();
+ this.picb_M26 = new System.Windows.Forms.PictureBox();
+ this.picb_M33 = new System.Windows.Forms.PictureBox();
+ this.picb_M32 = new System.Windows.Forms.PictureBox();
+ this.picb_X05 = new System.Windows.Forms.PictureBox();
+ this.picb_X22 = new System.Windows.Forms.PictureBox();
+ this.picb_X31 = new System.Windows.Forms.PictureBox();
+ this.picb_X30 = new System.Windows.Forms.PictureBox();
+ this.kryptonLabel13 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel11 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel9 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel7 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.pictureBox3 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2 = new System.Windows.Forms.PictureBox();
+ this.pictureBox5 = new System.Windows.Forms.PictureBox();
+ this.pictureBox6 = new System.Windows.Forms.PictureBox();
+ this.pictureBox4 = new System.Windows.Forms.PictureBox();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.cbt_Y37 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y21 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y36 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y00 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y17 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y20 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y34 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y01 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y16 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y02 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y14 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y22 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y35 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y03 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y15 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y23 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y33 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y04 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y13 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y24 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y32 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y05 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y12 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y25 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y31 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y06 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y11 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y26 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y30 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y07 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y10 = new CleanMachineHMI.CircleButton();
+ this.cbt_Y27 = new CleanMachineHMI.CircleButton();
+ this.cbt_X37 = new CleanMachineHMI.CircleButton();
+ this.cbt_X36 = new CleanMachineHMI.CircleButton();
+ this.cbt_X17 = new CleanMachineHMI.CircleButton();
+ this.cbt_X34 = new CleanMachineHMI.CircleButton();
+ this.cbt_X16 = new CleanMachineHMI.CircleButton();
+ this.cbt_X14 = new CleanMachineHMI.CircleButton();
+ this.cbt_X35 = new CleanMachineHMI.CircleButton();
+ this.cbt_X15 = new CleanMachineHMI.CircleButton();
+ this.cbt_X33 = new CleanMachineHMI.CircleButton();
+ this.cbt_X13 = new CleanMachineHMI.CircleButton();
+ this.cbt_X32 = new CleanMachineHMI.CircleButton();
+ this.cbt_X12 = new CleanMachineHMI.CircleButton();
+ this.cbt_X31 = new CleanMachineHMI.CircleButton();
+ this.cbt_X11 = new CleanMachineHMI.CircleButton();
+ this.cbt_X30 = new CleanMachineHMI.CircleButton();
+ this.cbt_X10 = new CleanMachineHMI.CircleButton();
+ this.cbt_X27 = new CleanMachineHMI.CircleButton();
+ this.cbt_X07 = new CleanMachineHMI.CircleButton();
+ this.cbt_X26 = new CleanMachineHMI.CircleButton();
+ this.cbt_X06 = new CleanMachineHMI.CircleButton();
+ this.cbt_X25 = new CleanMachineHMI.CircleButton();
+ this.cbt_X05 = new CleanMachineHMI.CircleButton();
+ this.cbt_X24 = new CleanMachineHMI.CircleButton();
+ this.cbt_X04 = new CleanMachineHMI.CircleButton();
+ this.cbt_X23 = new CleanMachineHMI.CircleButton();
+ this.cbt_X03 = new CleanMachineHMI.CircleButton();
+ this.cbt_X22 = new CleanMachineHMI.CircleButton();
+ this.cbt_X02 = new CleanMachineHMI.CircleButton();
+ this.cbt_X21 = new CleanMachineHMI.CircleButton();
+ this.cbt_X01 = new CleanMachineHMI.CircleButton();
+ this.cbt_X20 = new CleanMachineHMI.CircleButton();
+ this.cbt_X00 = new CleanMachineHMI.CircleButton();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator1)).BeginInit();
+ this.kryptonNavigator1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPage1)).BeginInit();
+ this.kryptonPage1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit();
+ this.kryptonPanel3.SuspendLayout();
+ this.panel64.SuspendLayout();
+ this.panel36.SuspendLayout();
+ this.panel63.SuspendLayout();
+ this.panel33.SuspendLayout();
+ this.panel62.SuspendLayout();
+ this.panel34.SuspendLayout();
+ this.panel61.SuspendLayout();
+ this.panel35.SuspendLayout();
+ this.panel60.SuspendLayout();
+ this.panel37.SuspendLayout();
+ this.panel59.SuspendLayout();
+ this.panel38.SuspendLayout();
+ this.panel58.SuspendLayout();
+ this.panel39.SuspendLayout();
+ this.panel57.SuspendLayout();
+ this.panel40.SuspendLayout();
+ this.panel56.SuspendLayout();
+ this.panel41.SuspendLayout();
+ this.panel55.SuspendLayout();
+ this.panel42.SuspendLayout();
+ this.panel54.SuspendLayout();
+ this.panel43.SuspendLayout();
+ this.panel53.SuspendLayout();
+ this.panel44.SuspendLayout();
+ this.panel52.SuspendLayout();
+ this.panel45.SuspendLayout();
+ this.panel51.SuspendLayout();
+ this.panel46.SuspendLayout();
+ this.panel50.SuspendLayout();
+ this.panel47.SuspendLayout();
+ this.panel49.SuspendLayout();
+ this.panel48.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
+ this.kryptonPanel2.SuspendLayout();
+ this.panel32.SuspendLayout();
+ this.panel30.SuspendLayout();
+ this.panel31.SuspendLayout();
+ this.panel26.SuspendLayout();
+ this.panel29.SuspendLayout();
+ this.panel25.SuspendLayout();
+ this.panel28.SuspendLayout();
+ this.panel27.SuspendLayout();
+ this.panel24.SuspendLayout();
+ this.panel23.SuspendLayout();
+ this.panel22.SuspendLayout();
+ this.panel21.SuspendLayout();
+ this.panel20.SuspendLayout();
+ this.panel19.SuspendLayout();
+ this.panel18.SuspendLayout();
+ this.panel17.SuspendLayout();
+ this.panel16.SuspendLayout();
+ this.panel15.SuspendLayout();
+ this.panel14.SuspendLayout();
+ this.panel13.SuspendLayout();
+ this.panel12.SuspendLayout();
+ this.panel11.SuspendLayout();
+ this.panel10.SuspendLayout();
+ this.panel9.SuspendLayout();
+ this.panel8.SuspendLayout();
+ this.panel7.SuspendLayout();
+ this.panel6.SuspendLayout();
+ this.panel5.SuspendLayout();
+ this.panel4.SuspendLayout();
+ this.panel3.SuspendLayout();
+ this.panel2.SuspendLayout();
+ this.panel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPage2)).BeginInit();
+ this.kryptonPage2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel4)).BeginInit();
+ this.kryptonPanel4.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_M35)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_M34)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_X03)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_M37)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_M26)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_M33)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_M32)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_X05)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_X22)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_X31)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_X30)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.CaptionOverlap = 0D;
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonButton1);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(1010, 32);
+ this.kryptonGroupBox1.StateCommon.Back.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(231)))), ((int)(((byte)(239)))));
+ this.kryptonGroupBox1.StateCommon.Back.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.Rounded;
+ this.kryptonGroupBox1.TabIndex = 0;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // kryptonButton1
+ //
+ this.kryptonButton1.Location = new System.Drawing.Point(941, 0);
+ this.kryptonButton1.Name = "kryptonButton1";
+ this.kryptonButton1.Size = new System.Drawing.Size(56, 25);
+ this.kryptonButton1.TabIndex = 1;
+ this.kryptonButton1.Values.Text = "Close";
+ this.kryptonButton1.Click += new System.EventHandler(this.kryptonButton1_Click);
+ //
+ // kryptonNavigator1
+ //
+ this.kryptonNavigator1.Button.ButtonDisplayLogic = ComponentFactory.Krypton.Navigator.ButtonDisplayLogic.None;
+ this.kryptonNavigator1.Button.CloseButtonAction = ComponentFactory.Krypton.Navigator.CloseButtonAction.None;
+ this.kryptonNavigator1.Button.CloseButtonDisplay = ComponentFactory.Krypton.Navigator.ButtonDisplay.Hide;
+ this.kryptonNavigator1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonNavigator1.Location = new System.Drawing.Point(0, 32);
+ this.kryptonNavigator1.Name = "kryptonNavigator1";
+ this.kryptonNavigator1.Pages.AddRange(new ComponentFactory.Krypton.Navigator.KryptonPage[] {
+ this.kryptonPage1,
+ this.kryptonPage2});
+ this.kryptonNavigator1.SelectedIndex = 0;
+ this.kryptonNavigator1.Size = new System.Drawing.Size(1010, 618);
+ this.kryptonNavigator1.StateCommon.BorderEdge.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
+ this.kryptonNavigator1.StateCommon.BorderEdge.Width = 2;
+ this.kryptonNavigator1.TabIndex = 1;
+ this.kryptonNavigator1.Text = "kryptonNavigator1";
+ //
+ // kryptonPage1
+ //
+ this.kryptonPage1.AutoHiddenSlideSize = new System.Drawing.Size(200, 200);
+ this.kryptonPage1.Controls.Add(this.kryptonPanel1);
+ this.kryptonPage1.Flags = 65534;
+ this.kryptonPage1.LastVisibleSet = true;
+ this.kryptonPage1.MinimumSize = new System.Drawing.Size(50, 50);
+ this.kryptonPage1.Name = "kryptonPage1";
+ this.kryptonPage1.Size = new System.Drawing.Size(1008, 591);
+ this.kryptonPage1.Text = "I\\O Monitor";
+ this.kryptonPage1.ToolTipTitle = "Page ToolTip";
+ this.kryptonPage1.UniqueName = "AE9DD637840446EC099C10C5A464741A";
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.tableLayoutPanel1);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(1008, 591);
+ this.kryptonPanel1.TabIndex = 6;
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
+ this.tableLayoutPanel1.ColumnCount = 2;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.kryptonPanel3, 1, 0);
+ this.tableLayoutPanel1.Controls.Add(this.kryptonPanel2, 0, 0);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 1;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 590F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(1008, 591);
+ this.tableLayoutPanel1.TabIndex = 0;
+ //
+ // kryptonPanel3
+ //
+ this.kryptonPanel3.AutoScroll = true;
+ this.kryptonPanel3.Controls.Add(this.panel64);
+ this.kryptonPanel3.Controls.Add(this.panel36);
+ this.kryptonPanel3.Controls.Add(this.panel63);
+ this.kryptonPanel3.Controls.Add(this.panel33);
+ this.kryptonPanel3.Controls.Add(this.panel62);
+ this.kryptonPanel3.Controls.Add(this.panel34);
+ this.kryptonPanel3.Controls.Add(this.panel61);
+ this.kryptonPanel3.Controls.Add(this.panel35);
+ this.kryptonPanel3.Controls.Add(this.panel60);
+ this.kryptonPanel3.Controls.Add(this.panel37);
+ this.kryptonPanel3.Controls.Add(this.panel59);
+ this.kryptonPanel3.Controls.Add(this.panel38);
+ this.kryptonPanel3.Controls.Add(this.panel58);
+ this.kryptonPanel3.Controls.Add(this.panel39);
+ this.kryptonPanel3.Controls.Add(this.panel57);
+ this.kryptonPanel3.Controls.Add(this.panel40);
+ this.kryptonPanel3.Controls.Add(this.panel56);
+ this.kryptonPanel3.Controls.Add(this.panel41);
+ this.kryptonPanel3.Controls.Add(this.panel55);
+ this.kryptonPanel3.Controls.Add(this.panel42);
+ this.kryptonPanel3.Controls.Add(this.panel54);
+ this.kryptonPanel3.Controls.Add(this.panel43);
+ this.kryptonPanel3.Controls.Add(this.panel53);
+ this.kryptonPanel3.Controls.Add(this.panel44);
+ this.kryptonPanel3.Controls.Add(this.panel52);
+ this.kryptonPanel3.Controls.Add(this.panel45);
+ this.kryptonPanel3.Controls.Add(this.panel51);
+ this.kryptonPanel3.Controls.Add(this.panel46);
+ this.kryptonPanel3.Controls.Add(this.panel50);
+ this.kryptonPanel3.Controls.Add(this.panel47);
+ this.kryptonPanel3.Controls.Add(this.panel49);
+ this.kryptonPanel3.Controls.Add(this.panel48);
+ this.kryptonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel3.Location = new System.Drawing.Point(507, 4);
+ this.kryptonPanel3.Name = "kryptonPanel3";
+ this.kryptonPanel3.Size = new System.Drawing.Size(497, 583);
+ this.kryptonPanel3.TabIndex = 1;
+ //
+ // panel64
+ //
+ this.panel64.BackColor = System.Drawing.Color.White;
+ this.panel64.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel64.Controls.Add(this.klb_Y37);
+ this.panel64.Controls.Add(this.cbt_Y37);
+ this.panel64.Controls.Add(this.kryptonLabel126);
+ this.panel64.Location = new System.Drawing.Point(249, 547);
+ this.panel64.Name = "panel64";
+ this.panel64.Size = new System.Drawing.Size(243, 30);
+ this.panel64.TabIndex = 1;
+ //
+ // klb_Y37
+ //
+ this.klb_Y37.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y37.Name = "klb_Y37";
+ this.klb_Y37.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y37.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y37.TabIndex = 3;
+ this.klb_Y37.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel126
+ //
+ this.kryptonLabel126.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel126.Name = "kryptonLabel126";
+ this.kryptonLabel126.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel126.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel126.TabIndex = 2;
+ this.kryptonLabel126.Values.Text = "Y37";
+ //
+ // panel36
+ //
+ this.panel36.BackColor = System.Drawing.Color.White;
+ this.panel36.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel36.Controls.Add(this.klb_Y21);
+ this.panel36.Controls.Add(this.cbt_Y21);
+ this.panel36.Controls.Add(this.kryptonLabel70);
+ this.panel36.Location = new System.Drawing.Point(249, 43);
+ this.panel36.Name = "panel36";
+ this.panel36.Size = new System.Drawing.Size(243, 30);
+ this.panel36.TabIndex = 1;
+ //
+ // klb_Y21
+ //
+ this.klb_Y21.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y21.Name = "klb_Y21";
+ this.klb_Y21.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y21.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y21.TabIndex = 3;
+ this.klb_Y21.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel70
+ //
+ this.kryptonLabel70.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel70.Name = "kryptonLabel70";
+ this.kryptonLabel70.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel70.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel70.TabIndex = 2;
+ this.kryptonLabel70.Values.Text = "Y21";
+ //
+ // panel63
+ //
+ this.panel63.BackColor = System.Drawing.Color.White;
+ this.panel63.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel63.Controls.Add(this.klb_Y36);
+ this.panel63.Controls.Add(this.cbt_Y36);
+ this.panel63.Controls.Add(this.kryptonLabel124);
+ this.panel63.Location = new System.Drawing.Point(249, 511);
+ this.panel63.Name = "panel63";
+ this.panel63.Size = new System.Drawing.Size(243, 30);
+ this.panel63.TabIndex = 1;
+ //
+ // klb_Y36
+ //
+ this.klb_Y36.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y36.Name = "klb_Y36";
+ this.klb_Y36.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y36.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y36.TabIndex = 3;
+ this.klb_Y36.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel124
+ //
+ this.kryptonLabel124.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel124.Name = "kryptonLabel124";
+ this.kryptonLabel124.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel124.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel124.TabIndex = 2;
+ this.kryptonLabel124.Values.Text = "Y36";
+ //
+ // panel33
+ //
+ this.panel33.BackColor = System.Drawing.Color.White;
+ this.panel33.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel33.Controls.Add(this.klb_Y00);
+ this.panel33.Controls.Add(this.cbt_Y00);
+ this.panel33.Controls.Add(this.kryptonLabel64);
+ this.panel33.Location = new System.Drawing.Point(4, 7);
+ this.panel33.Name = "panel33";
+ this.panel33.Size = new System.Drawing.Size(243, 30);
+ this.panel33.TabIndex = 1;
+ //
+ // klb_Y00
+ //
+ this.klb_Y00.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y00.Name = "klb_Y00";
+ this.klb_Y00.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y00.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y00.TabIndex = 3;
+ this.klb_Y00.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel64
+ //
+ this.kryptonLabel64.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel64.Name = "kryptonLabel64";
+ this.kryptonLabel64.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel64.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel64.TabIndex = 2;
+ this.kryptonLabel64.Values.Text = "Y00";
+ //
+ // panel62
+ //
+ this.panel62.BackColor = System.Drawing.Color.White;
+ this.panel62.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel62.Controls.Add(this.klb_Y17);
+ this.panel62.Controls.Add(this.cbt_Y17);
+ this.panel62.Controls.Add(this.kryptonLabel122);
+ this.panel62.Location = new System.Drawing.Point(4, 547);
+ this.panel62.Name = "panel62";
+ this.panel62.Size = new System.Drawing.Size(243, 30);
+ this.panel62.TabIndex = 1;
+ //
+ // klb_Y17
+ //
+ this.klb_Y17.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y17.Name = "klb_Y17";
+ this.klb_Y17.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y17.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y17.TabIndex = 3;
+ this.klb_Y17.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel122
+ //
+ this.kryptonLabel122.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel122.Name = "kryptonLabel122";
+ this.kryptonLabel122.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel122.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel122.TabIndex = 2;
+ this.kryptonLabel122.Values.Text = "Y17";
+ //
+ // panel34
+ //
+ this.panel34.BackColor = System.Drawing.Color.White;
+ this.panel34.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel34.Controls.Add(this.klb_Y20);
+ this.panel34.Controls.Add(this.cbt_Y20);
+ this.panel34.Controls.Add(this.kryptonLabel66);
+ this.panel34.Location = new System.Drawing.Point(249, 7);
+ this.panel34.Name = "panel34";
+ this.panel34.Size = new System.Drawing.Size(243, 30);
+ this.panel34.TabIndex = 1;
+ //
+ // klb_Y20
+ //
+ this.klb_Y20.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y20.Name = "klb_Y20";
+ this.klb_Y20.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y20.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y20.TabIndex = 3;
+ this.klb_Y20.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel66
+ //
+ this.kryptonLabel66.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel66.Name = "kryptonLabel66";
+ this.kryptonLabel66.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel66.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel66.TabIndex = 2;
+ this.kryptonLabel66.Values.Text = "Y20";
+ //
+ // panel61
+ //
+ this.panel61.BackColor = System.Drawing.Color.White;
+ this.panel61.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel61.Controls.Add(this.klb_Y34);
+ this.panel61.Controls.Add(this.cbt_Y34);
+ this.panel61.Controls.Add(this.kryptonLabel120);
+ this.panel61.Location = new System.Drawing.Point(249, 439);
+ this.panel61.Name = "panel61";
+ this.panel61.Size = new System.Drawing.Size(243, 30);
+ this.panel61.TabIndex = 1;
+ //
+ // klb_Y34
+ //
+ this.klb_Y34.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y34.Name = "klb_Y34";
+ this.klb_Y34.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y34.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y34.TabIndex = 3;
+ this.klb_Y34.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel120
+ //
+ this.kryptonLabel120.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel120.Name = "kryptonLabel120";
+ this.kryptonLabel120.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel120.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel120.TabIndex = 2;
+ this.kryptonLabel120.Values.Text = "Y34";
+ //
+ // panel35
+ //
+ this.panel35.BackColor = System.Drawing.Color.White;
+ this.panel35.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel35.Controls.Add(this.klb_Y01);
+ this.panel35.Controls.Add(this.cbt_Y01);
+ this.panel35.Controls.Add(this.kryptonLabel68);
+ this.panel35.Location = new System.Drawing.Point(4, 43);
+ this.panel35.Name = "panel35";
+ this.panel35.Size = new System.Drawing.Size(243, 30);
+ this.panel35.TabIndex = 1;
+ //
+ // klb_Y01
+ //
+ this.klb_Y01.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y01.Name = "klb_Y01";
+ this.klb_Y01.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y01.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y01.TabIndex = 3;
+ this.klb_Y01.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel68
+ //
+ this.kryptonLabel68.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel68.Name = "kryptonLabel68";
+ this.kryptonLabel68.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel68.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel68.TabIndex = 2;
+ this.kryptonLabel68.Values.Text = "Y01";
+ //
+ // panel60
+ //
+ this.panel60.BackColor = System.Drawing.Color.White;
+ this.panel60.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel60.Controls.Add(this.klb_Y16);
+ this.panel60.Controls.Add(this.cbt_Y16);
+ this.panel60.Controls.Add(this.kryptonLabel118);
+ this.panel60.Location = new System.Drawing.Point(4, 511);
+ this.panel60.Name = "panel60";
+ this.panel60.Size = new System.Drawing.Size(243, 30);
+ this.panel60.TabIndex = 1;
+ //
+ // klb_Y16
+ //
+ this.klb_Y16.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y16.Name = "klb_Y16";
+ this.klb_Y16.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y16.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y16.TabIndex = 3;
+ this.klb_Y16.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel118
+ //
+ this.kryptonLabel118.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel118.Name = "kryptonLabel118";
+ this.kryptonLabel118.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel118.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel118.TabIndex = 2;
+ this.kryptonLabel118.Values.Text = "Y16";
+ //
+ // panel37
+ //
+ this.panel37.BackColor = System.Drawing.Color.White;
+ this.panel37.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel37.Controls.Add(this.klb_Y02);
+ this.panel37.Controls.Add(this.cbt_Y02);
+ this.panel37.Controls.Add(this.kryptonLabel72);
+ this.panel37.Location = new System.Drawing.Point(4, 79);
+ this.panel37.Name = "panel37";
+ this.panel37.Size = new System.Drawing.Size(243, 30);
+ this.panel37.TabIndex = 1;
+ //
+ // klb_Y02
+ //
+ this.klb_Y02.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y02.Name = "klb_Y02";
+ this.klb_Y02.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y02.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y02.TabIndex = 3;
+ this.klb_Y02.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel72
+ //
+ this.kryptonLabel72.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel72.Name = "kryptonLabel72";
+ this.kryptonLabel72.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel72.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel72.TabIndex = 2;
+ this.kryptonLabel72.Values.Text = "Y02";
+ //
+ // panel59
+ //
+ this.panel59.BackColor = System.Drawing.Color.White;
+ this.panel59.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel59.Controls.Add(this.klb_Y14);
+ this.panel59.Controls.Add(this.cbt_Y14);
+ this.panel59.Controls.Add(this.kryptonLabel116);
+ this.panel59.Location = new System.Drawing.Point(4, 439);
+ this.panel59.Name = "panel59";
+ this.panel59.Size = new System.Drawing.Size(243, 30);
+ this.panel59.TabIndex = 1;
+ //
+ // klb_Y14
+ //
+ this.klb_Y14.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y14.Name = "klb_Y14";
+ this.klb_Y14.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y14.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y14.TabIndex = 3;
+ this.klb_Y14.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel116
+ //
+ this.kryptonLabel116.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel116.Name = "kryptonLabel116";
+ this.kryptonLabel116.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel116.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel116.TabIndex = 2;
+ this.kryptonLabel116.Values.Text = "Y14";
+ //
+ // panel38
+ //
+ this.panel38.BackColor = System.Drawing.Color.White;
+ this.panel38.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel38.Controls.Add(this.klb_Y22);
+ this.panel38.Controls.Add(this.cbt_Y22);
+ this.panel38.Controls.Add(this.kryptonLabel74);
+ this.panel38.Location = new System.Drawing.Point(249, 79);
+ this.panel38.Name = "panel38";
+ this.panel38.Size = new System.Drawing.Size(243, 30);
+ this.panel38.TabIndex = 1;
+ //
+ // klb_Y22
+ //
+ this.klb_Y22.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y22.Name = "klb_Y22";
+ this.klb_Y22.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y22.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y22.TabIndex = 3;
+ this.klb_Y22.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel74
+ //
+ this.kryptonLabel74.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel74.Name = "kryptonLabel74";
+ this.kryptonLabel74.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel74.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel74.TabIndex = 2;
+ this.kryptonLabel74.Values.Text = "Y22";
+ //
+ // panel58
+ //
+ this.panel58.BackColor = System.Drawing.Color.White;
+ this.panel58.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel58.Controls.Add(this.klb_Y35);
+ this.panel58.Controls.Add(this.cbt_Y35);
+ this.panel58.Controls.Add(this.kryptonLabel114);
+ this.panel58.Location = new System.Drawing.Point(249, 475);
+ this.panel58.Name = "panel58";
+ this.panel58.Size = new System.Drawing.Size(243, 30);
+ this.panel58.TabIndex = 1;
+ //
+ // klb_Y35
+ //
+ this.klb_Y35.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y35.Name = "klb_Y35";
+ this.klb_Y35.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y35.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y35.TabIndex = 3;
+ this.klb_Y35.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel114
+ //
+ this.kryptonLabel114.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel114.Name = "kryptonLabel114";
+ this.kryptonLabel114.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel114.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel114.TabIndex = 2;
+ this.kryptonLabel114.Values.Text = "Y35";
+ //
+ // panel39
+ //
+ this.panel39.BackColor = System.Drawing.Color.White;
+ this.panel39.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel39.Controls.Add(this.klb_Y03);
+ this.panel39.Controls.Add(this.cbt_Y03);
+ this.panel39.Controls.Add(this.kryptonLabel76);
+ this.panel39.Location = new System.Drawing.Point(4, 115);
+ this.panel39.Name = "panel39";
+ this.panel39.Size = new System.Drawing.Size(243, 30);
+ this.panel39.TabIndex = 1;
+ //
+ // klb_Y03
+ //
+ this.klb_Y03.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y03.Name = "klb_Y03";
+ this.klb_Y03.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y03.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y03.TabIndex = 3;
+ this.klb_Y03.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel76
+ //
+ this.kryptonLabel76.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel76.Name = "kryptonLabel76";
+ this.kryptonLabel76.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel76.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel76.TabIndex = 2;
+ this.kryptonLabel76.Values.Text = "Y03";
+ //
+ // panel57
+ //
+ this.panel57.BackColor = System.Drawing.Color.White;
+ this.panel57.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel57.Controls.Add(this.klb_Y15);
+ this.panel57.Controls.Add(this.cbt_Y15);
+ this.panel57.Controls.Add(this.kryptonLabel112);
+ this.panel57.Location = new System.Drawing.Point(4, 475);
+ this.panel57.Name = "panel57";
+ this.panel57.Size = new System.Drawing.Size(243, 30);
+ this.panel57.TabIndex = 1;
+ //
+ // klb_Y15
+ //
+ this.klb_Y15.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y15.Name = "klb_Y15";
+ this.klb_Y15.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y15.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y15.TabIndex = 3;
+ this.klb_Y15.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel112
+ //
+ this.kryptonLabel112.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel112.Name = "kryptonLabel112";
+ this.kryptonLabel112.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel112.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel112.TabIndex = 2;
+ this.kryptonLabel112.Values.Text = "Y15";
+ //
+ // panel40
+ //
+ this.panel40.BackColor = System.Drawing.Color.White;
+ this.panel40.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel40.Controls.Add(this.klb_Y23);
+ this.panel40.Controls.Add(this.cbt_Y23);
+ this.panel40.Controls.Add(this.kryptonLabel78);
+ this.panel40.Location = new System.Drawing.Point(249, 115);
+ this.panel40.Name = "panel40";
+ this.panel40.Size = new System.Drawing.Size(243, 30);
+ this.panel40.TabIndex = 1;
+ //
+ // klb_Y23
+ //
+ this.klb_Y23.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y23.Name = "klb_Y23";
+ this.klb_Y23.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y23.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y23.TabIndex = 3;
+ this.klb_Y23.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel78
+ //
+ this.kryptonLabel78.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel78.Name = "kryptonLabel78";
+ this.kryptonLabel78.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel78.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel78.TabIndex = 2;
+ this.kryptonLabel78.Values.Text = "Y23";
+ //
+ // panel56
+ //
+ this.panel56.BackColor = System.Drawing.Color.White;
+ this.panel56.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel56.Controls.Add(this.klb_Y33);
+ this.panel56.Controls.Add(this.cbt_Y33);
+ this.panel56.Controls.Add(this.kryptonLabel110);
+ this.panel56.Location = new System.Drawing.Point(249, 403);
+ this.panel56.Name = "panel56";
+ this.panel56.Size = new System.Drawing.Size(243, 30);
+ this.panel56.TabIndex = 1;
+ //
+ // klb_Y33
+ //
+ this.klb_Y33.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y33.Name = "klb_Y33";
+ this.klb_Y33.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y33.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y33.TabIndex = 3;
+ this.klb_Y33.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel110
+ //
+ this.kryptonLabel110.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel110.Name = "kryptonLabel110";
+ this.kryptonLabel110.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel110.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel110.TabIndex = 2;
+ this.kryptonLabel110.Values.Text = "Y33";
+ //
+ // panel41
+ //
+ this.panel41.BackColor = System.Drawing.Color.White;
+ this.panel41.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel41.Controls.Add(this.klb_Y04);
+ this.panel41.Controls.Add(this.cbt_Y04);
+ this.panel41.Controls.Add(this.kryptonLabel80);
+ this.panel41.Location = new System.Drawing.Point(4, 151);
+ this.panel41.Name = "panel41";
+ this.panel41.Size = new System.Drawing.Size(243, 30);
+ this.panel41.TabIndex = 1;
+ //
+ // klb_Y04
+ //
+ this.klb_Y04.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y04.Name = "klb_Y04";
+ this.klb_Y04.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y04.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y04.TabIndex = 3;
+ this.klb_Y04.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel80
+ //
+ this.kryptonLabel80.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel80.Name = "kryptonLabel80";
+ this.kryptonLabel80.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel80.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel80.TabIndex = 2;
+ this.kryptonLabel80.Values.Text = "Y04";
+ //
+ // panel55
+ //
+ this.panel55.BackColor = System.Drawing.Color.White;
+ this.panel55.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel55.Controls.Add(this.klb_Y13);
+ this.panel55.Controls.Add(this.cbt_Y13);
+ this.panel55.Controls.Add(this.kryptonLabel108);
+ this.panel55.Location = new System.Drawing.Point(4, 403);
+ this.panel55.Name = "panel55";
+ this.panel55.Size = new System.Drawing.Size(243, 30);
+ this.panel55.TabIndex = 1;
+ //
+ // klb_Y13
+ //
+ this.klb_Y13.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y13.Name = "klb_Y13";
+ this.klb_Y13.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y13.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y13.TabIndex = 3;
+ this.klb_Y13.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel108
+ //
+ this.kryptonLabel108.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel108.Name = "kryptonLabel108";
+ this.kryptonLabel108.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel108.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel108.TabIndex = 2;
+ this.kryptonLabel108.Values.Text = "Y13";
+ //
+ // panel42
+ //
+ this.panel42.BackColor = System.Drawing.Color.White;
+ this.panel42.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel42.Controls.Add(this.klb_Y24);
+ this.panel42.Controls.Add(this.cbt_Y24);
+ this.panel42.Controls.Add(this.kryptonLabel82);
+ this.panel42.Location = new System.Drawing.Point(249, 151);
+ this.panel42.Name = "panel42";
+ this.panel42.Size = new System.Drawing.Size(243, 30);
+ this.panel42.TabIndex = 1;
+ //
+ // klb_Y24
+ //
+ this.klb_Y24.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y24.Name = "klb_Y24";
+ this.klb_Y24.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y24.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y24.TabIndex = 3;
+ this.klb_Y24.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel82
+ //
+ this.kryptonLabel82.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel82.Name = "kryptonLabel82";
+ this.kryptonLabel82.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel82.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel82.TabIndex = 2;
+ this.kryptonLabel82.Values.Text = "Y24";
+ //
+ // panel54
+ //
+ this.panel54.BackColor = System.Drawing.Color.White;
+ this.panel54.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel54.Controls.Add(this.klb_Y32);
+ this.panel54.Controls.Add(this.cbt_Y32);
+ this.panel54.Controls.Add(this.kryptonLabel106);
+ this.panel54.Location = new System.Drawing.Point(249, 367);
+ this.panel54.Name = "panel54";
+ this.panel54.Size = new System.Drawing.Size(243, 30);
+ this.panel54.TabIndex = 1;
+ //
+ // klb_Y32
+ //
+ this.klb_Y32.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y32.Name = "klb_Y32";
+ this.klb_Y32.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y32.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y32.TabIndex = 3;
+ this.klb_Y32.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel106
+ //
+ this.kryptonLabel106.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel106.Name = "kryptonLabel106";
+ this.kryptonLabel106.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel106.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel106.TabIndex = 2;
+ this.kryptonLabel106.Values.Text = "Y32";
+ //
+ // panel43
+ //
+ this.panel43.BackColor = System.Drawing.Color.White;
+ this.panel43.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel43.Controls.Add(this.klb_Y05);
+ this.panel43.Controls.Add(this.cbt_Y05);
+ this.panel43.Controls.Add(this.kryptonLabel84);
+ this.panel43.Location = new System.Drawing.Point(4, 187);
+ this.panel43.Name = "panel43";
+ this.panel43.Size = new System.Drawing.Size(243, 30);
+ this.panel43.TabIndex = 1;
+ //
+ // klb_Y05
+ //
+ this.klb_Y05.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y05.Name = "klb_Y05";
+ this.klb_Y05.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y05.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y05.TabIndex = 3;
+ this.klb_Y05.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel84
+ //
+ this.kryptonLabel84.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel84.Name = "kryptonLabel84";
+ this.kryptonLabel84.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel84.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel84.TabIndex = 2;
+ this.kryptonLabel84.Values.Text = "Y05";
+ //
+ // panel53
+ //
+ this.panel53.BackColor = System.Drawing.Color.White;
+ this.panel53.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel53.Controls.Add(this.klb_Y12);
+ this.panel53.Controls.Add(this.cbt_Y12);
+ this.panel53.Controls.Add(this.kryptonLabel104);
+ this.panel53.Location = new System.Drawing.Point(4, 367);
+ this.panel53.Name = "panel53";
+ this.panel53.Size = new System.Drawing.Size(243, 30);
+ this.panel53.TabIndex = 1;
+ //
+ // klb_Y12
+ //
+ this.klb_Y12.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y12.Name = "klb_Y12";
+ this.klb_Y12.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y12.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y12.TabIndex = 3;
+ this.klb_Y12.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel104
+ //
+ this.kryptonLabel104.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel104.Name = "kryptonLabel104";
+ this.kryptonLabel104.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel104.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel104.TabIndex = 2;
+ this.kryptonLabel104.Values.Text = "Y12";
+ //
+ // panel44
+ //
+ this.panel44.BackColor = System.Drawing.Color.White;
+ this.panel44.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel44.Controls.Add(this.klb_Y25);
+ this.panel44.Controls.Add(this.cbt_Y25);
+ this.panel44.Controls.Add(this.kryptonLabel86);
+ this.panel44.Location = new System.Drawing.Point(249, 187);
+ this.panel44.Name = "panel44";
+ this.panel44.Size = new System.Drawing.Size(243, 30);
+ this.panel44.TabIndex = 1;
+ //
+ // klb_Y25
+ //
+ this.klb_Y25.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y25.Name = "klb_Y25";
+ this.klb_Y25.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y25.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y25.TabIndex = 3;
+ this.klb_Y25.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel86
+ //
+ this.kryptonLabel86.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel86.Name = "kryptonLabel86";
+ this.kryptonLabel86.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel86.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel86.TabIndex = 2;
+ this.kryptonLabel86.Values.Text = "Y25";
+ //
+ // panel52
+ //
+ this.panel52.BackColor = System.Drawing.Color.White;
+ this.panel52.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel52.Controls.Add(this.klb_Y31);
+ this.panel52.Controls.Add(this.cbt_Y31);
+ this.panel52.Controls.Add(this.kryptonLabel102);
+ this.panel52.Location = new System.Drawing.Point(249, 331);
+ this.panel52.Name = "panel52";
+ this.panel52.Size = new System.Drawing.Size(243, 30);
+ this.panel52.TabIndex = 1;
+ //
+ // klb_Y31
+ //
+ this.klb_Y31.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y31.Name = "klb_Y31";
+ this.klb_Y31.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y31.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y31.TabIndex = 3;
+ this.klb_Y31.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel102
+ //
+ this.kryptonLabel102.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel102.Name = "kryptonLabel102";
+ this.kryptonLabel102.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel102.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel102.TabIndex = 2;
+ this.kryptonLabel102.Values.Text = "Y31";
+ //
+ // panel45
+ //
+ this.panel45.BackColor = System.Drawing.Color.White;
+ this.panel45.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel45.Controls.Add(this.klb_Y06);
+ this.panel45.Controls.Add(this.cbt_Y06);
+ this.panel45.Controls.Add(this.kryptonLabel88);
+ this.panel45.Location = new System.Drawing.Point(4, 223);
+ this.panel45.Name = "panel45";
+ this.panel45.Size = new System.Drawing.Size(243, 30);
+ this.panel45.TabIndex = 1;
+ //
+ // klb_Y06
+ //
+ this.klb_Y06.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y06.Name = "klb_Y06";
+ this.klb_Y06.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y06.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y06.TabIndex = 3;
+ this.klb_Y06.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel88
+ //
+ this.kryptonLabel88.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel88.Name = "kryptonLabel88";
+ this.kryptonLabel88.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel88.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel88.TabIndex = 2;
+ this.kryptonLabel88.Values.Text = "Y06";
+ //
+ // panel51
+ //
+ this.panel51.BackColor = System.Drawing.Color.White;
+ this.panel51.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel51.Controls.Add(this.klb_Y11);
+ this.panel51.Controls.Add(this.cbt_Y11);
+ this.panel51.Controls.Add(this.kryptonLabel100);
+ this.panel51.Location = new System.Drawing.Point(4, 331);
+ this.panel51.Name = "panel51";
+ this.panel51.Size = new System.Drawing.Size(243, 30);
+ this.panel51.TabIndex = 1;
+ //
+ // klb_Y11
+ //
+ this.klb_Y11.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y11.Name = "klb_Y11";
+ this.klb_Y11.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y11.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y11.TabIndex = 3;
+ this.klb_Y11.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel100
+ //
+ this.kryptonLabel100.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel100.Name = "kryptonLabel100";
+ this.kryptonLabel100.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel100.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel100.TabIndex = 2;
+ this.kryptonLabel100.Values.Text = "Y11";
+ //
+ // panel46
+ //
+ this.panel46.BackColor = System.Drawing.Color.White;
+ this.panel46.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel46.Controls.Add(this.klb_Y26);
+ this.panel46.Controls.Add(this.cbt_Y26);
+ this.panel46.Controls.Add(this.kryptonLabel90);
+ this.panel46.Location = new System.Drawing.Point(249, 223);
+ this.panel46.Name = "panel46";
+ this.panel46.Size = new System.Drawing.Size(243, 30);
+ this.panel46.TabIndex = 1;
+ //
+ // klb_Y26
+ //
+ this.klb_Y26.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y26.Name = "klb_Y26";
+ this.klb_Y26.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y26.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y26.TabIndex = 3;
+ this.klb_Y26.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel90
+ //
+ this.kryptonLabel90.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel90.Name = "kryptonLabel90";
+ this.kryptonLabel90.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel90.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel90.TabIndex = 2;
+ this.kryptonLabel90.Values.Text = "Y26";
+ //
+ // panel50
+ //
+ this.panel50.BackColor = System.Drawing.Color.White;
+ this.panel50.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel50.Controls.Add(this.klb_Y30);
+ this.panel50.Controls.Add(this.cbt_Y30);
+ this.panel50.Controls.Add(this.kryptonLabel98);
+ this.panel50.Location = new System.Drawing.Point(249, 295);
+ this.panel50.Name = "panel50";
+ this.panel50.Size = new System.Drawing.Size(243, 30);
+ this.panel50.TabIndex = 1;
+ //
+ // klb_Y30
+ //
+ this.klb_Y30.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y30.Name = "klb_Y30";
+ this.klb_Y30.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y30.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y30.TabIndex = 3;
+ this.klb_Y30.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel98
+ //
+ this.kryptonLabel98.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel98.Name = "kryptonLabel98";
+ this.kryptonLabel98.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel98.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel98.TabIndex = 2;
+ this.kryptonLabel98.Values.Text = "Y30";
+ //
+ // panel47
+ //
+ this.panel47.BackColor = System.Drawing.Color.White;
+ this.panel47.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel47.Controls.Add(this.klb_Y07);
+ this.panel47.Controls.Add(this.cbt_Y07);
+ this.panel47.Controls.Add(this.kryptonLabel92);
+ this.panel47.Location = new System.Drawing.Point(4, 259);
+ this.panel47.Name = "panel47";
+ this.panel47.Size = new System.Drawing.Size(243, 30);
+ this.panel47.TabIndex = 1;
+ //
+ // klb_Y07
+ //
+ this.klb_Y07.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y07.Name = "klb_Y07";
+ this.klb_Y07.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y07.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y07.TabIndex = 3;
+ this.klb_Y07.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel92
+ //
+ this.kryptonLabel92.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel92.Name = "kryptonLabel92";
+ this.kryptonLabel92.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel92.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel92.TabIndex = 2;
+ this.kryptonLabel92.Values.Text = "Y07";
+ //
+ // panel49
+ //
+ this.panel49.BackColor = System.Drawing.Color.White;
+ this.panel49.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel49.Controls.Add(this.klb_Y10);
+ this.panel49.Controls.Add(this.cbt_Y10);
+ this.panel49.Controls.Add(this.kryptonLabel96);
+ this.panel49.Location = new System.Drawing.Point(4, 295);
+ this.panel49.Name = "panel49";
+ this.panel49.Size = new System.Drawing.Size(243, 30);
+ this.panel49.TabIndex = 1;
+ //
+ // klb_Y10
+ //
+ this.klb_Y10.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y10.Name = "klb_Y10";
+ this.klb_Y10.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y10.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y10.TabIndex = 3;
+ this.klb_Y10.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel96
+ //
+ this.kryptonLabel96.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel96.Name = "kryptonLabel96";
+ this.kryptonLabel96.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel96.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel96.TabIndex = 2;
+ this.kryptonLabel96.Values.Text = "Y10";
+ //
+ // panel48
+ //
+ this.panel48.BackColor = System.Drawing.Color.White;
+ this.panel48.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel48.Controls.Add(this.klb_Y27);
+ this.panel48.Controls.Add(this.cbt_Y27);
+ this.panel48.Controls.Add(this.kryptonLabel94);
+ this.panel48.Location = new System.Drawing.Point(249, 259);
+ this.panel48.Name = "panel48";
+ this.panel48.Size = new System.Drawing.Size(243, 30);
+ this.panel48.TabIndex = 1;
+ //
+ // klb_Y27
+ //
+ this.klb_Y27.Location = new System.Drawing.Point(50, 7);
+ this.klb_Y27.Name = "klb_Y27";
+ this.klb_Y27.Size = new System.Drawing.Size(84, 15);
+ this.klb_Y27.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_Y27.TabIndex = 3;
+ this.klb_Y27.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel94
+ //
+ this.kryptonLabel94.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel94.Name = "kryptonLabel94";
+ this.kryptonLabel94.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel94.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel94.TabIndex = 2;
+ this.kryptonLabel94.Values.Text = "Y27";
+ //
+ // kryptonPanel2
+ //
+ this.kryptonPanel2.AutoScroll = true;
+ this.kryptonPanel2.Controls.Add(this.panel32);
+ this.kryptonPanel2.Controls.Add(this.panel30);
+ this.kryptonPanel2.Controls.Add(this.panel31);
+ this.kryptonPanel2.Controls.Add(this.panel26);
+ this.kryptonPanel2.Controls.Add(this.panel29);
+ this.kryptonPanel2.Controls.Add(this.panel25);
+ this.kryptonPanel2.Controls.Add(this.panel28);
+ this.kryptonPanel2.Controls.Add(this.panel27);
+ this.kryptonPanel2.Controls.Add(this.panel24);
+ this.kryptonPanel2.Controls.Add(this.panel23);
+ this.kryptonPanel2.Controls.Add(this.panel22);
+ this.kryptonPanel2.Controls.Add(this.panel21);
+ this.kryptonPanel2.Controls.Add(this.panel20);
+ this.kryptonPanel2.Controls.Add(this.panel19);
+ this.kryptonPanel2.Controls.Add(this.panel18);
+ this.kryptonPanel2.Controls.Add(this.panel17);
+ this.kryptonPanel2.Controls.Add(this.panel16);
+ this.kryptonPanel2.Controls.Add(this.panel15);
+ this.kryptonPanel2.Controls.Add(this.panel14);
+ this.kryptonPanel2.Controls.Add(this.panel13);
+ this.kryptonPanel2.Controls.Add(this.panel12);
+ this.kryptonPanel2.Controls.Add(this.panel11);
+ this.kryptonPanel2.Controls.Add(this.panel10);
+ this.kryptonPanel2.Controls.Add(this.panel9);
+ this.kryptonPanel2.Controls.Add(this.panel8);
+ this.kryptonPanel2.Controls.Add(this.panel7);
+ this.kryptonPanel2.Controls.Add(this.panel6);
+ this.kryptonPanel2.Controls.Add(this.panel5);
+ this.kryptonPanel2.Controls.Add(this.panel4);
+ this.kryptonPanel2.Controls.Add(this.panel3);
+ this.kryptonPanel2.Controls.Add(this.panel2);
+ this.kryptonPanel2.Controls.Add(this.panel1);
+ this.kryptonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel2.Location = new System.Drawing.Point(4, 4);
+ this.kryptonPanel2.Name = "kryptonPanel2";
+ this.kryptonPanel2.Size = new System.Drawing.Size(496, 583);
+ this.kryptonPanel2.TabIndex = 0;
+ //
+ // panel32
+ //
+ this.panel32.BackColor = System.Drawing.Color.White;
+ this.panel32.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel32.Controls.Add(this.klb_X37);
+ this.panel32.Controls.Add(this.cbt_X37);
+ this.panel32.Controls.Add(this.kryptonLabel62);
+ this.panel32.Location = new System.Drawing.Point(248, 547);
+ this.panel32.Name = "panel32";
+ this.panel32.Size = new System.Drawing.Size(243, 30);
+ this.panel32.TabIndex = 1;
+ //
+ // klb_X37
+ //
+ this.klb_X37.Location = new System.Drawing.Point(50, 7);
+ this.klb_X37.Name = "klb_X37";
+ this.klb_X37.Size = new System.Drawing.Size(84, 15);
+ this.klb_X37.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X37.TabIndex = 3;
+ this.klb_X37.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel62
+ //
+ this.kryptonLabel62.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel62.Name = "kryptonLabel62";
+ this.kryptonLabel62.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel62.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel62.TabIndex = 2;
+ this.kryptonLabel62.Values.Text = "X37";
+ //
+ // panel30
+ //
+ this.panel30.BackColor = System.Drawing.Color.White;
+ this.panel30.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel30.Controls.Add(this.klb_X36);
+ this.panel30.Controls.Add(this.cbt_X36);
+ this.panel30.Controls.Add(this.kryptonLabel58);
+ this.panel30.Location = new System.Drawing.Point(248, 511);
+ this.panel30.Name = "panel30";
+ this.panel30.Size = new System.Drawing.Size(243, 30);
+ this.panel30.TabIndex = 1;
+ //
+ // klb_X36
+ //
+ this.klb_X36.Location = new System.Drawing.Point(50, 7);
+ this.klb_X36.Name = "klb_X36";
+ this.klb_X36.Size = new System.Drawing.Size(84, 15);
+ this.klb_X36.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X36.TabIndex = 3;
+ this.klb_X36.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel58
+ //
+ this.kryptonLabel58.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel58.Name = "kryptonLabel58";
+ this.kryptonLabel58.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel58.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel58.TabIndex = 2;
+ this.kryptonLabel58.Values.Text = "X36";
+ //
+ // panel31
+ //
+ this.panel31.BackColor = System.Drawing.Color.White;
+ this.panel31.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel31.Controls.Add(this.klb_X17);
+ this.panel31.Controls.Add(this.cbt_X17);
+ this.panel31.Controls.Add(this.kryptonLabel60);
+ this.panel31.Location = new System.Drawing.Point(3, 547);
+ this.panel31.Name = "panel31";
+ this.panel31.Size = new System.Drawing.Size(243, 30);
+ this.panel31.TabIndex = 1;
+ //
+ // klb_X17
+ //
+ this.klb_X17.Location = new System.Drawing.Point(50, 7);
+ this.klb_X17.Name = "klb_X17";
+ this.klb_X17.Size = new System.Drawing.Size(84, 15);
+ this.klb_X17.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X17.TabIndex = 3;
+ this.klb_X17.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel60
+ //
+ this.kryptonLabel60.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel60.Name = "kryptonLabel60";
+ this.kryptonLabel60.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel60.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel60.TabIndex = 2;
+ this.kryptonLabel60.Values.Text = "X17";
+ //
+ // panel26
+ //
+ this.panel26.BackColor = System.Drawing.Color.White;
+ this.panel26.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel26.Controls.Add(this.klb_X34);
+ this.panel26.Controls.Add(this.cbt_X34);
+ this.panel26.Controls.Add(this.kryptonLabel50);
+ this.panel26.Location = new System.Drawing.Point(248, 439);
+ this.panel26.Name = "panel26";
+ this.panel26.Size = new System.Drawing.Size(243, 30);
+ this.panel26.TabIndex = 1;
+ //
+ // klb_X34
+ //
+ this.klb_X34.Location = new System.Drawing.Point(50, 7);
+ this.klb_X34.Name = "klb_X34";
+ this.klb_X34.Size = new System.Drawing.Size(84, 15);
+ this.klb_X34.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X34.TabIndex = 3;
+ this.klb_X34.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel50
+ //
+ this.kryptonLabel50.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel50.Name = "kryptonLabel50";
+ this.kryptonLabel50.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel50.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel50.TabIndex = 2;
+ this.kryptonLabel50.Values.Text = "X34";
+ //
+ // panel29
+ //
+ this.panel29.BackColor = System.Drawing.Color.White;
+ this.panel29.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel29.Controls.Add(this.klb_X16);
+ this.panel29.Controls.Add(this.cbt_X16);
+ this.panel29.Controls.Add(this.kryptonLabel56);
+ this.panel29.Location = new System.Drawing.Point(3, 511);
+ this.panel29.Name = "panel29";
+ this.panel29.Size = new System.Drawing.Size(243, 30);
+ this.panel29.TabIndex = 1;
+ //
+ // klb_X16
+ //
+ this.klb_X16.Location = new System.Drawing.Point(50, 7);
+ this.klb_X16.Name = "klb_X16";
+ this.klb_X16.Size = new System.Drawing.Size(84, 15);
+ this.klb_X16.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X16.TabIndex = 3;
+ this.klb_X16.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel56
+ //
+ this.kryptonLabel56.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel56.Name = "kryptonLabel56";
+ this.kryptonLabel56.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel56.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel56.TabIndex = 2;
+ this.kryptonLabel56.Values.Text = "X16";
+ //
+ // panel25
+ //
+ this.panel25.BackColor = System.Drawing.Color.White;
+ this.panel25.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel25.Controls.Add(this.klb_X14);
+ this.panel25.Controls.Add(this.cbt_X14);
+ this.panel25.Controls.Add(this.kryptonLabel48);
+ this.panel25.Location = new System.Drawing.Point(3, 439);
+ this.panel25.Name = "panel25";
+ this.panel25.Size = new System.Drawing.Size(243, 30);
+ this.panel25.TabIndex = 1;
+ //
+ // klb_X14
+ //
+ this.klb_X14.Location = new System.Drawing.Point(50, 7);
+ this.klb_X14.Name = "klb_X14";
+ this.klb_X14.Size = new System.Drawing.Size(84, 15);
+ this.klb_X14.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X14.TabIndex = 3;
+ this.klb_X14.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel48
+ //
+ this.kryptonLabel48.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel48.Name = "kryptonLabel48";
+ this.kryptonLabel48.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel48.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel48.TabIndex = 2;
+ this.kryptonLabel48.Values.Text = "X14";
+ //
+ // panel28
+ //
+ this.panel28.BackColor = System.Drawing.Color.White;
+ this.panel28.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel28.Controls.Add(this.klb_X35);
+ this.panel28.Controls.Add(this.cbt_X35);
+ this.panel28.Controls.Add(this.kryptonLabel54);
+ this.panel28.Location = new System.Drawing.Point(248, 475);
+ this.panel28.Name = "panel28";
+ this.panel28.Size = new System.Drawing.Size(243, 30);
+ this.panel28.TabIndex = 1;
+ //
+ // klb_X35
+ //
+ this.klb_X35.Location = new System.Drawing.Point(50, 7);
+ this.klb_X35.Name = "klb_X35";
+ this.klb_X35.Size = new System.Drawing.Size(84, 15);
+ this.klb_X35.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X35.TabIndex = 3;
+ this.klb_X35.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel54
+ //
+ this.kryptonLabel54.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel54.Name = "kryptonLabel54";
+ this.kryptonLabel54.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel54.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel54.TabIndex = 2;
+ this.kryptonLabel54.Values.Text = "X35";
+ //
+ // panel27
+ //
+ this.panel27.BackColor = System.Drawing.Color.White;
+ this.panel27.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel27.Controls.Add(this.klb_X15);
+ this.panel27.Controls.Add(this.cbt_X15);
+ this.panel27.Controls.Add(this.kryptonLabel52);
+ this.panel27.Location = new System.Drawing.Point(3, 475);
+ this.panel27.Name = "panel27";
+ this.panel27.Size = new System.Drawing.Size(243, 30);
+ this.panel27.TabIndex = 1;
+ //
+ // klb_X15
+ //
+ this.klb_X15.Location = new System.Drawing.Point(50, 7);
+ this.klb_X15.Name = "klb_X15";
+ this.klb_X15.Size = new System.Drawing.Size(84, 15);
+ this.klb_X15.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X15.TabIndex = 3;
+ this.klb_X15.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel52
+ //
+ this.kryptonLabel52.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel52.Name = "kryptonLabel52";
+ this.kryptonLabel52.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel52.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel52.TabIndex = 2;
+ this.kryptonLabel52.Values.Text = "X15";
+ //
+ // panel24
+ //
+ this.panel24.BackColor = System.Drawing.Color.White;
+ this.panel24.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel24.Controls.Add(this.klb_X33);
+ this.panel24.Controls.Add(this.cbt_X33);
+ this.panel24.Controls.Add(this.kryptonLabel46);
+ this.panel24.Location = new System.Drawing.Point(248, 403);
+ this.panel24.Name = "panel24";
+ this.panel24.Size = new System.Drawing.Size(243, 30);
+ this.panel24.TabIndex = 1;
+ //
+ // klb_X33
+ //
+ this.klb_X33.Location = new System.Drawing.Point(50, 7);
+ this.klb_X33.Name = "klb_X33";
+ this.klb_X33.Size = new System.Drawing.Size(84, 15);
+ this.klb_X33.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X33.TabIndex = 3;
+ this.klb_X33.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel46
+ //
+ this.kryptonLabel46.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel46.Name = "kryptonLabel46";
+ this.kryptonLabel46.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel46.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel46.TabIndex = 2;
+ this.kryptonLabel46.Values.Text = "X33";
+ //
+ // panel23
+ //
+ this.panel23.BackColor = System.Drawing.Color.White;
+ this.panel23.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel23.Controls.Add(this.klb_X13);
+ this.panel23.Controls.Add(this.cbt_X13);
+ this.panel23.Controls.Add(this.kryptonLabel44);
+ this.panel23.Location = new System.Drawing.Point(3, 403);
+ this.panel23.Name = "panel23";
+ this.panel23.Size = new System.Drawing.Size(243, 30);
+ this.panel23.TabIndex = 1;
+ //
+ // klb_X13
+ //
+ this.klb_X13.Location = new System.Drawing.Point(50, 7);
+ this.klb_X13.Name = "klb_X13";
+ this.klb_X13.Size = new System.Drawing.Size(84, 15);
+ this.klb_X13.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X13.TabIndex = 3;
+ this.klb_X13.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel44
+ //
+ this.kryptonLabel44.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel44.Name = "kryptonLabel44";
+ this.kryptonLabel44.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel44.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel44.TabIndex = 2;
+ this.kryptonLabel44.Values.Text = "X13";
+ //
+ // panel22
+ //
+ this.panel22.BackColor = System.Drawing.Color.White;
+ this.panel22.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel22.Controls.Add(this.klb_X32);
+ this.panel22.Controls.Add(this.cbt_X32);
+ this.panel22.Controls.Add(this.kryptonLabel42);
+ this.panel22.Location = new System.Drawing.Point(248, 367);
+ this.panel22.Name = "panel22";
+ this.panel22.Size = new System.Drawing.Size(243, 30);
+ this.panel22.TabIndex = 1;
+ //
+ // klb_X32
+ //
+ this.klb_X32.Location = new System.Drawing.Point(50, 7);
+ this.klb_X32.Name = "klb_X32";
+ this.klb_X32.Size = new System.Drawing.Size(84, 15);
+ this.klb_X32.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X32.TabIndex = 3;
+ this.klb_X32.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel42
+ //
+ this.kryptonLabel42.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel42.Name = "kryptonLabel42";
+ this.kryptonLabel42.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel42.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel42.TabIndex = 2;
+ this.kryptonLabel42.Values.Text = "X32";
+ //
+ // panel21
+ //
+ this.panel21.BackColor = System.Drawing.Color.White;
+ this.panel21.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel21.Controls.Add(this.klb_X12);
+ this.panel21.Controls.Add(this.cbt_X12);
+ this.panel21.Controls.Add(this.kryptonLabel40);
+ this.panel21.Location = new System.Drawing.Point(3, 367);
+ this.panel21.Name = "panel21";
+ this.panel21.Size = new System.Drawing.Size(243, 30);
+ this.panel21.TabIndex = 1;
+ //
+ // klb_X12
+ //
+ this.klb_X12.Location = new System.Drawing.Point(50, 7);
+ this.klb_X12.Name = "klb_X12";
+ this.klb_X12.Size = new System.Drawing.Size(84, 15);
+ this.klb_X12.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X12.TabIndex = 3;
+ this.klb_X12.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel40
+ //
+ this.kryptonLabel40.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel40.Name = "kryptonLabel40";
+ this.kryptonLabel40.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel40.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel40.TabIndex = 2;
+ this.kryptonLabel40.Values.Text = "X12";
+ //
+ // panel20
+ //
+ this.panel20.BackColor = System.Drawing.Color.White;
+ this.panel20.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel20.Controls.Add(this.klb_X31);
+ this.panel20.Controls.Add(this.cbt_X31);
+ this.panel20.Controls.Add(this.kryptonLabel38);
+ this.panel20.Location = new System.Drawing.Point(248, 331);
+ this.panel20.Name = "panel20";
+ this.panel20.Size = new System.Drawing.Size(243, 30);
+ this.panel20.TabIndex = 1;
+ //
+ // klb_X31
+ //
+ this.klb_X31.Location = new System.Drawing.Point(50, 7);
+ this.klb_X31.Name = "klb_X31";
+ this.klb_X31.Size = new System.Drawing.Size(84, 15);
+ this.klb_X31.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X31.TabIndex = 3;
+ this.klb_X31.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel38
+ //
+ this.kryptonLabel38.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel38.Name = "kryptonLabel38";
+ this.kryptonLabel38.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel38.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel38.TabIndex = 2;
+ this.kryptonLabel38.Values.Text = "X31";
+ //
+ // panel19
+ //
+ this.panel19.BackColor = System.Drawing.Color.White;
+ this.panel19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel19.Controls.Add(this.klb_X11);
+ this.panel19.Controls.Add(this.cbt_X11);
+ this.panel19.Controls.Add(this.kryptonLabel36);
+ this.panel19.Location = new System.Drawing.Point(3, 331);
+ this.panel19.Name = "panel19";
+ this.panel19.Size = new System.Drawing.Size(243, 30);
+ this.panel19.TabIndex = 1;
+ //
+ // klb_X11
+ //
+ this.klb_X11.Location = new System.Drawing.Point(50, 7);
+ this.klb_X11.Name = "klb_X11";
+ this.klb_X11.Size = new System.Drawing.Size(84, 15);
+ this.klb_X11.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X11.TabIndex = 3;
+ this.klb_X11.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel36
+ //
+ this.kryptonLabel36.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel36.Name = "kryptonLabel36";
+ this.kryptonLabel36.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel36.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel36.TabIndex = 2;
+ this.kryptonLabel36.Values.Text = "X11";
+ //
+ // panel18
+ //
+ this.panel18.BackColor = System.Drawing.Color.White;
+ this.panel18.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel18.Controls.Add(this.klb_X30);
+ this.panel18.Controls.Add(this.cbt_X30);
+ this.panel18.Controls.Add(this.kryptonLabel34);
+ this.panel18.Location = new System.Drawing.Point(248, 295);
+ this.panel18.Name = "panel18";
+ this.panel18.Size = new System.Drawing.Size(243, 30);
+ this.panel18.TabIndex = 1;
+ //
+ // klb_X30
+ //
+ this.klb_X30.Location = new System.Drawing.Point(50, 7);
+ this.klb_X30.Name = "klb_X30";
+ this.klb_X30.Size = new System.Drawing.Size(84, 15);
+ this.klb_X30.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X30.TabIndex = 3;
+ this.klb_X30.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel34
+ //
+ this.kryptonLabel34.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel34.Name = "kryptonLabel34";
+ this.kryptonLabel34.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel34.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel34.TabIndex = 2;
+ this.kryptonLabel34.Values.Text = "X30";
+ //
+ // panel17
+ //
+ this.panel17.BackColor = System.Drawing.Color.White;
+ this.panel17.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel17.Controls.Add(this.klb_X10);
+ this.panel17.Controls.Add(this.cbt_X10);
+ this.panel17.Controls.Add(this.kryptonLabel32);
+ this.panel17.Location = new System.Drawing.Point(3, 295);
+ this.panel17.Name = "panel17";
+ this.panel17.Size = new System.Drawing.Size(243, 30);
+ this.panel17.TabIndex = 1;
+ //
+ // klb_X10
+ //
+ this.klb_X10.Location = new System.Drawing.Point(50, 7);
+ this.klb_X10.Name = "klb_X10";
+ this.klb_X10.Size = new System.Drawing.Size(84, 15);
+ this.klb_X10.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X10.TabIndex = 3;
+ this.klb_X10.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel32
+ //
+ this.kryptonLabel32.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel32.Name = "kryptonLabel32";
+ this.kryptonLabel32.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel32.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel32.TabIndex = 2;
+ this.kryptonLabel32.Values.Text = "X10";
+ //
+ // panel16
+ //
+ this.panel16.BackColor = System.Drawing.Color.White;
+ this.panel16.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel16.Controls.Add(this.klb_X27);
+ this.panel16.Controls.Add(this.cbt_X27);
+ this.panel16.Controls.Add(this.kryptonLabel30);
+ this.panel16.Location = new System.Drawing.Point(248, 259);
+ this.panel16.Name = "panel16";
+ this.panel16.Size = new System.Drawing.Size(243, 30);
+ this.panel16.TabIndex = 1;
+ //
+ // klb_X27
+ //
+ this.klb_X27.Location = new System.Drawing.Point(50, 7);
+ this.klb_X27.Name = "klb_X27";
+ this.klb_X27.Size = new System.Drawing.Size(84, 15);
+ this.klb_X27.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X27.TabIndex = 3;
+ this.klb_X27.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel30
+ //
+ this.kryptonLabel30.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel30.Name = "kryptonLabel30";
+ this.kryptonLabel30.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel30.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel30.TabIndex = 2;
+ this.kryptonLabel30.Values.Text = "X27";
+ //
+ // panel15
+ //
+ this.panel15.BackColor = System.Drawing.Color.White;
+ this.panel15.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel15.Controls.Add(this.klb_X07);
+ this.panel15.Controls.Add(this.cbt_X07);
+ this.panel15.Controls.Add(this.kryptonLabel28);
+ this.panel15.Location = new System.Drawing.Point(3, 259);
+ this.panel15.Name = "panel15";
+ this.panel15.Size = new System.Drawing.Size(243, 30);
+ this.panel15.TabIndex = 1;
+ //
+ // klb_X07
+ //
+ this.klb_X07.Location = new System.Drawing.Point(50, 7);
+ this.klb_X07.Name = "klb_X07";
+ this.klb_X07.Size = new System.Drawing.Size(84, 15);
+ this.klb_X07.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X07.TabIndex = 3;
+ this.klb_X07.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel28
+ //
+ this.kryptonLabel28.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel28.Name = "kryptonLabel28";
+ this.kryptonLabel28.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel28.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel28.TabIndex = 2;
+ this.kryptonLabel28.Values.Text = "X07";
+ //
+ // panel14
+ //
+ this.panel14.BackColor = System.Drawing.Color.White;
+ this.panel14.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel14.Controls.Add(this.klb_X26);
+ this.panel14.Controls.Add(this.cbt_X26);
+ this.panel14.Controls.Add(this.kryptonLabel26);
+ this.panel14.Location = new System.Drawing.Point(248, 223);
+ this.panel14.Name = "panel14";
+ this.panel14.Size = new System.Drawing.Size(243, 30);
+ this.panel14.TabIndex = 1;
+ //
+ // klb_X26
+ //
+ this.klb_X26.Location = new System.Drawing.Point(50, 7);
+ this.klb_X26.Name = "klb_X26";
+ this.klb_X26.Size = new System.Drawing.Size(84, 15);
+ this.klb_X26.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X26.TabIndex = 3;
+ this.klb_X26.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel26
+ //
+ this.kryptonLabel26.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel26.Name = "kryptonLabel26";
+ this.kryptonLabel26.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel26.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel26.TabIndex = 2;
+ this.kryptonLabel26.Values.Text = "X26";
+ //
+ // panel13
+ //
+ this.panel13.BackColor = System.Drawing.Color.White;
+ this.panel13.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel13.Controls.Add(this.klb_X06);
+ this.panel13.Controls.Add(this.cbt_X06);
+ this.panel13.Controls.Add(this.kryptonLabel24);
+ this.panel13.Location = new System.Drawing.Point(3, 223);
+ this.panel13.Name = "panel13";
+ this.panel13.Size = new System.Drawing.Size(243, 30);
+ this.panel13.TabIndex = 1;
+ //
+ // klb_X06
+ //
+ this.klb_X06.Location = new System.Drawing.Point(50, 7);
+ this.klb_X06.Name = "klb_X06";
+ this.klb_X06.Size = new System.Drawing.Size(84, 15);
+ this.klb_X06.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X06.TabIndex = 3;
+ this.klb_X06.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel24
+ //
+ this.kryptonLabel24.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel24.Name = "kryptonLabel24";
+ this.kryptonLabel24.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel24.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel24.TabIndex = 2;
+ this.kryptonLabel24.Values.Text = "X06";
+ //
+ // panel12
+ //
+ this.panel12.BackColor = System.Drawing.Color.White;
+ this.panel12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel12.Controls.Add(this.klb_X25);
+ this.panel12.Controls.Add(this.cbt_X25);
+ this.panel12.Controls.Add(this.kryptonLabel22);
+ this.panel12.Location = new System.Drawing.Point(248, 187);
+ this.panel12.Name = "panel12";
+ this.panel12.Size = new System.Drawing.Size(243, 30);
+ this.panel12.TabIndex = 1;
+ //
+ // klb_X25
+ //
+ this.klb_X25.Location = new System.Drawing.Point(50, 7);
+ this.klb_X25.Name = "klb_X25";
+ this.klb_X25.Size = new System.Drawing.Size(84, 15);
+ this.klb_X25.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X25.TabIndex = 3;
+ this.klb_X25.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel22
+ //
+ this.kryptonLabel22.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel22.Name = "kryptonLabel22";
+ this.kryptonLabel22.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel22.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel22.TabIndex = 2;
+ this.kryptonLabel22.Values.Text = "X25";
+ //
+ // panel11
+ //
+ this.panel11.BackColor = System.Drawing.Color.White;
+ this.panel11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel11.Controls.Add(this.klb_X05);
+ this.panel11.Controls.Add(this.cbt_X05);
+ this.panel11.Controls.Add(this.kryptonLabel20);
+ this.panel11.Location = new System.Drawing.Point(3, 187);
+ this.panel11.Name = "panel11";
+ this.panel11.Size = new System.Drawing.Size(243, 30);
+ this.panel11.TabIndex = 1;
+ //
+ // klb_X05
+ //
+ this.klb_X05.Location = new System.Drawing.Point(50, 7);
+ this.klb_X05.Name = "klb_X05";
+ this.klb_X05.Size = new System.Drawing.Size(84, 15);
+ this.klb_X05.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X05.TabIndex = 3;
+ this.klb_X05.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel20
+ //
+ this.kryptonLabel20.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel20.Name = "kryptonLabel20";
+ this.kryptonLabel20.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel20.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel20.TabIndex = 2;
+ this.kryptonLabel20.Values.Text = "X05";
+ //
+ // panel10
+ //
+ this.panel10.BackColor = System.Drawing.Color.White;
+ this.panel10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel10.Controls.Add(this.klb_X24);
+ this.panel10.Controls.Add(this.cbt_X24);
+ this.panel10.Controls.Add(this.kryptonLabel18);
+ this.panel10.Location = new System.Drawing.Point(248, 151);
+ this.panel10.Name = "panel10";
+ this.panel10.Size = new System.Drawing.Size(243, 30);
+ this.panel10.TabIndex = 1;
+ //
+ // klb_X24
+ //
+ this.klb_X24.Location = new System.Drawing.Point(50, 7);
+ this.klb_X24.Name = "klb_X24";
+ this.klb_X24.Size = new System.Drawing.Size(84, 15);
+ this.klb_X24.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X24.TabIndex = 3;
+ this.klb_X24.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel18
+ //
+ this.kryptonLabel18.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel18.Name = "kryptonLabel18";
+ this.kryptonLabel18.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel18.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel18.TabIndex = 2;
+ this.kryptonLabel18.Values.Text = "X24";
+ //
+ // panel9
+ //
+ this.panel9.BackColor = System.Drawing.Color.White;
+ this.panel9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel9.Controls.Add(this.klb_X04);
+ this.panel9.Controls.Add(this.cbt_X04);
+ this.panel9.Controls.Add(this.kryptonLabel16);
+ this.panel9.Location = new System.Drawing.Point(3, 151);
+ this.panel9.Name = "panel9";
+ this.panel9.Size = new System.Drawing.Size(243, 30);
+ this.panel9.TabIndex = 1;
+ //
+ // klb_X04
+ //
+ this.klb_X04.Location = new System.Drawing.Point(50, 7);
+ this.klb_X04.Name = "klb_X04";
+ this.klb_X04.Size = new System.Drawing.Size(84, 15);
+ this.klb_X04.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X04.TabIndex = 3;
+ this.klb_X04.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel16
+ //
+ this.kryptonLabel16.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel16.Name = "kryptonLabel16";
+ this.kryptonLabel16.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel16.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel16.TabIndex = 2;
+ this.kryptonLabel16.Values.Text = "X04";
+ //
+ // panel8
+ //
+ this.panel8.BackColor = System.Drawing.Color.White;
+ this.panel8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel8.Controls.Add(this.klb_X23);
+ this.panel8.Controls.Add(this.cbt_X23);
+ this.panel8.Controls.Add(this.kryptonLabel14);
+ this.panel8.Location = new System.Drawing.Point(248, 115);
+ this.panel8.Name = "panel8";
+ this.panel8.Size = new System.Drawing.Size(243, 30);
+ this.panel8.TabIndex = 1;
+ //
+ // klb_X23
+ //
+ this.klb_X23.Location = new System.Drawing.Point(50, 7);
+ this.klb_X23.Name = "klb_X23";
+ this.klb_X23.Size = new System.Drawing.Size(84, 15);
+ this.klb_X23.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X23.TabIndex = 3;
+ this.klb_X23.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel14
+ //
+ this.kryptonLabel14.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel14.Name = "kryptonLabel14";
+ this.kryptonLabel14.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel14.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel14.TabIndex = 2;
+ this.kryptonLabel14.Values.Text = "X23";
+ //
+ // panel7
+ //
+ this.panel7.BackColor = System.Drawing.Color.White;
+ this.panel7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel7.Controls.Add(this.klb_X03);
+ this.panel7.Controls.Add(this.cbt_X03);
+ this.panel7.Controls.Add(this.kryptonLabel12);
+ this.panel7.Location = new System.Drawing.Point(3, 115);
+ this.panel7.Name = "panel7";
+ this.panel7.Size = new System.Drawing.Size(243, 30);
+ this.panel7.TabIndex = 1;
+ //
+ // klb_X03
+ //
+ this.klb_X03.Location = new System.Drawing.Point(50, 7);
+ this.klb_X03.Name = "klb_X03";
+ this.klb_X03.Size = new System.Drawing.Size(84, 15);
+ this.klb_X03.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X03.TabIndex = 3;
+ this.klb_X03.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel12
+ //
+ this.kryptonLabel12.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel12.Name = "kryptonLabel12";
+ this.kryptonLabel12.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel12.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel12.TabIndex = 2;
+ this.kryptonLabel12.Values.Text = "X03";
+ //
+ // panel6
+ //
+ this.panel6.BackColor = System.Drawing.Color.White;
+ this.panel6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel6.Controls.Add(this.klb_X22);
+ this.panel6.Controls.Add(this.cbt_X22);
+ this.panel6.Controls.Add(this.kryptonLabel10);
+ this.panel6.Location = new System.Drawing.Point(248, 79);
+ this.panel6.Name = "panel6";
+ this.panel6.Size = new System.Drawing.Size(243, 30);
+ this.panel6.TabIndex = 1;
+ //
+ // klb_X22
+ //
+ this.klb_X22.Location = new System.Drawing.Point(50, 7);
+ this.klb_X22.Name = "klb_X22";
+ this.klb_X22.Size = new System.Drawing.Size(84, 15);
+ this.klb_X22.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X22.TabIndex = 3;
+ this.klb_X22.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel10
+ //
+ this.kryptonLabel10.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel10.Name = "kryptonLabel10";
+ this.kryptonLabel10.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel10.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel10.TabIndex = 2;
+ this.kryptonLabel10.Values.Text = "X22";
+ //
+ // panel5
+ //
+ this.panel5.BackColor = System.Drawing.Color.White;
+ this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel5.Controls.Add(this.klb_X02);
+ this.panel5.Controls.Add(this.cbt_X02);
+ this.panel5.Controls.Add(this.kryptonLabel8);
+ this.panel5.Location = new System.Drawing.Point(3, 79);
+ this.panel5.Name = "panel5";
+ this.panel5.Size = new System.Drawing.Size(243, 30);
+ this.panel5.TabIndex = 1;
+ //
+ // klb_X02
+ //
+ this.klb_X02.Location = new System.Drawing.Point(50, 7);
+ this.klb_X02.Name = "klb_X02";
+ this.klb_X02.Size = new System.Drawing.Size(6, 2);
+ this.klb_X02.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X02.TabIndex = 3;
+ this.klb_X02.Values.Text = "";
+ //
+ // kryptonLabel8
+ //
+ this.kryptonLabel8.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel8.Name = "kryptonLabel8";
+ this.kryptonLabel8.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel8.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel8.TabIndex = 2;
+ this.kryptonLabel8.Values.Text = "X02";
+ //
+ // panel4
+ //
+ this.panel4.BackColor = System.Drawing.Color.White;
+ this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel4.Controls.Add(this.klb_X21);
+ this.panel4.Controls.Add(this.cbt_X21);
+ this.panel4.Controls.Add(this.kryptonLabel6);
+ this.panel4.Location = new System.Drawing.Point(248, 43);
+ this.panel4.Name = "panel4";
+ this.panel4.Size = new System.Drawing.Size(243, 30);
+ this.panel4.TabIndex = 1;
+ //
+ // klb_X21
+ //
+ this.klb_X21.Location = new System.Drawing.Point(50, 7);
+ this.klb_X21.Name = "klb_X21";
+ this.klb_X21.Size = new System.Drawing.Size(84, 15);
+ this.klb_X21.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X21.TabIndex = 3;
+ this.klb_X21.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel6
+ //
+ this.kryptonLabel6.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel6.Name = "kryptonLabel6";
+ this.kryptonLabel6.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel6.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel6.TabIndex = 2;
+ this.kryptonLabel6.Values.Text = "X21";
+ //
+ // panel3
+ //
+ this.panel3.BackColor = System.Drawing.Color.White;
+ this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel3.Controls.Add(this.klb_X01);
+ this.panel3.Controls.Add(this.cbt_X01);
+ this.panel3.Controls.Add(this.kryptonLabel3);
+ this.panel3.Location = new System.Drawing.Point(3, 43);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(243, 30);
+ this.panel3.TabIndex = 1;
+ //
+ // klb_X01
+ //
+ this.klb_X01.Location = new System.Drawing.Point(50, 7);
+ this.klb_X01.Name = "klb_X01";
+ this.klb_X01.Size = new System.Drawing.Size(6, 2);
+ this.klb_X01.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X01.TabIndex = 3;
+ this.klb_X01.Values.Text = "";
+ //
+ // kryptonLabel3
+ //
+ this.kryptonLabel3.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel3.Name = "kryptonLabel3";
+ this.kryptonLabel3.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel3.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel3.TabIndex = 2;
+ this.kryptonLabel3.Values.Text = "X01";
+ //
+ // panel2
+ //
+ this.panel2.BackColor = System.Drawing.Color.White;
+ this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel2.Controls.Add(this.klb_X20);
+ this.panel2.Controls.Add(this.cbt_X20);
+ this.panel2.Controls.Add(this.kryptonLabel4);
+ this.panel2.Location = new System.Drawing.Point(248, 7);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(243, 30);
+ this.panel2.TabIndex = 1;
+ //
+ // klb_X20
+ //
+ this.klb_X20.Location = new System.Drawing.Point(50, 7);
+ this.klb_X20.Name = "klb_X20";
+ this.klb_X20.Size = new System.Drawing.Size(84, 15);
+ this.klb_X20.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X20.TabIndex = 3;
+ this.klb_X20.Values.Text = "kryptonLabel2";
+ //
+ // kryptonLabel4
+ //
+ this.kryptonLabel4.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel4.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel4.TabIndex = 2;
+ this.kryptonLabel4.Values.Text = "X20";
+ //
+ // panel1
+ //
+ this.panel1.BackColor = System.Drawing.Color.White;
+ this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel1.Controls.Add(this.klb_X00);
+ this.panel1.Controls.Add(this.cbt_X00);
+ this.panel1.Controls.Add(this.kryptonLabel1);
+ this.panel1.Location = new System.Drawing.Point(3, 7);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(243, 30);
+ this.panel1.TabIndex = 1;
+ //
+ // klb_X00
+ //
+ this.klb_X00.Location = new System.Drawing.Point(50, 7);
+ this.klb_X00.Name = "klb_X00";
+ this.klb_X00.Size = new System.Drawing.Size(6, 2);
+ this.klb_X00.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.klb_X00.TabIndex = 3;
+ this.klb_X00.Values.Text = "";
+ //
+ // kryptonLabel1
+ //
+ this.kryptonLabel1.Location = new System.Drawing.Point(0, 6);
+ this.kryptonLabel1.Name = "kryptonLabel1";
+ this.kryptonLabel1.Size = new System.Drawing.Size(32, 17);
+ this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel1.TabIndex = 2;
+ this.kryptonLabel1.Values.Text = "X00";
+ //
+ // kryptonPage2
+ //
+ this.kryptonPage2.AutoHiddenSlideSize = new System.Drawing.Size(200, 200);
+ this.kryptonPage2.Controls.Add(this.kryptonPanel4);
+ this.kryptonPage2.Flags = 65534;
+ this.kryptonPage2.LastVisibleSet = true;
+ this.kryptonPage2.MinimumSize = new System.Drawing.Size(50, 50);
+ this.kryptonPage2.Name = "kryptonPage2";
+ this.kryptonPage2.Size = new System.Drawing.Size(1008, 591);
+ this.kryptonPage2.Text = "CleanMachinePlaneFigureMonitor";
+ this.kryptonPage2.ToolTipTitle = "Page ToolTip";
+ this.kryptonPage2.UniqueName = "4B5BDF039191443590A0B278674CF65A";
+ //
+ // kryptonPanel4
+ //
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel35);
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel33);
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel31);
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel29);
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel27);
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel25);
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel23);
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel21);
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel19);
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel17);
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel15);
+ this.kryptonPanel4.Controls.Add(this.picb_M35);
+ this.kryptonPanel4.Controls.Add(this.picb_M34);
+ this.kryptonPanel4.Controls.Add(this.picb_X03);
+ this.kryptonPanel4.Controls.Add(this.picb_M37);
+ this.kryptonPanel4.Controls.Add(this.picb_M26);
+ this.kryptonPanel4.Controls.Add(this.picb_M33);
+ this.kryptonPanel4.Controls.Add(this.picb_M32);
+ this.kryptonPanel4.Controls.Add(this.picb_X05);
+ this.kryptonPanel4.Controls.Add(this.picb_X22);
+ this.kryptonPanel4.Controls.Add(this.picb_X31);
+ this.kryptonPanel4.Controls.Add(this.picb_X30);
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel13);
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel11);
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel9);
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel7);
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel5);
+ this.kryptonPanel4.Controls.Add(this.kryptonLabel2);
+ this.kryptonPanel4.Controls.Add(this.pictureBox3);
+ this.kryptonPanel4.Controls.Add(this.pictureBox2);
+ this.kryptonPanel4.Controls.Add(this.pictureBox5);
+ this.kryptonPanel4.Controls.Add(this.pictureBox6);
+ this.kryptonPanel4.Controls.Add(this.pictureBox4);
+ this.kryptonPanel4.Controls.Add(this.pictureBox1);
+ this.kryptonPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel4.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel4.Name = "kryptonPanel4";
+ this.kryptonPanel4.Size = new System.Drawing.Size(1008, 591);
+ this.kryptonPanel4.TabIndex = 0;
+ //
+ // kryptonLabel35
+ //
+ this.kryptonLabel35.Location = new System.Drawing.Point(664, 207);
+ this.kryptonLabel35.Name = "kryptonLabel35";
+ this.kryptonLabel35.Size = new System.Drawing.Size(34, 18);
+ this.kryptonLabel35.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel35.TabIndex = 3;
+ this.kryptonLabel35.Values.Text = "X03";
+ //
+ // kryptonLabel33
+ //
+ this.kryptonLabel33.Location = new System.Drawing.Point(532, 71);
+ this.kryptonLabel33.Name = "kryptonLabel33";
+ this.kryptonLabel33.Size = new System.Drawing.Size(34, 18);
+ this.kryptonLabel33.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel33.TabIndex = 3;
+ this.kryptonLabel33.Values.Text = "M35";
+ //
+ // kryptonLabel31
+ //
+ this.kryptonLabel31.Location = new System.Drawing.Point(531, 183);
+ this.kryptonLabel31.Name = "kryptonLabel31";
+ this.kryptonLabel31.Size = new System.Drawing.Size(34, 18);
+ this.kryptonLabel31.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel31.TabIndex = 3;
+ this.kryptonLabel31.Values.Text = "M34";
+ //
+ // kryptonLabel29
+ //
+ this.kryptonLabel29.Location = new System.Drawing.Point(532, 207);
+ this.kryptonLabel29.Name = "kryptonLabel29";
+ this.kryptonLabel29.Size = new System.Drawing.Size(34, 18);
+ this.kryptonLabel29.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel29.TabIndex = 3;
+ this.kryptonLabel29.Values.Text = "M37";
+ //
+ // kryptonLabel27
+ //
+ this.kryptonLabel27.Location = new System.Drawing.Point(532, 326);
+ this.kryptonLabel27.Name = "kryptonLabel27";
+ this.kryptonLabel27.Size = new System.Drawing.Size(34, 18);
+ this.kryptonLabel27.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel27.TabIndex = 3;
+ this.kryptonLabel27.Values.Text = "M26";
+ //
+ // kryptonLabel25
+ //
+ this.kryptonLabel25.Location = new System.Drawing.Point(532, 349);
+ this.kryptonLabel25.Name = "kryptonLabel25";
+ this.kryptonLabel25.Size = new System.Drawing.Size(34, 18);
+ this.kryptonLabel25.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel25.TabIndex = 3;
+ this.kryptonLabel25.Values.Text = "M33";
+ //
+ // kryptonLabel23
+ //
+ this.kryptonLabel23.Location = new System.Drawing.Point(531, 464);
+ this.kryptonLabel23.Name = "kryptonLabel23";
+ this.kryptonLabel23.Size = new System.Drawing.Size(34, 18);
+ this.kryptonLabel23.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel23.TabIndex = 3;
+ this.kryptonLabel23.Values.Text = "M32";
+ //
+ // kryptonLabel21
+ //
+ this.kryptonLabel21.Location = new System.Drawing.Point(513, 291);
+ this.kryptonLabel21.Name = "kryptonLabel21";
+ this.kryptonLabel21.Size = new System.Drawing.Size(34, 18);
+ this.kryptonLabel21.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel21.TabIndex = 3;
+ this.kryptonLabel21.Values.Text = "X05";
+ //
+ // kryptonLabel19
+ //
+ this.kryptonLabel19.Location = new System.Drawing.Point(369, 305);
+ this.kryptonLabel19.Name = "kryptonLabel19";
+ this.kryptonLabel19.Size = new System.Drawing.Size(34, 18);
+ this.kryptonLabel19.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel19.TabIndex = 3;
+ this.kryptonLabel19.Values.Text = "X22";
+ //
+ // kryptonLabel17
+ //
+ this.kryptonLabel17.Location = new System.Drawing.Point(260, 305);
+ this.kryptonLabel17.Name = "kryptonLabel17";
+ this.kryptonLabel17.Size = new System.Drawing.Size(34, 18);
+ this.kryptonLabel17.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel17.TabIndex = 3;
+ this.kryptonLabel17.Values.Text = "X31";
+ //
+ // kryptonLabel15
+ //
+ this.kryptonLabel15.Location = new System.Drawing.Point(153, 305);
+ this.kryptonLabel15.Name = "kryptonLabel15";
+ this.kryptonLabel15.Size = new System.Drawing.Size(34, 18);
+ this.kryptonLabel15.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel15.TabIndex = 3;
+ this.kryptonLabel15.Values.Text = "X30";
+ //
+ // picb_M35
+ //
+ this.picb_M35.Location = new System.Drawing.Point(570, 72);
+ this.picb_M35.Name = "picb_M35";
+ this.picb_M35.Size = new System.Drawing.Size(20, 14);
+ this.picb_M35.TabIndex = 2;
+ this.picb_M35.TabStop = false;
+ this.picb_M35.MouseHover += new System.EventHandler(this.picb_X30_MouseHover);
+ //
+ // picb_M34
+ //
+ this.picb_M34.Location = new System.Drawing.Point(570, 187);
+ this.picb_M34.Name = "picb_M34";
+ this.picb_M34.Size = new System.Drawing.Size(20, 14);
+ this.picb_M34.TabIndex = 2;
+ this.picb_M34.TabStop = false;
+ this.picb_M34.MouseHover += new System.EventHandler(this.picb_X30_MouseHover);
+ //
+ // picb_X03
+ //
+ this.picb_X03.Location = new System.Drawing.Point(641, 207);
+ this.picb_X03.Name = "picb_X03";
+ this.picb_X03.Size = new System.Drawing.Size(20, 14);
+ this.picb_X03.TabIndex = 2;
+ this.picb_X03.TabStop = false;
+ this.picb_X03.MouseHover += new System.EventHandler(this.picb_X30_MouseHover);
+ //
+ // picb_M37
+ //
+ this.picb_M37.Location = new System.Drawing.Point(570, 207);
+ this.picb_M37.Name = "picb_M37";
+ this.picb_M37.Size = new System.Drawing.Size(20, 14);
+ this.picb_M37.TabIndex = 2;
+ this.picb_M37.TabStop = false;
+ this.picb_M37.MouseHover += new System.EventHandler(this.picb_X30_MouseHover);
+ //
+ // picb_M26
+ //
+ this.picb_M26.Location = new System.Drawing.Point(570, 329);
+ this.picb_M26.Name = "picb_M26";
+ this.picb_M26.Size = new System.Drawing.Size(20, 14);
+ this.picb_M26.TabIndex = 2;
+ this.picb_M26.TabStop = false;
+ this.picb_M26.MouseHover += new System.EventHandler(this.picb_X30_MouseHover);
+ //
+ // picb_M33
+ //
+ this.picb_M33.Location = new System.Drawing.Point(570, 350);
+ this.picb_M33.Name = "picb_M33";
+ this.picb_M33.Size = new System.Drawing.Size(20, 14);
+ this.picb_M33.TabIndex = 2;
+ this.picb_M33.TabStop = false;
+ this.picb_M33.MouseHover += new System.EventHandler(this.picb_X30_MouseHover);
+ //
+ // picb_M32
+ //
+ this.picb_M32.Location = new System.Drawing.Point(570, 465);
+ this.picb_M32.Name = "picb_M32";
+ this.picb_M32.Size = new System.Drawing.Size(20, 14);
+ this.picb_M32.TabIndex = 2;
+ this.picb_M32.TabStop = false;
+ this.picb_M32.MouseHover += new System.EventHandler(this.picb_X30_MouseHover);
+ //
+ // picb_X05
+ //
+ this.picb_X05.Location = new System.Drawing.Point(523, 267);
+ this.picb_X05.Name = "picb_X05";
+ this.picb_X05.Size = new System.Drawing.Size(14, 20);
+ this.picb_X05.TabIndex = 2;
+ this.picb_X05.TabStop = false;
+ this.picb_X05.MouseHover += new System.EventHandler(this.picb_X30_MouseHover);
+ //
+ // picb_X22
+ //
+ this.picb_X22.Location = new System.Drawing.Point(385, 280);
+ this.picb_X22.Name = "picb_X22";
+ this.picb_X22.Size = new System.Drawing.Size(14, 20);
+ this.picb_X22.TabIndex = 2;
+ this.picb_X22.TabStop = false;
+ this.picb_X22.MouseHover += new System.EventHandler(this.picb_X30_MouseHover);
+ //
+ // picb_X31
+ //
+ this.picb_X31.Location = new System.Drawing.Point(271, 280);
+ this.picb_X31.Name = "picb_X31";
+ this.picb_X31.Size = new System.Drawing.Size(14, 20);
+ this.picb_X31.TabIndex = 2;
+ this.picb_X31.TabStop = false;
+ this.picb_X31.MouseHover += new System.EventHandler(this.picb_X30_MouseHover);
+ //
+ // picb_X30
+ //
+ this.picb_X30.Location = new System.Drawing.Point(163, 280);
+ this.picb_X30.Name = "picb_X30";
+ this.picb_X30.Size = new System.Drawing.Size(14, 20);
+ this.picb_X30.TabIndex = 2;
+ this.picb_X30.TabStop = false;
+ this.picb_X30.MouseHover += new System.EventHandler(this.picb_X30_MouseHover);
+ //
+ // kryptonLabel13
+ //
+ this.kryptonLabel13.Location = new System.Drawing.Point(573, 126);
+ this.kryptonLabel13.Name = "kryptonLabel13";
+ this.kryptonLabel13.Size = new System.Drawing.Size(86, 18);
+ this.kryptonLabel13.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel13.TabIndex = 1;
+ this.kryptonLabel13.Values.Text = "Seaction F";
+ //
+ // kryptonLabel11
+ //
+ this.kryptonLabel11.Location = new System.Drawing.Point(573, 267);
+ this.kryptonLabel11.Name = "kryptonLabel11";
+ this.kryptonLabel11.Size = new System.Drawing.Size(86, 18);
+ this.kryptonLabel11.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel11.TabIndex = 1;
+ this.kryptonLabel11.Values.Text = "Seaction E";
+ //
+ // kryptonLabel9
+ //
+ this.kryptonLabel9.Location = new System.Drawing.Point(573, 408);
+ this.kryptonLabel9.Name = "kryptonLabel9";
+ this.kryptonLabel9.Size = new System.Drawing.Size(86, 18);
+ this.kryptonLabel9.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel9.TabIndex = 1;
+ this.kryptonLabel9.Values.Text = "Seaction D";
+ //
+ // kryptonLabel7
+ //
+ this.kryptonLabel7.Location = new System.Drawing.Point(431, 267);
+ this.kryptonLabel7.Name = "kryptonLabel7";
+ this.kryptonLabel7.Size = new System.Drawing.Size(86, 18);
+ this.kryptonLabel7.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel7.TabIndex = 1;
+ this.kryptonLabel7.Values.Text = "Seaction C";
+ //
+ // kryptonLabel5
+ //
+ this.kryptonLabel5.Location = new System.Drawing.Point(301, 258);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(86, 18);
+ this.kryptonLabel5.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel5.TabIndex = 1;
+ this.kryptonLabel5.Values.Text = "Seaction B";
+ //
+ // kryptonLabel2
+ //
+ this.kryptonLabel2.Location = new System.Drawing.Point(181, 258);
+ this.kryptonLabel2.Name = "kryptonLabel2";
+ this.kryptonLabel2.Size = new System.Drawing.Size(86, 18);
+ this.kryptonLabel2.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel2.TabIndex = 1;
+ this.kryptonLabel2.Values.Text = "Seaction A";
+ //
+ // pictureBox3
+ //
+ this.pictureBox3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(163)))), ((int)(((byte)(161)))));
+ this.pictureBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.pictureBox3.Location = new System.Drawing.Point(403, 235);
+ this.pictureBox3.Name = "pictureBox3";
+ this.pictureBox3.Size = new System.Drawing.Size(163, 81);
+ this.pictureBox3.TabIndex = 0;
+ this.pictureBox3.TabStop = false;
+ //
+ // pictureBox2
+ //
+ this.pictureBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(163)))), ((int)(((byte)(161)))));
+ this.pictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.pictureBox2.Location = new System.Drawing.Point(292, 250);
+ this.pictureBox2.Name = "pictureBox2";
+ this.pictureBox2.Size = new System.Drawing.Size(108, 51);
+ this.pictureBox2.TabIndex = 0;
+ this.pictureBox2.TabStop = false;
+ //
+ // pictureBox5
+ //
+ this.pictureBox5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(163)))), ((int)(((byte)(161)))));
+ this.pictureBox5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.pictureBox5.Location = new System.Drawing.Point(569, 206);
+ this.pictureBox5.Name = "pictureBox5";
+ this.pictureBox5.Size = new System.Drawing.Size(94, 138);
+ this.pictureBox5.TabIndex = 0;
+ this.pictureBox5.TabStop = false;
+ //
+ // pictureBox6
+ //
+ this.pictureBox6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(163)))), ((int)(((byte)(161)))));
+ this.pictureBox6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.pictureBox6.Location = new System.Drawing.Point(569, 71);
+ this.pictureBox6.Name = "pictureBox6";
+ this.pictureBox6.Size = new System.Drawing.Size(94, 131);
+ this.pictureBox6.TabIndex = 0;
+ this.pictureBox6.TabStop = false;
+ //
+ // pictureBox4
+ //
+ this.pictureBox4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(163)))), ((int)(((byte)(161)))));
+ this.pictureBox4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.pictureBox4.Location = new System.Drawing.Point(569, 349);
+ this.pictureBox4.Name = "pictureBox4";
+ this.pictureBox4.Size = new System.Drawing.Size(94, 131);
+ this.pictureBox4.TabIndex = 0;
+ this.pictureBox4.TabStop = false;
+ //
+ // pictureBox1
+ //
+ this.pictureBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(163)))), ((int)(((byte)(161)))));
+ this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.pictureBox1.Location = new System.Drawing.Point(162, 250);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(124, 51);
+ this.pictureBox1.TabIndex = 0;
+ this.pictureBox1.TabStop = false;
+ //
+ // cbt_Y37
+ //
+ this.cbt_Y37.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y37.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y37.Name = "cbt_Y37";
+ this.cbt_Y37.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y37.TabIndex = 2;
+ this.cbt_Y37.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y21
+ //
+ this.cbt_Y21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y21.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y21.Name = "cbt_Y21";
+ this.cbt_Y21.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y21.TabIndex = 2;
+ this.cbt_Y21.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y36
+ //
+ this.cbt_Y36.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y36.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y36.Name = "cbt_Y36";
+ this.cbt_Y36.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y36.TabIndex = 2;
+ this.cbt_Y36.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y00
+ //
+ this.cbt_Y00.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y00.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y00.Name = "cbt_Y00";
+ this.cbt_Y00.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y00.TabIndex = 2;
+ this.cbt_Y00.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y17
+ //
+ this.cbt_Y17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y17.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y17.Name = "cbt_Y17";
+ this.cbt_Y17.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y17.TabIndex = 2;
+ this.cbt_Y17.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y20
+ //
+ this.cbt_Y20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y20.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y20.Name = "cbt_Y20";
+ this.cbt_Y20.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y20.TabIndex = 2;
+ this.cbt_Y20.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y34
+ //
+ this.cbt_Y34.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y34.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y34.Name = "cbt_Y34";
+ this.cbt_Y34.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y34.TabIndex = 2;
+ this.cbt_Y34.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y01
+ //
+ this.cbt_Y01.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y01.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y01.Name = "cbt_Y01";
+ this.cbt_Y01.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y01.TabIndex = 2;
+ this.cbt_Y01.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y16
+ //
+ this.cbt_Y16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y16.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y16.Name = "cbt_Y16";
+ this.cbt_Y16.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y16.TabIndex = 2;
+ this.cbt_Y16.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y02
+ //
+ this.cbt_Y02.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y02.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y02.Name = "cbt_Y02";
+ this.cbt_Y02.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y02.TabIndex = 2;
+ this.cbt_Y02.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y14
+ //
+ this.cbt_Y14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y14.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y14.Name = "cbt_Y14";
+ this.cbt_Y14.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y14.TabIndex = 2;
+ this.cbt_Y14.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y22
+ //
+ this.cbt_Y22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y22.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y22.Name = "cbt_Y22";
+ this.cbt_Y22.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y22.TabIndex = 2;
+ this.cbt_Y22.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y35
+ //
+ this.cbt_Y35.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y35.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y35.Name = "cbt_Y35";
+ this.cbt_Y35.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y35.TabIndex = 2;
+ this.cbt_Y35.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y03
+ //
+ this.cbt_Y03.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y03.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y03.Name = "cbt_Y03";
+ this.cbt_Y03.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y03.TabIndex = 2;
+ this.cbt_Y03.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y15
+ //
+ this.cbt_Y15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y15.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y15.Name = "cbt_Y15";
+ this.cbt_Y15.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y15.TabIndex = 2;
+ this.cbt_Y15.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y23
+ //
+ this.cbt_Y23.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y23.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y23.Name = "cbt_Y23";
+ this.cbt_Y23.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y23.TabIndex = 2;
+ this.cbt_Y23.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y33
+ //
+ this.cbt_Y33.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y33.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y33.Name = "cbt_Y33";
+ this.cbt_Y33.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y33.TabIndex = 2;
+ this.cbt_Y33.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y04
+ //
+ this.cbt_Y04.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y04.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y04.Name = "cbt_Y04";
+ this.cbt_Y04.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y04.TabIndex = 2;
+ this.cbt_Y04.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y13
+ //
+ this.cbt_Y13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y13.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y13.Name = "cbt_Y13";
+ this.cbt_Y13.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y13.TabIndex = 2;
+ this.cbt_Y13.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y24
+ //
+ this.cbt_Y24.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y24.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y24.Name = "cbt_Y24";
+ this.cbt_Y24.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y24.TabIndex = 2;
+ this.cbt_Y24.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y32
+ //
+ this.cbt_Y32.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y32.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y32.Name = "cbt_Y32";
+ this.cbt_Y32.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y32.TabIndex = 2;
+ this.cbt_Y32.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y05
+ //
+ this.cbt_Y05.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y05.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y05.Name = "cbt_Y05";
+ this.cbt_Y05.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y05.TabIndex = 2;
+ this.cbt_Y05.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y12
+ //
+ this.cbt_Y12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y12.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y12.Name = "cbt_Y12";
+ this.cbt_Y12.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y12.TabIndex = 2;
+ this.cbt_Y12.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y25
+ //
+ this.cbt_Y25.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y25.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y25.Name = "cbt_Y25";
+ this.cbt_Y25.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y25.TabIndex = 2;
+ this.cbt_Y25.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y31
+ //
+ this.cbt_Y31.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y31.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y31.Name = "cbt_Y31";
+ this.cbt_Y31.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y31.TabIndex = 2;
+ this.cbt_Y31.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y06
+ //
+ this.cbt_Y06.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y06.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y06.Name = "cbt_Y06";
+ this.cbt_Y06.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y06.TabIndex = 2;
+ this.cbt_Y06.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y11
+ //
+ this.cbt_Y11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y11.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y11.Name = "cbt_Y11";
+ this.cbt_Y11.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y11.TabIndex = 2;
+ this.cbt_Y11.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y26
+ //
+ this.cbt_Y26.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y26.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y26.Name = "cbt_Y26";
+ this.cbt_Y26.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y26.TabIndex = 2;
+ this.cbt_Y26.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y30
+ //
+ this.cbt_Y30.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y30.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y30.Name = "cbt_Y30";
+ this.cbt_Y30.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y30.TabIndex = 2;
+ this.cbt_Y30.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y07
+ //
+ this.cbt_Y07.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y07.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y07.Name = "cbt_Y07";
+ this.cbt_Y07.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y07.TabIndex = 2;
+ this.cbt_Y07.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y10
+ //
+ this.cbt_Y10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y10.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y10.Name = "cbt_Y10";
+ this.cbt_Y10.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y10.TabIndex = 2;
+ this.cbt_Y10.UseVisualStyleBackColor = false;
+ //
+ // cbt_Y27
+ //
+ this.cbt_Y27.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_Y27.Location = new System.Drawing.Point(31, 3);
+ this.cbt_Y27.Name = "cbt_Y27";
+ this.cbt_Y27.Size = new System.Drawing.Size(23, 23);
+ this.cbt_Y27.TabIndex = 2;
+ this.cbt_Y27.UseVisualStyleBackColor = false;
+ //
+ // cbt_X37
+ //
+ this.cbt_X37.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X37.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X37.Name = "cbt_X37";
+ this.cbt_X37.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X37.TabIndex = 2;
+ this.cbt_X37.UseVisualStyleBackColor = false;
+ //
+ // cbt_X36
+ //
+ this.cbt_X36.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X36.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X36.Name = "cbt_X36";
+ this.cbt_X36.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X36.TabIndex = 2;
+ this.cbt_X36.UseVisualStyleBackColor = false;
+ //
+ // cbt_X17
+ //
+ this.cbt_X17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X17.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X17.Name = "cbt_X17";
+ this.cbt_X17.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X17.TabIndex = 2;
+ this.cbt_X17.UseVisualStyleBackColor = false;
+ //
+ // cbt_X34
+ //
+ this.cbt_X34.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X34.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X34.Name = "cbt_X34";
+ this.cbt_X34.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X34.TabIndex = 2;
+ this.cbt_X34.UseVisualStyleBackColor = false;
+ //
+ // cbt_X16
+ //
+ this.cbt_X16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X16.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X16.Name = "cbt_X16";
+ this.cbt_X16.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X16.TabIndex = 2;
+ this.cbt_X16.UseVisualStyleBackColor = false;
+ //
+ // cbt_X14
+ //
+ this.cbt_X14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X14.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X14.Name = "cbt_X14";
+ this.cbt_X14.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X14.TabIndex = 2;
+ this.cbt_X14.UseVisualStyleBackColor = false;
+ //
+ // cbt_X35
+ //
+ this.cbt_X35.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X35.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X35.Name = "cbt_X35";
+ this.cbt_X35.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X35.TabIndex = 2;
+ this.cbt_X35.UseVisualStyleBackColor = false;
+ //
+ // cbt_X15
+ //
+ this.cbt_X15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X15.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X15.Name = "cbt_X15";
+ this.cbt_X15.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X15.TabIndex = 2;
+ this.cbt_X15.UseVisualStyleBackColor = false;
+ //
+ // cbt_X33
+ //
+ this.cbt_X33.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X33.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X33.Name = "cbt_X33";
+ this.cbt_X33.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X33.TabIndex = 2;
+ this.cbt_X33.UseVisualStyleBackColor = false;
+ //
+ // cbt_X13
+ //
+ this.cbt_X13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X13.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X13.Name = "cbt_X13";
+ this.cbt_X13.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X13.TabIndex = 2;
+ this.cbt_X13.UseVisualStyleBackColor = false;
+ //
+ // cbt_X32
+ //
+ this.cbt_X32.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X32.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X32.Name = "cbt_X32";
+ this.cbt_X32.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X32.TabIndex = 2;
+ this.cbt_X32.UseVisualStyleBackColor = false;
+ //
+ // cbt_X12
+ //
+ this.cbt_X12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X12.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X12.Name = "cbt_X12";
+ this.cbt_X12.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X12.TabIndex = 2;
+ this.cbt_X12.UseVisualStyleBackColor = false;
+ //
+ // cbt_X31
+ //
+ this.cbt_X31.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X31.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X31.Name = "cbt_X31";
+ this.cbt_X31.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X31.TabIndex = 2;
+ this.cbt_X31.UseVisualStyleBackColor = false;
+ //
+ // cbt_X11
+ //
+ this.cbt_X11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X11.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X11.Name = "cbt_X11";
+ this.cbt_X11.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X11.TabIndex = 2;
+ this.cbt_X11.UseVisualStyleBackColor = false;
+ //
+ // cbt_X30
+ //
+ this.cbt_X30.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X30.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X30.Name = "cbt_X30";
+ this.cbt_X30.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X30.TabIndex = 2;
+ this.cbt_X30.UseVisualStyleBackColor = false;
+ //
+ // cbt_X10
+ //
+ this.cbt_X10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X10.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X10.Name = "cbt_X10";
+ this.cbt_X10.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X10.TabIndex = 2;
+ this.cbt_X10.UseVisualStyleBackColor = false;
+ //
+ // cbt_X27
+ //
+ this.cbt_X27.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X27.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X27.Name = "cbt_X27";
+ this.cbt_X27.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X27.TabIndex = 2;
+ this.cbt_X27.UseVisualStyleBackColor = false;
+ //
+ // cbt_X07
+ //
+ this.cbt_X07.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X07.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X07.Name = "cbt_X07";
+ this.cbt_X07.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X07.TabIndex = 2;
+ this.cbt_X07.UseVisualStyleBackColor = false;
+ //
+ // cbt_X26
+ //
+ this.cbt_X26.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X26.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X26.Name = "cbt_X26";
+ this.cbt_X26.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X26.TabIndex = 2;
+ this.cbt_X26.UseVisualStyleBackColor = false;
+ //
+ // cbt_X06
+ //
+ this.cbt_X06.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X06.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X06.Name = "cbt_X06";
+ this.cbt_X06.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X06.TabIndex = 2;
+ this.cbt_X06.UseVisualStyleBackColor = false;
+ //
+ // cbt_X25
+ //
+ this.cbt_X25.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X25.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X25.Name = "cbt_X25";
+ this.cbt_X25.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X25.TabIndex = 2;
+ this.cbt_X25.UseVisualStyleBackColor = false;
+ //
+ // cbt_X05
+ //
+ this.cbt_X05.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X05.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X05.Name = "cbt_X05";
+ this.cbt_X05.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X05.TabIndex = 2;
+ this.cbt_X05.UseVisualStyleBackColor = false;
+ //
+ // cbt_X24
+ //
+ this.cbt_X24.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X24.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X24.Name = "cbt_X24";
+ this.cbt_X24.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X24.TabIndex = 2;
+ this.cbt_X24.UseVisualStyleBackColor = false;
+ //
+ // cbt_X04
+ //
+ this.cbt_X04.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X04.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X04.Name = "cbt_X04";
+ this.cbt_X04.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X04.TabIndex = 2;
+ this.cbt_X04.UseVisualStyleBackColor = false;
+ //
+ // cbt_X23
+ //
+ this.cbt_X23.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X23.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X23.Name = "cbt_X23";
+ this.cbt_X23.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X23.TabIndex = 2;
+ this.cbt_X23.UseVisualStyleBackColor = false;
+ //
+ // cbt_X03
+ //
+ this.cbt_X03.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X03.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X03.Name = "cbt_X03";
+ this.cbt_X03.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X03.TabIndex = 2;
+ this.cbt_X03.UseVisualStyleBackColor = false;
+ //
+ // cbt_X22
+ //
+ this.cbt_X22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X22.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X22.Name = "cbt_X22";
+ this.cbt_X22.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X22.TabIndex = 2;
+ this.cbt_X22.UseVisualStyleBackColor = false;
+ //
+ // cbt_X02
+ //
+ this.cbt_X02.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X02.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X02.Name = "cbt_X02";
+ this.cbt_X02.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X02.TabIndex = 2;
+ this.cbt_X02.UseVisualStyleBackColor = false;
+ //
+ // cbt_X21
+ //
+ this.cbt_X21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X21.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X21.Name = "cbt_X21";
+ this.cbt_X21.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X21.TabIndex = 2;
+ this.cbt_X21.UseVisualStyleBackColor = false;
+ //
+ // cbt_X01
+ //
+ this.cbt_X01.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X01.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X01.Name = "cbt_X01";
+ this.cbt_X01.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X01.TabIndex = 2;
+ this.cbt_X01.UseVisualStyleBackColor = false;
+ //
+ // cbt_X20
+ //
+ this.cbt_X20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X20.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X20.Name = "cbt_X20";
+ this.cbt_X20.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X20.TabIndex = 2;
+ this.cbt_X20.UseVisualStyleBackColor = false;
+ //
+ // cbt_X00
+ //
+ this.cbt_X00.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
+ this.cbt_X00.Location = new System.Drawing.Point(31, 3);
+ this.cbt_X00.Name = "cbt_X00";
+ this.cbt_X00.Size = new System.Drawing.Size(23, 23);
+ this.cbt_X00.TabIndex = 2;
+ this.cbt_X00.UseVisualStyleBackColor = false;
+ //
+ // frmIoMonitorNew
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1010, 650);
+ this.Controls.Add(this.kryptonNavigator1);
+ this.Controls.Add(this.kryptonGroupBox1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+ this.Name = "frmIoMonitorNew";
+ this.ShowIcon = false;
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "frmIoMonitorNew_2";
+ this.Load += new System.EventHandler(this.frmIoMonitorNew_2_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator1)).EndInit();
+ this.kryptonNavigator1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPage1)).EndInit();
+ this.kryptonPage1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).EndInit();
+ this.kryptonPanel3.ResumeLayout(false);
+ this.panel64.ResumeLayout(false);
+ this.panel64.PerformLayout();
+ this.panel36.ResumeLayout(false);
+ this.panel36.PerformLayout();
+ this.panel63.ResumeLayout(false);
+ this.panel63.PerformLayout();
+ this.panel33.ResumeLayout(false);
+ this.panel33.PerformLayout();
+ this.panel62.ResumeLayout(false);
+ this.panel62.PerformLayout();
+ this.panel34.ResumeLayout(false);
+ this.panel34.PerformLayout();
+ this.panel61.ResumeLayout(false);
+ this.panel61.PerformLayout();
+ this.panel35.ResumeLayout(false);
+ this.panel35.PerformLayout();
+ this.panel60.ResumeLayout(false);
+ this.panel60.PerformLayout();
+ this.panel37.ResumeLayout(false);
+ this.panel37.PerformLayout();
+ this.panel59.ResumeLayout(false);
+ this.panel59.PerformLayout();
+ this.panel38.ResumeLayout(false);
+ this.panel38.PerformLayout();
+ this.panel58.ResumeLayout(false);
+ this.panel58.PerformLayout();
+ this.panel39.ResumeLayout(false);
+ this.panel39.PerformLayout();
+ this.panel57.ResumeLayout(false);
+ this.panel57.PerformLayout();
+ this.panel40.ResumeLayout(false);
+ this.panel40.PerformLayout();
+ this.panel56.ResumeLayout(false);
+ this.panel56.PerformLayout();
+ this.panel41.ResumeLayout(false);
+ this.panel41.PerformLayout();
+ this.panel55.ResumeLayout(false);
+ this.panel55.PerformLayout();
+ this.panel42.ResumeLayout(false);
+ this.panel42.PerformLayout();
+ this.panel54.ResumeLayout(false);
+ this.panel54.PerformLayout();
+ this.panel43.ResumeLayout(false);
+ this.panel43.PerformLayout();
+ this.panel53.ResumeLayout(false);
+ this.panel53.PerformLayout();
+ this.panel44.ResumeLayout(false);
+ this.panel44.PerformLayout();
+ this.panel52.ResumeLayout(false);
+ this.panel52.PerformLayout();
+ this.panel45.ResumeLayout(false);
+ this.panel45.PerformLayout();
+ this.panel51.ResumeLayout(false);
+ this.panel51.PerformLayout();
+ this.panel46.ResumeLayout(false);
+ this.panel46.PerformLayout();
+ this.panel50.ResumeLayout(false);
+ this.panel50.PerformLayout();
+ this.panel47.ResumeLayout(false);
+ this.panel47.PerformLayout();
+ this.panel49.ResumeLayout(false);
+ this.panel49.PerformLayout();
+ this.panel48.ResumeLayout(false);
+ this.panel48.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
+ this.kryptonPanel2.ResumeLayout(false);
+ this.panel32.ResumeLayout(false);
+ this.panel32.PerformLayout();
+ this.panel30.ResumeLayout(false);
+ this.panel30.PerformLayout();
+ this.panel31.ResumeLayout(false);
+ this.panel31.PerformLayout();
+ this.panel26.ResumeLayout(false);
+ this.panel26.PerformLayout();
+ this.panel29.ResumeLayout(false);
+ this.panel29.PerformLayout();
+ this.panel25.ResumeLayout(false);
+ this.panel25.PerformLayout();
+ this.panel28.ResumeLayout(false);
+ this.panel28.PerformLayout();
+ this.panel27.ResumeLayout(false);
+ this.panel27.PerformLayout();
+ this.panel24.ResumeLayout(false);
+ this.panel24.PerformLayout();
+ this.panel23.ResumeLayout(false);
+ this.panel23.PerformLayout();
+ this.panel22.ResumeLayout(false);
+ this.panel22.PerformLayout();
+ this.panel21.ResumeLayout(false);
+ this.panel21.PerformLayout();
+ this.panel20.ResumeLayout(false);
+ this.panel20.PerformLayout();
+ this.panel19.ResumeLayout(false);
+ this.panel19.PerformLayout();
+ this.panel18.ResumeLayout(false);
+ this.panel18.PerformLayout();
+ this.panel17.ResumeLayout(false);
+ this.panel17.PerformLayout();
+ this.panel16.ResumeLayout(false);
+ this.panel16.PerformLayout();
+ this.panel15.ResumeLayout(false);
+ this.panel15.PerformLayout();
+ this.panel14.ResumeLayout(false);
+ this.panel14.PerformLayout();
+ this.panel13.ResumeLayout(false);
+ this.panel13.PerformLayout();
+ this.panel12.ResumeLayout(false);
+ this.panel12.PerformLayout();
+ this.panel11.ResumeLayout(false);
+ this.panel11.PerformLayout();
+ this.panel10.ResumeLayout(false);
+ this.panel10.PerformLayout();
+ this.panel9.ResumeLayout(false);
+ this.panel9.PerformLayout();
+ this.panel8.ResumeLayout(false);
+ this.panel8.PerformLayout();
+ this.panel7.ResumeLayout(false);
+ this.panel7.PerformLayout();
+ this.panel6.ResumeLayout(false);
+ this.panel6.PerformLayout();
+ this.panel5.ResumeLayout(false);
+ this.panel5.PerformLayout();
+ this.panel4.ResumeLayout(false);
+ this.panel4.PerformLayout();
+ this.panel3.ResumeLayout(false);
+ this.panel3.PerformLayout();
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPage2)).EndInit();
+ this.kryptonPage2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel4)).EndInit();
+ this.kryptonPanel4.ResumeLayout(false);
+ this.kryptonPanel4.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_M35)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_M34)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_X03)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_M37)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_M26)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_M33)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_M32)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_X05)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_X22)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_X31)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picb_X30)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
+ private ComponentFactory.Krypton.Navigator.KryptonNavigator kryptonNavigator1;
+ private ComponentFactory.Krypton.Navigator.KryptonPage kryptonPage1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel3;
+ private System.Windows.Forms.Panel panel64;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y37;
+ private CircleButton cbt_Y37;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel126;
+ private System.Windows.Forms.Panel panel36;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y21;
+ private CircleButton cbt_Y21;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel70;
+ private System.Windows.Forms.Panel panel63;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y36;
+ private CircleButton cbt_Y36;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel124;
+ private System.Windows.Forms.Panel panel33;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y00;
+ private CircleButton cbt_Y00;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel64;
+ private System.Windows.Forms.Panel panel62;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y17;
+ private CircleButton cbt_Y17;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel122;
+ private System.Windows.Forms.Panel panel34;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y20;
+ private CircleButton cbt_Y20;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel66;
+ private System.Windows.Forms.Panel panel61;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y34;
+ private CircleButton cbt_Y34;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel120;
+ private System.Windows.Forms.Panel panel35;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y01;
+ private CircleButton cbt_Y01;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel68;
+ private System.Windows.Forms.Panel panel60;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y16;
+ private CircleButton cbt_Y16;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel118;
+ private System.Windows.Forms.Panel panel37;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y02;
+ private CircleButton cbt_Y02;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel72;
+ private System.Windows.Forms.Panel panel59;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y14;
+ private CircleButton cbt_Y14;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel116;
+ private System.Windows.Forms.Panel panel38;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y22;
+ private CircleButton cbt_Y22;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel74;
+ private System.Windows.Forms.Panel panel58;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y35;
+ private CircleButton cbt_Y35;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel114;
+ private System.Windows.Forms.Panel panel39;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y03;
+ private CircleButton cbt_Y03;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel76;
+ private System.Windows.Forms.Panel panel57;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y15;
+ private CircleButton cbt_Y15;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel112;
+ private System.Windows.Forms.Panel panel40;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y23;
+ private CircleButton cbt_Y23;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel78;
+ private System.Windows.Forms.Panel panel56;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y33;
+ private CircleButton cbt_Y33;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel110;
+ private System.Windows.Forms.Panel panel41;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y04;
+ private CircleButton cbt_Y04;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel80;
+ private System.Windows.Forms.Panel panel55;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y13;
+ private CircleButton cbt_Y13;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel108;
+ private System.Windows.Forms.Panel panel42;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y24;
+ private CircleButton cbt_Y24;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel82;
+ private System.Windows.Forms.Panel panel54;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y32;
+ private CircleButton cbt_Y32;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel106;
+ private System.Windows.Forms.Panel panel43;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y05;
+ private CircleButton cbt_Y05;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel84;
+ private System.Windows.Forms.Panel panel53;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y12;
+ private CircleButton cbt_Y12;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel104;
+ private System.Windows.Forms.Panel panel44;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y25;
+ private CircleButton cbt_Y25;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel86;
+ private System.Windows.Forms.Panel panel52;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y31;
+ private CircleButton cbt_Y31;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel102;
+ private System.Windows.Forms.Panel panel45;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y06;
+ private CircleButton cbt_Y06;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel88;
+ private System.Windows.Forms.Panel panel51;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y11;
+ private CircleButton cbt_Y11;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel100;
+ private System.Windows.Forms.Panel panel46;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y26;
+ private CircleButton cbt_Y26;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel90;
+ private System.Windows.Forms.Panel panel50;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y30;
+ private CircleButton cbt_Y30;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel98;
+ private System.Windows.Forms.Panel panel47;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y07;
+ private CircleButton cbt_Y07;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel92;
+ private System.Windows.Forms.Panel panel49;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y10;
+ private CircleButton cbt_Y10;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel96;
+ private System.Windows.Forms.Panel panel48;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y27;
+ private CircleButton cbt_Y27;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel94;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2;
+ private System.Windows.Forms.Panel panel32;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X37;
+ private CircleButton cbt_X37;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel62;
+ private System.Windows.Forms.Panel panel30;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X36;
+ private CircleButton cbt_X36;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel58;
+ private System.Windows.Forms.Panel panel31;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X17;
+ private CircleButton cbt_X17;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel60;
+ private System.Windows.Forms.Panel panel26;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X34;
+ private CircleButton cbt_X34;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel50;
+ private System.Windows.Forms.Panel panel29;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X16;
+ private CircleButton cbt_X16;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel56;
+ private System.Windows.Forms.Panel panel25;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X14;
+ private CircleButton cbt_X14;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel48;
+ private System.Windows.Forms.Panel panel28;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X35;
+ private CircleButton cbt_X35;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel54;
+ private System.Windows.Forms.Panel panel27;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X15;
+ private CircleButton cbt_X15;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel52;
+ private System.Windows.Forms.Panel panel24;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X33;
+ private CircleButton cbt_X33;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel46;
+ private System.Windows.Forms.Panel panel23;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X13;
+ private CircleButton cbt_X13;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel44;
+ private System.Windows.Forms.Panel panel22;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X32;
+ private CircleButton cbt_X32;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel42;
+ private System.Windows.Forms.Panel panel21;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X12;
+ private CircleButton cbt_X12;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel40;
+ private System.Windows.Forms.Panel panel20;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X31;
+ private CircleButton cbt_X31;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel38;
+ private System.Windows.Forms.Panel panel19;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X11;
+ private CircleButton cbt_X11;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel36;
+ private System.Windows.Forms.Panel panel18;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X30;
+ private CircleButton cbt_X30;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel34;
+ private System.Windows.Forms.Panel panel17;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X10;
+ private CircleButton cbt_X10;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel32;
+ private System.Windows.Forms.Panel panel16;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X27;
+ private CircleButton cbt_X27;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel30;
+ private System.Windows.Forms.Panel panel15;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X07;
+ private CircleButton cbt_X07;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel28;
+ private System.Windows.Forms.Panel panel14;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X26;
+ private CircleButton cbt_X26;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel26;
+ private System.Windows.Forms.Panel panel13;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X06;
+ private CircleButton cbt_X06;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel24;
+ private System.Windows.Forms.Panel panel12;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X25;
+ private CircleButton cbt_X25;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel22;
+ private System.Windows.Forms.Panel panel11;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X05;
+ private CircleButton cbt_X05;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel20;
+ private System.Windows.Forms.Panel panel10;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X24;
+ private CircleButton cbt_X24;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel18;
+ private System.Windows.Forms.Panel panel9;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X04;
+ private CircleButton cbt_X04;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel16;
+ private System.Windows.Forms.Panel panel8;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X23;
+ private CircleButton cbt_X23;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel14;
+ private System.Windows.Forms.Panel panel7;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X03;
+ private CircleButton cbt_X03;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel12;
+ private System.Windows.Forms.Panel panel6;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X22;
+ private CircleButton cbt_X22;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel10;
+ private System.Windows.Forms.Panel panel5;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X02;
+ private CircleButton cbt_X02;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel8;
+ private System.Windows.Forms.Panel panel4;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X21;
+ private CircleButton cbt_X21;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel6;
+ private System.Windows.Forms.Panel panel3;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X01;
+ private CircleButton cbt_X01;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
+ private System.Windows.Forms.Panel panel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X20;
+ private CircleButton cbt_X20;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
+ private System.Windows.Forms.Panel panel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X00;
+ private CircleButton cbt_X00;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
+ private ComponentFactory.Krypton.Navigator.KryptonPage kryptonPage2;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel4;
+ private System.Windows.Forms.PictureBox pictureBox3;
+ private System.Windows.Forms.PictureBox pictureBox2;
+ private System.Windows.Forms.PictureBox pictureBox1;
+ private System.Windows.Forms.PictureBox pictureBox5;
+ private System.Windows.Forms.PictureBox pictureBox4;
+ private System.Windows.Forms.PictureBox pictureBox6;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel13;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel11;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel9;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel7;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
+ private System.Windows.Forms.PictureBox picb_X30;
+ private System.Windows.Forms.PictureBox picb_X22;
+ private System.Windows.Forms.PictureBox picb_X31;
+ private System.Windows.Forms.PictureBox picb_X05;
+ private System.Windows.Forms.PictureBox picb_M32;
+ private System.Windows.Forms.PictureBox picb_M33;
+ private System.Windows.Forms.PictureBox picb_M37;
+ private System.Windows.Forms.PictureBox picb_M26;
+ private System.Windows.Forms.PictureBox picb_M35;
+ private System.Windows.Forms.PictureBox picb_M34;
+ private System.Windows.Forms.PictureBox picb_X03;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel21;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel19;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel17;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel15;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel35;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel33;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel31;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel29;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel27;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel25;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel23;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmIoMonitorNew.cs b/CleanMachineHMI/frmIoMonitorNew.cs
new file mode 100644
index 0000000..ca06cd5
--- /dev/null
+++ b/CleanMachineHMI/frmIoMonitorNew.cs
@@ -0,0 +1,246 @@
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+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
+{
+ public partial class frmIoMonitorNew : KryptonForm
+ {
+ public frmIoMonitorNew()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "Label");
+ }
+ private object lockObj = new object();
+ ///
+ /// 页面信息语言文本列表
+ ///
+ private DataTable _InfoLanguageTextList;
+ public const int WM_SYSCOMMAND = 0x112;
+ public const int SC_MOVE = 0xF012;
+ protected override void WndProc(ref Message m)
+ {
+ if (m.Msg == WM_SYSCOMMAND)
+ {
+ if ((int)m.WParam == SC_MOVE)
+ return;
+ }
+ base.WndProc(ref m);
+ }
+ private void kryptonButton1_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Task.Run(async delegate {
+ GlobalHelper.eventLock = true;
+ await Task.Delay(100);
+ Invoke(new Action(() =>
+ {
+ GlobalHelper.OnShowX_Y_Status -= Show_X_Y_Status;
+ GlobalHelper.OnShowSensorStatus -= ShowSensorStatus;
+ GlobalHelper.IoMonitor_2.SuspendLayout();
+ GlobalHelper.IoMonitor_2.Hide();
+ GlobalHelper.eventLock = false;
+ }));
+ });
+ }
+ catch
+ {
+
+ }
+ }
+ private void frmIoMonitorNew_2_Load(object sender, EventArgs e)
+ {
+ initControl();
+ GlobalHelper.OnShowX_Y_Status += Show_X_Y_Status;
+ GlobalHelper.OnShowSensorStatus += ShowSensorStatus;
+ }
+ private void ShowSensorStatus(object sender, EventArgs e)
+ {
+ lock (lockObj)
+ {
+ BasPlcItemMd item = sender as BasPlcItemMd;
+ Invoke(new Action(() =>
+ {
+ if (item.PlcItemDataType == 2)
+ {
+ Control[] crnLst = this.Controls.Find("picb_X" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true);
+ if (crnLst.Length > 0)
+ {
+ PictureBox ctn = crnLst[0] as PictureBox;
+ if (string.IsNullOrEmpty(item.PlcItemValue))
+ {
+ ctn.BackColor = Color.White;
+ }
+ else if (bool.Parse(item.PlcItemValue.ToString()))
+ {
+ ctn.BackColor = Color.Lime;
+ }
+ else
+ {
+ ctn.BackColor = Color.White;
+ }
+ }
+ }
+ else
+ {
+ Control[] crnLst = this.Controls.Find("picb_M" + Convert.ToInt32(item.PlcItemPriAddress), true);
+ if (crnLst.Length > 0)
+ {
+ PictureBox ctn = crnLst[0] as PictureBox;
+ if (string.IsNullOrEmpty(item.PlcItemValue))
+ {
+ ctn.BackColor = Color.White;
+ }
+ else if (bool.Parse(item.PlcItemValue.ToString()))
+ {
+ ctn.BackColor = Color.Lime;
+ }
+ else
+ {
+ ctn.BackColor = Color.White;
+ }
+ }
+ }
+ }));
+ }
+ }
+ private void Show_X_Y_Status(object sender, EventArgs e)
+ {
+ lock (lockObj)
+ {
+ BasPlcItemMd item = sender as BasPlcItemMd;
+ Invoke(new Action(() =>
+ {
+ if (item.PlcItemDataType == 2)
+ {
+
+ Control[] crnLst = this.Controls.Find("cbt_X" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true);
+ if (crnLst.Length > 0)
+ {
+ CircleButton ctn = crnLst[0] as CircleButton;
+ if (string.IsNullOrEmpty(item.PlcItemValue))
+ {
+ ctn.BackColor = Color.FromArgb(191, 219, 255);
+ }
+ else if (bool.Parse(item.PlcItemValue.ToString()))
+ {
+ ctn.BackColor = Color.Lime;
+ }
+ else
+ {
+ ctn.BackColor = Color.Red;
+ }
+ }
+ }
+ else
+ {
+ Control[] crnLst = this.Controls.Find("cbt_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true);
+ if (crnLst.Length > 0)
+ {
+ CircleButton ctn = crnLst[0] as CircleButton;
+ if (string.IsNullOrEmpty(item.PlcItemValue))
+ {
+ ctn.BackColor = Color.FromArgb(191, 219, 255);
+ }
+ else if (bool.Parse(item.PlcItemValue.ToString()))
+ {
+ ctn.BackColor = Color.Lime;
+ }
+ else
+ {
+ ctn.BackColor = Color.Red;
+ }
+ }
+ }
+ }));
+ }
+ }
+ private void initControl()
+ {
+ try
+ {
+ if (GlobalHelper.PlcItemMd_X_List != null && GlobalHelper.PlcItemMd_X_List.Count > 0)
+ {
+ List tempLst = GlobalHelper.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
+ foreach (BasPlcItemMd item in tempLst)
+ {
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("klb_X" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)
+ {
+ KryptonLabel label1 = this.Controls.Find("klb_X" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true)[0] as KryptonLabel;
+
+ label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
+ }
+ }));
+ }
+ }
+
+ if (GlobalHelper.PlcItemMd_Y_List != null && GlobalHelper.PlcItemMd_Y_List.Count > 0)
+ {
+ List tempLst = GlobalHelper.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
+ foreach (BasPlcItemMd item in tempLst)
+ {
+ Invoke(new Action(() =>
+ {
+ if (this.Controls.Find("klb_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)
+ {
+ KryptonLabel label1 = this.Controls.Find("klb_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true)[0] as KryptonLabel;
+
+ label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
+ }
+ }));
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ private void picb_X30_MouseHover(object sender, EventArgs e)
+ {
+ try
+ {
+ ToolTip ttp = new ToolTip();
+ ttp.InitialDelay = 200;
+ ttp.AutoPopDelay = 3000;
+ ttp.ReshowDelay = 200;
+ ttp.ShowAlways = true;
+ ttp.IsBalloon = true;
+ PictureBox pic = sender as PictureBox;
+ string plcItemNameAddress = pic.Name.Replace("picb_", "");
+ if (plcItemNameAddress.StartsWith("M"))
+ {
+ BasPlcItemMd tmpPlc = GlobalHelper.PlcItemMd_M_List.First(x => x.PlcItemPriAddress == plcItemNameAddress.Replace("M", ""));
+ if (tmpPlc != null)
+ {
+ ttp.SetToolTip(pic, tmpPlc.PlcItemName);
+ }
+ }
+ else
+ {
+ BasPlcItemMd tmpPlc = GlobalHelper.PlcItemMd_X_List.First(x => x.PlcItemPriAddress == Convert.ToInt32(plcItemNameAddress.Replace("X", ""), 10).ToString());
+ if (tmpPlc != null)
+ {
+ ttp.SetToolTip(pic, tmpPlc.PlcItemName);
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmIoMonitorNew.resx b/CleanMachineHMI/frmIoMonitorNew.resx
new file mode 100644
index 0000000..9701e74
--- /dev/null
+++ b/CleanMachineHMI/frmIoMonitorNew.resx
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmLogin.Designer.cs b/CleanMachineHMI/frmLogin.Designer.cs
new file mode 100644
index 0000000..be0d59a
--- /dev/null
+++ b/CleanMachineHMI/frmLogin.Designer.cs
@@ -0,0 +1,192 @@
+namespace CleanMachineHMI
+{
+ partial class frmLogin
+ {
+ ///
+ /// 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.panMain = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ this.lbTitle = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.lbVer = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.btnExit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.btnLogin = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.txtPs = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.txtAccount = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
+ this.lbPs = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ this.lbAccount = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
+ ((System.ComponentModel.ISupportInitialize)(this.panMain)).BeginInit();
+ this.panMain.SuspendLayout();
+ this.panel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panMain
+ //
+ this.panMain.Controls.Add(this.lbTitle);
+ this.panMain.Controls.Add(this.panel1);
+ this.panMain.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panMain.Location = new System.Drawing.Point(0, 0);
+ this.panMain.Name = "panMain";
+ this.panMain.Size = new System.Drawing.Size(1008, 729);
+ this.panMain.TabIndex = 1;
+ //
+ // lbTitle
+ //
+ this.lbTitle.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.lbTitle.AutoSize = false;
+ this.lbTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
+ this.lbTitle.Location = new System.Drawing.Point(246, 126);
+ this.lbTitle.Name = "lbTitle";
+ this.lbTitle.Size = new System.Drawing.Size(517, 60);
+ this.lbTitle.StateCommon.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbTitle.Text = "清洁控制系统";
+ this.lbTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // panel1
+ //
+ this.panel1.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.panel1.BackColor = System.Drawing.Color.Navy;
+ this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+ this.panel1.Controls.Add(this.lbVer);
+ this.panel1.Controls.Add(this.btnExit);
+ this.panel1.Controls.Add(this.btnLogin);
+ this.panel1.Controls.Add(this.txtPs);
+ this.panel1.Controls.Add(this.txtAccount);
+ this.panel1.Controls.Add(this.lbPs);
+ this.panel1.Controls.Add(this.lbAccount);
+ this.panel1.Location = new System.Drawing.Point(246, 218);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(517, 299);
+ this.panel1.TabIndex = 0;
+ //
+ // lbVer
+ //
+ this.lbVer.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.lbVer.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbVer.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
+ this.lbVer.Location = new System.Drawing.Point(6, 8);
+ this.lbVer.Name = "lbVer";
+ this.lbVer.Size = new System.Drawing.Size(72, 22);
+ this.lbVer.StateCommon.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbVer.StateCommon.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
+ this.lbVer.Text = "Ver: 1.0";
+ //
+ // btnExit
+ //
+ this.btnExit.Location = new System.Drawing.Point(193, 252);
+ this.btnExit.Name = "btnExit";
+ this.btnExit.Size = new System.Drawing.Size(121, 33);
+ this.btnExit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnExit.TabIndex = 6;
+ this.btnExit.Values.Text = "退出系统";
+ this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
+ //
+ // btnLogin
+ //
+ this.btnLogin.Location = new System.Drawing.Point(193, 205);
+ this.btnLogin.Name = "btnLogin";
+ this.btnLogin.Size = new System.Drawing.Size(121, 33);
+ this.btnLogin.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnLogin.TabIndex = 5;
+ this.btnLogin.Values.Text = "登陆";
+ this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);
+ //
+ // txtPs
+ //
+ this.txtPs.Location = new System.Drawing.Point(63, 140);
+ this.txtPs.Name = "txtPs";
+ this.txtPs.PasswordChar = '*';
+ this.txtPs.Size = new System.Drawing.Size(380, 29);
+ this.txtPs.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtPs.TabIndex = 4;
+ this.txtPs.TabStop = false;
+ //
+ // txtAccount
+ //
+ this.txtAccount.Location = new System.Drawing.Point(63, 69);
+ this.txtAccount.Name = "txtAccount";
+ this.txtAccount.Size = new System.Drawing.Size(380, 29);
+ this.txtAccount.StateCommon.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.txtAccount.TabIndex = 3;
+ this.txtAccount.TabStop = false;
+ //
+ // lbPs
+ //
+ this.lbPs.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbPs.ForeColor = System.Drawing.Color.White;
+ this.lbPs.Location = new System.Drawing.Point(63, 115);
+ this.lbPs.Name = "lbPs";
+ this.lbPs.Size = new System.Drawing.Size(79, 22);
+ this.lbPs.StateCommon.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbPs.StateCommon.TextColor = System.Drawing.Color.White;
+ this.lbPs.Text = "登陆密码:";
+ //
+ // lbAccount
+ //
+ this.lbAccount.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbAccount.ForeColor = System.Drawing.Color.White;
+ this.lbAccount.Location = new System.Drawing.Point(63, 44);
+ this.lbAccount.Name = "lbAccount";
+ this.lbAccount.Size = new System.Drawing.Size(79, 22);
+ this.lbAccount.StateCommon.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbAccount.StateCommon.TextColor = System.Drawing.Color.White;
+ this.lbAccount.Text = "登陆用户:";
+ //
+ // frmLogin
+ //
+ this.AcceptButton = this.btnLogin;
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panMain);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+ this.Name = "frmLogin";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+ this.Text = "frmLogin";
+ this.Load += new System.EventHandler(this.frmLogin_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.panMain)).EndInit();
+ this.panMain.ResumeLayout(false);
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel panMain;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel lbPs;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel lbAccount;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtPs;
+ private ComponentFactory.Krypton.Toolkit.KryptonTextBox txtAccount;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnLogin;
+ private ComponentFactory.Krypton.Toolkit.KryptonButton btnExit;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel lbTitle;
+ private ComponentFactory.Krypton.Toolkit.KryptonWrapLabel lbVer;
+ private System.Windows.Forms.Panel panel1;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmLogin.cs b/CleanMachineHMI/frmLogin.cs
new file mode 100644
index 0000000..e2f2dfa
--- /dev/null
+++ b/CleanMachineHMI/frmLogin.cs
@@ -0,0 +1,143 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+using NX_LogUtility;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Diagnostics;
+using System.Drawing;
+using System.Linq;
+using System.Security.Cryptography;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI
+{
+ [FormType(EnumFormType.Login)]
+ public partial class frmLogin : KryptonForm
+ {
+ ///
+ /// 页面信息语言文本列表
+ ///
+ private readonly DataTable _InfoLanguageTextList;
+
+ public frmLogin()
+ {
+ InitializeComponent();
+
+ _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ }
+
+ private void Init()
+ {
+ //txtAccount.Text = "";
+ txtPs.Text = "";
+ }
+
+ private void btnExit_Click(object sender, EventArgs e)
+ {
+ Application.Exit();
+ }
+
+ private void btnLogin_Click(object sender, EventArgs e)
+ {
+ if (string.IsNullOrWhiteSpace(txtAccount.Text))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入登陆账号!", "PleaseInputAccount"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ return;
+ }
+ if (string.IsNullOrWhiteSpace(txtPs.Text))
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入登陆密码!", "PleaseInputPassword"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ return;
+ }
+
+ var sql = $@"SELECT A.USER_ID,A.USER_CODE,A.USER_NAME,A.SCHEDULE_CODE,A.USED_FLAG,A.DEL_FLAG,A.PASSWORD,B.ROLE_ID,B.ROLE_GRADE FROM SYS_USER A LEFT JOIN SYS_ROLE B ON A.ROLE_ID = B.ROLE_ID WHERE A.USER_CODE= '{txtAccount.Text}'";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt.Rows.Count > 0)
+ {
+ var data = dt.Rows[0];
+ if (data["USED_FLAG"].ToString() == "0")
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("用户已被停用!", "UserStop"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ return;
+ }
+ if (data["DEL_FLAG"].ToString() == "1")
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("用户已被删除!", "UserDeleted"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ return;
+ }
+ if (data["PASSWORD"].ToString().ToLower() != txtPs.Text.ToLower())
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("输入密码错误!", "PasswordFail"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ return;
+ }
+ AppConfigHelper.Update("LastTimeUserCode",txtAccount.Text.Trim());
+ //登陆成功
+ Init();
+
+ //获取基础配置
+ sql = "select * from SYS_PARAMETER where used_flag=1 and del_flag=0";
+ DataTable dtTemp = LeadDbHelperSQLite.Query(sql).Tables[0];
+ GlobalHelper.ParameterList = dtTemp;
+
+ GlobalHelper.UserInfo = new Domain.Models.ViewModels.UserInfo
+ {
+ GENDER = Convert.ToInt32(data["USED_FLAG"].ToString()),
+ SCHEDULE_CODE = data["SCHEDULE_CODE"] == null ? "" : data["SCHEDULE_CODE"].ToString(),
+ USER_CODE = data["USER_CODE"].ToString(),
+ USER_ID = Convert.ToInt32(data["USER_ID"].ToString()),
+ USER_NAME = data["USER_NAME"].ToString(),
+ ROLE_ID = Convert.ToInt32(data["ROLE_ID"].ToString()),
+ ROLE_GRADE = Convert.ToInt32(data["ROLE_GRADE"].ToString()),
+ };
+ this.Hide();
+
+ LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】登录系统成功!",LogTypeEum.Run);
+ sql = $@"SELECT A.ROLE_ID,A.ROLE_CODE,A.ROLE_NAME,B.MENU_ID,C.MENU_CODE,C.MENU_NAME,C.MENU_URL,C.MENU_PID FROM SYS_ROLE A LEFT JOIN SYS_ROLE_MENU_PERMISSION B on A.ROLE_ID = B.ROLE_ID LEFT JOIN SYS_MENU C on B.MENU_ID = C.MENU_ID WHERE A.ROLE_ID = '{GlobalHelper.UserInfo.ROLE_ID}'";
+
+ GlobalHelper.RoleMenuPermission = LeadDbHelperSQLite.Query(sql).Tables[0];
+ GlobalHelper.MainFormNew = new frmMainNew();
+ GlobalHelper.MainFormNew.Show();
+ }
+ else
+ {
+ KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入正确的登陆账号!", "PleaseCorrectAccount"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ return;
+ }
+
+ }
+
+ private void frmLogin_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ txtAccount.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtAccount.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtPs.GotFocus += new EventHandler(txt_GotFocus); //获取焦点前发生事件
+ txtPs.LostFocus += new EventHandler(txt_LostFocus); //失去焦点后发生事件
+
+ txtAccount.Text = AppConfigHelper.Get("LastTimeUserCode");
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+
+ }
+ private void txt_GotFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.ShowInputPanel();
+ }
+ private void txt_LostFocus(object sender, EventArgs e)
+ {
+ KeyboardAutoPopUp.HideInputPanel();
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmLogin.resx b/CleanMachineHMI/frmLogin.resx
new file mode 100644
index 0000000..f4952c1
--- /dev/null
+++ b/CleanMachineHMI/frmLogin.resx
@@ -0,0 +1,153 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmMainNew.Designer.cs b/CleanMachineHMI/frmMainNew.Designer.cs
new file mode 100644
index 0000000..53bdb27
--- /dev/null
+++ b/CleanMachineHMI/frmMainNew.Designer.cs
@@ -0,0 +1,306 @@
+namespace CleanMachineHMI
+{
+ partial class frmMainNew
+ {
+ ///
+ /// 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();
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMainNew));
+ this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.ptb_Alarm = new System.Windows.Forms.PictureBox();
+ this.btnExit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.lbSysAlreadyRunning = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.label3Professional = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbSysTime = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.lbNow = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonNavigator1 = new ComponentFactory.Krypton.Navigator.KryptonNavigator();
+ this.MainDetail = new ComponentFactory.Krypton.Navigator.KryptonPage();
+ this.kryptonManager = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components);
+ this.timer = new System.Windows.Forms.Timer(this.components);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
+ this.kryptonGroupBox1.Panel.SuspendLayout();
+ this.kryptonGroupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.ptb_Alarm)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator1)).BeginInit();
+ this.kryptonNavigator1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.MainDetail)).BeginInit();
+ this.SuspendLayout();
+ //
+ // kryptonGroupBox1
+ //
+ this.kryptonGroupBox1.CaptionOverlap = 0D;
+ this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonGroupBox1.Name = "kryptonGroupBox1";
+ //
+ // kryptonGroupBox1.Panel
+ //
+ this.kryptonGroupBox1.Panel.Controls.Add(this.label2);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.label1);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.pictureBox1);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.ptb_Alarm);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.btnExit);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.lbSysAlreadyRunning);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.label3Professional);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.lbSysTime);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel1);
+ this.kryptonGroupBox1.Panel.Controls.Add(this.lbNow);
+ this.kryptonGroupBox1.Size = new System.Drawing.Size(1008, 79);
+ this.kryptonGroupBox1.TabIndex = 2;
+ this.kryptonGroupBox1.Values.Heading = "";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.Transparent;
+ this.label2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label2.ForeColor = System.Drawing.Color.Red;
+ this.label2.Location = new System.Drawing.Point(268, 51);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(255, 16);
+ this.label2.TabIndex = 15;
+ this.label2.Text = "托盘即将满料,剩余数量为6!!";
+ this.label2.Visible = false;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.BackColor = System.Drawing.Color.Transparent;
+ this.label1.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label1.ForeColor = System.Drawing.Color.Red;
+ this.label1.Location = new System.Drawing.Point(268, 7);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(164, 21);
+ this.label1.TabIndex = 15;
+ this.label1.Text = "废品率异常!!";
+ this.label1.Visible = false;
+ //
+ // pictureBox1
+ //
+ this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
+ this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
+ this.pictureBox1.Location = new System.Drawing.Point(197, 4);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(65, 65);
+ this.pictureBox1.TabIndex = 14;
+ this.pictureBox1.TabStop = false;
+ this.pictureBox1.Visible = false;
+ //
+ // ptb_Alarm
+ //
+ this.ptb_Alarm.BackColor = System.Drawing.Color.Transparent;
+ this.ptb_Alarm.Image = ((System.Drawing.Image)(resources.GetObject("ptb_Alarm.Image")));
+ this.ptb_Alarm.Location = new System.Drawing.Point(126, 4);
+ this.ptb_Alarm.Name = "ptb_Alarm";
+ this.ptb_Alarm.Size = new System.Drawing.Size(65, 65);
+ this.ptb_Alarm.TabIndex = 14;
+ this.ptb_Alarm.TabStop = false;
+ this.ptb_Alarm.Visible = false;
+ this.ptb_Alarm.Click += new System.EventHandler(this.ptb_Alarm_Click);
+ //
+ // btnExit
+ //
+ this.btnExit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnExit.Location = new System.Drawing.Point(10, 15);
+ this.btnExit.Name = "btnExit";
+ this.btnExit.Size = new System.Drawing.Size(107, 45);
+ this.btnExit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnExit.TabIndex = 13;
+ this.btnExit.Values.Text = "返回";
+ this.btnExit.Visible = false;
+ this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
+ //
+ // lbSysAlreadyRunning
+ //
+ this.lbSysAlreadyRunning.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.lbSysAlreadyRunning.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbSysAlreadyRunning.Location = new System.Drawing.Point(692, 50);
+ this.lbSysAlreadyRunning.Name = "lbSysAlreadyRunning";
+ this.lbSysAlreadyRunning.Size = new System.Drawing.Size(112, 20);
+ this.lbSysAlreadyRunning.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbSysAlreadyRunning.TabIndex = 8;
+ this.lbSysAlreadyRunning.Values.Text = "系统运行时间:";
+ //
+ // label3Professional
+ //
+ this.label3Professional.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label3Professional.Location = new System.Drawing.Point(885, 23);
+ this.label3Professional.Name = "label3Professional";
+ this.label3Professional.Size = new System.Drawing.Size(112, 22);
+ this.label3Professional.StateCommon.ShortText.Font = new System.Drawing.Font("Verdana", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label3Professional.TabIndex = 7;
+ this.label3Professional.Values.Image = global::CleanMachineHMI.Properties.Resources.conn;
+ this.label3Professional.Values.Text = "通讯已连接";
+ //
+ // lbSysTime
+ //
+ this.lbSysTime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.lbSysTime.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
+ this.lbSysTime.Location = new System.Drawing.Point(721, 4);
+ this.lbSysTime.Name = "lbSysTime";
+ this.lbSysTime.Size = new System.Drawing.Size(83, 20);
+ this.lbSysTime.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbSysTime.TabIndex = 4;
+ this.lbSysTime.Values.Text = "系统时间:";
+ //
+ // kryptonLabel1
+ //
+ this.kryptonLabel1.Location = new System.Drawing.Point(804, 47);
+ this.kryptonLabel1.Name = "kryptonLabel1";
+ this.kryptonLabel1.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
+ this.kryptonLabel1.Size = new System.Drawing.Size(82, 23);
+ this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel1.StateNormal.Image.ImageH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Far;
+ this.kryptonLabel1.StateNormal.LongText.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
+ this.kryptonLabel1.StateNormal.LongText.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.kryptonLabel1.StateNormal.LongText.ColorAngle = 45F;
+ this.kryptonLabel1.StateNormal.LongText.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.Sigma;
+ this.kryptonLabel1.StateNormal.LongText.Font = new System.Drawing.Font("Verdana", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.kryptonLabel1.StateNormal.LongText.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center;
+ this.kryptonLabel1.StateNormal.ShortText.Color1 = System.Drawing.Color.Blue;
+ this.kryptonLabel1.StateNormal.ShortText.Color2 = System.Drawing.Color.MidnightBlue;
+ this.kryptonLabel1.StateNormal.ShortText.ColorAngle = 45F;
+ this.kryptonLabel1.StateNormal.ShortText.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.Sigma;
+ this.kryptonLabel1.StateNormal.ShortText.Font = new System.Drawing.Font("Verdana", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.kryptonLabel1.TabIndex = 3;
+ this.kryptonLabel1.Values.Text = "0 Minutes";
+ //
+ // lbNow
+ //
+ this.lbNow.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.lbNow.Location = new System.Drawing.Point(804, 1);
+ this.lbNow.Name = "lbNow";
+ this.lbNow.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
+ this.lbNow.Size = new System.Drawing.Size(171, 23);
+ this.lbNow.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lbNow.StateNormal.Image.ImageH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Far;
+ this.lbNow.StateNormal.LongText.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
+ this.lbNow.StateNormal.LongText.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.lbNow.StateNormal.LongText.ColorAngle = 45F;
+ this.lbNow.StateNormal.LongText.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.Sigma;
+ this.lbNow.StateNormal.LongText.Font = new System.Drawing.Font("Verdana", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lbNow.StateNormal.LongText.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center;
+ this.lbNow.StateNormal.ShortText.Color1 = System.Drawing.Color.Blue;
+ this.lbNow.StateNormal.ShortText.Color2 = System.Drawing.Color.MidnightBlue;
+ this.lbNow.StateNormal.ShortText.ColorAngle = 45F;
+ this.lbNow.StateNormal.ShortText.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.Sigma;
+ this.lbNow.StateNormal.ShortText.Font = new System.Drawing.Font("Verdana", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lbNow.StateNormal.ShortText.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Near;
+ this.lbNow.TabIndex = 3;
+ this.lbNow.Values.Text = "2020-02-02 22:00:00\r\n";
+ //
+ // kryptonNavigator1
+ //
+ this.kryptonNavigator1.Button.ButtonDisplayLogic = ComponentFactory.Krypton.Navigator.ButtonDisplayLogic.ContextNextPrevious;
+ this.kryptonNavigator1.Button.CloseButtonDisplay = ComponentFactory.Krypton.Navigator.ButtonDisplay.Hide;
+ this.kryptonNavigator1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonNavigator1.Location = new System.Drawing.Point(0, 79);
+ this.kryptonNavigator1.Name = "kryptonNavigator1";
+ this.kryptonNavigator1.Pages.AddRange(new ComponentFactory.Krypton.Navigator.KryptonPage[] {
+ this.MainDetail});
+ this.kryptonNavigator1.SelectedIndex = 0;
+ this.kryptonNavigator1.Size = new System.Drawing.Size(1008, 650);
+ this.kryptonNavigator1.TabIndex = 3;
+ this.kryptonNavigator1.Selected += new System.EventHandler(this.kryptonNavigator1_Selected);
+ //
+ // MainDetail
+ //
+ this.MainDetail.AutoHiddenSlideSize = new System.Drawing.Size(200, 200);
+ this.MainDetail.Flags = 65534;
+ this.MainDetail.LastVisibleSet = true;
+ this.MainDetail.MinimumSize = new System.Drawing.Size(50, 50);
+ this.MainDetail.Name = "MainDetail";
+ this.MainDetail.Size = new System.Drawing.Size(1006, 623);
+ this.MainDetail.Text = "MainDetail";
+ this.MainDetail.ToolTipTitle = "Page ToolTip";
+ this.MainDetail.UniqueName = "0E1DA5225D8D4CFC70A2EFA8667116CC";
+ //
+ // kryptonManager
+ //
+ this.kryptonManager.GlobalPaletteMode = ComponentFactory.Krypton.Toolkit.PaletteModeManager.Office2007Blue;
+ //
+ // timer
+ //
+ this.timer.Interval = 1000;
+ this.timer.Tick += new System.EventHandler(this.timer_Tick);
+ //
+ // frmMainNew
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.kryptonNavigator1);
+ this.Controls.Add(this.kryptonGroupBox1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "frmMainNew";
+ this.ShowIcon = false;
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+ this.Text = "Clean Machine Upper System -- V1.01";
+ this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmMainNew_FormClosing);
+ this.Load += new System.EventHandler(this.frmMainNew_Load);
+ this.Shown += new System.EventHandler(this.frmMainNew_Shown);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit();
+ this.kryptonGroupBox1.Panel.ResumeLayout(false);
+ this.kryptonGroupBox1.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit();
+ this.kryptonGroupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.ptb_Alarm)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator1)).EndInit();
+ this.kryptonNavigator1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.MainDetail)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ public ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.PictureBox pictureBox1;
+ private System.Windows.Forms.PictureBox ptb_Alarm;
+ public ComponentFactory.Krypton.Toolkit.KryptonButton btnExit;
+ public ComponentFactory.Krypton.Toolkit.KryptonLabel lbSysAlreadyRunning;
+ public ComponentFactory.Krypton.Toolkit.KryptonLabel label3Professional;
+ public ComponentFactory.Krypton.Toolkit.KryptonLabel lbSysTime;
+ public ComponentFactory.Krypton.Toolkit.KryptonLabel lbNow;
+ public ComponentFactory.Krypton.Toolkit.KryptonManager kryptonManager;
+ public System.Windows.Forms.Timer timer;
+ private ComponentFactory.Krypton.Navigator.KryptonNavigator kryptonNavigator1;
+ private ComponentFactory.Krypton.Navigator.KryptonPage MainDetail;
+ public ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmMainNew.cs b/CleanMachineHMI/frmMainNew.cs
new file mode 100644
index 0000000..104cb4c
--- /dev/null
+++ b/CleanMachineHMI/frmMainNew.cs
@@ -0,0 +1,822 @@
+using CleanMachineHMI.Domain.Enums;
+using CleanMachineHMI.frmChild;
+using CleanMachineHMI.FrmUserControl;
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Navigator;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+using NX_LogUtility;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace CleanMachineHMI
+{
+ [FormType(EnumFormType.Main)]
+ public partial class frmMainNew : KryptonForm
+ {
+ public frmMainNew()
+ {
+ InitializeComponent();
+ _InfoLanguageTextList = this.GetInfoLanguageText_1(GlobalHelper.LanguageCode, "Info%");
+ }
+
+ #region 全局变量
+ private bool isPlcConnStatus = false;
+ ///
+ /// 页面信息语言文本列表
+ ///
+ private readonly DataTable _InfoLanguageTextList;
+ public delegate void dlgRefreshFrmHost(string Msg);
+ public static dlgRefreshFrmHost RefreshFrmHost;
+ private bool sysAlarmFrmShowFlag = false;
+ public delegate void dlgShowMessage();
+ public static dlgShowMessage MothedShowMessage;
+ private int timerRunNUm = 1;
+ public delegate void dlgShow_ptb_Alarm(bool isShowFlag);
+ public static dlgShow_ptb_Alarm Show_ptb_Alarm;
+ public delegate void dlgShow_Plc_Alarm(string msg);
+ public static dlgShow_Plc_Alarm Show_Plc_Alarm;
+ public delegate void dlgRemoveMaintainingFlag();
+ public static dlgShowMessage RemoveMaintainingFlag;
+ #endregion
+
+ #region 主页面菜单切换
+
+ public delegate void dlgSwitchFrmMenu(EnumFormType enumFormType, bool isDefaultPage);
+ public static dlgSwitchFrmMenu SwitchFrmMenu;
+ private void AddFrmMenuPage(EnumFormType enumFormType, bool isDefaultPage)
+ {
+ Invoke(new Action(() =>
+ {
+ //UserControl objFrm = GlobalHelper.FrmModelList.Where(s => s.FormType == enumFormType).FirstOrDefault().Form;
+ Type frmType = GlobalHelper.FrmModelList.Where(s => s.FormType == enumFormType).FirstOrDefault().Form;
+ if (isDefaultPage)
+ {
+ kryptonNavigator1.Pages[0].Controls.Clear();
+ kryptonNavigator1.Pages[0].Text = enumFormType.ToString();
+ kryptonNavigator1.Pages[0].Name = enumFormType.ToString();
+ kryptonNavigator1.SelectedPage = kryptonNavigator1.Pages[0];
+ if (frmType.BaseType.Name == "UserControl")
+ {
+ UserControl objFrm = (UserControl)Activator.CreateInstance(frmType);
+ objFrm.Dock = DockStyle.Fill;
+ objFrm.Parent = kryptonNavigator1.Pages[0];
+ objFrm.Show();
+ }
+ else
+ {
+ KryptonForm objFrm = (KryptonForm)Activator.CreateInstance(frmType);
+ objFrm.TopLevel = false;
+ objFrm.FormBorderStyle = FormBorderStyle.None;
+ objFrm.Dock = DockStyle.Fill;
+ objFrm.MinimizeBox = false;
+ objFrm.Parent = kryptonNavigator1.Pages[0];
+ objFrm.Show();
+ }
+ }
+ else
+ {
+ KryptonPage tmpPage = kryptonNavigator1.Pages.FirstOrDefault(x => x.Name == enumFormType.ToString());
+ if (tmpPage != null)
+ {
+ kryptonNavigator1.SelectedPage = tmpPage;
+ }
+ else
+ {
+ KryptonPage tmpPage1 = new KryptonPage { Text = enumFormType.ToString(), Name = enumFormType.ToString() };
+ ButtonSpecAny bsa = new ButtonSpecAny();
+ bsa.Style = PaletteButtonStyle.FormClose;
+ bsa.Type = PaletteButtonSpecStyle.FormClose;
+ bsa.Tag = tmpPage1;
+ bsa.Click += btnClose_Click;
+ kryptonNavigator1.Pages.Add(tmpPage1);
+ //if (enumFormType.ToString() != "IoMonitor")
+ //{
+ kryptonNavigator1.SelectedPage = tmpPage1;
+ kryptonNavigator1.SelectedPage.ButtonSpecs.Add(bsa);
+ //}
+ if (frmType.BaseType.Name == "UserControl")
+ {
+ UserControl objFrm = (UserControl)Activator.CreateInstance(frmType);
+ objFrm.Dock = DockStyle.Fill;
+ objFrm.Parent = tmpPage1;
+ objFrm.Show();
+ }
+ else
+ {
+ KryptonForm objFrm = (KryptonForm)Activator.CreateInstance(frmType);
+ objFrm.TopLevel = false;
+ objFrm.FormBorderStyle = FormBorderStyle.None;
+ objFrm.Dock = DockStyle.Fill;
+ objFrm.MinimizeBox = false;
+ objFrm.Parent = tmpPage1;
+ objFrm.Show();
+ }
+ }
+ }
+ }));
+ }
+ private void btnClose_Click(object sender, EventArgs e)
+ {
+ ButtonSpecAny bsa = sender as ButtonSpecAny;
+ kryptonNavigator1.Pages.Remove(bsa.Tag);
+ kryptonNavigator1.SelectedPage = kryptonNavigator1.Pages[kryptonNavigator1.Pages.Count - 1];
+ if (Equals(((KryptonPage)bsa.Tag).Text, EnumFormType.Manual.ToString()))
+ {
+ //机器属于停止状态时才可进入自动模式
+ if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ManualOrAuto", PlcItemTypeDesc.M)))
+ {
+ PlcOperationHelper.Instance.WritePlcItem("ManualOrAuto", "False", PlcItemTypeDesc.M);
+ }
+ }
+ }
+ #endregion
+
+ private void frmMainNew_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ this.SetFormControlText(GlobalHelper.LanguageCode);
+ SwitchFrmMenu = new dlgSwitchFrmMenu(AddFrmMenuPage);
+ bool isInitStatus = PlcOperationHelper.Instance.PlcInit();
+ string sql1 = $@"
+ SELECT
+ *
+ FROM
+ BAS_PLC_ITEM
+ ";
+ DataTable dt1 = LeadDbHelperSQLite.Query(sql1).Tables[0];
+ if (dt1 != null && dt1.Rows.Count > 0)
+ {
+ GlobalHelper.PlcItemMd_M_List = new List();
+ GlobalHelper.PlcItemMd_D_List = new List();
+ GlobalHelper.PlcItemMd_X_List = new List();
+ GlobalHelper.PlcItemMd_Y_List = new List();
+
+ foreach (DataRow item in dt1.Rows)
+ {
+ if (item["PLC_ITEM_DATA_TYPE"].ToString() == "0")
+ {
+ SetPlcItem(GlobalHelper.PlcItemMd_M_List, item);
+ }
+ else if (item["PLC_ITEM_DATA_TYPE"].ToString() == "1")
+ {
+ SetPlcItem(GlobalHelper.PlcItemMd_D_List, item);
+ }
+ else if (item["PLC_ITEM_DATA_TYPE"].ToString() == "2")
+ {
+ SetPlcItem(GlobalHelper.PlcItemMd_X_List, item);
+ }
+ else if (item["PLC_ITEM_DATA_TYPE"].ToString() == "3")
+ {
+ SetPlcItem(GlobalHelper.PlcItemMd_Y_List, item);
+ }
+ }
+ GlobalHelper.PlcItemMdList = new List();
+ GlobalHelper.PlcItemMdList.AddRange(GlobalHelper.PlcItemMd_M_List);
+ GlobalHelper.PlcItemMdList.AddRange(GlobalHelper.PlcItemMd_D_List);
+ GlobalHelper.PlcItemMdList.AddRange(GlobalHelper.PlcItemMd_X_List);
+ GlobalHelper.PlcItemMdList.AddRange(GlobalHelper.PlcItemMd_Y_List);
+ }
+ InitWarningMsg();
+ if (isInitStatus)
+ {
+ label3Professional.Text = _InfoLanguageTextList.GetInfoText_1("串口打开成功,PLC连接成功!", "label3Professional", "Info_Success");
+ label3Professional.BackColor = Color.Lime;
+ isPlcConnStatus = true;
+
+ GlobalHelper.SysThIsRunFlag = true;
+
+ Thread th = new Thread(RefreshPlcItem_M)
+ {
+ IsBackground = true
+ };
+ th.Start();
+
+ Thread th1 = new Thread(RefreshPlcItem_D)
+ {
+ IsBackground = true
+ };
+ th1.Start();
+
+ Thread th2 = new Thread(RefreshPlcItem_X)
+ {
+ IsBackground = true
+ };
+ th2.Start();
+
+ Thread th3 = new Thread(RefreshPlcItem_Y)
+ {
+ IsBackground = true
+ };
+ th3.Start();
+
+ Thread th4 = new Thread(MainThRunFunc)
+ {
+ IsBackground = true
+ };
+ th4.Start();
+
+ LogHelper.WriteLog($"串口打开成功,PLC连接成功!", LogTypeEum.Run);
+ }
+ else
+ {
+ //label3Professional.Text = "串口打开失败,PLC连接失败!";
+ label3Professional.Text = _InfoLanguageTextList.GetInfoText_1("串口打开失败,PLC连接失败!", "label3Professional", "Info_Failed");
+ label3Professional.BackColor = Color.Red;
+ isPlcConnStatus = false;
+
+ LogHelper.WriteLog($"串口打开失败,PLC连接成功!", LogTypeEum.Run);
+ }
+
+ MothedShowMessage = new dlgShowMessage(Test);
+ RefreshFrmHost = new dlgRefreshFrmHost(ShowWorkingPalletFullNumAlarm);
+ //Show_ptb_Alarm = new dlgShow_ptb_Alarm(ShowPicAlarm);
+ GlobalHelper.OnShowMainFrmAlarmMsg += ShowPicAlarm;
+ Show_Plc_Alarm = new dlgShow_Plc_Alarm(ShowPlcAlarm);
+ RemoveMaintainingFlag = new dlgShowMessage(ClearMaintainingFlag);
+ timer.Enabled = true;
+ InitControl();
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+ private void ClearMaintainingFlag()
+ {
+ Invoke(new Action(() =>
+ {
+ pictureBox1.Visible = false;
+ }));
+ }
+
+ private void ShowWarningMsg()
+ {
+ BasPlcItemMd item = GlobalHelper.PlcItemMd_D_List.FirstOrDefault(x => x.PlcItemCode == "AlarmPopUpMsg");
+ char[] tmpCharArr = Convert.ToString(Convert.ToInt32(item.PlcItemValue), 2).PadLeft(16, '0').Reverse().ToArray();
+ if (tmpCharArr.Contains('1'))
+ {
+ List warnLst = new List();
+ for (int j = 0; j < tmpCharArr.Length; j++)
+ {
+ if (tmpCharArr[j] == '1')
+ {
+ string priWarnCode = "bit";
+ Bas_WarningMd tmpMd = GlobalHelper.BasWarningMd_List.Find(x => x.PlcItemCode == $"D12" && x.WarningCode == $"{priWarnCode + j}" && x.WarningType == "1");
+ if (tmpMd != null)
+ {
+ warnLst.Add(tmpMd);
+ }
+ }
+ }
+ Invoke(new Action(() =>
+ {
+ if (GlobalHelper.PopupWarningMsgForm == null)
+ {
+ frmPopupWarningMsg frm = new frmPopupWarningMsg();
+ frmPopupWarningMsg.warnLst = warnLst;
+ frm.TopMost = true;
+ frm.Show();
+ frmPopupWarningMsg.RefreshFrmHost();
+ GlobalHelper.PopupWarningMsgForm = frm;
+ }
+ else
+ {
+ frmPopupWarningMsg.warnLst = warnLst;
+ frmPopupWarningMsg.RefreshFrmHost();
+ }
+ }));
+ }
+ }
+ private void ShowPlcAlarm(string msg)
+ {
+ this.BeginInvoke(new Action(() =>
+ {
+ label3Professional.Text = msg;
+ }));
+ }
+ private void ShowPicAlarm(object isShowFlag, EventArgs e)
+ {
+ Invoke(new Action(() =>
+ {
+ ptb_Alarm.Visible = (bool)isShowFlag;
+ KryptonPage tmpPage = kryptonNavigator1.Pages.FirstOrDefault(x => x.Name == EnumFormType.PlcAlarmLog.ToString());
+ if (tmpPage != null && (bool)isShowFlag)
+ {
+ frmPlcAlarmLog.RefreshFrmHost(false);
+ }
+ }));
+ }
+ private void InitWarningMsg()
+ {
+ string sql = $@"SELECT * FROM BAS_WARNING";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ GlobalHelper.BasWarningMd_List = new List();
+ GlobalHelper.CmWarningLogMd_List = new List();
+ foreach (DataRow item in dt.Rows)
+ {
+ GlobalHelper.BasWarningMd_List.Add(new Bas_WarningMd
+ {
+ WarningCode = item["WARNING_CODE"].ToString(),
+ WarningName = item["WARNING_NAME"].ToString(),
+ PlcItemCode = item["PLC_ITEM_CODE"] == null ? null : item["PLC_ITEM_CODE"].ToString(),
+ WarningType = item["WARNING_TYPE"].ToString(),
+ WarningMessage = item["WARNING_MESSAGE"].ToString(),
+ });
+ }
+ }
+ string sql1 = $@"SELECT * FROM CM_WARNING_LOG WHERE WARING_STATUS = 0 AND WARNING_HANDLE_RESULT =0";
+ DataTable dt1 = LeadDbHelperSQLite.Query(sql1).Tables[0];
+ if (dt1 != null && dt1.Rows.Count > 0)
+ {
+ foreach (DataRow item in dt1.Rows)
+ {
+ GlobalHelper.CmWarningLogMd_List.Add(new CM_WarningLogMd
+ {
+ WarningCode = item["WARNING_CODE"].ToString(),
+ WarningName = item["WARNING_NAME"].ToString(),
+ WarningType = item["WARNING_TYPE"].ToString(),
+ WarningMessage = item["WARNING_MESSAGE"].ToString(),
+ WarningTime = Convert.ToDateTime(item["WARNING_TIME"]),
+ PlcItemCode = item["PLC_ITEM_CODE"].ToString(),
+ WarningStatus = 0,
+ WarningHandleResult = 0,
+ CreateBy = Convert.ToInt32(item["CREATE_BY"]),
+ CreateTime = Convert.ToDateTime(item["CREATE_TIME"]),
+ UpdateBy = Convert.ToInt32(item["UPDATE_BY"]),
+ UpdateTime = Convert.ToDateTime(item["UPDATE_TIME"]),
+ DataVersion = Convert.ToInt32(item["DATA_VERSION"]),
+ });
+ }
+ string sql2 = $@"DELETE FROM CM_WARNING_LOG WHERE WARING_STATUS = 0 AND WARNING_HANDLE_RESULT =0";
+ LeadDbHelperSQLite.ExecuteSql(sql2);
+ }
+ }
+ private void SetPlcItem(List PlcItemMdList, DataRow item)
+ {
+ if (PlcItemMdList != null)
+ {
+ BasPlcItemMd md = PlcItemMdList.Find(x => x.PlcItemCode == item["PLC_ITEM_CODE"].ToString());
+ if (md != null)
+ {
+ md.PlcItemId = Convert.ToInt32(item["PLC_ITEM_ID"].ToString());
+ md.PlcItemCode = item["PLC_ITEM_CODE"].ToString();
+ md.PlcItemName = item["PLC_ITEM_NAME"].ToString();
+ md.PlcItemType = Convert.ToInt32(item["PLC_ITEM_TYPE"].ToString());
+ md.PlcItemDataType = Convert.ToInt32(item["PLC_ITEM_DATA_TYPE"].ToString());
+ md.PlcItemPriAddress = item["PLC_ITEM_PRI_ADDRESS"].ToString();
+ md.PlcItemModbusAddress = item["PLC_ITEM_MODBUS_ADDRESS"].ToString();
+ md.PlcItemDeviationAddress = item["PLC_ITEM_DEVIATION_ADDRESS"] == null ? "" : item["PLC_ITEM_DEVIATION_ADDRESS"].ToString();
+ md.PlcItemDataLen = Convert.ToInt32(item["PLC_ITEM_DATA_LENGTH"]);
+ }
+ else
+ {
+ PlcItemMdList.Add(new BasPlcItemMd
+ {
+ PlcItemId = Convert.ToInt32(item["PLC_ITEM_ID"].ToString()),
+ PlcItemCode = item["PLC_ITEM_CODE"].ToString(),
+ PlcItemName = item["PLC_ITEM_NAME"].ToString(),
+ PlcItemType = Convert.ToInt32(item["PLC_ITEM_TYPE"].ToString()),
+ PlcItemDataType = Convert.ToInt32(item["PLC_ITEM_DATA_TYPE"].ToString()),
+ PlcItemPriAddress = item["PLC_ITEM_PRI_ADDRESS"].ToString(),
+ PlcItemModbusAddress = item["PLC_ITEM_MODBUS_ADDRESS"].ToString(),
+ PlcItemDeviationAddress = item["PLC_ITEM_DEVIATION_ADDRESS"] == null ? "" : item["PLC_ITEM_DEVIATION_ADDRESS"].ToString(),
+ PlcItemDataLen = Convert.ToInt32(item["PLC_ITEM_DATA_LENGTH"]),
+ });
+ }
+ }
+ else
+ {
+ PlcItemMdList = new List();
+ PlcItemMdList.Add(new BasPlcItemMd
+ {
+ PlcItemId = Convert.ToInt32(item["PLC_ITEM_ID"].ToString()),
+ PlcItemCode = item["PLC_ITEM_CODE"].ToString(),
+ PlcItemName = item["PLC_ITEM_NAME"].ToString(),
+ PlcItemType = Convert.ToInt32(item["PLC_ITEM_TYPE"].ToString()),
+ PlcItemDataType = Convert.ToInt32(item["PLC_ITEM_DATA_TYPE"].ToString()),
+ PlcItemPriAddress = item["PLC_ITEM_PRI_ADDRESS"].ToString(),
+ PlcItemModbusAddress = item["PLC_ITEM_MODBUS_ADDRESS"].ToString(),
+ PlcItemDeviationAddress = item["PLC_ITEM_DEVIATION_ADDRESS"] == null ? "" : item["PLC_ITEM_DEVIATION_ADDRESS"].ToString(),
+ PlcItemDataLen = Convert.ToInt32(item["PLC_ITEM_DATA_LENGTH"]),
+ });
+ }
+ }
+ private void timer_Tick(object sender, EventArgs e)
+ {
+ try
+ {
+ lbNow.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+
+ #region 线程执行函数
+ private void RefreshPlcItem_M()
+ {
+ while (GlobalHelper.SysThIsRunFlag)
+ {
+ PlcOperationHelper.Instance.RefreshPlcItem_M();
+ Thread.Sleep(50);
+ }
+ }
+ private void RefreshPlcItem_D()
+ {
+ while (GlobalHelper.SysThIsRunFlag)
+ {
+ PlcOperationHelper.Instance.RefreshPlcItem_D();
+ ShowWarningMsg();
+ Thread.Sleep(50);
+ }
+ }
+ private void RefreshPlcItem_X()
+ {
+ while (GlobalHelper.SysThIsRunFlag)
+ {
+ PlcOperationHelper.Instance.RefreshPlcItem_X();
+ Thread.Sleep(5);
+ }
+ }
+ private void RefreshPlcItem_Y()
+ {
+ while (GlobalHelper.SysThIsRunFlag)
+ {
+ PlcOperationHelper.Instance.RefreshPlcItem_Y();
+ Thread.Sleep(5);
+ }
+ }
+ private void MainThRunFunc()
+ {
+ while (GlobalHelper.SysThIsRunFlag)
+ {
+ try
+ {
+ #region 定时器运行函数
+ //当前托报废率超过10%,则提示
+ string sql_CurrPalletmsg = $@"SELECT * FROM CM_WORKING_PALLET WHERE WORKING_STATUS = 0";
+ DataTable dt_CurrPalletmsg = LeadDbHelperSQLite.Query(sql_CurrPalletmsg).Tables[0];
+ if (dt_CurrPalletmsg != null && dt_CurrPalletmsg.Rows.Count > 0)
+ {
+ string palletCodeMsg = dt_CurrPalletmsg.Rows[0]["WORKING_PALLET_CODE"].ToString();
+ string sqlCurrPalletScrapNumMsg = $@"SELECT CURRENT_NUMBER FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = '{palletCodeMsg}' AND CONTAMINATION_DTL_CODE = 'MoistureOrWet'";
+ string sqlCurrPalletCountNumMsg = $@"SELECT SUM(CURRENT_NUMBER) FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = '{palletCodeMsg}'";
+ DataTable dt_CurrPalletScrapNumMsg = LeadDbHelperSQLite.Query(sqlCurrPalletScrapNumMsg).Tables[0];
+ DataTable dt_CurrPalletCountNumMsg = LeadDbHelperSQLite.Query(sqlCurrPalletCountNumMsg).Tables[0];
+ if (dt_CurrPalletScrapNumMsg != null && dt_CurrPalletScrapNumMsg.Rows.Count > 0 && dt_CurrPalletCountNumMsg != null && dt_CurrPalletCountNumMsg.Rows.Count > 0)
+ {
+ int ScrapNumMsg = Convert.ToInt32(dt_CurrPalletScrapNumMsg.Rows[0][0]);
+ int CountNumMsg = Convert.ToInt32(dt_CurrPalletCountNumMsg.Rows[0][0]);
+ if (CountNumMsg == 0 || ScrapNumMsg == 0)
+ {
+ Invoke(new Action(() => { label1.Visible = false; }));
+ }
+ else
+ {
+ int scrapRate = Convert.ToInt32(Math.Round(decimal.Parse(((decimal)ScrapNumMsg / (decimal)CountNumMsg).ToString("0.000")), 2) * 100);
+ if (scrapRate >= 10)
+ {
+ Invoke(new Action(() => { label1.Visible = false; }));
+ }
+ else
+ {
+ Invoke(new Action(() => { label1.Visible = false; }));
+ }
+ }
+ }
+ else
+ {
+ Invoke(new Action(() => { label1.Visible = false; }));
+ }
+ }
+
+ string sqlParam = $@"SELECT * FROM SYS_PARAMETER";
+ DataTable dtParam = LeadDbHelperSQLite.Query(sqlParam).Tables[0];
+ if (dtParam != null && dtParam.Rows.Count > 0)
+ {
+ int sysRuningTimeLen = Convert.ToInt32(dtParam.Select("PARAMETER_CODE = 'SysRuningTimeLen'")[0]["PARAMETER_VALUE"]);
+ int scrapRate = Convert.ToInt32(dtParam.Select("PARAMETER_CODE = 'ScrapRate'")[0]["PARAMETER_VALUE"]);
+ int maintainItemTime = Convert.ToInt32(dtParam.Select("PARAMETER_CODE = 'MaintainItemTime'")[0]["PARAMETER_VALUE"]);
+ int maintainAlarmTime = Convert.ToInt32(dtParam.Select("PARAMETER_CODE = 'MaintainAlarmTime'")[0]["PARAMETER_VALUE"]);
+ int maintainQuitTime = Convert.ToInt32(dtParam.Select("PARAMETER_CODE = 'MaintainQuitTime'")[0]["PARAMETER_VALUE"]);
+ int maintainFlag = Convert.ToInt32(dtParam.Select("PARAMETER_CODE = 'MaintainFlag'")[0]["PARAMETER_VALUE"]);
+ string maintainRelieveCode = dtParam.Select("PARAMETER_CODE = 'MaintainRelieveCode'")[0]["PARAMETER_VALUE"].ToString();
+ if (maintainFlag == 0)
+ {
+ bool isRun = (bool)PlcOperationHelper.Instance.ReadPlcItem("CleanMacRunStatusNew", PlcItemTypeDesc.M);
+ if (isRun)
+ {
+ if (timerRunNUm == 60)
+ {
+ sysRuningTimeLen++;
+ if (sysRuningTimeLen < maintainItemTime)
+ {
+ //pictureBox1.Visible = false;
+ Invoke(new Action(() => { pictureBox1.Visible = false; }));
+ }
+ else if (sysRuningTimeLen >= maintainItemTime && sysRuningTimeLen < maintainAlarmTime)
+ {
+ //pictureBox1.Visible = true;
+ Invoke(new Action(() => { pictureBox1.Visible = true; }));
+ }
+ else if (sysRuningTimeLen >= maintainAlarmTime && sysRuningTimeLen < maintainQuitTime)
+ {
+ Invoke(new Action(() =>
+ {
+ pictureBox1.Visible = true;
+ if (!sysAlarmFrmShowFlag)
+ {
+ sysAlarmFrmShowFlag = true;
+ frmSysExitAlarm frm = new frmSysExitAlarm();
+ //frm.showMsg = "机器即将于" + (maintainQuitTime - sysRuningTimeLen) + "分钟后退出。";
+ frm.showMsg = $"The machine will exit in {(maintainQuitTime - sysRuningTimeLen)} minutes.";
+ frm.TopLevel = true;
+ frm.ShowDialog();
+ }
+ }));
+ }
+ else if (sysRuningTimeLen >= maintainQuitTime)
+ {
+ Invoke(new Action(() =>
+ {
+ pictureBox1.Visible = true;
+ string sql = "SELECT 1 FROM CM_WORKING_PALLET WHERE WORKING_STATUS = 0";
+ DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ if (!sysAlarmFrmShowFlag)
+ {
+ sysAlarmFrmShowFlag = true;
+ frmSysExitAlarm frm = new frmSysExitAlarm();
+ frm.showMsg = $"The machine maintenance time has exceeded: [{(maintainQuitTime - sysRuningTimeLen)}] minutes, please complete the current operation tray as soon as possible, and carry out equipment maintenance !!!!!!";
+ frm.TopLevel = true;
+ frm.ShowDialog();
+ }
+ }
+ else
+ {
+ string sqlUpdateParam = $@"update SYS_PARAMETER set PARAMETER_VALUE = '1' WHERE PARAMETER_CODE = 'MaintainFlag'";
+ LeadDbHelperSQLite.ExecuteSql(sqlUpdateParam);
+ PlcOperationHelper.Instance.WritePlcItem("StopSys", "True", PlcItemTypeDesc.M);
+ PlcOperationHelper.Instance.WritePlcItem("StopSys", "False", PlcItemTypeDesc.M);
+ PlcOperationHelper.Instance.WritePlcItem("ResetSys", "True", PlcItemTypeDesc.M);
+ PlcOperationHelper.Instance.WritePlcItem("ResetSys", "False", PlcItemTypeDesc.M);
+ Environment.Exit(0);
+ }
+ }));
+ }
+ string sqlUpdateRunTimeLen = $@"UPDATE SYS_PARAMETER set PARAMETER_VALUE = '{sysRuningTimeLen}' WHERE PARAMETER_CODE = 'SysRuningTimeLen'";
+ LeadDbHelperSQLite.ExecuteSql(sqlUpdateRunTimeLen);
+ Invoke(new Action(() =>
+ {
+ kryptonLabel1.Text = sysRuningTimeLen + " Minutes";
+ }));
+ timerRunNUm = 1;
+ }
+ else
+ {
+ timerRunNUm++;
+ Invoke(new Action(() =>
+ {
+ kryptonLabel1.Text = sysRuningTimeLen + " Minutes";
+ }));
+ }
+ }
+ }
+ else
+ {
+ Invoke(new Action(() =>
+ {
+ pictureBox1.Visible = true;
+ }));
+ }
+ }
+
+
+ #region 定期清理历史业务数据 -- 数据保存2个月
+ string sqlZbkWorkingPallet = $@"DELETE FROM ZBK_WORKING_PALLET WHERE julianday('now') - julianday(UPDATE_TIME) > 30";
+ string sqlZbkWorkingPalletDtl = $@"DELETE FROM ZBK_WORKING_PALLET_DTL WHERE julianday('now') - julianday(UPDATE_TIME) > 30";
+ LeadDbHelperSQLite.ExecuteSql(sqlZbkWorkingPallet);
+ LeadDbHelperSQLite.ExecuteSql(sqlZbkWorkingPalletDtl);
+ #endregion
+
+ PlcOperationHelper.Instance.HeartbeatDetection();
+ #endregion
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog($"定时器运行函数发生异常:【{ex.Message}】", LogTypeEum.Err);
+ }
+ Thread.Sleep(100);
+ }
+ }
+ #endregion
+
+ private void Test()
+ {
+ sysAlarmFrmShowFlag = false;
+ }
+ private void ShowWorkingPalletFullNumAlarm(string Msg)
+ {
+ Invoke(new Action(() =>
+ {
+ if (string.IsNullOrEmpty(Msg))
+ {
+ label2.Visible = false;
+ lbSysAlreadyRunning.Visible = true;
+ kryptonLabel1.Visible = true;
+ }
+ else
+ {
+ label2.Text = Msg;
+ label2.Visible = true;
+ lbSysAlreadyRunning.Visible = false;
+ kryptonLabel1.Visible = false;
+ }
+ }));
+ }
+
+ private void frmMainNew_FormClosing(object sender, FormClosingEventArgs e)
+ {
+ DialogResult dr = KryptonMessageBox.Show("Are you sure you want to close the software? If click is will close the software, please carefully operation!!!", "Prompt", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
+ if (dr == DialogResult.Yes)
+ {
+ Task.Run(async delegate
+ {
+ timer.Enabled = false;
+ GlobalHelper.SysThIsRunFlag = false;
+ GlobalHelper.eventAlarmLock = true;
+ if (GlobalHelper.CmWarningLogMd_List.Count > 0)
+ {
+ foreach (CM_WarningLogMd item in GlobalHelper.CmWarningLogMd_List)
+ {
+ if (item.WarningStatus == 0 && item.WarningHandleResult == 0)
+ {
+ string sql1 = $@"
+ INSERT INTO CM_WARNING_LOG (
+ WARNING_CODE,
+ WARNING_NAME,
+ WARNING_TYPE,
+ WARNING_MESSAGE,
+ WARNING_TIME,
+ PLC_ITEM_CODE,
+ WARING_STATUS,
+ WARNING_HANDLE_RESULT,
+ CREATE_BY,
+ CREATE_TIME,
+ UPDATE_BY,
+ UPDATE_TIME,
+ DATA_VERSION
+ )
+ VALUES (
+ '{item.WarningCode}',
+ '{item.WarningName}',
+ '{item.WarningType}',
+ '{item.WarningMessage}',
+ '{item.WarningTime.ToString("yyyy-MM-dd HH:mm:ss")}',
+ '{item.PlcItemCode}',
+ '{item.WarningStatus}',
+ '{item.WarningHandleResult}',
+ '{item.CreateBy}',
+ '{item.CreateTime.ToString("yyyy-MM-dd HH:mm:ss")}',
+ '{item.UpdateBy}',
+ '{item.UpdateTime.ToString("yyyy-MM-dd HH:mm:ss")}',
+ '{item.DataVersion}'
+ );
+ ";
+ LeadDbHelperSQLite.ExecuteSql(sql1);
+ }
+ else
+ {
+ string sql1 = $@"
+ INSERT INTO CM_WARNING_LOG (
+ WARNING_CODE,
+ WARNING_NAME,
+ WARNING_TYPE,
+ WARNING_MESSAGE,
+ WARNING_TIME,
+ PLC_ITEM_CODE,
+ WARING_STATUS,
+ WARNING_HANDLE_RESULT,
+ WARNING_HANDLE_TIME,
+ CREATE_BY,
+ CREATE_TIME,
+ UPDATE_BY,
+ UPDATE_TIME,
+ DATA_VERSION
+ )
+ VALUES (
+ '{item.WarningCode}',
+ '{item.WarningName}',
+ '{item.WarningType}',
+ '{item.WarningMessage}',
+ '{item.WarningTime.ToString("yyyy-MM-dd HH:mm:ss")}',
+ '{item.PlcItemCode}',
+ '{item.WarningStatus}',
+ '{item.WarningHandleResult}',
+ '{item.WarningHandleTime.ToString("yyyy-MM-dd HH:mm:ss")}',
+ '{item.CreateBy}',
+ '{item.CreateTime.ToString("yyyy-MM-dd HH:mm:ss")}',
+ '{item.UpdateBy}',
+ '{item.UpdateTime.ToString("yyyy-MM-dd HH:mm:ss")}',
+ '{item.DataVersion}'
+ );
+ ";
+ LeadDbHelperSQLite.ExecuteSql(sql1);
+ }
+ }
+ }
+ await Task.Delay(300);
+
+ if (isPlcConnStatus)
+ {
+ // 断开PLC连接
+ PlcOperationHelper.Instance.ClosePlcConn();
+ isPlcConnStatus = false;
+ }
+ if (GlobalHelper.PopupWarningMsgForm != null)
+ GlobalHelper.PopupWarningMsgForm.Close();
+ Environment.Exit(0);
+ });
+ }
+ else
+ {
+ e.Cancel = true;
+ }
+ }
+
+ private void frmMainNew_Shown(object sender, EventArgs e)
+ {
+ InitControl();
+ }
+ private void InitControl()
+ {
+ string sqlParam = $@"SELECT * FROM SYS_PARAMETER";
+ DataTable dtParam = LeadDbHelperSQLite.Query(sqlParam).Tables[0];
+ if (dtParam != null && dtParam.Rows.Count > 0)
+ {
+ int maintainFlag = Convert.ToInt32(dtParam.Select("PARAMETER_CODE = 'MaintainFlag'")[0]["PARAMETER_VALUE"]);
+ if (maintainFlag == 0)
+ {
+ bool canOperate = Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("SelfCheckPassFlag", PlcItemTypeDesc.M));
+ //自检通过则切换至主界面,否则进入自检画面
+ if (canOperate)
+ {
+ AddFrmMenuPage(EnumFormType.MainDetail, true);
+ }
+ else
+ {
+ AddFrmMenuPage(EnumFormType.MechineCheck, true);
+ }
+ }
+ else
+ {
+ AddFrmMenuPage(EnumFormType.Maintenance, true);
+ }
+ }
+ }
+
+ private void btnExit_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ AddFrmMenuPage(EnumFormType.MainDetail, false);
+ }
+ catch (Exception ex)
+ {
+ KryptonMessageBox.Show(ex.Message);
+ }
+ }
+
+ private void kryptonNavigator1_Selected(object sender, KryptonPageEventArgs e)
+ {
+ if (kryptonNavigator1.SelectedPage.Name != EnumFormType.MainDetail.ToString())
+ {
+ btnExit.Visible = true;
+ }
+ else
+ {
+ btnExit.Visible = false;
+ }
+ }
+
+ private void ptb_Alarm_Click(object sender, EventArgs e)
+ {
+ AddFrmMenuPage(EnumFormType.PlcAlarmLog, false);
+ frmPlcAlarmLog.RefreshFrmHost(false);
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmMainNew.resx b/CleanMachineHMI/frmMainNew.resx
new file mode 100644
index 0000000..85e9275
--- /dev/null
+++ b/CleanMachineHMI/frmMainNew.resx
@@ -0,0 +1,195 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAABoNJREFUeF7t
+ Wl2oFVUUvhT9PUT1ECVFGFje2ftkkg9p9RAW5kMURVJSRBIRWBhZPQiJEYlpUtpDZpSXCkGSlARDEgvM
+ SkOFIjV88Q/z7Jlz7/WeOedoL52+te/ydu+cNXNm5szMOUIffJzLnbW+vfaePXuv/dP3PwpCsznlihHX
+ uc2v6NlVVz9X9/TSuud8UnPVjpqrN9WMXuW7+qW6V3q4ZkrTmkMzrmHXixd+2SnVPP0qKrkbbCampw7X
+ XbW84ar7WLL3gbc5F5VeiQocbKlQZzzpG7Xe9/RTXFRvoWH0vaj4JiHwzOm7ag9615NcdHfhV0oOvueP
+ pEAL4LZaxXmQQykWNKhh0HoHQYwEguoGB2jg5NDyx3kazdMObDmx7qnTvlvAZ3Guoh7AYORJQfQC0RDL
+ ONTsgQIWBAvsRdYr6jMOOTvgrb8lFdaz9NRODr1z+Gf67xcL6XHipa3jKqSHzeYE8SREIN/Uvf4Zw8PT
+ r0WiNN03/Y9zjzoQtM2aDVe/zFVJDu+4Mwkix4KiSVl3nTdZsgV+Wc9Go3wAOxP0y4pV13mei4uP5v4Z
+ lyEP3y4JpqPzCkuLOHd26q1oiDWybwb09HwuKh44yZHF0nMBy4cCWeUjsMt8mqU8AavPSVxMNCi9hVMe
+ Gd4/aNgnuJhIoDfsF/w7Io07LB+NXHN7T52tDZbmcFGRwGfzg6iRkrF6gV3VCc4Z81TD9M/iIkNBmyJI
+ uX8R/FOzbS8ocEl7mKZYLjYUWOTMkfzTMrIX1Ab1XMkpLyKYvY0hdQsXHwrYfSz5pyX05PVCzXPelxxy
+ pVE7z5644zoOQQTtJcLWbfFNybqrf2LpicAA9YfkkDcR0NfN5rxLOQwRvtFbJN+0rFbu6GfpUeC7uEsy
+ LIK+57Td54Pd2qBfR/T0YpYehe/ppaJh3jTqGQ4hErB7TfRPy+BqEWlv7OkGtl9J/09KOh/g4tuiapzH
+ JI1O2Dw2+UorTvt7koFEqjz5oAU3Ss/jEgukRAuUXJbkRj9kxXmUlY0CHD7TP9k6ATXjfC7ZtCOmoRdZ
+ IjbyaIBqWb8wKl6hJalsFKTnTb3aOjGQs38q2YWRjr/YNRHyaADfOG9bcfoWJQOJQ6dbExe80XWSbZDI
+ /haxS2LktCs1YMXpoFJ4KNPoO61TABgbPhTtL9AEpp2EwOf2rKjbCY3aZcX5lFY2CpDehHUSgCDlTNI4
+ b7BJaqC7xo4xAY9acfyxI/AgnMZZaZ1CwAejY/ZVVy3hRx0BWofH62ZCo86zeJIVoPObdYoAUlu7mxS1
+ F5gUrXFkwvKouNGrhIehHCmru61jBGLvvsRAY9CZKcXRKTF477MF0NQkGYQRlVtvHQsEpcxSLJ0Qs9Jm
+ K26vpQgGUaR9futcICh7lGJJTU+ttsJ0tCwaRHODdS4Y9YpeKMSSimN5Ce29SQbtCIF5VqBgUE4hxZOU
+ 9Yp6lCUh6qWaZo6MlJ2ZLFEoUPaSQCzJaUo3sBx9X2q5aNSe59B4T7NMocAonvrEGuPJxG0xuoomGcYl
+ TXuxT14EUBZZ/SuwTRUDyEveleJpS6NeZ4n/gAcnWwyTcRhvZWvdOAv9M1OuZ9lQ/D2oFXrPe8ge/yR/
+ 3+jfR1w9hR/HBh+uSvGEUpzFaH6XjDsgnSxvRwVXUQ8h1spqBVr/y4hTn4Pj9xziItFplgnJZukSouhQ
+ PH9tDE67mcOKDfhtCOiEUK9hl1ZgatsjOxVLfA4/I9AbOazYiLNVF5nE0Q1MyakbxMvYHWcsCQLj0HFJ
+ jxgrjYfhtqBjF/l9u5OjINALMMaIWvFSeLp+Kjl3j/q7ZmAvMgqUoUo6sd7+BcBhICjQZX7bbM66isOL
+ RNj+YaIFHC2Q8C2dloS6yG2HDunLOcRQhDTACn4cH3T3VhDqKuuu3tJs9l3CIbbAXsUzau8EP6M28uPk
+ sMnLeLEeIL7xzbSHwSGOoTZke+3W8bZY4/zIj9OD7t6OF+0V0ieKF7SOXhK/qPIEG6NOcBU6B6aWnRPE
+ LwJy6NmBWlsqqOcYlutnAbp7KxbaK/T0FxxqfqC7t2Lh3abhTc4igJae30t5wthJb5GgHSAafbvZECh/
+ fTe26CegGw3RExUPghoCjbCM7uFJQWfAI+Danqu4BLqHh3FicQb5wwFkfssbg6V7WPriA93GogtJdCeH
+ BitUagAj9i78HsXvefyW0XP2UYqLBluN30V0aFE5dftNLJET+vr+BX7vp4HRiDkSAAAAAElFTkSuQmCC
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAABi5JREFUeF7l
+ mk9oHGUYxgfJzMR/iP9A7M5MWgs9iAqKoqBSUERRFIX0IAiKelKKB2kPCoKgoqBWD6IgqO1BSUXagoWi
+ l4K3FoPiZnaTlpQUgxeDPUgbPNT32T5Jvu+bd2dm/yQ7u3ngB+l8z/N+7zfd2Z1/3iDUTPyXGnEwJZwV
+ 5oX92Mbh0VUjCp9sxv7PsuCLGq0x8dA+WpIFTroLzmGSsdEQFuQssAyjsRPSifEJWQyOc22RecwjyzLD
+ q2YcfKUsrhTIssxwKo3857WFdQJqsNxw6eJOb0wWMO0uqAumUYtlh0eNONytLMaiGYfHG1FwVBuzCXez
+ 7HCoscO7WhpPswvJMNmMx+5XtrukqMny1Zc0vMdZgMYR2uE/4oxp7KG92prbftWN0uwZp/kstfBRRjz8
+ rXpszqA2I9VVGgdvKc1bpEnwLe2rwjbNa4LatFdTf2wbj+V8/i+teZN6NPYAI6vCNs1rgtqYg5HqSU5c
+ 3tMat4jCL2nPCGNqxgBz0F4tNbaGO6TBc27DDv/NJP6djGSEMXicjMs5zMVIddSI/X1Ksw7+J7S3FTx6
+ 1sTfR3s11Nzq3yGNLWcbXUM+uv+U+Z+Dp+VVahgsY05GBq80Dr9QmrSQb/B3aS8UvFoNE8xJ+2A1M+Hf
+ qzXo8OdvWy6vMVIoeJFxamTA3IwMTvJx/UZrziIK3qC9tJBRaxlgbtoHo7mJ8Z1aYw6zv8fetYyUFjLI
+ OrUyoAdGNl7SAO7sqo2tEb5Ge8dCVq9pMUX7xqqZhI8pzVjIR3S6fqsXMNKxkEUNrbYJemFk4yQTF17B
+ pbH/Mu2WZAw3SfcLuFfYei6AbRy2hBoyptY3WL2y3BDJhcszShMO4S+0W5KxvDvE6k5ALcVrgZ5oX3/J
+ /8pPWhMm0tCztFuSsbzvDfV4Ri3Fa4GeaF9flWlGOEZ7RjKGx2FaBpylLSMZO+Z4M7Tb6X1VmY+j/IY/
+ RXtGqt+AtoxQU/Pb6Idd39RI/Bf1iddoJsEPtKvSMia0qUJtLWMhPdLeX0lnl8kEJzMTOszE4w8zokrL
+ mNCmCrW1jMNJ9MpI/yS/ta8ok7kcoL2tlIwFbW0lngNuxgW90t4fLd7sXSFXaHVtMpM0GbuPkbbScia0
+ tRXm0HIm6BU9M9K70iR8XZvIJvyc9lzp2TVoyxXm0rIm6Jn23pRu8a6XgqfdCRwuNGrB7YzkSsla0JYr
+ zCXeC27W4TR6Z6R7NZLgTaW4RTPxP6S9UFrehLZCYU4tbyG9096deGNiMVPYQI63v+ei8BZGCiWZvHcF
+ 5mkrFObE3EoNk8VObsRkJL+77yhFbaLgbdpLSTK48NFryRhtpYS5lRoWWAPtnelULdwuBZbcgg4L9Ykr
+ b2KklCTT8cVQO2FuySw4NVyWsBZGyitN/I+UYi57ae9IksNOWHlNDuDvrt4JktxeQettFayF9nJKa8Ft
+ EjzvFnKoxCPrko/iz2NNjBSrkYSfKUUs5GzrVdoHLvSi9Wgha6I9X83Iv1stYCDfvutzvt2l0At60no1
+ wdoYaS8pVPxWV+S/QHtlhJ7UXg2wNtp1zURjD2pBkzQOj9Pek6TWVHrpUToegBzm5p6E3lb6bAfWSHtW
+ 8ptZ+JKCsIv2rqXUbMHhriU1drk1XbBG2m3JmdUjWsAiCo7S3rWkzuFM3TV6vsePHpW6Flgr7WuSgUOu
+ 0WU2CR+nvWtJnbbP/HBI0Na10KNW2+EQ7ZdU8iWlg7T3JKmzrjsAkloH3doZjJe0Sh37aZ+ewUmtdT0E
+ IPSq1LZY/S4o83hbfj6+bpn7JG0OwOG+CD1rc5i0Hq/LH++7Ay6lTiA6lNTt+8+gqTIndMIHXhrl32ru
+ +EKiQpL+8y69wY94weGUMrDKXC83FAYsXtKr6yLz2Eu5Lzex1tBKW5PBMgy5NxRwd7Ve8++p17zrWLPy
+ wtsl8v1yl/Rf9P22gB1wwtm4mTghO8D/WBnYFDTxql09Hn9IG9wMzMbhE61jRv5R+Ox9BLHPOnlSohlH
+ DjlLnOOybZV6+WHIabv4FeFBgpwcFb2sPHTIwpfkU/4pl5mvk9u8a5qx/5yEvhd+lQI4V/jXLFhx0OsC
+ e/9uphY83bhBu4Xvef8DrVz5P8P/E2cAAAAASUVORK5CYII=
+
+
+
+ 15, 11
+
+
+ 167, 10
+
+
+ 39
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmSysExitAlarm.Designer.cs b/CleanMachineHMI/frmSysExitAlarm.Designer.cs
new file mode 100644
index 0000000..a838d9c
--- /dev/null
+++ b/CleanMachineHMI/frmSysExitAlarm.Designer.cs
@@ -0,0 +1,92 @@
+namespace CleanMachineHMI
+{
+ partial class frmSysExitAlarm
+ {
+ ///
+ /// 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.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
+ this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
+ this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
+ this.kryptonPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // kryptonButton1
+ //
+ this.kryptonButton1.Location = new System.Drawing.Point(134, 141);
+ this.kryptonButton1.Name = "kryptonButton1";
+ this.kryptonButton1.Size = new System.Drawing.Size(93, 33);
+ this.kryptonButton1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonButton1.TabIndex = 1;
+ this.kryptonButton1.Values.Text = "Confirm";
+ this.kryptonButton1.Click += new System.EventHandler(this.button1_Click_1);
+ //
+ // kryptonLabel1
+ //
+ this.kryptonLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.kryptonLabel1.Location = new System.Drawing.Point(30, 66);
+ this.kryptonLabel1.Name = "kryptonLabel1";
+ this.kryptonLabel1.Size = new System.Drawing.Size(318, 20);
+ this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonLabel1.TabIndex = 2;
+ this.kryptonLabel1.Values.Text = "The machine will exit in 90 minutes.";
+ //
+ // kryptonPanel1
+ //
+ this.kryptonPanel1.Controls.Add(this.kryptonLabel1);
+ this.kryptonPanel1.Controls.Add(this.kryptonButton1);
+ this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel1.Name = "kryptonPanel1";
+ this.kryptonPanel1.Size = new System.Drawing.Size(378, 225);
+ this.kryptonPanel1.TabIndex = 3;
+ //
+ // Form1
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(378, 225);
+ this.Controls.Add(this.kryptonPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+ this.Name = "Form1";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "Form1";
+ this.Load += new System.EventHandler(this.Form1_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
+ this.kryptonPanel1.ResumeLayout(false);
+ this.kryptonPanel1.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
+ private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
+ private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmSysExitAlarm.cs b/CleanMachineHMI/frmSysExitAlarm.cs
new file mode 100644
index 0000000..073c4e6
--- /dev/null
+++ b/CleanMachineHMI/frmSysExitAlarm.cs
@@ -0,0 +1,33 @@
+using ComponentFactory.Krypton.Toolkit;
+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
+{
+ public partial class frmSysExitAlarm : KryptonForm
+ {
+ public frmSysExitAlarm()
+ {
+ InitializeComponent();
+ }
+
+ public string showMsg { get; set; }
+ private void button1_Click_1(object sender, EventArgs e)
+ {
+ frmMainNew.MothedShowMessage();
+ this.Close();
+ }
+
+ private void Form1_Load(object sender, EventArgs e)
+ {
+ kryptonLabel1.Text = showMsg;
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmSysExitAlarm.resx b/CleanMachineHMI/frmSysExitAlarm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CleanMachineHMI/frmSysExitAlarm.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/frmWarning.Designer.cs b/CleanMachineHMI/frmWarning.Designer.cs
new file mode 100644
index 0000000..f673783
--- /dev/null
+++ b/CleanMachineHMI/frmWarning.Designer.cs
@@ -0,0 +1,449 @@
+namespace CleanMachineHMI
+{
+ partial class frmWarning
+ {
+ ///
+ /// 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.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.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.报警名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel4)).BeginInit();
+ this.kryptonPanel4.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
+ this.kryptonGroupBox2.Panel.SuspendLayout();
+ this.kryptonGroupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel6)).BeginInit();
+ this.kryptonPanel6.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel5)).BeginInit();
+ this.kryptonPanel5.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
+ this.SuspendLayout();
+ //
+ // btnDeleted
+ //
+ this.btnDeleted.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnDeleted.Location = new System.Drawing.Point(278, 752);
+ this.btnDeleted.Name = "btnDeleted";
+ this.btnDeleted.Size = new System.Drawing.Size(80, 40);
+ this.btnDeleted.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnDeleted.TabIndex = 13;
+ this.btnDeleted.Values.Text = "删除";
+ //
+ // btnSave
+ //
+ this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnSave.Location = new System.Drawing.Point(192, 752);
+ this.btnSave.Name = "btnSave";
+ this.btnSave.Size = new System.Drawing.Size(80, 40);
+ this.btnSave.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnSave.TabIndex = 12;
+ this.btnSave.Values.Text = "保存";
+ //
+ // btnEdit
+ //
+ this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnEdit.Location = new System.Drawing.Point(106, 752);
+ this.btnEdit.Name = "btnEdit";
+ this.btnEdit.Size = new System.Drawing.Size(80, 40);
+ this.btnEdit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnEdit.TabIndex = 11;
+ this.btnEdit.Values.Text = "编辑";
+ //
+ // btnExit
+ //
+ this.btnExit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnExit.Location = new System.Drawing.Point(364, 752);
+ this.btnExit.Name = "btnExit";
+ this.btnExit.Size = new System.Drawing.Size(80, 40);
+ this.btnExit.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnExit.TabIndex = 10;
+ this.btnExit.Values.Text = "返回";
+ this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnAdd.Location = new System.Drawing.Point(20, 752);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(80, 40);
+ this.btnAdd.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.TabIndex = 9;
+ this.btnAdd.Values.Text = "新增";
+ //
+ // kryptonTextBox4
+ //
+ 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.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.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.Location = new System.Drawing.Point(35, 259);
+ this.kryptonLabel4.Name = "kryptonLabel4";
+ this.kryptonLabel4.Size = new System.Drawing.Size(95, 29);
+ this.kryptonLabel4.TabIndex = 7;
+ this.kryptonLabel4.Values.Text = "报警描述:";
+ //
+ // kryptonTextBox5
+ //
+ 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.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.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.Location = new System.Drawing.Point(35, 184);
+ this.kryptonLabel5.Name = "kryptonLabel5";
+ this.kryptonLabel5.Size = new System.Drawing.Size(95, 29);
+ this.kryptonLabel5.TabIndex = 5;
+ this.kryptonLabel5.Values.Text = "报警类型:";
+ //
+ // kryptonTextBox6
+ //
+ 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.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.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.Location = new System.Drawing.Point(35, 109);
+ this.kryptonLabel6.Name = "kryptonLabel6";
+ this.kryptonLabel6.Size = new System.Drawing.Size(95, 29);
+ this.kryptonLabel6.TabIndex = 3;
+ this.kryptonLabel6.Values.Text = "报警名称:";
+ //
+ // kryptonTextBox7
+ //
+ 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.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.StateCommon.Border.Rounding = 4;
+ this.kryptonTextBox7.StateCommon.Border.Width = 2;
+ this.kryptonTextBox7.TabIndex = 2;
+ //
+ // kryptonPanel4
+ //
+ this.kryptonPanel4.Controls.Add(this.kryptonGroupBox2);
+ this.kryptonPanel4.Dock = System.Windows.Forms.DockStyle.Right;
+ this.kryptonPanel4.Location = new System.Drawing.Point(691, 0);
+ this.kryptonPanel4.Name = "kryptonPanel4";
+ this.kryptonPanel4.Size = new System.Drawing.Size(481, 822);
+ this.kryptonPanel4.TabIndex = 0;
+ //
+ // kryptonGroupBox2
+ //
+ this.kryptonGroupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)));
+ this.kryptonGroupBox2.Location = new System.Drawing.Point(7, 5);
+ this.kryptonGroupBox2.Name = "kryptonGroupBox2";
+ //
+ // kryptonGroupBox2.Panel
+ //
+ this.kryptonGroupBox2.Panel.Controls.Add(this.btnDeleted);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.btnSave);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.btnEdit);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.btnExit);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.btnAdd);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonTextBox4);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonLabel4);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonTextBox5);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonLabel5);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonTextBox6);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonLabel6);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonTextBox7);
+ this.kryptonGroupBox2.Panel.Controls.Add(this.kryptonLabel7);
+ this.kryptonGroupBox2.Size = new System.Drawing.Size(469, 810);
+ this.kryptonGroupBox2.TabIndex = 0;
+ this.kryptonGroupBox2.Values.Heading = "";
+ //
+ // kryptonLabel7
+ //
+ this.kryptonLabel7.LabelStyle = ComponentFactory.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);
+ this.kryptonLabel7.TabIndex = 1;
+ this.kryptonLabel7.Values.Text = "报警编码:";
+ //
+ // dataGridViewTextBoxColumn1
+ //
+ this.dataGridViewTextBoxColumn1.HeaderText = "报警消息";
+ this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
+ this.dataGridViewTextBoxColumn1.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn2
+ //
+ this.dataGridViewTextBoxColumn2.HeaderText = "报警类别";
+ this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
+ this.dataGridViewTextBoxColumn2.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn3
+ //
+ this.dataGridViewTextBoxColumn3.HeaderText = "报警名称";
+ this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
+ this.dataGridViewTextBoxColumn3.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn4
+ //
+ this.dataGridViewTextBoxColumn4.HeaderText = "报警编码";
+ this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
+ this.dataGridViewTextBoxColumn4.ReadOnly = true;
+ //
+ // kryptonDataGridView2
+ //
+ this.kryptonDataGridView2.AllowUserToAddRows = false;
+ this.kryptonDataGridView2.AllowUserToDeleteRows = false;
+ this.kryptonDataGridView2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ 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.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.HeaderColumn.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.kryptonDataGridView2.TabIndex = 1;
+ //
+ // kryptonPanel6
+ //
+ this.kryptonPanel6.Controls.Add(this.kryptonPanel5);
+ this.kryptonPanel6.Controls.Add(this.kryptonPanel4);
+ this.kryptonPanel6.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel6.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel6.Name = "kryptonPanel6";
+ this.kryptonPanel6.Size = new System.Drawing.Size(1172, 822);
+ this.kryptonPanel6.TabIndex = 3;
+ //
+ // kryptonPanel5
+ //
+ this.kryptonPanel5.Controls.Add(this.dataGridView);
+ this.kryptonPanel5.Controls.Add(this.kryptonDataGridView2);
+ this.kryptonPanel5.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.kryptonPanel5.Location = new System.Drawing.Point(0, 0);
+ this.kryptonPanel5.Name = "kryptonPanel5";
+ this.kryptonPanel5.Size = new System.Drawing.Size(691, 822);
+ this.kryptonPanel5.TabIndex = 1;
+ //
+ // dataGridView
+ //
+ this.dataGridView.AllowUserToAddRows = false;
+ this.dataGridView.AllowUserToDeleteRows = false;
+ this.dataGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ this.dataGridView.ColumnHeadersHeight = 50;
+ this.dataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.报警名称,
+ this.Column1,
+ this.Column2,
+ this.Column3,
+ this.Column4});
+ this.dataGridView.DataMember = "TestData";
+ this.dataGridView.GridStyles.Style = ComponentFactory.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.HeaderColumn.Content.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.dataGridView.TabIndex = 2;
+ //
+ // 报警名称
+ //
+ this.报警名称.HeaderText = "报警编码";
+ this.报警名称.Name = "报警名称";
+ this.报警名称.ReadOnly = true;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "报警名称";
+ this.Column1.Name = "Column1";
+ this.Column1.ReadOnly = true;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "报警类型";
+ this.Column2.Name = "Column2";
+ this.Column2.ReadOnly = true;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "报警消息";
+ this.Column3.Name = "Column3";
+ this.Column3.ReadOnly = true;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "是否启用";
+ this.Column4.Name = "Column4";
+ this.Column4.ReadOnly = true;
+ //
+ // frmWarning
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1172, 822);
+ this.Controls.Add(this.kryptonPanel6);
+ this.Name = "frmWarning";
+ this.Text = "frmWarning";
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel4)).EndInit();
+ this.kryptonPanel4.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit();
+ this.kryptonGroupBox2.Panel.ResumeLayout(false);
+ this.kryptonGroupBox2.Panel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit();
+ this.kryptonGroupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel6)).EndInit();
+ this.kryptonPanel6.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel5)).EndInit();
+ this.kryptonPanel5.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #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 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 System.Windows.Forms.DataGridViewTextBoxColumn 报警名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ }
+}
\ No newline at end of file
diff --git a/CleanMachineHMI/frmWarning.cs b/CleanMachineHMI/frmWarning.cs
new file mode 100644
index 0000000..979cbea
--- /dev/null
+++ b/CleanMachineHMI/frmWarning.cs
@@ -0,0 +1,48 @@
+using CleanMachineHMI.Utils;
+using ComponentFactory.Krypton.Toolkit;
+using LeadDataBaseUtility;
+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
+{
+ public partial class frmWarning : KryptonForm
+ {
+ public frmWarning()
+ {
+ InitializeComponent();
+ Init();
+ }
+
+ public void Init()
+ {
+ var sql = "select * from BAS_WARNING";
+ DataTable dt = LeadDbHelperSQLServer.Query(sql).Tables[0];
+ dataGridView.Rows.Clear();
+ dataGridView.Columns.Clear();
+ dataGridView.DataSource = dt;
+ }
+
+ protected override CreateParams CreateParams
+ {
+ get
+ {
+ CreateParams cp = base.CreateParams;
+ cp.ExStyle |= 0x02000000;
+ return cp;
+ }
+ }
+
+ private void btnExit_Click(object sender, EventArgs e)
+ {
+ AppConfig.MainForm.navigatorMain.SetNavPage(Domain.Enums.EnumFormType.Main);
+ }
+ }
+}
diff --git a/CleanMachineHMI/frmWarning.resx b/CleanMachineHMI/frmWarning.resx
new file mode 100644
index 0000000..a15c545
--- /dev/null
+++ b/CleanMachineHMI/frmWarning.resx
@@ -0,0 +1,162 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CleanMachineHMI/packages.config b/CleanMachineHMI/packages.config
new file mode 100644
index 0000000..2c9f8bc
--- /dev/null
+++ b/CleanMachineHMI/packages.config
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/CleanMachineSoftware_Setup/CleanMachineSoftware_Setup.vdproj b/CleanMachineSoftware_Setup/CleanMachineSoftware_Setup.vdproj
new file mode 100644
index 0000000..2bfa2df
--- /dev/null
+++ b/CleanMachineSoftware_Setup/CleanMachineSoftware_Setup.vdproj
@@ -0,0 +1,2548 @@
+"DeployProject"
+{
+"VSVersion" = "3:800"
+"ProjectType" = "8:{978C614F-708E-4E1A-B201-565925725DBA}"
+"IsWebType" = "8:FALSE"
+"ProjectName" = "8:CleanMachineSoftware_Setup"
+"LanguageId" = "3:2052"
+"CodePage" = "3:936"
+"UILanguageId" = "3:2052"
+"SccProjectName" = "8:"
+"SccLocalPath" = "8:"
+"SccAuxPath" = "8:"
+"SccProvider" = "8:"
+ "Hierarchy"
+ {
+ "Entry"
+ {
+ "MsmKey" = "8:_050F04F3C580ABFD8A56F806CE1B0C2B"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_1A6100AFF4E94FEE86BCD66A1EE84A48"
+ "OwnerKey" = "8:_UNDEFINED"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_260939788581B3E11916B2D7DF4F7283"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_32A4B784D1E0005992B7B0EA905DD8C3"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_32A4B784D1E0005992B7B0EA905DD8C3"
+ "OwnerKey" = "8:_5DBB85EA1B7EA83EC5966CB9F5B5D7C8"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_383AFFC898D737F84C09164D98C4E2CF"
+ "OwnerKey" = "8:_4B2D1E77CF1518E0E3B8193C0F5D554E"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_383AFFC898D737F84C09164D98C4E2CF"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_3F21E8D5EA526F09F2979DA92E435B16"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_3FAC95C9E15B80854DF9D754895AFF77"
+ "OwnerKey" = "8:_4BC1296B80FB6CE1188B668F3C405028"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_3FAC95C9E15B80854DF9D754895AFF77"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_409BF809E1624C38A452703B10021C1F"
+ "OwnerKey" = "8:_UNDEFINED"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_4AB8D9BE6D312EA4072C0E0AB78308CD"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_4B2D1E77CF1518E0E3B8193C0F5D554E"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_4BC1296B80FB6CE1188B668F3C405028"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_4BC1296B80FB6CE1188B668F3C405028"
+ "OwnerKey" = "8:_EB4F6BD2265733BF949406A848FEC7A8"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_53C2E898C3124B1789E8426652C25B2F"
+ "OwnerKey" = "8:_UNDEFINED"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_5DBB85EA1B7EA83EC5966CB9F5B5D7C8"
+ "OwnerKey" = "8:_A07201350E68CAF6744D85049A3274ED"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_5DBB85EA1B7EA83EC5966CB9F5B5D7C8"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "OwnerKey" = "8:_UNDEFINED"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_696F04EA05AC7F1F12809A7F35674B3B"
+ "OwnerKey" = "8:_4B2D1E77CF1518E0E3B8193C0F5D554E"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_696F04EA05AC7F1F12809A7F35674B3B"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_69C255123EA4F52BED12296092BB4CD2"
+ "OwnerKey" = "8:_9F425F12E3D748CE9223D2B6DBA20943"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_758E358E098D4ADABD0993E76E870B02"
+ "OwnerKey" = "8:_UNDEFINED"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_7D5C43E710F0D13ECB316E8742B57C46"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_8045D66B59A682E87713573FEBD7E1FF"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_8045D66B59A682E87713573FEBD7E1FF"
+ "OwnerKey" = "8:_5DBB85EA1B7EA83EC5966CB9F5B5D7C8"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_8045D66B59A682E87713573FEBD7E1FF"
+ "OwnerKey" = "8:_8CEEB475750FD1D3803B7318D8021D92"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_8045D66B59A682E87713573FEBD7E1FF"
+ "OwnerKey" = "8:_9A1DB36A3EE0035E5E281BB32531C045"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_8045D66B59A682E87713573FEBD7E1FF"
+ "OwnerKey" = "8:_A07201350E68CAF6744D85049A3274ED"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_81D0A075766792DE8DB0879035205800"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_81D0A075766792DE8DB0879035205800"
+ "OwnerKey" = "8:_F4DC61B0BA96E7BD744146A6ACF90BFA"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_81D0A075766792DE8DB0879035205800"
+ "OwnerKey" = "8:_D074B510CFABCFF7F02EF789BBE03216"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_81D0A075766792DE8DB0879035205800"
+ "OwnerKey" = "8:_3F21E8D5EA526F09F2979DA92E435B16"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_8CEEB475750FD1D3803B7318D8021D92"
+ "OwnerKey" = "8:_9A1DB36A3EE0035E5E281BB32531C045"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_8CEEB475750FD1D3803B7318D8021D92"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_8CEEB475750FD1D3803B7318D8021D92"
+ "OwnerKey" = "8:_A07201350E68CAF6744D85049A3274ED"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_8CEEB475750FD1D3803B7318D8021D92"
+ "OwnerKey" = "8:_5DBB85EA1B7EA83EC5966CB9F5B5D7C8"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_8F4670755C0B41B5A21092BD97C7A436"
+ "OwnerKey" = "8:_UNDEFINED"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_9A1DB36A3EE0035E5E281BB32531C045"
+ "OwnerKey" = "8:_A07201350E68CAF6744D85049A3274ED"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_9A1DB36A3EE0035E5E281BB32531C045"
+ "OwnerKey" = "8:_050F04F3C580ABFD8A56F806CE1B0C2B"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_9A1DB36A3EE0035E5E281BB32531C045"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_9A1DB36A3EE0035E5E281BB32531C045"
+ "OwnerKey" = "8:_5DBB85EA1B7EA83EC5966CB9F5B5D7C8"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_9E598D36BF904DB88EE5ECBE2F9F6968"
+ "OwnerKey" = "8:_UNDEFINED"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_9F425F12E3D748CE9223D2B6DBA20943"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_9F425F12E3D748CE9223D2B6DBA20943"
+ "OwnerKey" = "8:_050F04F3C580ABFD8A56F806CE1B0C2B"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_A07201350E68CAF6744D85049A3274ED"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_A07201350E68CAF6744D85049A3274ED"
+ "OwnerKey" = "8:_050F04F3C580ABFD8A56F806CE1B0C2B"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_A2B70519069732A0EF36219E4226F655"
+ "OwnerKey" = "8:_81D0A075766792DE8DB0879035205800"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_A2B70519069732A0EF36219E4226F655"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_AB26183ADFB5A2198044372587CA1B7A"
+ "OwnerKey" = "8:_4BC1296B80FB6CE1188B668F3C405028"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_AB26183ADFB5A2198044372587CA1B7A"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_B25640AF307DE4B4C9390CD2AEAAF18B"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_BA3284A8D4F6CAD6466FD8B6325B3D0E"
+ "OwnerKey" = "8:_4B2D1E77CF1518E0E3B8193C0F5D554E"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_BA3284A8D4F6CAD6466FD8B6325B3D0E"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_C5CB4AFC532FC0073E021A4C2AF2E534"
+ "OwnerKey" = "8:_9F425F12E3D748CE9223D2B6DBA20943"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_C5CB4AFC532FC0073E021A4C2AF2E534"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_C922D160D7BF48E5AA5B50EF3B68B0C7"
+ "OwnerKey" = "8:_UNDEFINED"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_D074B510CFABCFF7F02EF789BBE03216"
+ "OwnerKey" = "8:_3F21E8D5EA526F09F2979DA92E435B16"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_D074B510CFABCFF7F02EF789BBE03216"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_D629323CF11131FE6C6FD5D13080FCA5"
+ "OwnerKey" = "8:_4AB8D9BE6D312EA4072C0E0AB78308CD"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_D629323CF11131FE6C6FD5D13080FCA5"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_D7C109D5B14418A38B3CB6EFA0310CBE"
+ "OwnerKey" = "8:_3FAC95C9E15B80854DF9D754895AFF77"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_D7C109D5B14418A38B3CB6EFA0310CBE"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_D7C109D5B14418A38B3CB6EFA0310CBE"
+ "OwnerKey" = "8:_4BC1296B80FB6CE1188B668F3C405028"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_D8DFBAE9845A5E20877DD96ADEE09339"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_D933F607D6409C68A62F0F7179160667"
+ "OwnerKey" = "8:_4B2D1E77CF1518E0E3B8193C0F5D554E"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_D933F607D6409C68A62F0F7179160667"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_EB4F6BD2265733BF949406A848FEC7A8"
+ "OwnerKey" = "8:_050F04F3C580ABFD8A56F806CE1B0C2B"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_EB4F6BD2265733BF949406A848FEC7A8"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_F22017C7B4D72521AED825D73F75D87E"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_F22017C7B4D72521AED825D73F75D87E"
+ "OwnerKey" = "8:_81D0A075766792DE8DB0879035205800"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_F4DC61B0BA96E7BD744146A6ACF90BFA"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_260939788581B3E11916B2D7DF4F7283"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_D8DFBAE9845A5E20877DD96ADEE09339"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_7D5C43E710F0D13ECB316E8742B57C46"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_F4DC61B0BA96E7BD744146A6ACF90BFA"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_3F21E8D5EA526F09F2979DA92E435B16"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_D074B510CFABCFF7F02EF789BBE03216"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_81D0A075766792DE8DB0879035205800"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_A2B70519069732A0EF36219E4226F655"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_F22017C7B4D72521AED825D73F75D87E"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_4AB8D9BE6D312EA4072C0E0AB78308CD"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_D629323CF11131FE6C6FD5D13080FCA5"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_050F04F3C580ABFD8A56F806CE1B0C2B"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_EB4F6BD2265733BF949406A848FEC7A8"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_4BC1296B80FB6CE1188B668F3C405028"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_AB26183ADFB5A2198044372587CA1B7A"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_3FAC95C9E15B80854DF9D754895AFF77"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_D7C109D5B14418A38B3CB6EFA0310CBE"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_4B2D1E77CF1518E0E3B8193C0F5D554E"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_BA3284A8D4F6CAD6466FD8B6325B3D0E"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_696F04EA05AC7F1F12809A7F35674B3B"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_383AFFC898D737F84C09164D98C4E2CF"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_D933F607D6409C68A62F0F7179160667"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_B25640AF307DE4B4C9390CD2AEAAF18B"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_A07201350E68CAF6744D85049A3274ED"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_5DBB85EA1B7EA83EC5966CB9F5B5D7C8"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_9A1DB36A3EE0035E5E281BB32531C045"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_8CEEB475750FD1D3803B7318D8021D92"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_8045D66B59A682E87713573FEBD7E1FF"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_32A4B784D1E0005992B7B0EA905DD8C3"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_9F425F12E3D748CE9223D2B6DBA20943"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_UNDEFINED"
+ "OwnerKey" = "8:_C5CB4AFC532FC0073E021A4C2AF2E534"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ }
+ "Configurations"
+ {
+ "Debug"
+ {
+ "DisplayName" = "8:Debug"
+ "IsDebugOnly" = "11:TRUE"
+ "IsReleaseOnly" = "11:FALSE"
+ "OutputFilename" = "8:Debug\\CleanMachineSoftware_Setup.msi"
+ "PackageFilesAs" = "3:2"
+ "PackageFileSize" = "3:-2147483648"
+ "CabType" = "3:1"
+ "Compression" = "3:2"
+ "SignOutput" = "11:FALSE"
+ "CertificateFile" = "8:"
+ "PrivateKeyFile" = "8:"
+ "TimeStampServer" = "8:"
+ "InstallerBootstrapper" = "3:2"
+ "BootstrapperCfg:{63ACBE69-63AA-4F98-B2B6-99F9E24495F2}"
+ {
+ "Enabled" = "11:TRUE"
+ "PromptEnabled" = "11:TRUE"
+ "PrerequisitesLocation" = "2:1"
+ "Url" = "8:"
+ "ComponentsUrl" = "8:"
+ "Items"
+ {
+ "{EDC2488A-8267-493A-A98E-7D9C3B36CDF3}:.NETFramework,Version=v4.7.2"
+ {
+ "Name" = "8:Microsoft .NET Framework 4.7.2 (x86 and x64)"
+ "ProductCode" = "8:.NETFramework,Version=v4.7.2"
+ }
+ }
+ }
+ }
+ "Release"
+ {
+ "DisplayName" = "8:Release"
+ "IsDebugOnly" = "11:FALSE"
+ "IsReleaseOnly" = "11:TRUE"
+ "OutputFilename" = "8:Release\\CleanMachineSoftware_Setup.msi"
+ "PackageFilesAs" = "3:2"
+ "PackageFileSize" = "3:-2147483648"
+ "CabType" = "3:1"
+ "Compression" = "3:2"
+ "SignOutput" = "11:FALSE"
+ "CertificateFile" = "8:"
+ "PrivateKeyFile" = "8:"
+ "TimeStampServer" = "8:"
+ "InstallerBootstrapper" = "3:2"
+ "BootstrapperCfg:{63ACBE69-63AA-4F98-B2B6-99F9E24495F2}"
+ {
+ "Enabled" = "11:TRUE"
+ "PromptEnabled" = "11:TRUE"
+ "PrerequisitesLocation" = "2:1"
+ "Url" = "8:"
+ "ComponentsUrl" = "8:"
+ "Items"
+ {
+ "{EDC2488A-8267-493A-A98E-7D9C3B36CDF3}:.NETFramework,Version=v4.7.2"
+ {
+ "Name" = "8:Microsoft .NET Framework 4.7.2 (x86 and x64)"
+ "ProductCode" = "8:.NETFramework,Version=v4.7.2"
+ }
+ }
+ }
+ }
+ }
+ "Deployable"
+ {
+ "CustomAction"
+ {
+ }
+ "DefaultFeature"
+ {
+ "Name" = "8:DefaultFeature"
+ "Title" = "8:"
+ "Description" = "8:"
+ }
+ "ExternalPersistence"
+ {
+ "LaunchCondition"
+ {
+ "{A06ECF26-33A3-4562-8140-9B0E340D4F24}:_B3CBE628E3274FA8AD19B2D41FF8B66E"
+ {
+ "Name" = "8:.NET Framework"
+ "Message" = "8:[VSDNETMSG]"
+ "FrameworkVersion" = "8:.NETFramework,Version=v4.7.2"
+ "AllowLaterVersions" = "11:FALSE"
+ "InstallUrl" = "8:http://go.microsoft.com/fwlink/?LinkId=863262"
+ }
+ }
+ }
+ "File"
+ {
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_050F04F3C580ABFD8A56F806CE1B0C2B"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:Microsoft.ReportViewer.Design, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_050F04F3C580ABFD8A56F806CE1B0C2B"
+ {
+ "Name" = "8:Microsoft.ReportViewer.Design.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:Microsoft.ReportViewer.Design.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_1A6100AFF4E94FEE86BCD66A1EE84A48"
+ {
+ "SourcePath" = "8:..\\CleanMachineHMI\\Resources\\Uninstall_Tool.ico"
+ "TargetName" = "8:Uninstall_Tool.ico"
+ "Tag" = "8:"
+ "Folder" = "8:_46C90CE1D4C24B55A97FC3FB99F95A3C"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:FALSE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_260939788581B3E11916B2D7DF4F7283"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:NModbus4, Version=2.1.0.0, Culture=neutral, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_260939788581B3E11916B2D7DF4F7283"
+ {
+ "Name" = "8:NModbus4.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:NModbus4.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_32A4B784D1E0005992B7B0EA905DD8C3"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:Microsoft.MSXML, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_32A4B784D1E0005992B7B0EA905DD8C3"
+ {
+ "Name" = "8:Microsoft.MSXML.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:Microsoft.MSXML.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_383AFFC898D737F84C09164D98C4E2CF"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:Oracle.ManagedDataAccess, Version=4.122.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_383AFFC898D737F84C09164D98C4E2CF"
+ {
+ "Name" = "8:Oracle.ManagedDataAccess.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:Oracle.ManagedDataAccess.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_3F21E8D5EA526F09F2979DA92E435B16"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:FastReport.Install, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_3F21E8D5EA526F09F2979DA92E435B16"
+ {
+ "Name" = "8:FastReport.Install.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:FastReport.Install.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_3FAC95C9E15B80854DF9D754895AFF77"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:Microsoft.ReportViewer.DataVisualization, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_3FAC95C9E15B80854DF9D754895AFF77"
+ {
+ "Name" = "8:Microsoft.ReportViewer.DataVisualization.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:Microsoft.ReportViewer.DataVisualization.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_409BF809E1624C38A452703B10021C1F"
+ {
+ "SourcePath" = "8:..\\CleanMachineHMI\\Resources\\清洁员图片1.ico"
+ "TargetName" = "8:清洁员图片1.ico"
+ "Tag" = "8:"
+ "Folder" = "8:_46C90CE1D4C24B55A97FC3FB99F95A3C"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:FALSE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_4AB8D9BE6D312EA4072C0E0AB78308CD"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:ComponentFactory.Krypton.Navigator, Version=4.6.0.0, Culture=neutral, PublicKeyToken=a87e673e9ecb6e8e, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_4AB8D9BE6D312EA4072C0E0AB78308CD"
+ {
+ "Name" = "8:ComponentFactory.Krypton.Navigator.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:ComponentFactory.Krypton.Navigator.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_4B2D1E77CF1518E0E3B8193C0F5D554E"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:LeadDataBaseUtility, Version=1.0.0.0, Culture=neutral, processorArchitecture=AMD64"
+ "ScatterAssemblies"
+ {
+ "_4B2D1E77CF1518E0E3B8193C0F5D554E"
+ {
+ "Name" = "8:LeadDataBaseUtility.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:LeadDataBaseUtility.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_4BC1296B80FB6CE1188B668F3C405028"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:Microsoft.ReportViewer.Common, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_4BC1296B80FB6CE1188B668F3C405028"
+ {
+ "Name" = "8:Microsoft.ReportViewer.Common.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:Microsoft.ReportViewer.Common.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_53C2E898C3124B1789E8426652C25B2F"
+ {
+ "SourcePath" = "8:..\\CleanMachineHMI\\ReportMd\\CleanMac_IRMsg_PrintMd.frd"
+ "TargetName" = "8:CleanMac_IRMsg_PrintMd.frd"
+ "Tag" = "8:"
+ "Folder" = "8:_E530F631AAF44B8EA70B803D7ABBD435"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:FALSE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_5DBB85EA1B7EA83EC5966CB9F5B5D7C8"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:Microsoft.VisualStudio.TextManager.Interop.8.0, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
+ "ScatterAssemblies"
+ {
+ "_5DBB85EA1B7EA83EC5966CB9F5B5D7C8"
+ {
+ "Name" = "8:Microsoft.VisualStudio.TextManager.Interop.8.0.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:Microsoft.VisualStudio.TextManager.Interop.8.0.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_696F04EA05AC7F1F12809A7F35674B3B"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:System.Data.SQLite, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=AMD64"
+ "ScatterAssemblies"
+ {
+ "_696F04EA05AC7F1F12809A7F35674B3B"
+ {
+ "Name" = "8:System.Data.SQLite.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:System.Data.SQLite.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_69C255123EA4F52BED12296092BB4CD2"
+ {
+ "SourcePath" = "8:dte80a.olb"
+ "TargetName" = "8:dte80a.olb"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_758E358E098D4ADABD0993E76E870B02"
+ {
+ "SourcePath" = "8:..\\CleanMachineHMI\\DataBase\\clearMac.db"
+ "TargetName" = "8:clearMac.db"
+ "Tag" = "8:"
+ "Folder" = "8:_3F992808A0504F368A32C870CDF20C9D"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:FALSE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_7D5C43E710F0D13ECB316E8742B57C46"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:LEase, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_7D5C43E710F0D13ECB316E8742B57C46"
+ {
+ "Name" = "8:LEase.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:LEase.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_8045D66B59A682E87713573FEBD7E1FF"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:Microsoft.VisualStudio.OLE.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
+ "ScatterAssemblies"
+ {
+ "_8045D66B59A682E87713573FEBD7E1FF"
+ {
+ "Name" = "8:Microsoft.VisualStudio.OLE.Interop.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:Microsoft.VisualStudio.OLE.Interop.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_81D0A075766792DE8DB0879035205800"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:FastReport, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_81D0A075766792DE8DB0879035205800"
+ {
+ "Name" = "8:FastReport.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:FastReport.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_8CEEB475750FD1D3803B7318D8021D92"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:Microsoft.VisualStudio.TextManager.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
+ "ScatterAssemblies"
+ {
+ "_8CEEB475750FD1D3803B7318D8021D92"
+ {
+ "Name" = "8:Microsoft.VisualStudio.TextManager.Interop.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:Microsoft.VisualStudio.TextManager.Interop.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_8F4670755C0B41B5A21092BD97C7A436"
+ {
+ "SourcePath" = "8:..\\CleanMachineHMI\\Resources\\清洁员图片2.ico"
+ "TargetName" = "8:清洁员图片2.ico"
+ "Tag" = "8:"
+ "Folder" = "8:_46C90CE1D4C24B55A97FC3FB99F95A3C"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:FALSE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_9A1DB36A3EE0035E5E281BB32531C045"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:Microsoft.VisualStudio.Shell.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
+ "ScatterAssemblies"
+ {
+ "_9A1DB36A3EE0035E5E281BB32531C045"
+ {
+ "Name" = "8:Microsoft.VisualStudio.Shell.Interop.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:Microsoft.VisualStudio.Shell.Interop.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_9E598D36BF904DB88EE5ECBE2F9F6968"
+ {
+ "SourcePath" = "8:..\\CleanMachineHMI\\ReportMd\\CleanMac_IRMsg_PrintMd.frx"
+ "TargetName" = "8:CleanMac_IRMsg_PrintMd.frx"
+ "Tag" = "8:"
+ "Folder" = "8:_E530F631AAF44B8EA70B803D7ABBD435"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:FALSE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_9F425F12E3D748CE9223D2B6DBA20943"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
+ "ScatterAssemblies"
+ {
+ "_9F425F12E3D748CE9223D2B6DBA20943"
+ {
+ "Name" = "8:EnvDTE.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:EnvDTE.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_A07201350E68CAF6744D85049A3274ED"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:Microsoft.VisualStudio.Shell.Interop.8.0, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
+ "ScatterAssemblies"
+ {
+ "_A07201350E68CAF6744D85049A3274ED"
+ {
+ "Name" = "8:Microsoft.VisualStudio.Shell.Interop.8.0.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:Microsoft.VisualStudio.Shell.Interop.8.0.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_A2B70519069732A0EF36219E4226F655"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:FastReport.Editor, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_A2B70519069732A0EF36219E4226F655"
+ {
+ "Name" = "8:FastReport.Editor.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:FastReport.Editor.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_AB26183ADFB5A2198044372587CA1B7A"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:Microsoft.ReportViewer.ProcessingObjectModel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_AB26183ADFB5A2198044372587CA1B7A"
+ {
+ "Name" = "8:Microsoft.ReportViewer.ProcessingObjectModel.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:Microsoft.ReportViewer.ProcessingObjectModel.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_B25640AF307DE4B4C9390CD2AEAAF18B"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:CleanMachineHMI.Domain, Version=1.0.0.0, Culture=neutral, processorArchitecture=AMD64"
+ "ScatterAssemblies"
+ {
+ "_B25640AF307DE4B4C9390CD2AEAAF18B"
+ {
+ "Name" = "8:CleanMachineHMI.Domain.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:CleanMachineHMI.Domain.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_BA3284A8D4F6CAD6466FD8B6325B3D0E"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:NX_LogUtility, Version=1.0.0.0, Culture=neutral, processorArchitecture=AMD64"
+ "ScatterAssemblies"
+ {
+ "_BA3284A8D4F6CAD6466FD8B6325B3D0E"
+ {
+ "Name" = "8:NX_LogUtility.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:NX_LogUtility.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_C5CB4AFC532FC0073E021A4C2AF2E534"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
+ "ScatterAssemblies"
+ {
+ "_C5CB4AFC532FC0073E021A4C2AF2E534"
+ {
+ "Name" = "8:stdole.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:stdole.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_C922D160D7BF48E5AA5B50EF3B68B0C7"
+ {
+ "SourcePath" = "8:C:\\Windows\\System32\\msiexec.exe"
+ "TargetName" = "8:msiexec.exe"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:FALSE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_D074B510CFABCFF7F02EF789BBE03216"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:FastReport.Web, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_D074B510CFABCFF7F02EF789BBE03216"
+ {
+ "Name" = "8:FastReport.Web.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:FastReport.Web.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_D629323CF11131FE6C6FD5D13080FCA5"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:ComponentFactory.Krypton.Toolkit, Version=4.6.0.0, Culture=neutral, PublicKeyToken=a87e673e9ecb6e8e, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_D629323CF11131FE6C6FD5D13080FCA5"
+ {
+ "Name" = "8:ComponentFactory.Krypton.Toolkit.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:ComponentFactory.Krypton.Toolkit.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_D7C109D5B14418A38B3CB6EFA0310CBE"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:Microsoft.SqlServer.Types, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_D7C109D5B14418A38B3CB6EFA0310CBE"
+ {
+ "Name" = "8:Microsoft.SqlServer.Types.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:Microsoft.SqlServer.Types.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_D8DFBAE9845A5E20877DD96ADEE09339"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:Microsoft.VisualBasic.PowerPacks, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_D8DFBAE9845A5E20877DD96ADEE09339"
+ {
+ "Name" = "8:Microsoft.VisualBasic.PowerPacks.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:Microsoft.VisualBasic.PowerPacks.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_D933F607D6409C68A62F0F7179160667"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:MySql.Data, Version=6.4.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_D933F607D6409C68A62F0F7179160667"
+ {
+ "Name" = "8:MySql.Data.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:MySql.Data.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_EB4F6BD2265733BF949406A848FEC7A8"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:Microsoft.ReportViewer.WinForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_EB4F6BD2265733BF949406A848FEC7A8"
+ {
+ "Name" = "8:Microsoft.ReportViewer.WinForms.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:Microsoft.ReportViewer.WinForms.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_F22017C7B4D72521AED825D73F75D87E"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:FastReport.Bars, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_F22017C7B4D72521AED825D73F75D87E"
+ {
+ "Name" = "8:FastReport.Bars.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:FastReport.Bars.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_F4DC61B0BA96E7BD744146A6ACF90BFA"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:FastReport.Service, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_F4DC61B0BA96E7BD744146A6ACF90BFA"
+ {
+ "Name" = "8:FastReport.Service.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:FastReport.Service.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
+ }
+ "FileType"
+ {
+ }
+ "Folder"
+ {
+ "{1525181F-901A-416C-8A58-119130FE478E}:_46CCDEFE231646B59B51D477FF5A8F72"
+ {
+ "Name" = "8:#1916"
+ "AlwaysCreate" = "11:FALSE"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Property" = "8:DesktopFolder"
+ "Folders"
+ {
+ }
+ }
+ "{3C67513D-01DD-4637-8A68-80971EB9504F}:_BDEA8454BBC14DB7937541A89CE1614E"
+ {
+ "DefaultLocation" = "8:[ProgramFiles64Folder][Manufacturer]\\[ProductName]"
+ "Name" = "8:#1925"
+ "AlwaysCreate" = "11:FALSE"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Property" = "8:TARGETDIR"
+ "Folders"
+ {
+ "{9EF0B969-E518-4E46-987F-47570745A589}:_3F992808A0504F368A32C870CDF20C9D"
+ {
+ "Name" = "8:DataBase"
+ "AlwaysCreate" = "11:FALSE"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Property" = "8:_378872A6641B468BB2E6E334E047E30A"
+ "Folders"
+ {
+ }
+ }
+ "{9EF0B969-E518-4E46-987F-47570745A589}:_46C90CE1D4C24B55A97FC3FB99F95A3C"
+ {
+ "Name" = "8:IconFile"
+ "AlwaysCreate" = "11:FALSE"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Property" = "8:_4FCB6C1F6BC54D449860614DE9FD09C3"
+ "Folders"
+ {
+ }
+ }
+ "{9EF0B969-E518-4E46-987F-47570745A589}:_E530F631AAF44B8EA70B803D7ABBD435"
+ {
+ "Name" = "8:ReportMd"
+ "AlwaysCreate" = "11:FALSE"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Property" = "8:_087FFE6996004EC1B19D41DF324C91B3"
+ "Folders"
+ {
+ }
+ }
+ }
+ }
+ "{1525181F-901A-416C-8A58-119130FE478E}:_F4799DFE080D4F75B52C95BD56979B14"
+ {
+ "Name" = "8:#1919"
+ "AlwaysCreate" = "11:FALSE"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Property" = "8:ProgramMenuFolder"
+ "Folders"
+ {
+ "{9EF0B969-E518-4E46-987F-47570745A589}:_812977C76AFA4A1D8D2DF0A475B74F44"
+ {
+ "Name" = "8:CleanMachine"
+ "AlwaysCreate" = "11:FALSE"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Property" = "8:_F79DF6D6801B435488F29E694E199051"
+ "Folders"
+ {
+ }
+ }
+ }
+ }
+ }
+ "LaunchCondition"
+ {
+ }
+ "Locator"
+ {
+ }
+ "MsiBootstrapper"
+ {
+ "LangId" = "3:2052"
+ "RequiresElevation" = "11:FALSE"
+ }
+ "Product"
+ {
+ "Name" = "8:Microsoft Visual Studio"
+ "ProductName" = "8:CleanMachineControl"
+ "ProductCode" = "8:{04DDBE59-A6FD-47A5-8338-18620C0DEAAF}"
+ "PackageCode" = "8:{64872554-41FA-4CD7-93C4-B1A811BE05BD}"
+ "UpgradeCode" = "8:{CBF0496A-2FC0-4CEF-88E2-BC6E647D9823}"
+ "AspNetVersion" = "8:4.0.30319.0"
+ "RestartWWWService" = "11:FALSE"
+ "RemovePreviousVersions" = "11:TRUE"
+ "DetectNewerInstalledVersion" = "11:TRUE"
+ "InstallAllUsers" = "11:TRUE"
+ "ProductVersion" = "8:1.0.35"
+ "Manufacturer" = "8:南兴装备股份有限公司"
+ "ARPHELPTELEPHONE" = "8:"
+ "ARPHELPLINK" = "8:"
+ "Title" = "8:CleanMachineSoftware_Setup"
+ "Subject" = "8:"
+ "ARPCONTACT" = "8:无锡南兴装备有限公司"
+ "Keywords" = "8:"
+ "ARPCOMMENTS" = "8:"
+ "ARPURLINFOABOUT" = "8:http://www.nanxing.com/"
+ "ARPPRODUCTICON" = "8:"
+ "ARPIconIndex" = "3:0"
+ "SearchPath" = "8:"
+ "UseSystemSearchPath" = "11:TRUE"
+ "TargetPlatform" = "3:1"
+ "PreBuildEvent" = "8:"
+ "PostBuildEvent" = "8:"
+ "RunPostBuildEvent" = "3:0"
+ }
+ "Registry"
+ {
+ "HKLM"
+ {
+ "Keys"
+ {
+ "{60EA8692-D2D5-43EB-80DC-7906BF13D6EF}:_8611364B6D75464A86C8C55065ECCF50"
+ {
+ "Name" = "8:Software"
+ "Condition" = "8:"
+ "AlwaysCreate" = "11:FALSE"
+ "DeleteAtUninstall" = "11:FALSE"
+ "Transitive" = "11:FALSE"
+ "Keys"
+ {
+ "{60EA8692-D2D5-43EB-80DC-7906BF13D6EF}:_8B18D30A4AF348D9914B361E0E668A69"
+ {
+ "Name" = "8:[Manufacturer]"
+ "Condition" = "8:"
+ "AlwaysCreate" = "11:FALSE"
+ "DeleteAtUninstall" = "11:FALSE"
+ "Transitive" = "11:FALSE"
+ "Keys"
+ {
+ }
+ "Values"
+ {
+ }
+ }
+ }
+ "Values"
+ {
+ }
+ }
+ }
+ }
+ "HKCU"
+ {
+ "Keys"
+ {
+ "{60EA8692-D2D5-43EB-80DC-7906BF13D6EF}:_8F27192BC08A4FCAA6427621A21A5CE6"
+ {
+ "Name" = "8:Software"
+ "Condition" = "8:"
+ "AlwaysCreate" = "11:FALSE"
+ "DeleteAtUninstall" = "11:FALSE"
+ "Transitive" = "11:FALSE"
+ "Keys"
+ {
+ "{60EA8692-D2D5-43EB-80DC-7906BF13D6EF}:_2B8A64C745C64941B2D90EF8C0692AF4"
+ {
+ "Name" = "8:[Manufacturer]"
+ "Condition" = "8:"
+ "AlwaysCreate" = "11:FALSE"
+ "DeleteAtUninstall" = "11:FALSE"
+ "Transitive" = "11:FALSE"
+ "Keys"
+ {
+ }
+ "Values"
+ {
+ }
+ }
+ }
+ "Values"
+ {
+ }
+ }
+ }
+ }
+ "HKCR"
+ {
+ "Keys"
+ {
+ }
+ }
+ "HKU"
+ {
+ "Keys"
+ {
+ }
+ }
+ "HKPU"
+ {
+ "Keys"
+ {
+ }
+ }
+ }
+ "Sequences"
+ {
+ }
+ "Shortcut"
+ {
+ "{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_20DFE396BF4041DB9D593D218F975BB1"
+ {
+ "Name" = "8:uninstall"
+ "Arguments" = "8:/x {04DDBE59-A6FD-47A5-8338-18620C0DEAAF}"
+ "Description" = "8:"
+ "ShowCmd" = "3:1"
+ "IconIndex" = "3:0"
+ "Transitive" = "11:FALSE"
+ "Target" = "8:_C922D160D7BF48E5AA5B50EF3B68B0C7"
+ "Folder" = "8:_812977C76AFA4A1D8D2DF0A475B74F44"
+ "WorkingFolder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Icon" = "8:_1A6100AFF4E94FEE86BCD66A1EE84A48"
+ "Feature" = "8:"
+ }
+ "{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_4C487F200786485AB7BFF077CB715736"
+ {
+ "Name" = "8:CleanMachineControl"
+ "Arguments" = "8:"
+ "Description" = "8:"
+ "ShowCmd" = "3:1"
+ "IconIndex" = "3:0"
+ "Transitive" = "11:FALSE"
+ "Target" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "Folder" = "8:_812977C76AFA4A1D8D2DF0A475B74F44"
+ "WorkingFolder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Icon" = "8:_8F4670755C0B41B5A21092BD97C7A436"
+ "Feature" = "8:"
+ }
+ "{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_57F7E6E3642140AA8BD57B77D2E4CF33"
+ {
+ "Name" = "8:CleanMachineControl"
+ "Arguments" = "8:"
+ "Description" = "8:"
+ "ShowCmd" = "3:1"
+ "IconIndex" = "3:0"
+ "Transitive" = "11:FALSE"
+ "Target" = "8:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ "Folder" = "8:_46CCDEFE231646B59B51D477FF5A8F72"
+ "WorkingFolder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Icon" = "8:_409BF809E1624C38A452703B10021C1F"
+ "Feature" = "8:"
+ }
+ }
+ "UserInterface"
+ {
+ "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_054ADA01728D4298A8634FEA9766AB07"
+ {
+ "Name" = "8:#1902"
+ "Sequence" = "3:1"
+ "Attributes" = "3:3"
+ "Dialogs"
+ {
+ "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_24984479E4C64B6A839EE49D6831A604"
+ {
+ "Sequence" = "3:100"
+ "DisplayName" = "8:已完成"
+ "UseDynamicProperties" = "11:TRUE"
+ "IsDependency" = "11:FALSE"
+ "SourcePath" = "8:\\VsdFinishedDlg.wid"
+ "Properties"
+ {
+ "BannerBitmap"
+ {
+ "Name" = "8:BannerBitmap"
+ "DisplayName" = "8:#1001"
+ "Description" = "8:#1101"
+ "Type" = "3:8"
+ "ContextData" = "8:Bitmap"
+ "Attributes" = "3:4"
+ "Setting" = "3:1"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ "UpdateText"
+ {
+ "Name" = "8:UpdateText"
+ "DisplayName" = "8:#1058"
+ "Description" = "8:#1158"
+ "Type" = "3:15"
+ "ContextData" = "8:"
+ "Attributes" = "3:0"
+ "Setting" = "3:1"
+ "Value" = "8:#1258"
+ "DefaultValue" = "8:#1258"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ }
+ }
+ }
+ }
+ "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_2612A45EB23F4234BCDD9C19F34F5142"
+ {
+ "Name" = "8:#1901"
+ "Sequence" = "3:1"
+ "Attributes" = "3:2"
+ "Dialogs"
+ {
+ "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_27DB9B96401F41A699A456521CA124C4"
+ {
+ "Sequence" = "3:100"
+ "DisplayName" = "8:进度"
+ "UseDynamicProperties" = "11:TRUE"
+ "IsDependency" = "11:FALSE"
+ "SourcePath" = "8:\\VsdProgressDlg.wid"
+ "Properties"
+ {
+ "BannerBitmap"
+ {
+ "Name" = "8:BannerBitmap"
+ "DisplayName" = "8:#1001"
+ "Description" = "8:#1101"
+ "Type" = "3:8"
+ "ContextData" = "8:Bitmap"
+ "Attributes" = "3:4"
+ "Setting" = "3:1"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ "ShowProgress"
+ {
+ "Name" = "8:ShowProgress"
+ "DisplayName" = "8:#1009"
+ "Description" = "8:#1109"
+ "Type" = "3:5"
+ "ContextData" = "8:1;True=1;False=0"
+ "Attributes" = "3:0"
+ "Setting" = "3:0"
+ "Value" = "3:1"
+ "DefaultValue" = "3:1"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ }
+ }
+ }
+ }
+ "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_4E0F599F58B947B4B3FCB123B0165D6F"
+ {
+ "Name" = "8:#1902"
+ "Sequence" = "3:2"
+ "Attributes" = "3:3"
+ "Dialogs"
+ {
+ "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_9196D795E97C470F86609EC0591E1D19"
+ {
+ "Sequence" = "3:100"
+ "DisplayName" = "8:已完成"
+ "UseDynamicProperties" = "11:TRUE"
+ "IsDependency" = "11:FALSE"
+ "SourcePath" = "8:\\VsdAdminFinishedDlg.wid"
+ "Properties"
+ {
+ "BannerBitmap"
+ {
+ "Name" = "8:BannerBitmap"
+ "DisplayName" = "8:#1001"
+ "Description" = "8:#1101"
+ "Type" = "3:8"
+ "ContextData" = "8:Bitmap"
+ "Attributes" = "3:4"
+ "Setting" = "3:1"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ }
+ }
+ }
+ }
+ "{2479F3F5-0309-486D-8047-8187E2CE5BA0}:_6F698F7444014A679AEAFFEA67D31822"
+ {
+ "UseDynamicProperties" = "11:FALSE"
+ "IsDependency" = "11:FALSE"
+ "SourcePath" = "8:\\VsdBasicDialogs.wim"
+ }
+ "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_84FE72361076412B9CCF9FE75ADBDC2A"
+ {
+ "Name" = "8:#1900"
+ "Sequence" = "3:2"
+ "Attributes" = "3:1"
+ "Dialogs"
+ {
+ "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_884AC072F0E840DDB64A3F50A19BE5C9"
+ {
+ "Sequence" = "3:100"
+ "DisplayName" = "8:欢迎使用"
+ "UseDynamicProperties" = "11:TRUE"
+ "IsDependency" = "11:FALSE"
+ "SourcePath" = "8:\\VsdAdminWelcomeDlg.wid"
+ "Properties"
+ {
+ "BannerBitmap"
+ {
+ "Name" = "8:BannerBitmap"
+ "DisplayName" = "8:#1001"
+ "Description" = "8:#1101"
+ "Type" = "3:8"
+ "ContextData" = "8:Bitmap"
+ "Attributes" = "3:4"
+ "Setting" = "3:1"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ "CopyrightWarning"
+ {
+ "Name" = "8:CopyrightWarning"
+ "DisplayName" = "8:#1002"
+ "Description" = "8:#1102"
+ "Type" = "3:3"
+ "ContextData" = "8:"
+ "Attributes" = "3:0"
+ "Setting" = "3:1"
+ "Value" = "8:#1202"
+ "DefaultValue" = "8:#1202"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ "Welcome"
+ {
+ "Name" = "8:Welcome"
+ "DisplayName" = "8:#1003"
+ "Description" = "8:#1103"
+ "Type" = "3:3"
+ "ContextData" = "8:"
+ "Attributes" = "3:0"
+ "Setting" = "3:1"
+ "Value" = "8:#1203"
+ "DefaultValue" = "8:#1203"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ }
+ }
+ "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_97B3CA9143964FD682A82558ECC132AC"
+ {
+ "Sequence" = "3:300"
+ "DisplayName" = "8:确认安装"
+ "UseDynamicProperties" = "11:TRUE"
+ "IsDependency" = "11:FALSE"
+ "SourcePath" = "8:\\VsdAdminConfirmDlg.wid"
+ "Properties"
+ {
+ "BannerBitmap"
+ {
+ "Name" = "8:BannerBitmap"
+ "DisplayName" = "8:#1001"
+ "Description" = "8:#1101"
+ "Type" = "3:8"
+ "ContextData" = "8:Bitmap"
+ "Attributes" = "3:4"
+ "Setting" = "3:1"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ }
+ }
+ "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_A40D122526F2406B96B572801CF28417"
+ {
+ "Sequence" = "3:200"
+ "DisplayName" = "8:安装文件夹"
+ "UseDynamicProperties" = "11:TRUE"
+ "IsDependency" = "11:FALSE"
+ "SourcePath" = "8:\\VsdAdminFolderDlg.wid"
+ "Properties"
+ {
+ "BannerBitmap"
+ {
+ "Name" = "8:BannerBitmap"
+ "DisplayName" = "8:#1001"
+ "Description" = "8:#1101"
+ "Type" = "3:8"
+ "ContextData" = "8:Bitmap"
+ "Attributes" = "3:4"
+ "Setting" = "3:1"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ }
+ }
+ }
+ }
+ "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_A9603929AE424C47BD8EA4EAFC5F3E9A"
+ {
+ "Name" = "8:#1900"
+ "Sequence" = "3:1"
+ "Attributes" = "3:1"
+ "Dialogs"
+ {
+ "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_0EEA2E4390764BFAA7703D53CD618828"
+ {
+ "Sequence" = "3:200"
+ "DisplayName" = "8:安装文件夹"
+ "UseDynamicProperties" = "11:TRUE"
+ "IsDependency" = "11:FALSE"
+ "SourcePath" = "8:\\VsdFolderDlg.wid"
+ "Properties"
+ {
+ "BannerBitmap"
+ {
+ "Name" = "8:BannerBitmap"
+ "DisplayName" = "8:#1001"
+ "Description" = "8:#1101"
+ "Type" = "3:8"
+ "ContextData" = "8:Bitmap"
+ "Attributes" = "3:4"
+ "Setting" = "3:1"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ "InstallAllUsersVisible"
+ {
+ "Name" = "8:InstallAllUsersVisible"
+ "DisplayName" = "8:#1059"
+ "Description" = "8:#1159"
+ "Type" = "3:5"
+ "ContextData" = "8:1;True=1;False=0"
+ "Attributes" = "3:0"
+ "Setting" = "3:0"
+ "Value" = "3:1"
+ "DefaultValue" = "3:1"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ }
+ }
+ "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_A9EFBD1CB6A945E19785BB30D25D5F57"
+ {
+ "Sequence" = "3:100"
+ "DisplayName" = "8:欢迎使用"
+ "UseDynamicProperties" = "11:TRUE"
+ "IsDependency" = "11:FALSE"
+ "SourcePath" = "8:\\VsdWelcomeDlg.wid"
+ "Properties"
+ {
+ "BannerBitmap"
+ {
+ "Name" = "8:BannerBitmap"
+ "DisplayName" = "8:#1001"
+ "Description" = "8:#1101"
+ "Type" = "3:8"
+ "ContextData" = "8:Bitmap"
+ "Attributes" = "3:4"
+ "Setting" = "3:1"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ "CopyrightWarning"
+ {
+ "Name" = "8:CopyrightWarning"
+ "DisplayName" = "8:#1002"
+ "Description" = "8:#1102"
+ "Type" = "3:3"
+ "ContextData" = "8:"
+ "Attributes" = "3:0"
+ "Setting" = "3:1"
+ "Value" = "8:#1202"
+ "DefaultValue" = "8:#1202"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ "Welcome"
+ {
+ "Name" = "8:Welcome"
+ "DisplayName" = "8:#1003"
+ "Description" = "8:#1103"
+ "Type" = "3:3"
+ "ContextData" = "8:"
+ "Attributes" = "3:0"
+ "Setting" = "3:1"
+ "Value" = "8:#1203"
+ "DefaultValue" = "8:#1203"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ }
+ }
+ "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_C0106FFEADCB44889AE49EF083B2D678"
+ {
+ "Sequence" = "3:300"
+ "DisplayName" = "8:确认安装"
+ "UseDynamicProperties" = "11:TRUE"
+ "IsDependency" = "11:FALSE"
+ "SourcePath" = "8:\\VsdConfirmDlg.wid"
+ "Properties"
+ {
+ "BannerBitmap"
+ {
+ "Name" = "8:BannerBitmap"
+ "DisplayName" = "8:#1001"
+ "Description" = "8:#1101"
+ "Type" = "3:8"
+ "ContextData" = "8:Bitmap"
+ "Attributes" = "3:4"
+ "Setting" = "3:1"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ }
+ }
+ }
+ }
+ "{2479F3F5-0309-486D-8047-8187E2CE5BA0}:_D95AD36B4B504370B8AEFEE0E3E79645"
+ {
+ "UseDynamicProperties" = "11:FALSE"
+ "IsDependency" = "11:FALSE"
+ "SourcePath" = "8:\\VsdUserInterface.wim"
+ }
+ "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_EFE9CF5CE296472EABBCD5E4E62319A9"
+ {
+ "Name" = "8:#1901"
+ "Sequence" = "3:2"
+ "Attributes" = "3:2"
+ "Dialogs"
+ {
+ "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_5CA104F8363E4CEF92CF24D63D07D088"
+ {
+ "Sequence" = "3:100"
+ "DisplayName" = "8:进度"
+ "UseDynamicProperties" = "11:TRUE"
+ "IsDependency" = "11:FALSE"
+ "SourcePath" = "8:\\VsdAdminProgressDlg.wid"
+ "Properties"
+ {
+ "BannerBitmap"
+ {
+ "Name" = "8:BannerBitmap"
+ "DisplayName" = "8:#1001"
+ "Description" = "8:#1101"
+ "Type" = "3:8"
+ "ContextData" = "8:Bitmap"
+ "Attributes" = "3:4"
+ "Setting" = "3:1"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ "ShowProgress"
+ {
+ "Name" = "8:ShowProgress"
+ "DisplayName" = "8:#1009"
+ "Description" = "8:#1109"
+ "Type" = "3:5"
+ "ContextData" = "8:1;True=1;False=0"
+ "Attributes" = "3:0"
+ "Setting" = "3:0"
+ "Value" = "3:1"
+ "DefaultValue" = "3:1"
+ "UsePlugInResources" = "11:TRUE"
+ }
+ }
+ }
+ }
+ }
+ }
+ "MergeModule"
+ {
+ }
+ "ProjectOutput"
+ {
+ "{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_5FC37A1DF76E4F40A7248ECE3314B5D6"
+ {
+ "SourcePath" = "8:..\\CleanMachineHMI\\obj\\Debug\\CleanMachineHMI.exe"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_BDEA8454BBC14DB7937541A89CE1614E"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:FALSE"
+ "IsolateTo" = "8:"
+ "ProjectOutputGroupRegister" = "3:1"
+ "OutputConfiguration" = "8:"
+ "OutputGroupCanonicalName" = "8:Built"
+ "OutputProjectGuid" = "8:{9CF77369-B471-4476-9F42-779945113EA5}"
+ "ShowKeyOutput" = "11:TRUE"
+ "ExcludeFilters"
+ {
+ }
+ }
+ }
+ }
+}
diff --git a/LeadDataBaseUtility/App.config b/LeadDataBaseUtility/App.config
new file mode 100644
index 0000000..d5d0df3
--- /dev/null
+++ b/LeadDataBaseUtility/App.config
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ 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..f4335fa
--- /dev/null
+++ b/LeadDataBaseUtility/LeadDataBaseUtility.csproj
@@ -0,0 +1,123 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}
+ Library
+ Properties
+ LeadDataBaseUtility
+ LeadDataBaseUtility
+ v4.5
+ 512
+
+
+
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+ x64
+ 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
+
+
+
+ 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/LeadDbHelperMySQL.cs b/LeadDataBaseUtility/LeadDbHelperMySQL.cs
new file mode 100644
index 0000000..fda92a6
--- /dev/null
+++ b/LeadDataBaseUtility/LeadDbHelperMySQL.cs
@@ -0,0 +1,636 @@
+using MySql.Data.MySqlClient;
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace LeadDataBaseUtility
+{
+ ///
+ /// Copyright (C) LEAD
+ /// 数据访问抽象基础类(基于MySql)
+ /// 允许修改、添加满足自己项目的需要。
+ /// 添加、修改后请详细注释。违者会强制删除不予采用。
+ ///
+ public abstract class LeadDbHelperMySQL
+ {
+ public static string connectionString = LeadConfigureConnectionString.getConnectionString("LeadMySql");
+ public LeadDbHelperMySQL()
+ {
+ }
+
+ #region 公用方法
+ ///
+ /// 得到最大值
+ ///
+ ///
+ ///
+ ///
+ public static int GetMaxID(string FieldName, string TableName)
+ {
+ string strsql = "select max(" + FieldName + ")+1 from " + TableName;
+ object obj = GetSingle(strsql);
+ if (obj == null)
+ {
+ return 1;
+ }
+ else
+ {
+ return int.Parse(obj.ToString());
+ }
+ }
+ ///
+ /// 是否存在
+ ///
+ ///
+ ///
+ public static bool Exists(string strSql)
+ {
+ object obj = GetSingle(strSql);
+ int cmdresult;
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ cmdresult = 0;
+ }
+ else
+ {
+ cmdresult = int.Parse(obj.ToString());
+ }
+ if (cmdresult == 0)
+ {
+ return false;
+ }
+ else
+ {
+ return true;
+ }
+ }
+ ///
+ /// 是否存在(基于MySqlParameter)
+ ///
+ ///
+ ///
+ ///
+ public static bool Exists(string strSql, params MySqlParameter[] cmdParms)
+ {
+ object obj = GetSingle(strSql, cmdParms);
+ int cmdresult;
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ cmdresult = 0;
+ }
+ else
+ {
+ cmdresult = int.Parse(obj.ToString());
+ }
+ if (cmdresult == 0)
+ {
+ return false;
+ }
+ else
+ {
+ return true;
+ }
+ }
+ #endregion
+
+ #region 执行简单SQL语句
+
+ ///
+ /// 执行SQL语句,返回影响的记录数
+ ///
+ /// SQL语句
+ /// 影响的记录数
+ public static int ExecuteSql(string SQLString)
+ {
+ using (MySqlConnection connection = new MySqlConnection(connectionString))
+ {
+ using (MySqlCommand cmd = new MySqlCommand(SQLString, connection))
+ {
+ try
+ {
+ connection.Open();
+ int rows = cmd.ExecuteNonQuery();
+ return rows;
+ }
+ catch (MySql.Data.MySqlClient.MySqlException e)
+ {
+ connection.Close();
+ throw e;
+ }
+ }
+ }
+ }
+
+ public static int ExecuteSqlByTime(string SQLString, int Times)
+ {
+ using (MySqlConnection connection = new MySqlConnection(connectionString))
+ {
+ using (MySqlCommand cmd = new MySqlCommand(SQLString, connection))
+ {
+ try
+ {
+ connection.Open();
+ cmd.CommandTimeout = Times;
+ int rows = cmd.ExecuteNonQuery();
+ return rows;
+ }
+ catch (MySql.Data.MySqlClient.MySqlException e)
+ {
+ connection.Close();
+ throw e;
+ }
+ }
+ }
+ }
+
+ ///
+ /// 执行多条SQL语句,实现数据库事务。
+ ///
+ /// 多条SQL语句
+ public static int ExecuteSqlTran(List SQLStringList)
+ {
+ using (MySqlConnection conn = new MySqlConnection(connectionString))
+ {
+ conn.Open();
+ MySqlCommand cmd = new MySqlCommand();
+ cmd.Connection = conn;
+ MySqlTransaction tx = conn.BeginTransaction();
+ cmd.Transaction = tx;
+ try
+ {
+ int count = 0;
+ for (int n = 0; n < SQLStringList.Count; n++)
+ {
+ string strsql = SQLStringList[n];
+ if (strsql.Trim().Length > 1)
+ {
+ cmd.CommandText = strsql;
+ count += cmd.ExecuteNonQuery();
+ }
+ }
+ tx.Commit();
+ return count;
+ }
+ catch
+ {
+ tx.Rollback();
+ return 0;
+ }
+ }
+ }
+ ///
+ /// 执行带一个存储过程参数的的SQL语句。
+ ///
+ /// SQL语句
+ /// 参数内容,比如一个字段是格式复杂的文章,有特殊符号,可以通过这个方式添加
+ /// 影响的记录数
+ public static int ExecuteSql(string SQLString, string content)
+ {
+ using (MySqlConnection connection = new MySqlConnection(connectionString))
+ {
+ MySqlCommand cmd = new MySqlCommand(SQLString, connection);
+ MySql.Data.MySqlClient.MySqlParameter myParameter = new MySql.Data.MySqlClient.MySqlParameter("@content", SqlDbType.NText);
+ myParameter.Value = content;
+ cmd.Parameters.Add(myParameter);
+ try
+ {
+ connection.Open();
+ int rows = cmd.ExecuteNonQuery();
+ return rows;
+ }
+ catch (MySql.Data.MySqlClient.MySqlException e)
+ {
+ throw e;
+ }
+ finally
+ {
+ cmd.Dispose();
+ connection.Close();
+ }
+ }
+ }
+ ///
+ /// 执行带一个存储过程参数的的SQL语句。
+ ///
+ /// SQL语句
+ /// 参数内容,比如一个字段是格式复杂的文章,有特殊符号,可以通过这个方式添加
+ /// 影响的记录数
+ public static object ExecuteSqlGet(string SQLString, string content)
+ {
+ using (MySqlConnection connection = new MySqlConnection(connectionString))
+ {
+ MySqlCommand cmd = new MySqlCommand(SQLString, connection);
+ MySql.Data.MySqlClient.MySqlParameter myParameter = new MySql.Data.MySqlClient.MySqlParameter("@content", SqlDbType.NText);
+ myParameter.Value = content;
+ cmd.Parameters.Add(myParameter);
+ try
+ {
+ connection.Open();
+ object obj = cmd.ExecuteScalar();
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ return null;
+ }
+ else
+ {
+ return obj;
+ }
+ }
+ catch (MySql.Data.MySqlClient.MySqlException e)
+ {
+ throw e;
+ }
+ finally
+ {
+ cmd.Dispose();
+ connection.Close();
+ }
+ }
+ }
+ ///
+ /// 向数据库里插入图像格式的字段(和上面情况类似的另一种实例)
+ ///
+ /// SQL语句
+ /// 图像字节,数据库的字段类型为image的情况
+ /// 影响的记录数
+ public static int ExecuteSqlInsertImg(string strSQL, byte[] fs)
+ {
+ using (MySqlConnection connection = new MySqlConnection(connectionString))
+ {
+ MySqlCommand cmd = new MySqlCommand(strSQL, connection);
+ MySql.Data.MySqlClient.MySqlParameter myParameter = new MySql.Data.MySqlClient.MySqlParameter("@fs", SqlDbType.Image);
+ myParameter.Value = fs;
+ cmd.Parameters.Add(myParameter);
+ try
+ {
+ connection.Open();
+ int rows = cmd.ExecuteNonQuery();
+ return rows;
+ }
+ catch (MySql.Data.MySqlClient.MySqlException e)
+ {
+ throw e;
+ }
+ finally
+ {
+ cmd.Dispose();
+ connection.Close();
+ }
+ }
+ }
+
+ ///
+ /// 执行一条计算查询结果语句,返回查询结果(object)。
+ ///
+ /// 计算查询结果语句
+ /// 查询结果(object)
+ public static object GetSingle(string SQLString)
+ {
+ using (MySqlConnection connection = new MySqlConnection(connectionString))
+ {
+ using (MySqlCommand cmd = new MySqlCommand(SQLString, connection))
+ {
+ try
+ {
+ connection.Open();
+ object obj = cmd.ExecuteScalar();
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ return null;
+ }
+ else
+ {
+ return obj;
+ }
+ }
+ catch (MySql.Data.MySqlClient.MySqlException e)
+ {
+ connection.Close();
+ throw e;
+ }
+ }
+ }
+ }
+ public static object GetSingle(string SQLString, int Times)
+ {
+ using (MySqlConnection connection = new MySqlConnection(connectionString))
+ {
+ using (MySqlCommand cmd = new MySqlCommand(SQLString, connection))
+ {
+ try
+ {
+ connection.Open();
+ cmd.CommandTimeout = Times;
+ object obj = cmd.ExecuteScalar();
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ return null;
+ }
+ else
+ {
+ return obj;
+ }
+ }
+ catch (MySql.Data.MySqlClient.MySqlException e)
+ {
+ connection.Close();
+ throw e;
+ }
+ }
+ }
+ }
+ ///
+ /// 执行查询语句,返回MySqlDataReader ( 注意:调用该方法后,一定要对MySqlDataReader进行Close )
+ ///
+ /// 查询语句
+ /// MySqlDataReader
+ public static MySqlDataReader ExecuteReader(string strSQL)
+ {
+ MySqlConnection connection = new MySqlConnection(connectionString);
+ MySqlCommand cmd = new MySqlCommand(strSQL, connection);
+ try
+ {
+ connection.Open();
+ MySqlDataReader myReader = cmd.ExecuteReader(CommandBehavior.CloseConnection);
+ return myReader;
+ }
+ catch (MySql.Data.MySqlClient.MySqlException e)
+ {
+ throw e;
+ }
+
+ }
+ ///
+ /// 执行查询语句,返回DataSet
+ ///
+ /// 查询语句
+ /// DataSet
+ public static DataSet Query(string SQLString)
+ {
+ using (MySqlConnection connection = new MySqlConnection(connectionString))
+ {
+ DataSet ds = new DataSet();
+ try
+ {
+ connection.Open();
+ MySqlDataAdapter command = new MySqlDataAdapter(SQLString, connection);
+ command.Fill(ds, "ds");
+ }
+ catch (MySql.Data.MySqlClient.MySqlException ex)
+ {
+ throw new Exception(ex.Message);
+ }
+ return ds;
+ }
+ }
+ public static DataSet Query(string SQLString, int Times)
+ {
+ using (MySqlConnection connection = new MySqlConnection(connectionString))
+ {
+ DataSet ds = new DataSet();
+ try
+ {
+ connection.Open();
+ MySqlDataAdapter command = new MySqlDataAdapter(SQLString, connection);
+ command.SelectCommand.CommandTimeout = Times;
+ command.Fill(ds, "ds");
+ }
+ catch (MySql.Data.MySqlClient.MySqlException ex)
+ {
+ throw new Exception(ex.Message);
+ }
+ return ds;
+ }
+ }
+
+
+
+ #endregion
+
+ #region 执行带参数的SQL语句
+
+ ///
+ /// 执行SQL语句,返回影响的记录数
+ ///
+ /// SQL语句
+ /// 影响的记录数
+ public static int ExecuteSql(string SQLString, params MySqlParameter[] cmdParms)
+ {
+ using (MySqlConnection connection = new MySqlConnection(connectionString))
+ {
+ using (MySqlCommand cmd = new MySqlCommand())
+ {
+ try
+ {
+ PrepareCommand(cmd, connection, null, SQLString, cmdParms);
+ int rows = cmd.ExecuteNonQuery();
+ cmd.Parameters.Clear();
+ return rows;
+ }
+ catch (MySql.Data.MySqlClient.MySqlException e)
+ {
+ throw e;
+ }
+ }
+ }
+ }
+
+
+ ///
+ /// 执行多条SQL语句,实现数据库事务。
+ ///
+ /// SQL语句的哈希表(key为sql语句,value是该语句的MySqlParameter[])
+ public static void ExecuteSqlTran(Hashtable SQLStringList)
+ {
+ using (MySqlConnection conn = new MySqlConnection(connectionString))
+ {
+ conn.Open();
+ using (MySqlTransaction trans = conn.BeginTransaction())
+ {
+ MySqlCommand cmd = new MySqlCommand();
+ try
+ {
+ //循环
+ foreach (DictionaryEntry myDE in SQLStringList)
+ {
+ string cmdText = myDE.Key.ToString();
+ MySqlParameter[] cmdParms = (MySqlParameter[])myDE.Value;
+ PrepareCommand(cmd, conn, trans, cmdText, cmdParms);
+ int val = cmd.ExecuteNonQuery();
+ cmd.Parameters.Clear();
+ }
+ trans.Commit();
+ }
+ catch
+ {
+ trans.Rollback();
+ throw;
+ }
+ }
+ }
+ }
+ ///
+ /// 执行多条SQL语句,实现数据库事务。
+ ///
+ /// SQL语句的哈希表(key为sql语句,value是该语句的MySqlParameter[])
+ public static void ExecuteSqlTranWithIndentity(Hashtable SQLStringList)
+ {
+ using (MySqlConnection conn = new MySqlConnection(connectionString))
+ {
+ conn.Open();
+ using (MySqlTransaction trans = conn.BeginTransaction())
+ {
+ MySqlCommand cmd = new MySqlCommand();
+ try
+ {
+ int indentity = 0;
+ //循环
+ foreach (DictionaryEntry myDE in SQLStringList)
+ {
+ string cmdText = myDE.Key.ToString();
+ MySqlParameter[] cmdParms = (MySqlParameter[])myDE.Value;
+ foreach (MySqlParameter q in cmdParms)
+ {
+ if (q.Direction == ParameterDirection.InputOutput)
+ {
+ q.Value = indentity;
+ }
+ }
+ PrepareCommand(cmd, conn, trans, cmdText, cmdParms);
+ int val = cmd.ExecuteNonQuery();
+ foreach (MySqlParameter q in cmdParms)
+ {
+ if (q.Direction == ParameterDirection.Output)
+ {
+ indentity = Convert.ToInt32(q.Value);
+ }
+ }
+ cmd.Parameters.Clear();
+ }
+ trans.Commit();
+ }
+ catch
+ {
+ trans.Rollback();
+ throw;
+ }
+ }
+ }
+ }
+ ///
+ /// 执行一条计算查询结果语句,返回查询结果(object)。
+ ///
+ /// 计算查询结果语句
+ /// 查询结果(object)
+ public static object GetSingle(string SQLString, params MySqlParameter[] cmdParms)
+ {
+ using (MySqlConnection connection = new MySqlConnection(connectionString))
+ {
+ using (MySqlCommand cmd = new MySqlCommand())
+ {
+ try
+ {
+ PrepareCommand(cmd, connection, null, SQLString, cmdParms);
+ object obj = cmd.ExecuteScalar();
+ cmd.Parameters.Clear();
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ return null;
+ }
+ else
+ {
+ return obj;
+ }
+ }
+ catch (MySql.Data.MySqlClient.MySqlException e)
+ {
+ throw e;
+ }
+ }
+ }
+ }
+
+ ///
+ /// 执行查询语句,返回MySqlDataReader ( 注意:调用该方法后,一定要对MySqlDataReader进行Close )
+ ///
+ /// 查询语句
+ /// MySqlDataReader
+ public static MySqlDataReader ExecuteReader(string SQLString, params MySqlParameter[] cmdParms)
+ {
+ MySqlConnection connection = new MySqlConnection(connectionString);
+ MySqlCommand cmd = new MySqlCommand();
+ try
+ {
+ PrepareCommand(cmd, connection, null, SQLString, cmdParms);
+ MySqlDataReader myReader = cmd.ExecuteReader(CommandBehavior.CloseConnection);
+ cmd.Parameters.Clear();
+ return myReader;
+ }
+ catch (MySql.Data.MySqlClient.MySqlException e)
+ {
+ throw e;
+ }
+ }
+
+ ///
+ /// 执行查询语句,返回DataSet
+ ///
+ /// 查询语句
+ /// DataSet
+ public static DataSet Query(string SQLString, params MySqlParameter[] cmdParms)
+ {
+ using (MySqlConnection connection = new MySqlConnection(connectionString))
+ {
+ MySqlCommand cmd = new MySqlCommand();
+ PrepareCommand(cmd, connection, null, SQLString, cmdParms);
+ using (MySqlDataAdapter da = new MySqlDataAdapter(cmd))
+ {
+ DataSet ds = new DataSet();
+ try
+ {
+ da.Fill(ds, "ds");
+ cmd.Parameters.Clear();
+ }
+ catch (MySql.Data.MySqlClient.MySqlException ex)
+ {
+ throw new Exception(ex.Message);
+ }
+ return ds;
+ }
+ }
+ }
+
+
+ private static void PrepareCommand(MySqlCommand cmd, MySqlConnection conn, MySqlTransaction trans, string cmdText, MySqlParameter[] cmdParms)
+ {
+ if (conn.State != ConnectionState.Open)
+ conn.Open();
+ cmd.Connection = conn;
+ cmd.CommandText = cmdText;
+ if (trans != null)
+ cmd.Transaction = trans;
+ cmd.CommandType = CommandType.Text;//cmdType;
+ if (cmdParms != null)
+ {
+
+
+ foreach (MySqlParameter parameter in cmdParms)
+ {
+ if ((parameter.Direction == ParameterDirection.InputOutput || parameter.Direction == ParameterDirection.Input) &&
+ (parameter.Value == null))
+ {
+ parameter.Value = DBNull.Value;
+ }
+ cmd.Parameters.Add(parameter);
+ }
+ }
+ }
+
+ #endregion
+
+ }
+}
diff --git a/LeadDataBaseUtility/LeadDbHelperOracle.cs b/LeadDataBaseUtility/LeadDbHelperOracle.cs
new file mode 100644
index 0000000..d48f4d3
--- /dev/null
+++ b/LeadDataBaseUtility/LeadDbHelperOracle.cs
@@ -0,0 +1,581 @@
+using Oracle.ManagedDataAccess.Client;
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace LeadDataBaseUtility
+{
+ ///
+ /// Copyright20181102 (C) sunyalong
+ /// 数据访问抽象基础类(基于Oracle.ManagedDataAccess)
+ /// 允许修改、添加满足自己项目的需要。
+ /// 添加、修改后请详细注释。违者会强制删除不予采用。
+ ///
+ public abstract class LeadDbHelperOracle
+ {
+ public static string connectionString = LeadConfigureConnectionString.getConnectionString("LeadOracle");
+ public LeadDbHelperOracle()
+ {
+
+ }
+
+ #region 公用方法
+
+ public static int GetMaxID(string FieldName, string TableName)
+ {
+ string strsql = "select max(" + FieldName + ")+1 from " + TableName;
+ object obj = GetSingle(strsql);
+ if (obj == null)
+ {
+ return 1;
+ }
+ else
+ {
+ return int.Parse(obj.ToString());
+ }
+ }
+ public static bool Exists(string strSql)
+ {
+ object obj = GetSingle(strSql);
+ int cmdresult;
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ cmdresult = 0;
+ }
+ else
+ {
+ cmdresult = int.Parse(obj.ToString());
+ }
+ if (cmdresult == 0)
+ {
+ return false;
+ }
+ else
+ {
+ return true;
+ }
+ }
+
+ public static bool Exists(string strSql, params OracleParameter[] cmdParms)
+ {
+ object obj = GetSingle(strSql, cmdParms);
+ int cmdresult;
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ cmdresult = 0;
+ }
+ else
+ {
+ cmdresult = int.Parse(obj.ToString());
+ }
+ if (cmdresult == 0)
+ {
+ return false;
+ }
+ else
+ {
+ return true;
+ }
+ }
+
+
+ #endregion
+
+ #region 执行简单SQL语句
+
+ ///
+ /// 执行SQL语句,返回影响的记录数
+ ///
+ /// SQL语句
+ /// 影响的记录数
+ public static int ExecuteSql(string SQLString)
+ {
+ using (OracleConnection connection = new OracleConnection(connectionString))
+ {
+ using (OracleCommand cmd = new OracleCommand(SQLString, connection))
+ {
+ try
+ {
+ connection.Open();
+ int rows = cmd.ExecuteNonQuery();
+ return rows;
+ }
+ catch (Oracle.ManagedDataAccess.Client.OracleException E)
+ {
+ connection.Close();
+ throw new Exception(E.Message);
+ }
+ }
+ }
+ }
+
+ ///
+ /// 执行多条SQL语句,实现数据库事务。
+ ///
+ /// 多条SQL语句
+ public static void ExecuteSqlTran(ArrayList SQLStringList)
+ {
+ using (OracleConnection conn = new OracleConnection(connectionString))
+ {
+ conn.Open();
+ OracleCommand cmd = new OracleCommand();
+ cmd.Connection = conn;
+ OracleTransaction tx = conn.BeginTransaction();
+ cmd.Transaction = tx;
+ try
+ {
+ for (int n = 0; n < SQLStringList.Count; n++)
+ {
+ string strsql = SQLStringList[n].ToString();
+ if (strsql.Trim().Length > 1)
+ {
+ cmd.CommandText = strsql;
+ cmd.ExecuteNonQuery();
+ }
+ }
+ tx.Commit();
+ }
+ catch (Oracle.ManagedDataAccess.Client.OracleException E)
+ {
+ tx.Rollback();
+ throw new Exception(E.Message);
+ }
+ }
+ }
+ ///
+ /// 执行带一个存储过程参数的的SQL语句。
+ ///
+ /// SQL语句
+ /// 参数内容,比如一个字段是格式复杂的文章,有特殊符号,可以通过这个方式添加
+ /// 影响的记录数
+ public static int ExecuteSql(string SQLString, string content)
+ {
+ using (OracleConnection connection = new OracleConnection(connectionString))
+ {
+ OracleCommand cmd = new OracleCommand(SQLString, connection);
+ Oracle.ManagedDataAccess.Client.OracleParameter myParameter = new Oracle.ManagedDataAccess.Client.OracleParameter("@content", new Object());
+ myParameter.Value = content;
+ cmd.Parameters.Add(myParameter);
+ try
+ {
+ connection.Open();
+ int rows = cmd.ExecuteNonQuery();
+ return rows;
+ }
+ catch (Oracle.ManagedDataAccess.Client.OracleException E)
+ {
+ throw new Exception(E.Message);
+ }
+ finally
+ {
+ cmd.Dispose();
+ connection.Close();
+ }
+ }
+ }
+ ///
+ /// 向数据库里插入图像格式的字段(和上面情况类似的另一种实例)
+ ///
+ /// SQL语句
+ /// 图像字节,数据库的字段类型为image的情况
+ /// 影响的记录数
+ public static int ExecuteSqlInsertImg(string strSQL, byte[] fs)
+ {
+ using (OracleConnection connection = new OracleConnection(connectionString))
+ {
+ OracleCommand cmd = new OracleCommand(strSQL, connection);
+ Oracle.ManagedDataAccess.Client.OracleParameter myParameter = new Oracle.ManagedDataAccess.Client.OracleParameter("@fs", new Object());
+ myParameter.Value = fs;
+ cmd.Parameters.Add(myParameter);
+ try
+ {
+ connection.Open();
+ int rows = cmd.ExecuteNonQuery();
+ return rows;
+ }
+ catch (Oracle.ManagedDataAccess.Client.OracleException E)
+ {
+ throw new Exception(E.Message);
+ }
+ finally
+ {
+ cmd.Dispose();
+ connection.Close();
+ }
+ }
+ }
+
+ ///
+ /// 执行一条计算查询结果语句,返回查询结果(object)。
+ ///
+ /// 计算查询结果语句
+ /// 查询结果(object)
+ public static object GetSingle(string SQLString)
+ {
+ using (OracleConnection connection = new OracleConnection(connectionString))
+ {
+ using (OracleCommand cmd = new OracleCommand(SQLString, connection))
+ {
+ try
+ {
+ connection.Open();
+ object obj = cmd.ExecuteScalar();
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ return null;
+ }
+ else
+ {
+ return obj;
+ }
+ }
+ catch (Oracle.ManagedDataAccess.Client.OracleException e)
+ {
+ connection.Close();
+ throw new Exception(e.Message);
+ }
+ }
+ }
+ }
+ ///
+ /// 执行查询语句,返回OracleDataReader ( 注意:调用该方法后,一定要对SqlDataReader进行Close )
+ ///
+ /// 查询语句
+ /// OracleDataReader
+ public static OracleDataReader ExecuteReader(string strSQL)
+ {
+ OracleConnection connection = new OracleConnection(connectionString);
+ OracleCommand cmd = new OracleCommand(strSQL, connection);
+ try
+ {
+ connection.Open();
+ OracleDataReader myReader = cmd.ExecuteReader(CommandBehavior.CloseConnection);
+ return myReader;
+ }
+ catch (Oracle.ManagedDataAccess.Client.OracleException e)
+ {
+ throw new Exception(e.Message);
+ }
+
+ }
+ ///
+ /// 执行查询语句,返回DataSet
+ ///
+ /// 查询语句
+ /// DataSet
+ public static DataSet Query(string SQLString)
+ {
+ using (OracleConnection connection = new OracleConnection(connectionString))
+ {
+ DataSet ds = new DataSet();
+ try
+ {
+ connection.Open();
+ OracleDataAdapter command = new OracleDataAdapter(SQLString, connection);
+ command.Fill(ds, "ds");
+ }
+ catch (Oracle.ManagedDataAccess.Client.OracleException ex)
+ {
+ throw new Exception(ex.Message);
+ }
+ return ds;
+ }
+ }
+
+
+ #endregion
+
+ #region 执行带参数的SQL语句
+
+ ///
+ /// 执行SQL语句,返回影响的记录数
+ ///
+ /// SQL语句
+ /// 影响的记录数
+ public static int ExecuteSql(string SQLString, params OracleParameter[] cmdParms)
+ {
+ using (OracleConnection connection = new OracleConnection(connectionString))
+ {
+ using (OracleCommand cmd = new OracleCommand())
+ {
+ try
+ {
+ PrepareCommand(cmd, connection, null, SQLString, cmdParms);
+ int rows = cmd.ExecuteNonQuery();
+ cmd.Parameters.Clear();
+ return rows;
+ }
+ catch (Oracle.ManagedDataAccess.Client.OracleException E)
+ {
+ throw new Exception(E.Message);
+ }
+ }
+ }
+ }
+
+
+ ///
+ /// 执行多条SQL语句,实现数据库事务。
+ ///
+ /// SQL语句的哈希表(key为sql语句,value是该语句的OracleParameter[])
+ public static void ExecuteSqlTran(Hashtable SQLStringList)
+ {
+ using (OracleConnection conn = new OracleConnection(connectionString))
+ {
+ conn.Open();
+ using (OracleTransaction trans = conn.BeginTransaction())
+ {
+ OracleCommand cmd = new OracleCommand();
+ try
+ {
+ //循环
+ foreach (DictionaryEntry myDE in SQLStringList)
+ {
+ string cmdText = myDE.Key.ToString();
+ OracleParameter[] cmdParms = (OracleParameter[])myDE.Value;
+ PrepareCommand(cmd, conn, trans, cmdText, cmdParms);
+ int val = cmd.ExecuteNonQuery();
+ cmd.Parameters.Clear();
+
+ trans.Commit();
+ }
+ }
+ catch
+ {
+ trans.Rollback();
+ throw;
+ }
+ }
+ }
+ }
+
+
+ ///
+ /// 执行一条计算查询结果语句,返回查询结果(object)。
+ ///
+ /// 计算查询结果语句
+ /// 查询结果(object)
+ public static object GetSingle(string SQLString, params OracleParameter[] cmdParms)
+ {
+ using (OracleConnection connection = new OracleConnection(connectionString))
+ {
+ using (OracleCommand cmd = new OracleCommand())
+ {
+ try
+ {
+ PrepareCommand(cmd, connection, null, SQLString, cmdParms);
+ object obj = cmd.ExecuteScalar();
+ cmd.Parameters.Clear();
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ return null;
+ }
+ else
+ {
+ return obj;
+ }
+ }
+ catch (Oracle.ManagedDataAccess.Client.OracleException e)
+ {
+ throw new Exception(e.Message);
+ }
+ }
+ }
+ }
+
+ ///
+ /// 执行查询语句,返回OracleDataReader ( 注意:调用该方法后,一定要对SqlDataReader进行Close )
+ ///
+ /// 查询语句
+ /// OracleDataReader
+ public static OracleDataReader ExecuteReader(string SQLString, params OracleParameter[] cmdParms)
+ {
+ OracleConnection connection = new OracleConnection(connectionString);
+ OracleCommand cmd = new OracleCommand();
+ try
+ {
+ PrepareCommand(cmd, connection, null, SQLString, cmdParms);
+ OracleDataReader myReader = cmd.ExecuteReader(CommandBehavior.CloseConnection);
+ cmd.Parameters.Clear();
+ return myReader;
+ }
+ catch (Oracle.ManagedDataAccess.Client.OracleException e)
+ {
+ throw new Exception(e.Message);
+ }
+
+ }
+
+ ///
+ /// 执行查询语句,返回DataSet
+ ///
+ /// 查询语句
+ /// DataSet
+ public static DataSet Query(string SQLString, params OracleParameter[] cmdParms)
+ {
+ using (OracleConnection connection = new OracleConnection(connectionString))
+ {
+ OracleCommand cmd = new OracleCommand();
+ PrepareCommand(cmd, connection, null, SQLString, cmdParms);
+ using (OracleDataAdapter da = new OracleDataAdapter(cmd))
+ {
+ DataSet ds = new DataSet();
+ try
+ {
+ da.Fill(ds, "ds");
+ cmd.Parameters.Clear();
+ }
+ catch (Oracle.ManagedDataAccess.Client.OracleException ex)
+ {
+ throw new Exception(ex.Message);
+ }
+ return ds;
+ }
+ }
+ }
+
+
+ private static void PrepareCommand(OracleCommand cmd, OracleConnection conn, OracleTransaction trans, string cmdText, OracleParameter[] cmdParms)
+ {
+ if (conn.State != ConnectionState.Open)
+ conn.Open();
+ cmd.Connection = conn;
+ cmd.CommandText = cmdText;
+ if (trans != null)
+ cmd.Transaction = trans;
+ cmd.CommandType = CommandType.Text;//cmdType;
+ if (cmdParms != null)
+ {
+ foreach (OracleParameter parm in cmdParms)
+ cmd.Parameters.Add(parm);
+ }
+ }
+
+ #endregion
+
+ #region 存储过程操作
+
+ ///
+ /// 执行存储过程 返回SqlDataReader ( 注意:调用该方法后,一定要对SqlDataReader进行Close )
+ ///
+ /// 存储过程名
+ /// 存储过程参数
+ /// OracleDataReader
+ public static OracleDataReader RunProcedure(string storedProcName, IDataParameter[] parameters)
+ {
+ using (OracleConnection connection = new OracleConnection(connectionString))
+ {
+ OracleDataReader returnReader;
+ connection.Open();
+ OracleCommand command = BuildQueryCommand(connection, storedProcName, parameters);
+ command.CommandType = CommandType.StoredProcedure;
+ returnReader = command.ExecuteReader(CommandBehavior.CloseConnection);
+ return returnReader;
+ }
+ }
+
+
+ ///
+ /// 执行存储过程
+ ///
+ /// 存储过程名
+ /// 存储过程参数
+ /// DataSet结果中的表名
+ /// DataSet
+ public static DataSet RunProcedure(string storedProcName, IDataParameter[] parameters, string tableName)
+ {
+ using (OracleConnection connection = new OracleConnection(connectionString))
+ {
+ DataSet dataSet = new DataSet();
+ connection.Open();
+ OracleDataAdapter sqlDA = new OracleDataAdapter();
+ sqlDA.SelectCommand = BuildQueryCommand(connection, storedProcName, parameters);
+ sqlDA.Fill(dataSet, tableName);
+ connection.Close();
+ return dataSet;
+ }
+ }
+ ///
+ /// 执行带参数的存储过程
+ /// @auther SYL
+ ///
+ /// 存储过程名称
+ /// 参数名称
+ public static void NewRunProcedure(string pro_name, string par_name)
+ {
+ using (OracleConnection connection = new OracleConnection(connectionString))
+ {
+ connection.Open();
+ OracleCommand dr = new OracleCommand(pro_name, connection); //连接存储过程
+ dr.CommandType = CommandType.StoredProcedure; //定义连接的是存储过程
+ OracleParameter op = dr.Parameters.Add("sql_str", OracleDbType.NVarchar2, 2000); //定义参数
+ op.Direction = ParameterDirection.Input;
+ op.Value = par_name;
+ dr.ExecuteNonQuery();
+ connection.Close();
+ }
+ }
+
+ ///
+ /// 构建 OracleCommand 对象(用来返回一个结果集,而不是一个整数值)
+ ///
+ /// 数据库连接
+ /// 存储过程名
+ /// 存储过程参数
+ /// OracleCommand
+ private static OracleCommand BuildQueryCommand(OracleConnection connection, string storedProcName, IDataParameter[] parameters)
+ {
+ OracleCommand command = new OracleCommand(storedProcName, connection);
+ command.CommandType = CommandType.StoredProcedure;
+ foreach (OracleParameter parameter in parameters)
+ {
+ command.Parameters.Add(parameter);
+ }
+ return command;
+ }
+
+
+
+ ///
+ /// 执行存储过程,返回影响的行数
+ ///
+ /// 存储过程名
+ /// 存储过程参数
+ /// 影响的行数
+ ///
+ public static int RunProcedure(string storedProcName, IDataParameter[] parameters, out int rowsAffected)
+ {
+ using (OracleConnection connection = new OracleConnection(connectionString))
+ {
+ int result;
+ connection.Open();
+ OracleCommand command = BuildIntCommand(connection, storedProcName, parameters);
+ rowsAffected = command.ExecuteNonQuery();
+ result = (int)command.Parameters["ReturnValue"].Value;
+ //Connection.Close();
+ return result;
+ }
+ }
+
+ ///
+ /// 创建 OracleCommand 对象实例(用来返回一个整数值)
+ ///
+ /// 存储过程名
+ /// 存储过程参数
+ /// OracleCommand 对象实例
+ private static OracleCommand BuildIntCommand(OracleConnection connection, string storedProcName, IDataParameter[] parameters)
+ {
+ OracleCommand command = BuildQueryCommand(connection, storedProcName, parameters);
+ command.Parameters.Add(new OracleParameter("ReturnValue",
+ OracleDbType.Int32, 4, ParameterDirection.ReturnValue,
+ false, 0, 0, string.Empty, DataRowVersion.Default, null));
+ return command;
+ }
+ #endregion
+
+ }
+}
diff --git a/LeadDataBaseUtility/LeadDbHelperSQLServer.cs b/LeadDataBaseUtility/LeadDbHelperSQLServer.cs
new file mode 100644
index 0000000..43d1de6
--- /dev/null
+++ b/LeadDataBaseUtility/LeadDbHelperSQLServer.cs
@@ -0,0 +1,857 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace LeadDataBaseUtility
+{
+ ///
+ /// Copyright20181102 (C) sunyalong
+ /// 数据访问抽象基础类(基于SQLServer)
+ /// 允许修改、添加满足自己项目的需要。
+ /// 添加、修改后请详细注释。违者会强制删除不予采用。
+ ///
+ public abstract class LeadDbHelperSQLServer
+ {
+ public static string connectionString = LeadConfigureConnectionString.getConnectionString("LeadSqlServer");
+
+ #region 公用方法
+ ///
+ /// 判断是否存在某表的某个字段
+ ///
+ /// 表名称
+ /// 列名称
+ /// 是否存在
+ public static bool ColumnExists(string tableName, string columnName)
+ {
+ string sql = "select count(1) from syscolumns where [id]=object_id('" + tableName + "') and [name]='" + columnName + "'";
+ object res = GetSingle(sql);
+ if (res == null)
+ {
+ return false;
+ }
+ return Convert.ToInt32(res) > 0;
+ }
+ ///
+ /// 获得最大ID
+ ///
+ ///
+ ///
+ ///
+ public static int GetMaxID(string FieldName, string TableName)
+ {
+ try
+ {
+ string strsql = "select max(" + FieldName + ")+1 from " + TableName;
+ object obj = GetSingle(strsql);
+ if (obj == null)
+ {
+ return 1;
+ }
+ else
+ {
+ return int.Parse(obj.ToString());
+ }
+ }
+ catch (Exception ex)
+ {
+
+ throw ex;
+ }
+ }
+ ///
+ /// 判断表中数据是否存在
+ ///
+ /// 表名
+ /// 列名
+ /// 数值
+ /// true表示存在 flase表示不存在
+ public static bool ValueExists(string tableName, string columnName, string value)
+ {
+ try
+ {
+ string sql = "select count(1) from " + tableName + " where " + columnName + " = '" + value + "'";
+ object c = GetSingle(sql);
+ if (c != null && Convert.ToInt32(c) > 0)
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+ catch (Exception ex)
+ {
+
+ throw ex;
+ }
+ }
+
+ public static bool Exists(string strSql)
+ {
+ object obj = GetSingle(strSql);
+ int cmdresult;
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ cmdresult = 0;
+ }
+ else
+ {
+ cmdresult = int.Parse(obj.ToString()); //也可能=0
+ }
+ if (cmdresult == 0)
+ {
+ return false;
+ }
+ else
+ {
+ return true;
+ }
+ }
+ ///
+ /// 表是否存在
+ ///
+ ///
+ ///
+ public static bool TabExists(string TableName)
+ {
+ string strsql = "select count(*) from sysobjects where id = object_id(N'[" + TableName + "]') and OBJECTPROPERTY(id, N'IsUserTable') = 1";
+ //string strsql = "SELECT count(*) FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[" + TableName + "]') AND type in (N'U')";
+ object obj = GetSingle(strsql);
+ int cmdresult;
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ cmdresult = 0;
+ }
+ else
+ {
+ cmdresult = int.Parse(obj.ToString());
+ }
+ if (cmdresult == 0)
+ {
+ return false;
+ }
+ else
+ {
+ return true;
+ }
+ }
+ public static bool Exists(string strSql, params SqlParameter[] cmdParms)
+ {
+ object obj = GetSingle(strSql, cmdParms);
+ int cmdresult;
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ cmdresult = 0;
+ }
+ else
+ {
+ cmdresult = int.Parse(obj.ToString());
+ }
+ if (cmdresult == 0)
+ {
+ return false;
+ }
+ else
+ {
+ return true;
+ }
+ }
+ #endregion
+
+ #region 执行简单SQL语句
+
+ ///
+ /// 执行SQL语句,返回影响的记录数
+ ///
+ /// SQL语句
+ /// 影响的记录数
+ public static int ExecuteSql(string SQLString)
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ using (SqlCommand cmd = new SqlCommand(SQLString, connection))
+ {
+ try
+ {
+ connection.Open();
+ int rows = cmd.ExecuteNonQuery();
+ return rows;
+ }
+ catch (System.Data.SqlClient.SqlException e)
+ {
+ connection.Close();
+ throw e;
+ }
+ }
+ }
+ }
+
+ public static int ExecuteSqlByTime(string SQLString, int Times)
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ using (SqlCommand cmd = new SqlCommand(SQLString, connection))
+ {
+ try
+ {
+ connection.Open();
+ cmd.CommandTimeout = Times;
+ int rows = cmd.ExecuteNonQuery();
+ return rows;
+ }
+ catch (System.Data.SqlClient.SqlException e)
+ {
+ connection.Close();
+ throw e;
+ }
+ }
+ }
+ }
+
+ ///
+ /// 执行多条SQL语句,实现数据库事务。
+ ///
+ /// 多条SQL语句
+ public static int ExecuteSqlTran(List SQLStringList)
+ {
+ using (SqlConnection conn = new SqlConnection(connectionString))
+ {
+ conn.Open();
+ SqlCommand cmd = new SqlCommand();
+ cmd.Connection = conn;
+ SqlTransaction tx = conn.BeginTransaction();
+ cmd.Transaction = tx;
+ try
+ {
+ int count = 0;
+ for (int n = 0; n < SQLStringList.Count; n++)
+ {
+ string strsql = SQLStringList[n];
+ if (strsql.Trim().Length > 1)
+ {
+ cmd.CommandText = strsql;
+ count += cmd.ExecuteNonQuery();
+ }
+ }
+ tx.Commit();
+ return count;
+ }
+ catch (Exception )
+ {
+ tx.Rollback();
+ return 0;
+ }
+ }
+ }
+ ///
+ /// 执行带一个存储过程参数的的SQL语句。
+ ///
+ /// SQL语句
+ /// 参数内容,比如一个字段是格式复杂的文章,有特殊符号,可以通过这个方式添加
+ /// 影响的记录数
+ public static int ExecuteSql(string SQLString, string content)
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ SqlCommand cmd = new SqlCommand(SQLString, connection);
+ System.Data.SqlClient.SqlParameter myParameter = new System.Data.SqlClient.SqlParameter("@content", SqlDbType.NText);
+ myParameter.Value = content;
+ cmd.Parameters.Add(myParameter);
+ try
+ {
+ connection.Open();
+ int rows = cmd.ExecuteNonQuery();
+ return rows;
+ }
+ catch (System.Data.SqlClient.SqlException e)
+ {
+ throw e;
+ }
+ finally
+ {
+ cmd.Dispose();
+ connection.Close();
+ }
+ }
+ }
+ ///
+ /// 执行带一个存储过程参数的的SQL语句。
+ ///
+ /// SQL语句
+ /// 参数内容,比如一个字段是格式复杂的文章,有特殊符号,可以通过这个方式添加
+ /// 影响的记录数
+ public static object ExecuteSqlGet(string SQLString, string content)
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ SqlCommand cmd = new SqlCommand(SQLString, connection);
+ System.Data.SqlClient.SqlParameter myParameter = new System.Data.SqlClient.SqlParameter("@content", SqlDbType.NText);
+ myParameter.Value = content;
+ cmd.Parameters.Add(myParameter);
+ try
+ {
+ connection.Open();
+ object obj = cmd.ExecuteScalar();
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ return null;
+ }
+ else
+ {
+ return obj;
+ }
+ }
+ catch (System.Data.SqlClient.SqlException e)
+ {
+ throw e;
+ }
+ finally
+ {
+ cmd.Dispose();
+ connection.Close();
+ }
+ }
+ }
+ ///
+ /// 向数据库里插入图像格式的字段(和上面情况类似的另一种实例)
+ ///
+ /// SQL语句
+ /// 图像字节,数据库的字段类型为image的情况
+ /// 影响的记录数
+ public static int ExecuteSqlInsertImg(string strSQL, byte[] fs)
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ SqlCommand cmd = new SqlCommand(strSQL, connection);
+ System.Data.SqlClient.SqlParameter myParameter = new System.Data.SqlClient.SqlParameter("@fs", SqlDbType.Image);
+ myParameter.Value = fs;
+ cmd.Parameters.Add(myParameter);
+ try
+ {
+ connection.Open();
+ int rows = cmd.ExecuteNonQuery();
+ return rows;
+ }
+ catch (System.Data.SqlClient.SqlException e)
+ {
+ throw e;
+ }
+ finally
+ {
+ cmd.Dispose();
+ connection.Close();
+ }
+ }
+ }
+
+ ///
+ /// 执行一条计算查询结果语句,返回查询结果(object)。
+ ///
+ /// 计算查询结果语句
+ /// 查询结果(object)
+ public static object GetSingle(string SQLString)
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ using (SqlCommand cmd = new SqlCommand(SQLString, connection))
+ {
+ try
+ {
+ connection.Open();
+ object obj = cmd.ExecuteScalar();
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ return null;
+ }
+ else
+ {
+ return obj;
+ }
+ }
+ catch (System.Data.SqlClient.SqlException e)
+ {
+ connection.Close();
+ throw e;
+ }
+ }
+ }
+ }
+ public static object GetSingle(string SQLString, int Times)
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ using (SqlCommand cmd = new SqlCommand(SQLString, connection))
+ {
+ try
+ {
+ connection.Open();
+ cmd.CommandTimeout = Times;
+ object obj = cmd.ExecuteScalar();
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ return null;
+ }
+ else
+ {
+ return obj;
+ }
+ }
+ catch (System.Data.SqlClient.SqlException e)
+ {
+ connection.Close();
+ throw e;
+ }
+ }
+ }
+ }
+ ///
+ /// 执行查询语句,返回SqlDataReader ( 注意:调用该方法后,一定要对SqlDataReader进行Close )
+ ///
+ /// 查询语句
+ /// SqlDataReader
+ public static SqlDataReader ExecuteReader(string strSQL)
+ {
+ SqlConnection connection = new SqlConnection(connectionString);
+ SqlCommand cmd = new SqlCommand(strSQL, connection);
+ try
+ {
+ connection.Open();
+ SqlDataReader myReader = cmd.ExecuteReader(CommandBehavior.CloseConnection);
+ return myReader;
+ }
+ catch (System.Data.SqlClient.SqlException e)
+ {
+ throw e;
+ }
+
+ }
+ ///
+ /// 执行查询语句,返回DataSet
+ ///
+ /// 查询语句
+ /// DataSet
+ public static DataSet Query(string SQLString)
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ DataSet ds = new DataSet();
+ try
+ {
+ connection.Open();
+ SqlDataAdapter command = new SqlDataAdapter(SQLString, connection);
+ command.Fill(ds, "ds");
+ }
+ catch (System.Data.SqlClient.SqlException ex)
+ {
+ throw new Exception(ex.Message);
+ }
+ return ds;
+ }
+ }
+ public static DataSet Query(string SQLString, int Times)
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ DataSet ds = new DataSet();
+ try
+ {
+ connection.Open();
+ SqlDataAdapter command = new SqlDataAdapter(SQLString, connection);
+ command.SelectCommand.CommandTimeout = Times;
+ command.Fill(ds, "ds");
+ }
+ catch (System.Data.SqlClient.SqlException ex)
+ {
+ throw new Exception(ex.Message);
+ }
+ return ds;
+ }
+ }
+
+
+
+ #endregion
+
+ #region 执行带参数的SQL语句
+
+ ///
+ /// 执行SQL语句,返回影响的记录数
+ ///
+ /// SQL语句
+ /// 影响的记录数
+ public static int ExecuteSql(string SQLString, params SqlParameter[] cmdParms)
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ using (SqlCommand cmd = new SqlCommand())
+ {
+ try
+ {
+ PrepareCommand(cmd, connection, null, SQLString, cmdParms);
+ int rows = cmd.ExecuteNonQuery();
+ cmd.Parameters.Clear();
+ return rows;
+ }
+ catch (System.Data.SqlClient.SqlException e)
+ {
+ throw e;
+ }
+ }
+ }
+ }
+
+
+ ///
+ /// 执行多条SQL语句,实现数据库事务。
+ ///
+ /// SQL语句的哈希表(key为sql语句,value是该语句的SqlParameter[])
+ public static void ExecuteSqlTran(Hashtable SQLStringList)
+ {
+ using (SqlConnection conn = new SqlConnection(connectionString))
+ {
+ conn.Open();
+ using (SqlTransaction trans = conn.BeginTransaction())
+ {
+ SqlCommand cmd = new SqlCommand();
+ try
+ {
+ //循环
+ foreach (DictionaryEntry myDE in SQLStringList)
+ {
+ string cmdText = myDE.Key.ToString();
+ SqlParameter[] cmdParms = (SqlParameter[])myDE.Value;
+ PrepareCommand(cmd, conn, trans, cmdText, cmdParms);
+ int val = cmd.ExecuteNonQuery();
+ cmd.Parameters.Clear();
+ }
+ trans.Commit();
+ }
+ catch
+ {
+ trans.Rollback();
+ throw;
+ }
+ }
+ }
+ }
+
+ ///
+ /// 执行多条SQL语句,实现数据库事务。
+ ///
+ /// SQL语句的哈希表(key为sql语句,value是该语句的SqlParameter[])
+ public static void ExecuteSqlTranWithIndentity(Hashtable SQLStringList)
+ {
+ using (SqlConnection conn = new SqlConnection(connectionString))
+ {
+ conn.Open();
+ using (SqlTransaction trans = conn.BeginTransaction())
+ {
+ SqlCommand cmd = new SqlCommand();
+ try
+ {
+ int indentity = 0;
+ //循环
+ foreach (DictionaryEntry myDE in SQLStringList)
+ {
+ string cmdText = myDE.Key.ToString();
+ SqlParameter[] cmdParms = (SqlParameter[])myDE.Value;
+ foreach (SqlParameter q in cmdParms)
+ {
+ if (q.Direction == ParameterDirection.InputOutput)
+ {
+ q.Value = indentity;
+ }
+ }
+ PrepareCommand(cmd, conn, trans, cmdText, cmdParms);
+ int val = cmd.ExecuteNonQuery();
+ foreach (SqlParameter q in cmdParms)
+ {
+ if (q.Direction == ParameterDirection.Output)
+ {
+ indentity = Convert.ToInt32(q.Value);
+ }
+ }
+ cmd.Parameters.Clear();
+ }
+ trans.Commit();
+ }
+ catch
+ {
+ trans.Rollback();
+ throw;
+ }
+ }
+ }
+ }
+ ///
+ /// 执行一条计算查询结果语句,返回查询结果(object)。
+ ///
+ /// 计算查询结果语句
+ /// 查询结果(object)
+ public static object GetSingle(string SQLString, params SqlParameter[] cmdParms)
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ using (SqlCommand cmd = new SqlCommand())
+ {
+ try
+ {
+ PrepareCommand(cmd, connection, null, SQLString, cmdParms);
+ object obj = cmd.ExecuteScalar();
+ cmd.Parameters.Clear();
+ if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
+ {
+ return null;
+ }
+ else
+ {
+ return obj;
+ }
+ }
+ catch (System.Data.SqlClient.SqlException e)
+ {
+ throw e;
+ }
+ }
+ }
+ }
+
+ ///
+ /// 执行查询语句,返回SqlDataReader ( 注意:调用该方法后,一定要对SqlDataReader进行Close )
+ ///
+ /// 查询语句
+ /// SqlDataReader
+ public static SqlDataReader ExecuteReader(string SQLString, params SqlParameter[] cmdParms)
+ {
+ SqlConnection connection = new SqlConnection(connectionString);
+ SqlCommand cmd = new SqlCommand();
+ try
+ {
+ PrepareCommand(cmd, connection, null, SQLString, cmdParms);
+ SqlDataReader myReader = cmd.ExecuteReader(CommandBehavior.CloseConnection);
+ cmd.Parameters.Clear();
+ return myReader;
+ }
+ catch (System.Data.SqlClient.SqlException e)
+ {
+ throw e;
+ }
+ // finally
+ // {
+ // cmd.Dispose();
+ // connection.Close();
+ // }
+
+ }
+
+ ///
+ /// 执行查询语句,返回DataSet
+ ///
+ /// 查询语句
+ /// DataSet
+ public static DataSet Query(string SQLString, params SqlParameter[] cmdParms)
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ SqlCommand cmd = new SqlCommand();
+ PrepareCommand(cmd, connection, null, SQLString, cmdParms);
+ using (SqlDataAdapter da = new SqlDataAdapter(cmd))
+ {
+ DataSet ds = new DataSet();
+ try
+ {
+ da.Fill(ds, "ds");
+ cmd.Parameters.Clear();
+ }
+ catch (System.Data.SqlClient.SqlException ex)
+ {
+ throw new Exception(ex.Message);
+ }
+ return ds;
+ }
+ }
+ }
+
+
+ private static void PrepareCommand(SqlCommand cmd, SqlConnection conn, SqlTransaction trans, string cmdText, SqlParameter[] cmdParms)
+ {
+ if (conn.State != ConnectionState.Open)
+ conn.Open();
+ cmd.Connection = conn;
+ cmd.CommandText = cmdText;
+ if (trans != null)
+ cmd.Transaction = trans;
+ cmd.CommandType = CommandType.Text;//cmdType;
+ if (cmdParms != null)
+ {
+
+
+ foreach (SqlParameter parameter in cmdParms)
+ {
+ if ((parameter.Direction == ParameterDirection.InputOutput || parameter.Direction == ParameterDirection.Input) &&
+ (parameter.Value == null))
+ {
+ parameter.Value = DBNull.Value;
+ }
+ cmd.Parameters.Add(parameter);
+ }
+ }
+ }
+
+ #endregion
+
+ #region 存储过程操作
+
+ ///
+ /// 执行存储过程,返回SqlDataReader ( 注意:调用该方法后,一定要对SqlDataReader进行Close )
+ ///
+ /// 存储过程名
+ /// 存储过程参数
+ /// SqlDataReader
+ public static SqlDataReader RunProcedure(string storedProcName, IDataParameter[] parameters)
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ SqlDataReader returnReader;
+ connection.Open();
+ SqlCommand command = BuildQueryCommand(connection, storedProcName, parameters);
+ command.CommandType = CommandType.StoredProcedure;
+ returnReader = command.ExecuteReader(CommandBehavior.CloseConnection);
+ return returnReader;
+ }
+ }
+
+
+ ///
+ /// 执行存储过程
+ ///
+ /// 存储过程名
+ /// 存储过程参数
+ /// DataSet结果中的表名
+ /// DataSet
+ public static DataSet RunProcedure(string storedProcName, IDataParameter[] parameters, string tableName)
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ DataSet dataSet = new DataSet();
+ connection.Open();
+ SqlDataAdapter sqlDA = new SqlDataAdapter();
+ sqlDA.SelectCommand = BuildQueryCommand(connection, storedProcName, parameters);
+ sqlDA.Fill(dataSet, tableName);
+ connection.Close();
+ return dataSet;
+ }
+ }
+ public static DataSet RunProcedure(string storedProcName, IDataParameter[] parameters, string tableName, int Times)
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ DataSet dataSet = new DataSet();
+ connection.Open();
+ SqlDataAdapter sqlDA = new SqlDataAdapter();
+ sqlDA.SelectCommand = BuildQueryCommand(connection, storedProcName, parameters);
+ sqlDA.SelectCommand.CommandTimeout = Times;
+ sqlDA.Fill(dataSet, tableName);
+ connection.Close();
+ return dataSet;
+ }
+ }
+
+
+ ///
+ /// 构建 SqlCommand 对象(用来返回一个结果集,而不是一个整数值)
+ ///
+ /// 数据库连接
+ /// 存储过程名
+ /// 存储过程参数
+ /// SqlCommand
+ private static SqlCommand BuildQueryCommand(SqlConnection connection, string storedProcName, IDataParameter[] parameters)
+ {
+ SqlCommand command = new SqlCommand(storedProcName, connection);
+ command.CommandType = CommandType.StoredProcedure;
+ foreach (SqlParameter parameter in parameters)
+ {
+ if (parameter != null)
+ {
+ // 检查未分配值的输出参数,将其分配以DBNull.Value.
+ if ((parameter.Direction == ParameterDirection.InputOutput || parameter.Direction == ParameterDirection.Input) &&
+ (parameter.Value == null))
+ {
+ parameter.Value = DBNull.Value;
+ }
+ command.Parameters.Add(parameter);
+ }
+ }
+
+ return command;
+ }
+
+ ///
+ /// 执行存储过程,返回影响的行数
+ ///
+ /// 存储过程名
+ /// 存储过程参数
+ /// 影响的行数
+ ///
+ public static int RunProcedure(string storedProcName, IDataParameter[] parameters, out int rowsAffected)
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ int result;
+ connection.Open();
+ SqlCommand command = BuildIntCommand(connection, storedProcName, parameters);
+ rowsAffected = command.ExecuteNonQuery();
+ result = (int)command.Parameters["ReturnValue"].Value;
+ //Connection.Close();
+ return result;
+ }
+ }
+
+ ///
+ /// 创建 SqlCommand 对象实例(用来返回一个整数值)
+ ///
+ /// 存储过程名
+ /// 存储过程参数
+ /// SqlCommand 对象实例
+ private static SqlCommand BuildIntCommand(SqlConnection connection, string storedProcName, IDataParameter[] parameters)
+ {
+ SqlCommand command = BuildQueryCommand(connection, storedProcName, parameters);
+ command.Parameters.Add(new SqlParameter("ReturnValue",
+ SqlDbType.Int, 4, ParameterDirection.ReturnValue,
+ false, 0, 0, string.Empty, DataRowVersion.Default, null));
+ return command;
+ }
+ #endregion
+
+ #region 自定义方法
+ ///
+ /// 数据库是否连接成功
+ ///
+ ///
+ public static bool ConnStatus()
+ {
+ using (SqlConnection connection = new SqlConnection(connectionString))
+ {
+ try
+ {
+ connection.Open();
+ return true;
+ }
+ catch (System.Data.SqlClient.SqlException e)
+ {
+ connection.Close();
+ throw e;
+ }
+ }
+ }
+
+ #endregion
+
+ }
+}
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
new file mode 100644
index 0000000..ca8a054
--- /dev/null
+++ b/LeadDataBaseUtility/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// 有关程序集的一般信息由以下
+// 控制。更改这些特性值可修改
+// 与程序集关联的信息。
+[assembly: AssemblyTitle("LeadDataBaseUtility")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("LeadDataBaseUtility")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2018")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+//将 ComVisible 设置为 false 将使此程序集中的类型
+//对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
+//请将此类型的 ComVisible 特性设置为 true。
+[assembly: ComVisible(false)]
+
+// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
+[assembly: Guid("824348a6-ffff-4c1b-bbf5-8b507a8c8ce5")]
+
+// 程序集的版本信息由下列四个值组成:
+//
+// 主版本
+// 次版本
+// 生成号
+// 修订号
+//
+//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
+// 方法是按如下所示使用“*”: :
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/NX_LogUtility/LogHelper.cs b/NX_LogUtility/LogHelper.cs
new file mode 100644
index 0000000..a26f3bb
--- /dev/null
+++ b/NX_LogUtility/LogHelper.cs
@@ -0,0 +1,126 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace NX_LogUtility
+{
+ public enum LogTypeEum
+ {
+ ///
+ /// 程序运行日志
+ ///
+ Run,
+ ///
+ /// 程序错误日志
+ ///
+ Err,
+ ///
+ /// 数据库异常相关日志
+ ///
+ DbErr,
+ ///
+ /// OPC运行日志
+ ///
+ OPCRun,
+ ///
+ /// Socket运行日志
+ ///
+ SocketRun,
+ ///
+ /// Socket收发数据日志
+ ///
+ SocketData,
+ }
+ public static class LogHelper
+ {
+ #region 记录日志为文本文档形式
+ ///
+ /// 记录日志类
+ ///
+ /// 日志内容
+ /// 日志类型(Run:程序运行日志; Err:程序错误日志; DbErr:数据库异常相关日志; OPCRun:OPC运行日志; SocketRun:Socket运行日志; SocErr:Socket异常日志。)
+ public static void WriteLog(string Txt, LogTypeEum logType)
+ {
+ //获取日志存放位置,年份不同,存放文件夹不同。
+ string strDir = System.Environment.CurrentDirectory + "\\NX_CleanMac_Log\\" + DateTime.Now.ToString("yyyy") + "\\";
+ //获取时间,年月日。
+ string fileDate = DateTime.Now.ToString("yyyy-MM-dd");
+ //获取时间,年月。
+ string fileDate1 = DateTime.Now.ToString("yyyy-MM");
+ //每一年的不同月份日志放在不同的文件夹,同一月份不同类型的日志放于同一个文件夹。
+ string strDir1 = strDir + fileDate1 + "\\";
+ //每一年的相同月份不同日期的日志放在不同的文件夹
+ string strDir2 = strDir1 + fileDate + "\\";
+ //不同的日志名称,日志文件不同
+ string filePath = strDir2 + fileDate + "_" + logType + ".log";
+ string DateString = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
+ string Str = "发生时间:" + DateString + "|" + Txt + "\r\n";
+ WriteFile(strDir2, filePath, Str);
+ }
+
+ private static readonly object lockobj = new object();
+ ///
+ /// 日志文件打印类
+ ///
+ /// 日志文件存放的文件夹
+ /// 日志文件存放路径
+ /// 日志内容
+ private static void WriteFile(string strDir, string filePath, string txt)
+ {
+ FileStream fs = null;
+ StreamWriter sw = null;
+
+ Task.Run(() =>
+ {
+
+ try
+ {
+ lock (lockobj)
+ {
+ if (!Directory.Exists(strDir))//如果日志文件存放的文件夹不存在,就新建一个文件夹。
+ {
+ Directory.CreateDirectory(strDir);
+ }
+
+ if (File.Exists(filePath))//日志文件存放路径存在,向日志文件追加记录。
+ {
+ fs = new FileStream(filePath, FileMode.Append);
+ }
+ else//日志文件存放路径不存在,创建日志文件。
+ {
+ fs = new FileStream(filePath, FileMode.Create);
+ }
+
+ sw = new StreamWriter(fs);
+ //开始写入
+ sw.Write(txt);
+
+ //清空缓冲区
+ sw.Flush();
+ //关闭流
+ sw.Close();
+ fs.Close();
+ }
+ }
+ catch (Exception)
+ {
+ ;
+ }
+ finally
+ {
+ if (sw != null)
+ sw.Close();
+ if (fs != null)
+ fs.Close();
+ }
+ });
+
+
+
+ }
+ #endregion
+ }
+}
diff --git a/NX_LogUtility/NX_LogUtility.csproj b/NX_LogUtility/NX_LogUtility.csproj
new file mode 100644
index 0000000..0f7700d
--- /dev/null
+++ b/NX_LogUtility/NX_LogUtility.csproj
@@ -0,0 +1,85 @@
+
+
+
+
+ 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
+ x64
+
+
+ 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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/NX_LogUtility/Properties/AssemblyInfo.cs b/NX_LogUtility/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..ae637fc
--- /dev/null
+++ b/NX_LogUtility/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// 有关程序集的一般信息由以下
+// 控制。更改这些特性值可修改
+// 与程序集关联的信息。
+[assembly: AssemblyTitle("NX_LogUtility")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("NX_LogUtility")]
+[assembly: AssemblyCopyright("Copyright © 2020")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// 将 ComVisible 设置为 false 会使此程序集中的类型
+//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
+//请将此类型的 ComVisible 特性设置为 true。
+[assembly: ComVisible(false)]
+
+// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
+[assembly: Guid("925057d8-7ee8-42ed-8aa0-628af82f10b2")]
+
+// 程序集的版本信息由下列四个值组成:
+//
+// 主版本
+// 次版本
+// 生成号
+// 修订号
+//
+//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
+//通过使用 "*",如下所示:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/public/ComponentFactory.Krypton.Navigator.dll b/public/ComponentFactory.Krypton.Navigator.dll
new file mode 100644
index 0000000..e116d81
Binary files /dev/null and b/public/ComponentFactory.Krypton.Navigator.dll differ
diff --git a/public/ComponentFactory.Krypton.Toolkit.dll b/public/ComponentFactory.Krypton.Toolkit.dll
new file mode 100644
index 0000000..1ee0f29
Binary files /dev/null and b/public/ComponentFactory.Krypton.Toolkit.dll differ
diff --git a/public/FastReport.Bars.dll b/public/FastReport.Bars.dll
new file mode 100644
index 0000000..d6100a5
Binary files /dev/null and b/public/FastReport.Bars.dll differ
diff --git a/public/FastReport.Editor.dll b/public/FastReport.Editor.dll
new file mode 100644
index 0000000..82d11b1
Binary files /dev/null and b/public/FastReport.Editor.dll differ
diff --git a/public/FastReport.Install.dll b/public/FastReport.Install.dll
new file mode 100644
index 0000000..5132c75
Binary files /dev/null and b/public/FastReport.Install.dll differ
diff --git a/public/FastReport.Service.dll b/public/FastReport.Service.dll
new file mode 100644
index 0000000..b15a709
Binary files /dev/null and b/public/FastReport.Service.dll differ
diff --git a/public/FastReport.Web.dll b/public/FastReport.Web.dll
new file mode 100644
index 0000000..a295386
Binary files /dev/null and b/public/FastReport.Web.dll differ
diff --git a/public/FastReport.dll b/public/FastReport.dll
new file mode 100644
index 0000000..5062e3b
Binary files /dev/null and b/public/FastReport.dll differ
diff --git a/public/LEase.dll b/public/LEase.dll
new file mode 100644
index 0000000..d3303da
Binary files /dev/null and b/public/LEase.dll differ
diff --git a/public/Microsoft.VisualBasic.PowerPacks.dll b/public/Microsoft.VisualBasic.PowerPacks.dll
new file mode 100644
index 0000000..6b179a9
Binary files /dev/null and b/public/Microsoft.VisualBasic.PowerPacks.dll differ
diff --git a/public/MySql.Data.dll b/public/MySql.Data.dll
new file mode 100644
index 0000000..917255b
Binary files /dev/null and b/public/MySql.Data.dll differ
diff --git a/public/NModbus4.dll b/public/NModbus4.dll
new file mode 100644
index 0000000..4693cc2
Binary files /dev/null and b/public/NModbus4.dll differ
diff --git a/public/Oracle.ManagedDataAccess.dll b/public/Oracle.ManagedDataAccess.dll
new file mode 100644
index 0000000..c228b70
Binary files /dev/null and b/public/Oracle.ManagedDataAccess.dll differ
diff --git a/public/System.Data.SQLite.dll b/public/System.Data.SQLite.dll
new file mode 100644
index 0000000..1c16cb8
Binary files /dev/null and b/public/System.Data.SQLite.dll differ
diff --git a/public/msiexec.exe b/public/msiexec.exe
new file mode 100644
index 0000000..27a40b1
Binary files /dev/null and b/public/msiexec.exe differ
diff --git a/程序新版本发布操作步骤.txt b/程序新版本发布操作步骤.txt
new file mode 100644
index 0000000..c21c4c4
--- /dev/null
+++ b/程序新版本发布操作步骤.txt
@@ -0,0 +1,18 @@
+1、修改主程序(CleanMachineHMI) 的程序版本。 也就是: AssemblyInfo.cs 类里的最后两行版本号。 例如:
+
+[assembly: AssemblyVersion("1.0.0.8")]
+[assembly: AssemblyFileVersion("1.0.0.8")]
+
+2、修改打包安装程序的版本号和步骤一相同。修改打包安装程序的产品编码(ProductCode)。
+
+3、修改打包安装程序的RemovePreviousVersions属性为true。
+
+3、复制步骤2 的产品编码到卸载快捷方式的属性Arguments中。例如:/x {409445F2-9F92-47F8-A438-DF194B73B047}
+其中前面的/x后面要加一个空格。
+
+4、重新生成主程序和打包安装程序即可。
+
+
+注意事项:有可能卸载程序所依赖的exe不存在。需要手动删除后重新选择。一般情况卸载依赖的exe位于:
+C:\Windows\System32\msiexec.exe
+