yangw
nodyang@aliyun.com 1 month ago
parent 17cfa5bcca
commit 7374518afa

@ -0,0 +1,258 @@
namespace RfidWeb.Frm
{
partial class UserMain
{
/// <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 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.panel2 = new System.Windows.Forms.Panel();
this.label17 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.RosyBrown;
this.panel2.Controls.Add(this.label17);
this.panel2.Controls.Add(this.label15);
this.panel2.Controls.Add(this.label16);
this.panel2.Controls.Add(this.label13);
this.panel2.Controls.Add(this.label14);
this.panel2.Controls.Add(this.label11);
this.panel2.Controls.Add(this.label12);
this.panel2.Controls.Add(this.label9);
this.panel2.Controls.Add(this.label10);
this.panel2.Controls.Add(this.label5);
this.panel2.Controls.Add(this.label6);
this.panel2.Controls.Add(this.label7);
this.panel2.Controls.Add(this.label8);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Margin = new System.Windows.Forms.Padding(2);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(615, 55);
this.panel2.TabIndex = 5;
//
// label17
//
this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label17.Location = new System.Drawing.Point(441, 34);
this.label17.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(11, 11);
this.label17.TabIndex = 12;
this.label17.Text = "0";
this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label15
//
this.label15.AutoSize = true;
this.label15.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label15.Location = new System.Drawing.Point(649, 65);
this.label15.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(21, 22);
this.label15.TabIndex = 11;
this.label15.Text = "0";
this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label16
//
this.label16.AutoSize = true;
this.label16.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label16.Location = new System.Drawing.Point(412, 17);
this.label16.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(61, 11);
this.label16.TabIndex = 10;
this.label16.Text = "2#裁刀温度";
this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label13
//
this.label13.AutoSize = true;
this.label13.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label13.Location = new System.Drawing.Point(327, 33);
this.label13.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(11, 11);
this.label13.TabIndex = 9;
this.label13.Text = "0";
this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label14
//
this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label14.Location = new System.Drawing.Point(312, 17);
this.label14.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(61, 11);
this.label14.TabIndex = 8;
this.label14.Text = "1#裁刀温度";
this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label11
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label11.Location = new System.Drawing.Point(234, 34);
this.label11.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(11, 11);
this.label11.TabIndex = 7;
this.label11.Text = "0";
this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label12
//
this.label12.AutoSize = true;
this.label12.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label12.Location = new System.Drawing.Point(222, 17);
this.label12.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(50, 11);
this.label12.TabIndex = 6;
this.label12.Text = "2#收料轴";
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.Location = new System.Drawing.Point(170, 34);
this.label9.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(11, 11);
this.label9.TabIndex = 5;
this.label9.Text = "0";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label10.Location = new System.Drawing.Point(155, 17);
this.label10.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(50, 11);
this.label10.TabIndex = 4;
this.label10.Text = "1#收料轴";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.Location = new System.Drawing.Point(90, 34);
this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(11, 11);
this.label5.TabIndex = 3;
this.label5.Text = "0";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.Location = new System.Drawing.Point(76, 17);
this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(49, 11);
this.label6.TabIndex = 2;
this.label6.Text = "裁切数量";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.Location = new System.Drawing.Point(16, 34);
this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(11, 11);
this.label7.TabIndex = 1;
this.label7.Text = "0";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.Location = new System.Drawing.Point(7, 17);
this.label8.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(49, 11);
this.label8.TabIndex = 0;
this.label8.Text = "层合数量";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// UserMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Transparent;
this.Controls.Add(this.panel2);
this.Name = "UserMain";
this.Size = new System.Drawing.Size(615, 616);
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
}
}

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace RfidWeb.Frm
{
public partial class UserMain : UserControl
{
public UserMain()
{
InitializeComponent();
}
}
}

@ -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>

