This commit is contained in:
gongxh
2022-05-13 10:27:55 +08:00
parent 33ce865577
commit 617a205527
8 changed files with 289 additions and 52 deletions

Binary file not shown.

View File

@@ -1,5 +1,5 @@
//#define NewFun
#define NewFun
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.Utils;

View File

@@ -32,17 +32,17 @@ namespace CleanMachineHMI.FrmUserControl
this.kryptonPanel2 = new Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox3 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonDataGridView1 = new Krypton.Toolkit.KryptonDataGridView();
this.DateTime = new Krypton.Toolkit.KryptonDataGridViewDateTimePickerColumn();
this.ColCount = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.kryptonGroupBox4 = new Krypton.Toolkit.KryptonGroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.kbt_Reset = new Krypton.Toolkit.KryptonButton();
this.kbt_Query = new Krypton.Toolkit.KryptonButton();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
this.DateTime = new Krypton.Toolkit.KryptonDataGridViewDateTimePickerColumn();
this.ColCount = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker();
((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
this.kryptonPanel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3)).BeginInit();
@@ -106,6 +106,23 @@ namespace CleanMachineHMI.FrmUserControl
this.kryptonDataGridView1.Size = new System.Drawing.Size(1020, 500);
this.kryptonDataGridView1.TabIndex = 3;
//
// DateTime
//
this.DateTime.Checked = false;
this.DateTime.DataPropertyName = "DateTime";
this.DateTime.HeaderText = "ResetTime";
this.DateTime.Name = "DateTime";
this.DateTime.ReadOnly = true;
this.DateTime.Width = 71;
//
// ColCount
//
this.ColCount.DataPropertyName = "Count";
this.ColCount.HeaderText = "Count";
this.ColCount.Name = "ColCount";
this.ColCount.ReadOnly = true;
this.ColCount.Width = 69;
//
// kryptonGroupBox4
//
this.kryptonGroupBox4.CaptionOverlap = 0D;
@@ -125,18 +142,18 @@ namespace CleanMachineHMI.FrmUserControl
//
this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
this.tableLayoutPanel2.ColumnCount = 4;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 160F));
this.tableLayoutPanel2.ColumnCount = 3;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33444F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33444F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33112F));
this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 3, 0);
this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 2, 0);
this.tableLayoutPanel2.Location = new System.Drawing.Point(604, 48);
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.Location = new System.Drawing.Point(727, 48);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 1;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(415, 41);
this.tableLayoutPanel2.Size = new System.Drawing.Size(292, 41);
this.tableLayoutPanel2.TabIndex = 6;
//
// kbt_Reset
@@ -144,9 +161,9 @@ namespace CleanMachineHMI.FrmUserControl
this.kbt_Reset.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.kbt_Reset.Location = new System.Drawing.Point(333, 3);
this.kbt_Reset.Location = new System.Drawing.Point(197, 3);
this.kbt_Reset.Name = "kbt_Reset";
this.kbt_Reset.Size = new System.Drawing.Size(79, 35);
this.kbt_Reset.Size = new System.Drawing.Size(92, 35);
this.kbt_Reset.TabIndex = 0;
this.kbt_Reset.Tag = "show";
this.kbt_Reset.Values.Text = "重置条件";
@@ -157,9 +174,9 @@ namespace CleanMachineHMI.FrmUserControl
this.kbt_Query.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.kbt_Query.Location = new System.Drawing.Point(248, 3);
this.kbt_Query.Location = new System.Drawing.Point(100, 3);
this.kbt_Query.Name = "kbt_Query";
this.kbt_Query.Size = new System.Drawing.Size(79, 35);
this.kbt_Query.Size = new System.Drawing.Size(91, 35);
this.kbt_Query.TabIndex = 0;
this.kbt_Query.Tag = "show";
this.kbt_Query.Values.Text = "查询";
@@ -182,20 +199,18 @@ namespace CleanMachineHMI.FrmUserControl
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 1;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 42F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1020, 42);
this.tableLayoutPanel1.TabIndex = 5;
//
// kdtp_CreateEndTime
// kryptonLabel2
//
this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.kdtp_CreateEndTime.Location = new System.Drawing.Point(702, 10);
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;
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, 36);
this.kryptonLabel2.TabIndex = 4;
this.kryptonLabel2.Values.Text = "重置时间";
//
// kdtp_CreateStartTime
//
@@ -208,15 +223,6 @@ namespace CleanMachineHMI.FrmUserControl
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, 36);
this.kryptonLabel2.TabIndex = 4;
this.kryptonLabel2.Values.Text = "重置时间";
//
// kryptonLabel5
//
this.kryptonLabel5.Anchor = System.Windows.Forms.AnchorStyles.None;
@@ -226,22 +232,16 @@ namespace CleanMachineHMI.FrmUserControl
this.kryptonLabel5.TabIndex = 4;
this.kryptonLabel5.Values.Text = "至";
//
// DateTime
// kdtp_CreateEndTime
//
this.DateTime.Checked = false;
this.DateTime.DataPropertyName = "DateTime";
this.DateTime.HeaderText = "ResetTime";
this.DateTime.Name = "DateTime";
this.DateTime.ReadOnly = true;
this.DateTime.Width = 71;
//
// ColCount
//
this.ColCount.DataPropertyName = "Count";
this.ColCount.HeaderText = "Count";
this.ColCount.Name = "ColCount";
this.ColCount.ReadOnly = true;
this.ColCount.Width = 69;
this.kdtp_CreateEndTime.Anchor = System.Windows.Forms.AnchorStyles.None;
this.kdtp_CreateEndTime.CustomFormat = "yyyy-MM-dd HH:mm:ss";
this.kdtp_CreateEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.kdtp_CreateEndTime.Location = new System.Drawing.Point(702, 10);
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;
//
// frmShiftCountRecord
//

View File

@@ -120,7 +120,4 @@
<metadata name="ColCount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ColCount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@@ -575,6 +575,10 @@ namespace CleanMachineHMI
int SysRunTime = (int)PlcOperationHelper.Instance.ReadPlcItem("SysRuningTime", PlcItemTypeDesc.D);
new CleanMachine.BLL.CM.DayWorkTimeBLL().UpdateTime(DateTime.Today, SysRunTime);
int Minutes = SysRunTime / 60;
BeginInvoke(new Action(() =>
{