添加项目文件。
This commit is contained in:
357
CleanMachineHMI/forms/frmCleanMode.Designer.cs
generated
Normal file
357
CleanMachineHMI/forms/frmCleanMode.Designer.cs
generated
Normal file
@@ -0,0 +1,357 @@
|
||||
namespace CleanMachineHMI.forms
|
||||
{
|
||||
partial class frmCleanMode
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
199
CleanMachineHMI/forms/frmCleanMode.cs
Normal file
199
CleanMachineHMI/forms/frmCleanMode.cs
Normal file
@@ -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}】!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
120
CleanMachineHMI/forms/frmCleanMode.resx
Normal file
120
CleanMachineHMI/forms/frmCleanMode.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
390
CleanMachineHMI/forms/frmContaminationDTL.Designer.cs
generated
Normal file
390
CleanMachineHMI/forms/frmContaminationDTL.Designer.cs
generated
Normal file
@@ -0,0 +1,390 @@
|
||||
namespace CleanMachineHMI.forms
|
||||
{
|
||||
partial class frmContaminationDTL
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
204
CleanMachineHMI/forms/frmContaminationDTL.cs
Normal file
204
CleanMachineHMI/forms/frmContaminationDTL.cs
Normal file
@@ -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}】!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
120
CleanMachineHMI/forms/frmContaminationDTL.resx
Normal file
120
CleanMachineHMI/forms/frmContaminationDTL.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
390
CleanMachineHMI/forms/frmContaminationType.Designer.cs
generated
Normal file
390
CleanMachineHMI/forms/frmContaminationType.Designer.cs
generated
Normal file
@@ -0,0 +1,390 @@
|
||||
namespace CleanMachineHMI.forms
|
||||
{
|
||||
partial class frmContaminationType
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
215
CleanMachineHMI/forms/frmContaminationType.cs
Normal file
215
CleanMachineHMI/forms/frmContaminationType.cs
Normal file
@@ -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}】!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
120
CleanMachineHMI/forms/frmContaminationType.resx
Normal file
120
CleanMachineHMI/forms/frmContaminationType.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
100
CleanMachineHMI/forms/frmDataSearch.Designer.cs
generated
Normal file
100
CleanMachineHMI/forms/frmDataSearch.Designer.cs
generated
Normal file
@@ -0,0 +1,100 @@
|
||||
namespace CleanMachineHMI.forms
|
||||
{
|
||||
partial class frmDataSearch
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
33
CleanMachineHMI/forms/frmDataSearch.cs
Normal file
33
CleanMachineHMI/forms/frmDataSearch.cs
Normal file
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
132
CleanMachineHMI/forms/frmDataSearch.resx
Normal file
132
CleanMachineHMI/forms/frmDataSearch.resx
Normal file
@@ -0,0 +1,132 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="kryptonPanel1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="btnWork.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="navigatorMain.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
325
CleanMachineHMI/forms/frmParamater.Designer.cs
generated
Normal file
325
CleanMachineHMI/forms/frmParamater.Designer.cs
generated
Normal file
@@ -0,0 +1,325 @@
|
||||
namespace CleanMachineHMI.forms
|
||||
{
|
||||
partial class frmParamater
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
149
CleanMachineHMI/forms/frmParamater.cs
Normal file
149
CleanMachineHMI/forms/frmParamater.cs
Normal file
@@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
120
CleanMachineHMI/forms/frmParamater.resx
Normal file
120
CleanMachineHMI/forms/frmParamater.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
413
CleanMachineHMI/forms/frmRole.Designer.cs
generated
Normal file
413
CleanMachineHMI/forms/frmRole.Designer.cs
generated
Normal file
@@ -0,0 +1,413 @@
|
||||
namespace CleanMachineHMI.forms
|
||||
{
|
||||
partial class frmRole
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
219
CleanMachineHMI/forms/frmRole.cs
Normal file
219
CleanMachineHMI/forms/frmRole.cs
Normal file
@@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
132
CleanMachineHMI/forms/frmRole.resx
Normal file
132
CleanMachineHMI/forms/frmRole.resx
Normal file
@@ -0,0 +1,132 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="dataGridViewTextBoxColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
326
CleanMachineHMI/forms/frmSchedule.Designer.cs
generated
Normal file
326
CleanMachineHMI/forms/frmSchedule.Designer.cs
generated
Normal file
@@ -0,0 +1,326 @@
|
||||
namespace CleanMachineHMI.forms
|
||||
{
|
||||
partial class frmSchedule
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
215
CleanMachineHMI/forms/frmSchedule.cs
Normal file
215
CleanMachineHMI/forms/frmSchedule.cs
Normal file
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取转换时间格式
|
||||
/// </summary>
|
||||
/// <param name="txt"></param>
|
||||
/// <returns></returns>
|
||||
private string GetConverTimeFlag(string txt)
|
||||
{
|
||||
DateTime dt;
|
||||
var time = DateTime.TryParse(txt,out dt);
|
||||
if (!time)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
else
|
||||
{
|
||||
return dt.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
165
CleanMachineHMI/forms/frmSchedule.resx
Normal file
165
CleanMachineHMI/forms/frmSchedule.resx
Normal file
@@ -0,0 +1,165 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="kryptonPanel1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="kryptonPanel3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="kryptonPanel2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="kryptonGroupBox1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="lbEnd.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="lbBegin.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="btnDeleted.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="btnSave.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="btnEdit.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="btnAdd.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="txtScheduleName.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="lbScheduleName.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="txtScheduleCode.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="lbScheduleCode.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
358
CleanMachineHMI/forms/frmSheetType.Designer.cs
generated
Normal file
358
CleanMachineHMI/forms/frmSheetType.Designer.cs
generated
Normal file
@@ -0,0 +1,358 @@
|
||||
namespace CleanMachineHMI.forms
|
||||
{
|
||||
partial class frmSheetType
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
194
CleanMachineHMI/forms/frmSheetType.cs
Normal file
194
CleanMachineHMI/forms/frmSheetType.cs
Normal file
@@ -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}】!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
120
CleanMachineHMI/forms/frmSheetType.resx
Normal file
120
CleanMachineHMI/forms/frmSheetType.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
397
CleanMachineHMI/forms/frmUser.Designer.cs
generated
Normal file
397
CleanMachineHMI/forms/frmUser.Designer.cs
generated
Normal file
@@ -0,0 +1,397 @@
|
||||
namespace CleanMachineHMI.forms
|
||||
{
|
||||
partial class frmUser
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
199
CleanMachineHMI/forms/frmUser.cs
Normal file
199
CleanMachineHMI/forms/frmUser.cs
Normal file
@@ -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}】!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
132
CleanMachineHMI/forms/frmUser.resx
Normal file
132
CleanMachineHMI/forms/frmUser.resx
Normal file
@@ -0,0 +1,132 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="dataGridViewTextBoxColumn4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
396
CleanMachineHMI/forms/frmWarning.Designer.cs
generated
Normal file
396
CleanMachineHMI/forms/frmWarning.Designer.cs
generated
Normal file
@@ -0,0 +1,396 @@
|
||||
namespace CleanMachineHMI.forms
|
||||
{
|
||||
partial class frmWarning
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
207
CleanMachineHMI/forms/frmWarning.cs
Normal file
207
CleanMachineHMI/forms/frmWarning.cs
Normal file
@@ -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}】!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
135
CleanMachineHMI/forms/frmWarning.resx
Normal file
135
CleanMachineHMI/forms/frmWarning.resx
Normal file
@@ -0,0 +1,135 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="dataGridViewTextBoxColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="kryptonPanel6.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
300
CleanMachineHMI/forms/frmWorkingPallet.Designer.cs
generated
Normal file
300
CleanMachineHMI/forms/frmWorkingPallet.Designer.cs
generated
Normal file
@@ -0,0 +1,300 @@
|
||||
namespace CleanMachineHMI.forms
|
||||
{
|
||||
partial class frmWorkingPallet
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
147
CleanMachineHMI/forms/frmWorkingPallet.cs
Normal file
147
CleanMachineHMI/forms/frmWorkingPallet.cs
Normal file
@@ -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 = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
132
CleanMachineHMI/forms/frmWorkingPallet.resx
Normal file
132
CleanMachineHMI/forms/frmWorkingPallet.resx
Normal file
@@ -0,0 +1,132 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="kryptonPanel5.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridView.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="btnSearch.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
Reference in New Issue
Block a user