@ -28,21 +28,337 @@
/// </summary>
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
this.panel222 = new System.Windows.Forms.Panel();
this.panel7 = new System.Windows.Forms.Panel();
this.panel8 = new System.Windows.Forms.Panel();
this.button4 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.btnMes = new System.Windows.Forms.Button();
this.btnAccount = new System.Windows.Forms.Button();
this.btnAlarm = new System.Windows.Forms.Button();
this.btnExit = new System.Windows.Forms.Button();
this.btnArgument = new System.Windows.Forms.Button();
this.btnMain = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.panel5 = new System.Windows.Forms.Panel();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.panel6 = new System.Windows.Forms.Panel();
this.panel1.SuspendLayout();
this.panel222.SuspendLayout();
this.panel7.SuspendLayout();
this.panel8.SuspendLayout();
this.panel2.SuspendLayout();
this.panel5.SuspendLayout();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.Controls.Add(this.panel222);
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(856, 670);
this.panel1.TabIndex = 0;
//
// panel222
//
this.panel222.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.panel222.Controls.Add(this.panel6);
this.panel222.Controls.Add(this.panel7);
this.panel222.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel222.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panel222.Location = new System.Drawing.Point(0, 54);
this.panel222.Name = "panel222";
this.panel222.Size = new System.Drawing.Size(856, 616);
this.panel222.TabIndex = 1;
//
// panel7
//
this.panel7.BackColor = System.Drawing.Color.Transparent;
this.panel7.Controls.Add(this.panel8);
this.panel7.Controls.Add(this.button2);
this.panel7.Controls.Add(this.button1);
this.panel7.Dock = System.Windows.Forms.DockStyle.Left;
this.panel7.Location = new System.Drawing.Point(0, 0);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(241, 616);
this.panel7.TabIndex = 0;
//
// panel8
//
this.panel8.BackColor = System.Drawing.Color.Transparent;
this.panel8.Controls.Add(this.button4);
this.panel8.Controls.Add(this.button3);
this.panel8.Controls.Add(this.btnMes);
this.panel8.Controls.Add(this.btnAccount);
this.panel8.Controls.Add(this.btnAlarm);
this.panel8.Controls.Add(this.btnExit);
this.panel8.Controls.Add(this.btnArgument);
this.panel8.Controls.Add(this.btnMain);
this.panel8.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel8.Location = new System.Drawing.Point(0, 0);
this.panel8.Name = "panel8";
this.panel8.Size = new System.Drawing.Size(241, 616);
this.panel8.TabIndex = 2;
//
// button4
//
this.button4.BackgroundImage = global::RfidWeb.Properties.Resources.;
this.button4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.button4.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button4.Location = new System.Drawing.Point(21, 550);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(112, 106);
this.button4.TabIndex = 6;
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click_1);
//
// button3
//
this.button3.BackgroundImage = global::RfidWeb.Properties.Resources.;
this.button3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.button3.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button3.Location = new System.Drawing.Point(21, 463);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(200, 58);
this.button3.TabIndex = 5;
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click_1);
//
// btnMes
//
this.btnMes.BackgroundImage = global::RfidWeb.Properties.Resources.btn;
this.btnMes.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btnMes.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnMes.Location = new System.Drawing.Point(21, 374);
this.btnMes.Name = "btnMes";
this.btnMes.Size = new System.Drawing.Size(200, 58);
this.btnMes.TabIndex = 4;
this.btnMes.Text = "生产计划";
this.btnMes.UseVisualStyleBackColor = true;
//
// btnAccount
//
this.btnAccount.BackgroundImage = global::RfidWeb.Properties.Resources.btn;
this.btnAccount.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btnAccount.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAccount.Location = new System.Drawing.Point(21, 291);
this.btnAccount.Name = "btnAccount";
this.btnAccount.Size = new System.Drawing.Size(200, 58);
this.btnAccount.TabIndex = 3;
this.btnAccount.Text = "账户管理";
this.btnAccount.UseVisualStyleBackColor = true;
//
// btnAlarm
//
this.btnAlarm.BackgroundImage = global::RfidWeb.Properties.Resources.btn;
this.btnAlarm.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btnAlarm.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAlarm.Location = new System.Drawing.Point(21, 211);
this.btnAlarm.Name = "btnAlarm";
this.btnAlarm.Size = new System.Drawing.Size(200, 58);
this.btnAlarm.TabIndex = 3;
this.btnAlarm.Text = "报警记录";
this.btnAlarm.UseVisualStyleBackColor = true;
//
// btnExit
//
this.btnExit.BackgroundImage = global::RfidWeb.Properties.Resources.btn;
this.btnExit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btnExit.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnExit.Location = new System.Drawing.Point(21, 851);
this.btnExit.Name = "btnExit";
this.btnExit.Size = new System.Drawing.Size(194, 58);
this.btnExit.TabIndex = 2;
this.btnExit.Text = "退出";
this.btnExit.UseVisualStyleBackColor = true;
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
//
// btnArgument
//
this.btnArgument.BackgroundImage = global::RfidWeb.Properties.Resources.btn;
this.btnArgument.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btnArgument.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnArgument.Location = new System.Drawing.Point(21, 132);
this.btnArgument.Name = "btnArgument";
this.btnArgument.Size = new System.Drawing.Size(200, 58);
this.btnArgument.TabIndex = 1;
this.btnArgument.Text = "参数界面";
this.btnArgument.UseVisualStyleBackColor = true;
this.btnArgument.Click += new System.EventHandler(this.button3_Click);
//
// btnMain
//
this.btnMain.BackgroundImage = global::RfidWeb.Properties.Resources.btn_sel1;
this.btnMain.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btnMain.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnMain.Location = new System.Drawing.Point(21, 55);
this.btnMain.Name = "btnMain";
this.btnMain.Size = new System.Drawing.Size(200, 60);
this.btnMain.TabIndex = 0;
this.btnMain.Text = "首页";
this.btnMain.UseVisualStyleBackColor = true;
this.btnMain.Click += new System.EventHandler(this.button4_Click);
//
// button2
//
this.button2.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button2.Location = new System.Drawing.Point(44, 132);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(150, 58);
this.button2.TabIndex = 1;
this.button2.Text = "首页";
this.button2.UseVisualStyleBackColor = true;
//
// button1
//
this.button1.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(44, 55);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(150, 58);
this.button1.TabIndex = 0;
this.button1.Text = "首页";
this.button1.UseVisualStyleBackColor = true;
//
// panel2
//
this.panel2.BackgroundImage = global::RfidWeb.Properties.Resources.frmMain;
this.panel2.Controls.Add(this.panel4);
this.panel2.Controls.Add(this.panel5);
this.panel2.Controls.Add(this.panel3);
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(856, 54);
this.panel2.TabIndex = 0;
//
// panel4
//
this.panel4.BackColor = System.Drawing.Color.Transparent;
this.panel4.BackgroundImage = global::RfidWeb.Properties.Resources.frm21;
this.panel4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(377, 0);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(102, 54);
this.panel4.TabIndex = 3;
//
// panel5
//
this.panel5.BackColor = System.Drawing.Color.Transparent;
this.panel5.Controls.Add(this.label2);
this.panel5.Controls.Add(this.label1);
this.panel5.Dock = System.Windows.Forms.DockStyle.Right;
this.panel5.Location = new System.Drawing.Point(479, 0);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(377, 54);
this.panel5.TabIndex = 2;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(218, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(82, 27);
this.label2.TabIndex = 1;
this.label2.Text = "10:25";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(6, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(152, 27);
this.label1.TabIndex = 0;
this.label1.Text = "2024/10/25";
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.Transparent;
this.panel3.Controls.Add(this.pictureBox1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Left;
this.panel3.Location = new System.Drawing.Point(0, 0);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(377, 54);
this.panel3.TabIndex = 0;
//
// pictureBox1
//
this.pictureBox1.Image = global::RfidWeb.Properties.Resources.mesnac;
this.pictureBox1.Location = new System.Drawing.Point(15, 9);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(273, 27);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// panel6
//
this.panel6.BackColor = System.Drawing.Color.LightCoral;
this.panel6.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel6.Location = new System.Drawing.Point(241, 0);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(615, 616);
this.panel6.TabIndex = 1;
//
// FrmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1180, 553);
this.Margin = new System.Windows.Forms.Padding(2);
this.ClientSize = new System.Drawing.Size(856, 670);
this.Controls.Add(this.panel1);
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Name = "FrmMain";
this.Text = "主程序";
this.panel1.ResumeLayout(false);
this.panel222.ResumeLayout(false);
this.panel7.ResumeLayout(false);
this.panel8.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel5.ResumeLayout(false);
this.panel5.PerformLayout();
this.panel3.ResumeLayout(false);
((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.Panel panel4;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Panel panel222;
private System.Windows.Forms.Panel panel7;
private System.Windows.Forms.Panel panel8;
private System.Windows.Forms.Button btnArgument;
private System.Windows.Forms.Button btnMain;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button btnExit;
private System.Windows.Forms.Button btnAlarm;
private System.Windows.Forms.Button btnMes;
private System.Windows.Forms.Button btnAccount;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Panel panel6;
}
}

@ -1,22 +1,20 @@
using HslCommunication.LogNet;
using Chloe.PostgreSQL.DDL;
using Chloe.RDBMS.DDL;
using DB;
using DB.Entity;
using HslCommunication;
using HslCommunication.LogNet;
using NewLife.Threading;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI;
using System.Windows.Forms;
using Chloe.PostgreSQL.DDL;
using Chloe.RDBMS.DDL;
using DB;
using DB.Entity;
using NewLife.Data;
using NewLife.Log;
using RfidWeb.Frm;
using Tool;
using HslCommunication;
namespace RfidWeb
{
@ -24,14 +22,16 @@ namespace RfidWeb
{
private ILogNet logNet = ILogNetFactory.GetLogNet;
TimerX _timer;
public FrmMain()
{
InitializeComponent();
_timer= new TimerX(TimeState, null, 10 , 1000);
// 如果所有的日志在记录之前需要在控制台显示出来
logNet.BeforeSaveToFile += (object sender, HslEventArgs e) =>
{
@ -43,32 +43,51 @@ namespace RfidWeb
}
/// <summary>移除过期的缓存项</summary>
void TimeState(Object state)
{
var dataTime = DateTime.Now;
this.Invoke(() =>
{
label1.Text = dataTime.ToString("yyyy'/'MM'/'dd");
label2.Text = dataTime.ToString("HH:mm:ss");
});
}
private void Init()
{
//if (this.FormBorderStyle == FormBorderStyle.None)
if (this.FormBorderStyle == FormBorderStyle.None)
{
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.WindowState = FormWindowState.Normal;
}
else
{
this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
}
panel6.Dock = DockStyle.Fill;
this.panel6.Controls.Add(new UserMain());
//// 当前写入操作的代码 The code for the current write operation
//OperateResult write = PlcConnect.Instance.Write("A1", short.Parse("4"));
//if (write.IsSuccess)
//{
// this.FormBorderStyle = FormBorderStyle.FixedSingle;
// this.WindowState = FormWindowState.Normal;
// Console.WriteLine("Write [A1] success");
//}
//else
//{
// this.FormBorderStyle = FormBorderStyle.None;
// this.WindowState = FormWindowState.Maximized;
// Console.WriteLine("Write [A1] failed: " + write.Message);
//}
// 当前写入操作的代码 The code for the current write operation
OperateResult write = PlcConnect.Instance.Write("A1", short.Parse("4"));
if (write.IsSuccess)
{
Console.WriteLine("Write [A1] success");
}
else
{
Console.WriteLine("Write [A1] failed: " + write.Message);
}
// this.panel6.Controls.Add(new UserControl1());
}
@ -100,5 +119,48 @@ namespace RfidWeb
RoleLevel = 3
});
}
private void button4_Click(object sender, EventArgs e)
{
SetBackGroupImage(btnMain);
this.panel6.Controls.Clear();
// this.panel6.Controls.Add(new UserControl1());
}
private void button3_Click(object sender, EventArgs e)
{
SetBackGroupImage(btnArgument);
this.panel6.Controls.Clear();
// this.panel6.Controls.Add(new UserControl2());
}
private void SetBackGroupImage(Button button)
{
var imageOld = Properties.Resources.btn;
btnMain.BackgroundImage=imageOld;
btnArgument.BackgroundImage = imageOld;
var imageNew = Properties.Resources.btn_sel1;
if (button != null)
{
button.BackgroundImage=imageNew;
}
}
private void btnExit_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void button3_Click_1(object sender, EventArgs e)
{
}
private void button4_Click_1(object sender, EventArgs e)
{
}
}
}

@ -63,19 +63,80 @@ namespace RfidWeb.Properties {
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap Image1 {
internal static System.Drawing.Bitmap btn {
get {
object obj = ResourceManager.GetObject("Image1", resourceCulture);
object obj = ResourceManager.GetObject("btn", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找类似 的本地化字符串。
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap btn_sel1 {
get {
object obj = ResourceManager.GetObject("btn_sel1", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap frm21 {
get {
object obj = ResourceManager.GetObject("frm21", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap frmBei {
get {
object obj = ResourceManager.GetObject("frmBei", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static string String1 {
internal static System.Drawing.Bitmap frmMain {
get {
return ResourceManager.GetString("String1", resourceCulture);
object obj = ResourceManager.GetObject("frmMain", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap mesnac {
get {
object obj = ResourceManager.GetObject("mesnac", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap {
get {
object obj = ResourceManager.GetObject("消音开", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap {
get {
object obj = ResourceManager.GetObject("照明关", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}

@ -118,10 +118,28 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="Image1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Image1.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<data name="btn" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\btn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="String1" xml:space="preserve">
<value />
<data name="frmBei" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\frmBei.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="btn_sel1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\btn_sel1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="frmMain" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\frmMain.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="mesnac" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\mesnac1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="frm21" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\frm21.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="消音开" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\消音开.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="照明关" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\照明关.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 663 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

@ -124,25 +124,34 @@
<Compile Include="FrmMain.Designer.cs">
<DependentUpon>FrmMain.cs</DependentUpon>
</Compile>
<Compile Include="Frm\UserMain.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Frm\UserMain.Designer.cs">
<DependentUpon>UserMain.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="FrmMain.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Frm\UserMain.resx">
<DependentUpon>UserMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
@ -167,7 +176,31 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="Resources\Image1.jpg" />
<None Include="Resources\frmMain.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\mesnac1.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\frm21.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\frmBei.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\btn.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\btn_sel1.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\消音开.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\照明关.png" />
</ItemGroup>
<ItemGroup>
<Content Include="Resources\照明开.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Loading…
Cancel
Save