first commit

This commit is contained in:
ldw
2025-09-17 20:04:00 +08:00
commit 3d8675b65c
310 changed files with 115085 additions and 0 deletions
File diff suppressed because one or more lines are too long
+96
View File
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<connectionStrings>
<add name="connDbType" connectionString="SqlServer" />
<add name="connString" connectionString="Server=192.168.133.180,43852\MSSQLSERVER01;DataBase=LargeSquareOne;Uid=sa;Pwd=123" />
<!--<add name="connString" connectionString="Server=ZCDEEPSEAI;DataBase=LargeSquareOne;Uid=sa;Pwd=123" />-->
<add name="connString2" connectionString="Server=192.168.133.180;DataBase=HBG_CupDataTurnover;Uid=jyzdh;Pwd=eve123456" />
<add name="connString3" connectionString="Server=localhost;DataBase=ProConfigDB;User Id=jypz;Password=eve123456;Persist Security Info=true;Allow Zero Datetime=true;Character Set=utf8;" />
</connectionStrings>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="OxyPlot" publicKeyToken="638079a8f0bd61e9" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.1.2.0" newVersion="2.1.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-8.1.0.0" newVersion="8.1.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO.Pipelines" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Google.Protobuf" publicKeyToken="a7d26565bac4d604" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.23.4.0" newVersion="3.23.4.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="ZstdSharp" publicKeyToken="8d151af33a4ad5cf" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.7.2.0" newVersion="0.7.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Bcl.AsyncInterfaces" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Text.Encoding.CodePages" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Configuration.ConfigurationManager" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Security.Cryptography.Xml" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.1" newVersion="6.0.0.1" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
</providers>
</roleManager>
</system.web>
<appSettings>
<add key="ClientSettingsProvider.ServiceUri" value="" />
</appSettings>
</configuration>
Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 334 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

+82
View File
@@ -0,0 +1,82 @@
[配置信息]
开机自动启动=False
启动自动登录=False
无操作自动锁屏=False
锁屏间隔时间=3
无操作自动切换监控界面=True
切换监控界面间隔时间=1
曲线显示数量=1
开启刷卡模式=False
MES/非MES模式切换=True
获取MES参数=True
线程耗时日志保存=False
是否获取服务器数据=1
是否存储C模块数据=1
外观检测条码计数=1
强制OK/正常NG模式切换=False
[MES配置]
工厂代码=60J
产线编号=MW-602
设备编号=602VIM01
智能电表编号=1,2
白夜班交替时间=20:30:00
MES日志保存路径=D:\APILog
存储服务器IP地址=192.168.2.108
员工权限校验=http://10.22.160.141/core/api/public/equipment/base/user/login/verify
设备参数设定值请求=http://10.22.160.141/core/api/public/param/setting/request
设备参数设定值变更=http://10.22.160.141/core/api/public/param/setting/change
产品进站=http://10.22.160.141/core/api/public/formation/section/arrival/bz
产品过程加工参数=http://10.22.160.141/core/api/public/product/process/param/new/process
产品结果加工参数=http://10.22.160.141/core/api/public/product/process/param/new/result
产品出站=http://10.22.160.141/core/api/public/eve/pm/formation-section
设备报警=http://10.22.160.141/core/api/public/equipment/alarm/currency
设备状态=http://10.22.160.141/core/api/public/eve/pm/eqm/run/status/operation
能耗=http://10.22.160.141/core/api/public/eve/pm/energy/consumption/collection/submit
风速仪=https://iot.eveportal.com:9470/eve_api/ems/iot/upload_device_collect_data
风速仪=https://iot.eveportal.com:9470/eve_api/ems/iot/upload_device_collect_data
分档参数=http://10.22.160.141/core/api/public/eve/pm/eqm/new/grading
guid=a270c7d2-9cbd-4739-9a0b-0709b5813332
DeviceState=1
run_AlarmMark=0
run_IdleMark=0
[统计计数]
LastHour=1030
LastResetTime=0
LastTotalOldNum=360
LastOkOldNum=358
ProdAllQty=0
ProdOKQty=0
ProdDRFIDNgQty=0
ProdDXNgQty=0
ProdGRFIDNgQty=0
ProdYLZNgQty=0
[风速仪]
AntiDustAirSpeedCount=25
AntiDustAirSpeed1=FSY-2A-001
AntiDustAirSpeed2=FSY-2A-002
AntiDustAirSpeed3=FSY-2A-003
AntiDustAirSpeed4=FSY-2A-004
AntiDustAirSpeed5=FSY-2A-005
AntiDustAirSpeed6=FSY-2A-006
AntiDustAirSpeed7=FSY-2A-007
AntiDustAirSpeed8=FSY-2A-008
AntiDustAirSpeed9=FSY-2A-009
AntiDustAirSpeed10=FSY-2A-010
AntiDustAirSpeed11=FSY-2A-011
AntiDustAirSpeed12=FSY-2A-012
AntiDustAirSpeed13=FSY-2A-013
AntiDustAirSpeed14=FSY-2A-014
AntiDustAirSpeed15=FSY-2A-015
AntiDustAirSpeed16=FSY-2A-016
AntiDustAirSpeed17=FSY-2A-017
AntiDustAirSpeed18=FSY-2A-018
AntiDustAirSpeed19=FSY-2A-019
AntiDustAirSpeed20=FSY-2A-020
AntiDustAirSpeed21=FSY-2A-021
AntiDustAirSpeed22=FSY-2A-022
AntiDustAirSpeed23=FSY-2A-023
AntiDustAirSpeed24=FSY-2A-024
AntiDustAirSpeed25=FSY-2A-025
+4
View File
@@ -0,0 +1,4 @@
[设备参数]
IP地址=127.0.0.1
端口号=9600
PLC类型=OmronFinsTcp_HSL
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+208
View File
@@ -0,0 +1,208 @@
namespace LargeSquareOne
{
partial class CustomMessageBox
{
/// <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()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.panel3 = new System.Windows.Forms.Panel();
this.btStop = new HML.ButtonPlus();
this.btSatrt = new HML.ButtonPlus();
this.panel2 = new System.Windows.Forms.Panel();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.lblMessage = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.panel4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel3.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.Controls.Add(this.panel4);
this.panel1.Controls.Add(this.panel3);
this.panel1.Controls.Add(this.panel2);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(652, 428);
this.panel1.TabIndex = 0;
//
// panel4
//
this.panel4.Controls.Add(this.dataGridView1);
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(0, 53);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(652, 319);
this.panel4.TabIndex = 4;
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
this.dataGridView1.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.DisplayedCells;
this.dataGridView1.BackgroundColor = System.Drawing.Color.White;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F);
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.White;
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.ControlLightLight;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2;
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.ReadOnly = true;
this.dataGridView1.RowTemplate.DefaultCellStyle.BackColor = System.Drawing.Color.White;
this.dataGridView1.RowTemplate.DefaultCellStyle.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.dataGridView1.RowTemplate.DefaultCellStyle.ForeColor = System.Drawing.Color.Black;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(652, 319);
this.dataGridView1.TabIndex = 0;
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.Silver;
this.panel3.Controls.Add(this.btStop);
this.panel3.Controls.Add(this.btSatrt);
this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel3.Location = new System.Drawing.Point(0, 372);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(652, 56);
this.panel3.TabIndex = 3;
//
// btStop
//
this.btStop.BackNormalColor = System.Drawing.Color.Red;
this.btStop.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold);
this.btStop.Location = new System.Drawing.Point(390, 4);
this.btStop.Name = "btStop";
this.btStop.Size = new System.Drawing.Size(101, 49);
this.btStop.TabIndex = 15;
this.btStop.Text = "取 消";
this.btStop.Click += new System.EventHandler(this.btnNo_Click);
//
// btSatrt
//
this.btSatrt.BackNormalColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
this.btSatrt.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btSatrt.Location = new System.Drawing.Point(134, 4);
this.btSatrt.Name = "btSatrt";
this.btSatrt.Size = new System.Drawing.Size(101, 49);
this.btSatrt.TabIndex = 14;
this.btSatrt.Text = "确 定";
this.btSatrt.Click += new System.EventHandler(this.btnOK_Click);
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(40)))), ((int)(((byte)(49)))));
this.panel2.Controls.Add(this.pictureBox1);
this.panel2.Controls.Add(this.lblMessage);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(652, 53);
this.panel2.TabIndex = 0;
//
// pictureBox1
//
this.pictureBox1.Image = global::LargeSquareOne.Properties.Resources.黄色_警告;
this.pictureBox1.Location = new System.Drawing.Point(7, 6);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(45, 37);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 1;
this.pictureBox1.TabStop = false;
//
// lblMessage
//
this.lblMessage.AutoSize = true;
this.lblMessage.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMessage.ForeColor = System.Drawing.Color.Red;
this.lblMessage.Location = new System.Drawing.Point(58, 14);
this.lblMessage.Name = "lblMessage";
this.lblMessage.Size = new System.Drawing.Size(43, 20);
this.lblMessage.TabIndex = 0;
this.lblMessage.Text = "提示";
//
// CustomMessageBox
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(652, 428);
this.Controls.Add(this.panel1);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "CustomMessageBox";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.TopMost = true;
this.Load += new System.EventHandler(this.CustomMessageBox_Load);
this.panel1.ResumeLayout(false);
this.panel4.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panel3.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Label lblMessage;
private System.Windows.Forms.PictureBox pictureBox1;
private HML.ButtonPlus btStop;
private HML.ButtonPlus btSatrt;
}
}
+70
View File
@@ -0,0 +1,70 @@
using System;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
namespace LargeSquareOne
{
public partial class CustomMessageBox : Form
{
DataTable dataTable = new DataTable();
string strLblMessage = "";
public CustomMessageBox(DataTable _dataTable, string _strLblMessage)
{
InitializeComponent();
dataTable = _dataTable;
strLblMessage = _strLblMessage;
}
private void CustomMessageBox_Load(object sender, EventArgs e)
{
dataGridView1.DataSource = dataTable;
lblMessage.Text = strLblMessage;
}
//public void SetMessage(DataTable dataTable,string strLblMessage)
//{
// dataGridView1.DataSource = dataTable;
// lblMessage.Text = strLblMessage;
//}
private void btnOK_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.OK;
}
private void btnNo_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.No;
this.Close();
}
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
//自动编号,与数据无关
Rectangle rectangle = new Rectangle(e.RowBounds.Location.X,
e.RowBounds.Location.Y,
dataGridView1.RowHeadersWidth - 4,
e.RowBounds.Height);
TextRenderer.DrawText(e.Graphics,
(e.RowIndex + 1).ToString(),
dataGridView1.RowHeadersDefaultCellStyle.Font,
rectangle,
dataGridView1.RowHeadersDefaultCellStyle.ForeColor,
TextFormatFlags.VerticalCenter | TextFormatFlags.Right);
}
//public static void Show(DataTable dataTable, string message, string title)
//{
// CustomMessageBox messageBox = new CustomMessageBox(dataTable, message);
// messageBox.SetMessage(dataTable,message);
// messageBox.Text = title;
// messageBox.ShowDialog();
//}
}
}
+120
View 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>
+369
View File
@@ -0,0 +1,369 @@
namespace LargeSquareOne
{
partial class FrmAlarmLog
{
/// <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()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
this.dgv_OPLog = new System.Windows.Forms.DataGridView();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dgv_Log = new System.Windows.Forms.DataGridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.dgv_Alarm = new System.Windows.Forms.DataGridView();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.label3 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.dgv_OPLog)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgv_Log)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgv_Alarm)).BeginInit();
this.SuspendLayout();
//
// dgv_OPLog
//
this.dgv_OPLog.AllowUserToAddRows = false;
this.dgv_OPLog.AllowUserToDeleteRows = false;
this.dgv_OPLog.AllowUserToResizeColumns = false;
this.dgv_OPLog.AllowUserToResizeRows = false;
this.dgv_OPLog.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.dgv_OPLog.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgv_OPLog.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgv_OPLog.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dgv_OPLog.ColumnHeadersHeight = 30;
this.dgv_OPLog.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dgv_OPLog.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn2,
this.dataGridViewTextBoxColumn3});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgv_OPLog.DefaultCellStyle = dataGridViewCellStyle2;
this.dgv_OPLog.EnableHeadersVisualStyles = false;
this.dgv_OPLog.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.dgv_OPLog.Location = new System.Drawing.Point(22, 282);
this.dgv_OPLog.MultiSelect = false;
this.dgv_OPLog.Name = "dgv_OPLog";
this.dgv_OPLog.ReadOnly = true;
this.dgv_OPLog.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgv_OPLog.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
this.dgv_OPLog.RowHeadersWidth = 120;
this.dgv_OPLog.RowTemplate.Height = 23;
this.dgv_OPLog.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgv_OPLog.Size = new System.Drawing.Size(1827, 266);
this.dgv_OPLog.TabIndex = 6;
this.dgv_OPLog.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgv_Log_RowPostPaint);
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.HeaderText = "日期时间";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.ReadOnly = true;
this.dataGridViewTextBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.dataGridViewTextBoxColumn1.Width = 200;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.HeaderText = "操作类型";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.ReadOnly = true;
this.dataGridViewTextBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.dataGridViewTextBoxColumn2.Width = 200;
//
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.dataGridViewTextBoxColumn3.HeaderText = "操作信息";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
this.dataGridViewTextBoxColumn3.ReadOnly = true;
this.dataGridViewTextBoxColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// dgv_Log
//
this.dgv_Log.AllowUserToAddRows = false;
this.dgv_Log.AllowUserToDeleteRows = false;
this.dgv_Log.AllowUserToResizeColumns = false;
this.dgv_Log.AllowUserToResizeRows = false;
this.dgv_Log.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.dgv_Log.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgv_Log.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgv_Log.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
this.dgv_Log.ColumnHeadersHeight = 30;
this.dgv_Log.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dgv_Log.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column1,
this.Column2,
this.Column3});
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgv_Log.DefaultCellStyle = dataGridViewCellStyle5;
this.dgv_Log.EnableHeadersVisualStyles = false;
this.dgv_Log.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.dgv_Log.Location = new System.Drawing.Point(22, 14);
this.dgv_Log.MultiSelect = false;
this.dgv_Log.Name = "dgv_Log";
this.dgv_Log.ReadOnly = true;
this.dgv_Log.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle6.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgv_Log.RowHeadersDefaultCellStyle = dataGridViewCellStyle6;
this.dgv_Log.RowHeadersWidth = 120;
this.dgv_Log.RowTemplate.Height = 23;
this.dgv_Log.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgv_Log.Size = new System.Drawing.Size(1827, 266);
this.dgv_Log.TabIndex = 7;
this.dgv_Log.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgv_Log_RowPostPaint);
//
// Column1
//
this.Column1.HeaderText = "日期时间";
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column1.Width = 200;
//
// Column2
//
this.Column2.HeaderText = "日志类型";
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column2.Width = 200;
//
// Column3
//
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.Column3.HeaderText = "日志信息";
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// label1
//
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(246)))), ((int)(((byte)(255)))));
this.label1.Location = new System.Drawing.Point(43, 19);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(75, 23);
this.label1.TabIndex = 11;
this.label1.Text = "系统日志";
//
// label2
//
this.label2.BackColor = System.Drawing.Color.Transparent;
this.label2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(246)))), ((int)(((byte)(255)))));
this.label2.Location = new System.Drawing.Point(42, 287);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(89, 19);
this.label2.TabIndex = 10;
this.label2.Text = "操作日志";
//
// dgv_Alarm
//
this.dgv_Alarm.AllowUserToAddRows = false;
this.dgv_Alarm.AllowUserToDeleteRows = false;
this.dgv_Alarm.AllowUserToResizeColumns = false;
this.dgv_Alarm.AllowUserToResizeRows = false;
this.dgv_Alarm.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.dgv_Alarm.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgv_Alarm.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
dataGridViewCellStyle7.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle7.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgv_Alarm.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7;
this.dgv_Alarm.ColumnHeadersHeight = 30;
this.dgv_Alarm.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dgv_Alarm.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn4,
this.dataGridViewTextBoxColumn5,
this.dataGridViewTextBoxColumn6});
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle8.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgv_Alarm.DefaultCellStyle = dataGridViewCellStyle8;
this.dgv_Alarm.EnableHeadersVisualStyles = false;
this.dgv_Alarm.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.dgv_Alarm.Location = new System.Drawing.Point(22, 550);
this.dgv_Alarm.MultiSelect = false;
this.dgv_Alarm.Name = "dgv_Alarm";
this.dgv_Alarm.ReadOnly = true;
this.dgv_Alarm.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle9.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle9.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle9.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgv_Alarm.RowHeadersDefaultCellStyle = dataGridViewCellStyle9;
this.dgv_Alarm.RowHeadersWidth = 120;
this.dgv_Alarm.RowTemplate.Height = 23;
this.dgv_Alarm.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgv_Alarm.Size = new System.Drawing.Size(1827, 266);
this.dgv_Alarm.TabIndex = 5;
this.dgv_Alarm.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgv_Log_RowPostPaint);
//
// dataGridViewTextBoxColumn4
//
this.dataGridViewTextBoxColumn4.HeaderText = "日期时间";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
this.dataGridViewTextBoxColumn4.ReadOnly = true;
this.dataGridViewTextBoxColumn4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.dataGridViewTextBoxColumn4.Width = 200;
//
// dataGridViewTextBoxColumn5
//
this.dataGridViewTextBoxColumn5.HeaderText = "报警类型";
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
this.dataGridViewTextBoxColumn5.ReadOnly = true;
this.dataGridViewTextBoxColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.dataGridViewTextBoxColumn5.Width = 200;
//
// dataGridViewTextBoxColumn6
//
this.dataGridViewTextBoxColumn6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.dataGridViewTextBoxColumn6.HeaderText = "报警信息";
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
this.dataGridViewTextBoxColumn6.ReadOnly = true;
this.dataGridViewTextBoxColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// label3
//
this.label3.BackColor = System.Drawing.Color.Transparent;
this.label3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(246)))), ((int)(((byte)(255)))));
this.label3.Location = new System.Drawing.Point(43, 555);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(89, 19);
this.label3.TabIndex = 9;
this.label3.Text = "系统报警";
//
// FrmAlarmLog
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(1874, 835);
this.Controls.Add(this.label2);
this.Controls.Add(this.label3);
this.Controls.Add(this.dgv_Alarm);
this.Controls.Add(this.dgv_OPLog);
this.Controls.Add(this.label1);
this.Controls.Add(this.dgv_Log);
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("微软雅黑", 10.5F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.Name = "FrmAlarmLog";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "日志报警";
((System.ComponentModel.ISupportInitialize)(this.dgv_OPLog)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgv_Log)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgv_Alarm)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.DataGridView dgv_OPLog;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.DataGridView dgv_Log;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.DataGridView dgv_Alarm;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
private System.Windows.Forms.Label label3;
}
}
+167
View File
@@ -0,0 +1,167 @@
using JinYuan.Helper;
using JinYuan.Models;
using JinYuan.VirtualDataLibrary;
using PLCCommunication;
using System;
using System.Windows.Forms;
namespace LargeSquareOne
{
public partial class FrmAlarmLog : Form
{
public FrmAlarmLog()
{
InitializeComponent();
}
private string CurrentTime
{
get { return DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); }
}
/// <summary>
/// 通用的添加系统日志
/// </summary>
/// <param name="isError"></param>
/// <param name="info"></param>
public void AddLog(bool isError, string info)
{
if (dgv_Log.InvokeRequired)
{
this.dgv_Log.Invoke(new Action<bool, string>(AddLog), isError, info);
}
else
{
int rowCount = this.dgv_Log.Rows.Add();
this.dgv_Log.Rows[rowCount].Cells[0].Value = CurrentTime;
this.dgv_Log.Rows[rowCount].Cells[1].Value = isError ? "错误" : "信息";
this.dgv_Log.Rows[rowCount].Cells[2].Value = info;
// 设置最新行为活动行 (当前行)
this.dgv_Log.CurrentCell = this.dgv_Log.Rows[this.dgv_Log.Rows.Count - 1].Cells[0];
}
var model = new SysLog()
{
InsertTime = CurrentTime,
LogType = "系统日志",
Note = info,
AlarmType = isError ? "错误" : "信息",
Operater = CommonMethods.currentAdmin.LoginName
};
//存储到数据库
var b = CommonMethods.db.AddReturnBool(model);
if (!b)
{
LoggerHelp.WriteError($"数据库记录失败. 表:SysLog,内容:{model.ToJsonString()}");
}
}
/// <summary>
/// 通用的添加操作日志
/// </summary>
/// <param name="isError"></param>
/// <param name="info"></param>
public void AddOPLog(bool isError, string info)
{
if (this.dgv_OPLog.InvokeRequired)
{
this.dgv_OPLog.Invoke(new Action<bool, string>(AddLog), isError, info);
}
else
{
int rowCount = this.dgv_OPLog.Rows.Add();
this.dgv_OPLog.Rows[rowCount].Cells[0].Value = CurrentTime;
this.dgv_OPLog.Rows[rowCount].Cells[1].Value = isError ? "错误" : "信息";
this.dgv_OPLog.Rows[rowCount].Cells[2].Value = info;
// 设置最新行为活动行 (当前行)
this.dgv_OPLog.CurrentCell = this.dgv_OPLog.Rows[this.dgv_OPLog.Rows.Count - 1].Cells[0];
}
//存储到数据库
CommonMethods.db.AddReturnBool(new SysLog()
{
InsertTime = CurrentTime,
LogType = "操作日志",
Note = info,
AlarmType = isError ? "错误" : "信息",
Operater = CommonMethods.currentAdmin.LoginName
});
}
/// <summary>
/// 通用的添加报警信息
/// </summary>
/// <param name="isTrigger">sh</param>
/// <param name="info"></param>
public void AddAlarm(SysLog sysLog)
{
if (this.dgv_Alarm.InvokeRequired)
{
this.dgv_Alarm.Invoke(new Action<SysLog>(AddAlarm), sysLog);
}
else
{
int rowCount = this.dgv_Alarm.Rows.Add();
this.dgv_Alarm.Rows[rowCount].Cells[0].Value = sysLog.InsertTime;
this.dgv_Alarm.Rows[rowCount].Cells[1].Value = sysLog.AlarmType;
this.dgv_Alarm.Rows[rowCount].Cells[2].Value = sysLog.Note;
// 设置最新行为活动行 (当前行)
this.dgv_Alarm.CurrentCell = this.dgv_Alarm.Rows[this.dgv_Alarm.Rows.Count - 1].Cells[0];
}
//存储到数据库
CommonMethods.db.AddReturnBool(sysLog);
}
/// <summary>
/// 通用的添加并显示报警信息
/// </summary>
/// <param name="isTrigger">sh</param>
/// <param name="info"></param>
public void ShowAlarm(string info)
{
if (this.dgv_Alarm.InvokeRequired)
{
this.dgv_Alarm.Invoke(new Action<string>(ShowAlarm), info);
}
else
{
int rowCount = this.dgv_Alarm.Rows.Add();
this.dgv_Alarm.Rows[rowCount].Cells[0].Value = CurrentTime;
this.dgv_Alarm.Rows[rowCount].Cells[1].Value = "停机报警";
this.dgv_Alarm.Rows[rowCount].Cells[2].Value = info;
// 设置最新行为活动行 (当前行)
this.dgv_Alarm.CurrentCell = this.dgv_Alarm.Rows[this.dgv_Alarm.Rows.Count - 1].Cells[0];
//dgv清理
if (this.dgv_Alarm.RowCount > 300)
{
//this.dgv_Alarm.Rows.RemoveAt(0);
this.dgv_Alarm.Rows.Clear();
GC.Collect();
}
}
}
private void dgv_Log_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
DataGridViewHelper.DgvRowPostPaint((DataGridView)sender, e);
}
#region 减少闪烁
protected override CreateParams CreateParams
{
get
{
CreateParams parss = base.CreateParams;
parss.ExStyle |= 0x02000000;
return parss;
}
}
#endregion
}
}
+147
View File
@@ -0,0 +1,147 @@
<?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="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column3.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="dataGridViewTextBoxColumn5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
+450
View File
@@ -0,0 +1,450 @@
namespace LargeSquareOne
{
partial class FrmCpkCount
{
/// <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()
{
SeeSharpTools.JY.GUI.StripChartXSeries stripChartXSeries1 = new SeeSharpTools.JY.GUI.StripChartXSeries();
SeeSharpTools.JY.GUI.StripChartXSeries stripChartXSeries2 = new SeeSharpTools.JY.GUI.StripChartXSeries();
JinYuan.Models.CPKModel cpkModel1 = new JinYuan.Models.CPKModel();
System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend();
System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series();
this.btn_Add = new System.Windows.Forms.Button();
this.stripChartX2 = new SeeSharpTools.JY.GUI.StripChartX();
this.stripChartX3 = new SeeSharpTools.JY.GUI.StripChartX();
this.trw1 = new LargeSquareOne.trw();
this.chartControl = new System.Windows.Forms.DataVisualization.Charting.Chart();
((System.ComponentModel.ISupportInitialize)(this.chartControl)).BeginInit();
this.SuspendLayout();
//
// btn_Add
//
this.btn_Add.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btn_Add.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Add.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.btn_Add.ForeColor = System.Drawing.Color.White;
this.btn_Add.Location = new System.Drawing.Point(7, 44);
this.btn_Add.Name = "btn_Add";
this.btn_Add.Size = new System.Drawing.Size(101, 36);
this.btn_Add.TabIndex = 13;
this.btn_Add.Text = "查 询";
this.btn_Add.UseVisualStyleBackColor = false;
this.btn_Add.Click += new System.EventHandler(this.btn_Add_Click);
//
// stripChartX2
//
this.stripChartX2.AxisX.AutoScale = false;
this.stripChartX2.AxisX.AutoZoomReset = false;
this.stripChartX2.AxisX.Color = System.Drawing.Color.Black;
this.stripChartX2.AxisX.InitWithScaleView = false;
this.stripChartX2.AxisX.IsLogarithmic = false;
this.stripChartX2.AxisX.LabelAngle = 0;
this.stripChartX2.AxisX.LabelEnabled = true;
this.stripChartX2.AxisX.LabelFormat = null;
this.stripChartX2.AxisX.MajorGridColor = System.Drawing.Color.Black;
this.stripChartX2.AxisX.MajorGridCount = 6;
this.stripChartX2.AxisX.MajorGridEnabled = true;
this.stripChartX2.AxisX.MajorGridType = SeeSharpTools.JY.GUI.StripChartXAxis.GridStyle.Dash;
this.stripChartX2.AxisX.Maximum = 1000D;
this.stripChartX2.AxisX.Minimum = 0D;
this.stripChartX2.AxisX.MinorGridColor = System.Drawing.Color.Black;
this.stripChartX2.AxisX.MinorGridEnabled = false;
this.stripChartX2.AxisX.MinorGridType = SeeSharpTools.JY.GUI.StripChartXAxis.GridStyle.DashDot;
this.stripChartX2.AxisX.TickWidth = 1F;
this.stripChartX2.AxisX.Title = "";
this.stripChartX2.AxisX.TitleOrientation = SeeSharpTools.JY.GUI.StripChartXAxis.AxisTextOrientation.Auto;
this.stripChartX2.AxisX.TitlePosition = SeeSharpTools.JY.GUI.StripChartXAxis.AxisTextPosition.Center;
this.stripChartX2.AxisX.ViewMaximum = 1000D;
this.stripChartX2.AxisX.ViewMinimum = 0D;
this.stripChartX2.AxisX2.AutoScale = false;
this.stripChartX2.AxisX2.AutoZoomReset = false;
this.stripChartX2.AxisX2.Color = System.Drawing.Color.Black;
this.stripChartX2.AxisX2.InitWithScaleView = false;
this.stripChartX2.AxisX2.IsLogarithmic = false;
this.stripChartX2.AxisX2.LabelAngle = 0;
this.stripChartX2.AxisX2.LabelEnabled = true;
this.stripChartX2.AxisX2.LabelFormat = null;
this.stripChartX2.AxisX2.MajorGridColor = System.Drawing.Color.Black;
this.stripChartX2.AxisX2.MajorGridCount = 6;
this.stripChartX2.AxisX2.MajorGridEnabled = true;
this.stripChartX2.AxisX2.MajorGridType = SeeSharpTools.JY.GUI.StripChartXAxis.GridStyle.Dash;
this.stripChartX2.AxisX2.Maximum = 1000D;
this.stripChartX2.AxisX2.Minimum = 0D;
this.stripChartX2.AxisX2.MinorGridColor = System.Drawing.Color.Black;
this.stripChartX2.AxisX2.MinorGridEnabled = false;
this.stripChartX2.AxisX2.MinorGridType = SeeSharpTools.JY.GUI.StripChartXAxis.GridStyle.DashDot;
this.stripChartX2.AxisX2.TickWidth = 1F;
this.stripChartX2.AxisX2.Title = "";
this.stripChartX2.AxisX2.TitleOrientation = SeeSharpTools.JY.GUI.StripChartXAxis.AxisTextOrientation.Auto;
this.stripChartX2.AxisX2.TitlePosition = SeeSharpTools.JY.GUI.StripChartXAxis.AxisTextPosition.Center;
this.stripChartX2.AxisX2.ViewMaximum = 1000D;
this.stripChartX2.AxisX2.ViewMinimum = 0D;
this.stripChartX2.AxisY.AutoScale = true;
this.stripChartX2.AxisY.AutoZoomReset = false;
this.stripChartX2.AxisY.Color = System.Drawing.Color.Black;
this.stripChartX2.AxisY.InitWithScaleView = false;
this.stripChartX2.AxisY.IsLogarithmic = false;
this.stripChartX2.AxisY.LabelAngle = 0;
this.stripChartX2.AxisY.LabelEnabled = true;
this.stripChartX2.AxisY.LabelFormat = null;
this.stripChartX2.AxisY.MajorGridColor = System.Drawing.Color.Black;
this.stripChartX2.AxisY.MajorGridCount = 6;
this.stripChartX2.AxisY.MajorGridEnabled = true;
this.stripChartX2.AxisY.MajorGridType = SeeSharpTools.JY.GUI.StripChartXAxis.GridStyle.Dash;
this.stripChartX2.AxisY.Maximum = 3.5D;
this.stripChartX2.AxisY.Minimum = 0.5D;
this.stripChartX2.AxisY.MinorGridColor = System.Drawing.Color.Black;
this.stripChartX2.AxisY.MinorGridEnabled = false;
this.stripChartX2.AxisY.MinorGridType = SeeSharpTools.JY.GUI.StripChartXAxis.GridStyle.DashDot;
this.stripChartX2.AxisY.TickWidth = 1F;
this.stripChartX2.AxisY.Title = "";
this.stripChartX2.AxisY.TitleOrientation = SeeSharpTools.JY.GUI.StripChartXAxis.AxisTextOrientation.Auto;
this.stripChartX2.AxisY.TitlePosition = SeeSharpTools.JY.GUI.StripChartXAxis.AxisTextPosition.Center;
this.stripChartX2.AxisY.ViewMaximum = 3.5D;
this.stripChartX2.AxisY.ViewMinimum = 0.5D;
this.stripChartX2.AxisY2.AutoScale = true;
this.stripChartX2.AxisY2.AutoZoomReset = false;
this.stripChartX2.AxisY2.Color = System.Drawing.Color.Black;
this.stripChartX2.AxisY2.InitWithScaleView = false;
this.stripChartX2.AxisY2.IsLogarithmic = false;
this.stripChartX2.AxisY2.LabelAngle = 0;
this.stripChartX2.AxisY2.LabelEnabled = true;
this.stripChartX2.AxisY2.LabelFormat = null;
this.stripChartX2.AxisY2.MajorGridColor = System.Drawing.Color.Black;
this.stripChartX2.AxisY2.MajorGridCount = 6;
this.stripChartX2.AxisY2.MajorGridEnabled = true;
this.stripChartX2.AxisY2.MajorGridType = SeeSharpTools.JY.GUI.StripChartXAxis.GridStyle.Dash;
this.stripChartX2.AxisY2.Maximum = 3.5D;
this.stripChartX2.AxisY2.Minimum = 0.5D;
this.stripChartX2.AxisY2.MinorGridColor = System.Drawing.Color.Black;
this.stripChartX2.AxisY2.MinorGridEnabled = false;
this.stripChartX2.AxisY2.MinorGridType = SeeSharpTools.JY.GUI.StripChartXAxis.GridStyle.DashDot;
this.stripChartX2.AxisY2.TickWidth = 1F;
this.stripChartX2.AxisY2.Title = "";
this.stripChartX2.AxisY2.TitleOrientation = SeeSharpTools.JY.GUI.StripChartXAxis.AxisTextOrientation.Auto;
this.stripChartX2.AxisY2.TitlePosition = SeeSharpTools.JY.GUI.StripChartXAxis.AxisTextPosition.Center;
this.stripChartX2.AxisY2.ViewMaximum = 3.5D;
this.stripChartX2.AxisY2.ViewMinimum = 0.5D;
this.stripChartX2.BackColor = System.Drawing.Color.Transparent;
this.stripChartX2.ChartAreaBackColor = System.Drawing.Color.Empty;
this.stripChartX2.Direction = SeeSharpTools.JY.GUI.StripChartX.ScrollDirection.LeftToRight;
this.stripChartX2.DisplayPoints = 4000;
this.stripChartX2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.stripChartX2.ForeColor = System.Drawing.Color.White;
this.stripChartX2.GradientStyle = SeeSharpTools.JY.GUI.StripChartX.ChartGradientStyle.None;
this.stripChartX2.LegendBackColor = System.Drawing.Color.Transparent;
this.stripChartX2.LegendFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.stripChartX2.LegendForeColor = System.Drawing.Color.White;
this.stripChartX2.LegendVisible = true;
stripChartXSeries1.Color = System.Drawing.Color.Red;
stripChartXSeries1.Marker = SeeSharpTools.JY.GUI.StripChartXSeries.MarkerType.None;
stripChartXSeries1.Name = "Series1";
stripChartXSeries1.Type = SeeSharpTools.JY.GUI.StripChartXSeries.LineType.FastLine;
stripChartXSeries1.Visible = true;
stripChartXSeries1.Width = SeeSharpTools.JY.GUI.StripChartXSeries.LineWidth.Thin;
stripChartXSeries1.XPlotAxis = SeeSharpTools.JY.GUI.StripChartXAxis.PlotAxis.Primary;
stripChartXSeries1.YPlotAxis = SeeSharpTools.JY.GUI.StripChartXAxis.PlotAxis.Primary;
this.stripChartX2.LineSeries.Add(stripChartXSeries1);
this.stripChartX2.Location = new System.Drawing.Point(550, 378);
this.stripChartX2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.stripChartX2.Miscellaneous.CheckInfinity = false;
this.stripChartX2.Miscellaneous.CheckNaN = false;
this.stripChartX2.Miscellaneous.CheckNegtiveOrZero = false;
this.stripChartX2.Miscellaneous.DirectionChartCount = 3;
this.stripChartX2.Miscellaneous.Fitting = SeeSharpTools.JY.GUI.StripChartX.FitType.Range;
this.stripChartX2.Miscellaneous.MaxSeriesCount = 32;
this.stripChartX2.Miscellaneous.MaxSeriesPointCount = 4000;
this.stripChartX2.Miscellaneous.SplitLayoutColumnInterval = 0F;
this.stripChartX2.Miscellaneous.SplitLayoutDirection = SeeSharpTools.JY.GUI.StripChartXUtility.LayoutDirection.LeftToRight;
this.stripChartX2.Miscellaneous.SplitLayoutRowInterval = 0F;
this.stripChartX2.Miscellaneous.SplitViewAutoLayout = true;
this.stripChartX2.Name = "stripChartX2";
this.stripChartX2.NextTimeStamp = new System.DateTime(((long)(0)));
this.stripChartX2.ScrollType = SeeSharpTools.JY.GUI.StripChartX.StripScrollType.Cumulation;
this.stripChartX2.SeriesCount = 1;
this.stripChartX2.Size = new System.Drawing.Size(830, 157);
this.stripChartX2.SplitView = false;
this.stripChartX2.StartIndex = 0;
this.stripChartX2.TabIndex = 15;
this.stripChartX2.TimeInterval = System.TimeSpan.Parse("00:00:00");
this.stripChartX2.TimeStampFormat = null;
this.stripChartX2.XCursor.AutoInterval = true;
this.stripChartX2.XCursor.Color = System.Drawing.Color.DeepSkyBlue;
this.stripChartX2.XCursor.Interval = 0.001D;
this.stripChartX2.XCursor.Mode = SeeSharpTools.JY.GUI.StripChartXCursor.CursorMode.Zoom;
this.stripChartX2.XCursor.SelectionColor = System.Drawing.Color.LightGray;
this.stripChartX2.XCursor.Value = double.NaN;
this.stripChartX2.XDataType = SeeSharpTools.JY.GUI.StripChartX.XAxisDataType.Index;
this.stripChartX2.YCursor.AutoInterval = true;
this.stripChartX2.YCursor.Color = System.Drawing.Color.DeepSkyBlue;
this.stripChartX2.YCursor.Interval = 0.001D;
this.stripChartX2.YCursor.Mode = SeeSharpTools.JY.GUI.StripChartXCursor.CursorMode.Disabled;
this.stripChartX2.YCursor.SelectionColor = System.Drawing.Color.LightGray;
this.stripChartX2.YCursor.Value = double.NaN;
//
// stripChartX3
//
this.stripChartX3.AxisX.AutoScale = false;
this.stripChartX3.AxisX.AutoZoomReset = false;
this.stripChartX3.AxisX.Color = System.Drawing.Color.Black;
this.stripChartX3.AxisX.InitWithScaleView = false;
this.stripChartX3.AxisX.IsLogarithmic = false;
this.stripChartX3.AxisX.LabelAngle = 0;
this.stripChartX3.AxisX.LabelEnabled = true;
this.stripChartX3.AxisX.LabelFormat = null;
this.stripChartX3.AxisX.MajorGridColor = System.Drawing.Color.Black;
this.stripChartX3.AxisX.MajorGridCount = 6;
this.stripChartX3.AxisX.MajorGridEnabled = true;
this.stripChartX3.AxisX.MajorGridType = SeeSharpTools.JY.GUI.StripChartXAxis.GridStyle.Dash;
this.stripChartX3.AxisX.Maximum = 1000D;
this.stripChartX3.AxisX.Minimum = 0D;
this.stripChartX3.AxisX.MinorGridColor = System.Drawing.Color.Black;
this.stripChartX3.AxisX.MinorGridEnabled = false;
this.stripChartX3.AxisX.MinorGridType = SeeSharpTools.JY.GUI.StripChartXAxis.GridStyle.DashDot;
this.stripChartX3.AxisX.TickWidth = 1F;
this.stripChartX3.AxisX.Title = "";
this.stripChartX3.AxisX.TitleOrientation = SeeSharpTools.JY.GUI.StripChartXAxis.AxisTextOrientation.Auto;
this.stripChartX3.AxisX.TitlePosition = SeeSharpTools.JY.GUI.StripChartXAxis.AxisTextPosition.Center;
this.stripChartX3.AxisX.ViewMaximum = 1000D;
this.stripChartX3.AxisX.ViewMinimum = 0D;
this.stripChartX3.AxisX2.AutoScale = false;
this.stripChartX3.AxisX2.AutoZoomReset = false;
this.stripChartX3.AxisX2.Color = System.Drawing.Color.Black;
this.stripChartX3.AxisX2.InitWithScaleView = false;
this.stripChartX3.AxisX2.IsLogarithmic = false;
this.stripChartX3.AxisX2.LabelAngle = 0;
this.stripChartX3.AxisX2.LabelEnabled = true;
this.stripChartX3.AxisX2.LabelFormat = null;
this.stripChartX3.AxisX2.MajorGridColor = System.Drawing.Color.Black;
this.stripChartX3.AxisX2.MajorGridCount = 6;
this.stripChartX3.AxisX2.MajorGridEnabled = true;
this.stripChartX3.AxisX2.MajorGridType = SeeSharpTools.JY.GUI.StripChartXAxis.GridStyle.Dash;
this.stripChartX3.AxisX2.Maximum = 1000D;
this.stripChartX3.AxisX2.Minimum = 0D;
this.stripChartX3.AxisX2.MinorGridColor = System.Drawing.Color.Black;
this.stripChartX3.AxisX2.MinorGridEnabled = false;
this.stripChartX3.AxisX2.MinorGridType = SeeSharpTools.JY.GUI.StripChartXAxis.GridStyle.DashDot;
this.stripChartX3.AxisX2.TickWidth = 1F;
this.stripChartX3.AxisX2.Title = "";
this.stripChartX3.AxisX2.TitleOrientation = SeeSharpTools.JY.GUI.StripChartXAxis.AxisTextOrientation.Auto;
this.stripChartX3.AxisX2.TitlePosition = SeeSharpTools.JY.GUI.StripChartXAxis.AxisTextPosition.Center;
this.stripChartX3.AxisX2.ViewMaximum = 1000D;
this.stripChartX3.AxisX2.ViewMinimum = 0D;
this.stripChartX3.AxisY.AutoScale = true;
this.stripChartX3.AxisY.AutoZoomReset = false;
this.stripChartX3.AxisY.Color = System.Drawing.Color.Black;
this.stripChartX3.AxisY.InitWithScaleView = false;
this.stripChartX3.AxisY.IsLogarithmic = false;
this.stripChartX3.AxisY.LabelAngle = 0;
this.stripChartX3.AxisY.LabelEnabled = true;
this.stripChartX3.AxisY.LabelFormat = null;
this.stripChartX3.AxisY.MajorGridColor = System.Drawing.Color.Black;
this.stripChartX3.AxisY.MajorGridCount = 6;
this.stripChartX3.AxisY.MajorGridEnabled = true;
this.stripChartX3.AxisY.MajorGridType = SeeSharpTools.JY.GUI.StripChartXAxis.GridStyle.Dash;
this.stripChartX3.AxisY.Maximum = 3.5D;
this.stripChartX3.AxisY.Minimum = 0.5D;
this.stripChartX3.AxisY.MinorGridColor = System.Drawing.Color.Black;
this.stripChartX3.AxisY.MinorGridEnabled = false;
this.stripChartX3.AxisY.MinorGridType = SeeSharpTools.JY.GUI.StripChartXAxis.GridStyle.DashDot;
this.stripChartX3.AxisY.TickWidth = 1F;
this.stripChartX3.AxisY.Title = "";
this.stripChartX3.AxisY.TitleOrientation = SeeSharpTools.JY.GUI.StripChartXAxis.AxisTextOrientation.Auto;
this.stripChartX3.AxisY.TitlePosition = SeeSharpTools.JY.GUI.StripChartXAxis.AxisTextPosition.Center;
this.stripChartX3.AxisY.ViewMaximum = 3.5D;
this.stripChartX3.AxisY.ViewMinimum = 0.5D;
this.stripChartX3.AxisY2.AutoScale = true;
this.stripChartX3.AxisY2.AutoZoomReset = false;
this.stripChartX3.AxisY2.Color = System.Drawing.Color.Black;
this.stripChartX3.AxisY2.InitWithScaleView = false;
this.stripChartX3.AxisY2.IsLogarithmic = false;
this.stripChartX3.AxisY2.LabelAngle = 0;
this.stripChartX3.AxisY2.LabelEnabled = true;
this.stripChartX3.AxisY2.LabelFormat = null;
this.stripChartX3.AxisY2.MajorGridColor = System.Drawing.Color.Black;
this.stripChartX3.AxisY2.MajorGridCount = 6;
this.stripChartX3.AxisY2.MajorGridEnabled = true;
this.stripChartX3.AxisY2.MajorGridType = SeeSharpTools.JY.GUI.StripChartXAxis.GridStyle.Dash;
this.stripChartX3.AxisY2.Maximum = 3.5D;
this.stripChartX3.AxisY2.Minimum = 0.5D;
this.stripChartX3.AxisY2.MinorGridColor = System.Drawing.Color.Black;
this.stripChartX3.AxisY2.MinorGridEnabled = false;
this.stripChartX3.AxisY2.MinorGridType = SeeSharpTools.JY.GUI.StripChartXAxis.GridStyle.DashDot;
this.stripChartX3.AxisY2.TickWidth = 1F;
this.stripChartX3.AxisY2.Title = "";
this.stripChartX3.AxisY2.TitleOrientation = SeeSharpTools.JY.GUI.StripChartXAxis.AxisTextOrientation.Auto;
this.stripChartX3.AxisY2.TitlePosition = SeeSharpTools.JY.GUI.StripChartXAxis.AxisTextPosition.Center;
this.stripChartX3.AxisY2.ViewMaximum = 3.5D;
this.stripChartX3.AxisY2.ViewMinimum = 0.5D;
this.stripChartX3.BackColor = System.Drawing.Color.Transparent;
this.stripChartX3.ChartAreaBackColor = System.Drawing.Color.Empty;
this.stripChartX3.Direction = SeeSharpTools.JY.GUI.StripChartX.ScrollDirection.LeftToRight;
this.stripChartX3.DisplayPoints = 4000;
this.stripChartX3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.stripChartX3.ForeColor = System.Drawing.Color.White;
this.stripChartX3.GradientStyle = SeeSharpTools.JY.GUI.StripChartX.ChartGradientStyle.None;
this.stripChartX3.LegendBackColor = System.Drawing.Color.Transparent;
this.stripChartX3.LegendFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.stripChartX3.LegendForeColor = System.Drawing.Color.White;
this.stripChartX3.LegendVisible = true;
stripChartXSeries2.Color = System.Drawing.Color.Red;
stripChartXSeries2.Marker = SeeSharpTools.JY.GUI.StripChartXSeries.MarkerType.None;
stripChartXSeries2.Name = "Series1";
stripChartXSeries2.Type = SeeSharpTools.JY.GUI.StripChartXSeries.LineType.FastLine;
stripChartXSeries2.Visible = true;
stripChartXSeries2.Width = SeeSharpTools.JY.GUI.StripChartXSeries.LineWidth.Thin;
stripChartXSeries2.XPlotAxis = SeeSharpTools.JY.GUI.StripChartXAxis.PlotAxis.Primary;
stripChartXSeries2.YPlotAxis = SeeSharpTools.JY.GUI.StripChartXAxis.PlotAxis.Primary;
this.stripChartX3.LineSeries.Add(stripChartXSeries2);
this.stripChartX3.Location = new System.Drawing.Point(550, 543);
this.stripChartX3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.stripChartX3.Miscellaneous.CheckInfinity = false;
this.stripChartX3.Miscellaneous.CheckNaN = false;
this.stripChartX3.Miscellaneous.CheckNegtiveOrZero = false;
this.stripChartX3.Miscellaneous.DirectionChartCount = 3;
this.stripChartX3.Miscellaneous.Fitting = SeeSharpTools.JY.GUI.StripChartX.FitType.Range;
this.stripChartX3.Miscellaneous.MaxSeriesCount = 32;
this.stripChartX3.Miscellaneous.MaxSeriesPointCount = 4000;
this.stripChartX3.Miscellaneous.SplitLayoutColumnInterval = 0F;
this.stripChartX3.Miscellaneous.SplitLayoutDirection = SeeSharpTools.JY.GUI.StripChartXUtility.LayoutDirection.LeftToRight;
this.stripChartX3.Miscellaneous.SplitLayoutRowInterval = 0F;
this.stripChartX3.Miscellaneous.SplitViewAutoLayout = true;
this.stripChartX3.Name = "stripChartX3";
this.stripChartX3.NextTimeStamp = new System.DateTime(((long)(0)));
this.stripChartX3.ScrollType = SeeSharpTools.JY.GUI.StripChartX.StripScrollType.Cumulation;
this.stripChartX3.SeriesCount = 1;
this.stripChartX3.Size = new System.Drawing.Size(830, 180);
this.stripChartX3.SplitView = false;
this.stripChartX3.StartIndex = 0;
this.stripChartX3.TabIndex = 16;
this.stripChartX3.TimeInterval = System.TimeSpan.Parse("00:00:00");
this.stripChartX3.TimeStampFormat = null;
this.stripChartX3.XCursor.AutoInterval = true;
this.stripChartX3.XCursor.Color = System.Drawing.Color.DeepSkyBlue;
this.stripChartX3.XCursor.Interval = 0.001D;
this.stripChartX3.XCursor.Mode = SeeSharpTools.JY.GUI.StripChartXCursor.CursorMode.Zoom;
this.stripChartX3.XCursor.SelectionColor = System.Drawing.Color.LightGray;
this.stripChartX3.XCursor.Value = double.NaN;
this.stripChartX3.XDataType = SeeSharpTools.JY.GUI.StripChartX.XAxisDataType.Index;
this.stripChartX3.YCursor.AutoInterval = true;
this.stripChartX3.YCursor.Color = System.Drawing.Color.DeepSkyBlue;
this.stripChartX3.YCursor.Interval = 0.001D;
this.stripChartX3.YCursor.Mode = SeeSharpTools.JY.GUI.StripChartXCursor.CursorMode.Disabled;
this.stripChartX3.YCursor.SelectionColor = System.Drawing.Color.LightGray;
this.stripChartX3.YCursor.Value = double.NaN;
//
// trw1
//
this.trw1.BackColor = System.Drawing.Color.Transparent;
cpkModel1.CA = 0D;
cpkModel1.ChartType = null;
cpkModel1.GroupCP = 0D;
cpkModel1.GroupCPK = 0D;
cpkModel1.GroupCPL = 0D;
cpkModel1.GroupCPU = 0D;
cpkModel1.GroupPPM_LSL = 0D;
cpkModel1.GroupPPM_Total = 0D;
cpkModel1.GroupPPM_USL = 0D;
cpkModel1.GroupSTDEV = 0D;
cpkModel1.MaxValue = 0D;
cpkModel1.MeanVlaue = 0D;
cpkModel1.MeasuredPPM_LSL = 0D;
cpkModel1.MeasuredPPM_Total = 0D;
cpkModel1.MeasuredPPM_USL = 0D;
cpkModel1.MinValue = 0D;
cpkModel1.Neg3Sigma = 0D;
cpkModel1.Pos3Sigma = 0D;
cpkModel1.TotalNumber = 0;
cpkModel1.WholeCP = 0D;
cpkModel1.WholeCPK = 0D;
cpkModel1.WholeCPL = 0D;
cpkModel1.WholeCPU = 0D;
cpkModel1.WholePPM_LSL = 0D;
cpkModel1.WholePPM_Total = 0D;
cpkModel1.WholePPM_USL = 0D;
cpkModel1.WholeSTDEV = 0D;
this.trw1.CPKData = cpkModel1;
this.trw1.CpkPpkAcceptanceValue = 0D;
this.trw1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.trw1.Location = new System.Drawing.Point(5, 315);
this.trw1.LSLs = 0D;
this.trw1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.trw1.Name = "trw1";
this.trw1.Size = new System.Drawing.Size(526, 415);
this.trw1.SubgroupSize = 5;
this.trw1.TabIndex = 17;
this.trw1.USLs = 0D;
//
// chartControl
//
chartArea1.Name = "ChartArea1";
this.chartControl.ChartAreas.Add(chartArea1);
legend1.Name = "Legend1";
this.chartControl.Legends.Add(legend1);
this.chartControl.Location = new System.Drawing.Point(571, 44);
this.chartControl.Name = "chartControl";
series1.ChartArea = "ChartArea1";
series1.Legend = "Legend1";
series1.Name = "Series1";
this.chartControl.Series.Add(series1);
this.chartControl.Size = new System.Drawing.Size(785, 289);
this.chartControl.TabIndex = 18;
this.chartControl.Text = "chart1";
//
// FrmCpkCount
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackgroundImage = global::LargeSquareOne.Properties.Resources.BackGround;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(1392, 734);
this.Controls.Add(this.chartControl);
this.Controls.Add(this.trw1);
this.Controls.Add(this.stripChartX3);
this.Controls.Add(this.stripChartX2);
this.Controls.Add(this.btn_Add);
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(5);
this.Name = "FrmCpkCount";
this.Text = "数据分析";
this.Load += new System.EventHandler(this.FrmCpkCount_Load);
((System.ComponentModel.ISupportInitialize)(this.chartControl)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button btn_Add;
private SeeSharpTools.JY.GUI.StripChartX stripChartX2;
private SeeSharpTools.JY.GUI.StripChartX stripChartX3;
private trw trw1;
private System.Windows.Forms.DataVisualization.Charting.Chart chartControl;
}
}
+484
View File
@@ -0,0 +1,484 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Windows.Forms.DataVisualization.Charting;
namespace LargeSquareOne
{
public partial class FrmCpkCount : Form
{
public FrmCpkCount()
{
InitializeComponent();
}
#region 减少闪烁
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000;
return cp;
}
}
#endregion
private void FrmCpkCount_Load(object sender, EventArgs e)
{
}
private void btn_Add_Click(object sender, EventArgs e)
{
List<double> data = GetSPCData();
// 计算Xbar和R
double xbar = CalculateXbar(data);
double r = CalculateR(data);
// 计算控制限
double uclXbar = CalculateUCLXbar(data.Count);
double lclXbar = CalculateLCLXbar(data.Count);
double uclR = CalculateUCLR(data.Count);
double lclR = CalculateLCLR(data.Count);
// 清空图表
chartControl.Series.Clear();
double xmaxValue = Math.Max(xbar, Math.Max(uclXbar, uclR));
double xminValue = Math.Max(xbar, Math.Max(lclXbar, lclR));
chartControl.ChartAreas[0].AxisY.Maximum = xmaxValue + 2;
chartControl.ChartAreas[0].AxisY.Minimum = xminValue + 2;
//double rmaxValue = Math.Max(r, uclR);
//double rminValue = Math.Max(r, lclR);
//chartControl.ChartAreas[1].AxisY.Maximum = rmaxValue;
//chartControl.ChartAreas[1].AxisY.Minimum = rminValue;
// 绘制Xbar-R控制图
Series seriesXbar = new Series();
seriesXbar.ChartType = SeriesChartType.Line;
seriesXbar.Name = "Xbar";
Series seriesR = new Series();
seriesR.ChartType = SeriesChartType.Line;
seriesR.Name = "R";
// 添加数据点和控制限
chartControl.Series.Add(seriesXbar);
chartControl.Series.Add(seriesR);
for (int i = 0; i < data.Count; i++)
{
seriesXbar.Points.AddXY(i + 1, xbar);
seriesR.Points.AddXY(i + 1, r);
}
}
// 假设这是获取SPC数据的方法
private List<double> GetSPCData()
{
// 返回样本数据的List<double>
// 根据需要修改为实际的获取方法
return new List<double> { 1.2, 1.3, 1.0, 2.5, 2.2, 2.8, 0.8, 0.9, 1.1 };
}
/// <summary>
/// 对样本进行分组
/// </summary>
/// <param name="sampleData"></param>
/// <param name="groupSize"></param>
/// <returns></returns>
private List<List<double>> groupedData(List<double> sampleData, int groupSize = 3)
{
List<List<double>> groupedData = new List<List<double>>();
for (int i = 0; i < sampleData.Count; i += groupSize)
{
List<double> group = sampleData.Skip(i).Take(groupSize).ToList();
groupedData.Add(group);
}
return groupedData;
}
// 假设这是计算Xbar的方法
private double CalculateXbar(List<double> data)
{
// 根据输入的样本数据计算Xbar
// 根据需要修改为实际的计算方法
double sum = 0;
foreach (var value in data)
{
sum += value;
}
return sum / data.Count;
}
// 假设这是计算R的方法
private double CalculateR(List<double> data)
{
// 根据输入的样本数据计算R
// 根据需要修改为实际的计算方法
double max = data[0];
double min = data[0];
foreach (var value in data)
{
if (value > max)
max = value;
if (value < min)
min = value;
}
return max - min;
}
#region 根据样本大小计算UCL(Xbar)
// 这是计算UCL(Xbar)的方法
private double CalculateUCLXbar(int sampleSize)
{
// 根据样本大小计算UCL(Xbar)
// 根据需要修改为实际的计算方法
double Xbar_bar = 0; // 所有样本均值的平均值
double R_bar = 0; // 所有样本范围的平均值
double A2 = 0; // 控制系数
// 根据样本大小确定控制系数A2
if (sampleSize <= 25)
{
A2 = 0.577;
}
else if (sampleSize <= 100)
{
A2 = 0.425;
}
else if (sampleSize <= 500)
{
A2 = 0.372;
}
else
{
// 根据需要添加更多样本大小的控制系数A2
}
//对样本进行分组
List<double> data = GetSPCData();
// 计算每个样本的均值和范围
List<double> sampleMeans = CalculateSampleMeans(groupedData(data));
List<double> sampleRanges = CalculateSampleRanges(groupedData(data));
// 计算所有样本均值的平均值和所有样本范围的平均值
Xbar_bar = sampleMeans.Average();
R_bar = sampleRanges.Average();
// 计算UCL(Xbar)
double UCL_Xbar = Xbar_bar + (A2 * R_bar);
return UCL_Xbar;
}
// 根据需要实现计算样本均值的方法
private List<double> CalculateSampleMeans(List<List<double>> sampleData)
{
// 根据样本数据计算每个样本的均值,并返回一个包含所有样本均值的List<double>
// 根据实际的计算方法进行修改
List<double> sampleMeans = new List<double>();
foreach (var sample in sampleData)
{
double sum = 0;
int count = sample.Count;
foreach (var value in sample)
{
sum += value;
}
double mean = sum / count;
sampleMeans.Add(mean);
}
return sampleMeans;
}
// 根据需要实现计算样本范围的方法
private List<double> CalculateSampleRanges(List<List<double>> sampleData)
{
// 根据样本数据计算每个样本的范围,并返回一个包含所有样本范围的List<double>
// 根据实际的计算方法进行修改
List<double> sampleRanges = new List<double>();
foreach (var sample in sampleData)
{
double min = sample.Min();
double max = sample.Max();
double range = max - min;
sampleRanges.Add(range);
}
return sampleRanges;
}
#endregion
#region 计算LCL(Xbar)的方法
private double CalculateLCLXbar(int sampleSize)
{
// 根据样本大小计算LCL(Xbar)
// 根据需要修改为实际的计算方法
double Xbar_bar = 0; // 所有样本均值的平均值
double R_bar = 0; // 所有样本范围的平均值
double A2 = 0; // 控制系数
// 根据样本大小确定控制系数A2
if (sampleSize <= 25)
{
A2 = 0.577;
}
else if (sampleSize <= 100)
{
A2 = 0.425;
}
else if (sampleSize <= 500)
{
A2 = 0.372;
}
else
{
// 根据需要添加更多样本大小的控制系数A2
}
//对样本进行分组
List<double> data = GetSPCData();
// 计算每个样本的均值和范围
List<double> sampleMeans = CalculateSampleMeans(groupedData(data));
List<double> sampleRanges = CalculateSampleRanges(groupedData(data));
// 计算所有样本均值的平均值和所有样本范围的平均值
Xbar_bar = sampleMeans.Average();
R_bar = sampleRanges.Average();
// 计算LCL(Xbar)
double LCL_Xbar = Xbar_bar - (A2 * R_bar);
return LCL_Xbar;
}
/// <summary>
/// 根据样本大小选择合适的A2值
/// </summary>
/// <param name="sampleSize"></param>
/// <returns></returns>
private double GetA2(int sampleSize)
{
double A2 = 0; // 控制系数
//
if (sampleSize == 2)
{
A2 = 1.880;
}
else if (sampleSize == 3)
{
A2 = 1.023;
}
else if (sampleSize == 4)
{
A2 = 0.729;
}
else if (sampleSize == 5)
{
A2 = 0.577;
}
else if (sampleSize == 6)
{
A2 = 0.483;
}
else if (sampleSize > 6)
{
A2 = 3 / Math.Sqrt(sampleSize);
}
else
{
// 根据需要添加更多样本大小的A2值
}
return A2;
}
#endregion
#region 计算UCL(R)的方法
// 假设这是计算UCL(R)的方法
private double CalculateUCLR(int sampleSize)
{
// 根据样本大小计算UCL(R)
// 根据需要修改为实际的计算方法
double R_bar = 0; // 所有样本范围的平均值
double D4 = 0; // 控制系数
// 根据样本大小确定控制系数D4
D4 = GetD4(sampleSize);
//对样本进行分组
List<double> data = GetSPCData();
// 计算每个样本的范围
List<double> sampleRanges = CalculateSampleRanges(groupedData(data));
// 计算所有样本范围的平均值
R_bar = sampleRanges.Average();
// 计算UCL(R)
double UCL_R = D4 * R_bar;
return UCL_R;
}
#region 控制系数D4计算
//如果样本大小大于或等于2,但小于等于8,那么D4的值为2.282。
//如果样本大小大于8,但小于等于10,那么D4的值为2.115。
//如果样本大小大于10,但小于等于15,那么D4的值为2.004。
//如果样本大小大于15,但小于等于20,那么D4的值为1.924。
//如果样本大小大于20,但小于等于25,那么D4的值为1.864。
//如果样本大小大于25,但小于等于30,那么D4的值为1.816。
//对于更大的样本大小,您可以在SPC的相关文献或标准表中查找合适的D4的值。
private double GetD4(int sampleSize)
{
double D4 = 0; // 控制系数
// 根据样本大小选择合适的D4值
if (sampleSize >= 2 && sampleSize <= 8)
{
D4 = 2.282;
}
else if (sampleSize > 8 && sampleSize <= 10)
{
D4 = 2.115;
}
else if (sampleSize > 10 && sampleSize <= 15)
{
D4 = 2.004;
}
else if (sampleSize > 15 && sampleSize <= 20)
{
D4 = 1.924;
}
else if (sampleSize > 20 && sampleSize <= 25)
{
D4 = 1.864;
}
else if (sampleSize > 25 && sampleSize <= 30)
{
D4 = 1.816;
}
else
{
// 对于更大的样本大小,根据需要添加更多D4的值
}
return D4;
}
#endregion
#endregion
#region 计算LCL(R)的方法
private double CalculateLCLR(int sampleSize)
{
// 根据样本大小计算LCL(R)
// 根据需要修改为实际的计算方法
double R_bar = 0; // 所有样本范围的平均值
double D3 = 0; // 控制系数
// 根据样本大小确定控制系数D3
D3 = GetD3(sampleSize);
//对样本进行分组
List<double> data = GetSPCData();
// 计算每个样本的范围
List<double> sampleRanges = CalculateSampleRanges(groupedData(data));
// 计算所有样本范围的平均值
R_bar = sampleRanges.Average();
// 计算LCL(R)
double LCL_R = D3 * R_bar;
return LCL_R;
}
/// <summary>
/// 根据样本大小选择合适的D3值
/// </summary>
/// <param name="sampleSize"></param>
/// <returns></returns>
///
///如果样本大小大于或等于2,但小于等于6,那么D3的值为0。
//如果样本大小为7,那么D3的值为0。
//如果样本大小大于7,但小于等于8,那么D3的值为0.076。
//如果样本大小大于8,但小于等于10,那么D3的值为0.136。
//如果样本大小大于10,但小于等于12,那么D3的值为0.184。
//如果样本大小大于12,但小于等于16,那么D3的值为0.223。
//如果样本大小大于16,但小于等于20,那么D3的值为0.251。
//如果样本大小大于20,但小于等于25,那么D3的值为0.277。
//对于更大的样本大小,您可以在SPC的相关文献或标准表中查找合适的D3的值。
private double GetD3(int sampleSize)
{
double D3 = 0; // 控制系数
if (sampleSize >= 2 && sampleSize <= 6)
{
D3 = 0;
}
else if (sampleSize == 7)
{
D3 = 0;
}
else if (sampleSize > 7 && sampleSize <= 8)
{
D3 = 0.076;
}
else if (sampleSize > 8 && sampleSize <= 10)
{
D3 = 0.136;
}
else if (sampleSize > 10 && sampleSize <= 12)
{
D3 = 0.184;
}
else if (sampleSize > 12 && sampleSize <= 16)
{
D3 = 0.223;
}
else if (sampleSize > 16 && sampleSize <= 20)
{
D3 = 0.251;
}
else if (sampleSize > 20 && sampleSize <= 25)
{
D3 = 0.277;
}
else
{
// 对于更大的样本大小,根据需要添加更多D3的值
}
return D3;
}
#endregion
}
}
+120
View 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>
+907
View File
@@ -0,0 +1,907 @@
namespace LargeSquareOne
{
partial class FrmDataMonitor
{
/// <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.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmDataMonitor));
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.groupBoxEX3 = new JinYuan.ControlLib.GroupBoxEX();
this.btSatrt = new HML.ButtonPlus();
this.txtMaterialCode = new System.Windows.Forms.TextBox();
this.cmbModelType = new HML.DropDownListPlus();
this.angleLabel2 = new HML.AngleLabel();
this.angleLabel1 = new HML.AngleLabel();
this.btStop = new HML.ButtonPlus();
this.groupBoxEX2 = new JinYuan.ControlLib.GroupBoxEX();
this.lVConfigRange = new System.Windows.Forms.ListView();
this.clParaName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.clMin = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.clMax = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.cUint = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.groupBoxEX4 = new JinYuan.ControlLib.GroupBoxEX();
this.dgvFeedingData = new System.Windows.Forms.DataGridView();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.InResult = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column139 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.groupBoxEX1 = new JinYuan.ControlLib.GroupBoxEX();
this.rtb_Info = new System.Windows.Forms.RichTextBox();
this.groupBoxEX5 = new JinYuan.ControlLib.GroupBoxEX();
this.dgvBlankingData = new System.Windows.Forms.DataGridView();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column33 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column29 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column138 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column25 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column96 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column97 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column98 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column99 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column100 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column101 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column103 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column104 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column105 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column106 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column107 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column108 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column109 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column110 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column111 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column112 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column113 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column114 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column147 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column34 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column35 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column102 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column22 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tableLayoutPanel1.SuspendLayout();
this.groupBoxEX3.SuspendLayout();
this.groupBoxEX2.SuspendLayout();
this.groupBoxEX4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvFeedingData)).BeginInit();
this.groupBoxEX1.SuspendLayout();
this.groupBoxEX5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvBlankingData)).BeginInit();
this.SuspendLayout();
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
this.tableLayoutPanel1.ColumnCount = 3;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 24.94608F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 75.05392F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 528F));
this.tableLayoutPanel1.Controls.Add(this.groupBoxEX3, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.groupBoxEX2, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.groupBoxEX4, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.groupBoxEX1, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.groupBoxEX5, 1, 2);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(2);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 3;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 45.62334F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 54.37666F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 477F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 13F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1370, 749);
this.tableLayoutPanel1.TabIndex = 0;
//
// groupBoxEX3
//
this.groupBoxEX3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.groupBoxEX3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.groupBoxEX3.Controls.Add(this.btSatrt);
this.groupBoxEX3.Controls.Add(this.txtMaterialCode);
this.groupBoxEX3.Controls.Add(this.cmbModelType);
this.groupBoxEX3.Controls.Add(this.angleLabel2);
this.groupBoxEX3.Controls.Add(this.angleLabel1);
this.groupBoxEX3.Controls.Add(this.btStop);
this.groupBoxEX3.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBoxEX3.ForeColor = System.Drawing.Color.White;
this.groupBoxEX3.Location = new System.Drawing.Point(2, 2);
this.groupBoxEX3.Margin = new System.Windows.Forms.Padding(2);
this.groupBoxEX3.Name = "groupBoxEX3";
this.groupBoxEX3.Padding = new System.Windows.Forms.Padding(2);
this.groupBoxEX3.Size = new System.Drawing.Size(206, 120);
this.groupBoxEX3.TabIndex = 14;
this.groupBoxEX3.TabStop = false;
this.groupBoxEX3.Text = "操作设置";
//
// btSatrt
//
this.btSatrt.BackNormalColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
this.btSatrt.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btSatrt.Location = new System.Drawing.Point(42, 29);
this.btSatrt.Margin = new System.Windows.Forms.Padding(2);
this.btSatrt.Name = "btSatrt";
this.btSatrt.Padding = new System.Windows.Forms.Padding(2);
this.btSatrt.Size = new System.Drawing.Size(67, 28);
this.btSatrt.TabIndex = 12;
this.btSatrt.Text = "开始监控";
this.btSatrt.Click += new System.EventHandler(this.btSatrt_Click);
//
// txtMaterialCode
//
this.txtMaterialCode.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.txtMaterialCode.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtMaterialCode.ForeColor = System.Drawing.Color.White;
this.txtMaterialCode.Location = new System.Drawing.Point(110, 56);
this.txtMaterialCode.Margin = new System.Windows.Forms.Padding(2);
this.txtMaterialCode.Name = "txtMaterialCode";
this.txtMaterialCode.ReadOnly = true;
this.txtMaterialCode.Size = new System.Drawing.Size(180, 26);
this.txtMaterialCode.TabIndex = 0;
//
// cmbModelType
//
this.cmbModelType.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.cmbModelType.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.cmbModelType.ContentItemsStyle.ItemBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
this.cmbModelType.DropDownButton.BackNormalColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.cmbModelType.DropDownButton.DropDownFullArea = true;
this.cmbModelType.Location = new System.Drawing.Point(110, 19);
this.cmbModelType.Margin = new System.Windows.Forms.Padding(2);
this.cmbModelType.Name = "cmbModelType";
this.cmbModelType.Size = new System.Drawing.Size(180, 30);
this.cmbModelType.TabIndex = 1;
this.cmbModelType.SelectedItemsChanged += new System.EventHandler(this.cmbModelType_SelectedItemsChanged);
//
// angleLabel2
//
this.angleLabel2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold);
this.angleLabel2.ForeColor = System.Drawing.Color.White;
this.angleLabel2.Location = new System.Drawing.Point(22, 56);
this.angleLabel2.Margin = new System.Windows.Forms.Padding(2);
this.angleLabel2.Name = "angleLabel2";
this.angleLabel2.Size = new System.Drawing.Size(88, 24);
this.angleLabel2.TabIndex = 11;
this.angleLabel2.Text = "物料编码:";
//
// angleLabel1
//
this.angleLabel1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold);
this.angleLabel1.ForeColor = System.Drawing.Color.White;
this.angleLabel1.Location = new System.Drawing.Point(22, 24);
this.angleLabel1.Margin = new System.Windows.Forms.Padding(2);
this.angleLabel1.Name = "angleLabel1";
this.angleLabel1.Size = new System.Drawing.Size(88, 24);
this.angleLabel1.TabIndex = 10;
this.angleLabel1.Text = "生产型号:";
//
// btStop
//
this.btStop.BackNormalColor = System.Drawing.Color.Red;
this.btStop.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold);
this.btStop.Location = new System.Drawing.Point(171, 105);
this.btStop.Margin = new System.Windows.Forms.Padding(2);
this.btStop.Name = "btStop";
this.btStop.Padding = new System.Windows.Forms.Padding(2);
this.btStop.Size = new System.Drawing.Size(67, 28);
this.btStop.TabIndex = 13;
this.btStop.Text = "停止监控";
this.btStop.Click += new System.EventHandler(this.btStop_Click);
//
// groupBoxEX2
//
this.groupBoxEX2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.groupBoxEX2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.groupBoxEX2.Controls.Add(this.lVConfigRange);
this.groupBoxEX2.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBoxEX2.ForeColor = System.Drawing.Color.White;
this.groupBoxEX2.Location = new System.Drawing.Point(2, 126);
this.groupBoxEX2.Margin = new System.Windows.Forms.Padding(2);
this.groupBoxEX2.Name = "groupBoxEX2";
this.groupBoxEX2.Padding = new System.Windows.Forms.Padding(2);
this.groupBoxEX2.Size = new System.Drawing.Size(206, 143);
this.groupBoxEX2.TabIndex = 13;
this.groupBoxEX2.TabStop = false;
this.groupBoxEX2.Text = "参数";
//
// lVConfigRange
//
this.lVConfigRange.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.lVConfigRange.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.lVConfigRange.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.clParaName,
this.clMin,
this.clMax,
this.cUint});
this.lVConfigRange.Dock = System.Windows.Forms.DockStyle.Fill;
this.lVConfigRange.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lVConfigRange.ForeColor = System.Drawing.Color.White;
this.lVConfigRange.HideSelection = false;
this.lVConfigRange.Location = new System.Drawing.Point(2, 21);
this.lVConfigRange.Margin = new System.Windows.Forms.Padding(2);
this.lVConfigRange.Name = "lVConfigRange";
this.lVConfigRange.OwnerDraw = true;
this.lVConfigRange.Size = new System.Drawing.Size(202, 120);
this.lVConfigRange.TabIndex = 2;
this.lVConfigRange.UseCompatibleStateImageBehavior = false;
this.lVConfigRange.View = System.Windows.Forms.View.Details;
this.lVConfigRange.DrawColumnHeader += new System.Windows.Forms.DrawListViewColumnHeaderEventHandler(this.lVConfigRange_DrawColumnHeader);
this.lVConfigRange.DrawItem += new System.Windows.Forms.DrawListViewItemEventHandler(this.lVConfigRange_DrawItem);
this.lVConfigRange.DrawSubItem += new System.Windows.Forms.DrawListViewSubItemEventHandler(this.lVConfigRange_DrawSubItem);
//
// clParaName
//
this.clParaName.Text = "参数项";
this.clParaName.Width = 105;
//
// clMin
//
this.clMin.Text = "最小值";
this.clMin.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.clMin.Width = 80;
//
// clMax
//
this.clMax.Text = "最大值";
this.clMax.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.clMax.Width = 70;
//
// cUint
//
this.cUint.Text = "单位";
this.cUint.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.cUint.Width = 50;
//
// groupBoxEX4
//
this.groupBoxEX4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.groupBoxEX4.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.tableLayoutPanel1.SetColumnSpan(this.groupBoxEX4, 2);
this.groupBoxEX4.Controls.Add(this.dgvFeedingData);
this.groupBoxEX4.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBoxEX4.ForeColor = System.Drawing.Color.White;
this.groupBoxEX4.Location = new System.Drawing.Point(212, 2);
this.groupBoxEX4.Margin = new System.Windows.Forms.Padding(2);
this.groupBoxEX4.Name = "groupBoxEX4";
this.groupBoxEX4.Padding = new System.Windows.Forms.Padding(2);
this.tableLayoutPanel1.SetRowSpan(this.groupBoxEX4, 2);
this.groupBoxEX4.Size = new System.Drawing.Size(1156, 267);
this.groupBoxEX4.TabIndex = 15;
this.groupBoxEX4.TabStop = false;
this.groupBoxEX4.Text = "进站";
//
// dgvFeedingData
//
this.dgvFeedingData.AllowUserToAddRows = false;
this.dgvFeedingData.AllowUserToDeleteRows = false;
this.dgvFeedingData.AllowUserToResizeColumns = false;
this.dgvFeedingData.AllowUserToResizeRows = false;
this.dgvFeedingData.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.dgvFeedingData.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgvFeedingData.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvFeedingData.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dgvFeedingData.ColumnHeadersHeight = 34;
this.dgvFeedingData.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dgvFeedingData.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column4,
this.Column2,
this.Column6,
this.Column1,
this.InResult,
this.Column5,
this.Column139});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32)))));
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvFeedingData.DefaultCellStyle = dataGridViewCellStyle2;
this.dgvFeedingData.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvFeedingData.EnableHeadersVisualStyles = false;
this.dgvFeedingData.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.dgvFeedingData.Location = new System.Drawing.Point(2, 21);
this.dgvFeedingData.Margin = new System.Windows.Forms.Padding(2);
this.dgvFeedingData.MultiSelect = false;
this.dgvFeedingData.Name = "dgvFeedingData";
this.dgvFeedingData.ReadOnly = true;
this.dgvFeedingData.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvFeedingData.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
this.dgvFeedingData.RowHeadersVisible = false;
this.dgvFeedingData.RowHeadersWidth = 60;
this.dgvFeedingData.RowTemplate.Height = 23;
this.dgvFeedingData.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvFeedingData.Size = new System.Drawing.Size(1152, 244);
this.dgvFeedingData.TabIndex = 10;
this.dgvFeedingData.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvFeedingData_CellContentClick);
this.dgvFeedingData.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.dgvFeedingData_RowPrePaint);
//
// Column4
//
this.Column4.DataPropertyName = "ID";
this.Column4.HeaderText = "序号";
this.Column4.MinimumWidth = 8;
this.Column4.Name = "Column4";
this.Column4.ReadOnly = true;
this.Column4.Width = 52;
//
// Column2
//
this.Column2.DataPropertyName = "TestTime";
this.Column2.HeaderText = "时间";
this.Column2.MinimumWidth = 8;
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column2.Width = 160;
//
// Column6
//
this.Column6.DataPropertyName = "CNum";
this.Column6.HeaderText = "通道";
this.Column6.Name = "Column6";
this.Column6.ReadOnly = true;
//
// Column1
//
this.Column1.DataPropertyName = "BarCode";
this.Column1.HeaderText = "电芯码";
this.Column1.MinimumWidth = 8;
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column1.Width = 210;
//
// InResult
//
this.InResult.DataPropertyName = "Result";
this.InResult.HeaderText = "结果";
this.InResult.MinimumWidth = 8;
this.InResult.Name = "InResult";
this.InResult.ReadOnly = true;
this.InResult.Width = 61;
//
// Column5
//
this.Column5.DataPropertyName = "Remark";
this.Column5.HeaderText = "备注";
this.Column5.MinimumWidth = 8;
this.Column5.Name = "Column5";
this.Column5.ReadOnly = true;
this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column5.Width = 400;
//
// Column139
//
this.Column139.DataPropertyName = "UpState";
this.Column139.HeaderText = "上传状态";
this.Column139.Name = "Column139";
this.Column139.ReadOnly = true;
//
// groupBoxEX1
//
this.groupBoxEX1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.groupBoxEX1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.groupBoxEX1.Controls.Add(this.rtb_Info);
this.groupBoxEX1.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBoxEX1.ForeColor = System.Drawing.Color.White;
this.groupBoxEX1.Location = new System.Drawing.Point(2, 273);
this.groupBoxEX1.Margin = new System.Windows.Forms.Padding(2);
this.groupBoxEX1.Name = "groupBoxEX1";
this.groupBoxEX1.Padding = new System.Windows.Forms.Padding(2);
this.groupBoxEX1.Size = new System.Drawing.Size(206, 474);
this.groupBoxEX1.TabIndex = 12;
this.groupBoxEX1.TabStop = false;
this.groupBoxEX1.Text = "日志记录";
//
// rtb_Info
//
this.rtb_Info.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.rtb_Info.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.rtb_Info.Dock = System.Windows.Forms.DockStyle.Fill;
this.rtb_Info.ForeColor = System.Drawing.Color.White;
this.rtb_Info.Location = new System.Drawing.Point(2, 21);
this.rtb_Info.Margin = new System.Windows.Forms.Padding(2);
this.rtb_Info.Name = "rtb_Info";
this.rtb_Info.ReadOnly = true;
this.rtb_Info.Size = new System.Drawing.Size(202, 451);
this.rtb_Info.TabIndex = 1;
this.rtb_Info.Text = "";
//
// groupBoxEX5
//
this.groupBoxEX5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.groupBoxEX5.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.tableLayoutPanel1.SetColumnSpan(this.groupBoxEX5, 2);
this.groupBoxEX5.Controls.Add(this.dgvBlankingData);
this.groupBoxEX5.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBoxEX5.ForeColor = System.Drawing.Color.White;
this.groupBoxEX5.Location = new System.Drawing.Point(212, 273);
this.groupBoxEX5.Margin = new System.Windows.Forms.Padding(2);
this.groupBoxEX5.Name = "groupBoxEX5";
this.groupBoxEX5.Padding = new System.Windows.Forms.Padding(2);
this.groupBoxEX5.Size = new System.Drawing.Size(1156, 474);
this.groupBoxEX5.TabIndex = 16;
this.groupBoxEX5.TabStop = false;
this.groupBoxEX5.Text = "出站";
//
// dgvBlankingData
//
this.dgvBlankingData.AllowUserToAddRows = false;
this.dgvBlankingData.AllowUserToDeleteRows = false;
this.dgvBlankingData.AllowUserToResizeColumns = false;
this.dgvBlankingData.AllowUserToResizeRows = false;
this.dgvBlankingData.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.dgvBlankingData.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgvBlankingData.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvBlankingData.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
this.dgvBlankingData.ColumnHeadersHeight = 34;
this.dgvBlankingData.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dgvBlankingData.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn2,
this.Column7,
this.dataGridViewTextBoxColumn5,
this.Column33,
this.Column29,
this.Column3,
this.Column138,
this.Column25,
this.Column96,
this.Column97,
this.Column98,
this.Column99,
this.Column100,
this.Column101,
this.Column103,
this.Column104,
this.Column105,
this.Column106,
this.Column107,
this.Column108,
this.Column109,
this.Column110,
this.Column111,
this.Column112,
this.Column113,
this.Column114,
this.Column147,
this.Column34,
this.Column35,
this.Column102,
this.Column22});
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32)))));
dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvBlankingData.DefaultCellStyle = dataGridViewCellStyle5;
this.dgvBlankingData.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvBlankingData.EnableHeadersVisualStyles = false;
this.dgvBlankingData.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.dgvBlankingData.Location = new System.Drawing.Point(2, 21);
this.dgvBlankingData.Margin = new System.Windows.Forms.Padding(2);
this.dgvBlankingData.MultiSelect = false;
this.dgvBlankingData.Name = "dgvBlankingData";
this.dgvBlankingData.ReadOnly = true;
this.dgvBlankingData.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle6.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvBlankingData.RowHeadersDefaultCellStyle = dataGridViewCellStyle6;
this.dgvBlankingData.RowHeadersVisible = false;
this.dgvBlankingData.RowHeadersWidth = 60;
this.dgvBlankingData.RowTemplate.Height = 23;
this.dgvBlankingData.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvBlankingData.Size = new System.Drawing.Size(1152, 451);
this.dgvBlankingData.TabIndex = 10;
this.dgvBlankingData.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvBlankingData_CellContentClick);
//
// imageList1
//
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
this.imageList1.Images.SetKeyName(0, "info.png");
this.imageList1.Images.SetKeyName(1, "error.png");
this.imageList1.Images.SetKeyName(2, "warning.png");
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.HeaderText = "序号";
this.dataGridViewTextBoxColumn1.MinimumWidth = 8;
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.ReadOnly = true;
this.dataGridViewTextBoxColumn1.Width = 52;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.DataPropertyName = "CSBYHASCANNINGTIME";
this.dataGridViewTextBoxColumn2.HeaderText = "时间";
this.dataGridViewTextBoxColumn2.MinimumWidth = 8;
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.ReadOnly = true;
this.dataGridViewTextBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.dataGridViewTextBoxColumn2.Width = 160;
//
// Column7
//
this.Column7.DataPropertyName = "ChannelNo";
this.Column7.HeaderText = "通道";
this.Column7.Name = "Column7";
this.Column7.ReadOnly = true;
//
// dataGridViewTextBoxColumn5
//
this.dataGridViewTextBoxColumn5.DataPropertyName = "CSBYHCODEA";
this.dataGridViewTextBoxColumn5.HeaderText = "芯包条码";
this.dataGridViewTextBoxColumn5.MinimumWidth = 8;
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
this.dataGridViewTextBoxColumn5.ReadOnly = true;
this.dataGridViewTextBoxColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.dataGridViewTextBoxColumn5.Width = 210;
//
// Column33
//
this.Column33.DataPropertyName = "CSBYHSCHEDULE";
this.Column33.HeaderText = "班次";
this.Column33.MinimumWidth = 8;
this.Column33.Name = "Column33";
this.Column33.ReadOnly = true;
this.Column33.Width = 150;
//
// Column29
//
this.Column29.DataPropertyName = "CSBYHOUTSTATIONJUDGMENTRESULT";
this.Column29.HeaderText = "出站判定";
this.Column29.MinimumWidth = 8;
this.Column29.Name = "Column29";
this.Column29.ReadOnly = true;
this.Column29.Width = 150;
//
// Column3
//
this.Column3.DataPropertyName = "Remark";
this.Column3.HeaderText = "备注";
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.Width = 400;
//
// Column138
//
this.Column138.DataPropertyName = "UpState";
this.Column138.HeaderText = "上传状态";
this.Column138.Name = "Column138";
this.Column138.ReadOnly = true;
//
// Column25
//
this.Column25.DataPropertyName = "CCDResult1";
this.Column25.HeaderText = "正面(2D/3D)";
this.Column25.Name = "Column25";
this.Column25.ReadOnly = true;
//
// Column96
//
this.Column96.DataPropertyName = "CCDResult2";
this.Column96.HeaderText = "反面(2D/3D)";
this.Column96.Name = "Column96";
this.Column96.ReadOnly = true;
//
// Column97
//
this.Column97.DataPropertyName = "CCDResult3";
this.Column97.HeaderText = "左侧面(2D/3D)";
this.Column97.Name = "Column97";
this.Column97.ReadOnly = true;
//
// Column98
//
this.Column98.DataPropertyName = "CCDResult4";
this.Column98.HeaderText = "右侧面(2D/3D)";
this.Column98.Name = "Column98";
this.Column98.ReadOnly = true;
//
// Column99
//
this.Column99.DataPropertyName = "CCDResult5";
this.Column99.HeaderText = "顶面(2D/3D)";
this.Column99.Name = "Column99";
this.Column99.ReadOnly = true;
//
// Column100
//
this.Column100.DataPropertyName = "CCDResult6";
this.Column100.HeaderText = "底面(2D/3D)";
this.Column100.Name = "Column100";
this.Column100.ReadOnly = true;
//
// Column101
//
this.Column101.DataPropertyName = "CCDResult7";
this.Column101.HeaderText = "底DE1";
this.Column101.Name = "Column101";
this.Column101.ReadOnly = true;
//
// Column103
//
this.Column103.DataPropertyName = "CCDResult8";
this.Column103.HeaderText = "底DE2";
this.Column103.Name = "Column103";
this.Column103.ReadOnly = true;
//
// Column104
//
this.Column104.DataPropertyName = "CCDResult9";
this.Column104.HeaderText = "底DE3";
this.Column104.Name = "Column104";
this.Column104.ReadOnly = true;
//
// Column105
//
this.Column105.DataPropertyName = "CCDResult10";
this.Column105.HeaderText = "底DE4";
this.Column105.Name = "Column105";
this.Column105.ReadOnly = true;
//
// Column106
//
this.Column106.DataPropertyName = "CCDResult11";
this.Column106.HeaderText = "中ME1";
this.Column106.Name = "Column106";
this.Column106.ReadOnly = true;
//
// Column107
//
this.Column107.DataPropertyName = "CCDResult12";
this.Column107.HeaderText = "中ME2";
this.Column107.Name = "Column107";
this.Column107.ReadOnly = true;
//
// Column108
//
this.Column108.DataPropertyName = "CCDResult13";
this.Column108.HeaderText = "中ME3";
this.Column108.Name = "Column108";
this.Column108.ReadOnly = true;
//
// Column109
//
this.Column109.DataPropertyName = "CCDResult14";
this.Column109.HeaderText = "中ME4";
this.Column109.Name = "Column109";
this.Column109.ReadOnly = true;
//
// Column110
//
this.Column110.DataPropertyName = "CCDResult15";
this.Column110.HeaderText = "极柱(POS/NEG)";
this.Column110.Name = "Column110";
this.Column110.ReadOnly = true;
//
// Column111
//
this.Column111.DataPropertyName = "CCDResult16";
this.Column111.HeaderText = "防爆阀(PRO)";
this.Column111.Name = "Column111";
this.Column111.ReadOnly = true;
//
// Column112
//
this.Column112.DataPropertyName = "CCDResult17";
this.Column112.HeaderText = "厚度1";
this.Column112.Name = "Column112";
this.Column112.ReadOnly = true;
//
// Column113
//
this.Column113.DataPropertyName = "CCDResult18";
this.Column113.HeaderText = "厚度2";
this.Column113.Name = "Column113";
this.Column113.ReadOnly = true;
//
// Column114
//
this.Column114.DataPropertyName = "CCDResult19";
this.Column114.HeaderText = "厚度3";
this.Column114.Name = "Column114";
this.Column114.ReadOnly = true;
//
// Column147
//
this.Column147.DataPropertyName = "RethrowNum";
this.Column147.HeaderText = "复投次数";
this.Column147.Name = "Column147";
this.Column147.ReadOnly = true;
//
// Column34
//
this.Column34.DataPropertyName = "CSBYHINSTATIONTIME";
this.Column34.HeaderText = "电芯进站时间";
this.Column34.MinimumWidth = 8;
this.Column34.Name = "Column34";
this.Column34.ReadOnly = true;
this.Column34.Width = 150;
//
// Column35
//
this.Column35.DataPropertyName = "CSBYHOUTSTATIONTIME";
this.Column35.HeaderText = "电芯出站时间";
this.Column35.MinimumWidth = 8;
this.Column35.Name = "Column35";
this.Column35.ReadOnly = true;
this.Column35.Width = 150;
//
// Column102
//
this.Column102.DataPropertyName = "Flag";
this.Column102.HeaderText = "标志";
this.Column102.MinimumWidth = 8;
this.Column102.Name = "Column102";
this.Column102.ReadOnly = true;
this.Column102.Width = 150;
//
// Column22
//
this.Column22.DataPropertyName = "Result";
this.Column22.HeaderText = "反馈结果";
this.Column22.MinimumWidth = 8;
this.Column22.Name = "Column22";
this.Column22.ReadOnly = true;
this.Column22.Width = 150;
//
// FrmDataMonitor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(1370, 749);
this.Controls.Add(this.tableLayoutPanel1);
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("微软雅黑", 10.5F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "FrmDataMonitor";
this.Text = "数据监控";
this.Load += new System.EventHandler(this.FrmDataMonitor_Load);
this.tableLayoutPanel1.ResumeLayout(false);
this.groupBoxEX3.ResumeLayout(false);
this.groupBoxEX3.PerformLayout();
this.groupBoxEX2.ResumeLayout(false);
this.groupBoxEX4.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvFeedingData)).EndInit();
this.groupBoxEX1.ResumeLayout(false);
this.groupBoxEX5.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvBlankingData)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private HML.AngleLabel angleLabel2;
private HML.AngleLabel angleLabel1;
private HML.DropDownListPlus cmbModelType;
private System.Windows.Forms.TextBox txtMaterialCode;
private HML.ButtonPlus btStop;
private HML.ButtonPlus btSatrt;
private System.Windows.Forms.ColumnHeader clMin;
private System.Windows.Forms.ColumnHeader clMax;
private System.Windows.Forms.ColumnHeader cUint;
private System.Windows.Forms.ListView lVConfigRange;
private System.Windows.Forms.ColumnHeader clParaName;
private JinYuan.ControlLib.GroupBoxEX groupBoxEX1;
private JinYuan.ControlLib.GroupBoxEX groupBoxEX2;
private System.Windows.Forms.ImageList imageList1;
internal JinYuan.ControlLib.GroupBoxEX groupBoxEX3;
private JinYuan.ControlLib.GroupBoxEX groupBoxEX4;
private System.Windows.Forms.DataGridView dgvFeedingData;
private System.Windows.Forms.RichTextBox rtb_Info;
private JinYuan.ControlLib.GroupBoxEX groupBoxEX5;
private System.Windows.Forms.DataGridView dgvBlankingData;
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn InResult;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private System.Windows.Forms.DataGridViewTextBoxColumn Column139;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
private System.Windows.Forms.DataGridViewTextBoxColumn Column33;
private System.Windows.Forms.DataGridViewTextBoxColumn Column29;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column138;
private System.Windows.Forms.DataGridViewTextBoxColumn Column25;
private System.Windows.Forms.DataGridViewTextBoxColumn Column96;
private System.Windows.Forms.DataGridViewTextBoxColumn Column97;
private System.Windows.Forms.DataGridViewTextBoxColumn Column98;
private System.Windows.Forms.DataGridViewTextBoxColumn Column99;
private System.Windows.Forms.DataGridViewTextBoxColumn Column100;
private System.Windows.Forms.DataGridViewTextBoxColumn Column101;
private System.Windows.Forms.DataGridViewTextBoxColumn Column103;
private System.Windows.Forms.DataGridViewTextBoxColumn Column104;
private System.Windows.Forms.DataGridViewTextBoxColumn Column105;
private System.Windows.Forms.DataGridViewTextBoxColumn Column106;
private System.Windows.Forms.DataGridViewTextBoxColumn Column107;
private System.Windows.Forms.DataGridViewTextBoxColumn Column108;
private System.Windows.Forms.DataGridViewTextBoxColumn Column109;
private System.Windows.Forms.DataGridViewTextBoxColumn Column110;
private System.Windows.Forms.DataGridViewTextBoxColumn Column111;
private System.Windows.Forms.DataGridViewTextBoxColumn Column112;
private System.Windows.Forms.DataGridViewTextBoxColumn Column113;
private System.Windows.Forms.DataGridViewTextBoxColumn Column114;
private System.Windows.Forms.DataGridViewTextBoxColumn Column147;
private System.Windows.Forms.DataGridViewTextBoxColumn Column34;
private System.Windows.Forms.DataGridViewTextBoxColumn Column35;
private System.Windows.Forms.DataGridViewTextBoxColumn Column102;
private System.Windows.Forms.DataGridViewTextBoxColumn Column22;
}
}
+793
View File
@@ -0,0 +1,793 @@
using HML;
using JinYuan.CommunicationLib.Enum;
using JinYuan.Helper;
using JinYuan.MES.Models;
using JinYuan.Models;
using JinYuan.VirtualDataLibrary;
using Newtonsoft.Json;
using PLCCommunication;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace LargeSquareOne
{
public partial class FrmDataMonitor : Form
{
private System.Threading.Timer m_RefreshTimer;
/// <summary>
/// 上料条码电池数据显示
/// </summary>
private BindingList<AGearEntity> listTA = new BindingList<AGearEntity>();
/// <summary>
/// 下料电池数据绑定委托
/// </summary>
/// <param name="m"></param>
private BindingList<BGearEntity> listTB = new BindingList<BGearEntity>();
public FrmDataMonitor()
{
InitializeComponent();
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true);
this.SetStyle(ControlStyles.ResizeRedraw, true);
this.SetStyle(ControlStyles.Selectable, true);
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.SetStyle(ControlStyles.UserPaint, true);
this.dgvFeedingData.AutoGenerateColumns = false;
this.dgvFeedingData.DataSource = listTA;
this.dgvFeedingData.DataError += delegate (object sender, DataGridViewDataErrorEventArgs e) { };
this.dgvFeedingData.DoubleBufferedDataGirdView(true);
this.dgvBlankingData.AutoGenerateColumns = false;
this.dgvBlankingData.DataSource = listTB;
this.dgvBlankingData.DataError += delegate (object sender, DataGridViewDataErrorEventArgs e) { };
this.dgvBlankingData.DoubleBufferedDataGirdView(true);
this.lVConfigRange.DoubleBufferedListView(true);
//this.lst_Info.DoubleBufferedListView(true);
//this.lis_Info.DoubleBufferedListBox(true);
btStop.Enabled = false;
//m_RefreshTimer = new System.Threading.Timer(TimerWork_Elapsed, null, Timeout.InfiniteTimeSpan, Timeout.InfiniteTimeSpan);
//StartTimer(m_RefreshTimer);//开启刷新
this.FormClosing += (sender, e) =>
{
//this.updateTimer.Stop();
};
}
private void FrmDataMonitor_Load(object sender, EventArgs e)
{
btSatrt.Enabled = false;
dgvFeedingData.ClearSelection();
//dgvBlankingData.ClearSelection();
SetCombOrg();
IsNoOrg = true;
}
private string CurrentTime
{
get { return DateTime.Now.ToString("HH:mm:ss"); }
}
/// <summary>
/// 从数据库获取产品型号并绑定到下拉框中
/// </summary>
///
bool IsModelInit = false;
public void SetCombOrg()
{
try
{
txtMaterialCode.Text = "";
CommonMethods.mesConfig.MaterialCode = "";
var productList = CommonMethods.db.QuerySqlList<ProductModel>(CommonMethods.dBSQL.GetProdTypeSql());
if (!IsModelInit)
{
DropDownListPlusItemCollection list = new DropDownListPlusItemCollection();
for (int i = 0; i < productList.Count; i++)
{
list.Add(new DropDownListPlusItem() { Text = productList[i].ModelName, Tag = productList[i].MaterialCode });
}
this.cmbModelType.BindItemsSource(list);
IsModelInit = true;
}
if (productList != null && productList.Count > 0)
{
CommonMethods.mesConfig.ModelName = "";
CommonMethods.mesConfig.MaterialCode = "";
DropDownListPlusItem gg = cmbModelType.SelectedItem;
if (gg != null)
{
CommonMethods.mesConfig.ModelName = gg.Text.ToString();
CommonMethods.mesConfig.MaterialCode = gg.Tag.ToString();
txtMaterialCode.Text = CommonMethods.mesConfig.MaterialCode;
}
}
}
catch (Exception ex)
{
//LogHelper.Instance.WriteEx("获取数据库型号异常", ex);
MessageBox.Show($"获取数据库型号异常:{ex}");
}
}
public bool IsNoOrg = false;
public bool IsSetParam = false;
private void cmbModelType_SelectedItemsChanged(object sender, EventArgs e)
{
if (IsNoOrg && CommonMethods.IsLoginOk)
{
btSatrt.Enabled = true;
IsSetParam = false;
SetCombOrg();
GetLocalParaData();
}
else
{
this.cmbModelType.BindItemsSource(null);
IsModelInit = false;
SetCombOrg();
new FrmMsgBoxOutWithAck(2, "当前未登录,请先登录再操作!", "提示").ShowDialog();
}
}
public void GetLocalParaData()
{
if (string.IsNullOrEmpty(CommonMethods.mesConfig.ModelName))
{
new FrmMsgBoxOutWithAck(2, "产品型号不能为空!", "型号选择").Show();
return;
}
try
{
var list = CommonMethods.db.QuerySqlList<ParamList>(CommonMethods.dBSQL.GetParamSql(CommonMethods.mesConfig.ModelName));
if (list != null && list.Count > 0)
{
CommonMethods.paramlists = list;
IsSetParam = false;
GetParam();
}
}
catch (Exception ex)
{
LoggerHelp.WriteEX(ex);
}
}
/// <summary>
/// 刷新参数
/// </summary>
public void GetParam()
{
try
{
if (!IsSetParam && CommonMethods.paramlists != null)
{
System.Windows.Forms.ListViewItem listItem = null;
lVConfigRange.Items.Clear();
int j = 0;
foreach (var ProductPara in CommonMethods.paramlists) //遍历list集合
{
string strRemark = ProductPara.Remark;
string strName = ProductPara.ParaName;
listItem = new System.Windows.Forms.ListViewItem(CommonMethods.paramlists[j].Remark);
listItem.SubItems.Add("0");
listItem.SubItems.Add("0");
listItem.SubItems.Add("0");
lVConfigRange.Items.Add(listItem);
lVConfigRange.Items[j].SubItems[1].Text = ProductPara.ParaValueMin;
lVConfigRange.Items[j].SubItems[2].Text = ProductPara.ParaValueMax;
lVConfigRange.Items[j].SubItems[3].Text = ProductPara.Uint;
switch (strName)
{
//case "intoShellPressure1SettingA07": //入壳压力1
// CommonMethods.parRange.PrePressure1Max = Convert.ToDecimal(ProductPara.ParaValueMax == "" ? "0" : ProductPara.ParaValueMax);
// break;
//case "intoShellPressure2SettingA07": //入壳压力2
// CommonMethods.parRange.PrePressure2Max = Convert.ToDecimal(ProductPara.ParaValueMax == "" ? "0" : ProductPara.ParaValueMax);
// break;
//case "intoShellPressure3SettingA07": //入壳压力3
// CommonMethods.parRange.PrePressure3Max = Convert.ToDecimal(ProductPara.ParaValueMax == "" ? "0" : ProductPara.ParaValueMax);
// break;
//default:
// break;
}
j++;
}
IsSetParam = true;
}
}
catch (Exception ex)
{
LoggerHelp.WriteEX("获取参数失败", ex);
}
}
/// <summary>
/// 加载MES参数
/// </summary>
public bool GetMesParaData(ref string strErr)
{
try
{
bool isChangeParam = false;
var nowDate = DateTime.Now;
string filePath = $@"{CommonMethods.strMesLogspath}\参数设定值请求\变更记录\{nowDate.Year}\{nowDate.Month}";
string fileName = $@"{nowDate.Day}.csv";
string fileTitle = "时间,机台,MES账户,更改参数名称,更改前参数值,更改后参数值";
string fileContent = string.Empty;
DataTable dt = new DataTable();
dt.Columns.Add("MES账户");
dt.Columns.Add("更改参数名称");
dt.Columns.Add("更改前参数值");
dt.Columns.Add("更改后参数值");
string resJson = "";
var result = CommonMethods.hbgMes.GetParamSetRequest(CommonMethods.mesConfig.ParamSetpointRequestMesUrl, CommonMethods.mesConfig.equipNum, CommonMethods.mesConfig.siteCode,
CommonMethods.mesConfig.lineCode, CommonMethods.mesConfig.MaterialCode, CommonMethods.mesConfig.mesUserName, ref resJson);
var resultData = JsonConvert.DeserializeObject<ParamReturnData>(resJson);
if (!resultData.success)
{
//获取参数未成功 81022652
strErr = "获取MES参数不成功!";
return false;
}
List<ParamList> NewParamlists = CommonMethods.paramlists;
for (int i = 0; i < resultData.total; i++)
{
List<RowsItem> rows = resultData.rows;
for (int j = 0; j < rows.Count; j++)
{
var tagList = rows[j].tagList;
for (int k = 0; k < NewParamlists.Count; k++)
{
for (int n = 0; n < rows[j].tagList.Count; n++)
{
if (NewParamlists[k].ParaName == tagList[n].tagCode)
{
string strMin = "0";
if (String.IsNullOrEmpty(tagList[n].minValue.Trim()) || tagList[n].minValue.Trim() == "null")
strMin = "0";
else
strMin = tagList[n].minValue.Trim();
if (NewParamlists[k].ParaValueMin != strMin)
{
fileContent += $"{nowDate.ToString("yyyy-MM-dd HH:mm:ss")},{CommonMethods.mesConfig.equipNum}," +
$"{CommonMethods.mesConfig.mesUserName},{tagList[n].tagDescription}最小值,{NewParamlists[k].ParaValueMin},{strMin}\n";
dt.Rows.Add(CommonMethods.mesConfig.mesUserName, $"{tagList[n].tagDescription}最小值", NewParamlists[k].ParaValueMin, strMin);
NewParamlists[k].ParaValueMin = strMin;
isChangeParam = true;
}
string strMax = "0";
if (String.IsNullOrEmpty(tagList[n].maxValue.Trim()) || tagList[n].maxValue.Trim() == "null")
strMax = "0";
else
strMax = tagList[n].maxValue.Trim();
if (NewParamlists[k].ParaValueMax != tagList[n].maxValue)
{
fileContent += $"{nowDate.ToString("yyyy-MM-dd HH:mm:ss")},{CommonMethods.mesConfig.equipNum}," +
$"{CommonMethods.mesConfig.mesUserName},{tagList[n].tagDescription}最大值,{NewParamlists[k].ParaValueMax},{strMax}\n";
dt.Rows.Add(CommonMethods.mesConfig.mesUserName, $"{tagList[n].tagDescription}最大值", NewParamlists[k].ParaValueMax, strMax);
NewParamlists[k].ParaValueMax = strMax;
isChangeParam = true;
}
}
}
}
if (isChangeParam)
{
CustomMessageBox customMessageBox = new CustomMessageBox(dt, $"当前MES下发参数与设备本地参数不一致,请确认是否使用MES下发参数");
if (customMessageBox.ShowDialog() == DialogResult.OK)
{
// 写csv文件
fileContent = fileContent.Substring(0, fileContent.Length - 1);
CSVHelper<object>.WriterCSV(filePath, fileName, fileTitle, fileContent);
CommonMethods.paramlists = NewParamlists;
int res = CommonMethods.db.Delete<ParamList>(it => it.ModelName == CommonMethods.paramlists[0].ModelName);
if (res > 0)
{
CommonMethods.db.AddReturnBool<ParamList>(CommonMethods.paramlists);
}
strErr = "变更成功并保存";
IsSetParam = false;
}
else
{
strErr = "取消变更,采用本地参数配置";
}
LoggerHelp.WriteLog(strErr);
}
}
}
return true;
}
catch (Exception ex)
{
strErr = "获取参数失败" + ex.Message;
LoggerHelp.WriteEX("获取参数失败", ex);
}
return false;
}
#region 显示外观检测上料数据
/// <summary>
/// 显示上料
/// </summary>
/// <param name="m"></param>
///
public void ShowFeedingData(List<AGearEntity> list)
{
try
{
if (this.dgvFeedingData.InvokeRequired)
{
this.dgvFeedingData.Invoke(new Action<List<AGearEntity>>(ShowFeedingData), list);
}
else
{
if (list != null && list.Count > 0)
{
foreach (AGearEntity m in list)
{
listTA.Add(m);
}
if (listTA.Count >= 500)
{
listTA.Clear();
GC.Collect();
}
}
// 设置最新行为活动行 (当前行)
int index = this.dgvFeedingData.Rows.Count - 1;
this.dgvFeedingData.CurrentCell = this.dgvFeedingData.Rows[index].Cells[0];
for (int i = 0; i < list.Count; i++)
{
this.dgvFeedingData.Rows[index - i].Cells[0].Value = index + 1 - i;
}
}
}
catch (Exception ex)
{
//ShowLog("显示上料出现" + ex.Message, 1);
}
}
#endregion
#region 显示下料数据
/// <summary>
/// 显示下料数据
/// </summary>
/// <param name="list"></param>
public void ShowBankdingData(List<BGearEntity> list)
{
try
{
if (this.dgvBlankingData.InvokeRequired)
{
this.dgvBlankingData.Invoke(new Action<List<BGearEntity>>(ShowBankdingData), list);
}
else
{
if (list != null && list.Count > 0)
{
foreach (BGearEntity m in list)
{
listTB.Add(m);
}
if (listTB.Count >= 500)
{
listTB.Clear();
GC.Collect();
}
}
// 设置最新行为活动行 (当前行)
int index = this.dgvBlankingData.Rows.Count - 1;
this.dgvBlankingData.CurrentCell = this.dgvBlankingData.Rows[index].Cells[0];
for (int i = 0; i < list.Count; i++)
{
this.dgvBlankingData.Rows[index - i].Cells[0].Value = index + 1 - i;
}
//int index = this.dgvBlankingData.Rows.Count - 1;
////this.dgvBlankingData.FirstDisplayedScrollingRowIndex = index;
//// 设置最新行为活动行 (当前行)
//this.dgvBlankingData.CurrentCell = this.dgvBlankingData.Rows[index].Cells[1];
//this.dgvBlankingData.BeginEdit(true);
}
}
catch (Exception ex)
{
//ShowLog("显示上料出现" + ex.Message, 1);
}
}
#endregion
/// <summary>
/// 开始监控
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btSatrt_Click(object sender, EventArgs e)
{
if (!CommonMethods.IsLoginOk)
{
new FrmMsgBoxOutWithAck(2, "当前未登录,请登录!", "未登录").Show();
return;
}
if (CommonMethods.sysConfig.MesModeSwitching && !CommonMethods.mesConfig.IsLoginMesOK)
{
new FrmMsgBoxOutWithAck(2, "当前为MES模式,请登录!", "MES未登录").ShowDialog();
FrmLoginMes frmLoginMes = new FrmLoginMes();
if (frmLoginMes.ShowDialog() != DialogResult.OK) { return; }
}
if (CommonMethods.mesConfig.ModelName == "")
{
new FrmMsgBoxOutWithAck(2, "产品型号不能为空!", "型号选择").Show();
return;
}
if (txtMaterialCode.Text.Trim() == "")
{
new FrmMsgBoxOutWithAck(2, "物料编码不能为空!", "型号选择").Show();
return;
}
#region MES下发参数
CommonMethods.mesConfig.MaterialCode = txtMaterialCode.Text.Trim();
if (CommonMethods.sysConfig.MesModeSwitching && CommonMethods.mesConfig.IsMesParam)
{
string strErr = "";
bool nb = GetMesParaData(ref strErr);
if (!nb)
{
new FrmMsgBoxOutWithAck(2, strErr, "提示").Show();
return;
}
CommonMethods.AddDataMonitorLog(1, "MES参数设置成功");
LoggerHelp.WriteLog("MES参数设置成功");
}
#endregion
CommonMethods.AddDataMonitorLog(0, "启动开始监控");
btSatrt.Text = "连接PLC中…";
bool IsLink = CommonMethods.ConnectPLC();
if (IsLink)
{
OmronStart(true);
CommonMethods.IsRun = true;
if (CommonMethods.plcDevice.IsConnected)
{
btSatrt.Text = "开始监控";
SetProductModelEnable(true);
Task.Run(() =>
{
SendRightToPLC();
});
}
}
else
{
btSatrt.Text = "开始监控";
CommonMethods.AddDataMonitorLog(2, "启动开始监控失败");
new FrmMsgBoxOutWithAck(2, "连接PLC失败,请检查PLC连接配置,网络", "连接PLC").Show();
}
}
/// <summary>
/// 停止监控
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btStop_Click(object sender, EventArgs e)
{
if (CommonMethods.IsRun)
{
SetProductModelEnable(false);
OmronStart(false);
CommonMethods.Statues = new List<bool> { false, false, false, false };
CommonMethods.PlcLink.Disconnect();
CommonMethods.plcDevice.IsConnected = false;
CommonMethods.IsRun = false;
CommonMethods.AddDataMonitorLog(2, "停止与PLC连接");
CommonMethods.AddOPLog(false, "停止与PLC连接!");
}
}
/// <summary>
/// 链接PLC状态
/// </summary>
/// <param name="status"></param>
public void OmronStart(bool status)
{
if (status)
{
CommonMethods.ResetEventRecv.Set();
}
else
{
CommonMethods.ResetEventRecv.Reset();
}
}
/// <summary>
/// 设置产品型号和工单是否只读
/// </summary>
/// <param name="b"></param>
public void SetProductModelEnable(bool b)
{
btSatrt.Enabled = !b;
btStop.Enabled = b;
cmbModelType.Enabled = true;
txtMaterialCode.Enabled = !b;
}
private void dgvFeedingData_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
//显示序列号
DataGridViewHelper.DgvRowPostPaint(this.dgvFeedingData, e);
}
private void dgvFeedingData_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e)
{
//指定列字体颜色
DataGridViewHelper.DgvRowPrePaint(this.dgvFeedingData, "InResult", sender, e);
}
private void dgvBlankingData_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
//显示序列号
DataGridViewHelper.DgvRowPostPaint(this.dgvBlankingData, e);
}
private void dgvBlankingData_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e)
{
//指定列字体颜色
DataGridViewHelper.DgvRowPrePaint(this.dgvBlankingData, "OutResult", sender, e);
}
#region 减少闪烁
protected override CreateParams CreateParams
{
get
{
CreateParams parss = base.CreateParams;
parss.ExStyle |= 0x02000000;
return parss;
}
}
#endregion
#region
StringFormat sf = new StringFormat { Alignment = StringAlignment.Near, LineAlignment = StringAlignment.Center };//字体水平位置居左,垂直居中
private void lVConfigRange_DrawColumnHeader(object sender, DrawListViewColumnHeaderEventArgs e)
{
e.Graphics.FillRectangle(Brushes.RoyalBlue, e.Bounds); //设置背景颜色
Font font = new Font("微软雅黑", 12, FontStyle.Bold); //设置字体大小
e.Graphics.DrawString(e.Header.Text, font, Brushes.White, e.Bounds, sf); //设置字体颜色
}
private void lVConfigRange_DrawItem(object sender, DrawListViewItemEventArgs e)
{
e.DrawDefault = true; //采用系统默认方式绘制项
}
private void lVConfigRange_DrawSubItem(object sender, DrawListViewSubItemEventArgs e)
{
e.DrawDefault = true; //采用系统默认方式绘制项
}
#endregion
#region ListView日志记录
//public void AddDataMonitorLog(int level, string log)
//{
// if (level > 2)
// {
// level = 2;
// }
// if (level < 0)
// {
// level = 0;
// }
// if (this.lst_Info.InvokeRequired)
// {
// this.lst_Info.Invoke(new Action<int, string>(AddDataMonitorLog), level, log);
// }
// else
// {
// if (this.lst_Info.Items.Count > 1000)
// {
// this.lst_Info.Items.Clear();
// }
// System.Windows.Forms.ListViewItem item = new System.Windows.Forms.ListViewItem(" " + CurrentTime, level);
// item.SubItems.Add(log);
// this.lst_Info.Items.Add(item);
// //让最新的日志显示在最下面
// this.lst_Info.Items[this.lst_Info.Items.Count - 1].EnsureVisible();
// }
//}
#endregion
#region RichTextBox日志记录
public void AddDataMonitorLog(int level, string log)
{
if (level > 2)
{
level = 2;
}
if (level < 0)
{
level = 0;
}
if (this.rtb_Info.InvokeRequired)
{
this.rtb_Info.Invoke(new Action<int, string>(AddDataMonitorLog), level, log);
}
else
{
if (rtb_Info.Lines.Length > 200) //每当显示的通知数超过200行时,清除前面的150行
{
string[] strlines = new string[rtb_Info.Lines.Length - 150];
Array.ConstrainedCopy(rtb_Info.Lines, 50, strlines, 0, strlines.Length);
rtb_Info.Lines = strlines;
GC.Collect();
}
rtb_Info.SelectionStart = rtb_Info.Text.Length;
rtb_Info.SelectionLength = log.Length;
rtb_Info.SelectionColor = level == 0 ? Color.White : Color.Red;
rtb_Info.AppendText(string.Format("时间:{0}-{1}\r\n", DateTime.Now.ToString("HH:mm:ss.fff"), log));
rtb_Info.SelectionStart = rtb_Info.Text.Length;
rtb_Info.SelectionLength = log.Length;
rtb_Info.Focus();
}
}
#endregion
#region ListBox日志记录
//public void AddDataMonitorLog(int level, string log)
//{
// Color color = Color.White;
// if (level > 2)
// {
// color= Color.Red;
// level = 2;
// }
// if (level < 0)
// {
// color = Color.White;
// level = 0;
// }
// if (this.lis_Info.InvokeRequired)
// {
// this.lis_Info.Invoke(new Action<int, string>(AddDataMonitorLog), level, log);
// }
// else
// {
// this.lis_Info.AddLog(log, color);
// this.lis_Info.SelectedIndex = this.lis_Info.Items.Count - 1;
// this.lis_Info.SelectedIndex = -1;
// //System.Windows.Forms.ListViewItem item = new System.Windows.Forms.ListViewItem(" " + CurrentTime, level);
// //item.SubItems.Add(log);
// //this.rtb_Info.Items.Add(item);
// ////让最新的日志显示在最下面
// //this.rtb_Info.Items[this.lst_Info.Items.Count - 1].EnsureVisible();
// }
//}
#endregion
#region 下发权限给PLC
/// <summary>
/// 下发权限到PLC
/// </summary>
public void SendRightToPLC()
{
ushort quanxian = 1;
switch (CommonMethods.currentAdmin.LoginLevel)
{
case "操作员":
quanxian = 1;
break;
case "工程师":
quanxian = 2;
break;
case "管理员":
quanxian = 3;
break;
default:
break;
}
if (CommonMethods.plcDevice.IsConnected)
{
JYResult result = CommonMethods.PlcLink.WriteValue("D21", (short)quanxian, Data_Type.Short);
if (result.IsSuccess)
{
CommonMethods.AddOPLog(false, $"写入PLC权限(D21)-成功:{quanxian},{CommonMethods.currentAdmin.LoginLevel}");
}
else
{
CommonMethods.AddOPLog(true, $"写入PLC权限(D21)-失败");
}
}
}
#endregion
private void dgvFeedingData_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
}
private void dgvBlankingData_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
}
}
}
+262
View File
@@ -0,0 +1,262 @@
<?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="lVConfigRange.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="InResult.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column139.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>
<metadata name="dataGridViewTextBoxColumn2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column33.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column29.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column138.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column25.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column96.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column97.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column147.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column34.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column35.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column102.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column22.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="imageList1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 21</value>
</metadata>
<data name="imageList1.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABE
DQAAAk1TRnQBSQFMAgEBAwEAAYABAgGAAQIBEAEAARABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFA
AwABEAMAAQEBAAEgBgABEC4AAxUBHQMkATQDBQEGKAADHQEpAl4BZwHwATUBNgHPAf8BNQE2Ac8B/wE1
ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wNOAZagAAMTARkDZQHlA+YB/wPmAf8D5gH/A+YB/wPmAf8DRwGA
HAACUwFUAaoBNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8BNQE2
Ac8B/wE1ATYBzwH/ATUBNgHPAf8UAANgAdsBKQHqAfQB/wEpAeoB9AH/ASkB6gH0Af8BKQHqAfQB/wEp
AeoB9AH/ASkB6gH0Af8BKQHqAfQB/wEpAeoB9AH/ASkB6gH0Af8BKQHqAfQB/wEpAeoB9AH/AzUBVVAA
AzgBWwPmAf8D5gH/A+YB/wPmAf8D5gH/A+YB/wPmAf8D5gH/A+YB/xQAAmEBawHrATUBNgHPAf8BNQE2
Ac8B/wE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/
ATUBNgHPAf8BNQE2Ac8B/wwAAUYCRwGAASkB6gH0Af8BKQHqAfQB/wEpAeoB9AH/ASkB6gH0Af8BKQHq
AfQB/wEpAeoB9AH/ASkB6gH0Af8BKQHqAfQB/wEpAeoB9AH/ASkB6gH0Af8BKQHqAfQB/wEpAeoB9AH/
ASkB6gH0Af9MAAM9AWgD5gH/A+YB/wPmAf8D5gH/A+YB/wPmAf8D5gH/A+YB/wPmAf8D5gH/A+YB/wwA
A0gBhAE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/
ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/CAADOwFjASkB6gH0
Af8BKQHqAfQB/wEpAeoB9AH/ASkB6gH0Af8BKQHqAfQB/wNdAcwEAAEpAeoB9AH/ASkB6gH0Af8BKQHq
AfQB/wEpAeoB9AH/ASkB6gH0Af8BKQHqAfQB/0wAA+YB/wPmAf8D5gH/A+YB/wPmAf8DKgFABAADKgFA
A+YB/wPmAf8D5gH/A+YB/wNHAYAIAAE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/AxABFQE1
ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/AlMBVAGqBAABNQE2Ac8B/wE1ATYBzwH/ATUBNgHP
Af8DTgGWCAABKQHqAfQB/wEpAeoB9AH/ASkB6gH0Af8BKQHqAfQB/wEpAeoB9AH/ASkB6gH0Af8BKQHq
AfQB/wEpAeoB9AH/ASkB6gH0Af8BKQHqAfQB/wEpAeoB9AH/ASkB6gH0Af8DPwFtSAADOAFbA+YB/wPm
Af8D5gH/A+YB/wPmAf8D5gH/BAAD5gH/A+YB/wPmAf8D5gH/A+YB/wPmAf8EAAMzAVEBNQE2Ac8B/wE1
ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wgAATUBNgHPAf8BNQE2Ac8B/wJTAVQBqgQAAlMBVAGqATUBNgHP
Af8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8IAAM1AVUBKQHqAfQB/wEpAeoB9AH/ASkB6gH0Af8BKQHq
AfQB/wEpAeoB9AH/AyoBQAEpAeoB9AH/ASkB6gH0Af8BKQHqAfQB/wEpAeoB9AH/ASkB6gH0Af9MAAPm
Af8D5gH/A+YB/wPmAf8D5gH/A+YB/wPmAf8EAAPmAf8D5gH/A+YB/wPmAf8D5gH/A+YB/wMFAQYCXQFf
Ac4BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/CAACUwFUAaoEAAJTAVQBqgE1
ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8MAAEpAeoB9AH/ASkB6gH0Af8BKQHq
AfQB/wEpAeoB9AH/ASkB6gH0Af8EAAEpAeoB9AH/ASkB6gH0Af8BKQHqAfQB/wEpAeoB9AH/AygBPEwA
A+YB/wPmAf8D5gH/A+YB/wPmAf8D5gH/A+YB/wQAA+YB/wPmAf8D5gH/A+YB/wPmAf8D5gH/AyQBNAJa
AW0B9QE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wgAAlMBVAGq
ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/DAADGQEjASkB6gH0
Af8BKQHqAfQB/wEpAeoB9AH/ASkB6gH0Af8EAAEpAeoB9AH/ASkB6gH0Af8BKQHqAfQB/wFhAmsB61AA
A+YB/wPmAf8D5gH/A+YB/wPmAf8D5gH/A1oBvwQAA+YB/wPmAf8D5gH/A+YB/wPmAf8D5gH/AxUBHQJe
AWQB4gE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8CUwFUAaoMAAE1ATYBzwH/
ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/xAAA14B0gEpAeoB9AH/ASkB6gH0
Af8BKQHqAfQB/wQAASkB6gH0Af8BKQHqAfQB/wEpAeoB9AH/AwkBC1AAA1oBvwPmAf8D5gH/A+YB/wPm
Af8D5gH/A0cBgANHAYAD5gH/A+YB/wPmAf8D5gH/A+YB/wPmAf8EAANVAawBNQE2Ac8B/wE1ATYBzwH/
ATUBNgHPAf8BNQE2Ac8B/wJTAVQBqgQAAlMBVAGqATUBNgHPAf8IAAE1ATYBzwH/ATUBNgHPAf8BNQE2
Ac8B/wE1ATYBzwH/ATUBNgHPAf8UAAEpAeoB9AH/ASkB6gH0Af8BKQHqAfQB/wQAASkB6gH0Af8BKQHq
AfQB/wFXAlkBuVQAAxABFQPmAf8D5gH/A+YB/wPmAf8D5gH/A+YB/wNHAYAD5gH/A+YB/wPmAf8D5gH/
A+YB/wNlAeUEAAMMAQ8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8CWgFqAfIEAAJTAVQBqgE1ATYBzwH/
ATUBNgHPAf8BNQE2Ac8B/wQAAwwBEAE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wJeAWcB8BQAAVECUgGh
ASkB6gH0Af8BKQHqAfQB/wM6AWABKQHqAfQB/wEpAeoB9AH/XAADZQHlA+YB/wPmAf8D5gH/A+YB/wNv
AfEDKgFAA+YB/wPmAf8D5gH/A+YB/wPmAf8DEwEZCAACZQFvAfEBNQE2Ac8B/wE1ATYBzwH/ATUBNgHP
Af8CWgFqAfIBNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8BNQE2
Ac8B/wE1ATYBzwH/ATUBNgHPAf8DHQEpGAABKQHqAfQB/wEpAeoB9AH/ASkB6gH0Af8BKQHqAfQB/wNJ
AYhgAAPmAf8D5gH/A+YB/wPmAf8D5gH/A+YB/wPmAf8D5gH/A+YB/wPmAf8DOAFbEAABNQE2Ac8B/wE1
ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHP
Af8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8CUwFUAaocAANAAXABKQHqAfQB/wEpAeoB9AH/ASkB6gH0
Af9oAANlAeUD5gH/A+YB/wPmAf8D5gH/A+YB/wPmAf8D5gH/Az0BaBgAATUBNgHPAf8BNQE2Ac8B/wE1
ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHP
Af8CYQFrAeskAANNAZIBXQJgAdRwAAMOARIDVgGyA+YB/wPmAf8D5gH/AzgBWyQAAmUBbwHxATUBNgHP
Af8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8BNQE2Ac8B/wE1ATYBzwH/ATUBNgHPAf8DSAGE4AADCgEN
AlIBVAGoAl4BZAHiAloBbQH1Al0BXwHOAzMBUZQAAUIBTQE+BwABPgMAASgDAAFAAwABEAMAAQEBAAEB
BQABgBcAA/8BAAH+AT8B8AEPAv8CAAHwAQ8B4AEHAcABAQIAAeABBwHAAQMBgAEBAgABwAEDAYABAQGA
AYECAAHAAYEBgAEQAcABAQIAAYABgQEGASABwAEDAgACgAEDAUAB4AGDAgACgAEBAYAB4AGHAgACgAEB
AcAB8AGHAgABgAEBAQIBYAH4AY8CAAGAAQEBBAEgAfgBHwIAAcABAQGAAQAB/AEfAgAB4AEDAcABAQH8
AT8CAAHwAQcB4AEDAf4BfwIAAfgBHwHwAQcC/wIAAv8B+AEfAv8CAAs=
</value>
</data>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>25</value>
</metadata>
</root>
+474
View File
@@ -0,0 +1,474 @@
namespace LargeSquareOne
{
partial class FrmGroupConfig
{
/// <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()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.panelExt1 = new JinYuan.ControlLib.PanelExt();
this.chk_IsFeedbackPlc = new System.Windows.Forms.CheckBox();
this.txtStart = new System.Windows.Forms.TextBox();
this.ckb_IsEnable = new System.Windows.Forms.CheckBox();
this.ckb_IsTiggerRead = new System.Windows.Forms.CheckBox();
this.dgv_Main = new System.Windows.Forms.DataGridView();
this.GroupName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Start = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Length = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.Remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btn_Modify = new System.Windows.Forms.Button();
this.btn_Delete = new System.Windows.Forms.Button();
this.btn_Add = new System.Windows.Forms.Button();
this.txt_Remark = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.num_Length = new System.Windows.Forms.NumericUpDown();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.txt_GroupName = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.topPanel = new System.Windows.Forms.Panel();
this.btn_Close = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.panelExt1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgv_Main)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.num_Length)).BeginInit();
this.topPanel.SuspendLayout();
this.SuspendLayout();
//
// panelExt1
//
this.panelExt1.BackColor = System.Drawing.Color.Transparent;
this.panelExt1.BordeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(79)))), ((int)(((byte)(150)))));
this.panelExt1.BordeWidth = 2;
this.panelExt1.BottomGap = 0;
this.panelExt1.Controls.Add(this.chk_IsFeedbackPlc);
this.panelExt1.Controls.Add(this.txtStart);
this.panelExt1.Controls.Add(this.ckb_IsEnable);
this.panelExt1.Controls.Add(this.ckb_IsTiggerRead);
this.panelExt1.Controls.Add(this.dgv_Main);
this.panelExt1.Controls.Add(this.btn_Modify);
this.panelExt1.Controls.Add(this.btn_Delete);
this.panelExt1.Controls.Add(this.btn_Add);
this.panelExt1.Controls.Add(this.txt_Remark);
this.panelExt1.Controls.Add(this.label6);
this.panelExt1.Controls.Add(this.num_Length);
this.panelExt1.Controls.Add(this.label4);
this.panelExt1.Controls.Add(this.label3);
this.panelExt1.Controls.Add(this.txt_GroupName);
this.panelExt1.Controls.Add(this.label2);
this.panelExt1.Controls.Add(this.topPanel);
this.panelExt1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelExt1.LeftGap = 0;
this.panelExt1.Location = new System.Drawing.Point(0, 0);
this.panelExt1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.panelExt1.Name = "panelExt1";
this.panelExt1.RightGap = 0;
this.panelExt1.Size = new System.Drawing.Size(1054, 636);
this.panelExt1.TabIndex = 0;
this.panelExt1.TopGap = 0;
//
// chk_IsFeedbackPlc
//
this.chk_IsFeedbackPlc.AutoSize = true;
this.chk_IsFeedbackPlc.Checked = true;
this.chk_IsFeedbackPlc.CheckState = System.Windows.Forms.CheckState.Checked;
this.chk_IsFeedbackPlc.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chk_IsFeedbackPlc.ForeColor = System.Drawing.Color.White;
this.chk_IsFeedbackPlc.Location = new System.Drawing.Point(777, 57);
this.chk_IsFeedbackPlc.Name = "chk_IsFeedbackPlc";
this.chk_IsFeedbackPlc.Size = new System.Drawing.Size(157, 26);
this.chk_IsFeedbackPlc.TabIndex = 51;
this.chk_IsFeedbackPlc.Text = "是否需要反馈结果";
this.chk_IsFeedbackPlc.UseVisualStyleBackColor = true;
//
// txtStart
//
this.txtStart.Font = new System.Drawing.Font("微软雅黑", 12F);
this.txtStart.Location = new System.Drawing.Point(345, 56);
this.txtStart.Name = "txtStart";
this.txtStart.Size = new System.Drawing.Size(96, 29);
this.txtStart.TabIndex = 50;
this.txtStart.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// ckb_IsEnable
//
this.ckb_IsEnable.AutoSize = true;
this.ckb_IsEnable.Checked = true;
this.ckb_IsEnable.CheckState = System.Windows.Forms.CheckState.Checked;
this.ckb_IsEnable.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ckb_IsEnable.ForeColor = System.Drawing.Color.White;
this.ckb_IsEnable.Location = new System.Drawing.Point(949, 56);
this.ckb_IsEnable.Name = "ckb_IsEnable";
this.ckb_IsEnable.Size = new System.Drawing.Size(93, 26);
this.ckb_IsEnable.TabIndex = 49;
this.ckb_IsEnable.Text = "是否启用";
this.ckb_IsEnable.UseVisualStyleBackColor = true;
//
// ckb_IsTiggerRead
//
this.ckb_IsTiggerRead.AutoSize = true;
this.ckb_IsTiggerRead.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ckb_IsTiggerRead.ForeColor = System.Drawing.Color.White;
this.ckb_IsTiggerRead.Location = new System.Drawing.Point(620, 57);
this.ckb_IsTiggerRead.Name = "ckb_IsTiggerRead";
this.ckb_IsTiggerRead.Size = new System.Drawing.Size(141, 26);
this.ckb_IsTiggerRead.TabIndex = 48;
this.ckb_IsTiggerRead.Text = "是否为触发读取";
this.ckb_IsTiggerRead.UseVisualStyleBackColor = true;
//
// dgv_Main
//
this.dgv_Main.AllowUserToAddRows = false;
this.dgv_Main.AllowUserToDeleteRows = false;
this.dgv_Main.AllowUserToResizeRows = false;
this.dgv_Main.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.dgv_Main.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.dgv_Main.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 12F);
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgv_Main.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dgv_Main.ColumnHeadersHeight = 45;
this.dgv_Main.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dgv_Main.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.GroupName,
this.Start,
this.Length,
this.Column1,
this.Column3,
this.Column2,
this.Remark});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F);
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgv_Main.DefaultCellStyle = dataGridViewCellStyle2;
this.dgv_Main.EnableHeadersVisualStyles = false;
this.dgv_Main.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.dgv_Main.Location = new System.Drawing.Point(19, 164);
this.dgv_Main.Name = "dgv_Main";
this.dgv_Main.ReadOnly = true;
this.dgv_Main.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F);
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgv_Main.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
this.dgv_Main.RowHeadersWidth = 55;
this.dgv_Main.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
this.dgv_Main.RowTemplate.Height = 40;
this.dgv_Main.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgv_Main.Size = new System.Drawing.Size(1021, 451);
this.dgv_Main.TabIndex = 15;
this.dgv_Main.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgv_Main_CellClick);
this.dgv_Main.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dgv_Main_CellFormatting);
this.dgv_Main.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgv_Main_RowPostPaint);
//
// GroupName
//
this.GroupName.DataPropertyName = "GroupName";
this.GroupName.HeaderText = "通信组名称";
this.GroupName.Name = "GroupName";
this.GroupName.ReadOnly = true;
this.GroupName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.GroupName.Width = 140;
//
// Start
//
this.Start.DataPropertyName = "Start";
this.Start.HeaderText = "起始地址";
this.Start.Name = "Start";
this.Start.ReadOnly = true;
this.Start.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Start.Width = 120;
//
// Length
//
this.Length.DataPropertyName = "Length";
this.Length.HeaderText = "长度";
this.Length.Name = "Length";
this.Length.ReadOnly = true;
this.Length.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// Column1
//
this.Column1.DataPropertyName = "IsTiggerRead";
this.Column1.HeaderText = "是否为触发读取";
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
//
// Column3
//
this.Column3.DataPropertyName = "IsFeedbackPlc";
this.Column3.HeaderText = "是否需要反馈结果";
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// Column2
//
this.Column2.DataPropertyName = "IsActive";
this.Column2.HeaderText = "启用";
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
this.Column2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// Remark
//
this.Remark.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.Remark.DataPropertyName = "Remark";
this.Remark.HeaderText = "备注说明";
this.Remark.Name = "Remark";
this.Remark.ReadOnly = true;
this.Remark.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// btn_Modify
//
this.btn_Modify.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btn_Modify.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Modify.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.btn_Modify.ForeColor = System.Drawing.Color.White;
this.btn_Modify.Location = new System.Drawing.Point(832, 104);
this.btn_Modify.Name = "btn_Modify";
this.btn_Modify.Size = new System.Drawing.Size(102, 36);
this.btn_Modify.TabIndex = 14;
this.btn_Modify.Text = "修改通信组";
this.btn_Modify.UseVisualStyleBackColor = false;
this.btn_Modify.Click += new System.EventHandler(this.btn_Modify_Click);
//
// btn_Delete
//
this.btn_Delete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btn_Delete.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Delete.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.btn_Delete.ForeColor = System.Drawing.Color.White;
this.btn_Delete.Location = new System.Drawing.Point(726, 104);
this.btn_Delete.Name = "btn_Delete";
this.btn_Delete.Size = new System.Drawing.Size(101, 36);
this.btn_Delete.TabIndex = 13;
this.btn_Delete.Text = "删除通信组";
this.btn_Delete.UseVisualStyleBackColor = false;
this.btn_Delete.Click += new System.EventHandler(this.btn_Delete_Click);
//
// btn_Add
//
this.btn_Add.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btn_Add.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Add.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.btn_Add.ForeColor = System.Drawing.Color.White;
this.btn_Add.Location = new System.Drawing.Point(620, 104);
this.btn_Add.Name = "btn_Add";
this.btn_Add.Size = new System.Drawing.Size(101, 36);
this.btn_Add.TabIndex = 12;
this.btn_Add.Text = "新增通信组";
this.btn_Add.UseVisualStyleBackColor = false;
this.btn_Add.Click += new System.EventHandler(this.btn_Add_Click);
//
// txt_Remark
//
this.txt_Remark.Font = new System.Drawing.Font("微软雅黑", 12F);
this.txt_Remark.Location = new System.Drawing.Point(111, 108);
this.txt_Remark.Name = "txt_Remark";
this.txt_Remark.Size = new System.Drawing.Size(491, 29);
this.txt_Remark.TabIndex = 11;
this.txt_Remark.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label6
//
this.label6.AutoSize = true;
this.label6.ForeColor = System.Drawing.Color.White;
this.label6.Location = new System.Drawing.Point(15, 113);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(74, 21);
this.label6.TabIndex = 10;
this.label6.Text = "备注说明";
//
// num_Length
//
this.num_Length.Location = new System.Drawing.Point(510, 55);
this.num_Length.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.num_Length.Name = "num_Length";
this.num_Length.Size = new System.Drawing.Size(92, 29);
this.num_Length.TabIndex = 7;
this.num_Length.Value = new decimal(new int[] {
100,
0,
0,
0});
//
// label4
//
this.label4.AutoSize = true;
this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Location = new System.Drawing.Point(462, 60);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(42, 21);
this.label4.TabIndex = 6;
this.label4.Text = "长度";
//
// label3
//
this.label3.AutoSize = true;
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(266, 60);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(74, 21);
this.label3.TabIndex = 4;
this.label3.Text = "起始地址";
//
// txt_GroupName
//
this.txt_GroupName.Font = new System.Drawing.Font("微软雅黑", 12F);
this.txt_GroupName.Location = new System.Drawing.Point(111, 55);
this.txt_GroupName.Name = "txt_GroupName";
this.txt_GroupName.Size = new System.Drawing.Size(125, 29);
this.txt_GroupName.TabIndex = 3;
this.txt_GroupName.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label2
//
this.label2.AutoSize = true;
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(15, 60);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(90, 21);
this.label2.TabIndex = 2;
this.label2.Text = "通信组名称";
//
// topPanel
//
this.topPanel.Controls.Add(this.btn_Close);
this.topPanel.Controls.Add(this.label1);
this.topPanel.Dock = System.Windows.Forms.DockStyle.Top;
this.topPanel.Location = new System.Drawing.Point(0, 0);
this.topPanel.Name = "topPanel";
this.topPanel.Size = new System.Drawing.Size(1054, 49);
this.topPanel.TabIndex = 0;
this.topPanel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseDown);
this.topPanel.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseMove);
//
// btn_Close
//
this.btn_Close.FlatAppearance.BorderSize = 0;
this.btn_Close.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(29)))), ((int)(((byte)(84)))));
this.btn_Close.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_Close.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Close.Font = new System.Drawing.Font("微软雅黑", 15.5F);
this.btn_Close.ForeColor = System.Drawing.Color.White;
this.btn_Close.Location = new System.Drawing.Point(1008, 8);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(32, 32);
this.btn_Close.TabIndex = 1;
this.btn_Close.Text = "X";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.Location = new System.Drawing.Point(15, 14);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(90, 21);
this.label1.TabIndex = 0;
this.label1.Text = "通信组配置";
//
// FrmGroupConfig
//
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(1054, 636);
this.Controls.Add(this.panelExt1);
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("微软雅黑", 12F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.Name = "FrmGroupConfig";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "FrmGroupConfig";
this.panelExt1.ResumeLayout(false);
this.panelExt1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dgv_Main)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.num_Length)).EndInit();
this.topPanel.ResumeLayout(false);
this.topPanel.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private JinYuan.ControlLib.PanelExt panelExt1;
private System.Windows.Forms.Panel topPanel;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txt_Remark;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.NumericUpDown num_Length;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox txt_GroupName;
private System.Windows.Forms.DataGridView dgv_Main;
private System.Windows.Forms.Button btn_Modify;
private System.Windows.Forms.Button btn_Delete;
private System.Windows.Forms.Button btn_Add;
private System.Windows.Forms.CheckBox ckb_IsTiggerRead;
private System.Windows.Forms.CheckBox ckb_IsEnable;
private System.Windows.Forms.TextBox txtStart;
private System.Windows.Forms.CheckBox chk_IsFeedbackPlc;
private System.Windows.Forms.DataGridViewTextBoxColumn GroupName;
private System.Windows.Forms.DataGridViewTextBoxColumn Start;
private System.Windows.Forms.DataGridViewTextBoxColumn Length;
private System.Windows.Forms.DataGridViewCheckBoxColumn Column1;
private System.Windows.Forms.DataGridViewCheckBoxColumn Column3;
private System.Windows.Forms.DataGridViewCheckBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Remark;
}
}
+284
View File
@@ -0,0 +1,284 @@
using JinYuan.Helper;
using JinYuan.Models;
using MiniExcelLibs;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
namespace LargeSquareOne
{
public partial class FrmGroupConfig : Form
{
public FrmGroupConfig()
{
InitializeComponent();
//this.cmb_StoreArea.DataSource = new string[] { "输入线圈", "输出线圈", "输入寄存器", "输出寄存器" };
this.dgv_Main.AutoGenerateColumns = false;
TotalGroups = GetALLGroups();
RefreshGroup();
}
private string groupPath = Application.StartupPath + "\\Config\\Group.xlsx";
#region 减少闪烁
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000;
return cp;
}
}
#endregion
private List<Group> TotalGroups = new List<Group>();
/// <summary>
/// 获取所有通信组
/// </summary>
/// <returns></returns>
private List<Group> GetALLGroups()
{
try
{
return MiniExcel.Query<Group>(groupPath).ToList();
}
catch (Exception)
{
return new List<Group>();
}
}
/// <summary>
/// 更新通信组集合
/// </summary>
private void RefreshGroup()
{
if (TotalGroups != null && TotalGroups.Count > 0)
{
this.dgv_Main.DataSource = null;
this.dgv_Main.DataSource = TotalGroups;
}
}
#region 无边框拖动
private Point mPoint;
private void Panel_MouseDown(object sender, MouseEventArgs e)
{
mPoint = new Point(e.X, e.Y);
}
private void Panel_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
this.Location = new Point(this.Location.X + e.X - mPoint.X, this.Location.Y + e.Y - mPoint.Y);
}
}
#endregion
/// <summary>
/// 判断组名称是否存在
/// </summary>
/// <param name="groupName"></param>
/// <returns></returns>
private bool IsGroupNameExits(string groupName)
{
return TotalGroups.FindAll(c => c.GroupName == groupName).ToList().Count < 0;
}
#region 增删改通信组
/// <summary>
/// 增加
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_Add_Click(object sender, EventArgs e)
{
string groupName = this.txt_GroupName.Text.Trim();
if (groupName.Length == 0)
{
new FrmMsgBoxOutWithAck(2, "通信组名称不能为空!", "添加通信组").Show();
return;
}
if (IsGroupNameExits(groupName))
{
new FrmMsgBoxOutWithAck(2, "通信组名称已存在!", "添加通信组").Show();
return;
}
TotalGroups.Add(new Group()
{
GroupName = this.txt_GroupName.Text,
Start = this.txtStart.Text,
Length = Convert.ToUInt16(this.num_Length.Value),
IsTiggerRead = this.ckb_IsTiggerRead.Checked ? true : false,
IsFeedbackPlc = this.chk_IsFeedbackPlc.Checked ? true : false,
IsActive = this.ckb_IsEnable.Checked ? true : false,
Remark = this.txt_Remark.Text.Trim()
});
try
{
MiniExcel.SaveAs(groupPath, TotalGroups, overwriteFile: true);
new FrmMsgBoxOutWithAck(1, "添加通信组成功", "添加通信组").Show();
//刷新数据
RefreshGroup();
}
catch (Exception ex)
{
new FrmMsgBoxOutWithAck(3, "添加通信组失败:" + ex.Message, "添加通信组").Show();
}
}
/// <summary>
/// 删除
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_Delete_Click(object sender, EventArgs e)
{
string groupName = this.txt_GroupName.Text.Trim();
if (IsGroupNameExits(groupName))
{
new FrmMsgBoxOutWithAck(2, "通信组名称不存在!", "删除通信组").Show();
return;
}
TotalGroups.RemoveAll(c => c.GroupName == groupName);
try
{
MiniExcel.SaveAs(groupPath, TotalGroups, overwriteFile: true);
//刷新数据
RefreshGroup();
}
catch (Exception ex)
{
new FrmMsgBoxOutWithAck(3, "删除通信组失败:" + ex.Message, "删除通信组").Show();
}
}
/// <summary>
/// 修改
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_Modify_Click(object sender, EventArgs e)
{
string groupName = this.txt_GroupName.Text.Trim();
if (IsGroupNameExits(groupName))
{
new FrmMsgBoxOutWithAck(2, "通信组名称已存在!", "修改通信组").Show();
return;
}
var group = TotalGroups.Find(c => c.GroupName == groupName);
group.Start = this.txtStart.Text;
group.Length = Convert.ToUInt16(this.num_Length.Value);
group.IsTiggerRead = this.ckb_IsTiggerRead.Checked ? true : false;
group.IsFeedbackPlc = this.chk_IsFeedbackPlc.Checked ? true : false;
group.IsActive = this.ckb_IsEnable.Checked ? true : false;
group.Remark = this.txt_Remark.Text.Trim();
try
{
MiniExcel.SaveAs(groupPath, TotalGroups, overwriteFile: true);
//刷新数据
RefreshGroup();
}
catch (Exception ex)
{
new FrmMsgBoxOutWithAck(3, "修改通信组失败:" + ex.Message, "修改通信组").Show();
}
}
#endregion
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
/// <summary>
/// 行号
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void dgv_Main_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
DataGridViewHelper.DgvRowPostPaint((DataGridView)sender, e);
}
/// <summary>
/// 默认为空显示特定字符
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void dgv_Main_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.ColumnIndex >= 0 && e.RowIndex >= 0)
{
object value = this.dgv_Main.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
if (value == null || value.ToString().Length == 0)
{
e.Value = "---";
}
;
}
}
/// <summary>
/// 选中行显示
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void dgv_Main_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex >= 0)
{
UpdateGroup(TotalGroups[e.RowIndex]);
}
}
private void UpdateGroup(Group group)
{
if (group != null)
{
this.txt_GroupName.Text = group.GroupName;
this.txtStart.Text = group.Start;
this.num_Length.Value = group.Length;
this.ckb_IsTiggerRead.Checked = group.IsTiggerRead;
this.chk_IsFeedbackPlc.Checked = group.IsFeedbackPlc;
this.ckb_IsEnable.Checked = group.IsActive;
this.txt_Remark.Text = group.Remark;
}
}
}
}
+141
View File
@@ -0,0 +1,141 @@
<?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="GroupName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Start.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Length.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Remark.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
+107
View File
@@ -0,0 +1,107 @@
namespace LargeSquareOne
{
partial class FrmHelper
{
/// <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.pictureBox3 = new System.Windows.Forms.PictureBox();
this.lbl_TitleBar = new System.Windows.Forms.Label();
this.btn_Close = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
this.SuspendLayout();
//
// pictureBox3
//
this.pictureBox3.BackColor = System.Drawing.Color.Transparent;
this.pictureBox3.Image = global::LargeSquareOne.Properties.Resources.eve;
this.pictureBox3.Location = new System.Drawing.Point(-1, -2);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(153, 34);
this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox3.TabIndex = 12;
this.pictureBox3.TabStop = false;
//
// lbl_TitleBar
//
this.lbl_TitleBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lbl_TitleBar.BackColor = System.Drawing.Color.Transparent;
this.lbl_TitleBar.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl_TitleBar.ForeColor = System.Drawing.Color.White;
this.lbl_TitleBar.Location = new System.Drawing.Point(33, 107);
this.lbl_TitleBar.Name = "lbl_TitleBar";
this.lbl_TitleBar.Size = new System.Drawing.Size(391, 29);
this.lbl_TitleBar.TabIndex = 13;
this.lbl_TitleBar.Text = "本系统由惠州金源精密自动化设备有限公司开发。";
this.lbl_TitleBar.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// btn_Close
//
this.btn_Close.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
this.btn_Close.FlatAppearance.BorderSize = 0;
this.btn_Close.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.btn_Close.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_Close.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Close.Font = new System.Drawing.Font("微软雅黑", 14F);
this.btn_Close.ForeColor = System.Drawing.Color.White;
this.btn_Close.Location = new System.Drawing.Point(413, 2);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(32, 32);
this.btn_Close.TabIndex = 14;
this.btn_Close.Text = "X";
this.btn_Close.UseVisualStyleBackColor = false;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// FrmHelper
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(20)))), ((int)(((byte)(36)))));
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(448, 291);
this.Controls.Add(this.btn_Close);
this.Controls.Add(this.lbl_TitleBar);
this.Controls.Add(this.pictureBox3);
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("微软雅黑", 10.5F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.Name = "FrmHelper";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "帮助";
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.PictureBox pictureBox3;
private System.Windows.Forms.Label lbl_TitleBar;
private System.Windows.Forms.Button btn_Close;
}
}
+18
View File
@@ -0,0 +1,18 @@
using System;
using System.Windows.Forms;
namespace LargeSquareOne
{
public partial class FrmHelper : Form
{
public FrmHelper()
{
InitializeComponent();
}
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
+120
View 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>
File diff suppressed because it is too large Load Diff
+540
View File
@@ -0,0 +1,540 @@
using JinYuan.DataConvertLib;
using JinYuan.Helper;
using JinYuan.VirtualDataLibrary;
using MiniExcelLibs;
using System;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace LargeSquareOne
{
public partial class FrmHistory : Form
{
public FrmHistory()
{
InitializeComponent();
this.cmb_SelectType.Items.Add("外观检测进站");
this.cmb_SelectType.Items.Add("外观检测出站");
this.cmb_SelectType.SelectedIndex = 0;
this.dtp_Start.Value = DateTime.Now.AddHours(-2.0f);
this.dtp_End.Value = DateTime.Now;
this.cmb_AlarmType.Items.AddRange(new string[] { "全天", "白班", "夜班" });
this.cmb_AlarmType.SelectedIndex = 0;
}
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_Query_Click(object sender, EventArgs e)
{
string str = this.cmb_SelectType.Text;
if (string.Compare(str, "外观检测进站") == 0)
{
this.cmb_SelectType.SelectedIndex = 0;
}
else if (string.Compare(str, "外观检测出站") == 0)
{
this.cmb_SelectType.SelectedIndex = 1;
}
string barCode = this.txtBarCode.Text.Trim();
string start = this.dtp_Start.Text;
string end = this.dtp_End.Text;
int selectType = this.cmb_SelectType.SelectedIndex;
Task<OperateResult<DataTable>> task1 = Task.Run(() =>
{
return QueryProcess(selectType, barCode, start, end);
});
var task2 = task1.ContinueWith(task =>
{
this.Invoke(new Action(() =>
{
if (task.Result.IsSuccess)
{
this.dgv_Main.DataSource = null;
this.dgv_Main.DataSource = task.Result.Content;
}
else
{
new FrmMsgBoxOutWithAck(2, "查询失败:" + task.Result.Message, "错误提示").Show();
}
}));
});
}
private OperateResult<DataTable> QueryProcess(int selectType, string barCode, string start, string end)
{
//判断时间
DateTime startTime = Convert.ToDateTime(start);
DateTime endTime = Convert.ToDateTime(end);
if (startTime > endTime)
{
return OperateResult.CreateFailResult<DataTable>("开始时间不能大于结束时间");
}
TimeSpan timeSpan = endTime - startTime;
if (timeSpan.TotalDays > 30.0)
{
return OperateResult.CreateFailResult<DataTable>("查询时间不能超过30天");
}
DataTable dataTable = CommonMethods.db.QueryDataTable(CommonMethods.dBSQL.SelectHostData(selectType, barCode, start, end));
if (dataTable != null)
{
return OperateResult.CreateSuccessResult<DataTable>(dataTable);
}
else
{
return OperateResult.CreateFailResult<DataTable>("未能查到数据,请检测");
}
}
private void btn_ExPort_Click(object sender, EventArgs e)
{
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.Filter = "XLSX文件(*.xlsx)|*.xlsx|所有文件|*.*";
saveFileDialog.Title = "导出历史数据";
saveFileDialog.FileName = "历史数据" + DateTime.Now.ToString("yyyyMMddHHmmss");
saveFileDialog.DefaultExt = "xlsx";
saveFileDialog.AddExtension = true;
if (saveFileDialog.ShowDialog() == DialogResult.OK)
{
MiniExcel.SaveAs(saveFileDialog.FileName, this.dgv_Main.DataSource);
if (new FrmMsgBoxWithAck("导出报表成功,是否立即打开?", "打开报表记录").ShowDialog() == DialogResult.OK)
{
Process.Start(saveFileDialog.FileName);
}
else
{
new FrmMsgBoxOutWithAck(2, "导出报表失败", "数据报表导出").ShowDialog();
}
}
}
/// <summary>
/// 显示序列号
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void dgv_Main_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
DataGridViewHelper.DgvRowPostPaint((DataGridView)sender, e);
}
/// <summary>
/// 给DataGridView绘制边框
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void dgv_Main_Paint(object sender, PaintEventArgs e)
{
DataGridViewHelper.DgvRowPaint((DataGridView)sender, e, Color.FromArgb(1, 146, 235));
}
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void dgv_Main_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.RowIndex != -1 && e.ColumnIndex >= 5)
{
object value = this.dgv_Main.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
if (value == null || value?.ToString().Length == 0)
{
e.Value = "--";
}
}
}
#region 减少闪烁
protected override CreateParams CreateParams
{
get
{
CreateParams parss = base.CreateParams;
parss.ExStyle |= 0x02000000;
return parss;
}
}
#endregion
#region 统计查询
/// <summary>
/// 班次
/// </summary>
private DataTable dtClasses = null;
/// <summary>
/// 日
/// </summary>
private DataTable dtDays = null;
/// <summary>
/// 周
/// </summary>
private DataTable dtWeeks = null;
/// <summary>
/// 月
/// </summary>
private DataTable dtMonths = null;
#region 1、按班次查询
/// <summary>
/// 按班次查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_ClassQuery_Click(object sender, EventArgs e)
{
dtClasses = null;
DateTime strDate = dtClass.Value;
string strClass = cmbClass.Text;
dtClasses = CommonMethods.db.QueryDataTable(CommonMethods.dBSQL.GetStaticByShift(strDate, strClass, CommonMethods.ChangeClassTime));
if (dtClasses != null && dtClasses.Rows.Count > 0)
{
this.dgvClass.DataSource = null;
this.dgvClass.DataSource = dtClasses;
}
}
/// <summary>
/// 按班次导出
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_ClassExPort_Click(object sender, EventArgs e)
{
if (dgvClass.Columns.Count <= 0)
{
MessageBox.Show("导出失败,无查询结果");
return;
}
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.FileName = $"产能统计_按班次统计_{DateTime.Now.ToString("yyyyMMddHHmmss")}";
saveFileDialog.Filter = "*|*.csv";
if (saveFileDialog.ShowDialog() == DialogResult.Cancel)
return;
string msg = "";
if (CSVHelper<object>.ExportDataTableToCSV(dtClasses, saveFileDialog.FileName, out msg))
{
MessageBox.Show("导出成功!");
}
}
#endregion
# region 2、按日查询
/// <summary>
/// 按日查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_DaysQuery_Click(object sender, EventArgs e)
{
dtDays = null;
string startDateTime = dtpDays.Value.ToString("yyyy-MM-dd 00:00:00");
string endDateTime = dtpDays.Value.ToString("yyyy-MM-dd 23:59:59");
dtDays = CommonMethods.db.QueryDataTable(CommonMethods.dBSQL.GetStaticByDay(startDateTime, endDateTime));
if (dtDays != null && dtDays.Rows.Count > 0)
{
this.dgvDays.DataSource = null;
this.dgvDays.DataSource = dtDays;
}
}
/// <summary>
/// 按日导出
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_DaysExPort_Click(object sender, EventArgs e)
{
if (dgvDays.Columns.Count <= 0)
{
MessageBox.Show("导出失败,无查询结果");
return;
}
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.FileName = $"产能统计_按日统计_{DateTime.Now.ToString("yyyyMMddHHmmss")}";
saveFileDialog.Filter = "*|*.csv";
if (saveFileDialog.ShowDialog() == DialogResult.Cancel)
return;
string msg = "";
if (CSVHelper<object>.ExportDataTableToCSV(dtDays, saveFileDialog.FileName, out msg))
{
MessageBox.Show("导出成功!");
}
}
#endregion
#region 3、按周查询
/// <summary>
/// 按周查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_WeekQuery_Click(object sender, EventArgs e)
{
dtWeeks = null;
//确定星期几
var index = (int)dtpWeek.Value.DayOfWeek;
index = index == 0 ? 7 : index;
//当前周的范围
string retStartDay = dtpWeek.Value.AddDays(-(index - 1)).ToString();
string retEndDay = dtpWeek.Value.AddDays(7 - index).ToString();
dtWeeks = CommonMethods.db.QueryDataTable(CommonMethods.dBSQL.GetStaticByWeek(retStartDay, retEndDay));
if (dtWeeks != null && dtWeeks.Rows.Count > 0)
{
this.dgvWeek.DataSource = null;
this.dgvWeek.DataSource = dtWeeks;
}
}
/// <summary>
/// 按周导出
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_WeekExPort_Click(object sender, EventArgs e)
{
if (dgvWeek.Columns.Count <= 0)
{
MessageBox.Show("导出失败,无查询结果");
return;
}
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.FileName = $"产能统计_按周统计_{DateTime.Now.ToString("yyyyMMddHHmmss")}";
saveFileDialog.Filter = "*|*.csv";
if (saveFileDialog.ShowDialog() == DialogResult.Cancel)
return;
string msg = "";
if (CSVHelper<object>.ExportDataTableToCSV(dtWeeks, saveFileDialog.FileName, out msg))
{
MessageBox.Show("导出成功!");
}
}
#endregion
#region 4、按月查询
/// <summary>
/// 按月查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_MonthQuery_Click(object sender, EventArgs e)
{
dtMonths = null;
string startDateTime = dtMonth.Value.ToString("yyyy-MM-01 00:00:00");
string endDateTime = new DateTime(dtMonth.Value.Year, dtMonth.Value.Month, DateTime.DaysInMonth(dtMonth.Value.Year, dtMonth.Value.Month)).ToString("yyyy-MM-dd 23:59:59");//通过指定日期计算当月最后一天
dtMonths = CommonMethods.db.QueryDataTable(CommonMethods.dBSQL.GetStaticByMonth(startDateTime, endDateTime));
if (dtMonth != null && dtMonths.Rows.Count > 0)
{
this.dgvMonth.DataSource = null;
this.dgvMonth.DataSource = dtMonths;
}
}
/// <summary>
/// 按月导出
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_MonthExPort_Click(object sender, EventArgs e)
{
if (dgvMonth.Columns.Count <= 0)
{
MessageBox.Show("导出失败,无查询结果");
return;
}
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.FileName = $"产能统计_按月统计_{DateTime.Now.ToString("yyyyMMddHHmmss")}";
saveFileDialog.Filter = "*|*.csv";
if (saveFileDialog.ShowDialog() == DialogResult.Cancel)
return;
string msg = "";
if (CSVHelper<object>.ExportDataTableToCSV(dtMonths, saveFileDialog.FileName, out msg))
{
MessageBox.Show("导出成功!");
}
}
#endregion
#endregion
/// <summary>
/// 选择班次时间变更
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void cmb_AlarmType_SelectedIndexChanged(object sender, EventArgs e)
{
if (cmb_AlarmType.SelectedIndex == 1) //白班
{
DateTime baiClassStart = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd 8:30:00"));
DateTime baiClassEnd = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd 20:29:59"));
dtp_AlarmTimeStart.Value = baiClassStart;
dtp_AlarmTimeEnd.Value = baiClassEnd;
}
else if (cmb_AlarmType.SelectedIndex == 2) //夜班
{
DateTime yeClassStart = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd 20:30:00"));
DateTime yeClassEnd = Convert.ToDateTime(DateTime.Now.AddDays(1).ToString("yyyy-MM-dd 8:29:59"));
dtp_AlarmTimeStart.Value = yeClassStart;
dtp_AlarmTimeEnd.Value = yeClassEnd;
}
else
{
DateTime baiClassStart = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
DateTime baiClassEnd = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
dtp_AlarmTimeStart.Value = baiClassStart;
dtp_AlarmTimeEnd.Value = baiClassEnd;
}
}
/// <summary>
/// 查询数据
/// </summary>
/// <param name="start"></param>
/// <param name="end"></param>
/// <param name="alarmType"></param>
/// <returns></returns>
private OperateResult<DataTable> QueryProcess(string start, string end, string alarmType)
{
DateTime startDateTime = Convert.ToDateTime(start);
DateTime endDateTime = Convert.ToDateTime(end);
if (startDateTime >= endDateTime)
{
return OperateResult.CreateFailResult<DataTable>("开始时间不能大于结束时间");
}
TimeSpan timeSpan = endDateTime - startDateTime;
if (timeSpan.TotalDays > 1.0)
{
return OperateResult.CreateFailResult<DataTable>("查询范围不能超过1天");
}
DataTable dataTable = CommonMethods.db.QueryDataTable(CommonMethods.dBSQL.SelectHostAlarmData(start, end, alarmType));
if (dataTable != null)
{
return OperateResult.CreateSuccessResult<DataTable>(dataTable);
}
else
{
return OperateResult.CreateFailResult<DataTable>("未能查到数据,请检测");
}
}
/// <summary>
/// 报警信息查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_AlarmQuery_Click(object sender, EventArgs e)
{
string start = this.dtp_AlarmTimeStart.Text;
string end = this.dtp_AlarmTimeEnd.Text;
string alarmType = this.cmb_AlarmType.Text;
Task<OperateResult<DataTable>> task1 = Task.Run(() =>
{
return QueryProcess(start, end, alarmType);
});
var task2 = task1.ContinueWith(task =>
{
this.Invoke(new Action(() =>
{
if (task.Result.IsSuccess)
{
this.dgv_AlarmData.DataSource = null;
this.dgv_AlarmData.DataSource = task.Result.Content;
}
else
{
new FrmMsgBoxOutWithAck(2, "查询失败:" + task.Result.Message, "报警查询").Show();
}
}));
});
}
/// <summary>
/// 报警信息导出
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_AlarmExport_Click(object sender, EventArgs e)
{
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.Filter = "XLSX文件(*.xlsx)|*.xlsx|所有文件|*.*";
saveFileDialog.Title = "导出历史报警";
saveFileDialog.FileName = "历史报警" + DateTime.Now.ToString("yyyyMMddHHmmss");
saveFileDialog.DefaultExt = "xlsx";
saveFileDialog.AddExtension = true;
if (saveFileDialog.ShowDialog() == DialogResult.OK)
{
MiniExcel.SaveAs(saveFileDialog.FileName, this.dgv_AlarmData.DataSource);
if (new FrmMsgBoxWithAck("导出报警成功,是否立即打开?", "打开报警记录").ShowDialog() == DialogResult.OK)
{
Process.Start(saveFileDialog.FileName);
}
}
}
private void dgv_AlarmData_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
DataGridViewHelper.DgvRowPostPaint((DataGridView)sender, e);
}
}
}
+120
View 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>
+178
View File
@@ -0,0 +1,178 @@
namespace LargeSquareOne
{
partial class FrmLogin
{
/// <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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmLogin));
this.txt_LoginPwd = new System.Windows.Forms.TextBox();
this.txt_LoginName = new System.Windows.Forms.TextBox();
this.btn_Login = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
this.SuspendLayout();
//
// txt_LoginPwd
//
this.txt_LoginPwd.BackColor = System.Drawing.Color.White;
this.txt_LoginPwd.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txt_LoginPwd.Font = new System.Drawing.Font("微软雅黑", 15F);
this.txt_LoginPwd.ForeColor = System.Drawing.Color.Black;
this.txt_LoginPwd.Location = new System.Drawing.Point(220, 167);
this.txt_LoginPwd.Name = "txt_LoginPwd";
this.txt_LoginPwd.PasswordChar = '*';
this.txt_LoginPwd.Size = new System.Drawing.Size(203, 27);
this.txt_LoginPwd.TabIndex = 1;
//
// txt_LoginName
//
this.txt_LoginName.BackColor = System.Drawing.Color.White;
this.txt_LoginName.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txt_LoginName.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txt_LoginName.ForeColor = System.Drawing.Color.Black;
this.txt_LoginName.Location = new System.Drawing.Point(220, 106);
this.txt_LoginName.Name = "txt_LoginName";
this.txt_LoginName.Size = new System.Drawing.Size(203, 27);
this.txt_LoginName.TabIndex = 0;
this.txt_LoginName.Text = "Admin";
this.txt_LoginName.DoubleClick += new System.EventHandler(this.txt_LoginName_DoubleClick);
this.txt_LoginName.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_LoginName_KeyDown);
//
// btn_Login
//
this.btn_Login.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(85)))));
this.btn_Login.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
this.btn_Login.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
this.btn_Login.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Login.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btn_Login.ForeColor = System.Drawing.Color.White;
this.btn_Login.Location = new System.Drawing.Point(220, 233);
this.btn_Login.Name = "btn_Login";
this.btn_Login.Size = new System.Drawing.Size(149, 43);
this.btn_Login.TabIndex = 2;
this.btn_Login.Text = "登 录";
this.btn_Login.UseVisualStyleBackColor = false;
this.btn_Login.Click += new System.EventHandler(this.btn_Login_Click);
this.btn_Login.KeyDown += new System.Windows.Forms.KeyEventHandler(this.btn_Login_KeyDown);
//
// btn_Close
//
this.btn_Close.BackColor = System.Drawing.Color.Transparent;
this.btn_Close.FlatAppearance.BorderSize = 0;
this.btn_Close.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.btn_Close.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_Close.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Close.Font = new System.Drawing.Font("微软雅黑", 14F);
this.btn_Close.ForeColor = System.Drawing.Color.Black;
this.btn_Close.Location = new System.Drawing.Point(417, 2);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(32, 34);
this.btn_Close.TabIndex = 3;
this.btn_Close.Text = "X";
this.btn_Close.UseVisualStyleBackColor = false;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
this.pictureBox1.Image = global::LargeSquareOne.Properties.Resources.用户;
this.pictureBox1.Location = new System.Drawing.Point(180, 101);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(32, 32);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 8;
this.pictureBox1.TabStop = false;
//
// pictureBox2
//
this.pictureBox2.BackColor = System.Drawing.Color.Transparent;
this.pictureBox2.Image = global::LargeSquareOne.Properties.Resources._25_密码;
this.pictureBox2.Location = new System.Drawing.Point(180, 161);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(32, 32);
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox2.TabIndex = 9;
this.pictureBox2.TabStop = false;
//
// pictureBox3
//
this.pictureBox3.BackColor = System.Drawing.Color.Transparent;
this.pictureBox3.Image = global::LargeSquareOne.Properties.Resources.yiweidongli;
this.pictureBox3.Location = new System.Drawing.Point(3, 2);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(153, 34);
this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox3.TabIndex = 10;
this.pictureBox3.TabStop = false;
//
// FrmLogin
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackgroundImage = global::LargeSquareOne.Properties.Resources.Login1;
this.ClientSize = new System.Drawing.Size(451, 319);
this.Controls.Add(this.pictureBox3);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.btn_Close);
this.Controls.Add(this.txt_LoginPwd);
this.Controls.Add(this.txt_LoginName);
this.Controls.Add(this.btn_Login);
this.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.Name = "FrmLogin";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "FrmLogin";
this.Load += new System.EventHandler(this.FrmLogin_Load);
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Form_MouseDown);
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Form_MouseMove);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox txt_LoginPwd;
private System.Windows.Forms.TextBox txt_LoginName;
private System.Windows.Forms.Button btn_Login;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.PictureBox pictureBox3;
}
}
+245
View File
@@ -0,0 +1,245 @@
using JinYuan.Helper;
using JinYuan.Models;
using JinYuan.VirtualDataLibrary;
using System;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace LargeSquareOne
{
public partial class FrmLogin : Form
{
public FrmLogin()
{
InitializeComponent();
this.Load += FrmLogin_Load;
}
private void FrmLogin_Load(object sender, EventArgs e)
{
CommonMethods.GetSysConfig();
if (CommonMethods.sysConfig != null)
{
if (CommonMethods.sysConfig.AutoLogin)
{
btn_Login_Click(null, null);
}
}
}
/// <summary>
/// 登录
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_Login_Click(object sender, EventArgs e)
{
//数据验证
if (this.txt_LoginName.Text.Trim().Length == 0)
{
new FrmMsgBoxOutWithAck(2, "请填写登录用户名", "登录提示").ShowDialog();
this.txt_LoginName.Focus();
return;
}
if (this.txt_LoginPwd.Text.Trim().Length == 0)
{
new FrmMsgBoxOutWithAck(2, "请填写登录用密码", "登录提示").ShowDialog();
this.txt_LoginPwd.Focus();
return;
}
//封装对象
SysAdmin sysAdmin = new SysAdmin()
{
LoginName = this.txt_LoginName.Text.Trim(),
LoginPwd = StringSecurityHelper.DESEncrypt(this.txt_LoginPwd.Text.Trim())
};
//调用查询方法
sysAdmin = CommonMethods.db.Query<SysAdmin>(it => it.LoginName == sysAdmin.LoginName && it.LoginPwd == sysAdmin.LoginPwd);
if (sysAdmin == null)
{
new FrmMsgBoxOutWithAck(3, "登录用户或密码错误!!!", "登录提示").ShowDialog();
return;
}
else
{
this.DialogResult = DialogResult.OK;
CommonMethods.LoginOut = false;
//存储用户对象
CommonMethods.currentAdmin = sysAdmin;
CommonMethods.IsLoginOk = true;
}
//ngcode
CommonMethods.listNgCodeEntity = CommonMethods.db.QueryAll<NgCodeEntity>();
}
/// <summary>
/// 回车按钮事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_Login_KeyDown(object sender, KeyEventArgs e)
{
//数据验证
if (this.txt_LoginName.Text.Trim().Length == 0)
{
new FrmMsgBoxOutWithAck(2, "请填写登录用户名", "登录提示").ShowDialog();
this.txt_LoginName.Focus();
return;
}
if (this.txt_LoginPwd.Text.Trim().Length == 0)
{
new FrmMsgBoxOutWithAck(2, "请填写登录用密码", "登录提示").ShowDialog();
this.txt_LoginPwd.Focus();
return;
}
//封装对象
SysAdmin sysAdmin = new SysAdmin()
{
LoginName = this.txt_LoginName.Text.Trim(),
LoginPwd = StringSecurityHelper.DESEncrypt(this.txt_LoginPwd.Text.Trim())
};
//调用查询方法
sysAdmin = CommonMethods.db.Query<SysAdmin>(it => it.LoginName == sysAdmin.LoginName && it.LoginPwd == sysAdmin.LoginPwd);
if (sysAdmin == null)
{
new FrmMsgBoxOutWithAck(3, "登录用户或密码错误!!!", "登录提示").ShowDialog();
return;
}
else
{
this.DialogResult = DialogResult.OK;
CommonMethods.LoginOut = false;
//存储用户对象
CommonMethods.currentAdmin = sysAdmin;
CommonMethods.IsLoginOk = true;
}
}
private void txt_LoginName_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
this.btn_Login_Click(null, null);
}
}
private void txt_LoginName_DoubleClick(object sender, EventArgs e)
{
StartKeyBoard();
}
#region 启动软键盘
private void StartKeyBoard()
{
//打开软键盘
try
{
if (!System.IO.File.Exists(Environment.SystemDirectory + "\\osk.exe"))
{
MessageBox.Show("软件盘可执行文件不存在!");
return;
}
softKey = System.Diagnostics.Process.Start(Environment.SystemDirectory + "\\osk.exe");
// 上面的语句在打开软键盘后,系统还没用立刻把软键盘的窗口创建出来了。所以下面的代码用循环来查询窗口是否创建,只有创建了窗口
// FindWindow才能找到窗口句柄,才可以移动窗口的位置和设置窗口的大小。这里是关键。
IntPtr intptr = IntPtr.Zero;
while (IntPtr.Zero == intptr)
{
System.Threading.Thread.Sleep(100);
intptr = FindWindow(null, "屏幕键盘");
}
// 获取屏幕尺寸
int iActulaWidth = Screen.PrimaryScreen.Bounds.Width;
int iActulaHeight = Screen.PrimaryScreen.Bounds.Height;
// 设置软键盘的显示位置,底部居中
int posX = (iActulaWidth - 1000) / 2;
int posY = (iActulaHeight - 300);
//设定键盘显示位置
MoveWindow(intptr, posX, posY, 1000, 300, true);
//设置软键盘到前端显示
SetForegroundWindow(intptr);
}
catch (System.Exception ex)
{
MessageBox.Show(ex.Message);
}
}
// 申明要使用的dll和api
[DllImport("User32.dll", EntryPoint = "FindWindow")]
public extern static IntPtr FindWindow(string lpClassName, string lpWindowName);
[System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "MoveWindow")]
public static extern bool MoveWindow(System.IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint);
[DllImport("user32.dll")]
static extern bool SetForegroundWindow(IntPtr hWnd);
private System.Diagnostics.Process softKey;
#endregion
/// <summary>
/// 退出
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
#region 窗体拖动
public static Point CPoint;
private void Form_MouseDown(object sender, MouseEventArgs e)
{
CPoint = new Point(-e.X, -e.Y);
}
private void Form_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
Point myPosittion = Control.MousePosition;//获取当前鼠标的屏幕坐标
myPosittion.Offset(CPoint.X, CPoint.Y);//重载当前鼠标的位置
this.DesktopLocation = myPosittion;//设置当前窗体在屏幕上的位置
}
}
#endregion
#region 减少闪烁
protected override CreateParams CreateParams
{
get
{
CreateParams parss = base.CreateParams;
parss.ExStyle |= 0x02000000;
return parss;
}
}
#endregion
}
}
File diff suppressed because it is too large Load Diff
+199
View File
@@ -0,0 +1,199 @@
namespace LargeSquareOne
{
partial class FrmLoginMes
{
/// <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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmLoginMes));
this.txt_LoginMesPwd = new System.Windows.Forms.TextBox();
this.txt_LoginMesName = new System.Windows.Forms.TextBox();
this.btn_LoginMes = new System.Windows.Forms.Button();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.btn_Close = new System.Windows.Forms.Button();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.label1 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
this.SuspendLayout();
//
// txt_LoginMesPwd
//
this.txt_LoginMesPwd.BackColor = System.Drawing.Color.White;
this.txt_LoginMesPwd.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txt_LoginMesPwd.Font = new System.Drawing.Font("微软雅黑", 15F);
this.txt_LoginMesPwd.ForeColor = System.Drawing.Color.Black;
this.txt_LoginMesPwd.Location = new System.Drawing.Point(322, 242);
this.txt_LoginMesPwd.Margin = new System.Windows.Forms.Padding(6, 8, 6, 8);
this.txt_LoginMesPwd.Name = "txt_LoginMesPwd";
this.txt_LoginMesPwd.PasswordChar = '*';
this.txt_LoginMesPwd.Size = new System.Drawing.Size(246, 40);
this.txt_LoginMesPwd.TabIndex = 17;
this.txt_LoginMesPwd.Text = "123456";
//
// txt_LoginMesName
//
this.txt_LoginMesName.BackColor = System.Drawing.Color.White;
this.txt_LoginMesName.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txt_LoginMesName.Font = new System.Drawing.Font("微软雅黑", 15F);
this.txt_LoginMesName.ForeColor = System.Drawing.Color.Black;
this.txt_LoginMesName.Location = new System.Drawing.Point(322, 152);
this.txt_LoginMesName.Margin = new System.Windows.Forms.Padding(6, 8, 6, 8);
this.txt_LoginMesName.Name = "txt_LoginMesName";
this.txt_LoginMesName.Size = new System.Drawing.Size(246, 40);
this.txt_LoginMesName.TabIndex = 16;
this.txt_LoginMesName.Text = "admin";
this.txt_LoginMesName.DoubleClick += new System.EventHandler(this.txt_LoginMesName_DoubleClick);
this.txt_LoginMesName.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_LoginMesName_KeyDown);
//
// btn_LoginMes
//
this.btn_LoginMes.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(85)))));
this.btn_LoginMes.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
this.btn_LoginMes.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
this.btn_LoginMes.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_LoginMes.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btn_LoginMes.ForeColor = System.Drawing.Color.White;
this.btn_LoginMes.Location = new System.Drawing.Point(322, 318);
this.btn_LoginMes.Margin = new System.Windows.Forms.Padding(6, 8, 6, 8);
this.btn_LoginMes.Name = "btn_LoginMes";
this.btn_LoginMes.Size = new System.Drawing.Size(216, 64);
this.btn_LoginMes.TabIndex = 15;
this.btn_LoginMes.Text = "登 录";
this.btn_LoginMes.UseVisualStyleBackColor = false;
this.btn_LoginMes.Click += new System.EventHandler(this.btn_LoginMes_Click);
//
// pictureBox2
//
this.pictureBox2.BackColor = System.Drawing.Color.Transparent;
this.pictureBox2.Image = global::LargeSquareOne.Properties.Resources._25_密码;
this.pictureBox2.Location = new System.Drawing.Point(256, 228);
this.pictureBox2.Margin = new System.Windows.Forms.Padding(6, 8, 6, 8);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(51, 56);
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox2.TabIndex = 19;
this.pictureBox2.TabStop = false;
//
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
this.pictureBox1.Image = global::LargeSquareOne.Properties.Resources.用户;
this.pictureBox1.Location = new System.Drawing.Point(256, 138);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(6, 8, 6, 8);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(51, 54);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 18;
this.pictureBox1.TabStop = false;
//
// btn_Close
//
this.btn_Close.BackColor = System.Drawing.Color.Transparent;
this.btn_Close.FlatAppearance.BorderSize = 0;
this.btn_Close.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.btn_Close.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_Close.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Close.Font = new System.Drawing.Font("微软雅黑", 14F);
this.btn_Close.ForeColor = System.Drawing.Color.Black;
this.btn_Close.Location = new System.Drawing.Point(614, 4);
this.btn_Close.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(48, 51);
this.btn_Close.TabIndex = 21;
this.btn_Close.Text = "X";
this.btn_Close.UseVisualStyleBackColor = false;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// pictureBox3
//
this.pictureBox3.BackColor = System.Drawing.Color.Transparent;
this.pictureBox3.Image = global::LargeSquareOne.Properties.Resources.yiweidongli;
this.pictureBox3.Location = new System.Drawing.Point(0, 4);
this.pictureBox3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(230, 51);
this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox3.TabIndex = 22;
this.pictureBox3.TabStop = false;
//
// label1
//
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("微软雅黑", 26.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
this.label1.Location = new System.Drawing.Point(404, 50);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(147, 70);
this.label1.TabIndex = 23;
this.label1.Text = "MES";
//
// FrmLoginMes
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackgroundImage = global::LargeSquareOne.Properties.Resources.Login1;
this.ClientSize = new System.Drawing.Size(666, 476);
this.Controls.Add(this.label1);
this.Controls.Add(this.pictureBox3);
this.Controls.Add(this.btn_Close);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.txt_LoginMesPwd);
this.Controls.Add(this.txt_LoginMesName);
this.Controls.Add(this.btn_LoginMes);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Name = "FrmLoginMes";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "FrmLoginMes";
this.Load += new System.EventHandler(this.FrmLoginMes_Load);
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Form_MouseDown);
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Form_MouseMove);
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.TextBox txt_LoginMesPwd;
private System.Windows.Forms.TextBox txt_LoginMesName;
private System.Windows.Forms.Button btn_LoginMes;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.PictureBox pictureBox3;
private System.Windows.Forms.Label label1;
}
}
+189
View File
@@ -0,0 +1,189 @@
using JinYuan.VirtualDataLibrary;
using System;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace LargeSquareOne
{
public partial class FrmLoginMes : Form
{
public FrmLoginMes()
{
InitializeComponent();
this.Load += FrmLoginMes_Load;
}
private void FrmLoginMes_Load(object sender, EventArgs e)
{
CommonMethods.GetSysConfig();
if (CommonMethods.sysConfig != null)
{
if (CommonMethods.sysConfig.AutoLogin)
{
btn_LoginMes_Click(null, null);
}
}
}
/// <summary>
/// Mes登录
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_LoginMes_Click(object sender, EventArgs e)
{
if (this.txt_LoginMesName.Text.Trim().Length == 0)
{
new FrmMsgBoxOutWithAck(2, "请填写登录用户名", "登录提示").ShowDialog();
this.txt_LoginMesName.Focus();
return;
}
if (this.txt_LoginMesPwd.Text.Trim().Length == 0)
{
new FrmMsgBoxOutWithAck(2, "请填写登录用密码", "登录提示").ShowDialog();
this.txt_LoginMesPwd.Focus();
return;
}
CommonMethods.mesConfig.mesUserName = this.txt_LoginMesName.Text.Trim();
CommonMethods.mesConfig.mesPwd = this.txt_LoginMesPwd.Text.Trim();
string Mesage = "";
string UserCardID = CommonMethods.currentAdmin.LoginUid;
bool Res = CommonMethods.hbgMes.LoginEnyity(CommonMethods.mesConfig.LoginMesUrl, CommonMethods.mesConfig.siteCode, CommonMethods.mesConfig.lineCode, CommonMethods.mesConfig.equipNum, CommonMethods.mesConfig.mesUserName, CommonMethods.mesConfig.mesPwd, UserCardID, ref Mesage);
if (!Res)
{
new FrmMsgBoxOutWithAck(3, Mesage, "登录提示").ShowDialog();
return;
}
else
{
this.DialogResult = DialogResult.OK;
CommonMethods.mesConfig.IsLoginMesOK = true;
new FrmMsgBoxOutWithAck(1, $"MES登录成功,登录用户:{CommonMethods.mesConfig.mesUserName}", "登录提示").ShowDialog();
//登录日志
CommonMethods.AddOPLog(false, $"MES登录成功,登录用户:{CommonMethods.mesConfig.mesUserName}");
}
}
private void txt_LoginMesName_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
this.btn_LoginMes_Click(null, null);
}
}
private void txt_LoginMesName_DoubleClick(object sender, EventArgs e)
{
StartKeyBoard();
}
#region 启动软键盘
private void StartKeyBoard()
{
//打开软键盘
try
{
if (!System.IO.File.Exists(Environment.SystemDirectory + "\\osk.exe"))
{
MessageBox.Show("软件盘可执行文件不存在!");
return;
}
softKey = System.Diagnostics.Process.Start(Environment.SystemDirectory + "\\osk.exe");
// 上面的语句在打开软键盘后,系统还没用立刻把软键盘的窗口创建出来了。所以下面的代码用循环来查询窗口是否创建,只有创建了窗口
// FindWindow才能找到窗口句柄,才可以移动窗口的位置和设置窗口的大小。这里是关键。
IntPtr intptr = IntPtr.Zero;
while (IntPtr.Zero == intptr)
{
System.Threading.Thread.Sleep(100);
intptr = FindWindow(null, "屏幕键盘");
}
// 获取屏幕尺寸
int iActulaWidth = Screen.PrimaryScreen.Bounds.Width;
int iActulaHeight = Screen.PrimaryScreen.Bounds.Height;
// 设置软键盘的显示位置,底部居中
int posX = (iActulaWidth - 1000) / 2;
int posY = (iActulaHeight - 300);
//设定键盘显示位置
MoveWindow(intptr, posX, posY, 1000, 300, true);
//设置软键盘到前端显示
SetForegroundWindow(intptr);
}
catch (System.Exception ex)
{
MessageBox.Show(ex.Message);
}
}
// 申明要使用的dll和api
[DllImport("User32.dll", EntryPoint = "FindWindow")]
public extern static IntPtr FindWindow(string lpClassName, string lpWindowName);
[System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "MoveWindow")]
public static extern bool MoveWindow(System.IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint);
[DllImport("user32.dll")]
static extern bool SetForegroundWindow(IntPtr hWnd);
private System.Diagnostics.Process softKey;
#endregion
/// <summary>
/// 退出
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
#region 窗体拖动
public static Point CPoint;
private void Form_MouseDown(object sender, MouseEventArgs e)
{
CPoint = new Point(-e.X, -e.Y);
}
private void Form_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
Point myPosittion = Control.MousePosition;//获取当前鼠标的屏幕坐标
myPosittion.Offset(CPoint.X, CPoint.Y);//重载当前鼠标的位置
this.DesktopLocation = myPosittion;//设置当前窗体在屏幕上的位置
}
}
#endregion
#region 减少闪烁
protected override CreateParams CreateParams
{
get
{
CreateParams parss = base.CreateParams;
parss.ExStyle |= 0x02000000;
return parss;
}
}
#endregion
}
}
File diff suppressed because it is too large Load Diff
+677
View File
@@ -0,0 +1,677 @@
namespace LargeSquareOne
{
partial class FrmMain
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
this.MiddlePanel = new System.Windows.Forms.Panel();
this.lbl_Title = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.led_IldeState = new SeeSharpTools.JY.GUI.LED();
this.label1 = new System.Windows.Forms.Label();
this.led_AlarmState = new SeeSharpTools.JY.GUI.LED();
this.label6 = new System.Windows.Forms.Label();
this.led_RunState = new SeeSharpTools.JY.GUI.LED();
this.label21 = new System.Windows.Forms.Label();
this.led_MESState = new SeeSharpTools.JY.GUI.LED();
this.label19 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.led_PLCState = new SeeSharpTools.JY.GUI.LED();
this.panel3 = new System.Windows.Forms.Panel();
this.btn_Return = new System.Windows.Forms.Button();
this.lbl_DateTime = new System.Windows.Forms.Label();
this.lblMES = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.lblMS = new System.Windows.Forms.Label();
this.lbl_LoginName = new System.Windows.Forms.Label();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.lbl_LoginLevel = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.ucRollText1 = new JinYuan.ControlLib.UCRollText();
this.btn_right = new System.Windows.Forms.Button();
this.btn_Left = new System.Windows.Forms.Button();
this.TopPanel = new System.Windows.Forms.Panel();
this.nav_DataMonitor = new JinYuan.ControlLib.NaviButton2();
this.btnScale = new System.Windows.Forms.Button();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.panel2 = new System.Windows.Forms.Panel();
this.label3 = new System.Windows.Forms.Label();
this.lbl_TitleBar = new System.Windows.Forms.Label();
this.nav_CPK = new JinYuan.ControlLib.NaviButton2();
this.label4 = new System.Windows.Forms.Label();
this.nav_SetSystem = new JinYuan.ControlLib.NaviButton2();
this.nav_System = new JinYuan.ControlLib.NaviButton2();
this.nav_Monitor = new JinYuan.ControlLib.NaviButton2();
this.nav_AlarmLog = new JinYuan.ControlLib.NaviButton2();
this.nav_User = new JinYuan.ControlLib.NaviButton2();
this.nav_HistotryData = new JinYuan.ControlLib.NaviButton2();
this.btExit = new System.Windows.Forms.Button();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.非刷卡模式ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
this.contextMenuStrip2 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.关于 = new System.Windows.Forms.ToolStripMenuItem();
this.隐藏主界面 = new System.Windows.Forms.ToolStripMenuItem();
this.显示主界面 = new System.Windows.Forms.ToolStripMenuItem();
this.退出 = new System.Windows.Forms.ToolStripMenuItem();
this.CorePanel = new JinYuan.ControlLib.PanelExt();
this.MainPanel = new System.Windows.Forms.Panel();
this.userStateMonitor1 = new JinYuan.ControlLib.UserStateMonitor(this.components);
this.MiddlePanel.SuspendLayout();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.panel1.SuspendLayout();
this.TopPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panel2.SuspendLayout();
this.contextMenuStrip1.SuspendLayout();
this.contextMenuStrip2.SuspendLayout();
this.CorePanel.SuspendLayout();
this.SuspendLayout();
//
// MiddlePanel
//
resources.ApplyResources(this.MiddlePanel, "MiddlePanel");
this.MiddlePanel.BackColor = System.Drawing.Color.Transparent;
this.MiddlePanel.Controls.Add(this.lbl_Title);
this.MiddlePanel.Controls.Add(this.label7);
this.MiddlePanel.Controls.Add(this.label5);
this.MiddlePanel.Controls.Add(this.led_IldeState);
this.MiddlePanel.Controls.Add(this.label1);
this.MiddlePanel.Controls.Add(this.led_AlarmState);
this.MiddlePanel.Controls.Add(this.label6);
this.MiddlePanel.Controls.Add(this.led_RunState);
this.MiddlePanel.Controls.Add(this.label21);
this.MiddlePanel.Controls.Add(this.led_MESState);
this.MiddlePanel.Controls.Add(this.label19);
this.MiddlePanel.Controls.Add(this.label18);
this.MiddlePanel.Controls.Add(this.led_PLCState);
this.MiddlePanel.Controls.Add(this.panel3);
this.MiddlePanel.Controls.Add(this.panel1);
this.MiddlePanel.Controls.Add(this.btn_right);
this.MiddlePanel.Controls.Add(this.btn_Left);
this.MiddlePanel.Name = "MiddlePanel";
//
// lbl_Title
//
resources.ApplyResources(this.lbl_Title, "lbl_Title");
this.lbl_Title.ForeColor = System.Drawing.Color.White;
this.lbl_Title.Image = global::LargeSquareOne.Properties.Resources.Current;
this.lbl_Title.Name = "lbl_Title";
//
// label7
//
resources.ApplyResources(this.label7, "label7");
this.label7.BackColor = System.Drawing.Color.Transparent;
this.label7.ForeColor = System.Drawing.Color.White;
this.label7.Name = "label7";
//
// label5
//
resources.ApplyResources(this.label5, "label5");
this.label5.BackColor = System.Drawing.Color.Transparent;
this.label5.ForeColor = System.Drawing.Color.White;
this.label5.Name = "label5";
//
// led_IldeState
//
resources.ApplyResources(this.led_IldeState, "led_IldeState");
this.led_IldeState.BlinkColor = System.Drawing.Color.Lime;
this.led_IldeState.BlinkInterval = 500;
this.led_IldeState.BlinkOn = false;
this.led_IldeState.Cursor = System.Windows.Forms.Cursors.Arrow;
this.led_IldeState.Interacton = SeeSharpTools.JY.GUI.LED.InteractionStyle.Indicator;
this.led_IldeState.Name = "led_IldeState";
this.led_IldeState.OffColor = System.Drawing.Color.Gray;
this.led_IldeState.OnColor = System.Drawing.Color.Lime;
this.led_IldeState.Style = SeeSharpTools.JY.GUI.LED.LedStyle.Circular;
this.led_IldeState.Value = false;
//
// label1
//
resources.ApplyResources(this.label1, "label1");
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.Name = "label1";
//
// led_AlarmState
//
resources.ApplyResources(this.led_AlarmState, "led_AlarmState");
this.led_AlarmState.BlinkColor = System.Drawing.Color.Red;
this.led_AlarmState.BlinkInterval = 500;
this.led_AlarmState.BlinkOn = false;
this.led_AlarmState.Cursor = System.Windows.Forms.Cursors.Arrow;
this.led_AlarmState.Interacton = SeeSharpTools.JY.GUI.LED.InteractionStyle.Indicator;
this.led_AlarmState.Name = "led_AlarmState";
this.led_AlarmState.OffColor = System.Drawing.Color.Gray;
this.led_AlarmState.OnColor = System.Drawing.Color.Red;
this.led_AlarmState.Style = SeeSharpTools.JY.GUI.LED.LedStyle.Circular;
this.led_AlarmState.Value = false;
//
// label6
//
resources.ApplyResources(this.label6, "label6");
this.label6.BackColor = System.Drawing.Color.Transparent;
this.label6.ForeColor = System.Drawing.Color.White;
this.label6.Name = "label6";
//
// led_RunState
//
resources.ApplyResources(this.led_RunState, "led_RunState");
this.led_RunState.BlinkColor = System.Drawing.Color.Lime;
this.led_RunState.BlinkInterval = 500;
this.led_RunState.BlinkOn = false;
this.led_RunState.Cursor = System.Windows.Forms.Cursors.Arrow;
this.led_RunState.Interacton = SeeSharpTools.JY.GUI.LED.InteractionStyle.Indicator;
this.led_RunState.Name = "led_RunState";
this.led_RunState.OffColor = System.Drawing.Color.Gray;
this.led_RunState.OnColor = System.Drawing.Color.Lime;
this.led_RunState.Style = SeeSharpTools.JY.GUI.LED.LedStyle.Circular;
this.led_RunState.Value = false;
//
// label21
//
resources.ApplyResources(this.label21, "label21");
this.label21.BackColor = System.Drawing.Color.Transparent;
this.label21.ForeColor = System.Drawing.Color.White;
this.label21.Name = "label21";
//
// led_MESState
//
resources.ApplyResources(this.led_MESState, "led_MESState");
this.led_MESState.BlinkColor = System.Drawing.Color.Lime;
this.led_MESState.BlinkInterval = 1000;
this.led_MESState.BlinkOn = false;
this.led_MESState.Cursor = System.Windows.Forms.Cursors.Arrow;
this.led_MESState.Interacton = SeeSharpTools.JY.GUI.LED.InteractionStyle.Indicator;
this.led_MESState.Name = "led_MESState";
this.led_MESState.OffColor = System.Drawing.Color.Gray;
this.led_MESState.OnColor = System.Drawing.Color.Lime;
this.led_MESState.Style = SeeSharpTools.JY.GUI.LED.LedStyle.Circular;
this.led_MESState.Value = false;
//
// label19
//
resources.ApplyResources(this.label19, "label19");
this.label19.BackColor = System.Drawing.Color.Transparent;
this.label19.ForeColor = System.Drawing.Color.White;
this.label19.Name = "label19";
//
// label18
//
resources.ApplyResources(this.label18, "label18");
this.label18.BackColor = System.Drawing.Color.Transparent;
this.label18.ForeColor = System.Drawing.Color.White;
this.label18.Name = "label18";
//
// led_PLCState
//
resources.ApplyResources(this.led_PLCState, "led_PLCState");
this.led_PLCState.BlinkColor = System.Drawing.Color.Lime;
this.led_PLCState.BlinkInterval = 1000;
this.led_PLCState.BlinkOn = false;
this.led_PLCState.Cursor = System.Windows.Forms.Cursors.Arrow;
this.led_PLCState.Interacton = SeeSharpTools.JY.GUI.LED.InteractionStyle.Indicator;
this.led_PLCState.Name = "led_PLCState";
this.led_PLCState.OffColor = System.Drawing.Color.Gray;
this.led_PLCState.OnColor = System.Drawing.Color.Lime;
this.led_PLCState.Style = SeeSharpTools.JY.GUI.LED.LedStyle.Circular;
this.led_PLCState.Value = false;
//
// panel3
//
resources.ApplyResources(this.panel3, "panel3");
this.panel3.BackgroundImage = global::LargeSquareOne.Properties.Resources.Alarm1;
this.panel3.Controls.Add(this.btn_Return);
this.panel3.Controls.Add(this.lbl_DateTime);
this.panel3.Controls.Add(this.lblMES);
this.panel3.Controls.Add(this.label2);
this.panel3.Controls.Add(this.lblMS);
this.panel3.Controls.Add(this.lbl_LoginName);
this.panel3.Controls.Add(this.pictureBox2);
this.panel3.Controls.Add(this.lbl_LoginLevel);
this.panel3.Name = "panel3";
//
// btn_Return
//
resources.ApplyResources(this.btn_Return, "btn_Return");
this.btn_Return.BackColor = System.Drawing.Color.RoyalBlue;
this.btn_Return.ForeColor = System.Drawing.Color.White;
this.btn_Return.Name = "btn_Return";
this.btn_Return.UseVisualStyleBackColor = false;
this.btn_Return.Click += new System.EventHandler(this.btn_Return_Click);
//
// lbl_DateTime
//
resources.ApplyResources(this.lbl_DateTime, "lbl_DateTime");
this.lbl_DateTime.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(233)))), ((int)(((byte)(255)))));
this.lbl_DateTime.Name = "lbl_DateTime";
//
// lblMES
//
resources.ApplyResources(this.lblMES, "lblMES");
this.lblMES.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(233)))), ((int)(((byte)(255)))));
this.lblMES.Name = "lblMES";
//
// label2
//
resources.ApplyResources(this.label2, "label2");
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Name = "label2";
//
// lblMS
//
resources.ApplyResources(this.lblMS, "lblMS");
this.lblMS.ForeColor = System.Drawing.Color.White;
this.lblMS.Name = "lblMS";
//
// lbl_LoginName
//
resources.ApplyResources(this.lbl_LoginName, "lbl_LoginName");
this.lbl_LoginName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(233)))), ((int)(((byte)(255)))));
this.lbl_LoginName.Name = "lbl_LoginName";
//
// pictureBox2
//
resources.ApplyResources(this.pictureBox2, "pictureBox2");
this.pictureBox2.Image = global::LargeSquareOne.Properties.Resources.User;
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.TabStop = false;
//
// lbl_LoginLevel
//
resources.ApplyResources(this.lbl_LoginLevel, "lbl_LoginLevel");
this.lbl_LoginLevel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(233)))), ((int)(((byte)(255)))));
this.lbl_LoginLevel.Name = "lbl_LoginLevel";
//
// panel1
//
resources.ApplyResources(this.panel1, "panel1");
this.panel1.BackgroundImage = global::LargeSquareOne.Properties.Resources.Alarm1;
this.panel1.Controls.Add(this.ucRollText1);
this.panel1.Name = "panel1";
//
// ucRollText1
//
resources.ApplyResources(this.ucRollText1, "ucRollText1");
this.ucRollText1.ForeColor = System.Drawing.Color.White;
this.ucRollText1.ISChangeReset = false;
this.ucRollText1.IsExit = false;
this.ucRollText1.MoveSleepTime = 150;
this.ucRollText1.Name = "ucRollText1";
this.ucRollText1.RollStyle = JinYuan.ControlLib.RollStyle.RightToLeft;
//
// btn_right
//
resources.ApplyResources(this.btn_right, "btn_right");
this.btn_right.BackgroundImage = global::LargeSquareOne.Properties.Resources.Right;
this.btn_right.FlatAppearance.BorderSize = 0;
this.btn_right.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.btn_right.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_right.Name = "btn_right";
this.btn_right.UseVisualStyleBackColor = true;
this.btn_right.Click += new System.EventHandler(this.btn_right_Click);
//
// btn_Left
//
resources.ApplyResources(this.btn_Left, "btn_Left");
this.btn_Left.BackgroundImage = global::LargeSquareOne.Properties.Resources.Left;
this.btn_Left.FlatAppearance.BorderSize = 0;
this.btn_Left.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.btn_Left.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_Left.Name = "btn_Left";
this.btn_Left.UseVisualStyleBackColor = true;
this.btn_Left.Click += new System.EventHandler(this.btn_Left_Click);
//
// TopPanel
//
resources.ApplyResources(this.TopPanel, "TopPanel");
this.TopPanel.BackColor = System.Drawing.Color.Transparent;
this.TopPanel.Controls.Add(this.nav_DataMonitor);
this.TopPanel.Controls.Add(this.btnScale);
this.TopPanel.Controls.Add(this.pictureBox1);
this.TopPanel.Controls.Add(this.panel2);
this.TopPanel.Controls.Add(this.nav_CPK);
this.TopPanel.Controls.Add(this.label4);
this.TopPanel.Controls.Add(this.nav_SetSystem);
this.TopPanel.Controls.Add(this.nav_System);
this.TopPanel.Controls.Add(this.nav_Monitor);
this.TopPanel.Controls.Add(this.nav_AlarmLog);
this.TopPanel.Controls.Add(this.nav_User);
this.TopPanel.Controls.Add(this.nav_HistotryData);
this.TopPanel.Controls.Add(this.btExit);
this.TopPanel.Name = "TopPanel";
this.TopPanel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseDown);
this.TopPanel.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseMove);
//
// nav_DataMonitor
//
resources.ApplyResources(this.nav_DataMonitor, "nav_DataMonitor");
this.nav_DataMonitor.BackColor = System.Drawing.Color.Transparent;
this.nav_DataMonitor.IsLeft = true;
this.nav_DataMonitor.IsSelected = false;
this.nav_DataMonitor.Name = "nav_DataMonitor";
this.nav_DataMonitor.TitleName = "数据监控";
this.nav_DataMonitor.Click += new System.EventHandler(this.CommonNaviButton_Click);
//
// btnScale
//
resources.ApplyResources(this.btnScale, "btnScale");
this.btnScale.Name = "btnScale";
this.btnScale.UseVisualStyleBackColor = true;
this.btnScale.Click += new System.EventHandler(this.btnScale_Click);
//
// pictureBox1
//
resources.ApplyResources(this.pictureBox1, "pictureBox1");
this.pictureBox1.Image = global::LargeSquareOne.Properties.Resources.eve;
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.TabStop = false;
this.pictureBox1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseDown);
this.pictureBox1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseMove);
//
// panel2
//
resources.ApplyResources(this.panel2, "panel2");
this.panel2.Controls.Add(this.label3);
this.panel2.Controls.Add(this.lbl_TitleBar);
this.panel2.Name = "panel2";
this.panel2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseDown);
this.panel2.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseMove);
//
// label3
//
resources.ApplyResources(this.label3, "label3");
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Name = "label3";
this.label3.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseDown);
this.label3.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseMove);
//
// lbl_TitleBar
//
resources.ApplyResources(this.lbl_TitleBar, "lbl_TitleBar");
this.lbl_TitleBar.ForeColor = System.Drawing.Color.White;
this.lbl_TitleBar.Name = "lbl_TitleBar";
this.lbl_TitleBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseDown);
this.lbl_TitleBar.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseMove);
//
// nav_CPK
//
resources.ApplyResources(this.nav_CPK, "nav_CPK");
this.nav_CPK.BackColor = System.Drawing.Color.Transparent;
this.nav_CPK.IsLeft = true;
this.nav_CPK.IsSelected = false;
this.nav_CPK.Name = "nav_CPK";
this.nav_CPK.TitleName = "数据分析";
this.nav_CPK.Click += new System.EventHandler(this.CommonNaviButton_Click);
//
// label4
//
resources.ApplyResources(this.label4, "label4");
this.label4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Name = "label4";
this.label4.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseDown);
this.label4.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseMove);
//
// nav_SetSystem
//
resources.ApplyResources(this.nav_SetSystem, "nav_SetSystem");
this.nav_SetSystem.BackColor = System.Drawing.Color.Transparent;
this.nav_SetSystem.IsLeft = false;
this.nav_SetSystem.IsSelected = false;
this.nav_SetSystem.Name = "nav_SetSystem";
this.nav_SetSystem.TitleName = "参数设置";
this.nav_SetSystem.Click += new System.EventHandler(this.CommonNaviButton_Click);
//
// nav_System
//
resources.ApplyResources(this.nav_System, "nav_System");
this.nav_System.BackColor = System.Drawing.Color.Transparent;
this.nav_System.IsLeft = false;
this.nav_System.IsSelected = false;
this.nav_System.Name = "nav_System";
this.nav_System.TitleName = "系统设置";
this.nav_System.Click += new System.EventHandler(this.CommonNaviButton_Click);
//
// nav_Monitor
//
resources.ApplyResources(this.nav_Monitor, "nav_Monitor");
this.nav_Monitor.BackColor = System.Drawing.Color.Transparent;
this.nav_Monitor.IsLeft = true;
this.nav_Monitor.IsSelected = false;
this.nav_Monitor.Name = "nav_Monitor";
this.nav_Monitor.TitleName = "集中监控";
this.nav_Monitor.Click += new System.EventHandler(this.CommonNaviButton_Click);
//
// nav_AlarmLog
//
resources.ApplyResources(this.nav_AlarmLog, "nav_AlarmLog");
this.nav_AlarmLog.BackColor = System.Drawing.Color.Transparent;
this.nav_AlarmLog.IsLeft = true;
this.nav_AlarmLog.IsSelected = false;
this.nav_AlarmLog.Name = "nav_AlarmLog";
this.nav_AlarmLog.TitleName = "日志报警";
this.nav_AlarmLog.Click += new System.EventHandler(this.CommonNaviButton_Click);
//
// nav_User
//
resources.ApplyResources(this.nav_User, "nav_User");
this.nav_User.BackColor = System.Drawing.Color.Transparent;
this.nav_User.IsLeft = false;
this.nav_User.IsSelected = false;
this.nav_User.Name = "nav_User";
this.nav_User.TitleName = "用户管理";
this.nav_User.Click += new System.EventHandler(this.CommonNaviButton_Click);
//
// nav_HistotryData
//
resources.ApplyResources(this.nav_HistotryData, "nav_HistotryData");
this.nav_HistotryData.BackColor = System.Drawing.Color.Transparent;
this.nav_HistotryData.IsLeft = false;
this.nav_HistotryData.IsSelected = false;
this.nav_HistotryData.Name = "nav_HistotryData";
this.nav_HistotryData.TitleName = "数据追溯";
this.nav_HistotryData.Click += new System.EventHandler(this.CommonNaviButton_Click);
//
// btExit
//
resources.ApplyResources(this.btExit, "btExit");
this.btExit.BackgroundImage = global::LargeSquareOne.Properties.Resources.Exit1;
this.btExit.FlatAppearance.BorderSize = 0;
this.btExit.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.btExit.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btExit.Name = "btExit";
this.btExit.UseVisualStyleBackColor = true;
this.btExit.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btExit_MouseDown);
//
// contextMenuStrip1
//
resources.ApplyResources(this.contextMenuStrip1, "contextMenuStrip1");
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.非刷卡模式ToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
//
// 非刷卡模式ToolStripMenuItem
//
resources.ApplyResources(this.非刷卡模式ToolStripMenuItem, "非刷卡模式ToolStripMenuItem");
this.非刷卡模式ToolStripMenuItem.Name = "非刷卡模式ToolStripMenuItem";
this.非刷卡模式ToolStripMenuItem.Click += new System.EventHandler(this.非刷卡模式ToolStripMenuItem_Click);
//
// notifyIcon1
//
resources.ApplyResources(this.notifyIcon1, "notifyIcon1");
this.notifyIcon1.ContextMenuStrip = this.contextMenuStrip2;
this.notifyIcon1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseClick);
//
// contextMenuStrip2
//
resources.ApplyResources(this.contextMenuStrip2, "contextMenuStrip2");
this.contextMenuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.关于,
this.隐藏主界面,
this.显示主界面,
this.退出});
this.contextMenuStrip2.Name = "contextMenuStrip2";
//
// 关于
//
resources.ApplyResources(this.关于, "关于");
this.关于.Name = "关于";
this.关于.Click += new System.EventHandler(this.关于_Click);
//
// 隐藏主界面
//
resources.ApplyResources(this.隐藏主界面, "隐藏主界面");
this.隐藏主界面.Name = "隐藏主界面";
this.隐藏主界面.Click += new System.EventHandler(this.隐藏主界面_Click);
//
// 显示主界面
//
resources.ApplyResources(this.显示主界面, "显示主界面");
this.显示主界面.Name = "显示主界面";
this.显示主界面.Click += new System.EventHandler(this.显示主界面_Click);
//
// 退出
//
resources.ApplyResources(this.退出, "退出");
this.退出.Name = "退出";
this.退出.Click += new System.EventHandler(this.退出_Click);
//
// CorePanel
//
resources.ApplyResources(this.CorePanel, "CorePanel");
this.CorePanel.BackColor = System.Drawing.Color.Transparent;
this.CorePanel.BordeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.CorePanel.BordeWidth = 3;
this.CorePanel.BottomGap = 10;
this.CorePanel.Controls.Add(this.MainPanel);
this.CorePanel.LeftGap = 20;
this.CorePanel.Name = "CorePanel";
this.CorePanel.RightGap = 20;
this.CorePanel.TopGap = 10;
//
// MainPanel
//
resources.ApplyResources(this.MainPanel, "MainPanel");
this.MainPanel.ContextMenuStrip = this.contextMenuStrip1;
this.MainPanel.Name = "MainPanel";
//
// userStateMonitor1
//
this.userStateMonitor1.Timeout = 5000;
//
// FrmMain
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.Controls.Add(this.CorePanel);
this.Controls.Add(this.MiddlePanel);
this.Controls.Add(this.TopPanel);
this.DoubleBuffered = true;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "FrmMain";
this.SizeChanged += new System.EventHandler(this.FrmMain_SizeChanged);
this.MiddlePanel.ResumeLayout(false);
this.MiddlePanel.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
this.panel1.ResumeLayout(false);
this.TopPanel.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panel2.ResumeLayout(false);
this.contextMenuStrip1.ResumeLayout(false);
this.contextMenuStrip2.ResumeLayout(false);
this.CorePanel.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel TopPanel;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Panel MiddlePanel;
private System.Windows.Forms.Button btExit;
private System.Windows.Forms.Label lbl_TitleBar;
private System.Windows.Forms.Label lbl_Title;
private System.Windows.Forms.Button btn_right;
private System.Windows.Forms.Button btn_Left;
private System.Windows.Forms.Label lbl_DateTime;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label lbl_LoginLevel;
private System.Windows.Forms.PictureBox pictureBox2;
private JinYuan.ControlLib.PanelExt CorePanel;
private System.Windows.Forms.Panel MainPanel;
private System.Windows.Forms.Label label4;
private JinYuan.ControlLib.NaviButton2 nav_HistotryData;
private JinYuan.ControlLib.NaviButton2 nav_AlarmLog;
private JinYuan.ControlLib.NaviButton2 nav_User;
private JinYuan.ControlLib.NaviButton2 nav_SetSystem;
private JinYuan.ControlLib.NaviButton2 nav_Monitor;
private JinYuan.ControlLib.NaviButton2 nav_System;
private JinYuan.ControlLib.NaviButton2 nav_DataMonitor;
private JinYuan.ControlLib.NaviButton2 nav_CPK;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Label label21;
private System.Windows.Forms.Label label6;
private SeeSharpTools.JY.GUI.LED led_PLCState;
private System.Windows.Forms.Label lbl_LoginName;
private System.Windows.Forms.Label label3;
private JinYuan.ControlLib.UCRollText ucRollText1;
private System.Windows.Forms.Label label1;
private SeeSharpTools.JY.GUI.LED led_IldeState;
private SeeSharpTools.JY.GUI.LED led_AlarmState;
private SeeSharpTools.JY.GUI.LED led_RunState;
private SeeSharpTools.JY.GUI.LED led_MESState;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label lblMES;
private System.Windows.Forms.Label lblMS;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
private System.Windows.Forms.ToolStripMenuItem 非刷卡模式ToolStripMenuItem;
private JinYuan.ControlLib.UserStateMonitor userStateMonitor1;
private System.Windows.Forms.Button btnScale;
private System.Windows.Forms.NotifyIcon notifyIcon1;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip2;
private System.Windows.Forms.ToolStripMenuItem 关于;
private System.Windows.Forms.ToolStripMenuItem 隐藏主界面;
private System.Windows.Forms.ToolStripMenuItem 显示主界面;
private System.Windows.Forms.ToolStripMenuItem 退出;
private System.Windows.Forms.Button btn_Return;
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+197
View File
@@ -0,0 +1,197 @@
namespace LargeSquareOne
{
partial class FrmMesParamMsgBoxWithAck
{
/// <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()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.btn_Close = new System.Windows.Forms.Button();
this.btn_Sure = new System.Windows.Forms.Button();
this.btn_Cancel = new System.Windows.Forms.Button();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.lblMessage = new System.Windows.Forms.Label();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// btn_Close
//
this.btn_Close.BackColor = System.Drawing.Color.Transparent;
this.btn_Close.FlatAppearance.BorderSize = 0;
this.btn_Close.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Close.Font = new System.Drawing.Font("微软雅黑", 15.5F);
this.btn_Close.ForeColor = System.Drawing.Color.White;
this.btn_Close.Location = new System.Drawing.Point(569, 14);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(32, 32);
this.btn_Close.TabIndex = 2;
this.btn_Close.Text = "X";
this.btn_Close.UseVisualStyleBackColor = false;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// btn_Sure
//
this.btn_Sure.BackColor = System.Drawing.Color.Green;
this.btn_Sure.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Sure.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.btn_Sure.ForeColor = System.Drawing.Color.White;
this.btn_Sure.Location = new System.Drawing.Point(159, 358);
this.btn_Sure.Name = "btn_Sure";
this.btn_Sure.Size = new System.Drawing.Size(101, 36);
this.btn_Sure.TabIndex = 13;
this.btn_Sure.Text = "确定";
this.btn_Sure.UseVisualStyleBackColor = false;
this.btn_Sure.Click += new System.EventHandler(this.btn_Sure_Click);
//
// btn_Cancel
//
this.btn_Cancel.BackColor = System.Drawing.Color.Red;
this.btn_Cancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Cancel.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.btn_Cancel.ForeColor = System.Drawing.Color.White;
this.btn_Cancel.Location = new System.Drawing.Point(329, 358);
this.btn_Cancel.Name = "btn_Cancel";
this.btn_Cancel.Size = new System.Drawing.Size(101, 36);
this.btn_Cancel.TabIndex = 14;
this.btn_Cancel.Text = "取消";
this.btn_Cancel.UseVisualStyleBackColor = false;
this.btn_Cancel.Click += new System.EventHandler(this.btn_Cancel_Click);
//
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
this.pictureBox1.Image = global::LargeSquareOne.Properties.Resources.黄色_警告;
this.pictureBox1.Location = new System.Drawing.Point(12, 12);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(45, 37);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 16;
this.pictureBox1.TabStop = false;
//
// lblMessage
//
this.lblMessage.AutoSize = true;
this.lblMessage.BackColor = System.Drawing.Color.Transparent;
this.lblMessage.Font = new System.Drawing.Font("思源黑体 CN Bold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMessage.ForeColor = System.Drawing.Color.Red;
this.lblMessage.Location = new System.Drawing.Point(63, 20);
this.lblMessage.Name = "lblMessage";
this.lblMessage.Size = new System.Drawing.Size(42, 23);
this.lblMessage.TabIndex = 15;
this.lblMessage.Text = "提示";
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.AllowUserToResizeColumns = false;
this.dataGridView1.AllowUserToResizeRows = false;
this.dataGridView1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32)))));
this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 10F);
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10F);
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2;
this.dataGridView1.EnableHeadersVisualStyles = false;
this.dataGridView1.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(146)))), ((int)(((byte)(235)))));
this.dataGridView1.Location = new System.Drawing.Point(12, 64);
this.dataGridView1.MultiSelect = false;
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.ReadOnly = true;
this.dataGridView1.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 10F);
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
this.dataGridView1.RowHeadersVisible = false;
this.dataGridView1.RowHeadersWidth = 45;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridView1.Size = new System.Drawing.Size(589, 278);
this.dataGridView1.TabIndex = 17;
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
//
// FrmMesParamMsgBoxWithAck
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 19F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(616, 410);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.lblMessage);
this.Controls.Add(this.btn_Cancel);
this.Controls.Add(this.btn_Sure);
this.Controls.Add(this.btn_Close);
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("微软雅黑", 10F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(5);
this.Name = "FrmMesParamMsgBoxWithAck";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "FrmMsgBoxWithAck";
this.Load += new System.EventHandler(this.FrmMesParamMsgBoxWithAck_Load);
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseDown);
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseMove);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.Button btn_Sure;
private System.Windows.Forms.Button btn_Cancel;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label lblMessage;
private System.Windows.Forms.DataGridView dataGridView1;
}
}
@@ -0,0 +1,78 @@
using System;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
namespace LargeSquareOne
{
public partial class FrmMesParamMsgBoxWithAck : Form
{
DataTable dataTable = new DataTable();
string strLblMessage = "";
public FrmMesParamMsgBoxWithAck(DataTable _dataTable, string _strLblMessage)
{
InitializeComponent();
this.TopMost = true;
dataTable = _dataTable;
strLblMessage = _strLblMessage;
this.Text = _strLblMessage;
}
private void btn_Sure_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.OK;
}
private void btn_Cancel_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.No;
this.Close();
}
private void btn_Close_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
}
#region 无边框拖动
private Point mPoint;
private void Panel_MouseDown(object sender, MouseEventArgs e)
{
mPoint = new Point(e.X, e.Y);
}
private void Panel_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
this.Location = new Point(this.Location.X + e.X - mPoint.X, this.Location.Y + e.Y - mPoint.Y);
}
}
#endregion
private void FrmMesParamMsgBoxWithAck_Load(object sender, EventArgs e)
{
dataGridView1.DataSource = dataTable;
lblMessage.Text = strLblMessage;
}
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
//自动编号,与数据无关
Rectangle rectangle = new Rectangle(e.RowBounds.Location.X,
e.RowBounds.Location.Y,
dataGridView1.RowHeadersWidth - 4,
e.RowBounds.Height);
TextRenderer.DrawText(e.Graphics,
(e.RowIndex + 1).ToString(),
dataGridView1.RowHeadersDefaultCellStyle.Font,
rectangle,
dataGridView1.RowHeadersDefaultCellStyle.ForeColor,
TextFormatFlags.VerticalCenter | TextFormatFlags.Right);
}
}
}
@@ -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>
+774
View File
@@ -0,0 +1,774 @@
namespace LargeSquareOne
{
partial class FrmMonitor
{
/// <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.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMonitor));
System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend();
System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series();
System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend();
System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series();
JinYuan.Models.ElectricEnergy electricEnergy1 = new JinYuan.Models.ElectricEnergy();
System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea3 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
System.Windows.Forms.DataVisualization.Charting.Legend legend3 = new System.Windows.Forms.DataVisualization.Charting.Legend();
System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.MainPanel = new JinYuan.ControlLib.PanelEnhanced();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.ucPanel_900_4502 = new JinYuan.ControlLib.ucPanel_900_450();
this.chartNgShow = new System.Windows.Forms.DataVisualization.Charting.Chart();
this.panel1 = new System.Windows.Forms.Panel();
this.ucPanel_900_4501 = new JinYuan.ControlLib.ucPanel_900_450();
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.panel5 = new System.Windows.Forms.Panel();
this.proUtilizationRate = new JinYuan.ControlLib.ProcessEllipse();
this.label6 = new System.Windows.Forms.Label();
this.proPPM = new JinYuan.ControlLib.ProcessEllipse();
this.proTotalQty = new JinYuan.ControlLib.ArrTotalQty();
this.label3 = new System.Windows.Forms.Label();
this.proOKRatio = new HML.ArcProgress();
this.label4 = new System.Windows.Forms.Label();
this.proOKQty = new JinYuan.ControlLib.ProcessEllipse();
this.label5 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.titleRunTime = new JinYuan.ControlLib.TitleTime();
this.titleEqp_code = new JinYuan.ControlLib.TitleTime();
this.titleFactory_code = new JinYuan.ControlLib.TitleTime();
this.titleModeName = new JinYuan.ControlLib.TitleTime();
this.titleLine_No = new JinYuan.ControlLib.TitleTime();
this.titleStartTime = new JinYuan.ControlLib.TitleTime();
this.ucPanel_900_4505 = new JinYuan.ControlLib.ucPanel_900_450();
this.chartAlarmData = new System.Windows.Forms.DataVisualization.Charting.Chart();
this.ucPanel_900_4503 = new JinYuan.ControlLib.ucPanel_900_450();
this.ucElectricityMeterV1 = new JinYuan.ControlLib.UCElectricityMeterV();
this.ucPanel12Hour = new JinYuan.ControlLib.ucPanel_900_450();
this.Chart12HourTotal = new System.Windows.Forms.DataVisualization.Charting.Chart();
this.MainPanel.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.ucPanel_900_4502.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.chartNgShow)).BeginInit();
this.panel1.SuspendLayout();
this.ucPanel_900_4501.SuspendLayout();
this.tableLayoutPanel3.SuspendLayout();
this.panel5.SuspendLayout();
this.ucPanel_900_4505.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.chartAlarmData)).BeginInit();
this.ucPanel_900_4503.SuspendLayout();
this.ucPanel12Hour.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.Chart12HourTotal)).BeginInit();
this.SuspendLayout();
//
// imageList1
//
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
this.imageList1.Images.SetKeyName(0, "info.png");
this.imageList1.Images.SetKeyName(1, "warning.png");
this.imageList1.Images.SetKeyName(2, "error.png");
//
// MainPanel
//
this.MainPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32)))));
this.MainPanel.Controls.Add(this.tableLayoutPanel1);
this.MainPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.MainPanel.Location = new System.Drawing.Point(0, 0);
this.MainPanel.Margin = new System.Windows.Forms.Padding(0);
this.MainPanel.Name = "MainPanel";
this.MainPanel.Size = new System.Drawing.Size(1370, 772);
this.MainPanel.TabIndex = 0;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.tableLayoutPanel1.ColumnCount = 3;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33334F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33334F));
this.tableLayoutPanel1.Controls.Add(this.ucPanel_900_4502, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.panel1, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.ucPanel_900_4505, 2, 0);
this.tableLayoutPanel1.Controls.Add(this.ucPanel_900_4503, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.ucPanel12Hour, 0, 2);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 4;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.16405F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 34.86128F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.28468F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 32.56936F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1370, 772);
this.tableLayoutPanel1.TabIndex = 37;
//
// ucPanel_900_4502
//
this.ucPanel_900_4502.BackColor = System.Drawing.Color.Transparent;
this.ucPanel_900_4502.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucPanel_900_4502.BackgroundImage")));
this.ucPanel_900_4502.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ucPanel_900_4502.Controls.Add(this.chartNgShow);
this.ucPanel_900_4502.Dock = System.Windows.Forms.DockStyle.Fill;
this.ucPanel_900_4502.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucPanel_900_4502.Location = new System.Drawing.Point(4, 129);
this.ucPanel_900_4502.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucPanel_900_4502.Name = "ucPanel_900_4502";
this.ucPanel_900_4502.Size = new System.Drawing.Size(448, 259);
this.ucPanel_900_4502.TabIndex = 41;
this.ucPanel_900_4502.Title = "";
this.ucPanel_900_4502.TitleVisible = false;
//
// chartNgShow
//
this.chartNgShow.BackColor = System.Drawing.Color.Transparent;
this.chartNgShow.BorderlineColor = System.Drawing.Color.Blue;
chartArea1.AxisX.LabelStyle.ForeColor = System.Drawing.Color.White;
chartArea1.AxisX.LineColor = System.Drawing.Color.White;
chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.Transparent;
chartArea1.AxisX.MajorTickMark.LineColor = System.Drawing.Color.White;
chartArea1.AxisX.TitleFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
chartArea1.AxisX.TitleForeColor = System.Drawing.Color.White;
chartArea1.AxisY.LabelStyle.ForeColor = System.Drawing.Color.White;
chartArea1.AxisY.LineColor = System.Drawing.Color.White;
chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.Transparent;
chartArea1.AxisY.MajorTickMark.LineColor = System.Drawing.Color.White;
chartArea1.AxisY.TitleFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
chartArea1.AxisY.TitleForeColor = System.Drawing.Color.White;
chartArea1.BackColor = System.Drawing.Color.Transparent;
chartArea1.BorderColor = System.Drawing.Color.Empty;
chartArea1.Name = "ChartArea1";
this.chartNgShow.ChartAreas.Add(chartArea1);
legend1.BackColor = System.Drawing.Color.Transparent;
legend1.Enabled = false;
legend1.ForeColor = System.Drawing.Color.White;
legend1.IsEquallySpacedItems = true;
legend1.Name = "Legend1";
this.chartNgShow.Legends.Add(legend1);
this.chartNgShow.Location = new System.Drawing.Point(0, 0);
this.chartNgShow.Name = "chartNgShow";
this.chartNgShow.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.None;
this.chartNgShow.PaletteCustomColors = new System.Drawing.Color[] {
System.Drawing.Color.DarkTurquoise,
System.Drawing.Color.PaleGoldenrod,
System.Drawing.Color.Green};
series1.ChartArea = "ChartArea1";
series1.IsXValueIndexed = true;
series1.Legend = "Legend1";
series1.Name = "Series1";
this.chartNgShow.Series.Add(series1);
this.chartNgShow.Size = new System.Drawing.Size(616, 279);
this.chartNgShow.TabIndex = 5;
this.chartNgShow.Text = "chart1";
//
// panel1
//
this.panel1.Controls.Add(this.ucPanel_900_4501);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(459, 3);
this.panel1.Name = "panel1";
this.tableLayoutPanel1.SetRowSpan(this.panel1, 2);
this.panel1.Size = new System.Drawing.Size(450, 387);
this.panel1.TabIndex = 40;
//
// ucPanel_900_4501
//
this.ucPanel_900_4501.BackColor = System.Drawing.Color.Transparent;
this.ucPanel_900_4501.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucPanel_900_4501.BackgroundImage")));
this.ucPanel_900_4501.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ucPanel_900_4501.Controls.Add(this.tableLayoutPanel3);
this.ucPanel_900_4501.Dock = System.Windows.Forms.DockStyle.Fill;
this.ucPanel_900_4501.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucPanel_900_4501.Location = new System.Drawing.Point(0, 0);
this.ucPanel_900_4501.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucPanel_900_4501.Name = "ucPanel_900_4501";
this.ucPanel_900_4501.Size = new System.Drawing.Size(450, 387);
this.ucPanel_900_4501.TabIndex = 0;
this.ucPanel_900_4501.Title = "";
this.ucPanel_900_4501.TitleVisible = false;
//
// tableLayoutPanel3
//
this.tableLayoutPanel3.ColumnCount = 2;
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 51.13269F));
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 48.86731F));
this.tableLayoutPanel3.Controls.Add(this.panel5, 0, 5);
this.tableLayoutPanel3.Controls.Add(this.titleRunTime, 0, 3);
this.tableLayoutPanel3.Controls.Add(this.titleEqp_code, 1, 3);
this.tableLayoutPanel3.Controls.Add(this.titleFactory_code, 1, 1);
this.tableLayoutPanel3.Controls.Add(this.titleModeName, 0, 1);
this.tableLayoutPanel3.Controls.Add(this.titleLine_No, 1, 2);
this.tableLayoutPanel3.Controls.Add(this.titleStartTime, 0, 2);
this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel3.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel3.Name = "tableLayoutPanel3";
this.tableLayoutPanel3.RowCount = 8;
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 8F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 8F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 281F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 51F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 54F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(450, 387);
this.tableLayoutPanel3.TabIndex = 0;
//
// panel5
//
this.panel5.BackgroundImage = global::LargeSquareOne.Properties.Resources.组_178_拷贝1;
this.panel5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.tableLayoutPanel3.SetColumnSpan(this.panel5, 2);
this.panel5.Controls.Add(this.proUtilizationRate);
this.panel5.Controls.Add(this.label6);
this.panel5.Controls.Add(this.proPPM);
this.panel5.Controls.Add(this.proTotalQty);
this.panel5.Controls.Add(this.label3);
this.panel5.Controls.Add(this.proOKRatio);
this.panel5.Controls.Add(this.label4);
this.panel5.Controls.Add(this.proOKQty);
this.panel5.Controls.Add(this.label5);
this.panel5.Controls.Add(this.label2);
this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel5.Location = new System.Drawing.Point(3, 109);
this.panel5.Name = "panel5";
this.tableLayoutPanel3.SetRowSpan(this.panel5, 2);
this.panel5.Size = new System.Drawing.Size(444, 326);
this.panel5.TabIndex = 4;
//
// proUtilizationRate
//
this.proUtilizationRate.BackColor = System.Drawing.Color.Transparent;
this.proUtilizationRate.BackEllipseColor = System.Drawing.Color.Transparent;
this.proUtilizationRate.CoreEllipseColor = System.Drawing.Color.Transparent;
this.proUtilizationRate.FloatValue = 0F;
this.proUtilizationRate.IntValue = 0;
this.proUtilizationRate.IsShowCoreEllipseBorder = true;
this.proUtilizationRate.Location = new System.Drawing.Point(485, 66);
this.proUtilizationRate.Margin = new System.Windows.Forms.Padding(2);
this.proUtilizationRate.MaxValue = 100;
this.proUtilizationRate.Name = "proUtilizationRate";
this.proUtilizationRate.ShowStyleType = JinYuan.ControlLib.ShowStyleType.Ring;
this.proUtilizationRate.ShowType = JinYuan.ControlLib.ShowType.稼动率;
this.proUtilizationRate.Size = new System.Drawing.Size(100, 100);
this.proUtilizationRate.TabIndex = 22;
this.proUtilizationRate.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(128)))));
this.proUtilizationRate.ValueFloatOrInt = JinYuan.ControlLib.ValueFloatOrInt.Float;
this.proUtilizationRate.ValueMargin = 2;
this.proUtilizationRate.ValueType = JinYuan.ControlLib.ValueType.Percent;
this.proUtilizationRate.ValueWidth = 10;
//
// label6
//
this.label6.BackColor = System.Drawing.Color.Transparent;
this.label6.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Bold);
this.label6.ForeColor = System.Drawing.Color.White;
this.label6.Location = new System.Drawing.Point(397, 5);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(87, 25);
this.label6.TabIndex = 32;
this.label6.Text = "PPM";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// proPPM
//
this.proPPM.BackColor = System.Drawing.Color.Transparent;
this.proPPM.BackEllipseColor = System.Drawing.Color.Transparent;
this.proPPM.CoreEllipseColor = System.Drawing.Color.Transparent;
this.proPPM.FloatValue = 0F;
this.proPPM.IntValue = 0;
this.proPPM.IsShowCoreEllipseBorder = true;
this.proPPM.Location = new System.Drawing.Point(387, 23);
this.proPPM.MaxValue = 50000;
this.proPPM.Name = "proPPM";
this.proPPM.ShowStyleType = JinYuan.ControlLib.ShowStyleType.Ring;
this.proPPM.ShowType = JinYuan.ControlLib.ShowType.生产数;
this.proPPM.Size = new System.Drawing.Size(102, 112);
this.proPPM.TabIndex = 35;
this.proPPM.ValueColor = System.Drawing.Color.Aquamarine;
this.proPPM.ValueFloatOrInt = JinYuan.ControlLib.ValueFloatOrInt.Int;
this.proPPM.ValueMargin = 1;
this.proPPM.ValueType = JinYuan.ControlLib.ValueType.Absolute;
this.proPPM.ValueWidth = 10;
//
// proTotalQty
//
this.proTotalQty.BackColor = System.Drawing.Color.Transparent;
this.proTotalQty.Location = new System.Drawing.Point(130, 254);
this.proTotalQty.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.proTotalQty.Name = "proTotalQty";
this.proTotalQty.Size = new System.Drawing.Size(361, 65);
this.proTotalQty.TabIndex = 31;
this.proTotalQty.Tag = "生产总数";
this.proTotalQty.TotalValue = 0;
//
// label3
//
this.label3.BackColor = System.Drawing.Color.Transparent;
this.label3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Bold);
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(109, 9);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(103, 37);
this.label3.TabIndex = 26;
this.label3.Text = "良品总数";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// proOKRatio
//
this.proOKRatio.AnimationEnabled = true;
this.proOKRatio.ArcAngleSize = 360;
this.proOKRatio.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
this.proOKRatio.ForeColor = System.Drawing.Color.White;
this.proOKRatio.Location = new System.Drawing.Point(33, 83);
this.proOKRatio.Name = "proOKRatio";
this.proOKRatio.Size = new System.Drawing.Size(80, 80);
this.proOKRatio.TabIndex = 34;
this.proOKRatio.ThicknessProportion = 10F;
this.proOKRatio.TotalBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
this.proOKRatio.ValueBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
//
// label4
//
this.label4.BackColor = System.Drawing.Color.Transparent;
this.label4.Font = new System.Drawing.Font("微软雅黑", 20F, System.Drawing.FontStyle.Bold);
this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Location = new System.Drawing.Point(245, 214);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(134, 44);
this.label4.TabIndex = 28;
this.label4.Text = "生产总数";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// proOKQty
//
this.proOKQty.BackColor = System.Drawing.Color.Transparent;
this.proOKQty.BackEllipseColor = System.Drawing.Color.Transparent;
this.proOKQty.CoreEllipseColor = System.Drawing.Color.Transparent;
this.proOKQty.FloatValue = 0F;
this.proOKQty.IntValue = 0;
this.proOKQty.IsShowCoreEllipseBorder = true;
this.proOKQty.Location = new System.Drawing.Point(110, 37);
this.proOKQty.MaxValue = 50000;
this.proOKQty.Name = "proOKQty";
this.proOKQty.ShowStyleType = JinYuan.ControlLib.ShowStyleType.Ring;
this.proOKQty.ShowType = JinYuan.ControlLib.ShowType.生产数;
this.proOKQty.Size = new System.Drawing.Size(100, 100);
this.proOKQty.TabIndex = 4;
this.proOKQty.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(128)))));
this.proOKQty.ValueFloatOrInt = JinYuan.ControlLib.ValueFloatOrInt.Int;
this.proOKQty.ValueMargin = 1;
this.proOKQty.ValueType = JinYuan.ControlLib.ValueType.Absolute;
this.proOKQty.ValueWidth = 10;
//
// label5
//
this.label5.BackColor = System.Drawing.Color.Transparent;
this.label5.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Bold);
this.label5.ForeColor = System.Drawing.Color.White;
this.label5.Location = new System.Drawing.Point(33, 49);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(78, 31);
this.label5.TabIndex = 30;
this.label5.Text = "优率";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label2
//
this.label2.BackColor = System.Drawing.Color.Transparent;
this.label2.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Bold);
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(485, 26);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(107, 46);
this.label2.TabIndex = 25;
this.label2.Text = "稼动率";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// titleRunTime
//
this.titleRunTime.BackColor = System.Drawing.Color.Transparent;
this.titleRunTime.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("titleRunTime.BackgroundImage")));
this.titleRunTime.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.titleRunTime.Dock = System.Windows.Forms.DockStyle.Fill;
this.titleRunTime.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.titleRunTime.Location = new System.Drawing.Point(4, 73);
this.titleRunTime.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.titleRunTime.Name = "titleRunTime";
this.titleRunTime.Size = new System.Drawing.Size(222, 20);
this.titleRunTime.TabIndex = 1;
this.titleRunTime.Title = "2023/08/17 10:10:10";
this.titleRunTime.TitleName = "开机时间";
this.titleRunTime.TitleNameForColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(233)))), ((int)(((byte)(255)))));
this.titleRunTime.TtfPath = "";
//
// titleEqp_code
//
this.titleEqp_code.BackColor = System.Drawing.Color.Transparent;
this.titleEqp_code.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("titleEqp_code.BackgroundImage")));
this.titleEqp_code.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.titleEqp_code.Dock = System.Windows.Forms.DockStyle.Fill;
this.titleEqp_code.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.titleEqp_code.Location = new System.Drawing.Point(234, 73);
this.titleEqp_code.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.titleEqp_code.Name = "titleEqp_code";
this.titleEqp_code.Size = new System.Drawing.Size(212, 20);
this.titleEqp_code.TabIndex = 5;
this.titleEqp_code.Title = "602VIM01";
this.titleEqp_code.TitleName = "设备编号";
this.titleEqp_code.TitleNameForColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(233)))), ((int)(((byte)(255)))));
this.titleEqp_code.TtfPath = "";
//
// titleFactory_code
//
this.titleFactory_code.BackColor = System.Drawing.Color.Transparent;
this.titleFactory_code.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("titleFactory_code.BackgroundImage")));
this.titleFactory_code.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.titleFactory_code.Dock = System.Windows.Forms.DockStyle.Fill;
this.titleFactory_code.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.titleFactory_code.Location = new System.Drawing.Point(234, 13);
this.titleFactory_code.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.titleFactory_code.Name = "titleFactory_code";
this.titleFactory_code.Size = new System.Drawing.Size(212, 20);
this.titleFactory_code.TabIndex = 2;
this.titleFactory_code.Title = "602VIE01";
this.titleFactory_code.TitleName = "工厂代号";
this.titleFactory_code.TitleNameForColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(233)))), ((int)(((byte)(255)))));
this.titleFactory_code.TtfPath = "";
//
// titleModeName
//
this.titleModeName.BackColor = System.Drawing.Color.Transparent;
this.titleModeName.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("titleModeName.BackgroundImage")));
this.titleModeName.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.titleModeName.Dock = System.Windows.Forms.DockStyle.Fill;
this.titleModeName.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.titleModeName.Location = new System.Drawing.Point(4, 13);
this.titleModeName.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.titleModeName.Name = "titleModeName";
this.titleModeName.Size = new System.Drawing.Size(222, 20);
this.titleModeName.TabIndex = 8;
this.titleModeName.Title = "G11";
this.titleModeName.TitleName = "生产型号";
this.titleModeName.TitleNameForColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(233)))), ((int)(((byte)(255)))));
this.titleModeName.TtfPath = "";
//
// titleLine_No
//
this.titleLine_No.BackColor = System.Drawing.Color.Transparent;
this.titleLine_No.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("titleLine_No.BackgroundImage")));
this.titleLine_No.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.titleLine_No.Dock = System.Windows.Forms.DockStyle.Fill;
this.titleLine_No.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.titleLine_No.Location = new System.Drawing.Point(234, 43);
this.titleLine_No.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.titleLine_No.Name = "titleLine_No";
this.titleLine_No.Size = new System.Drawing.Size(212, 20);
this.titleLine_No.TabIndex = 3;
this.titleLine_No.Title = "14J-ZZ-L1";
this.titleLine_No.TitleName = "线体编号";
this.titleLine_No.TitleNameForColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(233)))), ((int)(((byte)(255)))));
this.titleLine_No.TtfPath = "";
//
// titleStartTime
//
this.titleStartTime.BackColor = System.Drawing.Color.Transparent;
this.titleStartTime.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("titleStartTime.BackgroundImage")));
this.titleStartTime.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.titleStartTime.Dock = System.Windows.Forms.DockStyle.Fill;
this.titleStartTime.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.titleStartTime.Location = new System.Drawing.Point(4, 43);
this.titleStartTime.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.titleStartTime.Name = "titleStartTime";
this.titleStartTime.Size = new System.Drawing.Size(222, 20);
this.titleStartTime.TabIndex = 0;
this.titleStartTime.Title = "2023/08/17 10:10:10";
this.titleStartTime.TitleName = "运行时间";
this.titleStartTime.TitleNameForColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(233)))), ((int)(((byte)(255)))));
this.titleStartTime.TtfPath = "";
this.titleStartTime.Load += new System.EventHandler(this.titleStartTime_Load);
//
// ucPanel_900_4505
//
this.ucPanel_900_4505.BackColor = System.Drawing.Color.Transparent;
this.ucPanel_900_4505.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucPanel_900_4505.BackgroundImage")));
this.ucPanel_900_4505.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ucPanel_900_4505.Controls.Add(this.chartAlarmData);
this.ucPanel_900_4505.Dock = System.Windows.Forms.DockStyle.Fill;
this.ucPanel_900_4505.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucPanel_900_4505.Location = new System.Drawing.Point(916, 5);
this.ucPanel_900_4505.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucPanel_900_4505.Name = "ucPanel_900_4505";
this.tableLayoutPanel1.SetRowSpan(this.ucPanel_900_4505, 2);
this.ucPanel_900_4505.Size = new System.Drawing.Size(450, 383);
this.ucPanel_900_4505.TabIndex = 39;
this.ucPanel_900_4505.Title = "";
this.ucPanel_900_4505.TitleVisible = false;
//
// chartAlarmData
//
this.chartAlarmData.BackColor = System.Drawing.Color.Transparent;
this.chartAlarmData.BorderlineColor = System.Drawing.Color.Blue;
chartArea2.AxisX.LabelStyle.ForeColor = System.Drawing.Color.White;
chartArea2.AxisX.LineColor = System.Drawing.Color.White;
chartArea2.AxisX.MajorGrid.LineColor = System.Drawing.Color.Transparent;
chartArea2.AxisX.MajorTickMark.LineColor = System.Drawing.Color.White;
chartArea2.AxisX.ScaleBreakStyle.LineColor = System.Drawing.Color.White;
chartArea2.AxisX.TitleFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
chartArea2.AxisX.TitleForeColor = System.Drawing.Color.White;
chartArea2.AxisY.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount;
chartArea2.AxisY.LabelStyle.ForeColor = System.Drawing.Color.White;
chartArea2.AxisY.LineColor = System.Drawing.Color.White;
chartArea2.AxisY.MajorGrid.LineColor = System.Drawing.Color.Transparent;
chartArea2.AxisY.MajorTickMark.LineColor = System.Drawing.Color.White;
chartArea2.AxisY.MinorGrid.LineColor = System.Drawing.Color.White;
chartArea2.AxisY.TitleFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
chartArea2.AxisY.TitleForeColor = System.Drawing.Color.White;
chartArea2.BackColor = System.Drawing.Color.Transparent;
chartArea2.BorderColor = System.Drawing.Color.Empty;
chartArea2.BorderWidth = 2;
chartArea2.Name = "ChartArea1";
this.chartAlarmData.ChartAreas.Add(chartArea2);
this.chartAlarmData.Dock = System.Windows.Forms.DockStyle.Fill;
legend2.BackColor = System.Drawing.Color.Transparent;
legend2.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Top;
legend2.Enabled = false;
legend2.ForeColor = System.Drawing.Color.White;
legend2.IsEquallySpacedItems = true;
legend2.Name = "Legend1";
this.chartAlarmData.Legends.Add(legend2);
this.chartAlarmData.Location = new System.Drawing.Point(0, 0);
this.chartAlarmData.Name = "chartAlarmData";
this.chartAlarmData.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.None;
this.chartAlarmData.PaletteCustomColors = new System.Drawing.Color[] {
System.Drawing.Color.DarkTurquoise};
series2.ChartArea = "ChartArea1";
series2.IsXValueIndexed = true;
series2.Legend = "Legend1";
series2.Name = "Series1";
this.chartAlarmData.Series.Add(series2);
this.chartAlarmData.Size = new System.Drawing.Size(450, 383);
this.chartAlarmData.TabIndex = 6;
this.chartAlarmData.Text = "chart1";
//
// ucPanel_900_4503
//
this.ucPanel_900_4503.BackColor = System.Drawing.Color.Transparent;
this.ucPanel_900_4503.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucPanel_900_4503.BackgroundImage")));
this.ucPanel_900_4503.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ucPanel_900_4503.Controls.Add(this.ucElectricityMeterV1);
this.ucPanel_900_4503.Dock = System.Windows.Forms.DockStyle.Fill;
this.ucPanel_900_4503.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucPanel_900_4503.Location = new System.Drawing.Point(4, 5);
this.ucPanel_900_4503.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucPanel_900_4503.Name = "ucPanel_900_4503";
this.ucPanel_900_4503.Size = new System.Drawing.Size(448, 114);
this.ucPanel_900_4503.TabIndex = 0;
this.ucPanel_900_4503.Title = "";
this.ucPanel_900_4503.TitleVisible = false;
//
// ucElectricityMeterV1
//
this.ucElectricityMeterV1.BackColor = System.Drawing.Color.Transparent;
this.ucElectricityMeterV1.Dock = System.Windows.Forms.DockStyle.Fill;
electricEnergy1.AccumulatedElectricity = null;
electricEnergy1.ActivePower = null;
electricEnergy1.ct = null;
electricEnergy1.PhaseCurrentA = null;
electricEnergy1.PhaseCurrentB = null;
electricEnergy1.PhaseCurrentC = null;
electricEnergy1.PhasePowerA = null;
electricEnergy1.PhasePowerB = null;
electricEnergy1.PhasePowerC = null;
electricEnergy1.PhaseVoltageA = null;
electricEnergy1.PhaseVoltageB = null;
electricEnergy1.PhaseVoltageC = null;
electricEnergy1.PowerFactor = null;
electricEnergy1.pt = null;
this.ucElectricityMeterV1.ElectricEnergy = electricEnergy1;
this.ucElectricityMeterV1.Font = new System.Drawing.Font("微软雅黑", 7.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucElectricityMeterV1.Location = new System.Drawing.Point(0, 0);
this.ucElectricityMeterV1.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
this.ucElectricityMeterV1.Name = "ucElectricityMeterV1";
this.ucElectricityMeterV1.ProjectNameForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(233)))), ((int)(((byte)(255)))));
this.ucElectricityMeterV1.ProjectUintForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(233)))), ((int)(((byte)(255)))));
this.ucElectricityMeterV1.Size = new System.Drawing.Size(448, 114);
this.ucElectricityMeterV1.TabIndex = 0;
this.ucElectricityMeterV1.TitleName = "智能电表(设备)";
//
// ucPanel12Hour
//
this.ucPanel12Hour.BackColor = System.Drawing.Color.Transparent;
this.ucPanel12Hour.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucPanel12Hour.BackgroundImage")));
this.ucPanel12Hour.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.tableLayoutPanel1.SetColumnSpan(this.ucPanel12Hour, 3);
this.ucPanel12Hour.Controls.Add(this.Chart12HourTotal);
this.ucPanel12Hour.Dock = System.Windows.Forms.DockStyle.Fill;
this.ucPanel12Hour.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucPanel12Hour.Location = new System.Drawing.Point(4, 398);
this.ucPanel12Hour.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucPanel12Hour.Name = "ucPanel12Hour";
this.tableLayoutPanel1.SetRowSpan(this.ucPanel12Hour, 2);
this.ucPanel12Hour.Size = new System.Drawing.Size(1362, 369);
this.ucPanel12Hour.TabIndex = 4;
this.ucPanel12Hour.Title = "当前(白班)产能";
this.ucPanel12Hour.TitleVisible = false;
//
// Chart12HourTotal
//
this.Chart12HourTotal.BackColor = System.Drawing.Color.Transparent;
this.Chart12HourTotal.BorderlineColor = System.Drawing.Color.Blue;
chartArea3.AxisX.LabelStyle.ForeColor = System.Drawing.Color.White;
chartArea3.AxisX.LineColor = System.Drawing.Color.White;
chartArea3.AxisX.MajorGrid.LineColor = System.Drawing.Color.Transparent;
chartArea3.AxisX.MajorTickMark.LineColor = System.Drawing.Color.White;
chartArea3.AxisX.MinorGrid.LineColor = System.Drawing.Color.Transparent;
chartArea3.AxisX.MinorTickMark.LineColor = System.Drawing.Color.Transparent;
chartArea3.AxisX.TitleFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
chartArea3.AxisX.TitleForeColor = System.Drawing.Color.White;
chartArea3.AxisX2.LabelStyle.ForeColor = System.Drawing.Color.White;
chartArea3.AxisX2.MajorGrid.LineColor = System.Drawing.Color.Transparent;
chartArea3.AxisX2.MajorTickMark.LineColor = System.Drawing.Color.White;
chartArea3.AxisY.LabelStyle.ForeColor = System.Drawing.Color.White;
chartArea3.AxisY.LineColor = System.Drawing.Color.White;
chartArea3.AxisY.MajorGrid.LineColor = System.Drawing.Color.Transparent;
chartArea3.AxisY.MajorTickMark.LineColor = System.Drawing.Color.White;
chartArea3.AxisY.MinorGrid.LineColor = System.Drawing.Color.Transparent;
chartArea3.AxisY.MinorTickMark.LineColor = System.Drawing.Color.Transparent;
chartArea3.AxisY.TitleFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
chartArea3.AxisY.TitleForeColor = System.Drawing.Color.White;
chartArea3.AxisY2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.True;
chartArea3.AxisY2.LabelStyle.ForeColor = System.Drawing.Color.White;
chartArea3.AxisY2.LineColor = System.Drawing.Color.White;
chartArea3.AxisY2.MajorGrid.LineColor = System.Drawing.Color.Transparent;
chartArea3.AxisY2.MajorTickMark.LineColor = System.Drawing.Color.White;
chartArea3.AxisY2.ScaleBreakStyle.LineColor = System.Drawing.Color.White;
chartArea3.AxisY2.TitleFont = new System.Drawing.Font("微软雅黑", 9F);
chartArea3.AxisY2.TitleForeColor = System.Drawing.Color.White;
chartArea3.BackColor = System.Drawing.Color.Transparent;
chartArea3.BorderColor = System.Drawing.Color.Empty;
chartArea3.Name = "ChartArea1";
this.Chart12HourTotal.ChartAreas.Add(chartArea3);
this.Chart12HourTotal.Dock = System.Windows.Forms.DockStyle.Fill;
legend3.BackColor = System.Drawing.Color.Transparent;
legend3.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Top;
legend3.ForeColor = System.Drawing.Color.White;
legend3.Name = "Legend1";
this.Chart12HourTotal.Legends.Add(legend3);
this.Chart12HourTotal.Location = new System.Drawing.Point(0, 0);
this.Chart12HourTotal.Margin = new System.Windows.Forms.Padding(0);
this.Chart12HourTotal.Name = "Chart12HourTotal";
this.Chart12HourTotal.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Fire;
this.Chart12HourTotal.PaletteCustomColors = new System.Drawing.Color[] {
System.Drawing.Color.DarkTurquoise,
System.Drawing.Color.PaleGoldenrod,
System.Drawing.Color.Green};
series3.ChartArea = "ChartArea1";
series3.IsXValueIndexed = true;
series3.Legend = "Legend1";
series3.Name = "Series1";
this.Chart12HourTotal.Series.Add(series3);
this.Chart12HourTotal.Size = new System.Drawing.Size(1362, 369);
this.Chart12HourTotal.TabIndex = 4;
this.Chart12HourTotal.Text = "chart1";
//
// FrmMonitor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(41)))), ((int)(((byte)(96)))));
this.ClientSize = new System.Drawing.Size(1370, 772);
this.ControlBox = false;
this.Controls.Add(this.MainPanel);
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("微软雅黑", 10.5F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(5);
this.Name = "FrmMonitor";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.Text = "集中监控";
this.Load += new System.EventHandler(this.FrmMonitor_Load);
this.MainPanel.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
this.ucPanel_900_4502.ResumeLayout(false);
this.ucPanel_900_4502.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.chartNgShow)).EndInit();
this.panel1.ResumeLayout(false);
this.ucPanel_900_4501.ResumeLayout(false);
this.ucPanel_900_4501.PerformLayout();
this.tableLayoutPanel3.ResumeLayout(false);
this.panel5.ResumeLayout(false);
this.ucPanel_900_4505.ResumeLayout(false);
this.ucPanel_900_4505.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.chartAlarmData)).EndInit();
this.ucPanel_900_4503.ResumeLayout(false);
this.ucPanel_900_4503.PerformLayout();
this.ucPanel12Hour.ResumeLayout(false);
this.ucPanel12Hour.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.Chart12HourTotal)).EndInit();
this.ResumeLayout(false);
}
#endregion
private JinYuan.ControlLib.PanelEnhanced MainPanel;
private System.Windows.Forms.ImageList imageList1;
private JinYuan.ControlLib.ProcessEllipse proUtilizationRate;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private JinYuan.ControlLib.ucPanel_900_450 ucPanel_900_4503;
private JinYuan.ControlLib.ucPanel_900_450 ucPanel12Hour;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Panel panel5;
private HML.ArcProgress proOKRatio;
internal JinYuan.ControlLib.ArrTotalQty proTotalQty;
private JinYuan.ControlLib.ProcessEllipse proOKQty;
private JinYuan.ControlLib.ucPanel_900_450 ucPanel_900_4505;
private JinYuan.ControlLib.TitleTime titleEqp_code;
private JinYuan.ControlLib.TitleTime titleFactory_code;
private JinYuan.ControlLib.TitleTime titleLine_No;
private JinYuan.ControlLib.TitleTime titleStartTime;
private JinYuan.ControlLib.TitleTime titleRunTime;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
private JinYuan.ControlLib.ucPanel_900_450 ucPanel_900_4501;
private JinYuan.ControlLib.ucPanel_900_450 ucPanel_900_4502;
private JinYuan.ControlLib.UCElectricityMeterV ucElectricityMeterV1;
private JinYuan.ControlLib.TitleTime titleModeName;
private System.Windows.Forms.DataVisualization.Charting.Chart chartAlarmData;
private System.Windows.Forms.DataVisualization.Charting.Chart Chart12HourTotal;
private System.Windows.Forms.DataVisualization.Charting.Chart chartNgShow;
private JinYuan.ControlLib.ProcessEllipse proPPM;
}
}
+336
View File
@@ -0,0 +1,336 @@
using JinYuan.Helper;
using JinYuan.VirtualDataLibrary;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Text;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Windows.Forms.DataVisualization.Charting;
namespace LargeSquareOne
{
public partial class FrmMonitor : Form
{
private static object uiLock = new object();
/// <summary>
/// 窗体实例
/// </summary>
private static FrmMonitor _instance;
public static FrmMonitor Instance
{
get
{
lock (uiLock)
{
if (_instance == null)
{
_instance = new FrmMonitor();
}
return _instance;
}
}
}
public FrmMonitor()
{
InitializeComponent();
////设置控件样式,去除缓冲
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true);
this.SetStyle(ControlStyles.ResizeRedraw, true);
this.SetStyle(ControlStyles.Selectable, true);
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
#region 字体加载
// 加载字体文件
font.AddFontFile(Environment.CurrentDirectory + "\\Assts\\Fonts\\FZY4JW.ttf");
//定义成新的字体对象
FontFamily myFontFamily = new FontFamily(font.Families[0].Name, font);
myFont = new Font(myFontFamily, 20, FontStyle.Bold);
//将字体显示到控件
//longTitleStyle21.Font = myFont;
#endregion
this.FormClosing += (sender, e) =>
{
this.m_RefreshTimer?.Dispose();
//this.m_RefreshTimerWeeding?.Dispose();
};
}
#region 静止闪烁
protected override void WndProc(ref Message m)
{
if (m.Msg == 0x0014) // 禁掉清除背景消息
return;
base.WndProc(ref m);
}
#endregion
PrivateFontCollection font = new PrivateFontCollection();
Font myFont;
/// <summary>
/// 按钮状态委托
/// </summary>
/// <param name="time"></param>
private delegate void ShowChatHandler();
//定时存储定时器
private System.Threading.Timer m_RefreshTimer;
private void FrmMonitor_Load(object sender, EventArgs e)
{
SetChart();
RefreshXiaoLvData();
RefreshChatTop10AlarmData();
m_RefreshTimer = new System.Threading.Timer(TimerWork_Elapsed, null, Timeout.InfiniteTimeSpan, Timeout.InfiniteTimeSpan);
StartTimer(m_RefreshTimer);//开启刷新
}
/// <summary>
/// 开启定时器
/// </summary>
/// <param name="timer"></param>
private void StartTimer(System.Threading.Timer timer)
{
timer?.Change(TimeSpan.Zero, Timeout.InfiniteTimeSpan);
}
#region 定时刷新状态
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
private void TimerWork_Elapsed(object sender)
{
try
{
using (new TimerReset(m_RefreshTimer, 2000))
{
Refish12ProdQty();
RefreshXiaoLvData();//设备综合效率
RefreshChatTop10AlarmData();
RefreshChatNGData();
}
}
catch (Exception ex)
{
CommonMethods.AddLog(true, "定时刷新异常:" + ex.Message);
}
}
#endregion
#region 刷新12小时产能
private void SetChart()
{
#region 24小时统计
Chart12HourTotal.Series.Clear();
//chart12Hour.Titles.Clear();
Chart12HourTotal.ChartAreas[0].AxisY.Minimum = 0;
Chart12HourTotal.ChartAreas[0].AxisY.Maximum = 2000;
ChartHelper.AddSeries(Chart12HourTotal, "投入", SeriesChartType.Column, ChartValueType.Auto, MarkerStyle.Diamond, 8, Color.DarkTurquoise, Color.Aqua, "", false, true);
ChartHelper.AddSeries(Chart12HourTotal, "产出", SeriesChartType.Column, ChartValueType.Auto, MarkerStyle.Diamond, 8, Color.PaleGoldenrod, Color.PaleGoldenrod, "", false, true);
ChartHelper.AddSeries(Chart12HourTotal, "优率", SeriesChartType.Spline, ChartValueType.String, MarkerStyle.Circle, 8, Color.Lime, Color.Lime, "#VAL{P}", true, true);
//JinYuan.Helper.ChartHelper.SetTitle(chart12Hour, "当日每1小时投入与产出", new Font("微软雅黑", 12), Docking.Top, Color.White);
ChartHelper.SetStyle(Chart12HourTotal, Color.Transparent, Color.White);
ChartHelper.SetLegend(Chart12HourTotal, Docking.Top, StringAlignment.Center, Color.Transparent, Color.White);
ChartHelper.SetXY(Chart12HourTotal, "时间", "数值", 0, StringAlignment.Center, Color.White, Color.White, AxisArrowStyle.None, 1, true);
ChartHelper.SetMajorGrid(Chart12HourTotal, Color.Transparent, 20, 2);
#endregion
}
/// <summary>
/// 刷新12小时产能
/// </summary>
///
private void Refish12ProdQty()
{
Task.Run(() =>
{
try
{
this.BeginInvoke((EventHandler)delegate
{
ucPanel12Hour.Title = string.Format($"当前({CommonMethods.strClass})产能");
if (CommonMethods.Lst_Prod12HourData != null && CommonMethods.Lst_Prod12HourData.Count > 0)
{
Chart12HourTotal.ChartAreas[0].AxisY.Minimum = 0;
var maxValue = CommonMethods.Lst_Prod12HourData.Max(x => x.ProdIn);
Chart12HourTotal.ChartAreas[0].AxisY.Maximum = (int)maxValue + 1500;
var x1 = CommonMethods.Lst_Prod12HourData.Select(c => c.DisplayTime).ToList();
var y1 = CommonMethods.Lst_Prod12HourData.Select(c => c.ProdIn).ToList();
var y2 = CommonMethods.Lst_Prod12HourData.Select(c => c.ProdOut).ToList();
var y3 = CommonMethods.Lst_Prod12HourData.Select(c => c.OKRatio).ToList();
//绑定数据
Chart12HourTotal.Series[0].Points.DataBindXY(x1, y1);
Chart12HourTotal.Series[1].Points.DataBindXY(x1, y2);
Chart12HourTotal.Series[2].Points.DataBindXY(x1, y3);
}
});
}
catch
{
}
});
}
#endregion
#region 设备综合效率
private void RefreshXiaoLvData()
{
int TotalQty = CommonMethods.TotalQty;
int ProOKQty = CommonMethods.ProOKQty;
int PPM = CommonMethods.Ppm;
string Factory_code = CommonMethods.mesConfig.siteCode;
string line_No = CommonMethods.mesConfig.lineCode;
string Eqp_code = CommonMethods.mesConfig.equipNum;
double UtilizationRate = Convert.ToDouble(CommonMethods.JiaDL) * 100;
double YieldRate = 0;
bool flag = TotalQty == 0L;
if (!flag)
{
YieldRate = Convert.ToDouble((Convert.ToDouble(ProOKQty) / Convert.ToDouble(TotalQty) * 100.0).ToString("f2"));
}
this.Invoke((EventHandler)delegate
{
#region 除尘风速
//if (CommonMethods.AntiDustAirSpeed[0] > 0.001f)
//{
// ucFengSu1.CurrentValue = CommonMethods.AntiDustAirSpeed[0];
//}
//else
//{
// ucFengSu1.CurrentValue = 0;
//}
#endregion
titleModeName.Title = CommonMethods.mesConfig.ModelName;
titleFactory_code.Title = Factory_code;
titleLine_No.Title = line_No;
titleEqp_code.Title = Eqp_code;
proUtilizationRate.FloatValue = (float)UtilizationRate;
proPPM.IntValue = PPM;
proOKQty.IntValue = ProOKQty;
proOKRatio.Value = YieldRate.ToString() == "NaN" ? 0 : YieldRate;
proTotalQty.TotalValue = TotalQty;
if (CommonMethods.PlcOpenAndRunTime != null && CommonMethods.PlcOpenAndRunTime.Count > 0)
{
titleStartTime.Title = $"{CommonMethods.PlcOpenAndRunTime[0]}:{CommonMethods.PlcOpenAndRunTime[1]}:{CommonMethods.PlcOpenAndRunTime[2]}";
titleRunTime.Title = $"{CommonMethods.PlcOpenAndRunTime[3]}:{CommonMethods.PlcOpenAndRunTime[4]}:{CommonMethods.PlcOpenAndRunTime[5]}";
}
if (CommonMethods.listElectricEnergy != null && CommonMethods.listElectricEnergy.Count > 0)
{
this.ucElectricityMeterV1.ElectricEnergy = CommonMethods.listElectricEnergy[0];
//this.ucElectricityMeterV2.ElectricEnergy = CommonMethods.listElectricEnergy[1];
}
});
}
#endregion
#region 报警Top10信息刷新
private void RefreshChatTop10AlarmData()
{
this.BeginInvoke((EventHandler)delegate
{
if (CommonMethods.Lst_AlarmTop10_Qty != null && CommonMethods.Lst_AlarmTop10_Qty.Count > 0)
{
chartAlarmData.Series.Clear();
chartAlarmData.Titles.Clear();
chartAlarmData.ChartAreas[0].AxisY.Minimum = 0;
var maxValue1 = CommonMethods.Lst_AlarmTop10_Qty.Max(x => x.DataCount);
chartAlarmData.ChartAreas[0].AxisY.Maximum = (int)maxValue1 + 20;
foreach (var item in CommonMethods.Lst_AlarmTop10_Qty)
{
ChartHelper.AddSeries(chartAlarmData, item.DataType, SeriesChartType.Column, ChartValueType.Auto, MarkerStyle.Diamond, 4, Color.DarkTurquoise, Color.White, "", false, true);
}
ChartHelper.SetTitle(chartAlarmData, "报警TOP10", new Font("微软雅黑", 12), Docking.Top, Color.White);
ChartHelper.SetStyle(chartAlarmData, Color.Transparent, Color.White);
ChartHelper.SetLegend(chartAlarmData, Docking.Top, StringAlignment.Center, Color.Transparent, Color.White);
ChartHelper.SetXY(chartAlarmData, "报警项", "次数", -45, StringAlignment.Center, Color.White, Color.White, AxisArrowStyle.None, 1, false);
ChartHelper.SetMajorGrid(chartAlarmData, Color.Transparent, 20, 2);
//不良类型统计
List<string> xData1 = CommonMethods.Lst_AlarmTop10_Qty.Select(c => c.DataType).ToList();
List<int> yData1 = CommonMethods.Lst_AlarmTop10_Qty.Select(c => c.DataCount).ToList();
chartAlarmData.Series[0].Points.DataBindXY(xData1, yData1);
}
else
{
chartAlarmData.Series.Clear();
chartAlarmData.Titles.Clear();
chartAlarmData.ChartAreas[0].AxisY.Minimum = 0;
}
});
}
#endregion
#region 不良信息刷新
private void RefreshChatNGData()
{
this.BeginInvoke((EventHandler)delegate
{
if (CommonMethods.Lst_DefectTypeQty != null && CommonMethods.Lst_DefectTypeQty.Count > 0)
{
chartNgShow.Series.Clear();
chartNgShow.Titles.Clear();
chartNgShow.ChartAreas[0].AxisY.Minimum = 0;
var maxValue = CommonMethods.Lst_DefectTypeQty.Max(x => x.DataCount);
chartNgShow.ChartAreas[0].AxisY.Maximum = (int)maxValue + 100;
foreach (var item in CommonMethods.Lst_DefectTypeQty)
{
ChartHelper.AddSeries(chartNgShow, item.DataType, SeriesChartType.Column, ChartValueType.Auto, MarkerStyle.Diamond, 4, Color.Red, Color.White, "", false, true);
}
ChartHelper.SetTitle(chartNgShow, "各不良项", new Font("微软雅黑", 12), Docking.Top, Color.White);
ChartHelper.SetStyle(chartNgShow, Color.Transparent, Color.White);
ChartHelper.SetLegend(chartNgShow, Docking.Top, StringAlignment.Center, Color.Transparent, Color.White);
ChartHelper.SetXY(chartNgShow, "项名", "数值", 0, StringAlignment.Center, Color.White, Color.White, AxisArrowStyle.None, 1, false);
ChartHelper.SetMajorGrid(chartNgShow, Color.Transparent, 1, 1);
//不良类型统计
List<string> xData = CommonMethods.Lst_DefectTypeQty.Select(c => c.DataType).ToList();
List<int> yData = CommonMethods.Lst_DefectTypeQty.Select(c => c.DataCount).ToList();
chartNgShow.Series[0].Points.DataBindXY(xData, yData);
}
});
}
#endregion
private void titleStartTime_Load(object sender, EventArgs e)
{
}
}
}
File diff suppressed because it is too large Load Diff
+141
View File
@@ -0,0 +1,141 @@
namespace LargeSquareOne
{
partial class FrmMsgBoxOutWithAck
{
/// <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.lbl_Title = new System.Windows.Forms.Label();
this.lbl_Content = new System.Windows.Forms.Label();
this.btn_Sure = new System.Windows.Forms.Button();
this.pic_TitleImage = new System.Windows.Forms.PictureBox();
this.btn_Close = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.pic_TitleImage)).BeginInit();
this.SuspendLayout();
//
// lbl_Title
//
this.lbl_Title.AutoSize = true;
this.lbl_Title.BackColor = System.Drawing.Color.Transparent;
this.lbl_Title.Font = new System.Drawing.Font("微软雅黑", 15F);
this.lbl_Title.ForeColor = System.Drawing.Color.White;
this.lbl_Title.Location = new System.Drawing.Point(46, 9);
this.lbl_Title.Name = "lbl_Title";
this.lbl_Title.Size = new System.Drawing.Size(92, 27);
this.lbl_Title.TabIndex = 0;
this.lbl_Title.Text = "退出系统";
//
// lbl_Content
//
this.lbl_Content.BackColor = System.Drawing.Color.Transparent;
this.lbl_Content.Font = new System.Drawing.Font("微软雅黑", 15F);
this.lbl_Content.ForeColor = System.Drawing.Color.White;
this.lbl_Content.Location = new System.Drawing.Point(2, 111);
this.lbl_Content.Name = "lbl_Content";
this.lbl_Content.Size = new System.Drawing.Size(437, 78);
this.lbl_Content.TabIndex = 3;
this.lbl_Content.Text = "是否确认要退出系统?";
this.lbl_Content.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// btn_Sure
//
this.btn_Sure.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btn_Sure.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Sure.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.btn_Sure.ForeColor = System.Drawing.Color.White;
this.btn_Sure.Location = new System.Drawing.Point(104, 234);
this.btn_Sure.Name = "btn_Sure";
this.btn_Sure.Size = new System.Drawing.Size(258, 36);
this.btn_Sure.TabIndex = 13;
this.btn_Sure.Text = "确定";
this.btn_Sure.UseVisualStyleBackColor = false;
this.btn_Sure.Click += new System.EventHandler(this.btn_Sure_Click);
//
// pic_TitleImage
//
this.pic_TitleImage.BackColor = System.Drawing.Color.Transparent;
this.pic_TitleImage.ErrorImage = null;
this.pic_TitleImage.Image = global::LargeSquareOne.Properties.Resources.warning;
this.pic_TitleImage.Location = new System.Drawing.Point(2, 3);
this.pic_TitleImage.Name = "pic_TitleImage";
this.pic_TitleImage.Size = new System.Drawing.Size(45, 41);
this.pic_TitleImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_TitleImage.TabIndex = 14;
this.pic_TitleImage.TabStop = false;
//
// btn_Close
//
this.btn_Close.BackColor = System.Drawing.Color.Transparent;
this.btn_Close.FlatAppearance.BorderSize = 0;
this.btn_Close.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(29)))), ((int)(((byte)(84)))));
this.btn_Close.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_Close.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Close.Font = new System.Drawing.Font("微软雅黑", 15.5F);
this.btn_Close.ForeColor = System.Drawing.Color.White;
this.btn_Close.Location = new System.Drawing.Point(395, 1);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(32, 32);
this.btn_Close.TabIndex = 15;
this.btn_Close.Text = "X";
this.btn_Close.UseVisualStyleBackColor = false;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// FrmMsgBoxOutWithAck
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 19F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(439, 312);
this.Controls.Add(this.btn_Close);
this.Controls.Add(this.pic_TitleImage);
this.Controls.Add(this.btn_Sure);
this.Controls.Add(this.lbl_Content);
this.Controls.Add(this.lbl_Title);
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("微软雅黑", 10F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(5);
this.Name = "FrmMsgBoxOutWithAck";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "FrmMsgBoxWithAck";
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseDown);
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseMove);
((System.ComponentModel.ISupportInitialize)(this.pic_TitleImage)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label lbl_Title;
private System.Windows.Forms.Label lbl_Content;
private System.Windows.Forms.Button btn_Sure;
private System.Windows.Forms.PictureBox pic_TitleImage;
private System.Windows.Forms.Button btn_Close;
}
}
+62
View File
@@ -0,0 +1,62 @@
using System;
using System.Drawing;
using System.Windows.Forms;
namespace LargeSquareOne
{
public partial class FrmMsgBoxOutWithAck : Form
{
public FrmMsgBoxOutWithAck(int type, string content, string title)
{
InitializeComponent();
this.TopMost = true;
this.lbl_Content.Text = content;
this.lbl_Title.Text = title;
switch (type)
{
case 1:
this.pic_TitleImage.Image = LargeSquareOne.Properties.Resources.info;
break;
case 2:
this.pic_TitleImage.Image = LargeSquareOne.Properties.Resources.warning;
break;
case 3:
this.pic_TitleImage.Image = LargeSquareOne.Properties.Resources.error;
break;
}
}
#region 无边框拖动
private Point mPoint;
private void Panel_MouseDown(object sender, MouseEventArgs e)
{
mPoint = new Point(e.X, e.Y);
}
private void Panel_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
this.Location = new Point(this.Location.X + e.X - mPoint.X, this.Location.Y + e.Y - mPoint.Y);
}
}
#endregion
private void btn_Sure_Click(object sender, EventArgs e)
{
this.Close();
}
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
+120
View 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>
+139
View File
@@ -0,0 +1,139 @@
namespace LargeSquareOne
{
partial class FrmMsgBoxWithAck
{
/// <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.lbl_Title = new System.Windows.Forms.Label();
this.btn_Close = new System.Windows.Forms.Button();
this.lbl_Content = new System.Windows.Forms.Label();
this.btn_Sure = new System.Windows.Forms.Button();
this.btn_Cancel = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// lbl_Title
//
this.lbl_Title.AutoSize = true;
this.lbl_Title.BackColor = System.Drawing.Color.Transparent;
this.lbl_Title.Font = new System.Drawing.Font("微软雅黑", 15F);
this.lbl_Title.ForeColor = System.Drawing.Color.White;
this.lbl_Title.Location = new System.Drawing.Point(12, 6);
this.lbl_Title.Name = "lbl_Title";
this.lbl_Title.Size = new System.Drawing.Size(92, 27);
this.lbl_Title.TabIndex = 0;
this.lbl_Title.Text = "退出系统";
//
// btn_Close
//
this.btn_Close.BackColor = System.Drawing.Color.Transparent;
this.btn_Close.FlatAppearance.BorderSize = 0;
this.btn_Close.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Close.Font = new System.Drawing.Font("微软雅黑", 15.5F);
this.btn_Close.ForeColor = System.Drawing.Color.White;
this.btn_Close.Location = new System.Drawing.Point(397, 1);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(32, 32);
this.btn_Close.TabIndex = 2;
this.btn_Close.Text = "X";
this.btn_Close.UseVisualStyleBackColor = false;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// lbl_Content
//
this.lbl_Content.BackColor = System.Drawing.Color.Transparent;
this.lbl_Content.Font = new System.Drawing.Font("微软雅黑", 15F);
this.lbl_Content.ForeColor = System.Drawing.Color.White;
this.lbl_Content.Location = new System.Drawing.Point(2, 132);
this.lbl_Content.Name = "lbl_Content";
this.lbl_Content.Size = new System.Drawing.Size(437, 27);
this.lbl_Content.TabIndex = 3;
this.lbl_Content.Text = "是否确认要退出系统?";
this.lbl_Content.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// btn_Sure
//
this.btn_Sure.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btn_Sure.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Sure.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.btn_Sure.ForeColor = System.Drawing.Color.White;
this.btn_Sure.Location = new System.Drawing.Point(86, 233);
this.btn_Sure.Name = "btn_Sure";
this.btn_Sure.Size = new System.Drawing.Size(101, 36);
this.btn_Sure.TabIndex = 13;
this.btn_Sure.Text = "确定";
this.btn_Sure.UseVisualStyleBackColor = false;
this.btn_Sure.Click += new System.EventHandler(this.btn_Sure_Click);
//
// btn_Cancel
//
this.btn_Cancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btn_Cancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Cancel.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.btn_Cancel.ForeColor = System.Drawing.Color.White;
this.btn_Cancel.Location = new System.Drawing.Point(256, 233);
this.btn_Cancel.Name = "btn_Cancel";
this.btn_Cancel.Size = new System.Drawing.Size(101, 36);
this.btn_Cancel.TabIndex = 14;
this.btn_Cancel.Text = "取消";
this.btn_Cancel.UseVisualStyleBackColor = false;
this.btn_Cancel.Click += new System.EventHandler(this.btn_Cancel_Click);
//
// FrmMsgBoxWithAck
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 19F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(439, 312);
this.Controls.Add(this.btn_Cancel);
this.Controls.Add(this.btn_Sure);
this.Controls.Add(this.lbl_Content);
this.Controls.Add(this.btn_Close);
this.Controls.Add(this.lbl_Title);
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("微软雅黑", 10F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(5);
this.Name = "FrmMsgBoxWithAck";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "FrmMsgBoxWithAck";
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseDown);
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseMove);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label lbl_Title;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.Label lbl_Content;
private System.Windows.Forms.Button btn_Sure;
private System.Windows.Forms.Button btn_Cancel;
}
}
+51
View File
@@ -0,0 +1,51 @@
using System;
using System.Drawing;
using System.Windows.Forms;
namespace LargeSquareOne
{
public partial class FrmMsgBoxWithAck : Form
{
public FrmMsgBoxWithAck(string content, string title)
{
InitializeComponent();
this.TopMost = true;
this.lbl_Content.Text = content;
this.lbl_Title.Text = title;
}
private void btn_Sure_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.OK;
}
private void btn_Cancel_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
}
private void btn_Close_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
}
#region 无边框拖动
private Point mPoint;
private void Panel_MouseDown(object sender, MouseEventArgs e)
{
mPoint = new Point(e.X, e.Y);
}
private void Panel_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
this.Location = new Point(this.Location.X + e.X - mPoint.X, this.Location.Y + e.Y - mPoint.Y);
}
}
#endregion
}
}
+120
View 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>
+828
View File
@@ -0,0 +1,828 @@
namespace LargeSquareOne
{
partial class FrmSystemSet
{
/// <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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmSystemSet));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.up_QieHuanPeriod = new JinYuan.ControlLib.UpDownLabel();
this.tog_AutoQieHuanM = new JinYuan.ControlLib.Toggle();
this.label16 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.txtEqp_code = new System.Windows.Forms.TextBox();
this.label13 = new System.Windows.Forms.Label();
this.txtline_No = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.txtFactory_code = new System.Windows.Forms.TextBox();
this.label15 = new System.Windows.Forms.Label();
this.title4 = new JinYuan.ControlLib.Title();
this.cmb_PLCType = new System.Windows.Forms.ComboBox();
this.label12 = new System.Windows.Forms.Label();
this.title3 = new JinYuan.ControlLib.Title();
this.tog_SwipeCardMode = new JinYuan.ControlLib.Toggle();
this.label11 = new System.Windows.Forms.Label();
this.tog_GetMesParam = new JinYuan.ControlLib.Toggle();
this.label10 = new System.Windows.Forms.Label();
this.tog_OpenMesModel = new JinYuan.ControlLib.Toggle();
this.label9 = new System.Windows.Forms.Label();
this.tog_SaveThreadTime = new JinYuan.ControlLib.Toggle();
this.label8 = new System.Windows.Forms.Label();
this.up_ShowSeriesCount = new JinYuan.ControlLib.UpDownLabel();
this.up_LockPeriod = new JinYuan.ControlLib.UpDownLabel();
this.tog_AutoLock = new JinYuan.ControlLib.Toggle();
this.tog_AutoLogin = new JinYuan.ControlLib.Toggle();
this.tog_AutoStart = new JinYuan.ControlLib.Toggle();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.title2 = new JinYuan.ControlLib.Title();
this.btn_Cancel = new System.Windows.Forms.Button();
this.btn_GroupConfig = new System.Windows.Forms.Button();
this.btn_VarConfig = new System.Windows.Forms.Button();
this.btn_Sure = new System.Windows.Forms.Button();
this.txt_Prot = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.txt_IP = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.title1 = new JinYuan.ControlLib.Title();
this.label18 = new System.Windows.Forms.Label();
this.tog_OKSwitching = new JinYuan.ControlLib.Toggle();
this.title5 = new JinYuan.ControlLib.Title();
this.dgvFdConfigs = new System.Windows.Forms.DataGridView();
((System.ComponentModel.ISupportInitialize)(this.dgvFdConfigs)).BeginInit();
this.SuspendLayout();
//
// up_QieHuanPeriod
//
this.up_QieHuanPeriod.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.up_QieHuanPeriod.CurrentValue = 0F;
this.up_QieHuanPeriod.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.up_QieHuanPeriod.Location = new System.Drawing.Point(1116, 273);
this.up_QieHuanPeriod.Margin = new System.Windows.Forms.Padding(0);
this.up_QieHuanPeriod.MaxValue = 1000F;
this.up_QieHuanPeriod.MinValue = -1000F;
this.up_QieHuanPeriod.Name = "up_QieHuanPeriod";
this.up_QieHuanPeriod.Size = new System.Drawing.Size(83, 32);
this.up_QieHuanPeriod.StepValue = 1F;
this.up_QieHuanPeriod.TabIndex = 46;
this.up_QieHuanPeriod.TextWidth = 30;
this.up_QieHuanPeriod.ThemeColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
this.up_QieHuanPeriod.ThemeForeColor = System.Drawing.Color.White;
//
// tog_AutoQieHuanM
//
this.tog_AutoQieHuanM.BackColor = System.Drawing.Color.Transparent;
this.tog_AutoQieHuanM.ControlType = JinYuan.ControlLib.ControlType.Rectangle;
this.tog_AutoQieHuanM.FalseColor = System.Drawing.Color.SteelBlue;
this.tog_AutoQieHuanM.FalseText = "";
this.tog_AutoQieHuanM.IsChecked = false;
this.tog_AutoQieHuanM.Location = new System.Drawing.Point(790, 270);
this.tog_AutoQieHuanM.Margin = new System.Windows.Forms.Padding(9, 22, 9, 22);
this.tog_AutoQieHuanM.Name = "tog_AutoQieHuanM";
this.tog_AutoQieHuanM.Size = new System.Drawing.Size(88, 35);
this.tog_AutoQieHuanM.TabIndex = 45;
this.tog_AutoQieHuanM.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(119)))), ((int)(((byte)(232)))));
this.tog_AutoQieHuanM.TrueText = "";
//
// label16
//
this.label16.AutoSize = true;
this.label16.BackColor = System.Drawing.Color.Transparent;
this.label16.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold);
this.label16.ForeColor = System.Drawing.Color.White;
this.label16.Location = new System.Drawing.Point(911, 276);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(202, 26);
this.label16.TabIndex = 43;
this.label16.Text = "自动切换监控界面时间";
//
// label17
//
this.label17.AutoSize = true;
this.label17.BackColor = System.Drawing.Color.Transparent;
this.label17.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold);
this.label17.ForeColor = System.Drawing.Color.White;
this.label17.Location = new System.Drawing.Point(556, 275);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(221, 26);
this.label17.TabIndex = 44;
this.label17.Text = "无操作自动切换监控界面";
//
// txtEqp_code
//
this.txtEqp_code.Font = new System.Drawing.Font("微软雅黑", 12F);
this.txtEqp_code.Location = new System.Drawing.Point(832, 101);
this.txtEqp_code.Name = "txtEqp_code";
this.txtEqp_code.Size = new System.Drawing.Size(173, 29);
this.txtEqp_code.TabIndex = 42;
this.txtEqp_code.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label13
//
this.label13.AutoSize = true;
this.label13.BackColor = System.Drawing.Color.Transparent;
this.label13.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold);
this.label13.ForeColor = System.Drawing.Color.White;
this.label13.Location = new System.Drawing.Point(738, 101);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(88, 26);
this.label13.TabIndex = 41;
this.label13.Text = "设备编号";
//
// txtline_No
//
this.txtline_No.Font = new System.Drawing.Font("微软雅黑", 12F);
this.txtline_No.Location = new System.Drawing.Point(549, 101);
this.txtline_No.Name = "txtline_No";
this.txtline_No.Size = new System.Drawing.Size(173, 29);
this.txtline_No.TabIndex = 40;
this.txtline_No.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label14
//
this.label14.AutoSize = true;
this.label14.BackColor = System.Drawing.Color.Transparent;
this.label14.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold);
this.label14.ForeColor = System.Drawing.Color.White;
this.label14.Location = new System.Drawing.Point(455, 101);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(88, 26);
this.label14.TabIndex = 39;
this.label14.Text = "产线编号";
//
// txtFactory_code
//
this.txtFactory_code.Font = new System.Drawing.Font("微软雅黑", 12F);
this.txtFactory_code.Location = new System.Drawing.Point(261, 101);
this.txtFactory_code.Name = "txtFactory_code";
this.txtFactory_code.Size = new System.Drawing.Size(173, 29);
this.txtFactory_code.TabIndex = 38;
this.txtFactory_code.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label15
//
this.label15.AutoSize = true;
this.label15.BackColor = System.Drawing.Color.Transparent;
this.label15.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold);
this.label15.ForeColor = System.Drawing.Color.White;
this.label15.Location = new System.Drawing.Point(167, 99);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(88, 26);
this.label15.TabIndex = 37;
this.label15.Text = "工厂代码";
//
// title4
//
this.title4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(28)))), ((int)(((byte)(68)))));
this.title4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("title4.BackgroundImage")));
this.title4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.title4.Location = new System.Drawing.Point(22, 93);
this.title4.Margin = new System.Windows.Forms.Padding(7, 13, 7, 13);
this.title4.Name = "title4";
this.title4.Size = new System.Drawing.Size(117, 37);
this.title4.TabIndex = 35;
this.title4.TitleName = "MES参数配置";
//
// cmb_PLCType
//
this.cmb_PLCType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmb_PLCType.FormattingEnabled = true;
this.cmb_PLCType.Location = new System.Drawing.Point(261, 34);
this.cmb_PLCType.Name = "cmb_PLCType";
this.cmb_PLCType.Size = new System.Drawing.Size(173, 28);
this.cmb_PLCType.TabIndex = 33;
//
// label12
//
this.label12.AutoSize = true;
this.label12.BackColor = System.Drawing.Color.Transparent;
this.label12.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold);
this.label12.ForeColor = System.Drawing.Color.White;
this.label12.Location = new System.Drawing.Point(141, 35);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(123, 26);
this.label12.TabIndex = 34;
this.label12.Text = "PLC类型配置";
//
// title3
//
this.title3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(28)))), ((int)(((byte)(68)))));
this.title3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("title3.BackgroundImage")));
this.title3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.title3.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold);
this.title3.Location = new System.Drawing.Point(22, 319);
this.title3.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.title3.Name = "title3";
this.title3.Size = new System.Drawing.Size(117, 37);
this.title3.TabIndex = 32;
this.title3.TitleName = "MES设置";
//
// tog_SwipeCardMode
//
this.tog_SwipeCardMode.BackColor = System.Drawing.Color.Transparent;
this.tog_SwipeCardMode.ControlType = JinYuan.ControlLib.ControlType.Rectangle;
this.tog_SwipeCardMode.FalseColor = System.Drawing.Color.SteelBlue;
this.tog_SwipeCardMode.FalseText = "";
this.tog_SwipeCardMode.IsChecked = false;
this.tog_SwipeCardMode.Location = new System.Drawing.Point(172, 270);
this.tog_SwipeCardMode.Margin = new System.Windows.Forms.Padding(12, 37, 12, 37);
this.tog_SwipeCardMode.Name = "tog_SwipeCardMode";
this.tog_SwipeCardMode.Size = new System.Drawing.Size(88, 35);
this.tog_SwipeCardMode.TabIndex = 31;
this.tog_SwipeCardMode.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(119)))), ((int)(((byte)(232)))));
this.tog_SwipeCardMode.TrueText = "";
this.tog_SwipeCardMode.CheckedChanged += new System.EventHandler(this.tog_SwipeCardMode_CheckedChanged);
//
// label11
//
this.label11.AutoSize = true;
this.label11.BackColor = System.Drawing.Color.Transparent;
this.label11.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label11.ForeColor = System.Drawing.Color.White;
this.label11.Location = new System.Drawing.Point(44, 273);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(126, 26);
this.label11.TabIndex = 30;
this.label11.Text = "开启刷卡模式";
//
// tog_GetMesParam
//
this.tog_GetMesParam.BackColor = System.Drawing.Color.Transparent;
this.tog_GetMesParam.ControlType = JinYuan.ControlLib.ControlType.Rectangle;
this.tog_GetMesParam.FalseColor = System.Drawing.Color.SteelBlue;
this.tog_GetMesParam.FalseText = "";
this.tog_GetMesParam.IsChecked = false;
this.tog_GetMesParam.Location = new System.Drawing.Point(503, 373);
this.tog_GetMesParam.Margin = new System.Windows.Forms.Padding(9, 22, 9, 22);
this.tog_GetMesParam.Name = "tog_GetMesParam";
this.tog_GetMesParam.Size = new System.Drawing.Size(88, 35);
this.tog_GetMesParam.TabIndex = 29;
this.tog_GetMesParam.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(119)))), ((int)(((byte)(232)))));
this.tog_GetMesParam.TrueText = "";
this.tog_GetMesParam.CheckedChanged += new System.EventHandler(this.tog_GetMesParam_CheckedChanged);
//
// label10
//
this.label10.AutoSize = true;
this.label10.BackColor = System.Drawing.Color.Transparent;
this.label10.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label10.ForeColor = System.Drawing.Color.White;
this.label10.Location = new System.Drawing.Point(368, 376);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(130, 26);
this.label10.TabIndex = 28;
this.label10.Text = "获取MES参数";
//
// tog_OpenMesModel
//
this.tog_OpenMesModel.BackColor = System.Drawing.Color.Transparent;
this.tog_OpenMesModel.ControlType = JinYuan.ControlLib.ControlType.Rectangle;
this.tog_OpenMesModel.FalseColor = System.Drawing.Color.SteelBlue;
this.tog_OpenMesModel.FalseText = "";
this.tog_OpenMesModel.IsChecked = false;
this.tog_OpenMesModel.Location = new System.Drawing.Point(238, 373);
this.tog_OpenMesModel.Margin = new System.Windows.Forms.Padding(7, 13, 7, 13);
this.tog_OpenMesModel.Name = "tog_OpenMesModel";
this.tog_OpenMesModel.Size = new System.Drawing.Size(88, 35);
this.tog_OpenMesModel.TabIndex = 27;
this.tog_OpenMesModel.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(119)))), ((int)(((byte)(232)))));
this.tog_OpenMesModel.TrueText = "";
this.tog_OpenMesModel.CheckedChanged += new System.EventHandler(this.tog_OpenMesModel_CheckedChanged);
//
// label9
//
this.label9.AutoSize = true;
this.label9.BackColor = System.Drawing.Color.Transparent;
this.label9.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.ForeColor = System.Drawing.Color.White;
this.label9.Location = new System.Drawing.Point(39, 376);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(200, 26);
this.label9.TabIndex = 26;
this.label9.Text = "MES/非MES模式切换";
//
// tog_SaveThreadTime
//
this.tog_SaveThreadTime.BackColor = System.Drawing.Color.Transparent;
this.tog_SaveThreadTime.ControlType = JinYuan.ControlLib.ControlType.Rectangle;
this.tog_SaveThreadTime.FalseColor = System.Drawing.Color.SteelBlue;
this.tog_SaveThreadTime.FalseText = "";
this.tog_SaveThreadTime.IsChecked = false;
this.tog_SaveThreadTime.Location = new System.Drawing.Point(426, 270);
this.tog_SaveThreadTime.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tog_SaveThreadTime.Name = "tog_SaveThreadTime";
this.tog_SaveThreadTime.Size = new System.Drawing.Size(88, 35);
this.tog_SaveThreadTime.TabIndex = 25;
this.tog_SaveThreadTime.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(119)))), ((int)(((byte)(232)))));
this.tog_SaveThreadTime.TrueText = "";
this.tog_SaveThreadTime.CheckedChanged += new System.EventHandler(this.tog_SaveThreadTime_CheckedChanged);
//
// label8
//
this.label8.AutoSize = true;
this.label8.BackColor = System.Drawing.Color.Transparent;
this.label8.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.ForeColor = System.Drawing.Color.White;
this.label8.Location = new System.Drawing.Point(266, 273);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(164, 26);
this.label8.TabIndex = 24;
this.label8.Text = "线程耗时日志保存";
//
// up_ShowSeriesCount
//
this.up_ShowSeriesCount.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.up_ShowSeriesCount.CurrentValue = 0F;
this.up_ShowSeriesCount.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.up_ShowSeriesCount.Location = new System.Drawing.Point(1273, 213);
this.up_ShowSeriesCount.Margin = new System.Windows.Forms.Padding(0);
this.up_ShowSeriesCount.MaxValue = 1000F;
this.up_ShowSeriesCount.MinValue = -1000F;
this.up_ShowSeriesCount.Name = "up_ShowSeriesCount";
this.up_ShowSeriesCount.Size = new System.Drawing.Size(83, 32);
this.up_ShowSeriesCount.StepValue = 1F;
this.up_ShowSeriesCount.TabIndex = 23;
this.up_ShowSeriesCount.TextWidth = 30;
this.up_ShowSeriesCount.ThemeColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
this.up_ShowSeriesCount.ThemeForeColor = System.Drawing.Color.White;
this.up_ShowSeriesCount.Visible = false;
//
// up_LockPeriod
//
this.up_LockPeriod.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.up_LockPeriod.CurrentValue = 0F;
this.up_LockPeriod.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.up_LockPeriod.Location = new System.Drawing.Point(938, 214);
this.up_LockPeriod.Margin = new System.Windows.Forms.Padding(0);
this.up_LockPeriod.MaxValue = 1000F;
this.up_LockPeriod.MinValue = -1000F;
this.up_LockPeriod.Name = "up_LockPeriod";
this.up_LockPeriod.Size = new System.Drawing.Size(83, 32);
this.up_LockPeriod.StepValue = 1F;
this.up_LockPeriod.TabIndex = 20;
this.up_LockPeriod.TextWidth = 30;
this.up_LockPeriod.ThemeColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
this.up_LockPeriod.ThemeForeColor = System.Drawing.Color.White;
//
// tog_AutoLock
//
this.tog_AutoLock.BackColor = System.Drawing.Color.Transparent;
this.tog_AutoLock.ControlType = JinYuan.ControlLib.ControlType.Rectangle;
this.tog_AutoLock.FalseColor = System.Drawing.Color.SteelBlue;
this.tog_AutoLock.FalseText = "";
this.tog_AutoLock.IsChecked = false;
this.tog_AutoLock.Location = new System.Drawing.Point(700, 210);
this.tog_AutoLock.Margin = new System.Windows.Forms.Padding(7, 13, 7, 13);
this.tog_AutoLock.Name = "tog_AutoLock";
this.tog_AutoLock.Size = new System.Drawing.Size(88, 35);
this.tog_AutoLock.TabIndex = 17;
this.tog_AutoLock.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(119)))), ((int)(((byte)(232)))));
this.tog_AutoLock.TrueText = "";
//
// tog_AutoLogin
//
this.tog_AutoLogin.BackColor = System.Drawing.Color.Transparent;
this.tog_AutoLogin.ControlType = JinYuan.ControlLib.ControlType.Rectangle;
this.tog_AutoLogin.FalseColor = System.Drawing.Color.SteelBlue;
this.tog_AutoLogin.FalseText = "";
this.tog_AutoLogin.IsChecked = false;
this.tog_AutoLogin.Location = new System.Drawing.Point(426, 210);
this.tog_AutoLogin.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tog_AutoLogin.Name = "tog_AutoLogin";
this.tog_AutoLogin.Size = new System.Drawing.Size(88, 35);
this.tog_AutoLogin.TabIndex = 16;
this.tog_AutoLogin.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(119)))), ((int)(((byte)(232)))));
this.tog_AutoLogin.TrueText = "";
//
// tog_AutoStart
//
this.tog_AutoStart.BackColor = System.Drawing.Color.Transparent;
this.tog_AutoStart.ControlType = JinYuan.ControlLib.ControlType.Rectangle;
this.tog_AutoStart.FalseColor = System.Drawing.Color.SteelBlue;
this.tog_AutoStart.FalseText = "";
this.tog_AutoStart.IsChecked = false;
this.tog_AutoStart.Location = new System.Drawing.Point(172, 212);
this.tog_AutoStart.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tog_AutoStart.Name = "tog_AutoStart";
this.tog_AutoStart.Size = new System.Drawing.Size(88, 35);
this.tog_AutoStart.TabIndex = 15;
this.tog_AutoStart.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(119)))), ((int)(((byte)(232)))));
this.tog_AutoStart.TrueText = "";
//
// label5
//
this.label5.AutoSize = true;
this.label5.BackColor = System.Drawing.Color.Transparent;
this.label5.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold);
this.label5.ForeColor = System.Drawing.Color.White;
this.label5.Location = new System.Drawing.Point(1068, 215);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(202, 26);
this.label5.TabIndex = 12;
this.label5.Text = "焊机功率曲线显示数量";
this.label5.Visible = false;
//
// label4
//
this.label4.AutoSize = true;
this.label4.BackColor = System.Drawing.Color.Transparent;
this.label4.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold);
this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Location = new System.Drawing.Point(809, 215);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(126, 26);
this.label4.TabIndex = 13;
this.label4.Text = "自动锁屏时间";
//
// label3
//
this.label3.AutoSize = true;
this.label3.BackColor = System.Drawing.Color.Transparent;
this.label3.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold);
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(556, 215);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(145, 26);
this.label3.TabIndex = 14;
this.label3.Text = "无操作自动锁屏";
//
// label6
//
this.label6.AutoSize = true;
this.label6.BackColor = System.Drawing.Color.Transparent;
this.label6.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold);
this.label6.ForeColor = System.Drawing.Color.WhiteSmoke;
this.label6.Location = new System.Drawing.Point(291, 215);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(126, 26);
this.label6.TabIndex = 11;
this.label6.Text = "软件自动登录";
//
// label7
//
this.label7.AutoSize = true;
this.label7.BackColor = System.Drawing.Color.Transparent;
this.label7.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.ForeColor = System.Drawing.Color.White;
this.label7.Location = new System.Drawing.Point(44, 215);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(126, 26);
this.label7.TabIndex = 10;
this.label7.Text = "开机自动启动";
//
// title2
//
this.title2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(28)))), ((int)(((byte)(68)))));
this.title2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("title2.BackgroundImage")));
this.title2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.title2.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold);
this.title2.Location = new System.Drawing.Point(22, 152);
this.title2.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.title2.Name = "title2";
this.title2.Size = new System.Drawing.Size(117, 37);
this.title2.TabIndex = 9;
this.title2.TitleName = "系统设置";
//
// btn_Cancel
//
this.btn_Cancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btn_Cancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Cancel.Font = new System.Drawing.Font("微软雅黑", 12F);
this.btn_Cancel.ForeColor = System.Drawing.Color.White;
this.btn_Cancel.Location = new System.Drawing.Point(1175, 94);
this.btn_Cancel.Name = "btn_Cancel";
this.btn_Cancel.Size = new System.Drawing.Size(105, 36);
this.btn_Cancel.TabIndex = 8;
this.btn_Cancel.Text = "取消设置";
this.btn_Cancel.UseVisualStyleBackColor = false;
this.btn_Cancel.Click += new System.EventHandler(this.btn_Cancel_Click);
//
// btn_GroupConfig
//
this.btn_GroupConfig.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btn_GroupConfig.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_GroupConfig.Font = new System.Drawing.Font("微软雅黑", 12F);
this.btn_GroupConfig.ForeColor = System.Drawing.Color.White;
this.btn_GroupConfig.Location = new System.Drawing.Point(1040, 31);
this.btn_GroupConfig.Name = "btn_GroupConfig";
this.btn_GroupConfig.Size = new System.Drawing.Size(105, 36);
this.btn_GroupConfig.TabIndex = 7;
this.btn_GroupConfig.Text = "通信组配置";
this.btn_GroupConfig.UseVisualStyleBackColor = false;
this.btn_GroupConfig.Click += new System.EventHandler(this.btn_GroupConfig_Click);
//
// btn_VarConfig
//
this.btn_VarConfig.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btn_VarConfig.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_VarConfig.Font = new System.Drawing.Font("微软雅黑", 12F);
this.btn_VarConfig.ForeColor = System.Drawing.Color.White;
this.btn_VarConfig.Location = new System.Drawing.Point(1175, 31);
this.btn_VarConfig.Name = "btn_VarConfig";
this.btn_VarConfig.Size = new System.Drawing.Size(105, 36);
this.btn_VarConfig.TabIndex = 6;
this.btn_VarConfig.Text = "变量配置";
this.btn_VarConfig.UseVisualStyleBackColor = false;
this.btn_VarConfig.Click += new System.EventHandler(this.btn_VarConfig_Click);
//
// btn_Sure
//
this.btn_Sure.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btn_Sure.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Sure.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.btn_Sure.ForeColor = System.Drawing.Color.White;
this.btn_Sure.Location = new System.Drawing.Point(1040, 94);
this.btn_Sure.Name = "btn_Sure";
this.btn_Sure.Size = new System.Drawing.Size(105, 36);
this.btn_Sure.TabIndex = 5;
this.btn_Sure.Text = "确定设置";
this.btn_Sure.UseVisualStyleBackColor = false;
this.btn_Sure.Click += new System.EventHandler(this.btn_Sure_Click);
//
// txt_Prot
//
this.txt_Prot.Font = new System.Drawing.Font("微软雅黑", 12F);
this.txt_Prot.Location = new System.Drawing.Point(832, 35);
this.txt_Prot.Name = "txt_Prot";
this.txt_Prot.Size = new System.Drawing.Size(173, 29);
this.txt_Prot.TabIndex = 4;
this.txt_Prot.Text = "9600";
this.txt_Prot.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label2
//
this.label2.AutoSize = true;
this.label2.BackColor = System.Drawing.Color.Transparent;
this.label2.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold);
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(726, 36);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(107, 26);
this.label2.TabIndex = 3;
this.label2.Text = "端口号配置";
//
// txt_IP
//
this.txt_IP.Font = new System.Drawing.Font("微软雅黑", 12F);
this.txt_IP.Location = new System.Drawing.Point(549, 35);
this.txt_IP.Name = "txt_IP";
this.txt_IP.Size = new System.Drawing.Size(173, 29);
this.txt_IP.TabIndex = 2;
this.txt_IP.Text = "127.0.0.1";
this.txt_IP.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label1
//
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold);
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.Location = new System.Drawing.Point(443, 36);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(106, 26);
this.label1.TabIndex = 1;
this.label1.Text = "IP地址配置";
//
// title1
//
this.title1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(28)))), ((int)(((byte)(68)))));
this.title1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("title1.BackgroundImage")));
this.title1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.title1.Location = new System.Drawing.Point(22, 32);
this.title1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.title1.Name = "title1";
this.title1.Size = new System.Drawing.Size(117, 37);
this.title1.TabIndex = 0;
this.title1.TitleName = "PLC配置";
//
// label18
//
this.label18.AutoSize = true;
this.label18.BackColor = System.Drawing.Color.Transparent;
this.label18.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label18.ForeColor = System.Drawing.Color.White;
this.label18.Location = new System.Drawing.Point(634, 376);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(202, 26);
this.label18.TabIndex = 47;
this.label18.Text = "强制OK/正常模式切换";
//
// tog_OKSwitching
//
this.tog_OKSwitching.BackColor = System.Drawing.Color.Transparent;
this.tog_OKSwitching.ControlType = JinYuan.ControlLib.ControlType.Rectangle;
this.tog_OKSwitching.Enabled = false;
this.tog_OKSwitching.FalseColor = System.Drawing.Color.SteelBlue;
this.tog_OKSwitching.FalseText = "";
this.tog_OKSwitching.IsChecked = false;
this.tog_OKSwitching.Location = new System.Drawing.Point(851, 373);
this.tog_OKSwitching.Margin = new System.Windows.Forms.Padding(12, 37, 12, 37);
this.tog_OKSwitching.Name = "tog_OKSwitching";
this.tog_OKSwitching.Size = new System.Drawing.Size(88, 35);
this.tog_OKSwitching.TabIndex = 48;
this.tog_OKSwitching.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(119)))), ((int)(((byte)(232)))));
this.tog_OKSwitching.TrueText = "";
this.tog_OKSwitching.CheckedChanged += new System.EventHandler(this.tog_OKSwitching_CheckedChanged);
//
// title5
//
this.title5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(28)))), ((int)(((byte)(68)))));
this.title5.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("title5.BackgroundImage")));
this.title5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.title5.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold);
this.title5.Location = new System.Drawing.Point(22, 424);
this.title5.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.title5.Name = "title5";
this.title5.Size = new System.Drawing.Size(117, 37);
this.title5.TabIndex = 49;
this.title5.TitleName = "分档设置";
this.title5.Visible = false;
//
// dgvFdConfigs
//
this.dgvFdConfigs.AllowUserToAddRows = false;
this.dgvFdConfigs.AllowUserToDeleteRows = false;
this.dgvFdConfigs.AllowUserToResizeRows = false;
this.dgvFdConfigs.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.dgvFdConfigs.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.dgvFdConfigs.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvFdConfigs.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dgvFdConfigs.ColumnHeadersHeight = 40;
this.dgvFdConfigs.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvFdConfigs.DefaultCellStyle = dataGridViewCellStyle2;
this.dgvFdConfigs.EnableHeadersVisualStyles = false;
this.dgvFdConfigs.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.dgvFdConfigs.Location = new System.Drawing.Point(44, 486);
this.dgvFdConfigs.Name = "dgvFdConfigs";
this.dgvFdConfigs.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvFdConfigs.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
this.dgvFdConfigs.RowHeadersWidth = 55;
this.dgvFdConfigs.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
this.dgvFdConfigs.RowTemplate.Height = 40;
this.dgvFdConfigs.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.False;
this.dgvFdConfigs.Size = new System.Drawing.Size(1757, 69);
this.dgvFdConfigs.TabIndex = 78;
this.dgvFdConfigs.Visible = false;
//
// FrmSystemSet
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.ClientSize = new System.Drawing.Size(1370, 651);
this.Controls.Add(this.dgvFdConfigs);
this.Controls.Add(this.title5);
this.Controls.Add(this.tog_OKSwitching);
this.Controls.Add(this.label18);
this.Controls.Add(this.up_QieHuanPeriod);
this.Controls.Add(this.txt_Prot);
this.Controls.Add(this.txt_IP);
this.Controls.Add(this.label8);
this.Controls.Add(this.cmb_PLCType);
this.Controls.Add(this.tog_AutoQieHuanM);
this.Controls.Add(this.title2);
this.Controls.Add(this.up_ShowSeriesCount);
this.Controls.Add(this.label7);
this.Controls.Add(this.tog_SaveThreadTime);
this.Controls.Add(this.title4);
this.Controls.Add(this.label16);
this.Controls.Add(this.label12);
this.Controls.Add(this.up_LockPeriod);
this.Controls.Add(this.btn_Cancel);
this.Controls.Add(this.title1);
this.Controls.Add(this.label6);
this.Controls.Add(this.label9);
this.Controls.Add(this.label15);
this.Controls.Add(this.label17);
this.Controls.Add(this.title3);
this.Controls.Add(this.tog_AutoLock);
this.Controls.Add(this.btn_GroupConfig);
this.Controls.Add(this.label1);
this.Controls.Add(this.label3);
this.Controls.Add(this.tog_OpenMesModel);
this.Controls.Add(this.txtFactory_code);
this.Controls.Add(this.txtEqp_code);
this.Controls.Add(this.tog_SwipeCardMode);
this.Controls.Add(this.tog_AutoLogin);
this.Controls.Add(this.btn_VarConfig);
this.Controls.Add(this.label4);
this.Controls.Add(this.label10);
this.Controls.Add(this.label14);
this.Controls.Add(this.label13);
this.Controls.Add(this.label11);
this.Controls.Add(this.tog_AutoStart);
this.Controls.Add(this.btn_Sure);
this.Controls.Add(this.label2);
this.Controls.Add(this.label5);
this.Controls.Add(this.tog_GetMesParam);
this.Controls.Add(this.txtline_No);
this.Font = new System.Drawing.Font("微软雅黑", 10.5F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(5);
this.Name = "FrmSystemSet";
this.Text = "系统设置";
((System.ComponentModel.ISupportInitialize)(this.dgvFdConfigs)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button btn_Cancel;
private System.Windows.Forms.Button btn_GroupConfig;
private System.Windows.Forms.Button btn_VarConfig;
private System.Windows.Forms.Button btn_Sure;
private System.Windows.Forms.TextBox txt_Prot;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txt_IP;
private System.Windows.Forms.Label label1;
private JinYuan.ControlLib.Title title1;
private JinYuan.ControlLib.Title title2;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label6;
private JinYuan.ControlLib.Toggle tog_AutoLock;
private JinYuan.ControlLib.Toggle tog_AutoLogin;
private JinYuan.ControlLib.UpDownLabel up_LockPeriod;
private JinYuan.ControlLib.UpDownLabel up_ShowSeriesCount;
private JinYuan.ControlLib.Toggle tog_SaveThreadTime;
private System.Windows.Forms.Label label8;
private JinYuan.ControlLib.Toggle tog_GetMesParam;
private System.Windows.Forms.Label label10;
private JinYuan.ControlLib.Toggle tog_OpenMesModel;
private System.Windows.Forms.Label label9;
private JinYuan.ControlLib.Toggle tog_AutoStart;
private System.Windows.Forms.Label label7;
private JinYuan.ControlLib.Toggle tog_SwipeCardMode;
private System.Windows.Forms.Label label11;
private JinYuan.ControlLib.Title title3;
private System.Windows.Forms.ComboBox cmb_PLCType;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.TextBox txtEqp_code;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.TextBox txtline_No;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.TextBox txtFactory_code;
private System.Windows.Forms.Label label15;
private JinYuan.ControlLib.Title title4;
private JinYuan.ControlLib.UpDownLabel up_QieHuanPeriod;
private JinYuan.ControlLib.Toggle tog_AutoQieHuanM;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label18;
private JinYuan.ControlLib.Toggle tog_OKSwitching;
private JinYuan.ControlLib.Title title5;
private System.Windows.Forms.DataGridView dgvFdConfigs;
}
}
+866
View File
@@ -0,0 +1,866 @@
using JinYuan.CommunicationLib.Enum;
using JinYuan.ControlLib;
using JinYuan.Helper;
using JinYuan.Models;
using JinYuan.VirtualDataLibrary;
using Microsoft.Win32;
using MiniExcelLibs;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Windows.Forms;
using System.Linq;
using static Org.BouncyCastle.Math.EC.ECCurve;
using System.Drawing;
namespace LargeSquareOne
{
public partial class FrmSystemSet : Form
{
private string FdConfigFilePath = "fd_config.xlsx";
private List<FDConfig> fdConfigs;
private List<string> PLCTypes = new List<string>();
private List<string> NGLDTypes1 = new List<string>();//NG拉带类型
private List<string> NGLDTypes2 = new List<string>();//NG拉带类型
private List<string> NGLDTypes3 = new List<string>();//NG拉带类型
private bool isFDEditing = false;
private int editingFDRowIndex = -1;
private readonly string configFolderPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Config");
/// <summary>
/// 打印日志方法
/// </summary>
/// <param name="Message"></param>日志信息
/// <param name="FileName"></param>文件夹名字
public static void LogMessage(string Message, string FileName)
{
string filePath = FileName + "//" + DateTime.Now.ToString("yyyy-MM-dd"); // 日志文件存放路径,默认在debug目录下
string filePath2 = FileName + "//" + DateTime.Now.ToString("yyyy-MM-dd") + "//Mylog.txt";//也可以加上时间
//string file=DateTime.Now+"log.txt";
//检查文件夹是否存在,否则新建
if (!Directory.Exists(filePath))
{
Directory.CreateDirectory(filePath);
}
string logMessage = $"{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:fff")}: {Message}";//打印出现的时间
// 将消息写入日志文件
using (StreamWriter writer = new StreamWriter(filePath2, true))
{
writer.WriteLine(logMessage);
}
}
public FrmSystemSet(string devPath)
{
InitializeComponent();
////设置控件样式,去除缓冲
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true);
this.SetStyle(ControlStyles.ResizeRedraw, true);
this.SetStyle(ControlStyles.Selectable, true);
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.cmb_PLCType.Items.Add("OmronFinsTcp_HSL");
this.cmb_PLCType.Items.Add("Mitsubishi");
this.cmb_PLCType.Items.Add("Inovance");
FdConfigFilePath = Path.Combine(configFolderPath, "FdConfig.xlsx");
PLCTypes.AddRange(new string[] { "OmronFinsTCP", "OmronCipNet" });
NGLDTypes1.AddRange(new string[] { "面1", "面2", "面3" });
NGLDTypes2.AddRange(new string[] { "面1", "面2", "面3" });
NGLDTypes3.AddRange(new string[] { "面1", "面2", "面3" });
SetupFDDataGridView();
//取消分档 ,有单独的分档机
// LoadFDConfig();
this.tog_AutoStart.IsChecked = CommonMethods.sysConfig.AutoStart;
this.tog_AutoLogin.IsChecked = CommonMethods.sysConfig.AutoLogin;
this.tog_AutoLock.IsChecked = CommonMethods.sysConfig.AutoLock;
this.up_LockPeriod.CurrentValue = CommonMethods.sysConfig.LockPeriod;
this.tog_AutoQieHuanM.IsChecked = CommonMethods.sysConfig.AutoQieHuanM;
this.up_QieHuanPeriod.CurrentValue = CommonMethods.sysConfig.QieHuanMPeriod;
this.up_ShowSeriesCount.CurrentValue = CommonMethods.sysConfig.ShowSeriesCount;
this.tog_SwipeCardMode.IsChecked = CommonMethods.sysConfig.SwipeCardMode;
this.tog_OpenMesModel.IsChecked = CommonMethods.sysConfig.MesModeSwitching;
this.tog_GetMesParam.IsChecked = CommonMethods.sysConfig.GetMesParam;
this.tog_SaveThreadTime.IsChecked = CommonMethods.sysConfig.SaveThreadTime;
this.tog_OKSwitching.IsChecked = CommonMethods.sysConfig.OKSwitching;
this.tog_AutoStart.CheckedChanged += new System.EventHandler(this.tog_AutoStart_CheckedChanged);
this.tog_AutoLogin.CheckedChanged += new System.EventHandler(this.tog_AutoLogin_CheckedChanged);
this.tog_AutoLock.CheckedChanged += new System.EventHandler(this.tog_AutoLock_CheckedChanged);
this.up_LockPeriod.ValueChanged += new System.EventHandler(this.up_LockPeriod_ValueChanged);
this.tog_AutoQieHuanM.CheckedChanged += new System.EventHandler(this.tog_AutoQieHuanM_CheckedChanged);
this.up_QieHuanPeriod.ValueChanged += new System.EventHandler(this.up_QieHuanPeriod_ValueChanged);
this.up_ShowSeriesCount.ValueChanged += new System.EventHandler(this.up_ShowSeriesCount_ValueChanged);
this.devPath = devPath;
InitParam();
}
private string devPath = string.Empty;
private void InitParam()
{
this.txt_IP.Text = CommonMethods.plcDevice.IPAddress;
this.txt_Prot.Text = CommonMethods.plcDevice.Port.ToString();
this.cmb_PLCType.Text = CommonMethods.plcDevice.PLCType;
this.txtFactory_code.Text = CommonMethods.mesConfig.siteCode;
this.txtline_No.Text = CommonMethods.mesConfig.lineCode;
this.txtEqp_code.Text = CommonMethods.mesConfig.equipNum;
}
#region 系统相关配置
private void tog_AutoLogin_CheckedChanged(object sender, EventArgs e)
{
if (CommonMethods.SaveAutoLogin(((Toggle)sender).IsChecked))
{
CommonMethods.AddOPLog(false, "修改软件自动登录方式:" + ((Toggle)sender).IsChecked.ToString());
CommonMethods.GetSysConfig();
}
}
private void tog_AutoStart_CheckedChanged(object sender, EventArgs e)
{
if (CommonMethods.SaveAutoStart(((Toggle)sender).IsChecked))
{
//写入注册表
AutoStart(((Toggle)sender).IsChecked);
CommonMethods.AddOPLog(false, "修改软件自动启动方式:" + ((Toggle)sender).IsChecked.ToString());
CommonMethods.GetSysConfig();
}
}
private void tog_AutoLock_CheckedChanged(object sender, EventArgs e)
{
if (CommonMethods.SaveAutoLock(((Toggle)sender).IsChecked))
{
CommonMethods.AddOPLog(false, "修改无操作自动锁屏方式:" + ((Toggle)sender).IsChecked.ToString());
CommonMethods.GetSysConfig();
}
}
private void up_LockPeriod_ValueChanged(object sender, EventArgs e)
{
if (CommonMethods.SaveLockPeriod(Convert.ToInt32(((UpDownLabel)sender).CurrentValue)))
{
CommonMethods.AddOPLog(false, "修改锁屏间隔时间:" + ((UpDownLabel)sender).CurrentValue.ToString());
CommonMethods.GetSysConfig();
}
}
private void tog_AutoQieHuanM_CheckedChanged(object sender, EventArgs e)
{
if (CommonMethods.SaveAutoQieHuanM(((Toggle)sender).IsChecked))
{
CommonMethods.AddOPLog(false, "修改无操作自动切换监控界面方式:" + ((Toggle)sender).IsChecked.ToString());
CommonMethods.GetSysConfig();
}
}
private void up_QieHuanPeriod_ValueChanged(object sender, EventArgs e)
{
if (CommonMethods.SaveQieHuanMPeriod(Convert.ToInt32(((UpDownLabel)sender).CurrentValue)))
{
CommonMethods.AddOPLog(false, "修改切换监控界面间隔时间:" + ((UpDownLabel)sender).CurrentValue.ToString());
CommonMethods.GetSysConfig();
}
}
private void up_ShowSeriesCount_ValueChanged(object sender, EventArgs e)
{
if (CommonMethods.SaveShowSeriesCount(Convert.ToInt32(((UpDownLabel)sender).CurrentValue)))
{
CommonMethods.AddOPLog(false, "修改曲线显示数量:" + ((UpDownLabel)sender).CurrentValue.ToString());
CommonMethods.GetSysConfig();
}
}
private void tog_SwipeCardMode_CheckedChanged(object sender, EventArgs e)
{
if (CommonMethods.SaveSwipeCardMode(((Toggle)sender).IsChecked))
{
CommonMethods.AddOPLog(false, "修改刷卡模式:" + ((Toggle)sender).IsChecked.ToString());
CommonMethods.GetSysConfig();
if (CommonMethods.sysConfig.SwipeCardMode && CommonMethods.IsLoginOk)
{
DialogResult dialogResult1 = new FrmMsgBoxWithAck("当前已登录,是否切换刷卡模式!", "提示").ShowDialog();
if (dialogResult1 == DialogResult.OK)
{
CommonMethods.AddOPLog(false, $"切换刷卡模式成功,当前用户已注销");
CommonMethods.IsLoginOk = false;
CommonMethods.sysConfig.SwipeCardMode = true;
this.tog_SwipeCardMode.IsChecked = CommonMethods.sysConfig.SwipeCardMode;
CommonMethods.SaveSwipeCardMode(((Toggle)sender).IsChecked);
CommonMethods.GetSysConfig();
//切屏
CommonMethods.sysConfig.ScreenCutting = true;
}
else
{
CommonMethods.IsLoginOk = true;
CommonMethods.sysConfig.SwipeCardMode = false;
this.tog_SwipeCardMode.IsChecked = CommonMethods.sysConfig.SwipeCardMode;
CommonMethods.SaveSwipeCardMode(((Toggle)sender).IsChecked);
CommonMethods.GetSysConfig();
}
}
}
}
private void tog_OpenMesModel_CheckedChanged(object sender, EventArgs e)
{
if (CommonMethods.plcDevice.IsConnected && CommonMethods.sysConfig.MesModeSwitching)
{
CommonMethods.sysConfig.MesModeSwitching = true;
this.tog_OpenMesModel.IsChecked = CommonMethods.sysConfig.MesModeSwitching;
CommonMethods.SaveOpenMesModel(((Toggle)sender).IsChecked);
CommonMethods.GetSysConfig();
new FrmMsgBoxOutWithAck(2, "先停止运行再切换MES", "提示").ShowDialog();
return;
}
if (CommonMethods.plcDevice.IsConnected && !CommonMethods.sysConfig.MesModeSwitching)
{
CommonMethods.sysConfig.MesModeSwitching = false;
this.tog_OpenMesModel.IsChecked = CommonMethods.sysConfig.MesModeSwitching;
CommonMethods.SaveOpenMesModel(((Toggle)sender).IsChecked);
CommonMethods.GetSysConfig();
new FrmMsgBoxOutWithAck(2, "先停止运行再切换MES", "提示").ShowDialog();
return;
}
if (CommonMethods.SaveOpenMesModel(((Toggle)sender).IsChecked))
{
CommonMethods.AddOPLog(false, "修改MES/非MES模式切换:" + ((Toggle)sender).IsChecked.ToString());
CommonMethods.GetSysConfig();
if (CommonMethods.sysConfig.MesModeSwitching)
{
FrmLoginMes frmLoginMes = new FrmLoginMes();
if (frmLoginMes.ShowDialog() != DialogResult.OK)
{
CommonMethods.sysConfig.MesModeSwitching = false;
this.tog_OpenMesModel.IsChecked = CommonMethods.sysConfig.MesModeSwitching;
CommonMethods.SaveOpenMesModel(((Toggle)sender).IsChecked);
CommonMethods.GetSysConfig();
}
}
else
{
DialogResult dialogResult = new FrmMsgBoxWithAck("是否关闭MES模式!", "提示").ShowDialog();
if (dialogResult == DialogResult.OK)
{
CommonMethods.AddOPLog(false, $"关闭MES模式成功,MES用户已注销");
CommonMethods.sysConfig.MesModeSwitching = false;
this.tog_OpenMesModel.IsChecked = CommonMethods.sysConfig.MesModeSwitching;
CommonMethods.SaveOpenMesModel(((Toggle)sender).IsChecked);
CommonMethods.GetSysConfig();
}
else
{
CommonMethods.sysConfig.MesModeSwitching = true;
this.tog_OpenMesModel.IsChecked = CommonMethods.sysConfig.MesModeSwitching;
CommonMethods.SaveOpenMesModel(((Toggle)sender).IsChecked);
CommonMethods.GetSysConfig();
}
}
}
}
private void tog_GetMesParam_CheckedChanged(object sender, EventArgs e)
{
if (CommonMethods.SaveGetMesParam(((Toggle)sender).IsChecked))
{
CommonMethods.AddOPLog(false, "修改获取MES参数:" + ((Toggle)sender).IsChecked.ToString());
CommonMethods.GetSysConfig();
}
}
private void tog_SaveThreadTime_CheckedChanged(object sender, EventArgs e)
{
if (CommonMethods.SaveSaveThreadTime(((Toggle)sender).IsChecked))
{
CommonMethods.AddOPLog(false, "修改线程耗时日志保存:" + ((Toggle)sender).IsChecked.ToString());
CommonMethods.GetSysConfig();
}
}
/// <summary>
/// 修改程序在注册表的 键值
/// </summary>
/// <param name="isAuto"></param>
private void AutoStart(bool isAuto = true)
{
if (isAuto == true)
{
RegistryKey R_local = Registry.CurrentUser;
RegistryKey R_run = R_local.CreateSubKey(@"SOFTWARE\Microsoft\windows\CurrentVersion\Run");
R_run.SetValue("KYJPro", System.Windows.Forms.Application.ExecutablePath);
R_run.Close();
R_local.Close();
}
else
{
RegistryKey R_local = Registry.CurrentUser;
RegistryKey R_run = R_local.CreateSubKey(@"SOFTWARE\Microsoft\windows\CurrentVersion\Run");
R_run.DeleteSubKey("KYJPro", false);
R_run.Close();
R_local.Close();
}
}
#endregion
private void btn_GroupConfig_Click(object sender, EventArgs e)
{
new FrmGroupConfig().ShowDialog();
}
private void btn_VarConfig_Click(object sender, EventArgs e)
{
new FrmVariableConfig().ShowDialog();
}
private void btn_Sure_Click(object sender, EventArgs e)
{
bool result = IniConfigHelper.WriteIniData("设备参数", "IP地址", this.txt_IP.Text.Trim(), devPath);
IniConfigHelper.WriteIniData("设备参数", "端口号", this.txt_Prot.Text.Trim(), devPath);
IniConfigHelper.WriteIniData("设备参数", "PLC类型", this.cmb_PLCType.Text.Trim(), devPath);
IniConfigHelper.WriteIniData("MES配置", "工厂代码", this.txtFactory_code.Text.Trim());
IniConfigHelper.WriteIniData("MES配置", "产线编号", this.txtline_No.Text.Trim());
IniConfigHelper.WriteIniData("MES配置", "设备编号", this.txtEqp_code.Text.Trim());
if (result)
{
CommonMethods.plcDevice.IPAddress = this.txt_IP.Text.Trim();
CommonMethods.plcDevice.Port = Convert.ToInt32(this.txt_Prot.Text.Trim());
CommonMethods.plcDevice.PLCType = cmb_PLCType.Text;
CommonMethods.mesConfig.siteCode = this.txtFactory_code.Text.Trim();
CommonMethods.mesConfig.lineCode = this.txtline_No.Text.Trim();
CommonMethods.mesConfig.equipNum = this.txtEqp_code.Text.Trim();
DialogResult dialogResult = new FrmMsgBoxOutWithAck(1, "参数修改成功", "参数设置").ShowDialog();
}
else
{
new FrmMsgBoxOutWithAck(3, "通信参数设置失败", "通信设置").Show();
}
}
/// <summary>
/// 取消
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_Cancel_Click(object sender, EventArgs e)
{
this.txt_IP.Text = CommonMethods.plcDevice.IPAddress;
this.txt_Prot.Text = CommonMethods.plcDevice.Port.ToString();
this.cmb_PLCType.Text = CommonMethods.plcDevice.PLCType;
this.txtFactory_code.Text = CommonMethods.mesConfig.siteCode;
this.txtline_No.Text = CommonMethods.mesConfig.lineCode;
this.txtEqp_code.Text = CommonMethods.mesConfig.equipNum;
}
#region 减少闪烁
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000;
return cp;
}
}
#endregion
private void tog_OKSwitching_CheckedChanged(object sender, EventArgs e)
{
if (CommonMethods.plcDevice.IsConnected && CommonMethods.sysConfig.OKSwitching)
{
CommonMethods.sysConfig.OKSwitching = true;
this.tog_OKSwitching.IsChecked = CommonMethods.sysConfig.OKSwitching;
CommonMethods.SaveOpenOKModel(((Toggle)sender).IsChecked);
CommonMethods.GetSysConfig();
new FrmMsgBoxOutWithAck(2, "先停止运行再切换强制OK模式", "提示").ShowDialog();
return;
}
if (CommonMethods.plcDevice.IsConnected && !CommonMethods.sysConfig.OKSwitching)
{
CommonMethods.sysConfig.OKSwitching = false;
this.tog_OKSwitching.IsChecked = CommonMethods.sysConfig.OKSwitching;
CommonMethods.SaveOpenOKModel(((Toggle)sender).IsChecked);
CommonMethods.GetSysConfig();
new FrmMsgBoxOutWithAck(2, "先停止运行再切换强制OK模式", "提示").ShowDialog();
return;
}
if (CommonMethods.SaveOpenOKModel(((Toggle)sender).IsChecked))
{
CommonMethods.AddOPLog(false, "强制OK/正常NG模式切换:" + ((Toggle)sender).IsChecked.ToString());
CommonMethods.GetSysConfig();
if (CommonMethods.sysConfig.OKSwitching)
{
CommonMethods.sysConfig.OKSwitching = true;
this.tog_OKSwitching.IsChecked = CommonMethods.sysConfig.OKSwitching;
CommonMethods.SaveOpenOKModel(((Toggle)sender).IsChecked);
CommonMethods.GetSysConfig();
}
else
{
DialogResult dialogResult = new FrmMsgBoxWithAck("是否关闭强制OK模式!", "提示").ShowDialog();
if (dialogResult == DialogResult.OK)
{
CommonMethods.AddOPLog(false, $"关闭强制OK模式成功");
CommonMethods.sysConfig.OKSwitching = false;
this.tog_OKSwitching.IsChecked = CommonMethods.sysConfig.OKSwitching;
CommonMethods.SaveOpenOKModel(((Toggle)sender).IsChecked);
CommonMethods.GetSysConfig();
}
else
{
CommonMethods.sysConfig.OKSwitching = true;
this.tog_OKSwitching.IsChecked = CommonMethods.sysConfig.OKSwitching;
CommonMethods.SaveOpenOKModel(((Toggle)sender).IsChecked);
CommonMethods.GetSysConfig();
}
}
string OKMessage = "调用了强制结果开关,当前状态(true:启用,false:未启用)为: " + CommonMethods.sysConfig.OKSwitching.ToString();
LogMessage(OKMessage, "强制结果OK日志");
}
}
#region 分档设置
private void LoadFDConfig()
{
try
{
if (File.Exists(FdConfigFilePath))
{
using (var stream = File.OpenRead(FdConfigFilePath))
{
var devices = MiniExcel.Query<FDConfig>(stream).ToList();
fdConfigs = devices.Select(device => new FDConfig
{
FdNum = device.FdNum,
OKLD1Type = device.OKLD1Type,
OKLD2Type = device.OKLD2Type,
OKLD3Type = device.OKLD3Type,
OKLD4Type = device.OKLD4Type,
NGLD5Type = device.NGLD5Type,
NGLD6Type = device.NGLD6Type,
NGLD7Type = device.NGLD7Type,
IsFDActive = device.IsFDActive,
IsNGActive = device.IsNGActive
}).ToList();
}
}
else
{
fdConfigs = new List<FDConfig>();
}
RefreshFDDataGridView();
}
catch (Exception ex)
{
MessageBox.Show($"加载配置文件失败:{ex.Message}", "错误",
MessageBoxButtons.OK, MessageBoxIcon.Error);
fdConfigs = new List<FDConfig>();
}
}
private void SetColumnsFDReadOnly(bool readOnly)
{
foreach (DataGridViewColumn col in dgvFdConfigs.Columns)
{
// PlcNum 列始终保持只读
if (col.Name == "FdNum")
{
col.ReadOnly = true;
continue;
}
// 按钮列不需要设置 ReadOnly 属性
if (col is DataGridViewButtonColumn)
continue;
// 其他列根据参数设置
col.ReadOnly = readOnly;
}
}
/// <summary>
/// 初始化分档DataGrid
/// </summary>
private void SetupFDDataGridView()
{
// 设置基本属性
dgvFdConfigs.AutoGenerateColumns = false;
dgvFdConfigs.MultiSelect = false;
// 添加数据列
dgvFdConfigs.Columns.AddRange(new DataGridViewColumn[]
{
new DataGridViewTextBoxColumn
{
Name = "FdNum",
HeaderText = "分档编号",
DataPropertyName = "FdNum",
ReadOnly = true,
Width = 80,
ValueType = typeof(int)
},
#region 分档类型
new DataGridViewTextBoxColumn
{
Name = "OKLD1Type",
HeaderText = "OK拉带类型1",
DataPropertyName = "OKLD1Type",
Width = 120,
ValueType = typeof(string)
},
new DataGridViewTextBoxColumn
{
Name = "OKLD2Type",
HeaderText = "OK拉带类型2",
DataPropertyName = "OKLD2Type",
Width = 120,
ValueType = typeof(string)
},
new DataGridViewTextBoxColumn
{
Name = "OKLD3Type",
HeaderText = "OK拉带类型3",
DataPropertyName = "OKLD3Type",
Width = 120,
ValueType = typeof(string)
},
new DataGridViewTextBoxColumn
{
Name = "OKLD4Type",
HeaderText = "OK拉带类型4",
DataPropertyName = "OKLD4Type",
Width = 120,
ValueType = typeof(string)
},
#endregion
#region NG拉带类型
new DataGridViewComboBoxColumn
{
Name = "NGLD5Type",
HeaderText = "NG拉带类型5",
DataPropertyName = "NGLD5Type",//NG拉带
DataSource = new List<string>(NGLDTypes1), // 使用新列表避免引用问题
Width = 160,
ValueType = typeof(string),
FlatStyle = FlatStyle.Flat,
DefaultCellStyle = new DataGridViewCellStyle
{
BackColor = Color.FromArgb(14, 23, 38), // 深色背景
ForeColor = Color.White, // 白色文字
SelectionBackColor = Color.FromArgb(0, 122, 204), // 选中时的背景色
SelectionForeColor = Color.White, // 选中时的文字颜色
Font = new Font("微软雅黑", 9F) // 字体设置
}
},
new DataGridViewComboBoxColumn
{
Name = "NGLD6Type",
HeaderText = "NG拉带类型6",
DataPropertyName = "NGLD6Type",//NG拉带
DataSource = new List<string>(NGLDTypes2), // 使用新列表避免引用问题
Width = 160,
ValueType = typeof(string),
FlatStyle = FlatStyle.Flat,
DefaultCellStyle = new DataGridViewCellStyle
{
BackColor = Color.FromArgb(14, 23, 38), // 深色背景
ForeColor = Color.White, // 白色文字
SelectionBackColor = Color.FromArgb(0, 122, 204), // 选中时的背景色
SelectionForeColor = Color.White, // 选中时的文字颜色
Font = new Font("微软雅黑", 9F) // 字体设置
}
},
new DataGridViewComboBoxColumn
{
Name = "NGLD7Type",
HeaderText = "NG拉带类型7",
DataPropertyName = "NGLD7Type",//NG拉带
DataSource = new List<string>(NGLDTypes3), // 使用新列表避免引用问题
Width = 160,
ValueType = typeof(string),
FlatStyle = FlatStyle.Flat,
DefaultCellStyle = new DataGridViewCellStyle
{
BackColor = Color.FromArgb(14, 23, 38), // 深色背景
ForeColor = Color.White, // 白色文字
SelectionBackColor = Color.FromArgb(0, 122, 204), // 选中时的背景色
SelectionForeColor = Color.White, // 选中时的文字颜色
Font = new Font("微软雅黑", 9F) // 字体设置
}
},
#endregion
#region 开启分档
new DataGridViewCheckBoxColumn
{
Name = "IsFDActive",
HeaderText = "开启分档",
DataPropertyName = "IsFDActive",
Width = 80,
ValueType = typeof(bool),
TrueValue = true,
FalseValue = false
},
new DataGridViewCheckBoxColumn
{
Name = "IsNGActive",
HeaderText = "NG电池不分类排出",
DataPropertyName = "IsNGActive",
Width = 80,
ValueType = typeof(bool),
TrueValue = true,
FalseValue = false
},
#endregion
new DataGridViewButtonColumn
{
Name = "Edit",
HeaderText = "操作",
Text = "修改",
UseColumnTextForButtonValue = true,
Width = 80
}
});
// 设置列为只读
SetColumnsFDReadOnly(false);
// 绑定事件
dgvFdConfigs.CellClick += DgvFdConfigs_CellClick;
dgvFdConfigs.CellValidating += DgvFdConfigs_CellValidating;
dgvFdConfigs.CellValueChanged += DgvFdConfigs_CellValueChanged;
dgvFdConfigs.DataError += DgvFdConfigs_DataError;
// 设置自动调整行高
dgvFdConfigs.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells;
dgvFdConfigs.RowHeadersVisible = false;
}
private void DgvFdConfigs_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex < 0) return;
var columnName = dgvFdConfigs.Columns[e.ColumnIndex].Name;
// 如果正在编辑其他行,阻止操作
if (isFDEditing && editingFDRowIndex != e.RowIndex)
{
MessageBox.Show("请先完成当前编辑操作", "提示",
MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}
var fdConfig = fdConfigs[e.RowIndex];
switch (columnName)
{
case "Edit":
HandleFDEdit(e.RowIndex);
break;
case "CommConfig":
HandleCommFdConfig(fdConfig);
break;
case "VariableConfig":
HandleVariableFdConfig(fdConfig);
break;
case "Delete":
HandleFdDelete(e.RowIndex, fdConfig);
break;
}
}
private void HandleFDEdit(int rowIndex)
{
if (!isFDEditing)
{
// 开始编辑
isFDEditing = true;
editingFDRowIndex = rowIndex;
SetColumnsFDReadOnly(false); // 设置其他列为可编辑
// 更改编辑按钮文本为"保存"
dgvFdConfigs.Rows[rowIndex].Cells["Edit"].Value = "保存";
// 禁用其他行的按钮
foreach (DataGridViewRow row in dgvFdConfigs.Rows)
{
if (row.Index != rowIndex)
{
if (row.Cells["Edit"] is DataGridViewButtonCell editCell)
editCell.Value = "";
if (row.Cells["CommConfig"] is DataGridViewButtonCell configCell)
configCell.Value = "";
if (row.Cells["Delete"] is DataGridViewButtonCell deleteCell)
deleteCell.Value = "";
}
}
// 禁用添加按钮
//btAddPLC.Enabled = false;
}
else if (rowIndex == editingFDRowIndex)
{
// 保存更改
//if (ValidateRow(rowIndex))
{
SaveFDChanges(rowIndex);
EndFDEditing();
}
}
}
private void EndFDEditing()
{
isFDEditing = false;
editingFDRowIndex = -1;
SetColumnsFDReadOnly(true);
// 恢复所有按钮文本和状态
foreach (DataGridViewRow row in dgvFdConfigs.Rows)
{
row.Cells["Edit"].Value = "编辑";
// row.Cells["CommConfig"].Value = "通信组";
// row.Cells["Delete"].Value = "删除";
}
// 启用添加按钮
//btAddPLC.Enabled = true;
}
private void HandleCommFdConfig(FDConfig fdconfig)
{
}
private void HandleVariableFdConfig(FDConfig fdconfig)
{
}
private void HandleFdDelete(int rowIndex, FDConfig fdconfig)
{
if (MessageBox.Show($"确定要删除 分档 {fdconfig.FdNum} 吗?", "确认删除",
MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
fdConfigs.RemoveAt(rowIndex);
SaveFDConfig();
RefreshFDDataGridView();
}
}
private void SaveFDChanges(int rowIndex)
{
try
{
var row = dgvFdConfigs.Rows[rowIndex];
var config = fdConfigs[rowIndex];
// 更新配置对象
config.OKLD1Type = row.Cells["OKLD1Type"].Value?.ToString() ?? "";
config.OKLD2Type = row.Cells["OKLD2Type"].Value?.ToString() ?? "";
config.OKLD3Type = row.Cells["OKLD3Type"].Value?.ToString() ?? "";
config.OKLD4Type = row.Cells["OKLD4Type"].Value?.ToString() ?? "";
config.NGLD5Type = row.Cells["NGLD5Type"].Value?.ToString() ?? "";
config.NGLD6Type = row.Cells["NGLD6Type"].Value?.ToString() ?? "";
config.NGLD7Type = row.Cells["NGLD7Type"].Value?.ToString() ?? "";
config.IsFDActive = row.Cells["IsFDActive"].Value != null &&
Convert.ToBoolean(row.Cells["IsFDActive"].Value);
config.IsNGActive = row.Cells["IsNGActive"].Value != null &&
Convert.ToBoolean(row.Cells["IsNGActive"].Value);
// 保存更改
SaveFDConfig();
MessageBox.Show("保存成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch (Exception ex)
{
// 这里只显示错误信息,不再抛出异常
MessageBox.Show($"保存失败:{ex.Message}", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void DgvFdConfigs_CellValidating(object sender, DataGridViewCellValidatingEventArgs e)
{
if (e.RowIndex < 0 || !isFDEditing || e.RowIndex != editingFDRowIndex) return;
string newValue = e.FormattedValue.ToString();
var column = dgvFdConfigs.Columns[e.ColumnIndex];
}
private void DgvFdConfigs_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex < 0) return;
dgvFdConfigs.Rows[e.RowIndex].ErrorText = string.Empty;
}
private void DgvFdConfigs_DataError(object sender, DataGridViewDataErrorEventArgs e)
{
e.ThrowException = false;
string columnName = dgvFdConfigs.Columns[e.ColumnIndex].HeaderText;
MessageBox.Show($"'{columnName}'列的输入数据格式不正确", "数据错误",
MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
private void SaveFDConfig()
{
try
{
// 创建备份
if (File.Exists(FdConfigFilePath))
{
string backupFile = $"{FdConfigFilePath}.bak";
File.Copy(FdConfigFilePath, backupFile, true);
}
// 直接保存到目标文件
MiniExcel.SaveAs(FdConfigFilePath, fdConfigs, overwriteFile: true);
}
catch (IOException ex)
{
MessageBox.Show($"保存文件时发生IO错误:{ex.Message}\n请确保文件未被其他程序占用。",
"保存错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
throw;
}
catch (UnauthorizedAccessException ex)
{
MessageBox.Show($"没有足够的权限保存文件:{ex.Message}\n请确保有写入权限。",
"权限错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
throw;
}
catch (Exception ex)
{
MessageBox.Show($"保存配置时发生错误:{ex.Message}",
"保存错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
throw;
}
}
private void RefreshFDDataGridView()
{
dgvFdConfigs.DataSource = null;
dgvFdConfigs.DataSource = new BindingList<FDConfig>(fdConfigs);
}
#endregion
}
}
+251
View File
@@ -0,0 +1,251 @@
<?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>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="title4.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAGgAAAAbCAYAAACQqsrOAAAABGdBTUEAALGPC/xhBQAABNpJREFUaEPt
2ltsVEUcx/HZUktF2iKVIHjDijYooFy8khhiNMRogg+gYoxGHopKjDFqgzTGSyRpUkLRtCa2iVpFq32g
GAHvb0Uu0RSN3ShVoSFIbEJLbVpp6Z7x+5+ds55uZ3VLtpfd7MMnc2a6Zzv7//VcunOUOqNHo8AxlvaW
bTo8aTknnMB8vIcLTH9IV6ApJqKbcnuHPisK95wuPnSqZ2nFD7/zC37LOmf7UegKwuVCNOBW0x/UG9SA
1rTatP42Qv2eLn2zXfPmWefOwyokdQTl4nU8ZPr9eqXq9wbU3wTSLzzbRuWdHHiaNy7JGrXl6IIEVImk
T3GbUIGQ6tUl6IRWf0FafzuqOrBf2vCLMYFC2AUJZx9yYX7mnHDAg6jDVNXlFahu70fVTRCiiyOnS1qr
W3+BKYF904ZfjAkkZx0JR46gK+yY4ZywJdebXZilOjl6OvUn0AkcUZ1eUWDftBIsyARYhgHIdWe1HYtx
ThhX4nNcZ/on9BZ1giPGIJBYa5xWf3jX2P3SUnxRxlEhfoUcPW/YsWFcEy5EM+4x/WN6nTrmedBGB6GY
bdMO0V9l90tbrsKMk0ZION8jz44NEz9ZuYa8hWdMv927UbXrPlodRSjSHvH7XvR1ac5VmHFQBgmnB/Pt
2Ajxk30BtchRbd5cFfaOqzZCaSOMMKQ124yF9duB/dKaqzBjbBH6IAGts2NOwYnej08xXbXqfHXYOwBt
tAZEx/axnRfYN625CjOGpiEMCafOjiXkT/Im7Mflpn/Iex86iqPFYPugGTuOWXa/jOAqzBh6BxLOT5Cw
XK+JkQleigO4zUy4xStXLQTSQhgj9eEG87oM4irMGHkYEo6c3hbYsf8kE3wMcmqbor7xcnEUOoG9/ofK
JK7CjIFS9EICWm/H/pdMUO7cduAJM+E93gqchVZ7sScSbf+1wbwug7gKk2L5aIWEs8OOJcWf5Gx8i6Wm
38xprpkwxE5BSKY1+pFRpzlXYVKsFhLOLyiwY0kJTnQlvkKRavRCqjGym1YbH9m2kaAM72dkzOKdqzAp
tAYSzhkssWNJi59sObaZ7QavWL0b6YA2GvyWoKLbHwb2S2uuwqTIPHRDAtpox0YlfrLnoRFrTb+e61G9
N6jqCKSOYES9tH4/khHXI1dhUkC+ujkICWenHRs114Qvw9e42vRrIuWqlkBqCETaYbge1UbS/nrkKkwK
VEHCOYoZdmzUnBPG3fgY+Wp7JITd0Go7IUlbLdtROdVnOxZWhB/hzdZmxTwLWT4YxC1wFj8ZrnB8L2Kz
2d4aKVZVXI+qCEVsta0187VT8peSNdLzcBY+Wa5gfOfjA9xp+pWRhSgLClUOPT77lT+/nPPyye8Wb26T
JdumrJhtkKVsZ+GT5QomSB61krWhuYGxjOMqzGThnHCc1ajBElyPxVgEWW29FgtQCllVlRsLCbUEsio7
D/IFrNx4XAIJeg4uhvxzLF+6XoRizMQMyNK5LBrK/1nTIc/hTYMc0VMt+SZd7jjliSP5JkTkIGS5PkdC
Wk9ezgnHkQ+8EVvwKl6CPOUjT/s8B1m0ewpPogzr8SjkMa0HsAb34V7IzcdduAO3YwVuxnLI3aAEL6FL
4FdBQpaAJVgJVQKVMCVICdEPT0LzA5OgXJ8jIVdhJget/gHCnYJyKYtzSwAAAABJRU5ErkJggg==
</value>
</data>
<data name="title3.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAGgAAAAbCAYAAACQqsrOAAAABGdBTUEAALGPC/xhBQAABNpJREFUaEPt
2ltsVEUcx/HZUktF2iKVIHjDijYooFy8khhiNMRogg+gYoxGHopKjDFqgzTGSyRpUkLRtCa2iVpFq32g
GAHvb0Uu0RSN3ShVoSFIbEJLbVpp6Z7x+5+ds55uZ3VLtpfd7MMnc2a6Zzv7//VcunOUOqNHo8AxlvaW
bTo8aTknnMB8vIcLTH9IV6ApJqKbcnuHPisK95wuPnSqZ2nFD7/zC37LOmf7UegKwuVCNOBW0x/UG9SA
1rTatP42Qv2eLn2zXfPmWefOwyokdQTl4nU8ZPr9eqXq9wbU3wTSLzzbRuWdHHiaNy7JGrXl6IIEVImk
T3GbUIGQ6tUl6IRWf0FafzuqOrBf2vCLMYFC2AUJZx9yYX7mnHDAg6jDVNXlFahu70fVTRCiiyOnS1qr
W3+BKYF904ZfjAkkZx0JR46gK+yY4ZywJdebXZilOjl6OvUn0AkcUZ1eUWDftBIsyARYhgHIdWe1HYtx
ThhX4nNcZ/on9BZ1giPGIJBYa5xWf3jX2P3SUnxRxlEhfoUcPW/YsWFcEy5EM+4x/WN6nTrmedBGB6GY
bdMO0V9l90tbrsKMk0ZION8jz44NEz9ZuYa8hWdMv927UbXrPlodRSjSHvH7XvR1ac5VmHFQBgmnB/Pt
2Ajxk30BtchRbd5cFfaOqzZCaSOMMKQ124yF9duB/dKaqzBjbBH6IAGts2NOwYnej08xXbXqfHXYOwBt
tAZEx/axnRfYN625CjOGpiEMCafOjiXkT/Im7Mflpn/Iex86iqPFYPugGTuOWXa/jOAqzBh6BxLOT5Cw
XK+JkQleigO4zUy4xStXLQTSQhgj9eEG87oM4irMGHkYEo6c3hbYsf8kE3wMcmqbor7xcnEUOoG9/ofK
JK7CjIFS9EICWm/H/pdMUO7cduAJM+E93gqchVZ7sScSbf+1wbwug7gKk2L5aIWEs8OOJcWf5Gx8i6Wm
38xprpkwxE5BSKY1+pFRpzlXYVKsFhLOLyiwY0kJTnQlvkKRavRCqjGym1YbH9m2kaAM72dkzOKdqzAp
tAYSzhkssWNJi59sObaZ7QavWL0b6YA2GvyWoKLbHwb2S2uuwqTIPHRDAtpox0YlfrLnoRFrTb+e61G9
N6jqCKSOYES9tH4/khHXI1dhUkC+ujkICWenHRs114Qvw9e42vRrIuWqlkBqCETaYbge1UbS/nrkKkwK
VEHCOYoZdmzUnBPG3fgY+Wp7JITd0Go7IUlbLdtROdVnOxZWhB/hzdZmxTwLWT4YxC1wFj8ZrnB8L2Kz
2d4aKVZVXI+qCEVsta0187VT8peSNdLzcBY+Wa5gfOfjA9xp+pWRhSgLClUOPT77lT+/nPPyye8Wb26T
JdumrJhtkKVsZ+GT5QomSB61krWhuYGxjOMqzGThnHCc1ajBElyPxVgEWW29FgtQCllVlRsLCbUEsio7
D/IFrNx4XAIJeg4uhvxzLF+6XoRizMQMyNK5LBrK/1nTIc/hTYMc0VMt+SZd7jjliSP5JkTkIGS5PkdC
Wk9ezgnHkQ+8EVvwKl6CPOUjT/s8B1m0ewpPogzr8SjkMa0HsAb34V7IzcdduAO3YwVuxnLI3aAEL6FL
4FdBQpaAJVgJVQKVMCVICdEPT0LzA5OgXJ8jIVdhJget/gHCnYJyKYtzSwAAAABJRU5ErkJggg==
</value>
</data>
<data name="title2.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAGgAAAAbCAYAAACQqsrOAAAABGdBTUEAALGPC/xhBQAABNpJREFUaEPt
2ltsVEUcx/HZUktF2iKVIHjDijYooFy8khhiNMRogg+gYoxGHopKjDFqgzTGSyRpUkLRtCa2iVpFq32g
GAHvb0Uu0RSN3ShVoSFIbEJLbVpp6Z7x+5+ds55uZ3VLtpfd7MMnc2a6Zzv7//VcunOUOqNHo8AxlvaW
bTo8aTknnMB8vIcLTH9IV6ApJqKbcnuHPisK95wuPnSqZ2nFD7/zC37LOmf7UegKwuVCNOBW0x/UG9SA
1rTatP42Qv2eLn2zXfPmWefOwyokdQTl4nU8ZPr9eqXq9wbU3wTSLzzbRuWdHHiaNy7JGrXl6IIEVImk
T3GbUIGQ6tUl6IRWf0FafzuqOrBf2vCLMYFC2AUJZx9yYX7mnHDAg6jDVNXlFahu70fVTRCiiyOnS1qr
W3+BKYF904ZfjAkkZx0JR46gK+yY4ZywJdebXZilOjl6OvUn0AkcUZ1eUWDftBIsyARYhgHIdWe1HYtx
ThhX4nNcZ/on9BZ1giPGIJBYa5xWf3jX2P3SUnxRxlEhfoUcPW/YsWFcEy5EM+4x/WN6nTrmedBGB6GY
bdMO0V9l90tbrsKMk0ZION8jz44NEz9ZuYa8hWdMv927UbXrPlodRSjSHvH7XvR1ac5VmHFQBgmnB/Pt
2Ajxk30BtchRbd5cFfaOqzZCaSOMMKQ124yF9duB/dKaqzBjbBH6IAGts2NOwYnej08xXbXqfHXYOwBt
tAZEx/axnRfYN625CjOGpiEMCafOjiXkT/Im7Mflpn/Iex86iqPFYPugGTuOWXa/jOAqzBh6BxLOT5Cw
XK+JkQleigO4zUy4xStXLQTSQhgj9eEG87oM4irMGHkYEo6c3hbYsf8kE3wMcmqbor7xcnEUOoG9/ofK
JK7CjIFS9EICWm/H/pdMUO7cduAJM+E93gqchVZ7sScSbf+1wbwug7gKk2L5aIWEs8OOJcWf5Gx8i6Wm
38xprpkwxE5BSKY1+pFRpzlXYVKsFhLOLyiwY0kJTnQlvkKRavRCqjGym1YbH9m2kaAM72dkzOKdqzAp
tAYSzhkssWNJi59sObaZ7QavWL0b6YA2GvyWoKLbHwb2S2uuwqTIPHRDAtpox0YlfrLnoRFrTb+e61G9
N6jqCKSOYES9tH4/khHXI1dhUkC+ujkICWenHRs114Qvw9e42vRrIuWqlkBqCETaYbge1UbS/nrkKkwK
VEHCOYoZdmzUnBPG3fgY+Wp7JITd0Go7IUlbLdtROdVnOxZWhB/hzdZmxTwLWT4YxC1wFj8ZrnB8L2Kz
2d4aKVZVXI+qCEVsta0187VT8peSNdLzcBY+Wa5gfOfjA9xp+pWRhSgLClUOPT77lT+/nPPyye8Wb26T
JdumrJhtkKVsZ+GT5QomSB61krWhuYGxjOMqzGThnHCc1ajBElyPxVgEWW29FgtQCllVlRsLCbUEsio7
D/IFrNx4XAIJeg4uhvxzLF+6XoRizMQMyNK5LBrK/1nTIc/hTYMc0VMt+SZd7jjliSP5JkTkIGS5PkdC
Wk9ezgnHkQ+8EVvwKl6CPOUjT/s8B1m0ewpPogzr8SjkMa0HsAb34V7IzcdduAO3YwVuxnLI3aAEL6FL
4FdBQpaAJVgJVQKVMCVICdEPT0LzA5OgXJ8jIVdhJget/gHCnYJyKYtzSwAAAABJRU5ErkJggg==
</value>
</data>
<data name="title1.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAGgAAAAbCAYAAACQqsrOAAAABGdBTUEAALGPC/xhBQAABNpJREFUaEPt
2ltsVEUcx/HZUktF2iKVIHjDijYooFy8khhiNMRogg+gYoxGHopKjDFqgzTGSyRpUkLRtCa2iVpFq32g
GAHvb0Uu0RSN3ShVoSFIbEJLbVpp6Z7x+5+ds55uZ3VLtpfd7MMnc2a6Zzv7//VcunOUOqNHo8AxlvaW
bTo8aTknnMB8vIcLTH9IV6ApJqKbcnuHPisK95wuPnSqZ2nFD7/zC37LOmf7UegKwuVCNOBW0x/UG9SA
1rTatP42Qv2eLn2zXfPmWefOwyokdQTl4nU8ZPr9eqXq9wbU3wTSLzzbRuWdHHiaNy7JGrXl6IIEVImk
T3GbUIGQ6tUl6IRWf0FafzuqOrBf2vCLMYFC2AUJZx9yYX7mnHDAg6jDVNXlFahu70fVTRCiiyOnS1qr
W3+BKYF904ZfjAkkZx0JR46gK+yY4ZywJdebXZilOjl6OvUn0AkcUZ1eUWDftBIsyARYhgHIdWe1HYtx
ThhX4nNcZ/on9BZ1giPGIJBYa5xWf3jX2P3SUnxRxlEhfoUcPW/YsWFcEy5EM+4x/WN6nTrmedBGB6GY
bdMO0V9l90tbrsKMk0ZION8jz44NEz9ZuYa8hWdMv927UbXrPlodRSjSHvH7XvR1ac5VmHFQBgmnB/Pt
2Ajxk30BtchRbd5cFfaOqzZCaSOMMKQ124yF9duB/dKaqzBjbBH6IAGts2NOwYnej08xXbXqfHXYOwBt
tAZEx/axnRfYN625CjOGpiEMCafOjiXkT/Im7Mflpn/Iex86iqPFYPugGTuOWXa/jOAqzBh6BxLOT5Cw
XK+JkQleigO4zUy4xStXLQTSQhgj9eEG87oM4irMGHkYEo6c3hbYsf8kE3wMcmqbor7xcnEUOoG9/ofK
JK7CjIFS9EICWm/H/pdMUO7cduAJM+E93gqchVZ7sScSbf+1wbwug7gKk2L5aIWEs8OOJcWf5Gx8i6Wm
38xprpkwxE5BSKY1+pFRpzlXYVKsFhLOLyiwY0kJTnQlvkKRavRCqjGym1YbH9m2kaAM72dkzOKdqzAp
tAYSzhkssWNJi59sObaZ7QavWL0b6YA2GvyWoKLbHwb2S2uuwqTIPHRDAtpox0YlfrLnoRFrTb+e61G9
N6jqCKSOYES9tH4/khHXI1dhUkC+ujkICWenHRs114Qvw9e42vRrIuWqlkBqCETaYbge1UbS/nrkKkwK
VEHCOYoZdmzUnBPG3fgY+Wp7JITd0Go7IUlbLdtROdVnOxZWhB/hzdZmxTwLWT4YxC1wFj8ZrnB8L2Kz
2d4aKVZVXI+qCEVsta0187VT8peSNdLzcBY+Wa5gfOfjA9xp+pWRhSgLClUOPT77lT+/nPPyye8Wb26T
JdumrJhtkKVsZ+GT5QomSB61krWhuYGxjOMqzGThnHCc1ajBElyPxVgEWW29FgtQCllVlRsLCbUEsio7
D/IFrNx4XAIJeg4uhvxzLF+6XoRizMQMyNK5LBrK/1nTIc/hTYMc0VMt+SZd7jjliSP5JkTkIGS5PkdC
Wk9ezgnHkQ+8EVvwKl6CPOUjT/s8B1m0ewpPogzr8SjkMa0HsAb34V7IzcdduAO3YwVuxnLI3aAEL6FL
4FdBQpaAJVgJVQKVMCVICdEPT0LzA5OgXJ8jIVdhJget/gHCnYJyKYtzSwAAAABJRU5ErkJggg==
</value>
</data>
<data name="title5.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAGgAAAAbCAYAAACQqsrOAAAABGdBTUEAALGPC/xhBQAABNpJREFUaEPt
2ltsVEUcx/HZUktF2iKVIHjDijYooFy8khhiNMRogg+gYoxGHopKjDFqgzTGSyRpUkLRtCa2iVpFq32g
GAHvb0Uu0RSN3ShVoSFIbEJLbVpp6Z7x+5+ds55uZ3VLtpfd7MMnc2a6Zzv7//VcunOUOqNHo8AxlvaW
bTo8aTknnMB8vIcLTH9IV6ApJqKbcnuHPisK95wuPnSqZ2nFD7/zC37LOmf7UegKwuVCNOBW0x/UG9SA
1rTatP42Qv2eLn2zXfPmWefOwyokdQTl4nU8ZPr9eqXq9wbU3wTSLzzbRuWdHHiaNy7JGrXl6IIEVImk
T3GbUIGQ6tUl6IRWf0FafzuqOrBf2vCLMYFC2AUJZx9yYX7mnHDAg6jDVNXlFahu70fVTRCiiyOnS1qr
W3+BKYF904ZfjAkkZx0JR46gK+yY4ZywJdebXZilOjl6OvUn0AkcUZ1eUWDftBIsyARYhgHIdWe1HYtx
ThhX4nNcZ/on9BZ1giPGIJBYa5xWf3jX2P3SUnxRxlEhfoUcPW/YsWFcEy5EM+4x/WN6nTrmedBGB6GY
bdMO0V9l90tbrsKMk0ZION8jz44NEz9ZuYa8hWdMv927UbXrPlodRSjSHvH7XvR1ac5VmHFQBgmnB/Pt
2Ajxk30BtchRbd5cFfaOqzZCaSOMMKQ124yF9duB/dKaqzBjbBH6IAGts2NOwYnej08xXbXqfHXYOwBt
tAZEx/axnRfYN625CjOGpiEMCafOjiXkT/Im7Mflpn/Iex86iqPFYPugGTuOWXa/jOAqzBh6BxLOT5Cw
XK+JkQleigO4zUy4xStXLQTSQhgj9eEG87oM4irMGHkYEo6c3hbYsf8kE3wMcmqbor7xcnEUOoG9/ofK
JK7CjIFS9EICWm/H/pdMUO7cduAJM+E93gqchVZ7sScSbf+1wbwug7gKk2L5aIWEs8OOJcWf5Gx8i6Wm
38xprpkwxE5BSKY1+pFRpzlXYVKsFhLOLyiwY0kJTnQlvkKRavRCqjGym1YbH9m2kaAM72dkzOKdqzAp
tAYSzhkssWNJi59sObaZ7QavWL0b6YA2GvyWoKLbHwb2S2uuwqTIPHRDAtpox0YlfrLnoRFrTb+e61G9
N6jqCKSOYES9tH4/khHXI1dhUkC+ujkICWenHRs114Qvw9e42vRrIuWqlkBqCETaYbge1UbS/nrkKkwK
VEHCOYoZdmzUnBPG3fgY+Wp7JITd0Go7IUlbLdtROdVnOxZWhB/hzdZmxTwLWT4YxC1wFj8ZrnB8L2Kz
2d4aKVZVXI+qCEVsta0187VT8peSNdLzcBY+Wa5gfOfjA9xp+pWRhSgLClUOPT77lT+/nPPyye8Wb26T
JdumrJhtkKVsZ+GT5QomSB61krWhuYGxjOMqzGThnHCc1ajBElyPxVgEWW29FgtQCllVlRsLCbUEsio7
D/IFrNx4XAIJeg4uhvxzLF+6XoRizMQMyNK5LBrK/1nTIc/hTYMc0VMt+SZd7jjliSP5JkTkIGS5PkdC
Wk9ezgnHkQ+8EVvwKl6CPOUjT/s8B1m0ewpPogzr8SjkMa0HsAb34V7IzcdduAO3YwVuxnLI3aAEL6FL
4FdBQpaAJVgJVQKVMCVICdEPT0LzA5OgXJ8jIVdhJget/gHCnYJyKYtzSwAAAABJRU5ErkJggg==
</value>
</data>
</root>
+636
View File
@@ -0,0 +1,636 @@
namespace LargeSquareOne
{
partial class FrmRecipe
{
/// <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()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.dgvProdModel = new System.Windows.Forms.DataGridView();
this.ModelName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.MaterialCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.dgvPara = new System.Windows.Forms.DataGridView();
this.ParaValueMax = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Uint = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn48 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.ChallengeButton = new System.Windows.Forms.Button();
this.label10 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.ChallengeCodeText = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.CodeText4 = new System.Windows.Forms.TextBox();
this.CodeText3 = new System.Windows.Forms.TextBox();
this.CodeText2 = new System.Windows.Forms.TextBox();
this.CodeText1 = new System.Windows.Forms.TextBox();
this.txtMaterialCode = new System.Windows.Forms.TextBox();
this.btnDelProductModel = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.txtProductModel = new System.Windows.Forms.TextBox();
this.lb_Model = new System.Windows.Forms.Label();
this.btn_Save = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.btn_Add = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvProdModel)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
this.splitContainer2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvPara)).BeginInit();
this.SuspendLayout();
//
// splitContainer1
//
this.splitContainer1.BackColor = System.Drawing.Color.Transparent;
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
this.splitContainer1.IsSplitterFixed = true;
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.dgvProdModel);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
this.splitContainer1.Size = new System.Drawing.Size(1370, 734);
this.splitContainer1.SplitterDistance = 334;
this.splitContainer1.SplitterWidth = 1;
this.splitContainer1.TabIndex = 0;
//
// dgvProdModel
//
this.dgvProdModel.AllowUserToAddRows = false;
this.dgvProdModel.AllowUserToDeleteRows = false;
this.dgvProdModel.AllowUserToResizeRows = false;
this.dgvProdModel.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.dgvProdModel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.dgvProdModel.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvProdModel.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dgvProdModel.ColumnHeadersHeight = 40;
this.dgvProdModel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dgvProdModel.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.ModelName,
this.MaterialCode,
this.Column1});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvProdModel.DefaultCellStyle = dataGridViewCellStyle2;
this.dgvProdModel.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvProdModel.EnableHeadersVisualStyles = false;
this.dgvProdModel.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.dgvProdModel.Location = new System.Drawing.Point(0, 0);
this.dgvProdModel.Name = "dgvProdModel";
this.dgvProdModel.ReadOnly = true;
this.dgvProdModel.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvProdModel.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
this.dgvProdModel.RowHeadersWidth = 55;
this.dgvProdModel.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
this.dgvProdModel.RowTemplate.Height = 40;
this.dgvProdModel.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvProdModel.Size = new System.Drawing.Size(334, 734);
this.dgvProdModel.TabIndex = 27;
this.dgvProdModel.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvProdModel_CellClick);
this.dgvProdModel.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgvProdModel_RowPostPaint);
//
// ModelName
//
this.ModelName.DataPropertyName = "ModelName";
this.ModelName.FillWeight = 136.0544F;
this.ModelName.HeaderText = "生产型号";
this.ModelName.Name = "ModelName";
this.ModelName.ReadOnly = true;
this.ModelName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// MaterialCode
//
this.MaterialCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.MaterialCode.DataPropertyName = "MaterialCode";
this.MaterialCode.FillWeight = 63.94557F;
this.MaterialCode.HeaderText = "物料编码";
this.MaterialCode.Name = "MaterialCode";
this.MaterialCode.ReadOnly = true;
//
// Column1
//
this.Column1.DataPropertyName = "Remark";
this.Column1.HeaderText = "备注";
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.Visible = false;
//
// splitContainer2
//
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
this.splitContainer2.IsSplitterFixed = true;
this.splitContainer2.Location = new System.Drawing.Point(0, 0);
this.splitContainer2.Name = "splitContainer2";
//
// splitContainer2.Panel1
//
this.splitContainer2.Panel1.Controls.Add(this.dgvPara);
//
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.AutoScroll = true;
this.splitContainer2.Panel2.Controls.Add(this.comboBox1);
this.splitContainer2.Panel2.Controls.Add(this.comboBox2);
this.splitContainer2.Panel2.Controls.Add(this.ChallengeButton);
this.splitContainer2.Panel2.Controls.Add(this.label10);
this.splitContainer2.Panel2.Controls.Add(this.label9);
this.splitContainer2.Panel2.Controls.Add(this.label8);
this.splitContainer2.Panel2.Controls.Add(this.ChallengeCodeText);
this.splitContainer2.Panel2.Controls.Add(this.button1);
this.splitContainer2.Panel2.Controls.Add(this.label7);
this.splitContainer2.Panel2.Controls.Add(this.label6);
this.splitContainer2.Panel2.Controls.Add(this.label5);
this.splitContainer2.Panel2.Controls.Add(this.label3);
this.splitContainer2.Panel2.Controls.Add(this.CodeText4);
this.splitContainer2.Panel2.Controls.Add(this.CodeText3);
this.splitContainer2.Panel2.Controls.Add(this.CodeText2);
this.splitContainer2.Panel2.Controls.Add(this.CodeText1);
this.splitContainer2.Panel2.Controls.Add(this.txtMaterialCode);
this.splitContainer2.Panel2.Controls.Add(this.btnDelProductModel);
this.splitContainer2.Panel2.Controls.Add(this.label4);
this.splitContainer2.Panel2.Controls.Add(this.txtProductModel);
this.splitContainer2.Panel2.Controls.Add(this.lb_Model);
this.splitContainer2.Panel2.Controls.Add(this.btn_Save);
this.splitContainer2.Panel2.Controls.Add(this.label1);
this.splitContainer2.Panel2.Controls.Add(this.btn_Add);
this.splitContainer2.Panel2.Controls.Add(this.label2);
this.splitContainer2.Size = new System.Drawing.Size(1035, 734);
this.splitContainer2.SplitterDistance = 757;
this.splitContainer2.SplitterWidth = 1;
this.splitContainer2.TabIndex = 0;
//
// dgvPara
//
this.dgvPara.AllowUserToAddRows = false;
this.dgvPara.AllowUserToDeleteRows = false;
this.dgvPara.AllowUserToResizeRows = false;
this.dgvPara.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.dgvPara.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.dgvPara.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvPara.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
this.dgvPara.ColumnHeadersHeight = 40;
this.dgvPara.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dgvPara.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.ParaValueMax,
this.Uint,
this.dataGridViewTextBoxColumn48});
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvPara.DefaultCellStyle = dataGridViewCellStyle5;
this.dgvPara.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvPara.EnableHeadersVisualStyles = false;
this.dgvPara.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.dgvPara.Location = new System.Drawing.Point(0, 0);
this.dgvPara.Name = "dgvPara";
this.dgvPara.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle6.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvPara.RowHeadersDefaultCellStyle = dataGridViewCellStyle6;
this.dgvPara.RowHeadersWidth = 55;
this.dgvPara.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
this.dgvPara.RowTemplate.Height = 40;
this.dgvPara.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.False;
this.dgvPara.Size = new System.Drawing.Size(757, 734);
this.dgvPara.TabIndex = 26;
this.dgvPara.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvPara_CellClick);
this.dgvPara.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgvPara_RowPostPaint);
//
// ParaValueMax
//
this.ParaValueMax.DataPropertyName = "ChallengeBarCode";
this.ParaValueMax.HeaderText = "极限件条码";
this.ParaValueMax.Name = "ParaValueMax";
this.ParaValueMax.Width = 525;
//
// Uint
//
this.Uint.DataPropertyName = "CodeMessage";
this.Uint.HeaderText = "芯包信息";
this.Uint.Name = "Uint";
this.Uint.ReadOnly = true;
//
// dataGridViewTextBoxColumn48
//
this.dataGridViewTextBoxColumn48.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.dataGridViewTextBoxColumn48.DataPropertyName = "WeldingCCD";
this.dataGridViewTextBoxColumn48.HeaderText = "工位";
this.dataGridViewTextBoxColumn48.Name = "dataGridViewTextBoxColumn48";
this.dataGridViewTextBoxColumn48.ReadOnly = true;
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"芯包"});
this.comboBox1.Location = new System.Drawing.Point(104, 640);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(121, 28);
this.comboBox1.TabIndex = 27;
//
// comboBox2
//
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Items.AddRange(new object[] {
"外观检"});
this.comboBox2.Location = new System.Drawing.Point(104, 682);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(121, 28);
this.comboBox2.TabIndex = 28;
//
// ChallengeButton
//
this.ChallengeButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.ChallengeButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.ChallengeButton.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.ChallengeButton.ForeColor = System.Drawing.Color.White;
this.ChallengeButton.Location = new System.Drawing.Point(24, 732);
this.ChallengeButton.Name = "ChallengeButton";
this.ChallengeButton.Size = new System.Drawing.Size(253, 36);
this.ChallengeButton.TabIndex = 42;
this.ChallengeButton.Text = "添加条码";
this.ChallengeButton.UseVisualStyleBackColor = false;
this.ChallengeButton.Click += new System.EventHandler(this.ChallengeButton_Click);
//
// label10
//
this.label10.AutoSize = true;
this.label10.ForeColor = System.Drawing.Color.White;
this.label10.Location = new System.Drawing.Point(16, 685);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(51, 20);
this.label10.TabIndex = 41;
this.label10.Text = "工位:";
//
// label9
//
this.label9.AutoSize = true;
this.label9.ForeColor = System.Drawing.Color.White;
this.label9.Location = new System.Drawing.Point(14, 643);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(79, 20);
this.label9.TabIndex = 39;
this.label9.Text = "条码信息:";
//
// label8
//
this.label8.AutoSize = true;
this.label8.ForeColor = System.Drawing.Color.White;
this.label8.Location = new System.Drawing.Point(11, 599);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(93, 20);
this.label8.TabIndex = 37;
this.label8.Text = "极限件条码:";
//
// ChallengeCodeText
//
this.ChallengeCodeText.Font = new System.Drawing.Font("微软雅黑", 12F);
this.ChallengeCodeText.Location = new System.Drawing.Point(104, 595);
this.ChallengeCodeText.Name = "ChallengeCodeText";
this.ChallengeCodeText.Size = new System.Drawing.Size(178, 29);
this.ChallengeCodeText.TabIndex = 36;
//
// button1
//
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.button1.ForeColor = System.Drawing.Color.White;
this.button1.Location = new System.Drawing.Point(23, 531);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(253, 36);
this.button1.TabIndex = 35;
this.button1.Text = "确认上传";
this.button1.UseVisualStyleBackColor = false;
this.button1.Visible = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label7
//
this.label7.AutoSize = true;
this.label7.ForeColor = System.Drawing.Color.White;
this.label7.Location = new System.Drawing.Point(19, 475);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(87, 20);
this.label7.TabIndex = 34;
this.label7.Text = "手持扫码4:";
this.label7.Visible = false;
//
// label6
//
this.label6.AutoSize = true;
this.label6.ForeColor = System.Drawing.Color.White;
this.label6.Location = new System.Drawing.Point(19, 427);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(87, 20);
this.label6.TabIndex = 33;
this.label6.Text = "手持扫码3:";
this.label6.Visible = false;
//
// label5
//
this.label5.AutoSize = true;
this.label5.ForeColor = System.Drawing.Color.White;
this.label5.Location = new System.Drawing.Point(19, 381);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(87, 20);
this.label5.TabIndex = 32;
this.label5.Text = "手持扫码2:";
this.label5.Visible = false;
//
// label3
//
this.label3.AutoSize = true;
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(19, 334);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(87, 20);
this.label3.TabIndex = 31;
this.label3.Text = "手持扫码1:";
this.label3.Visible = false;
//
// CodeText4
//
this.CodeText4.Font = new System.Drawing.Font("微软雅黑", 12F);
this.CodeText4.Location = new System.Drawing.Point(105, 471);
this.CodeText4.Name = "CodeText4";
this.CodeText4.Size = new System.Drawing.Size(178, 29);
this.CodeText4.TabIndex = 30;
this.CodeText4.Visible = false;
//
// CodeText3
//
this.CodeText3.Font = new System.Drawing.Font("微软雅黑", 12F);
this.CodeText3.Location = new System.Drawing.Point(105, 423);
this.CodeText3.Name = "CodeText3";
this.CodeText3.Size = new System.Drawing.Size(178, 29);
this.CodeText3.TabIndex = 29;
this.CodeText3.Visible = false;
//
// CodeText2
//
this.CodeText2.Font = new System.Drawing.Font("微软雅黑", 12F);
this.CodeText2.Location = new System.Drawing.Point(105, 377);
this.CodeText2.Name = "CodeText2";
this.CodeText2.Size = new System.Drawing.Size(178, 29);
this.CodeText2.TabIndex = 28;
this.CodeText2.Visible = false;
//
// CodeText1
//
this.CodeText1.Font = new System.Drawing.Font("微软雅黑", 12F);
this.CodeText1.Location = new System.Drawing.Point(106, 330);
this.CodeText1.Name = "CodeText1";
this.CodeText1.Size = new System.Drawing.Size(178, 29);
this.CodeText1.TabIndex = 27;
this.CodeText1.Visible = false;
//
// txtMaterialCode
//
this.txtMaterialCode.Font = new System.Drawing.Font("微软雅黑", 12F);
this.txtMaterialCode.Location = new System.Drawing.Point(104, 91);
this.txtMaterialCode.Name = "txtMaterialCode";
this.txtMaterialCode.Size = new System.Drawing.Size(132, 29);
this.txtMaterialCode.TabIndex = 26;
//
// btnDelProductModel
//
this.btnDelProductModel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btnDelProductModel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnDelProductModel.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.btnDelProductModel.ForeColor = System.Drawing.Color.White;
this.btnDelProductModel.Location = new System.Drawing.Point(161, 251);
this.btnDelProductModel.Name = "btnDelProductModel";
this.btnDelProductModel.Size = new System.Drawing.Size(101, 36);
this.btnDelProductModel.TabIndex = 23;
this.btnDelProductModel.Text = "删除型号";
this.btnDelProductModel.UseVisualStyleBackColor = false;
this.btnDelProductModel.Click += new System.EventHandler(this.btnDelProductModel_Click);
//
// label4
//
this.label4.AutoSize = true;
this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Location = new System.Drawing.Point(19, 95);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(79, 20);
this.label4.TabIndex = 25;
this.label4.Text = "物料编码:";
//
// txtProductModel
//
this.txtProductModel.Font = new System.Drawing.Font("微软雅黑", 12F);
this.txtProductModel.Location = new System.Drawing.Point(104, 53);
this.txtProductModel.Name = "txtProductModel";
this.txtProductModel.Size = new System.Drawing.Size(132, 29);
this.txtProductModel.TabIndex = 20;
//
// lb_Model
//
this.lb_Model.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.lb_Model.ForeColor = System.Drawing.Color.White;
this.lb_Model.Location = new System.Drawing.Point(113, 203);
this.lb_Model.Name = "lb_Model";
this.lb_Model.Size = new System.Drawing.Size(132, 30);
this.lb_Model.TabIndex = 19;
this.lb_Model.Text = "THPR";
this.lb_Model.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// btn_Save
//
this.btn_Save.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btn_Save.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Save.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.btn_Save.ForeColor = System.Drawing.Color.White;
this.btn_Save.Location = new System.Drawing.Point(23, 251);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(101, 36);
this.btn_Save.TabIndex = 22;
this.btn_Save.Text = "保存参数";
this.btn_Save.UseVisualStyleBackColor = false;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.Location = new System.Drawing.Point(28, 206);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(79, 20);
this.label1.TabIndex = 17;
this.label1.Text = "当前型号:";
//
// btn_Add
//
this.btn_Add.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btn_Add.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Add.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.btn_Add.ForeColor = System.Drawing.Color.White;
this.btn_Add.Location = new System.Drawing.Point(23, 139);
this.btn_Add.Name = "btn_Add";
this.btn_Add.Size = new System.Drawing.Size(253, 36);
this.btn_Add.TabIndex = 21;
this.btn_Add.Text = "添加型号";
this.btn_Add.UseVisualStyleBackColor = false;
this.btn_Add.Click += new System.EventHandler(this.btn_Add_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(19, 56);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(79, 20);
this.label2.TabIndex = 18;
this.label2.Text = "生产型号:";
//
// FrmRecipe
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.ClientSize = new System.Drawing.Size(1370, 734);
this.Controls.Add(this.splitContainer1);
this.Font = new System.Drawing.Font("微软雅黑", 10.5F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(5);
this.Name = "FrmRecipe";
this.Text = "参数设置";
this.Load += new System.EventHandler(this.FrmRecipe_Load);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvProdModel)).EndInit();
this.splitContainer2.Panel1.ResumeLayout(false);
this.splitContainer2.Panel2.ResumeLayout(false);
this.splitContainer2.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
this.splitContainer2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvPara)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.TextBox txtProductModel;
private System.Windows.Forms.Label lb_Model;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btnDelProductModel;
private System.Windows.Forms.Button btn_Save;
private System.Windows.Forms.Button btn_Add;
private System.Windows.Forms.TextBox txtMaterialCode;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.SplitContainer splitContainer2;
private System.Windows.Forms.DataGridView dgvProdModel;
private System.Windows.Forms.DataGridView dgvPara;
private System.Windows.Forms.DataGridViewTextBoxColumn ModelName;
private System.Windows.Forms.DataGridViewTextBoxColumn MaterialCode;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox CodeText4;
private System.Windows.Forms.TextBox CodeText3;
private System.Windows.Forms.TextBox CodeText2;
private System.Windows.Forms.TextBox CodeText1;
private System.Windows.Forms.DataGridViewTextBoxColumn ParaValueMax;
private System.Windows.Forms.DataGridViewTextBoxColumn Uint;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn48;
private System.Windows.Forms.Button ChallengeButton;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox ChallengeCodeText;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.ComboBox comboBox2;
}
}
+410
View File
@@ -0,0 +1,410 @@
using JinYuan.CommunicationLib.Enum;
using JinYuan.Helper;
using JinYuan.Models;
using JinYuan.VirtualDataLibrary;
using PLCCommunication;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Windows.Forms;
namespace LargeSquareOne
{
public partial class FrmRecipe : Form
{
public FrmRecipe()
{
InitializeComponent();
////设置控件样式,去除缓冲
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true);
this.SetStyle(ControlStyles.ResizeRedraw, true);
this.SetStyle(ControlStyles.Selectable, true);
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
}
/// <summary>
/// PLC内批量写\0
/// </summary>
/// <param name="Num"></param>
/// <returns></returns>
public string GetString_0(int Num)
{
string ff = "";
for (int i = 0; i < Num; i++)
{
ff = ff.Insert(ff.Length, "\0");
}
return ff;
}
#region 减少闪烁
protected override CreateParams CreateParams
{
get
{
CreateParams parss = base.CreateParams;
parss.ExStyle |= 0x02000000;
return parss;
}
}
#endregion
Dictionary<string, object> disOldValue = new System.Collections.Generic.Dictionary<string, object>();
/// <summary>
/// 定义DataGridView数据源
/// </summary>
private BindingList<ParamList> blPLCConfigBaseList = new BindingList<ParamList>();
private void FrmRecipe_Load(object sender, EventArgs e)
{
this.dgvPara.AutoGenerateColumns = false;
this.dgvPara.DataSource = blPLCConfigBaseList;
GetProdModel();
GetChallengeCode();
GetProductParam(0);
}
private void GetProdModel()
{
try
{
var productList = CommonMethods.db.QuerySqlList<ProductModel>(CommonMethods.dBSQL.GetProdTypeSql());
dgvProdModel.DataSource = productList;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
//获取挑战件条码
private void GetChallengeCode()
{
try
{
var ChallengeCodeList = CommonMethods.db.QuerySqlList<Challenge>(CommonMethods.dBSQL.GetChallengeCode());
dgvPara.DataSource = ChallengeCodeList;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
#region 选择产品型号
/// <summary>
/// 点击单元格
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void dgvProdModel_CellClick(object sender, DataGridViewCellEventArgs e)
{
int row = dgvProdModel.CurrentCell.RowIndex;
GetProductParam(row);
}
public void GetProductParam(int row)
{
try
{
if (dgvProdModel.Rows.Count > 0)
{
string strModelType = dgvProdModel.Rows[row].Cells["ModelName"].Value.ToString();
lb_Model.Text = strModelType;
var list = CommonMethods.db.QuerySqlList<ParamList>(CommonMethods.dBSQL.GetProductParaByProdModel(strModelType));
disOldValue.Clear();
for (int i = 0; i < list.Count; i++)
{
if (!disOldValue.ContainsKey(list[i].Remark))
{
disOldValue.Add(list[i].Remark, $"{list[i].ParaValueMin},{list[i].ParaValueMax}");
}
}
//dgvPara.DataSource = list;
}
}
catch (Exception ex)
{
MessageBox.Show("加载数据失败" + ex.Message);
}
}
#endregion
/// <summary>
/// 点击极限件单元格
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public void dgvPara_CellClick(object sender, DataGridViewCellEventArgs e)
{
int row = dgvPara.CurrentCell.RowIndex;
try
{
if (dgvPara.Rows.Count > 0)
{
string strModelType = dgvPara.Rows[row].Cells[0].Value.ToString();
string strModelType2 = dgvPara.Rows[row].Cells[1].Value.ToString();
string strModelType3 = dgvPara.Rows[row].Cells[2].Value.ToString();
ChallengeCodeText.Text = strModelType;
comboBox1.Text = strModelType2;
comboBox2.Text = strModelType3;
var list = CommonMethods.db.QuerySqlList<Challenge>(CommonMethods.dBSQL.GetChallengeCode(strModelType));
//disOldValue.Clear();
//for (int i = 0; i < list.Count; i++)
//{
// if (!disOldValue.ContainsKey(list[i].Remark))
// {
// disOldValue.Add(list[i].Remark, $"{list[i].ParaValueMin},{list[i].ParaValueMax}");
// }
//}
//dgvPara.DataSource = list;
}
}
catch (Exception ex)
{
MessageBox.Show("加载数据失败" + ex.Message);
}
}
/// <summary>
/// 添加数据
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_Add_Click(object sender, EventArgs e)
{
var productModel = new ProductModel();
productModel.ModelName = txtProductModel.Text;
productModel.MaterialCode = txtMaterialCode.Text;
productModel.Remark = txtProductModel.Text;
if (string.IsNullOrEmpty(productModel.ModelName))
{
new FrmMsgBoxOutWithAck(2, "产品型号不能为空!", "添加型号").Show();
return;
}
if (string.IsNullOrEmpty(productModel.MaterialCode))
{
new FrmMsgBoxOutWithAck(2, "型号对应的物料编码不能为空!", "添加型号").Show();
return;
}
try
{
bool b = CommonMethods.db.AddReturnBool<ProductModel>(productModel);
if (b)
{
GetProdModel();
CommonMethods.ChangeParamData();
new FrmMsgBoxOutWithAck(1, "添加成功!", "添加型号").Show();
}
else
{
new FrmMsgBoxOutWithAck(3, "添加失败!", "添加型号").Show();
}
}
catch (Exception ex)
{
if (ex.Message.Contains("重复键"))
{
LoggerHelp.WriteEX(ex);
new FrmMsgBoxOutWithAck(3, "添加失败:已存在改型号,重复新增!", "添加型号").Show();
}
else
{
LoggerHelp.WriteEX(ex);
new FrmMsgBoxOutWithAck(3, $"添加失败:{ex.Message}", "添加型号").Show();
}
}
//同步刷新主界面的类型选项
//sendParamIN();
}
private void btn_Save_Click(object sender, EventArgs e)
{
if (dgvProdModel.Rows.Count > 0 && dgvProdModel.CurrentCell.RowIndex > -1)
{
int row = dgvProdModel.CurrentCell.RowIndex;
string strModelType = dgvProdModel.Rows[row].Cells["ModelName"].Value.ToString();
if (string.IsNullOrEmpty(strModelType) || dgvPara.Rows.Count <= 0)
{
new FrmMsgBoxOutWithAck(2, "产品型号和参数列表不能为空!", "保存参数").Show();
return;
}
try
{
List<ParamList> list = (List<ParamList>)dgvPara.DataSource;
int f = CommonMethods.db.Delete<ParamList>(t => t.ModelName == strModelType);
if (f >= 0)
{
bool b = CommonMethods.db.AddReturnBool<ParamList>(list);
if (b)
{
GetProdModel();
CommonMethods.ChangeParamData();
new FrmMsgBoxOutWithAck(1, "保存成功!", "保存参数").Show();
}
else
{
new FrmMsgBoxOutWithAck(3, "保存失败!", "保存参数").Show();
}
}
}
catch (Exception ex)
{
new FrmMsgBoxOutWithAck(3, "保存失败", "保存参数").Show();
}
}
else
{
new FrmMsgBoxOutWithAck(1, "请选择产品型号", "保存参数").Show();
}
}
private void btnDelProductModel_Click(object sender, EventArgs e)
{
if (dgvProdModel.Rows.Count > 0 && dgvProdModel.CurrentCell.RowIndex > -1)
{
int row = dgvProdModel.CurrentCell.RowIndex;
string strModelType = dgvProdModel.Rows[row].Cells["ModelName"].Value.ToString();
if (string.IsNullOrEmpty(strModelType))
{
new FrmMsgBoxOutWithAck(2, "选择要删除的生产型号", "删除型号").Show();
return;
}
DialogResult dialogResult = new FrmMsgBoxWithAck($"是否要删除型号【{strModelType}】", "删除型号").ShowDialog();
if (dialogResult == DialogResult.OK)
{
try
{
int f = CommonMethods.db.Delete<ProductModel>(t => t.ModelName == strModelType);
if (f > 0)
{
GetProdModel();
CommonMethods.ChangeParamData();
}
new FrmMsgBoxOutWithAck(1, "删除成功!", "删除型号").Show();
}
catch (Exception ex)
{
new FrmMsgBoxOutWithAck(1, $"删除失败:{ex.Message}", "删除型号").Show();
}
}
}
}
private void dgvProdModel_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
//显示序列号
DataGridViewHelper.DgvRowPostPaint(this.dgvProdModel, e);
}
private void dgvPara_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
//显示序列号
DataGridViewHelper.DgvRowPostPaint(this.dgvPara, e);
}
private void button1_Click(object sender, EventArgs e)
{
string Code1 = CodeText1.Text;
string Code2 = CodeText2.Text;
string Code3 = CodeText3.Text;
string Code4 = CodeText4.Text;
//根据PLC给的地址长度给二维码补0
string ZeroCode1 = Code1 + GetString_0(40 - Code1.Length);
string ZeroCode2 = Code2 + GetString_0(40 - Code2.Length);
string ZeroCode3 = Code3 + GetString_0(40 - Code3.Length);
string ZeroCode4 = Code4 + GetString_0(40 - Code4.Length);
//byte[] Codebytes = Encoding.Default.GetBytes(ZeroCode).ByteReverse();
byte[] Codebytes1 = Encoding.Default.GetBytes(ZeroCode1);
byte[] Codebytes2 = Encoding.Default.GetBytes(ZeroCode2);
byte[] Codebytes3 = Encoding.Default.GetBytes(ZeroCode3);
byte[] Codebytes4 = Encoding.Default.GetBytes(ZeroCode4);
//条码地址
int dress1 = 2500;
int dress2 = 2520;
int dress3 = 2540;
int dress4 = 2560;
string TouchDress = "D2490";//触发地址
string StrDress1 = "D" + dress1.ToString();
string StrDress2 = "D" + dress2.ToString();
string StrDress3 = "D" + dress3.ToString();
string StrDress4 = "D" + dress4.ToString();
if (string.IsNullOrEmpty(Code1) || string.IsNullOrEmpty(Code2) || string.IsNullOrEmpty(Code3) || string.IsNullOrEmpty(Code4))
{
new FrmMsgBoxOutWithAck(2, "上传条码不能为空!", "条码上传").Show();
return;
}
JYResult result1 = CommonMethods.PlcLink.WriteValue(StrDress1, Codebytes1, Data_Type.ArrByte);
JYResult result2 = CommonMethods.PlcLink.WriteValue(StrDress2, Codebytes2, Data_Type.ArrByte);
JYResult result3 = CommonMethods.PlcLink.WriteValue(StrDress3, Codebytes3, Data_Type.ArrByte);
JYResult result4 = CommonMethods.PlcLink.WriteValue(StrDress4, Codebytes4, Data_Type.ArrByte);
System.Threading.Thread.Sleep(500);
CommonMethods.PlcLink.WriteValue(TouchDress, 1, Data_Type.Short);//给PLC触发
new FrmMsgBoxOutWithAck(2, "上传成功!", "条码上传").Show();
}
private void ChallengeButton_Click(object sender, EventArgs e)
{
var ChallengeCode = new Challenge();
ChallengeCode.ChallengeBarCode = ChallengeCodeText.Text;
ChallengeCode.CodeMessage = comboBox1.Text;
ChallengeCode.WeldingCCD = comboBox2.Text;
if (string.IsNullOrEmpty(ChallengeCode.ChallengeBarCode))
{
new FrmMsgBoxOutWithAck(2, "挑战件条码不能为空!", "添加挑战件条码").Show();
return;
}
try
{
bool b = CommonMethods.db.AddReturnBool<Challenge>(ChallengeCode);
if (b)
{
GetChallengeCode();
new FrmMsgBoxOutWithAck(1, "添加成功!", "添加挑战件条码").Show();
}
else
{
new FrmMsgBoxOutWithAck(3, "添加失败!", "添加挑战件条码").Show();
}
}
catch (Exception ex)
{
if (ex.Message.Contains("重复键"))
{
LoggerHelp.WriteEX(ex);
new FrmMsgBoxOutWithAck(3, "添加失败:已存在该挑战件条码,重复新增!", "添加添加挑战件条码").Show();
}
else
{
LoggerHelp.WriteEX(ex);
new FrmMsgBoxOutWithAck(3, $"添加失败:{ex.Message}", "添加添加挑战件条码").Show();
}
}
}
}
}
+138
View File
@@ -0,0 +1,138 @@
<?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="ModelName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MaterialCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ParaValueMax.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Uint.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn48.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
+840
View File
@@ -0,0 +1,840 @@
namespace LargeSquareOne
{
partial class FrmStaticsQuery
{
/// <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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmStaticsQuery));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
this.ucPanel_400_2001 = new JinYuan.ControlLib.ucPanel_400_200();
this.btn_Close = new System.Windows.Forms.Button();
this.tabControlPlus1 = new HML.TabControlPlus();
this.tabPagePlus1 = new HML.TabPagePlus();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.dgvClass = new System.Windows.Forms.DataGridView();
this.panel1 = new System.Windows.Forms.Panel();
this.cmbClass = new System.Windows.Forms.ComboBox();
this.btn_ClassExPort = new System.Windows.Forms.Button();
this.btn_ClassQuery = new System.Windows.Forms.Button();
this.dtClass = new System.Windows.Forms.DateTimePicker();
this.label1 = new System.Windows.Forms.Label();
this.tabPagePlus2 = new HML.TabPagePlus();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.dgvDays = new System.Windows.Forms.DataGridView();
this.panel2 = new System.Windows.Forms.Panel();
this.btn_DaysExPort = new System.Windows.Forms.Button();
this.btn_DaysQuery = new System.Windows.Forms.Button();
this.dtpDays = new System.Windows.Forms.DateTimePicker();
this.label2 = new System.Windows.Forms.Label();
this.tabPagePlus3 = new HML.TabPagePlus();
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.dgvWeek = new System.Windows.Forms.DataGridView();
this.panel3 = new System.Windows.Forms.Panel();
this.btn_WeekExPort = new System.Windows.Forms.Button();
this.btn_WeekQuery = new System.Windows.Forms.Button();
this.dtpWeek = new System.Windows.Forms.DateTimePicker();
this.label3 = new System.Windows.Forms.Label();
this.tabPagePlus4 = new HML.TabPagePlus();
this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
this.dgvMonth = new System.Windows.Forms.DataGridView();
this.panel4 = new System.Windows.Forms.Panel();
this.cmbYears = new System.Windows.Forms.ComboBox();
this.btn_MonthExPort = new System.Windows.Forms.Button();
this.btn_MonthQuery = new System.Windows.Forms.Button();
this.dtMonth = new System.Windows.Forms.DateTimePicker();
this.label4 = new System.Windows.Forms.Label();
this.ucPanel_400_2001.SuspendLayout();
this.tabControlPlus1.SuspendLayout();
this.tabPagePlus1.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvClass)).BeginInit();
this.panel1.SuspendLayout();
this.tabPagePlus2.SuspendLayout();
this.tableLayoutPanel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvDays)).BeginInit();
this.panel2.SuspendLayout();
this.tabPagePlus3.SuspendLayout();
this.tableLayoutPanel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvWeek)).BeginInit();
this.panel3.SuspendLayout();
this.tabPagePlus4.SuspendLayout();
this.tableLayoutPanel4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvMonth)).BeginInit();
this.panel4.SuspendLayout();
this.SuspendLayout();
//
// ucPanel_400_2001
//
this.ucPanel_400_2001.BackColor = System.Drawing.Color.Transparent;
this.ucPanel_400_2001.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucPanel_400_2001.BackgroundImage")));
this.ucPanel_400_2001.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ucPanel_400_2001.Controls.Add(this.btn_Close);
this.ucPanel_400_2001.Controls.Add(this.tabControlPlus1);
this.ucPanel_400_2001.Dock = System.Windows.Forms.DockStyle.Fill;
this.ucPanel_400_2001.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucPanel_400_2001.Location = new System.Drawing.Point(0, 0);
this.ucPanel_400_2001.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucPanel_400_2001.Name = "ucPanel_400_2001";
this.ucPanel_400_2001.Size = new System.Drawing.Size(1392, 734);
this.ucPanel_400_2001.TabIndex = 6;
this.ucPanel_400_2001.Title = "统计查询";
//
// btn_Close
//
this.btn_Close.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
this.btn_Close.FlatAppearance.BorderSize = 0;
this.btn_Close.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.btn_Close.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_Close.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Close.Font = new System.Drawing.Font("微软雅黑", 14F);
this.btn_Close.ForeColor = System.Drawing.Color.White;
this.btn_Close.Location = new System.Drawing.Point(1357, 7);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(32, 32);
this.btn_Close.TabIndex = 4;
this.btn_Close.Text = "X";
this.btn_Close.UseVisualStyleBackColor = false;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// tabControlPlus1
//
this.tabControlPlus1.ContentBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
this.tabControlPlus1.Controls.Add(this.tabPagePlus1);
this.tabControlPlus1.Controls.Add(this.tabPagePlus2);
this.tabControlPlus1.Controls.Add(this.tabPagePlus3);
this.tabControlPlus1.Controls.Add(this.tabPagePlus4);
this.tabControlPlus1.Location = new System.Drawing.Point(38, 45);
this.tabControlPlus1.Name = "tabControlPlus1";
this.tabControlPlus1.Picker.ItemFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tabControlPlus1.Size = new System.Drawing.Size(1321, 662);
this.tabControlPlus1.TabIndex = 0;
this.tabControlPlus1.TabItemBackEnterColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
this.tabControlPlus1.TabItemBackNormalColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
this.tabControlPlus1.TabItemBackSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
this.tabControlPlus1.TabItemFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tabControlPlus1.TipBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
//
// tabPagePlus1
//
this.tabPagePlus1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
this.tabPagePlus1.Controls.Add(this.tableLayoutPanel1);
this.tabPagePlus1.Location = new System.Drawing.Point(1, 25);
this.tabPagePlus1.Name = "tabPagePlus1";
this.tabPagePlus1.Padding = new System.Windows.Forms.Padding(3);
this.tabPagePlus1.Size = new System.Drawing.Size(1319, 636);
this.tabPagePlus1.TabIndex = 0;
this.tabPagePlus1.Text = "按班次统计";
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
this.tableLayoutPanel1.ColumnCount = 1;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Controls.Add(this.dgvClass, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 3);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.82906F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 90.17094F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1313, 630);
this.tableLayoutPanel1.TabIndex = 7;
//
// dgvClass
//
this.dgvClass.AllowUserToAddRows = false;
this.dgvClass.AllowUserToDeleteRows = false;
this.dgvClass.AllowUserToResizeColumns = false;
this.dgvClass.AllowUserToResizeRows = false;
this.dgvClass.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells;
this.dgvClass.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
this.dgvClass.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgvClass.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
dataGridViewCellStyle13.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle13.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvClass.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle13;
this.dgvClass.ColumnHeadersHeight = 45;
this.dgvClass.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle14.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle14.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle14.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle14.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvClass.DefaultCellStyle = dataGridViewCellStyle14;
this.dgvClass.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvClass.EnableHeadersVisualStyles = false;
this.dgvClass.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(146)))), ((int)(((byte)(235)))));
this.dgvClass.Location = new System.Drawing.Point(3, 64);
this.dgvClass.MultiSelect = false;
this.dgvClass.Name = "dgvClass";
this.dgvClass.ReadOnly = true;
this.dgvClass.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle15.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle15.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle15.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle15.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvClass.RowHeadersDefaultCellStyle = dataGridViewCellStyle15;
this.dgvClass.RowHeadersWidth = 45;
this.dgvClass.RowTemplate.Height = 23;
this.dgvClass.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvClass.Size = new System.Drawing.Size(1307, 563);
this.dgvClass.TabIndex = 8;
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
this.panel1.Controls.Add(this.cmbClass);
this.panel1.Controls.Add(this.btn_ClassExPort);
this.panel1.Controls.Add(this.btn_ClassQuery);
this.panel1.Controls.Add(this.dtClass);
this.panel1.Controls.Add(this.label1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(3, 3);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1307, 55);
this.panel1.TabIndex = 7;
//
// cmbClass
//
this.cmbClass.ForeColor = System.Drawing.Color.Black;
this.cmbClass.FormattingEnabled = true;
this.cmbClass.Items.AddRange(new object[] {
"白班",
"夜班"});
this.cmbClass.Location = new System.Drawing.Point(289, 16);
this.cmbClass.Name = "cmbClass";
this.cmbClass.Size = new System.Drawing.Size(72, 28);
this.cmbClass.TabIndex = 55;
//
// btn_ClassExPort
//
this.btn_ClassExPort.BackColor = System.Drawing.Color.Transparent;
this.btn_ClassExPort.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.btn_ClassExPort.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_ClassExPort.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_ClassExPort.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold);
this.btn_ClassExPort.ForeColor = System.Drawing.Color.White;
this.btn_ClassExPort.Location = new System.Drawing.Point(540, 16);
this.btn_ClassExPort.Name = "btn_ClassExPort";
this.btn_ClassExPort.Size = new System.Drawing.Size(89, 32);
this.btn_ClassExPort.TabIndex = 18;
this.btn_ClassExPort.Text = "导 出";
this.btn_ClassExPort.UseVisualStyleBackColor = false;
this.btn_ClassExPort.Click += new System.EventHandler(this.btn_ClassExPort_Click);
//
// btn_ClassQuery
//
this.btn_ClassQuery.BackColor = System.Drawing.Color.Transparent;
this.btn_ClassQuery.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.btn_ClassQuery.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_ClassQuery.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_ClassQuery.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold);
this.btn_ClassQuery.ForeColor = System.Drawing.Color.White;
this.btn_ClassQuery.Location = new System.Drawing.Point(404, 16);
this.btn_ClassQuery.Name = "btn_ClassQuery";
this.btn_ClassQuery.Size = new System.Drawing.Size(89, 32);
this.btn_ClassQuery.TabIndex = 17;
this.btn_ClassQuery.Text = "查 询";
this.btn_ClassQuery.UseVisualStyleBackColor = false;
this.btn_ClassQuery.Click += new System.EventHandler(this.btn_ClassQuery_Click);
//
// dtClass
//
this.dtClass.CalendarFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.dtClass.CustomFormat = "yyyy/MM/dd";
this.dtClass.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.dtClass.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtClass.Location = new System.Drawing.Point(100, 16);
this.dtClass.Name = "dtClass";
this.dtClass.ShowUpDown = true;
this.dtClass.Size = new System.Drawing.Size(156, 29);
this.dtClass.TabIndex = 15;
//
// label1
//
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.Location = new System.Drawing.Point(9, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(74, 22);
this.label1.TabIndex = 13;
this.label1.Text = "统计日期";
//
// tabPagePlus2
//
this.tabPagePlus2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
this.tabPagePlus2.Controls.Add(this.tableLayoutPanel2);
this.tabPagePlus2.Location = new System.Drawing.Point(1, 25);
this.tabPagePlus2.Name = "tabPagePlus2";
this.tabPagePlus2.Padding = new System.Windows.Forms.Padding(3);
this.tabPagePlus2.Size = new System.Drawing.Size(1319, 636);
this.tabPagePlus2.TabIndex = 1;
this.tabPagePlus2.Text = "按日统计";
//
// tableLayoutPanel2
//
this.tableLayoutPanel2.ColumnCount = 1;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel2.Controls.Add(this.dgvDays, 0, 1);
this.tableLayoutPanel2.Controls.Add(this.panel2, 0, 0);
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 3);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 2;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10.11396F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 89.88604F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(1313, 630);
this.tableLayoutPanel2.TabIndex = 0;
//
// dgvDays
//
this.dgvDays.AllowUserToAddRows = false;
this.dgvDays.AllowUserToDeleteRows = false;
this.dgvDays.AllowUserToResizeColumns = false;
this.dgvDays.AllowUserToResizeRows = false;
this.dgvDays.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells;
this.dgvDays.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
this.dgvDays.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgvDays.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
dataGridViewCellStyle16.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle16.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle16.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle16.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvDays.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle16;
this.dgvDays.ColumnHeadersHeight = 45;
this.dgvDays.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle17.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle17.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle17.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle17.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvDays.DefaultCellStyle = dataGridViewCellStyle17;
this.dgvDays.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvDays.EnableHeadersVisualStyles = false;
this.dgvDays.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(146)))), ((int)(((byte)(235)))));
this.dgvDays.Location = new System.Drawing.Point(3, 66);
this.dgvDays.MultiSelect = false;
this.dgvDays.Name = "dgvDays";
this.dgvDays.ReadOnly = true;
this.dgvDays.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle18.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle18.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle18.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle18.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvDays.RowHeadersDefaultCellStyle = dataGridViewCellStyle18;
this.dgvDays.RowHeadersWidth = 45;
this.dgvDays.RowTemplate.Height = 23;
this.dgvDays.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvDays.Size = new System.Drawing.Size(1307, 561);
this.dgvDays.TabIndex = 9;
//
// panel2
//
this.panel2.Controls.Add(this.btn_DaysExPort);
this.panel2.Controls.Add(this.btn_DaysQuery);
this.panel2.Controls.Add(this.dtpDays);
this.panel2.Controls.Add(this.label2);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(3, 3);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1307, 57);
this.panel2.TabIndex = 8;
//
// btn_DaysExPort
//
this.btn_DaysExPort.BackColor = System.Drawing.Color.Transparent;
this.btn_DaysExPort.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.btn_DaysExPort.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_DaysExPort.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_DaysExPort.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold);
this.btn_DaysExPort.ForeColor = System.Drawing.Color.White;
this.btn_DaysExPort.Location = new System.Drawing.Point(476, 19);
this.btn_DaysExPort.Name = "btn_DaysExPort";
this.btn_DaysExPort.Size = new System.Drawing.Size(89, 32);
this.btn_DaysExPort.TabIndex = 18;
this.btn_DaysExPort.Text = "导 出";
this.btn_DaysExPort.UseVisualStyleBackColor = false;
this.btn_DaysExPort.Click += new System.EventHandler(this.btn_DaysExPort_Click);
//
// btn_DaysQuery
//
this.btn_DaysQuery.BackColor = System.Drawing.Color.Transparent;
this.btn_DaysQuery.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.btn_DaysQuery.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_DaysQuery.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_DaysQuery.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold);
this.btn_DaysQuery.ForeColor = System.Drawing.Color.White;
this.btn_DaysQuery.Location = new System.Drawing.Point(327, 19);
this.btn_DaysQuery.Name = "btn_DaysQuery";
this.btn_DaysQuery.Size = new System.Drawing.Size(89, 32);
this.btn_DaysQuery.TabIndex = 17;
this.btn_DaysQuery.Text = "查 询";
this.btn_DaysQuery.UseVisualStyleBackColor = false;
this.btn_DaysQuery.Click += new System.EventHandler(this.btn_DaysQuery_Click);
//
// dtpDays
//
this.dtpDays.CalendarFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.dtpDays.CustomFormat = "yyyy/MM/dd";
this.dtpDays.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.dtpDays.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpDays.Location = new System.Drawing.Point(106, 19);
this.dtpDays.Name = "dtpDays";
this.dtpDays.ShowUpDown = true;
this.dtpDays.Size = new System.Drawing.Size(156, 29);
this.dtpDays.TabIndex = 15;
//
// label2
//
this.label2.AutoSize = true;
this.label2.BackColor = System.Drawing.Color.Transparent;
this.label2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(10, 19);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(74, 22);
this.label2.TabIndex = 13;
this.label2.Text = "统计日期";
//
// tabPagePlus3
//
this.tabPagePlus3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
this.tabPagePlus3.Controls.Add(this.tableLayoutPanel3);
this.tabPagePlus3.Location = new System.Drawing.Point(1, 25);
this.tabPagePlus3.Name = "tabPagePlus3";
this.tabPagePlus3.Padding = new System.Windows.Forms.Padding(3);
this.tabPagePlus3.Size = new System.Drawing.Size(1319, 636);
this.tabPagePlus3.TabIndex = 2;
this.tabPagePlus3.Text = "按周统计";
//
// tableLayoutPanel3
//
this.tableLayoutPanel3.ColumnCount = 1;
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel3.Controls.Add(this.dgvWeek, 0, 1);
this.tableLayoutPanel3.Controls.Add(this.panel3, 0, 0);
this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel3.Location = new System.Drawing.Point(3, 3);
this.tableLayoutPanel3.Name = "tableLayoutPanel3";
this.tableLayoutPanel3.RowCount = 2;
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10.82621F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 89.17379F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(1313, 630);
this.tableLayoutPanel3.TabIndex = 0;
//
// dgvWeek
//
this.dgvWeek.AllowUserToAddRows = false;
this.dgvWeek.AllowUserToDeleteRows = false;
this.dgvWeek.AllowUserToResizeColumns = false;
this.dgvWeek.AllowUserToResizeRows = false;
this.dgvWeek.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells;
this.dgvWeek.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
this.dgvWeek.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgvWeek.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
dataGridViewCellStyle19.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle19.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle19.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle19.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvWeek.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle19;
this.dgvWeek.ColumnHeadersHeight = 45;
this.dgvWeek.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle20.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle20.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle20.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle20.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvWeek.DefaultCellStyle = dataGridViewCellStyle20;
this.dgvWeek.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvWeek.EnableHeadersVisualStyles = false;
this.dgvWeek.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(146)))), ((int)(((byte)(235)))));
this.dgvWeek.Location = new System.Drawing.Point(3, 71);
this.dgvWeek.MultiSelect = false;
this.dgvWeek.Name = "dgvWeek";
this.dgvWeek.ReadOnly = true;
this.dgvWeek.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle21.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle21.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle21.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle21.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle21.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvWeek.RowHeadersDefaultCellStyle = dataGridViewCellStyle21;
this.dgvWeek.RowHeadersWidth = 45;
this.dgvWeek.RowTemplate.Height = 23;
this.dgvWeek.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvWeek.Size = new System.Drawing.Size(1307, 556);
this.dgvWeek.TabIndex = 10;
//
// panel3
//
this.panel3.Controls.Add(this.btn_WeekExPort);
this.panel3.Controls.Add(this.btn_WeekQuery);
this.panel3.Controls.Add(this.dtpWeek);
this.panel3.Controls.Add(this.label3);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(3, 3);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1307, 62);
this.panel3.TabIndex = 9;
//
// btn_WeekExPort
//
this.btn_WeekExPort.BackColor = System.Drawing.Color.Transparent;
this.btn_WeekExPort.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.btn_WeekExPort.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_WeekExPort.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_WeekExPort.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold);
this.btn_WeekExPort.ForeColor = System.Drawing.Color.White;
this.btn_WeekExPort.Location = new System.Drawing.Point(496, 21);
this.btn_WeekExPort.Name = "btn_WeekExPort";
this.btn_WeekExPort.Size = new System.Drawing.Size(89, 32);
this.btn_WeekExPort.TabIndex = 18;
this.btn_WeekExPort.Text = "导 出";
this.btn_WeekExPort.UseVisualStyleBackColor = false;
this.btn_WeekExPort.Click += new System.EventHandler(this.btn_WeekExPort_Click);
//
// btn_WeekQuery
//
this.btn_WeekQuery.BackColor = System.Drawing.Color.Transparent;
this.btn_WeekQuery.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.btn_WeekQuery.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_WeekQuery.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_WeekQuery.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold);
this.btn_WeekQuery.ForeColor = System.Drawing.Color.White;
this.btn_WeekQuery.Location = new System.Drawing.Point(343, 21);
this.btn_WeekQuery.Name = "btn_WeekQuery";
this.btn_WeekQuery.Size = new System.Drawing.Size(89, 32);
this.btn_WeekQuery.TabIndex = 17;
this.btn_WeekQuery.Text = "查 询";
this.btn_WeekQuery.UseVisualStyleBackColor = false;
this.btn_WeekQuery.Click += new System.EventHandler(this.btn_WeekQuery_Click);
//
// dtpWeek
//
this.dtpWeek.CalendarFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.dtpWeek.CustomFormat = "yyyy/MM/dd";
this.dtpWeek.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.dtpWeek.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpWeek.Location = new System.Drawing.Point(134, 20);
this.dtpWeek.Name = "dtpWeek";
this.dtpWeek.ShowUpDown = true;
this.dtpWeek.Size = new System.Drawing.Size(156, 29);
this.dtpWeek.TabIndex = 15;
//
// label3
//
this.label3.AutoSize = true;
this.label3.BackColor = System.Drawing.Color.Transparent;
this.label3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(30, 20);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(74, 22);
this.label3.TabIndex = 13;
this.label3.Text = "统计时间";
//
// tabPagePlus4
//
this.tabPagePlus4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
this.tabPagePlus4.Controls.Add(this.tableLayoutPanel4);
this.tabPagePlus4.Location = new System.Drawing.Point(1, 25);
this.tabPagePlus4.Name = "tabPagePlus4";
this.tabPagePlus4.Padding = new System.Windows.Forms.Padding(3);
this.tabPagePlus4.Size = new System.Drawing.Size(1319, 636);
this.tabPagePlus4.TabIndex = 3;
this.tabPagePlus4.Text = "按月统计";
//
// tableLayoutPanel4
//
this.tableLayoutPanel4.ColumnCount = 1;
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel4.Controls.Add(this.dgvMonth, 0, 1);
this.tableLayoutPanel4.Controls.Add(this.panel4, 0, 0);
this.tableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel4.Location = new System.Drawing.Point(3, 3);
this.tableLayoutPanel4.Name = "tableLayoutPanel4";
this.tableLayoutPanel4.RowCount = 2;
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10.11396F));
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 89.88604F));
this.tableLayoutPanel4.Size = new System.Drawing.Size(1313, 630);
this.tableLayoutPanel4.TabIndex = 0;
//
// dgvMonth
//
this.dgvMonth.AllowUserToAddRows = false;
this.dgvMonth.AllowUserToDeleteRows = false;
this.dgvMonth.AllowUserToResizeColumns = false;
this.dgvMonth.AllowUserToResizeRows = false;
this.dgvMonth.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells;
this.dgvMonth.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
this.dgvMonth.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgvMonth.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
dataGridViewCellStyle22.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle22.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle22.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle22.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvMonth.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle22;
this.dgvMonth.ColumnHeadersHeight = 45;
this.dgvMonth.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle23.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle23.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle23.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle23.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle23.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvMonth.DefaultCellStyle = dataGridViewCellStyle23;
this.dgvMonth.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvMonth.EnableHeadersVisualStyles = false;
this.dgvMonth.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(146)))), ((int)(((byte)(235)))));
this.dgvMonth.Location = new System.Drawing.Point(3, 66);
this.dgvMonth.MultiSelect = false;
this.dgvMonth.Name = "dgvMonth";
this.dgvMonth.ReadOnly = true;
this.dgvMonth.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle24.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle24.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle24.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle24.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle24.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle24.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvMonth.RowHeadersDefaultCellStyle = dataGridViewCellStyle24;
this.dgvMonth.RowHeadersWidth = 45;
this.dgvMonth.RowTemplate.Height = 23;
this.dgvMonth.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvMonth.Size = new System.Drawing.Size(1307, 561);
this.dgvMonth.TabIndex = 11;
//
// panel4
//
this.panel4.Controls.Add(this.cmbYears);
this.panel4.Controls.Add(this.btn_MonthExPort);
this.panel4.Controls.Add(this.btn_MonthQuery);
this.panel4.Controls.Add(this.dtMonth);
this.panel4.Controls.Add(this.label4);
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(3, 3);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(1307, 57);
this.panel4.TabIndex = 10;
//
// cmbYears
//
this.cmbYears.FormattingEnabled = true;
this.cmbYears.Location = new System.Drawing.Point(1233, 16);
this.cmbYears.Name = "cmbYears";
this.cmbYears.Size = new System.Drawing.Size(59, 28);
this.cmbYears.TabIndex = 20;
this.cmbYears.Visible = false;
//
// btn_MonthExPort
//
this.btn_MonthExPort.BackColor = System.Drawing.Color.Transparent;
this.btn_MonthExPort.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.btn_MonthExPort.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_MonthExPort.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_MonthExPort.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold);
this.btn_MonthExPort.ForeColor = System.Drawing.Color.White;
this.btn_MonthExPort.Location = new System.Drawing.Point(383, 19);
this.btn_MonthExPort.Name = "btn_MonthExPort";
this.btn_MonthExPort.Size = new System.Drawing.Size(89, 32);
this.btn_MonthExPort.TabIndex = 19;
this.btn_MonthExPort.Text = "导 出";
this.btn_MonthExPort.UseVisualStyleBackColor = false;
this.btn_MonthExPort.Click += new System.EventHandler(this.btn_MonthExPort_Click);
//
// btn_MonthQuery
//
this.btn_MonthQuery.BackColor = System.Drawing.Color.Transparent;
this.btn_MonthQuery.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.btn_MonthQuery.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_MonthQuery.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_MonthQuery.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold);
this.btn_MonthQuery.ForeColor = System.Drawing.Color.White;
this.btn_MonthQuery.Location = new System.Drawing.Point(239, 18);
this.btn_MonthQuery.Name = "btn_MonthQuery";
this.btn_MonthQuery.Size = new System.Drawing.Size(89, 32);
this.btn_MonthQuery.TabIndex = 18;
this.btn_MonthQuery.Text = "查 询";
this.btn_MonthQuery.UseVisualStyleBackColor = false;
this.btn_MonthQuery.Click += new System.EventHandler(this.btn_MonthQuery_Click);
//
// dtMonth
//
this.dtMonth.CalendarFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.dtMonth.CustomFormat = "yyyy/MM";
this.dtMonth.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.dtMonth.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtMonth.Location = new System.Drawing.Point(123, 19);
this.dtMonth.Name = "dtMonth";
this.dtMonth.ShowUpDown = true;
this.dtMonth.Size = new System.Drawing.Size(90, 29);
this.dtMonth.TabIndex = 16;
//
// label4
//
this.label4.AutoSize = true;
this.label4.BackColor = System.Drawing.Color.Transparent;
this.label4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Location = new System.Drawing.Point(28, 22);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(74, 22);
this.label4.TabIndex = 14;
this.label4.Text = "统计时间";
//
// FrmStaticsQuery
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(30)))), ((int)(((byte)(78)))));
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(1392, 734);
this.Controls.Add(this.ucPanel_400_2001);
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("微软雅黑", 10.5F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmStaticsQuery";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "统计查询";
this.Load += new System.EventHandler(this.FrmStaticsQuery_Load);
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Form_MouseDown);
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Form_MouseMove);
this.ucPanel_400_2001.ResumeLayout(false);
this.ucPanel_400_2001.PerformLayout();
this.tabControlPlus1.ResumeLayout(false);
this.tabPagePlus1.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvClass)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.tabPagePlus2.ResumeLayout(false);
this.tableLayoutPanel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvDays)).EndInit();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.tabPagePlus3.ResumeLayout(false);
this.tableLayoutPanel3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvWeek)).EndInit();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.tabPagePlus4.ResumeLayout(false);
this.tableLayoutPanel4.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvMonth)).EndInit();
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private JinYuan.ControlLib.ucPanel_400_200 ucPanel_400_2001;
private System.Windows.Forms.Button btn_Close;
private HML.TabControlPlus tabControlPlus1;
private HML.TabPagePlus tabPagePlus1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.DataGridView dgvClass;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.ComboBox cmbClass;
private System.Windows.Forms.Button btn_ClassExPort;
private System.Windows.Forms.Button btn_ClassQuery;
private System.Windows.Forms.DateTimePicker dtClass;
private System.Windows.Forms.Label label1;
private HML.TabPagePlus tabPagePlus2;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private System.Windows.Forms.DataGridView dgvDays;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Button btn_DaysExPort;
private System.Windows.Forms.Button btn_DaysQuery;
private System.Windows.Forms.DateTimePicker dtpDays;
private System.Windows.Forms.Label label2;
private HML.TabPagePlus tabPagePlus3;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
private System.Windows.Forms.DataGridView dgvWeek;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Button btn_WeekExPort;
private System.Windows.Forms.Button btn_WeekQuery;
private System.Windows.Forms.DateTimePicker dtpWeek;
private System.Windows.Forms.Label label3;
private HML.TabPagePlus tabPagePlus4;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel4;
private System.Windows.Forms.DataGridView dgvMonth;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.ComboBox cmbYears;
private System.Windows.Forms.Button btn_MonthExPort;
private System.Windows.Forms.Button btn_MonthQuery;
private System.Windows.Forms.DateTimePicker dtMonth;
private System.Windows.Forms.Label label4;
}
}
+278
View File
@@ -0,0 +1,278 @@
using JinYuan.Helper;
using JinYuan.VirtualDataLibrary;
using System;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
namespace LargeSquareOne
{
public partial class FrmStaticsQuery : Form
{
/// <summary>
/// 班次
/// </summary>
private DataTable dtClasses = null;
/// <summary>
/// 日
/// </summary>
private DataTable dtDays = null;
/// <summary>
/// 周
/// </summary>
private DataTable dtWeeks = null;
/// <summary>
/// 月
/// </summary>
private DataTable dtMonths = null;
public FrmStaticsQuery()
{
InitializeComponent();
}
private void FrmStaticsQuery_Load(object sender, EventArgs e)
{
//获取当前日期
string startTimeStr = dtpDays.Value.ToString("yyyy-MM-dd 00:00:00");
string endTimeStr = dtpDays.Value.AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd 23:59:59");
//获取月份
int NowMonth = DateTime.Now.Month;
for (int i = 0; i < NowMonth; i++)
{
cmbYears.Items.Add(i + 1);
}
cmbYears.SelectedIndex = 0;
//班次
dtClass.Value = DateTime.Now.Date;
cmbClass.SelectedIndex = 0;
}
#region 按班次
/// <summary>
/// 按班次查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_ClassQuery_Click(object sender, EventArgs e)
{
DateTime strDate = dtClass.Value;
string strClass = cmbClass.Text;
dtClasses = CommonMethods.db.QueryDataTable(CommonMethods.dBSQL.GetStaticByShift(strDate, strClass, CommonMethods.ChangeClassTime));
dgvClass.DataSource = null;
if (dtClasses != null && dtClasses.Rows.Count > 0)
{
dgvClass.DataSource = dtClasses;
}
}
/// <summary>
/// 按班次导出
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_ClassExPort_Click(object sender, EventArgs e)
{
if (dgvClass.Columns.Count <= 0)
{
MessageBox.Show("导出失败,无查询结果");
return;
}
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.FileName = $"产能统计_按班次统计_{DateTime.Now.ToString("yyyyMMddHHmmss")}";
saveFileDialog.Filter = "*|*.csv";
if (saveFileDialog.ShowDialog() == DialogResult.Cancel)
return;
string msg = "";
if (CSVHelper<object>.ExportDataTableToCSV(dtClasses, saveFileDialog.FileName, out msg))
{
MessageBox.Show("导出成功!");
}
}
#endregion
#region 按日
/// <summary>
/// 按日统计查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_DaysQuery_Click(object sender, EventArgs e)
{
string startDateTime = dtpDays.Value.ToString("yyyy-MM-dd 00:00:00");
string endDateTime = dtpDays.Value.ToString("yyyy-MM-dd 23:59:59");
dtDays = CommonMethods.db.QueryDataTable(CommonMethods.dBSQL.GetStaticByDay(startDateTime, endDateTime));
dgvDays.DataSource = null;
if (dtDays != null && dtDays.Rows.Count > 0)
{
dgvDays.DataSource = dtDays;
}
}
/// <summary>
/// 按日导出
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_DaysExPort_Click(object sender, EventArgs e)
{
if (dgvDays.Columns.Count <= 0)
{
MessageBox.Show("导出失败,无查询结果");
return;
}
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.FileName = $"产能统计_按日统计_{DateTime.Now.ToString("yyyyMMddHHmmss")}";
saveFileDialog.Filter = "*|*.csv";
if (saveFileDialog.ShowDialog() == DialogResult.Cancel)
return;
string msg = "";
if (CSVHelper<object>.ExportDataTableToCSV(dtDays, saveFileDialog.FileName, out msg))
{
MessageBox.Show("导出成功!");
}
}
#endregion
#region 按周
/// <summary>
/// 按周统计
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_WeekQuery_Click(object sender, EventArgs e)
{
//确定星期几
var index = (int)dtpWeek.Value.DayOfWeek;
index = index == 0 ? 7 : index;
//当前周的范围
string retStartDay = dtpWeek.Value.AddDays(-(index - 1)).ToString();
string retEndDay = dtpWeek.Value.AddDays(7 - index).ToString();
dtWeeks = CommonMethods.db.QueryDataTable(CommonMethods.dBSQL.GetStaticByWeek(retStartDay, retEndDay));
dgvWeek.DataSource = null;
if (dtWeeks != null && dtWeeks.Rows.Count > 0)
{
dgvWeek.DataSource = dtWeeks;
}
}
/// <summary>
/// 按周导出
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_WeekExPort_Click(object sender, EventArgs e)
{
if (dgvWeek.Columns.Count <= 0)
{
MessageBox.Show("导出失败,无查询结果");
return;
}
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.FileName = $"产能统计_按周统计_{DateTime.Now.ToString("yyyyMMddHHmmss")}";
saveFileDialog.Filter = "*|*.csv";
if (saveFileDialog.ShowDialog() == DialogResult.Cancel)
return;
string msg = "";
if (CSVHelper<object>.ExportDataTableToCSV(dtWeeks, saveFileDialog.FileName, out msg))
{
MessageBox.Show("导出成功!");
}
}
#endregion
#region 按月
/// <summary>
/// 按月查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_MonthQuery_Click(object sender, EventArgs e)
{
string startDateTime = dtMonth.Value.ToString("yyyy-MM-01 00:00:00");
string endDateTime = new DateTime(dtMonth.Value.Year, dtMonth.Value.Month, DateTime.DaysInMonth(dtMonth.Value.Year, dtMonth.Value.Month)).ToString("yyyy-MM-dd 23:59:59");//通过指定日期计算当月最后一天
//string endDateTime = Convert.ToDateTime(startDateTime).AddDays(12).ToString("yyyy-MM-dd 23:59:59");
//string endDateTime = dtMonths.Value.ToString("yyyy-MM-dd 23:59:59");
dtMonths = CommonMethods.db.QueryDataTable(CommonMethods.dBSQL.GetStaticByMonth(startDateTime, endDateTime));
dgvMonth.DataSource = null;
if (dtMonth != null && dtMonths.Rows.Count > 0)
{
dgvMonth.DataSource = dtMonths;
}
}
/// <summary>
/// 按月查询导出
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_MonthExPort_Click(object sender, EventArgs e)
{
if (dgvMonth.Columns.Count <= 0)
{
MessageBox.Show("导出失败,无查询结果");
return;
}
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.FileName = $"产能统计_按月统计_{DateTime.Now.ToString("yyyyMMddHHmmss")}";
saveFileDialog.Filter = "*|*.csv";
if (saveFileDialog.ShowDialog() == DialogResult.Cancel)
return;
string msg = "";
if (CSVHelper<object>.ExportDataTableToCSV(dtMonths, saveFileDialog.FileName, out msg))
{
MessageBox.Show("导出成功!");
}
}
#endregion
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
#region 窗体拖动
public static Point CPoint;
private void Form_MouseDown(object sender, MouseEventArgs e)
{
CPoint = new Point(-e.X, -e.Y);
}
private void Form_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
Point myPosittion = Control.MousePosition;//获取当前鼠标的屏幕坐标
myPosittion.Offset(CPoint.X, CPoint.Y);//重载当前鼠标的位置
this.DesktopLocation = myPosittion;//设置当前窗体在屏幕上的位置
}
}
#endregion
#region 减少闪烁
protected override CreateParams CreateParams
{
get
{
CreateParams parss = base.CreateParams;
parss.ExStyle |= 0x02000000;
return parss;
}
}
#endregion
}
}
File diff suppressed because it is too large Load Diff
+670
View File
@@ -0,0 +1,670 @@
namespace LargeSquareOne
{
partial class FrmUserManage
{
/// <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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmUserManage));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.panelEnhanced1 = new JinYuan.ControlLib.PanelEnhanced();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.txtICCard = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.cmbUserLevel = new JinYuan.ControlLib.FlatComboBox();
this.label3 = new System.Windows.Forms.Label();
this.chk_SystemLog = new JinYuan.ControlLib.CheckBoxExt();
this.longTitleStyle21 = new JinYuan.ControlLib.LongTitleStyle2();
this.btn_Clear = new System.Windows.Forms.Button();
this.longTitleStyle22 = new JinYuan.ControlLib.LongTitleStyle2();
this.btn_Delete = new System.Windows.Forms.Button();
this.btn_SelectAll = new System.Windows.Forms.Button();
this.btn_Modify = new System.Windows.Forms.Button();
this.txt_LoginName = new System.Windows.Forms.TextBox();
this.btn_Add = new System.Windows.Forms.Button();
this.label7 = new System.Windows.Forms.Label();
this.longTitleStyle23 = new JinYuan.ControlLib.LongTitleStyle2();
this.txt_LoginPwd = new System.Windows.Forms.TextBox();
this.chk_CPK = new JinYuan.ControlLib.CheckBoxExt();
this.label1 = new System.Windows.Forms.Label();
this.chk_HistorySelect = new JinYuan.ControlLib.CheckBoxExt();
this.txt_LoginPwd2 = new System.Windows.Forms.TextBox();
this.chk_UserManage = new JinYuan.ControlLib.CheckBoxExt();
this.label2 = new System.Windows.Forms.Label();
this.chk_Paramset = new JinYuan.ControlLib.CheckBoxExt();
this.chk_SystemSet = new JinYuan.ControlLib.CheckBoxExt();
this.dgv_Main = new System.Windows.Forms.DataGridView();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panelEnhanced1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgv_Main)).BeginInit();
this.SuspendLayout();
//
// panelEnhanced1
//
this.panelEnhanced1.BackgroundImage = global::LargeSquareOne.Properties.Resources.BackGround;
this.panelEnhanced1.Controls.Add(this.splitContainer1);
this.panelEnhanced1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelEnhanced1.Location = new System.Drawing.Point(0, 0);
this.panelEnhanced1.Name = "panelEnhanced1";
this.panelEnhanced1.Size = new System.Drawing.Size(1392, 734);
this.panelEnhanced1.TabIndex = 0;
//
// splitContainer1
//
this.splitContainer1.BackColor = System.Drawing.Color.Transparent;
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
this.splitContainer1.IsSplitterFixed = true;
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.splitContainer1.Panel1.Controls.Add(this.txtICCard);
this.splitContainer1.Panel1.Controls.Add(this.label4);
this.splitContainer1.Panel1.Controls.Add(this.cmbUserLevel);
this.splitContainer1.Panel1.Controls.Add(this.label3);
this.splitContainer1.Panel1.Controls.Add(this.chk_SystemLog);
this.splitContainer1.Panel1.Controls.Add(this.longTitleStyle21);
this.splitContainer1.Panel1.Controls.Add(this.btn_Clear);
this.splitContainer1.Panel1.Controls.Add(this.longTitleStyle22);
this.splitContainer1.Panel1.Controls.Add(this.btn_Delete);
this.splitContainer1.Panel1.Controls.Add(this.btn_SelectAll);
this.splitContainer1.Panel1.Controls.Add(this.btn_Modify);
this.splitContainer1.Panel1.Controls.Add(this.txt_LoginName);
this.splitContainer1.Panel1.Controls.Add(this.btn_Add);
this.splitContainer1.Panel1.Controls.Add(this.label7);
this.splitContainer1.Panel1.Controls.Add(this.longTitleStyle23);
this.splitContainer1.Panel1.Controls.Add(this.txt_LoginPwd);
this.splitContainer1.Panel1.Controls.Add(this.chk_CPK);
this.splitContainer1.Panel1.Controls.Add(this.label1);
this.splitContainer1.Panel1.Controls.Add(this.chk_HistorySelect);
this.splitContainer1.Panel1.Controls.Add(this.txt_LoginPwd2);
this.splitContainer1.Panel1.Controls.Add(this.chk_UserManage);
this.splitContainer1.Panel1.Controls.Add(this.label2);
this.splitContainer1.Panel1.Controls.Add(this.chk_Paramset);
this.splitContainer1.Panel1.Controls.Add(this.chk_SystemSet);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.dgv_Main);
this.splitContainer1.Size = new System.Drawing.Size(1392, 734);
this.splitContainer1.SplitterDistance = 338;
this.splitContainer1.SplitterWidth = 1;
this.splitContainer1.TabIndex = 49;
//
// txtICCard
//
this.txtICCard.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.txtICCard.Font = new System.Drawing.Font("微软雅黑", 15F);
this.txtICCard.ForeColor = System.Drawing.Color.White;
this.txtICCard.ImeMode = System.Windows.Forms.ImeMode.Off;
this.txtICCard.Location = new System.Drawing.Point(122, 165);
this.txtICCard.Name = "txtICCard";
this.txtICCard.ShortcutsEnabled = false;
this.txtICCard.Size = new System.Drawing.Size(193, 34);
this.txtICCard.TabIndex = 52;
this.txtICCard.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtICCard_KeyDown);
this.txtICCard.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txtICCard_KeyUp);
//
// label4
//
this.label4.AutoSize = true;
this.label4.BackColor = System.Drawing.Color.Transparent;
this.label4.Font = new System.Drawing.Font("微软雅黑", 15F);
this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Location = new System.Drawing.Point(18, 169);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(91, 27);
this.label4.TabIndex = 51;
this.label4.Text = "IC卡号:";
//
// cmbUserLevel
//
this.cmbUserLevel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.cmbUserLevel.BorderColor = System.Drawing.Color.White;
this.cmbUserLevel.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.cmbUserLevel.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbUserLevel.Font = new System.Drawing.Font("微软雅黑", 15F);
this.cmbUserLevel.ForeColor = System.Drawing.Color.White;
this.cmbUserLevel.FormattingEnabled = true;
this.cmbUserLevel.Items.AddRange(new object[] {
"操作员",
"工程师",
"管理员"});
this.cmbUserLevel.Location = new System.Drawing.Point(122, 124);
this.cmbUserLevel.Name = "cmbUserLevel";
this.cmbUserLevel.Size = new System.Drawing.Size(193, 35);
this.cmbUserLevel.TabIndex = 12;
this.cmbUserLevel.SelectedIndexChanged += new System.EventHandler(this.cmbUserLevel_SelectedIndexChanged);
//
// label3
//
this.label3.AutoSize = true;
this.label3.BackColor = System.Drawing.Color.Transparent;
this.label3.Font = new System.Drawing.Font("微软雅黑", 15F);
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(18, 128);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(112, 27);
this.label3.TabIndex = 50;
this.label3.Text = "用户权限:";
//
// chk_SystemLog
//
this.chk_SystemLog.BackColor = System.Drawing.Color.Transparent;
this.chk_SystemLog.CheckBackColor = System.Drawing.Color.White;
this.chk_SystemLog.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(25)))), ((int)(((byte)(66)))));
this.chk_SystemLog.DefultCheckButtonWidth = 20;
this.chk_SystemLog.Font = new System.Drawing.Font("微软雅黑", 15F);
this.chk_SystemLog.ForeColor = System.Drawing.Color.White;
this.chk_SystemLog.Location = new System.Drawing.Point(36, 366);
this.chk_SystemLog.Name = "chk_SystemLog";
this.chk_SystemLog.Size = new System.Drawing.Size(122, 27);
this.chk_SystemLog.TabIndex = 49;
this.chk_SystemLog.Text = "日志报警";
this.chk_SystemLog.UseVisualStyleBackColor = false;
//
// longTitleStyle21
//
this.longTitleStyle21.BackColor = System.Drawing.Color.Transparent;
this.longTitleStyle21.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("longTitleStyle21.BackgroundImage")));
this.longTitleStyle21.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.longTitleStyle21.Location = new System.Drawing.Point(23, 27);
this.longTitleStyle21.Name = "longTitleStyle21";
this.longTitleStyle21.Size = new System.Drawing.Size(300, 40);
this.longTitleStyle21.TabIndex = 0;
this.longTitleStyle21.TitleName = "用户信息";
//
// btn_Clear
//
this.btn_Clear.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.btn_Clear.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Clear.Font = new System.Drawing.Font("微软雅黑", 15F);
this.btn_Clear.ForeColor = System.Drawing.Color.White;
this.btn_Clear.Location = new System.Drawing.Point(190, 664);
this.btn_Clear.Name = "btn_Clear";
this.btn_Clear.Size = new System.Drawing.Size(123, 51);
this.btn_Clear.TabIndex = 48;
this.btn_Clear.Text = "清空信息";
this.btn_Clear.UseVisualStyleBackColor = false;
this.btn_Clear.Click += new System.EventHandler(this.btn_Clear_Click);
//
// longTitleStyle22
//
this.longTitleStyle22.BackColor = System.Drawing.Color.Transparent;
this.longTitleStyle22.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("longTitleStyle22.BackgroundImage")));
this.longTitleStyle22.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.longTitleStyle22.Location = new System.Drawing.Point(23, 314);
this.longTitleStyle22.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.longTitleStyle22.Name = "longTitleStyle22";
this.longTitleStyle22.Size = new System.Drawing.Size(300, 40);
this.longTitleStyle22.TabIndex = 1;
this.longTitleStyle22.TitleName = "权限配置";
//
// btn_Delete
//
this.btn_Delete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.btn_Delete.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Delete.Font = new System.Drawing.Font("微软雅黑", 15F);
this.btn_Delete.ForeColor = System.Drawing.Color.White;
this.btn_Delete.Location = new System.Drawing.Point(30, 664);
this.btn_Delete.Name = "btn_Delete";
this.btn_Delete.Size = new System.Drawing.Size(123, 51);
this.btn_Delete.TabIndex = 47;
this.btn_Delete.Text = "删除用户";
this.btn_Delete.UseVisualStyleBackColor = false;
this.btn_Delete.Click += new System.EventHandler(this.btn_Delete_Click);
//
// btn_SelectAll
//
this.btn_SelectAll.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.btn_SelectAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_SelectAll.Font = new System.Drawing.Font("微软雅黑", 15F);
this.btn_SelectAll.ForeColor = System.Drawing.Color.White;
this.btn_SelectAll.Location = new System.Drawing.Point(191, 474);
this.btn_SelectAll.Name = "btn_SelectAll";
this.btn_SelectAll.Size = new System.Drawing.Size(114, 36);
this.btn_SelectAll.TabIndex = 34;
this.btn_SelectAll.Text = "全选/不选";
this.btn_SelectAll.UseVisualStyleBackColor = false;
this.btn_SelectAll.Click += new System.EventHandler(this.btn_SelectAll_Click);
//
// btn_Modify
//
this.btn_Modify.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.btn_Modify.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Modify.Font = new System.Drawing.Font("微软雅黑", 15F);
this.btn_Modify.ForeColor = System.Drawing.Color.White;
this.btn_Modify.Location = new System.Drawing.Point(190, 584);
this.btn_Modify.Name = "btn_Modify";
this.btn_Modify.Size = new System.Drawing.Size(123, 51);
this.btn_Modify.TabIndex = 46;
this.btn_Modify.Text = "修改用户";
this.btn_Modify.UseVisualStyleBackColor = false;
this.btn_Modify.Click += new System.EventHandler(this.btn_Modify_Click);
//
// txt_LoginName
//
this.txt_LoginName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.txt_LoginName.Font = new System.Drawing.Font("微软雅黑", 15F);
this.txt_LoginName.ForeColor = System.Drawing.Color.White;
this.txt_LoginName.Location = new System.Drawing.Point(122, 84);
this.txt_LoginName.Name = "txt_LoginName";
this.txt_LoginName.Size = new System.Drawing.Size(193, 34);
this.txt_LoginName.TabIndex = 33;
//
// btn_Add
//
this.btn_Add.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.btn_Add.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Add.Font = new System.Drawing.Font("微软雅黑", 15F);
this.btn_Add.ForeColor = System.Drawing.Color.White;
this.btn_Add.Location = new System.Drawing.Point(30, 584);
this.btn_Add.Name = "btn_Add";
this.btn_Add.Size = new System.Drawing.Size(123, 51);
this.btn_Add.TabIndex = 45;
this.btn_Add.Text = "添加用户";
this.btn_Add.UseVisualStyleBackColor = false;
this.btn_Add.Click += new System.EventHandler(this.btn_Add_Click);
//
// label7
//
this.label7.AutoSize = true;
this.label7.BackColor = System.Drawing.Color.Transparent;
this.label7.Font = new System.Drawing.Font("微软雅黑", 15F);
this.label7.ForeColor = System.Drawing.Color.White;
this.label7.Location = new System.Drawing.Point(18, 87);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(112, 27);
this.label7.TabIndex = 32;
this.label7.Text = "用户信息:";
//
// longTitleStyle23
//
this.longTitleStyle23.BackColor = System.Drawing.Color.Transparent;
this.longTitleStyle23.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("longTitleStyle23.BackgroundImage")));
this.longTitleStyle23.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.longTitleStyle23.Location = new System.Drawing.Point(23, 534);
this.longTitleStyle23.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.longTitleStyle23.Name = "longTitleStyle23";
this.longTitleStyle23.Size = new System.Drawing.Size(300, 40);
this.longTitleStyle23.TabIndex = 44;
this.longTitleStyle23.TitleName = "用户操作";
//
// txt_LoginPwd
//
this.txt_LoginPwd.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.txt_LoginPwd.Font = new System.Drawing.Font("微软雅黑", 15F);
this.txt_LoginPwd.ForeColor = System.Drawing.Color.White;
this.txt_LoginPwd.Location = new System.Drawing.Point(122, 205);
this.txt_LoginPwd.Name = "txt_LoginPwd";
this.txt_LoginPwd.Size = new System.Drawing.Size(193, 34);
this.txt_LoginPwd.TabIndex = 36;
//
// chk_CPK
//
this.chk_CPK.BackColor = System.Drawing.Color.Transparent;
this.chk_CPK.CheckBackColor = System.Drawing.Color.White;
this.chk_CPK.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(25)))), ((int)(((byte)(66)))));
this.chk_CPK.DefultCheckButtonWidth = 20;
this.chk_CPK.Font = new System.Drawing.Font("微软雅黑", 15F);
this.chk_CPK.ForeColor = System.Drawing.Color.White;
this.chk_CPK.Location = new System.Drawing.Point(190, 366);
this.chk_CPK.Name = "chk_CPK";
this.chk_CPK.Size = new System.Drawing.Size(122, 27);
this.chk_CPK.TabIndex = 43;
this.chk_CPK.Text = "CPK计算";
this.chk_CPK.UseVisualStyleBackColor = false;
//
// label1
//
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("微软雅黑", 15F);
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.Location = new System.Drawing.Point(18, 210);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(112, 27);
this.label1.TabIndex = 35;
this.label1.Text = "用户密码:";
//
// chk_HistorySelect
//
this.chk_HistorySelect.BackColor = System.Drawing.Color.Transparent;
this.chk_HistorySelect.CheckBackColor = System.Drawing.Color.White;
this.chk_HistorySelect.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(25)))), ((int)(((byte)(66)))));
this.chk_HistorySelect.DefultCheckButtonWidth = 20;
this.chk_HistorySelect.Font = new System.Drawing.Font("微软雅黑", 15F);
this.chk_HistorySelect.ForeColor = System.Drawing.Color.White;
this.chk_HistorySelect.Location = new System.Drawing.Point(36, 399);
this.chk_HistorySelect.Name = "chk_HistorySelect";
this.chk_HistorySelect.Size = new System.Drawing.Size(122, 27);
this.chk_HistorySelect.TabIndex = 42;
this.chk_HistorySelect.Text = "数据追溯";
this.chk_HistorySelect.UseVisualStyleBackColor = false;
//
// txt_LoginPwd2
//
this.txt_LoginPwd2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.txt_LoginPwd2.Font = new System.Drawing.Font("微软雅黑", 15F);
this.txt_LoginPwd2.ForeColor = System.Drawing.Color.White;
this.txt_LoginPwd2.Location = new System.Drawing.Point(122, 245);
this.txt_LoginPwd2.Name = "txt_LoginPwd2";
this.txt_LoginPwd2.Size = new System.Drawing.Size(193, 34);
this.txt_LoginPwd2.TabIndex = 38;
//
// chk_UserManage
//
this.chk_UserManage.BackColor = System.Drawing.Color.Transparent;
this.chk_UserManage.CheckBackColor = System.Drawing.Color.White;
this.chk_UserManage.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(25)))), ((int)(((byte)(66)))));
this.chk_UserManage.DefultCheckButtonWidth = 20;
this.chk_UserManage.Font = new System.Drawing.Font("微软雅黑", 15F);
this.chk_UserManage.ForeColor = System.Drawing.Color.White;
this.chk_UserManage.Location = new System.Drawing.Point(191, 432);
this.chk_UserManage.Name = "chk_UserManage";
this.chk_UserManage.Size = new System.Drawing.Size(122, 27);
this.chk_UserManage.TabIndex = 41;
this.chk_UserManage.Text = "用户管理";
this.chk_UserManage.UseVisualStyleBackColor = false;
//
// label2
//
this.label2.AutoSize = true;
this.label2.BackColor = System.Drawing.Color.Transparent;
this.label2.Font = new System.Drawing.Font("微软雅黑", 15F);
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(18, 251);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(112, 27);
this.label2.TabIndex = 37;
this.label2.Text = "确认密码:";
//
// chk_Paramset
//
this.chk_Paramset.BackColor = System.Drawing.Color.Transparent;
this.chk_Paramset.CheckBackColor = System.Drawing.Color.White;
this.chk_Paramset.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(25)))), ((int)(((byte)(66)))));
this.chk_Paramset.DefultCheckButtonWidth = 20;
this.chk_Paramset.Font = new System.Drawing.Font("微软雅黑", 15F);
this.chk_Paramset.ForeColor = System.Drawing.Color.White;
this.chk_Paramset.Location = new System.Drawing.Point(190, 399);
this.chk_Paramset.Name = "chk_Paramset";
this.chk_Paramset.Size = new System.Drawing.Size(122, 27);
this.chk_Paramset.TabIndex = 40;
this.chk_Paramset.Text = "参数设置";
this.chk_Paramset.UseVisualStyleBackColor = false;
//
// chk_SystemSet
//
this.chk_SystemSet.BackColor = System.Drawing.Color.Transparent;
this.chk_SystemSet.CheckBackColor = System.Drawing.Color.White;
this.chk_SystemSet.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(25)))), ((int)(((byte)(66)))));
this.chk_SystemSet.DefultCheckButtonWidth = 20;
this.chk_SystemSet.Font = new System.Drawing.Font("微软雅黑", 15F);
this.chk_SystemSet.ForeColor = System.Drawing.Color.White;
this.chk_SystemSet.Location = new System.Drawing.Point(36, 431);
this.chk_SystemSet.Name = "chk_SystemSet";
this.chk_SystemSet.Size = new System.Drawing.Size(122, 27);
this.chk_SystemSet.TabIndex = 39;
this.chk_SystemSet.Text = "系统设置";
this.chk_SystemSet.UseVisualStyleBackColor = false;
//
// dgv_Main
//
this.dgv_Main.AllowUserToAddRows = false;
this.dgv_Main.AllowUserToDeleteRows = false;
this.dgv_Main.AllowUserToResizeColumns = false;
this.dgv_Main.AllowUserToResizeRows = false;
this.dgv_Main.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.dgv_Main.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgv_Main.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgv_Main.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dgv_Main.ColumnHeadersHeight = 45;
this.dgv_Main.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn2,
this.Column6,
this.Column4,
this.Column3,
this.Column2,
this.Column1,
this.dataGridViewTextBoxColumn3,
this.dataGridViewTextBoxColumn4,
this.dataGridViewTextBoxColumn5,
this.Column5});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgv_Main.DefaultCellStyle = dataGridViewCellStyle2;
this.dgv_Main.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgv_Main.EnableHeadersVisualStyles = false;
this.dgv_Main.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.dgv_Main.Location = new System.Drawing.Point(0, 0);
this.dgv_Main.MultiSelect = false;
this.dgv_Main.Name = "dgv_Main";
this.dgv_Main.ReadOnly = true;
this.dgv_Main.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 10.5F);
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(20)))), ((int)(((byte)(80)))));
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgv_Main.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
this.dgv_Main.RowHeadersWidth = 80;
this.dgv_Main.RowTemplate.Height = 40;
this.dgv_Main.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgv_Main.Size = new System.Drawing.Size(1053, 734);
this.dgv_Main.TabIndex = 10;
this.dgv_Main.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgv_Main_CellContentClick);
this.dgv_Main.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dgv_Main_CellFormatting);
this.dgv_Main.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgv_Main_RowPostPaint);
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "LoginName";
this.dataGridViewTextBoxColumn1.HeaderText = "用户名";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.ReadOnly = true;
this.dataGridViewTextBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.dataGridViewTextBoxColumn1.Width = 200;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.DataPropertyName = "LoginPwd";
this.dataGridViewTextBoxColumn2.HeaderText = "用户密码";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.ReadOnly = true;
this.dataGridViewTextBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.dataGridViewTextBoxColumn2.Width = 200;
//
// Column6
//
this.Column6.DataPropertyName = "LoginUid";
this.Column6.HeaderText = "IC卡号";
this.Column6.Name = "Column6";
this.Column6.ReadOnly = true;
//
// Column4
//
this.Column4.DataPropertyName = "LoginLevel";
this.Column4.HeaderText = "用户权限";
this.Column4.Name = "Column4";
this.Column4.ReadOnly = true;
this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// Column3
//
this.Column3.DataPropertyName = "SystemLog";
this.Column3.HeaderText = "日志报警";
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// Column2
//
this.Column2.DataPropertyName = "CpkData";
this.Column2.HeaderText = "品质测量";
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// Column1
//
this.Column1.DataPropertyName = "HistoryData";
this.Column1.HeaderText = "数据追溯";
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.DataPropertyName = "ParamSet";
this.dataGridViewTextBoxColumn3.HeaderText = "参数设置";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
this.dataGridViewTextBoxColumn3.ReadOnly = true;
this.dataGridViewTextBoxColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// dataGridViewTextBoxColumn4
//
this.dataGridViewTextBoxColumn4.DataPropertyName = "SystemSet";
this.dataGridViewTextBoxColumn4.HeaderText = "系统设置";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
this.dataGridViewTextBoxColumn4.ReadOnly = true;
this.dataGridViewTextBoxColumn4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// dataGridViewTextBoxColumn5
//
this.dataGridViewTextBoxColumn5.DataPropertyName = "UserManage";
this.dataGridViewTextBoxColumn5.HeaderText = "用户管理";
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
this.dataGridViewTextBoxColumn5.ReadOnly = true;
this.dataGridViewTextBoxColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// Column5
//
this.Column5.DataPropertyName = "LoginId";
this.Column5.HeaderText = "LoginId";
this.Column5.Name = "Column5";
this.Column5.ReadOnly = true;
this.Column5.Visible = false;
//
// FrmUserManage
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1392, 734);
this.Controls.Add(this.panelEnhanced1);
this.Font = new System.Drawing.Font("微软雅黑", 10.5F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(5);
this.Name = "FrmUserManage";
this.Text = "用户管理";
this.Load += new System.EventHandler(this.FrmUserManage_Load);
this.panelEnhanced1.ResumeLayout(false);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel1.PerformLayout();
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgv_Main)).EndInit();
this.ResumeLayout(false);
}
#endregion
private JinYuan.ControlLib.PanelEnhanced panelEnhanced1;
private JinYuan.ControlLib.LongTitleStyle2 longTitleStyle22;
private JinYuan.ControlLib.LongTitleStyle2 longTitleStyle21;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox txt_LoginName;
private System.Windows.Forms.Button btn_SelectAll;
private JinYuan.ControlLib.CheckBoxExt chk_SystemSet;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txt_LoginPwd2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox txt_LoginPwd;
private JinYuan.ControlLib.CheckBoxExt chk_UserManage;
private JinYuan.ControlLib.CheckBoxExt chk_Paramset;
private JinYuan.ControlLib.CheckBoxExt chk_HistorySelect;
private System.Windows.Forms.Button btn_Clear;
private System.Windows.Forms.Button btn_Delete;
private System.Windows.Forms.Button btn_Modify;
private System.Windows.Forms.Button btn_Add;
private JinYuan.ControlLib.LongTitleStyle2 longTitleStyle23;
private JinYuan.ControlLib.CheckBoxExt chk_CPK;
private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.DataGridView dgv_Main;
private JinYuan.ControlLib.CheckBoxExt chk_SystemLog;
private System.Windows.Forms.Label label3;
private JinYuan.ControlLib.FlatComboBox cmbUserLevel;
private System.Windows.Forms.TextBox txtICCard;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
}
}
+329
View File
@@ -0,0 +1,329 @@
using JinYuan.Helper;
using JinYuan.Models;
using JinYuan.VirtualDataLibrary;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Windows.Forms;
namespace LargeSquareOne
{
public partial class FrmUserManage : Form
{
public FrmUserManage()
{
InitializeComponent();
this.dgv_Main.AutoGenerateColumns = false;
UpdateSysAdminList();
if (sysAdmins.Count > 0)
{
UpdateSysAdminInfo(sysAdmins[0]);
}
}
/// <summary>
/// 当前用户中所有的用户集合
/// </summary>
private List<SysAdmin> sysAdmins = new List<SysAdmin>();
/// <summary>
/// 更新用户集合
/// </summary>
private void UpdateSysAdminList()
{
try
{
sysAdmins = CommonMethods.db.QueryDataTable(CommonMethods.dBSQL.GetSysAdminSql()).ToDataList<SysAdmin>();
sysAdmins.ForEach(c => c.LoginPwd = StringSecurityHelper.DESDecrypt(c.LoginPwd));
this.dgv_Main.DataSource = null;
this.dgv_Main.DataSource = sysAdmins;
}
catch (Exception ex)
{
new FrmMsgBoxWithAck("查询失败:" + ex.Message, "用户查询失败").ShowDialog();
}
}
private void UpdateSysAdminInfo(SysAdmin sysAdmin)
{
this.txt_LoginName.Text = sysAdmin.LoginName;
this.txtICCard.Text = sysAdmin.LoginUid;
this.txt_LoginPwd.Text = sysAdmin.LoginPwd;
this.txt_LoginPwd2.Text = sysAdmin.LoginPwd;
this.cmbUserLevel.Text = sysAdmin.LoginLevel;
this.chk_SystemLog.Checked = sysAdmin.SystemLog;
this.chk_CPK.Checked = sysAdmin.CpkData;
this.chk_HistorySelect.Checked = sysAdmin.HistoryData;
this.chk_SystemSet.Checked = sysAdmin.SystemSet;
this.chk_Paramset.Checked = sysAdmin.ParamSet;
this.chk_UserManage.Checked = sysAdmin.UserManage;
}
private void FrmUserManage_Load(object sender, EventArgs e)
{
}
private void cmbUserLevel_SelectedIndexChanged(object sender, EventArgs e)
{
CommonMethods.mesConfig.userLevel = cmbUserLevel.Text.ToString();
}
private void dgv_Main_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex >= 0)
{
int i = this.dgv_Main.SelectedRows[0].Index;
UpdateSysAdminInfo(sysAdmins[this.dgv_Main.SelectedRows[0].Index]);
}
}
private void dgv_Main_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
//显示序列号
DataGridViewHelper.DgvRowPostPaint(this.dgv_Main, e);
}
private void dgv_Main_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.RowIndex >= 0 && e.ColumnIndex > 2)
{
string value = this.dgv_Main.Rows[e.RowIndex].Cells[e.ColumnIndex].Value?.ToString();
if (value == "True")
{
e.Value = "启用";
}
else
{
e.Value = "禁用";
}
}
}
private void btn_Add_Click(object sender, EventArgs e)
{
//数据验证
if (this.txt_LoginName.Text.Length == 0)
{
new FrmMsgBoxWithAck("用户名不能为空", "添加用户").ShowDialog();
return;
}
if (this.txt_LoginPwd.Text.Length == 0)
{
new FrmMsgBoxWithAck("用户密码不能为空", "添加用户").ShowDialog();
return;
}
if (this.txt_LoginPwd2.Text.Length == 0)
{
new FrmMsgBoxWithAck("确认密码不能为空", "添加用户").ShowDialog();
return;
}
if (this.txt_LoginPwd.Text != this.txt_LoginPwd2.Text)
{
new FrmMsgBoxWithAck("两次输入密码不一致", "添加用户").ShowDialog();
return;
}
if (sysAdmins.Where(c => c.LoginName == this.txt_LoginName.Text.Trim()).ToList().Count > 0)
{
new FrmMsgBoxWithAck("该用户名已经存在", "添加用户").ShowDialog();
return;
}
//封装数据
SysAdmin sysAdmin = new SysAdmin()
{
LoginName = this.txt_LoginName.Text.Trim(),
LoginPwd = StringSecurityHelper.DESEncrypt(this.txt_LoginPwd.Text.Trim()),
LoginUid = this.txtICCard.Text.Trim(),
LoginLevel = CommonMethods.mesConfig.userLevel,
SystemLog = this.chk_SystemLog.Checked,
CpkData = this.chk_CPK.Checked,
HistoryData = this.chk_HistorySelect.Checked,
ParamSet = this.chk_Paramset.Checked,
SystemSet = this.chk_SystemSet.Checked,
UserManage = this.chk_UserManage.Checked
};
//调用方法
try
{
if (CommonMethods.db.AddReturnBool(sysAdmin))
{
UpdateSysAdminList();
}
else
{
new FrmMsgBoxWithAck("添加用户失败", "添加用户").ShowDialog();
}
}
catch (Exception ex)
{
new FrmMsgBoxWithAck("添加用户失败:" + ex.Message, "添加用户").ShowDialog();
}
}
private void btn_Modify_Click(object sender, EventArgs e)
{
//数据验证
if (this.txt_LoginName.Text.Length == 0)
{
new FrmMsgBoxWithAck("用户名不能为空", "修改用户").ShowDialog();
return;
}
if (this.txt_LoginPwd.Text.Length == 0)
{
new FrmMsgBoxWithAck("用户密码不能为空", "修改用户").ShowDialog();
return;
}
if (this.txt_LoginPwd2.Text.Length == 0)
{
new FrmMsgBoxWithAck("确认密码不能为空", "修改用户").ShowDialog();
return;
}
if (this.txt_LoginPwd.Text != this.txt_LoginPwd2.Text)
{
new FrmMsgBoxWithAck("两次输入密码不一致", "修改用户").ShowDialog();
return;
}
//如果修改用户名就需要进行判断用户名是否存在
//if (sysAdmins[this.dgv_Main.SelectedRows[0].Index].LoginName != this.txt_LoginName.Text)
//{
// if (sysAdmins.Where(c => c.LoginName == this.txt_LoginName.Text.Trim()).ToList().Count > 0)
// {
// new FrmMsgBoxWithAck("该用户名已经存在", "修改用户").ShowDialog();
// return;
// }
//}
//封装数据
SysAdmin sysAdmin = new SysAdmin()
{
LoginId = sysAdmins[this.dgv_Main.SelectedRows[0].Index].LoginId,
LoginName = this.txt_LoginName.Text.Trim(),
LoginPwd = StringSecurityHelper.DESEncrypt(this.txt_LoginPwd.Text.Trim()),
LoginUid = this.txtICCard.Text.Trim(),
LoginLevel = CommonMethods.mesConfig.userLevel,
SystemLog = this.chk_SystemLog.Checked,
CpkData = this.chk_CPK.Checked,
HistoryData = this.chk_HistorySelect.Checked,
SystemSet = this.chk_SystemSet.Checked,
ParamSet = this.chk_Paramset.Checked,
UserManage = this.chk_UserManage.Checked
};
//调用方法
try
{
if (CommonMethods.db.Update<SysAdmin>(sysAdmin, it => it.LoginId == sysAdmin.LoginId) == 1)
{
UpdateSysAdminList();
}
else
{
new FrmMsgBoxWithAck("修改用户失败", "修改用户").ShowDialog();
}
}
catch (Exception ex)
{
new FrmMsgBoxWithAck("修改用户失败:" + ex.Message, "修改用户").ShowDialog();
}
}
private void btn_Delete_Click(object sender, EventArgs e)
{
int loginId = sysAdmins[this.dgv_Main.SelectedRows[0].Index].LoginId;
string loginName = sysAdmins[this.dgv_Main.SelectedRows[0].Index].LoginName;
try
{
if (new FrmMsgBoxWithAck($"是否删除{loginName}用户!", "删除提示").ShowDialog() == DialogResult.OK)
{
if (CommonMethods.db.Delete<SysAdmin>(it => it.LoginId == loginId) == 1)
{
UpdateSysAdminList();
}
else
{
new FrmMsgBoxWithAck("删除用户失败", "修改用户").ShowDialog();
}
}
}
catch (Exception ex)
{
new FrmMsgBoxWithAck("删除用户失败:" + ex.Message, "修改用户").ShowDialog();
}
}
private void btn_Clear_Click(object sender, EventArgs e)
{
this.txt_LoginName.Clear();
this.txtICCard.Clear();
this.txt_LoginPwd.Clear();
this.txt_LoginPwd2.Clear();
SetChecked(false);
}
private void btn_SelectAll_Click(object sender, EventArgs e)
{
SetChecked(!this.chk_SystemSet.Checked);
}
private void SetChecked(bool value)
{
this.chk_SystemLog.Checked = value;
this.chk_CPK.Checked = value;
this.chk_HistorySelect.Checked = value;
this.chk_SystemSet.Checked = value;
this.chk_Paramset.Checked = value;
this.chk_UserManage.Checked = value;
}
#region 减少闪烁
protected override CreateParams CreateParams
{
get
{
CreateParams parss = base.CreateParams;
parss.ExStyle |= 0x02000000;
return parss;
}
}
#endregion
private void txtICCard_KeyDown(object sender, KeyEventArgs e)
{
if (e.Control && e.KeyCode == Keys.V)
{
e.Handled = true;
}
}
DateTime dt1;
DateTime dt2;
private void txtICCard_KeyUp(object sender, KeyEventArgs e)
{
string Item = txtICCard.Text.Trim();
if (txtICCard.TextLength == 1)
{
dt1 = System.DateTime.Now;
}
if (txtICCard.TextLength == 2)
{
dt2 = System.DateTime.Now;
TimeSpan _ts = dt2.Subtract(dt1);
if (_ts.Milliseconds > 50)
{
new FrmMsgBoxWithAck("禁止手动输入,请使用厂牌扫描录入", "IC卡号").ShowDialog();
txtICCard.Clear();
}
}
}
}
}
+559
View File
@@ -0,0 +1,559 @@
<?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>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="longTitleStyle21.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
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
</value>
</data>
<data name="longTitleStyle22.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
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
</value>
</data>
<data name="longTitleStyle23.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
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
</value>
</data>
<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="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column1.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="dataGridViewTextBoxColumn5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
+643
View File
@@ -0,0 +1,643 @@
namespace LargeSquareOne
{
partial class FrmVariableConfig
{
/// <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()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.panelExt1 = new JinYuan.ControlLib.PanelExt();
this.txt_Start = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.txt_VarAddress = new System.Windows.Forms.TextBox();
this.num_Offset = new System.Windows.Forms.NumericUpDown();
this.label9 = new System.Windows.Forms.Label();
this.num_Scale = new System.Windows.Forms.NumericUpDown();
this.label8 = new System.Windows.Forms.Label();
this.chk_NegAlarm = new JinYuan.ControlLib.CheckBoxExt();
this.chk_PosAlarm = new JinYuan.ControlLib.CheckBoxExt();
this.cmb_DataType = new System.Windows.Forms.ComboBox();
this.label7 = new System.Windows.Forms.Label();
this.dgv_Main = new System.Windows.Forms.DataGridView();
this.VarName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Start = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.OffsetOrLenght = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DataType = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Scale = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Offset = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.PosAlarm = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.NegAlarm = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.GroupName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btn_Modify = new System.Windows.Forms.Button();
this.btn_Delete = new System.Windows.Forms.Button();
this.btn_Add = new System.Windows.Forms.Button();
this.txt_Remark = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.cmb_GroupName = new System.Windows.Forms.ComboBox();
this.label5 = new System.Windows.Forms.Label();
this.num_OffsetOrLenght = new System.Windows.Forms.NumericUpDown();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.txt_VarName = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.topPanel = new System.Windows.Forms.Panel();
this.btn_Close = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.panelExt1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.num_Offset)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.num_Scale)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgv_Main)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.num_OffsetOrLenght)).BeginInit();
this.topPanel.SuspendLayout();
this.SuspendLayout();
//
// panelExt1
//
this.panelExt1.BackColor = System.Drawing.Color.Transparent;
this.panelExt1.BordeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(79)))), ((int)(((byte)(150)))));
this.panelExt1.BordeWidth = 2;
this.panelExt1.BottomGap = 0;
this.panelExt1.Controls.Add(this.txt_Start);
this.panelExt1.Controls.Add(this.label10);
this.panelExt1.Controls.Add(this.txt_VarAddress);
this.panelExt1.Controls.Add(this.num_Offset);
this.panelExt1.Controls.Add(this.label9);
this.panelExt1.Controls.Add(this.num_Scale);
this.panelExt1.Controls.Add(this.label8);
this.panelExt1.Controls.Add(this.chk_NegAlarm);
this.panelExt1.Controls.Add(this.chk_PosAlarm);
this.panelExt1.Controls.Add(this.cmb_DataType);
this.panelExt1.Controls.Add(this.label7);
this.panelExt1.Controls.Add(this.dgv_Main);
this.panelExt1.Controls.Add(this.btn_Modify);
this.panelExt1.Controls.Add(this.btn_Delete);
this.panelExt1.Controls.Add(this.btn_Add);
this.panelExt1.Controls.Add(this.txt_Remark);
this.panelExt1.Controls.Add(this.label6);
this.panelExt1.Controls.Add(this.cmb_GroupName);
this.panelExt1.Controls.Add(this.label5);
this.panelExt1.Controls.Add(this.num_OffsetOrLenght);
this.panelExt1.Controls.Add(this.label4);
this.panelExt1.Controls.Add(this.label3);
this.panelExt1.Controls.Add(this.txt_VarName);
this.panelExt1.Controls.Add(this.label2);
this.panelExt1.Controls.Add(this.topPanel);
this.panelExt1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelExt1.LeftGap = 0;
this.panelExt1.Location = new System.Drawing.Point(0, 0);
this.panelExt1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.panelExt1.Name = "panelExt1";
this.panelExt1.RightGap = 0;
this.panelExt1.Size = new System.Drawing.Size(1024, 636);
this.panelExt1.TabIndex = 0;
this.panelExt1.TopGap = 0;
//
// txt_Start
//
this.txt_Start.Font = new System.Drawing.Font("微软雅黑", 12F);
this.txt_Start.Location = new System.Drawing.Point(721, 57);
this.txt_Start.Name = "txt_Start";
this.txt_Start.Size = new System.Drawing.Size(87, 29);
this.txt_Start.TabIndex = 27;
this.txt_Start.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label10
//
this.label10.AutoSize = true;
this.label10.ForeColor = System.Drawing.Color.White;
this.label10.Location = new System.Drawing.Point(458, 60);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(74, 21);
this.label10.TabIndex = 26;
this.label10.Text = "变量地址";
//
// txt_VarAddress
//
this.txt_VarAddress.Font = new System.Drawing.Font("微软雅黑", 12F);
this.txt_VarAddress.Location = new System.Drawing.Point(533, 57);
this.txt_VarAddress.Name = "txt_VarAddress";
this.txt_VarAddress.Size = new System.Drawing.Size(94, 29);
this.txt_VarAddress.TabIndex = 25;
this.txt_VarAddress.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// num_Offset
//
this.num_Offset.DecimalPlaces = 1;
this.num_Offset.Location = new System.Drawing.Point(903, 102);
this.num_Offset.Name = "num_Offset";
this.num_Offset.Size = new System.Drawing.Size(92, 29);
this.num_Offset.TabIndex = 23;
this.num_Offset.Value = new decimal(new int[] {
10,
0,
0,
65536});
//
// label9
//
this.label9.AutoSize = true;
this.label9.ForeColor = System.Drawing.Color.White;
this.label9.Location = new System.Drawing.Point(840, 107);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(58, 21);
this.label9.TabIndex = 22;
this.label9.Text = "偏移量";
//
// num_Scale
//
this.num_Scale.DecimalPlaces = 1;
this.num_Scale.Location = new System.Drawing.Point(722, 108);
this.num_Scale.Name = "num_Scale";
this.num_Scale.Size = new System.Drawing.Size(86, 29);
this.num_Scale.TabIndex = 21;
this.num_Scale.Value = new decimal(new int[] {
10,
0,
0,
65536});
//
// label8
//
this.label8.AutoSize = true;
this.label8.ForeColor = System.Drawing.Color.White;
this.label8.Location = new System.Drawing.Point(642, 113);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(74, 21);
this.label8.TabIndex = 20;
this.label8.Text = "线性系数";
//
// chk_NegAlarm
//
this.chk_NegAlarm.CheckBackColor = System.Drawing.Color.White;
this.chk_NegAlarm.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(25)))), ((int)(((byte)(66)))));
this.chk_NegAlarm.DefultCheckButtonWidth = 20;
this.chk_NegAlarm.ForeColor = System.Drawing.Color.White;
this.chk_NegAlarm.Location = new System.Drawing.Point(367, 110);
this.chk_NegAlarm.Name = "chk_NegAlarm";
this.chk_NegAlarm.Size = new System.Drawing.Size(120, 25);
this.chk_NegAlarm.TabIndex = 19;
this.chk_NegAlarm.Text = "下降沿报警";
this.chk_NegAlarm.UseVisualStyleBackColor = true;
//
// chk_PosAlarm
//
this.chk_PosAlarm.CheckBackColor = System.Drawing.Color.White;
this.chk_PosAlarm.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(25)))), ((int)(((byte)(66)))));
this.chk_PosAlarm.DefultCheckButtonWidth = 20;
this.chk_PosAlarm.ForeColor = System.Drawing.Color.White;
this.chk_PosAlarm.Location = new System.Drawing.Point(241, 110);
this.chk_PosAlarm.Name = "chk_PosAlarm";
this.chk_PosAlarm.Size = new System.Drawing.Size(120, 25);
this.chk_PosAlarm.TabIndex = 18;
this.chk_PosAlarm.Text = "上升沿报警";
this.chk_PosAlarm.UseVisualStyleBackColor = true;
//
// cmb_DataType
//
this.cmb_DataType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmb_DataType.FormattingEnabled = true;
this.cmb_DataType.Location = new System.Drawing.Point(105, 107);
this.cmb_DataType.Name = "cmb_DataType";
this.cmb_DataType.Size = new System.Drawing.Size(125, 29);
this.cmb_DataType.TabIndex = 17;
//
// label7
//
this.label7.AutoSize = true;
this.label7.ForeColor = System.Drawing.Color.White;
this.label7.Location = new System.Drawing.Point(8, 113);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(74, 21);
this.label7.TabIndex = 16;
this.label7.Text = "数据类型";
//
// dgv_Main
//
this.dgv_Main.AllowUserToAddRows = false;
this.dgv_Main.AllowUserToDeleteRows = false;
this.dgv_Main.AllowUserToResizeRows = false;
this.dgv_Main.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.dgv_Main.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.dgv_Main.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 12F);
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgv_Main.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dgv_Main.ColumnHeadersHeight = 45;
this.dgv_Main.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dgv_Main.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.VarName,
this.Column1,
this.Start,
this.OffsetOrLenght,
this.DataType,
this.Scale,
this.Offset,
this.PosAlarm,
this.NegAlarm,
this.GroupName,
this.Remark});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F);
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgv_Main.DefaultCellStyle = dataGridViewCellStyle2;
this.dgv_Main.EnableHeadersVisualStyles = false;
this.dgv_Main.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(77)))), ((int)(((byte)(147)))));
this.dgv_Main.Location = new System.Drawing.Point(3, 217);
this.dgv_Main.Name = "dgv_Main";
this.dgv_Main.ReadOnly = true;
this.dgv_Main.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F);
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(40)))), ((int)(((byte)(86)))));
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgv_Main.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
this.dgv_Main.RowHeadersWidth = 45;
this.dgv_Main.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
this.dgv_Main.RowTemplate.Height = 40;
this.dgv_Main.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.False;
this.dgv_Main.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgv_Main.Size = new System.Drawing.Size(1018, 416);
this.dgv_Main.TabIndex = 15;
this.dgv_Main.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgv_Main_CellClick);
this.dgv_Main.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dgv_Main_CellFormatting);
this.dgv_Main.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgv_Main_RowPostPaint);
//
// VarName
//
this.VarName.DataPropertyName = "VarName";
this.VarName.HeaderText = "变量名称";
this.VarName.Name = "VarName";
this.VarName.ReadOnly = true;
this.VarName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.VarName.Width = 130;
//
// Column1
//
this.Column1.DataPropertyName = "VarAddress";
this.Column1.HeaderText = "变量地址";
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
//
// Start
//
this.Start.DataPropertyName = "Start";
this.Start.HeaderText = "起始索引";
this.Start.Name = "Start";
this.Start.ReadOnly = true;
this.Start.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Start.Width = 80;
//
// OffsetOrLenght
//
this.OffsetOrLenght.DataPropertyName = "OffsetOrLenght";
this.OffsetOrLenght.HeaderText = "位偏移/长度";
this.OffsetOrLenght.Name = "OffsetOrLenght";
this.OffsetOrLenght.ReadOnly = true;
this.OffsetOrLenght.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.OffsetOrLenght.Width = 110;
//
// DataType
//
this.DataType.DataPropertyName = "DataType";
this.DataType.HeaderText = "数据类型";
this.DataType.Name = "DataType";
this.DataType.ReadOnly = true;
this.DataType.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.DataType.Width = 80;
//
// Scale
//
this.Scale.DataPropertyName = "Scale";
this.Scale.HeaderText = "线性系数";
this.Scale.Name = "Scale";
this.Scale.ReadOnly = true;
this.Scale.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Scale.Width = 80;
//
// Offset
//
this.Offset.DataPropertyName = "Offset";
this.Offset.HeaderText = "偏移量";
this.Offset.Name = "Offset";
this.Offset.ReadOnly = true;
this.Offset.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Offset.Width = 80;
//
// PosAlarm
//
this.PosAlarm.DataPropertyName = "PosAlarm";
this.PosAlarm.HeaderText = "上升沿";
this.PosAlarm.Name = "PosAlarm";
this.PosAlarm.ReadOnly = true;
this.PosAlarm.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.PosAlarm.Width = 80;
//
// NegAlarm
//
this.NegAlarm.DataPropertyName = "NegAlarm";
this.NegAlarm.HeaderText = "下降沿";
this.NegAlarm.Name = "NegAlarm";
this.NegAlarm.ReadOnly = true;
this.NegAlarm.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.NegAlarm.Width = 80;
//
// GroupName
//
this.GroupName.DataPropertyName = "GroupName";
this.GroupName.HeaderText = "通信组";
this.GroupName.Name = "GroupName";
this.GroupName.ReadOnly = true;
this.GroupName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// Remark
//
this.Remark.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.Remark.DataPropertyName = "Remark";
this.Remark.HeaderText = "备注说明";
this.Remark.Name = "Remark";
this.Remark.ReadOnly = true;
this.Remark.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// btn_Modify
//
this.btn_Modify.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btn_Modify.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Modify.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.btn_Modify.ForeColor = System.Drawing.Color.White;
this.btn_Modify.Location = new System.Drawing.Point(829, 154);
this.btn_Modify.Name = "btn_Modify";
this.btn_Modify.Size = new System.Drawing.Size(86, 36);
this.btn_Modify.TabIndex = 14;
this.btn_Modify.Text = "修改变量";
this.btn_Modify.UseVisualStyleBackColor = false;
this.btn_Modify.Click += new System.EventHandler(this.btn_Modify_Click);
//
// btn_Delete
//
this.btn_Delete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btn_Delete.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Delete.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.btn_Delete.ForeColor = System.Drawing.Color.White;
this.btn_Delete.Location = new System.Drawing.Point(693, 154);
this.btn_Delete.Name = "btn_Delete";
this.btn_Delete.Size = new System.Drawing.Size(86, 36);
this.btn_Delete.TabIndex = 13;
this.btn_Delete.Text = "删除变量";
this.btn_Delete.UseVisualStyleBackColor = false;
this.btn_Delete.Click += new System.EventHandler(this.btn_Delete_Click);
//
// btn_Add
//
this.btn_Add.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(27)))), ((int)(((byte)(78)))));
this.btn_Add.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Add.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.btn_Add.ForeColor = System.Drawing.Color.White;
this.btn_Add.Location = new System.Drawing.Point(557, 154);
this.btn_Add.Name = "btn_Add";
this.btn_Add.Size = new System.Drawing.Size(86, 36);
this.btn_Add.TabIndex = 12;
this.btn_Add.Text = "新增变量";
this.btn_Add.UseVisualStyleBackColor = false;
this.btn_Add.Click += new System.EventHandler(this.btn_Add_Click);
//
// txt_Remark
//
this.txt_Remark.Font = new System.Drawing.Font("微软雅黑", 12F);
this.txt_Remark.Location = new System.Drawing.Point(105, 158);
this.txt_Remark.Name = "txt_Remark";
this.txt_Remark.Size = new System.Drawing.Size(405, 29);
this.txt_Remark.TabIndex = 11;
this.txt_Remark.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label6
//
this.label6.AutoSize = true;
this.label6.ForeColor = System.Drawing.Color.White;
this.label6.Location = new System.Drawing.Point(8, 163);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(74, 21);
this.label6.TabIndex = 10;
this.label6.Text = "备注说明";
//
// cmb_GroupName
//
this.cmb_GroupName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmb_GroupName.FormattingEnabled = true;
this.cmb_GroupName.Location = new System.Drawing.Point(105, 55);
this.cmb_GroupName.Name = "cmb_GroupName";
this.cmb_GroupName.Size = new System.Drawing.Size(125, 29);
this.cmb_GroupName.TabIndex = 9;
//
// label5
//
this.label5.AutoSize = true;
this.label5.ForeColor = System.Drawing.Color.White;
this.label5.Location = new System.Drawing.Point(240, 59);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(74, 21);
this.label5.TabIndex = 8;
this.label5.Text = "变量名称";
//
// num_OffsetOrLenght
//
this.num_OffsetOrLenght.Location = new System.Drawing.Point(931, 55);
this.num_OffsetOrLenght.Maximum = new decimal(new int[] {
3000,
0,
0,
0});
this.num_OffsetOrLenght.Name = "num_OffsetOrLenght";
this.num_OffsetOrLenght.Size = new System.Drawing.Size(64, 29);
this.num_OffsetOrLenght.TabIndex = 7;
this.num_OffsetOrLenght.Value = new decimal(new int[] {
1,
0,
0,
0});
//
// label4
//
this.label4.AutoSize = true;
this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Location = new System.Drawing.Point(828, 60);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(97, 21);
this.label4.TabIndex = 6;
this.label4.Text = "位偏移/长度";
//
// label3
//
this.label3.AutoSize = true;
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(642, 61);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(74, 21);
this.label3.TabIndex = 4;
this.label3.Text = "起始索引";
//
// txt_VarName
//
this.txt_VarName.Font = new System.Drawing.Font("微软雅黑", 12F);
this.txt_VarName.Location = new System.Drawing.Point(320, 56);
this.txt_VarName.Name = "txt_VarName";
this.txt_VarName.Size = new System.Drawing.Size(134, 29);
this.txt_VarName.TabIndex = 3;
this.txt_VarName.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label2
//
this.label2.AutoSize = true;
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(8, 60);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(90, 21);
this.label2.TabIndex = 2;
this.label2.Text = "通信组名称";
//
// topPanel
//
this.topPanel.Controls.Add(this.btn_Close);
this.topPanel.Controls.Add(this.label1);
this.topPanel.Dock = System.Windows.Forms.DockStyle.Top;
this.topPanel.Location = new System.Drawing.Point(0, 0);
this.topPanel.Name = "topPanel";
this.topPanel.Size = new System.Drawing.Size(1024, 49);
this.topPanel.TabIndex = 0;
this.topPanel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseDown);
this.topPanel.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Panel_MouseMove);
//
// btn_Close
//
this.btn_Close.FlatAppearance.BorderSize = 0;
this.btn_Close.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(29)))), ((int)(((byte)(84)))));
this.btn_Close.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btn_Close.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_Close.Font = new System.Drawing.Font("微软雅黑", 15.5F);
this.btn_Close.ForeColor = System.Drawing.Color.White;
this.btn_Close.Location = new System.Drawing.Point(989, 7);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(32, 32);
this.btn_Close.TabIndex = 1;
this.btn_Close.Text = "X";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.Location = new System.Drawing.Point(15, 14);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(74, 21);
this.label1.TabIndex = 0;
this.label1.Text = "变量配置";
//
// FrmVariableConfig
//
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(23)))), ((int)(((byte)(38)))));
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(1024, 636);
this.Controls.Add(this.panelExt1);
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("微软雅黑", 12F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.Name = "FrmVariableConfig";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "FrmGroupConfig";
this.panelExt1.ResumeLayout(false);
this.panelExt1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.num_Offset)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.num_Scale)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgv_Main)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.num_OffsetOrLenght)).EndInit();
this.topPanel.ResumeLayout(false);
this.topPanel.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private JinYuan.ControlLib.PanelExt panelExt1;
private System.Windows.Forms.Panel topPanel;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txt_Remark;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.ComboBox cmb_GroupName;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.NumericUpDown num_OffsetOrLenght;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox txt_VarName;
private System.Windows.Forms.DataGridView dgv_Main;
private System.Windows.Forms.Button btn_Modify;
private System.Windows.Forms.Button btn_Delete;
private System.Windows.Forms.Button btn_Add;
private System.Windows.Forms.NumericUpDown num_Offset;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.NumericUpDown num_Scale;
private System.Windows.Forms.Label label8;
private JinYuan.ControlLib.CheckBoxExt chk_NegAlarm;
private JinYuan.ControlLib.CheckBoxExt chk_PosAlarm;
private System.Windows.Forms.ComboBox cmb_DataType;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox txt_VarAddress;
private System.Windows.Forms.TextBox txt_Start;
private System.Windows.Forms.DataGridViewTextBoxColumn VarName;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Start;
private System.Windows.Forms.DataGridViewTextBoxColumn OffsetOrLenght;
private System.Windows.Forms.DataGridViewTextBoxColumn DataType;
private System.Windows.Forms.DataGridViewTextBoxColumn Scale;
private System.Windows.Forms.DataGridViewTextBoxColumn Offset;
private System.Windows.Forms.DataGridViewTextBoxColumn PosAlarm;
private System.Windows.Forms.DataGridViewTextBoxColumn NegAlarm;
private System.Windows.Forms.DataGridViewTextBoxColumn GroupName;
private System.Windows.Forms.DataGridViewTextBoxColumn Remark;
}
}
+378
View File
@@ -0,0 +1,378 @@
using JinYuan.DataConvertLib;
using JinYuan.Helper;
using JinYuan.Models;
using MiniExcelLibs;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
namespace LargeSquareOne
{
public partial class FrmVariableConfig : Form
{
public FrmVariableConfig()
{
InitializeComponent();
this.cmb_DataType.DataSource = Enum.GetNames(typeof(DataType));
this.dgv_Main.AutoGenerateColumns = false;
List<Group> TotalGroups = GetALLGroups();
TotalVariables = GetALLVariables();
this.cmb_GroupName.SelectedIndexChanged += Cmb_GroupName_SelectedIndexChanged;
if (TotalGroups.Count > 0)
{
foreach (var item in TotalGroups)
{
this.cmb_GroupName.Items.Add(item.GroupName);
}
this.cmb_GroupName.SelectedIndex = 0;
}
}
private void Cmb_GroupName_SelectedIndexChanged(object sender, EventArgs e)
{
RefreshVariable();
}
#region 减少闪烁
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000;
return cp;
}
}
#endregion
#region 无边框拖动
private Point mPoint;
private void Panel_MouseDown(object sender, MouseEventArgs e)
{
mPoint = new Point(e.X, e.Y);
}
private void Panel_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
this.Location = new Point(this.Location.X + e.X - mPoint.X, this.Location.Y + e.Y - mPoint.Y);
}
}
#endregion
private string groupPath = Application.StartupPath + "\\Config\\Group.xlsx";
private string variablePath = Application.StartupPath + "\\Config\\Variable.xlsx";
/// <summary>
/// 总变量地址
/// </summary>
private List<Variable> TotalVariables = new List<Variable>();
/// <summary>
/// 单一通信组地址
/// </summary>
private List<Variable> SignelVariables = new List<Variable>();
/// <summary>
/// 获取所有通信组
/// </summary>
/// <returns></returns>
private List<Group> GetALLGroups()
{
try
{
return MiniExcel.Query<Group>(groupPath).ToList();
}
catch (Exception)
{
return new List<Group>();
}
}
/// <summary>
/// 获取所有变量
/// </summary>
/// <returns></returns>
private List<Variable> GetALLVariables()
{
try
{
return MiniExcel.Query<Variable>(variablePath).ToList();
}
catch (Exception)
{
return new List<Variable>();
}
}
#region 根据通信组名称筛选
private List<Variable> GetVariablesByGroupName(string groupName)
{
if (groupName.Length == 0)
{
return TotalVariables;
}
else
{
return TotalVariables.FindAll(x => x.GroupName == groupName).ToList();
}
}
#endregion
/// <summary>
/// 更新变量集合
/// </summary>
private void RefreshVariable()
{
var list = GetVariablesByGroupName(this.cmb_GroupName.Text.Trim());
this.dgv_Main.DataSource = null;
if (list != null && list.Count > 0)
{
SignelVariables = list;
this.dgv_Main.DataSource = list;
}
}
/// <summary>
/// 判断变量名称是否存在
/// </summary>
/// <param name="variableName"></param>
/// <returns></returns>
private bool IsVariableNameExits(string variableName)
{
return TotalVariables.FindAll(c => c.VarName == variableName).ToList().Count < 0;
}
#region 增删改通信组
/// <summary>
/// 增加
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_Add_Click(object sender, EventArgs e)
{
string varName = this.txt_VarName.Text.Trim();
if (varName.Length == 0)
{
new FrmMsgBoxOutWithAck(2, "变量名称不能为空!", "添加变量").Show();
return;
}
if (IsVariableNameExits(varName))
{
new FrmMsgBoxOutWithAck(2, "变量名称已存在!", "添加变量").Show();
return;
}
TotalVariables.Add(new Variable()
{
VarName = varName,
VarAddress = this.txt_VarAddress.Text,
Start = this.txt_Start.Text.Trim(),
OffsetOrLenght = Convert.ToUInt16(this.num_OffsetOrLenght.Value),
DataType = this.cmb_DataType.Text.Trim(),
GroupName = this.cmb_GroupName.Text.Trim(),
PosAlarm = this.chk_PosAlarm.Checked,
NegAlarm = this.chk_NegAlarm.Checked,
Scale = Convert.ToSingle(this.num_Scale.Value),
Offset = Convert.ToSingle(this.num_Offset.Value),
Remark = this.txt_Remark.Text.Trim()
});
try
{
MiniExcel.SaveAs(variablePath, TotalVariables, overwriteFile: true);
//刷新数据
RefreshVariable();
}
catch (Exception ex)
{
new FrmMsgBoxOutWithAck(3, "添加变量失败:" + ex.Message, "添加变量").Show();
}
}
/// <summary>
/// 删除
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_Delete_Click(object sender, EventArgs e)
{
string varName = this.txt_VarName.Text.Trim();
if (varName.Length == 0)
{
new FrmMsgBoxOutWithAck(2, "请选择需要删除的变量!", "删除变量").Show();
return;
}
if (IsVariableNameExits(varName))
{
new FrmMsgBoxOutWithAck(2, "变量名称不存在!", "变量信组").Show();
return;
}
TotalVariables.RemoveAll(c => c.VarName == varName);
try
{
MiniExcel.SaveAs(variablePath, TotalVariables, overwriteFile: true);
//刷新数据
RefreshVariable();
}
catch (Exception ex)
{
new FrmMsgBoxOutWithAck(3, "删除变量失败:" + ex.Message, "删除变量").Show();
}
}
/// <summary>
/// 修改
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_Modify_Click(object sender, EventArgs e)
{
string varName = this.txt_VarName.Text.Trim();
if (varName.Length == 0)
{
new FrmMsgBoxOutWithAck(2, "请选择需要修改的变量!", "修改变量").Show();
return;
}
if (IsVariableNameExits(varName))
{
new FrmMsgBoxOutWithAck(2, "变量名称已存在!", "修改变量").Show();
return;
}
var variable = TotalVariables.Find(c => c.VarName == varName);
variable.VarAddress = this.txt_VarAddress.Text.Trim();
variable.Start = this.txt_Start.Text.Trim();
variable.OffsetOrLenght = Convert.ToUInt16(this.num_OffsetOrLenght.Value);
variable.DataType = this.cmb_DataType.Text.Trim();
variable.GroupName = this.cmb_GroupName.Text.Trim();
variable.PosAlarm = this.chk_PosAlarm.Checked;
variable.NegAlarm = this.chk_NegAlarm.Checked;
variable.Scale = Convert.ToSingle(this.num_Scale.Value);
variable.Offset = Convert.ToSingle(this.num_Offset.Value);
variable.Remark = this.txt_Remark.Text.Trim();
try
{
MiniExcel.SaveAs(variablePath, TotalVariables, overwriteFile: true);
//刷新数据
RefreshVariable();
}
catch (Exception ex)
{
new FrmMsgBoxOutWithAck(3, "修改变量失败:" + ex.Message, "修改变量").Show();
}
}
#endregion
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
/// <summary>
/// 行号
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void dgv_Main_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
DataGridViewHelper.DgvRowPostPaint((DataGridView)sender, e);
}
/// <summary>
/// 默认为空显示特定字符
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void dgv_Main_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.ColumnIndex >= 0 && e.RowIndex >= 0)
{
object value = this.dgv_Main.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
if (e.ColumnIndex == 6 || e.ColumnIndex == 7)
{
if (value != null)
{
e.Value = value.ToString() == "True" ? "启用" : "禁用";
}
}
if (value == null || value.ToString().Length == 0)
{
e.Value = "---";
}
;
}
}
/// <summary>
/// 选中行显示
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void dgv_Main_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex >= 0)
{
int index = e.RowIndex;
UpdateVariable(SignelVariables[e.RowIndex]); //Variable variable
}
}
private void UpdateVariable(Variable variable)
{
if (variable != null)
{
this.cmb_GroupName.Text = variable.GroupName;
this.txt_VarName.Text = variable.VarName;
this.txt_VarAddress.Text = variable.VarAddress;
this.txt_Start.Text = variable.Start;
this.num_OffsetOrLenght.Value = variable.OffsetOrLenght;
this.cmb_DataType.Text = variable.DataType;
this.chk_NegAlarm.Checked = variable.NegAlarm;
this.chk_PosAlarm.Checked = variable.PosAlarm;
this.num_Scale.Value = Convert.ToDecimal(variable.Scale);
this.num_Offset.Value = Convert.ToDecimal(variable.Offset);
this.txt_Remark.Text = variable.Remark;
}
}
}
}
+153
View File
@@ -0,0 +1,153 @@
<?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="VarName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Start.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="OffsetOrLenght.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="DataType.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Scale.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Offset.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PosAlarm.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="NegAlarm.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="GroupName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Remark.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
+557
View File
@@ -0,0 +1,557 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{29E1F0D0-43DC-4077-A136-F25477E56881}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>LargeSquareOne</RootNamespace>
<AssemblyName>LargeSquareOne</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>
</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject>LargeSquareOne.Program</StartupObject>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>电池.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="BouncyCastle.Crypto, Version=1.9.0.0, Culture=neutral, PublicKeyToken=0e99375e54769942, processorArchitecture=MSIL">
<HintPath>..\packages\Portable.BouncyCastle.1.9.0\lib\net40\BouncyCastle.Crypto.dll</HintPath>
</Reference>
<Reference Include="CsvHelper, Version=30.0.0.0, Culture=neutral, PublicKeyToken=8c4959082be5c823, processorArchitecture=MSIL">
<HintPath>..\packages\CsvHelper.30.0.1\lib\net47\CsvHelper.dll</HintPath>
</Reference>
<Reference Include="DataConvertLib, Version=6.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>Lib\DataConvertLib.dll</HintPath>
</Reference>
<Reference Include="Google.Protobuf, Version=3.23.4.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604, processorArchitecture=MSIL">
<HintPath>..\packages\Google.Protobuf.3.23.4\lib\net45\Google.Protobuf.dll</HintPath>
</Reference>
<Reference Include="HML, Version=8.0.0.6, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>Lib\HML.dll</HintPath>
</Reference>
<Reference Include="HML.ComplexityPropertys, Version=8.0.0.6, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>Lib\HML.ComplexityPropertys.dll</HintPath>
</Reference>
<Reference Include="JinYuan.CommunicationLib">
<HintPath>Lib\JinYuan.CommunicationLib.dll</HintPath>
</Reference>
<Reference Include="JinYuan.ControlLib">
<HintPath>Lib\JinYuan.ControlLib.dll</HintPath>
</Reference>
<Reference Include="K4os.Compression.LZ4, Version=1.3.5.0, Culture=neutral, PublicKeyToken=2186fa9121ef231d, processorArchitecture=MSIL">
<HintPath>..\packages\K4os.Compression.LZ4.1.3.5\lib\net462\K4os.Compression.LZ4.dll</HintPath>
</Reference>
<Reference Include="K4os.Compression.LZ4.Streams, Version=1.3.5.0, Culture=neutral, PublicKeyToken=2186fa9121ef231d, processorArchitecture=MSIL">
<HintPath>..\packages\K4os.Compression.LZ4.Streams.1.3.5\lib\net462\K4os.Compression.LZ4.Streams.dll</HintPath>
</Reference>
<Reference Include="K4os.Hash.xxHash, Version=1.0.8.0, Culture=neutral, PublicKeyToken=32cd54395057cec3, processorArchitecture=MSIL">
<HintPath>..\packages\K4os.Hash.xxHash.1.0.8\lib\net462\K4os.Hash.xxHash.dll</HintPath>
</Reference>
<Reference Include="MathNet.Numerics, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MathNet.Numerics.5.0.0\lib\net461\MathNet.Numerics.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.7.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Bcl.HashCode, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Bcl.HashCode.1.0.0\lib\net461\Microsoft.Bcl.HashCode.dll</HintPath>
</Reference>
<Reference Include="MiniExcel, Version=1.31.2.0, Culture=neutral, PublicKeyToken=e7310002a53eac39, processorArchitecture=MSIL">
<HintPath>..\packages\MiniExcel.1.31.2\lib\net45\MiniExcel.dll</HintPath>
</Reference>
<Reference Include="MySql.Data, Version=8.1.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
<HintPath>..\packages\MySql.Data.8.1.0\lib\net462\MySql.Data.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="NLog, Version=6.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
<HintPath>..\packages\NLog.6.0.2\lib\net46\NLog.dll</HintPath>
</Reference>
<Reference Include="NLog.Windows.Forms, Version=6.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
<HintPath>..\packages\NLog.Windows.Forms.6.0.0\lib\net35\NLog.Windows.Forms.dll</HintPath>
</Reference>
<Reference Include="PLCCommunication, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="SeeSharpTools.JY.GUI, Version=1.4.4.533, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SeeSharpTools.JY.GUI.1.4.4.533\lib\net40\SeeSharpTools.JY.GUI.dll</HintPath>
</Reference>
<Reference Include="SqlSugar, Version=5.1.4.94, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SqlSugar.5.1.4.94\lib\SqlSugar.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
</Reference>
<Reference Include="System.Configuration" />
<Reference Include="System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Configuration.ConfigurationManager.7.0.0\lib\net462\System.Configuration.ConfigurationManager.dll</HintPath>
</Reference>
<Reference Include="System.Core" />
<Reference Include="System.Data.OracleClient" />
<Reference Include="System.Design" />
<Reference Include="System.Diagnostics.DiagnosticSource, Version=7.0.0.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Diagnostics.DiagnosticSource.7.0.2\lib\net462\System.Diagnostics.DiagnosticSource.dll</HintPath>
</Reference>
<Reference Include="System.IO.Compression" />
<Reference Include="System.IO.Pipelines, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.IO.Pipelines.7.0.0\lib\net462\System.IO.Pipelines.dll</HintPath>
</Reference>
<Reference Include="System.Management" />
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll</HintPath>
</Reference>
<Reference Include="System.Net" />
<Reference Include="System.Numerics" />
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="System.Security" />
<Reference Include="System.Security.AccessControl, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Security.AccessControl.6.0.0\lib\net461\System.Security.AccessControl.dll</HintPath>
</Reference>
<Reference Include="System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Security.Permissions.7.0.0\lib\net462\System.Security.Permissions.dll</HintPath>
</Reference>
<Reference Include="System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Security.Principal.Windows.5.0.0\lib\net461\System.Security.Principal.Windows.dll</HintPath>
</Reference>
<Reference Include="System.ServiceProcess" />
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Transactions" />
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll</HintPath>
</Reference>
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Windows.Forms.DataVisualization" />
<Reference Include="System.Xaml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
<Reference Include="WindowsFormsIntegration" />
<Reference Include="ZstdSharp, Version=0.7.2.0, Culture=neutral, PublicKeyToken=8d151af33a4ad5cf, processorArchitecture=MSIL">
<HintPath>..\packages\ZstdSharp.Port.0.7.2\lib\net461\ZstdSharp.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="CustomMessageBox.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="CustomMessageBox.Designer.cs">
<DependentUpon>CustomMessageBox.cs</DependentUpon>
</Compile>
<Compile Include="FrmCpkCount.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmCpkCount.Designer.cs">
<DependentUpon>FrmCpkCount.cs</DependentUpon>
</Compile>
<Compile Include="FrmAlarmLog.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmAlarmLog.Designer.cs">
<DependentUpon>FrmAlarmLog.cs</DependentUpon>
</Compile>
<Compile Include="FrmDataMonitor.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmDataMonitor.Designer.cs">
<DependentUpon>FrmDataMonitor.cs</DependentUpon>
</Compile>
<Compile Include="FrmHelper.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmHelper.Designer.cs">
<DependentUpon>FrmHelper.cs</DependentUpon>
</Compile>
<Compile Include="FrmLogin.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmLogin.Designer.cs">
<DependentUpon>FrmLogin.cs</DependentUpon>
</Compile>
<Compile Include="FrmLoginMes.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmLoginMes.Designer.cs">
<DependentUpon>FrmLoginMes.cs</DependentUpon>
</Compile>
<Compile Include="FrmMesParamMsgBoxWithAck.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmMesParamMsgBoxWithAck.Designer.cs">
<DependentUpon>FrmMesParamMsgBoxWithAck.cs</DependentUpon>
</Compile>
<Compile Include="FrmStaticsQuery.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmStaticsQuery.Designer.cs">
<DependentUpon>FrmStaticsQuery.cs</DependentUpon>
</Compile>
<Compile Include="FrmVariableConfig.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmVariableConfig.Designer.cs">
<DependentUpon>FrmVariableConfig.cs</DependentUpon>
</Compile>
<Compile Include="FrmGroupConfig.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmGroupConfig.Designer.cs">
<DependentUpon>FrmGroupConfig.cs</DependentUpon>
</Compile>
<Compile Include="FrmMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmMain.Designer.cs">
<DependentUpon>FrmMain.cs</DependentUpon>
</Compile>
<Compile Include="FrmMsgBoxOutWithAck.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmMsgBoxOutWithAck.Designer.cs">
<DependentUpon>FrmMsgBoxOutWithAck.cs</DependentUpon>
</Compile>
<Compile Include="FrmMsgBoxWithAck.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmMsgBoxWithAck.Designer.cs">
<DependentUpon>FrmMsgBoxWithAck.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserManage.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmUserManage.Designer.cs">
<DependentUpon>FrmUserManage.cs</DependentUpon>
</Compile>
<Compile Include="FrmHistory.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmHistory.Designer.cs">
<DependentUpon>FrmHistory.cs</DependentUpon>
</Compile>
<Compile Include="FrmRecipe.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmRecipe.Designer.cs">
<DependentUpon>FrmRecipe.cs</DependentUpon>
</Compile>
<Compile Include="FrmParamSet.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmParamSet.Designer.cs">
<DependentUpon>FrmParamSet.cs</DependentUpon>
</Compile>
<Compile Include="FrmMonitor.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmMonitor.Designer.cs">
<DependentUpon>FrmMonitor.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="trw.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="trw.Designer.cs">
<DependentUpon>trw.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="CustomMessageBox.resx">
<DependentUpon>CustomMessageBox.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmCpkCount.resx">
<DependentUpon>FrmCpkCount.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmAlarmLog.resx">
<DependentUpon>FrmAlarmLog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmDataMonitor.resx">
<DependentUpon>FrmDataMonitor.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="FrmHelper.resx">
<DependentUpon>FrmHelper.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmLogin.resx">
<DependentUpon>FrmLogin.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmLoginMes.resx">
<DependentUpon>FrmLoginMes.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmMain.en-US.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmMain.hu-HU.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmMain.syr.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmMain.zh-CN.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmMesParamMsgBoxWithAck.resx">
<DependentUpon>FrmMesParamMsgBoxWithAck.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmStaticsQuery.resx">
<DependentUpon>FrmStaticsQuery.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmVariableConfig.resx">
<DependentUpon>FrmVariableConfig.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmGroupConfig.resx">
<DependentUpon>FrmGroupConfig.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmMain.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="FrmMsgBoxOutWithAck.resx">
<DependentUpon>FrmMsgBoxOutWithAck.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmMsgBoxWithAck.resx">
<DependentUpon>FrmMsgBoxWithAck.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserManage.resx">
<DependentUpon>FrmUserManage.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmHistory.resx">
<DependentUpon>FrmHistory.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmRecipe.resx">
<DependentUpon>FrmRecipe.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmParamSet.resx">
<DependentUpon>FrmParamSet.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmMonitor.resx">
<DependentUpon>FrmMonitor.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<SubType>Designer</SubType>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="trw.resx">
<DependentUpon>trw.cs</DependentUpon>
</EmbeddedResource>
<None Include="Assts\Fonts\FZY4JW.ttf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Assts\Fonts\taolichunfeng.ttf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Assts\Fonts\zaozigongfangjinzhuti.ttf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Assts\Fonts\Zen圓体-Regular.ttf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Config\Configure.ini">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Config\Device.ini" />
<None Include="Config\Group.xlsx" />
<None Include="Config\Variable.xlsx" />
<Content Include="NLog.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="Assts\Image\BackGround.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Assts\Image\Main.jpg">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Assts\Image\电池.ico">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Lib\DataConvertLib.dll" />
<Content Include="Lib\DataConvertLib.pdb" />
<Content Include="Lib\DataConvertLib.xml" />
<Content Include="Lib\HML.ComplexityPropertys.dll" />
<Content Include="Lib\HML.ComplexityPropertys.xml" />
<Content Include="Lib\HML.dll" />
<Content Include="Lib\HML.xml" />
<None Include="Resources\黄色-警告.png" />
<Content Include="Lib\PLCCommunication.dll" />
<Content Include="Lib\PLCCommunication.pdb" />
<None Include="Resources\日志查询.png" />
<None Include="Resources\数据查询.png" />
<None Include="Resources\资源 6.png" />
<None Include="Resources\订单查询.png" />
<Content Include="TextFile1.txt" />
<Content Include="电池.ico" />
<None Include="Resources\25_密码.png" />
<None Include="Resources\Exit1.png" />
<Content Include="Resources\IndustryAquaGauge2\Reflection.jpg" />
<Content Include="Resources\IndustrySwitch\垂直关.png" />
<Content Include="Resources\IndustrySwitch\垂直关1.png" />
<Content Include="Resources\IndustrySwitch\垂直开.png" />
<Content Include="Resources\IndustrySwitch\垂直开2.png" />
<Content Include="Resources\IndustrySwitch\按钮关.png" />
<Content Include="Resources\IndustrySwitch\按钮开.png" />
<Content Include="Resources\IndustrySwitch\水平关.png" />
<Content Include="Resources\IndustrySwitch\水平开.png" />
<None Include="Resources\用户.png" />
<None Include="Resources\UserManage.png" />
<None Include="Resources\Login1.jpg" />
<Content Include="Resources\Tank\JYTank.png" />
<None Include="Resources\Alarm.jpg" />
<None Include="Resources\组 178 拷贝1.png" />
<None Include="Resources\星球地球科技蓝色转动动图压缩86.9.gif" />
<None Include="Resources\蓝色.png" />
<None Include="Resources\开机时间.png" />
<None Include="Resources\导航栏.png" />
<None Include="Resources\标题样式一1.png" />
<None Include="Resources\标题样式一.png" />
<None Include="Resources\yiweidongli.png" />
<None Include="Resources\titleBG2.png" />
<None Include="Resources\title2222.png" />
<None Include="Resources\Stop.png" />
<None Include="Resources\Spare.png" />
<None Include="Resources\Run.png" />
<None Include="Resources\Red.png" />
<None Include="Resources\Green.png" />
<None Include="Resources\Fault.png" />
<None Include="Resources\eve.png" />
<None Include="Resources\Blink.gif" />
<None Include="Resources\Exit.png" />
<None Include="Resources\error.png" />
<None Include="Resources\Current.png" />
<None Include="Resources\BackGround.png" />
<None Include="Resources\Alarm.png" />
<None Include="Resources\warning.png" />
<None Include="Resources\User.png" />
<None Include="Resources\TitleBG.png" />
<None Include="Resources\Title.png" />
<None Include="Resources\RightUnSelected.png" />
<None Include="Resources\RightSelected.png" />
<None Include="Resources\Right.png" />
<None Include="Resources\Main.jpg" />
<None Include="Resources\Login.jpg" />
<None Include="Resources\LeftUnSelected.png" />
<None Include="Resources\LeftSelected.png" />
<None Include="Resources\Left.png" />
<None Include="Resources\info.png" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\JinYuan.ControlCenter\JinYuan.ControlCenters.csproj">
<Project>{1d0fa5a4-07f0-4621-b6bb-683aec91e658}</Project>
<Name>JinYuan.ControlCenters</Name>
</ProjectReference>
<ProjectReference Include="..\JinYuan.DAL\JinYuan.DAL.csproj">
<Project>{114aa012-29c9-418c-a2d6-3173c5341f51}</Project>
<Name>JinYuan.DAL</Name>
</ProjectReference>
<ProjectReference Include="..\JinYuan.Helper\JinYuan.Helper.csproj">
<Project>{258d0ab7-2b4f-4d8f-a3cd-7a8cb4a85360}</Project>
<Name>JinYuan.Helper</Name>
</ProjectReference>
<ProjectReference Include="..\JinYuan.MES\JinYuan.MES.csproj">
<Project>{530b6426-08e7-461c-91dc-787f876620fc}</Project>
<Name>JinYuan.MES</Name>
</ProjectReference>
<ProjectReference Include="..\JinYuan.Models\JinYuan.Models.csproj">
<Project>{4c0bcb84-5cd7-4846-8363-c4c10d46e391}</Project>
<Name>JinYuan.Models</Name>
</ProjectReference>
<ProjectReference Include="..\JinYuan.VirtualDataLibrary\JinYuan.VirtualDataLibrary.csproj">
<Project>{2ab7e380-7795-448a-933c-0f6a081b5e7e}</Project>
<Name>JinYuan.VirtualDataLibrary</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.7.2 %28x86 和 x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView>
<PublishUrlHistory>publish\</PublishUrlHistory>
<InstallUrlHistory />
<SupportUrlHistory />
<UpdateUrlHistory />
<BootstrapperUrlHistory />
<ErrorReportUrlHistory />
<FallbackCulture>zh-CN</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
</PropertyGroup>
</Project>
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
@@ -0,0 +1,732 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>HML.ComplexityPropertys</name>
</assembly>
<members>
<member name="T:HML.TBPadding">
<summary>
上下内边距
</summary>
</member>
<member name="P:HML.TBPadding.All">
<summary>
全部
</summary>
</member>
<member name="P:HML.TBPadding.Top">
<summary>
上边内边距
</summary>
</member>
<member name="P:HML.TBPadding.Bottom">
<summary>
下边内边距
</summary>
</member>
<member name="M:HML.TBPadding.#ctor(System.Int32)">
<summary>
</summary>
<param name="all">全部边距</param>
</member>
<member name="M:HML.TBPadding.#ctor(System.Int32,System.Int32)">
<summary>
</summary>
<param name="top">上边内边距</param>
<param name="bottom">下边内边距</param>
</member>
<member name="M:HML.TBPadding.op_Equality(HML.TBPadding,HML.TBPadding)">
<summary>
判断两个边距对象设置是否一样
</summary>
<param name="rc1"></param>
<param name="rc2"></param>
<returns></returns>
</member>
<member name="M:HML.TBPadding.op_Inequality(HML.TBPadding,HML.TBPadding)">
<summary>
判断两个边距对象设置是否不一样
</summary>
<param name="rc1"></param>
<param name="rc2"></param>
<returns></returns>
</member>
<member name="M:HML.TBPadding.GetHashCode">
<summary>
获取该对象的哈希值(参考源码)
</summary>
<returns></returns>
</member>
<member name="M:HML.TBPadding.Equals(System.Object)">
<summary>
判断是否和该对象的引用是一样
</summary>
<param name="other"></param>
<returns></returns>
</member>
<member name="M:HML.TBPadding.ToString">
<summary>
把该对象转换成字符串
</summary>
<returns></returns>
</member>
<member name="M:HML.TBPadding.RotateTop(System.Int32,System.Int32)">
<summary>
计算哈希值(参考源码)
</summary>
<param name="value"></param>
<param name="nBits"></param>
<returns></returns>
</member>
<member name="M:HML.TBPadding.ShouldSerializeAll">
<summary>
是否应该使用All设置初始化对象
</summary>
<returns></returns>
</member>
<member name="T:HML.TBPaddingConverter">
<summary>
上下内边距转换器
</summary>
</member>
<member name="M:HML.TBPaddingConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object)">
<summary>
字符串转对象
</summary>
<param name="context"></param>
<param name="culture"></param>
<param name="value"></param>
<returns></returns>
</member>
<member name="M:HML.TBPaddingConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object,System.Type)">
<summary>
对象转字符串
</summary>
<param name="context"></param>
<param name="culture"></param>
<param name="value"></param>
<param name="destinationType"></param>
<returns></returns>
</member>
<member name="T:HML.TBMargin">
<summary>
上下外边距
</summary>
</member>
<member name="P:HML.TBMargin.All">
<summary>
全部
</summary>
</member>
<member name="P:HML.TBMargin.Top">
<summary>
上边外边距
</summary>
</member>
<member name="P:HML.TBMargin.Bottom">
<summary>
下边外边距
</summary>
</member>
<member name="M:HML.TBMargin.#ctor(System.Int32)">
<summary>
</summary>
<param name="all">全部边距</param>
</member>
<member name="M:HML.TBMargin.#ctor(System.Int32,System.Int32)">
<summary>
</summary>
<param name="top">上边外边距</param>
<param name="bottom">下边外边距</param>
</member>
<member name="M:HML.TBMargin.op_Equality(HML.TBMargin,HML.TBMargin)">
<summary>
判断两个边距对象设置是否一样
</summary>
<param name="rc1"></param>
<param name="rc2"></param>
<returns></returns>
</member>
<member name="M:HML.TBMargin.op_Inequality(HML.TBMargin,HML.TBMargin)">
<summary>
判断两个边距对象设置是否不一样
</summary>
<param name="rc1"></param>
<param name="rc2"></param>
<returns></returns>
</member>
<member name="M:HML.TBMargin.GetHashCode">
<summary>
获取该对象的哈希值(参考源码)
</summary>
<returns></returns>
</member>
<member name="M:HML.TBMargin.Equals(System.Object)">
<summary>
判断是否和该对象的引用是一样
</summary>
<param name="other"></param>
<returns></returns>
</member>
<member name="M:HML.TBMargin.ToString">
<summary>
把该对象转换成字符串
</summary>
<returns></returns>
</member>
<member name="M:HML.TBMargin.RotateTop(System.Int32,System.Int32)">
<summary>
计算哈希值(参考源码)
</summary>
<param name="value"></param>
<param name="nBits"></param>
<returns></returns>
</member>
<member name="M:HML.TBMargin.ShouldSerializeAll">
<summary>
是否应该使用All设置初始化对象
</summary>
<returns></returns>
</member>
<member name="T:HML.TBMarginConverter">
<summary>
上下外边距转换器
</summary>
</member>
<member name="M:HML.TBMarginConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object)">
<summary>
字符串转对象
</summary>
<param name="context"></param>
<param name="culture"></param>
<param name="value"></param>
<returns></returns>
</member>
<member name="M:HML.TBMarginConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object,System.Type)">
<summary>
对象转字符串
</summary>
<param name="context"></param>
<param name="culture"></param>
<param name="value"></param>
<param name="destinationType"></param>
<returns></returns>
</member>
<member name="T:HML.LRPadding">
<summary>
左右内边距
</summary>
</member>
<member name="P:HML.LRPadding.All">
<summary>
全部
</summary>
</member>
<member name="P:HML.LRPadding.Left">
<summary>
左边内边距
</summary>
</member>
<member name="P:HML.LRPadding.Right">
<summary>
右边内边距
</summary>
</member>
<member name="M:HML.LRPadding.#ctor(System.Int32)">
<summary>
</summary>
<param name="all">全部边距</param>
</member>
<member name="M:HML.LRPadding.#ctor(System.Int32,System.Int32)">
<summary>
</summary>
<param name="left">左边内边距</param>
<param name="right">右边内边距</param>
</member>
<member name="M:HML.LRPadding.op_Equality(HML.LRPadding,HML.LRPadding)">
<summary>
判断两个边距对象设置是否一样
</summary>
<param name="rc1"></param>
<param name="rc2"></param>
<returns></returns>
</member>
<member name="M:HML.LRPadding.op_Inequality(HML.LRPadding,HML.LRPadding)">
<summary>
判断两个边距对象设置是否不一样
</summary>
<param name="rc1"></param>
<param name="rc2"></param>
<returns></returns>
</member>
<member name="M:HML.LRPadding.GetHashCode">
<summary>
获取该对象的哈希值(参考源码)
</summary>
<returns></returns>
</member>
<member name="M:HML.LRPadding.Equals(System.Object)">
<summary>
判断是否和该对象的引用是一样
</summary>
<param name="other"></param>
<returns></returns>
</member>
<member name="M:HML.LRPadding.ToString">
<summary>
把该对象转换成字符串
</summary>
<returns></returns>
</member>
<member name="M:HML.LRPadding.RotateLeft(System.Int32,System.Int32)">
<summary>
计算哈希值(参考源码)
</summary>
<param name="value"></param>
<param name="nBits"></param>
<returns></returns>
</member>
<member name="M:HML.LRPadding.ShouldSerializeAll">
<summary>
是否应该使用All设置初始化对象
</summary>
<returns></returns>
</member>
<member name="T:HML.LRPaddingConverter">
<summary>
左右内边距转换器
</summary>
</member>
<member name="M:HML.LRPaddingConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object)">
<summary>
字符串转对象
</summary>
<param name="context"></param>
<param name="culture"></param>
<param name="value"></param>
<returns></returns>
</member>
<member name="M:HML.LRPaddingConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object,System.Type)">
<summary>
对象转字符串
</summary>
<param name="context"></param>
<param name="culture"></param>
<param name="value"></param>
<param name="destinationType"></param>
<returns></returns>
</member>
<member name="T:HML.LRMargin">
<summary>
左右外边距
</summary>
</member>
<member name="P:HML.LRMargin.All">
<summary>
全部
</summary>
</member>
<member name="P:HML.LRMargin.Left">
<summary>
左边外边距
</summary>
</member>
<member name="P:HML.LRMargin.Right">
<summary>
右边外边距
</summary>
</member>
<member name="M:HML.LRMargin.#ctor(System.Int32)">
<summary>
</summary>
<param name="all">全部边距</param>
</member>
<member name="M:HML.LRMargin.#ctor(System.Int32,System.Int32)">
<summary>
</summary>
<param name="left">左边外边距</param>
<param name="right">右边外边距</param>
</member>
<member name="M:HML.LRMargin.op_Equality(HML.LRMargin,HML.LRMargin)">
<summary>
判断两个边距对象设置是否一样
</summary>
<param name="rc1"></param>
<param name="rc2"></param>
<returns></returns>
</member>
<member name="M:HML.LRMargin.op_Inequality(HML.LRMargin,HML.LRMargin)">
<summary>
判断两个边距对象设置是否不一样
</summary>
<param name="rc1"></param>
<param name="rc2"></param>
<returns></returns>
</member>
<member name="M:HML.LRMargin.GetHashCode">
<summary>
获取该对象的哈希值(参考源码)
</summary>
<returns></returns>
</member>
<member name="M:HML.LRMargin.Equals(System.Object)">
<summary>
判断是否和该对象的引用是一样
</summary>
<param name="other"></param>
<returns></returns>
</member>
<member name="M:HML.LRMargin.ToString">
<summary>
把该对象转换成字符串
</summary>
<returns></returns>
</member>
<member name="M:HML.LRMargin.RotateLeft(System.Int32,System.Int32)">
<summary>
计算哈希值(参考源码)
</summary>
<param name="value"></param>
<param name="nBits"></param>
<returns></returns>
</member>
<member name="M:HML.LRMargin.ShouldSerializeAll">
<summary>
是否应该使用All设置初始化对象
</summary>
<returns></returns>
</member>
<member name="T:HML.LRMarginConverter">
<summary>
左右外边距转换器
</summary>
</member>
<member name="M:HML.LRMarginConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object)">
<summary>
字符串转对象
</summary>
<param name="context"></param>
<param name="culture"></param>
<param name="value"></param>
<returns></returns>
</member>
<member name="M:HML.LRMarginConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object,System.Type)">
<summary>
对象转字符串
</summary>
<param name="context"></param>
<param name="culture"></param>
<param name="value"></param>
<param name="destinationType"></param>
<returns></returns>
</member>
<member name="T:HML.MultidropSlidePoleAnchorMargin">
<summary>
MultidropSlide滑杆停靠外边距
</summary>
</member>
<member name="P:HML.MultidropSlidePoleAnchorMargin.All">
<summary>
全部
</summary>
</member>
<member name="P:HML.MultidropSlidePoleAnchorMargin.PoleTitle">
<summary>
滑杆为提示标题保留外边距
</summary>
</member>
<member name="P:HML.MultidropSlidePoleAnchorMargin.PoleStart">
<summary>
滑杆开始坐标外边距
</summary>
</member>
<member name="P:HML.MultidropSlidePoleAnchorMargin.PoleEnd">
<summary>
滑杆结束坐标外边距
</summary>
</member>
<member name="M:HML.MultidropSlidePoleAnchorMargin.#ctor(System.Int32)">
<summary>
</summary>
<param name="all">全部</param>
</member>
<member name="M:HML.MultidropSlidePoleAnchorMargin.#ctor(System.Int32,System.Int32,System.Int32)">
<summary>
</summary>
<param name="poleTitle">滑杆为提示标题保留外边距</param>
<param name="poleStart">滑杆开始坐标外边距</param>
<param name="poleEnd">滑杆结束坐标外边距</param>
</member>
<member name="M:HML.MultidropSlidePoleAnchorMargin.op_Equality(HML.MultidropSlidePoleAnchorMargin,HML.MultidropSlidePoleAnchorMargin)">
<summary>
判断两个滑杆停靠外边距对象设置是否一样
</summary>
<param name="arg1"></param>
<param name="arg2"></param>
<returns></returns>
</member>
<member name="M:HML.MultidropSlidePoleAnchorMargin.op_Inequality(HML.MultidropSlidePoleAnchorMargin,HML.MultidropSlidePoleAnchorMargin)">
<summary>
判断两个滑杆停靠外边距对象设置是否不一样
</summary>
<param name="arg1"></param>
<param name="arg2"></param>
<returns></returns>
</member>
<member name="M:HML.MultidropSlidePoleAnchorMargin.GetHashCode">
<summary>
获取该对象的哈希值(参考源码)
</summary>
<returns></returns>
</member>
<member name="M:HML.MultidropSlidePoleAnchorMargin.Equals(System.Object)">
<summary>
判断是否和该对象的引用是一样
</summary>
<param name="other"></param>
<returns></returns>
</member>
<member name="M:HML.MultidropSlidePoleAnchorMargin.ToString">
<summary>
把该对象转换成字符串
</summary>
<returns></returns>
</member>
<member name="M:HML.MultidropSlidePoleAnchorMargin.RotateLeftTop(System.Int32,System.Int32)">
<summary>
计算哈希值(参考源码)
</summary>
<param name="value"></param>
<param name="nBits"></param>
<returns></returns>
</member>
<member name="M:HML.MultidropSlidePoleAnchorMargin.ShouldSerializeAll">
<summary>
是否应该使用All设置初始化对象
</summary>
<returns></returns>
</member>
<member name="T:HML.MultidropSlidePoleAnchorMarginConverter">
<summary>
MultidropSlide滑杆停靠外边距转换器
</summary>
</member>
<member name="M:HML.MultidropSlidePoleAnchorMarginConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object)">
<summary>
字符串转对象
</summary>
<param name="context"></param>
<param name="culture"></param>
<param name="value"></param>
<returns></returns>
</member>
<member name="M:HML.MultidropSlidePoleAnchorMarginConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object,System.Type)">
<summary>
对象转字符串
</summary>
<param name="context"></param>
<param name="culture"></param>
<param name="value"></param>
<param name="destinationType"></param>
<returns></returns>
</member>
<member name="T:HML.PointFR">
<summary>
表示在二维平面中定义点的浮点 x 和 y 坐标的有序对。
</summary>
</member>
<member name="M:HML.PointFR.ConvertFrom(System.Drawing.PointF)">
<summary>
System.Drawing.PointF 转换成 PointFR
</summary>
<returns></returns>
</member>
<member name="M:HML.PointFR.ConvertTo">
<summary>
PointFR 转换成 System.Drawing.PointF
</summary>
<returns></returns>
</member>
<member name="T:HML.PointFRConverter">
<summary>
PointFR转换器
</summary>
</member>
<member name="T:HML.PropertyOrderConverter">
<summary>
对属性进行排序
</summary>
</member>
<member name="M:HML.PropertyOrderConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object,System.Type)">
<summary>
当该属性为展开属性选型时,属性编辑器删除该属性的描述
</summary>
<param name="context"></param>
<param name="culture"></param>
<param name="value"></param>
<param name="destinationType"></param>
<returns></returns>
</member>
<member name="T:HML.PropertyOrderPair">
<summary>
属性排序 序号比较器
</summary>
</member>
<member name="P:HML.PropertyOrderPair.CategoryName">
<summary>
类别名称
</summary>
</member>
<member name="M:HML.PropertyOrderPair.#ctor(System.String,System.Single)">
<summary>
</summary>
<param name="categoryName">类别名称</param>
<param name="order">序号</param>
</member>
<member name="T:HML.PropertyOrderAttribute">
<summary>
属性排序(升序)
</summary>
</member>
<member name="P:HML.PropertyOrderAttribute.Order">
<summary>
序号
</summary>
</member>
<member name="M:HML.PropertyOrderAttribute.#ctor(System.Single)">
<summary>
</summary>
<param name="order">序号</param>
</member>
<member name="T:HML.RoundCorner">
<summary>
圆角
</summary>
</member>
<member name="P:HML.RoundCorner.All">
<summary>
全部
</summary>
</member>
<member name="P:HML.RoundCorner.LeftTop">
<summary>
左上角
</summary>
</member>
<member name="P:HML.RoundCorner.RightTop">
<summary>
右上角
</summary>
</member>
<member name="P:HML.RoundCorner.RightBottom">
<summary>
右下角
</summary>
</member>
<member name="P:HML.RoundCorner.LeftBottom">
<summary>
左下角
</summary>
</member>
<member name="M:HML.RoundCorner.#ctor(System.Int32)">
<summary>
</summary>
<param name="all">全部圆角</param>
</member>
<member name="M:HML.RoundCorner.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)">
<summary>
</summary>
<param name="leftTop">左上角</param>
<param name="rightTop">右上角</param>
<param name="rightBottom">右下角</param>
<param name="leftBottom">左下角</param>
</member>
<member name="M:HML.RoundCorner.op_Equality(HML.RoundCorner,HML.RoundCorner)">
<summary>
判断两个圆角对象设置是否一样
</summary>
<param name="rc1"></param>
<param name="rc2"></param>
<returns></returns>
</member>
<member name="M:HML.RoundCorner.op_Inequality(HML.RoundCorner,HML.RoundCorner)">
<summary>
判断两个圆角对象设置是否不一样
</summary>
<param name="rc1"></param>
<param name="rc2"></param>
<returns></returns>
</member>
<member name="M:HML.RoundCorner.GetHashCode">
<summary>
获取该对象的哈希值(参考源码)
</summary>
<returns></returns>
</member>
<member name="M:HML.RoundCorner.Equals(System.Object)">
<summary>
判断是否和该对象的引用是一样
</summary>
<param name="other"></param>
<returns></returns>
</member>
<member name="M:HML.RoundCorner.ToString">
<summary>
把该对象转换成字符串
</summary>
<returns></returns>
</member>
<member name="M:HML.RoundCorner.RotateLeftTop(System.Int32,System.Int32)">
<summary>
计算哈希值(参考源码)
</summary>
<param name="value"></param>
<param name="nBits"></param>
<returns></returns>
</member>
<member name="M:HML.RoundCorner.ShouldSerializeAll">
<summary>
是否应该使用All设置初始化对象
</summary>
<returns></returns>
</member>
<member name="T:HML.RoundCornerConverter">
<summary>
圆角转换器
</summary>
</member>
<member name="M:HML.RoundCornerConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object)">
<summary>
字符串转对象
</summary>
<param name="context"></param>
<param name="culture"></param>
<param name="value"></param>
<returns></returns>
</member>
<member name="M:HML.RoundCornerConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object,System.Type)">
<summary>
对象转字符串
</summary>
<param name="context"></param>
<param name="culture"></param>
<param name="value"></param>
<param name="destinationType"></param>
<returns></returns>
</member>
</members>
</doc>
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+62
View File
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8" ?>
<nlog
xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
autoReload="true"
throwExceptions="false"
internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log">
<variable name="variable1" value="${newline}date: ${date}${newline}level: ${level}${newline}logger: ${logger}${newline}machinename: ${machinename}
${newline}clientip:${local-ip}${newline}message: ${message} ${newline}exception:${exception}
${newline}appdomain: ${appdomain}${newline}assembly-version: ${assembly-version}${newline}basedir: ${basedir}
${newline}callsite: ${callsite}${newline}callsite-linenumber: ${callsite-linenumber}${newline}counter: ${counter}${newline}nlogdir: ${nlogdir}
${newline}processid: ${processid}${newline}processname: ${processname}
${newline}traceid: ${aspnet-traceidentifier}
${newline}specialfolder: ${specialfolder}
${newline}stacktrace: ${stacktrace}${newline}-----------------------------------------------------------" />
<variable name="variable2" value="日志时间:${longdate}${newline}日志来源:${callsite}${newline}日志级别:${uppercase:${level}}${newline}消息内容:${message}${newline}异常信息:${exception}${newline}stacktrace: ${stacktrace}${newline}==============================================================${newline}" />
<variable name="variable3" value="${longdate}消息内容:${message}${newline}==============================================================${newline}" />
<variable name="variable_info" value="&lt;HR COLOR=blue&gt;${newline}日志时间:${longdate} &lt;BR&gt;${newline}日志级别:${level} &lt;BR&gt;${newline}日 志 类:log_info &lt;BR&gt;${newline}${message} &lt;BR&gt;${newline} &lt;HR Size=1&gt;" />
<variable name="variable_error" value="&lt;HR COLOR=blue&gt;${newline}日志时间:${longdate} &lt;BR&gt;${newline}日志级别:${level} &lt;BR&gt;${newline}日 志 类:log_error &lt;BR&gt;${newline}${message} &lt;BR&gt;${newline} &lt;HR Size=1&gt;" />
<variable name="variable_mqtt" value="&lt;HR COLOR=blue&gt;${newline}日志时间:${longdate} &lt;BR&gt;${newline}日志级别:${level} &lt;BR&gt;${newline}日 志 类:log_mqtt &lt;BR&gt;${newline}${message} &lt;BR&gt;${newline} &lt;HR Size=1&gt;" />
<variable name="variable_Infos" value="${longdate}消息内容:${message}${newline}==============================================================${newline}" />
<variable name="variable_MEStIME" value="${longdate}消息内容:${message}${newline}==============================================================${newline}" />
<variable name="variable_sql" value="${longdate}消息内容:${message}${newline}==============================================================${newline}" />
<variable name="variable_SysErrorLog" value="${longdate}消息内容:${message}${newline}==============================================================${newline}" />
<variable name="variable_SysErrorLogcn" value="${longdate}消息内容:${message}${newline}==============================================================${newline}" />
<!--
See https://github.com/nlog/nlog/wiki/Configuration-file
for information on customizing logging rules and outputs.
-->
<targets>
<!--
Write events to a file with the date in the filename. -->
<!--<target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
layout="${longdate} ${uppercase:${level}} ${message}" />-->
<target name="log_file" xsi:type="AsyncWrapper" queueLimit="5000" overflowAction="Discard">
<target xsi:type="File" fileName="${basedir}/logs/${shortdate}/${shortdate}.${level}.log"
layout="${variable2}" archiveAboveSize="2097152" archiveEvery="Day" />
</target>
<!--<target name="log_file" xsi:type="File" fileName="${basedir}/logs/${shortdate}.log" layout="${variable1}" />-->
<target name="log_info" xsi:type="File" fileName="${basedir}/Log/${shortdate}/LogInfo.${level}.html" layout="${variable_info}" archiveAboveSize="2097152" archiveEvery="Day"/>
<target name="log_error" xsi:type="File" fileName="${basedir}/Log/${shortdate}/LogError.${level}.html" layout="${variable_error}" archiveAboveSize="2097152" archiveEvery="Day"/>
<target name="log_mqtt" xsi:type="File" fileName="${basedir}/Log/${shortdate}/LogMqtt.${level}.html" layout="${variable_mqtt}" archiveAboveSize="2097152" archiveEvery="Day"/>
<target name="logs_Infos" xsi:type="File" fileName="${basedir}/Logs/Info/${shortdate}/${level}.log" layout="${variable_Infos}" archiveAboveSize="2097152" archiveEvery="Day"/>
<target name="logs_MEStIME" xsi:type="File" fileName="${basedir}/Logs/MESTime/${shortdate}/${level}.log" layout="${variable_MEStIME}" archiveAboveSize="2097152" archiveEvery="Day"/>
<target name="logs_Sql" xsi:type="File" fileName="${basedir}/Logs/SQL执行/${shortdate}/${level}.log" layout="${variable_sql}" archiveAboveSize="2097152" archiveEvery="Day"/>
<target name="logs_SysErrorLog" xsi:type="File" fileName="${basedir}/Logs/SysErrorLog/${shortdate}/${level}.log" layout="${variable_SysErrorLog}" archiveAboveSize="2097152" archiveEvery="Day"/>
<target name="logs_SysErrorLogcn" xsi:type="File" fileName="${basedir}/Logs/系统报错/${shortdate}/${level}.log" layout="${variable_SysErrorLogcn}" archiveAboveSize="2097152" archiveEvery="Day"/>
<target name="log_ReadPlcInt" xsi:type="File" fileName="${basedir}/hslLogs/${shortdate}/ReadPlcInt.${level}.log" layout="${Heartvariable}" archiveAboveSize="2097152" archiveEvery="Day"/>
</targets>
<rules>
<logger name="loginfo" minlevel="Info" writeTo="log_info" final="true"/>
<logger name="logerror" minlevel="Info" writeTo="log_error" final="true"/>
<logger name="logmqtt" minlevel="Info" writeTo="log_mqtt" final="true"/>
<logger name="logsInfo" minlevel="Info" writeTo="logs_Infos" final="true"/>
<logger name="logsMEStIME" minlevel="Info" writeTo="logs_MEStIME" final="true"/>
<logger name="logsSql" minlevel="Info" writeTo="logs_Sql" final="true"/>
<logger name="logsSysErrorLog" minlevel="Info" writeTo="logs_SysErrorLog" final="true"/>
<logger name="logsSysErrorLogcn" minlevel="Info" writeTo="logs_SysErrorLogcn" final="true"/>
<logger name="*" minlevel="Info" writeTo="log_info" final="true"/>
</rules>
</nlog>
+144
View File
@@ -0,0 +1,144 @@
using JinYuan.Helper;
using JinYuan.VirtualDataLibrary;
using System;
using System.Configuration;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Forms;
namespace LargeSquareOne
{
internal static class Program
{
#region 调用系统API
[DllImport("User32.dll")]
private static extern bool ShowWindowAsync(IntPtr hWnd, int cmdShow);
[DllImport("User32.dll")]
private static extern bool SetForegroundWindow(IntPtr hWnd);
private const int SW_MAXIMIZE = 3;
#endregion 调用系统API
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
LoggerHelp.WriteInfo("Application 启动");
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
string strname = Process.GetCurrentProcess().ProcessName;
int a = Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Count();
if (Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Count() > 1)
{
MessageBox.Show("软件已经启动,请在后台确认。");
Thread.Sleep(1000);
Environment.Exit(0);
return;
}
Process instance = GetRunningInstance();
if (instance == null)
{
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
ReadConfig();
try
{
if (!CommonMethods.sysConfig.SwipeCardMode)
{
FrmLogin frm = new FrmLogin();
if (frm.ShowDialog() == DialogResult.OK)
{
Application.Run(new FrmMain());
}
}
else
{
Application.Run(new FrmMain());
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
else
{
// 激活以前的实例
HandleRunningInstance(instance);
}
}
public static void ReadConfig()
{
IniConfigHelper.CreateIniFile(Application.StartupPath + "\\Config\\", "Configure.ini");
string connString = ConfigurationManager.ConnectionStrings["connString"].ToString();
string connString2 = ConfigurationManager.ConnectionStrings["connString2"].ToString();
string strDBType = ConfigurationManager.ConnectionStrings["connDbType"].ToString();
var connDbType = (SqlSugar.DbType)Enum.Parse(typeof(SqlSugar.DbType), strDBType);
CommonMethods.db.SetConnectionStr(connString, connDbType);
CommonMethods.dbServer.SetConnectionStr(connString2, connDbType);
CommonMethods.sysConfig.SwipeCardMode = Convert.ToBoolean(IniConfigHelper.ReadIniData("配置信息", "开启刷卡模式", "false"));
}
/// <summary>
/// 当某个异常未被捕获时出现,回调方法
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
try
{
Exception ex = (Exception)e.ExceptionObject;
LoggerHelp.WriteEX(ex);
MessageBox.Show($"程序出现大异常,请联系 【金源自动化软件设计部】。\r\n异常信息: {ex.Message}\r\n异常堆栈:{ex.StackTrace}",
"致命错误", MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
finally
{
Application.Exit();
}
}
/// <summary>
/// 返回正在运行的程序进程
/// </summary>
/// <returns></returns>
public static Process GetRunningInstance()
{
Process current = Process.GetCurrentProcess();
Process[] processes = Process.GetProcessesByName(current.ProcessName);
foreach (Process process in processes)
{
if (process.Id != current.Id)
if (Assembly.GetExecutingAssembly().Location.Replace("/", "\\") == current.MainModule.FileName)
return process;
}
return null;
}
/// <summary>
/// 已经有了就把它激活,并将其窗口放置最前端
/// </summary>
/// <param name="instance"></param>
public static void HandleRunningInstance(Process instance)
{
ShowWindowAsync(instance.MainWindowHandle, SW_MAXIMIZE);
SetForegroundWindow(instance.MainWindowHandle);
}
}
}
+35
View File
@@ -0,0 +1,35 @@
using System.Reflection;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("LargeSquareOne")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LargeSquareOne")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("29e1f0d0-43dc-4077-a136-f25477e56881")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

Some files were not shown because too many files have changed in this diff Show More