基线 SVN r240

SVN-Revision: r240
This commit is contained in:
cyf
2025-02-06 06:46:06 +00:00
commit ab56a9bcf7
5317 changed files with 902274 additions and 0 deletions
+136
View File
@@ -0,0 +1,136 @@
namespace Lskj.ProductPlatform2
{
partial class FrmConfig
{
/// <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.simpleButton2 = new DevExpress.XtraEditors.SimpleButton();
this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
this.label2 = new System.Windows.Forms.Label();
this.txtDBName = new DevExpress.XtraEditors.TextEdit();
this.label1 = new System.Windows.Forms.Label();
this.txtServerName = new DevExpress.XtraEditors.TextEdit();
((System.ComponentModel.ISupportInitialize)(this.txtDBName.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtServerName.Properties)).BeginInit();
this.SuspendLayout();
//
// simpleButton2
//
this.simpleButton2.Appearance.Font = new System.Drawing.Font("宋体", 20F);
this.simpleButton2.Appearance.Options.UseFont = true;
this.simpleButton2.Location = new System.Drawing.Point(24, 137);
this.simpleButton2.Name = "simpleButton2";
this.simpleButton2.Size = new System.Drawing.Size(172, 55);
this.simpleButton2.TabIndex = 11;
this.simpleButton2.Text = "测试连接";
this.simpleButton2.Click += new System.EventHandler(this.OnTestClick);
//
// simpleButton1
//
this.simpleButton1.Appearance.Font = new System.Drawing.Font("宋体", 20F);
this.simpleButton1.Appearance.Options.UseFont = true;
this.simpleButton1.Location = new System.Drawing.Point(202, 137);
this.simpleButton1.Name = "simpleButton1";
this.simpleButton1.Size = new System.Drawing.Size(172, 55);
this.simpleButton1.TabIndex = 10;
this.simpleButton1.Text = "保存配置";
this.simpleButton1.Click += new System.EventHandler(this.OnSettingClick);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 20F);
this.label2.Location = new System.Drawing.Point(17, 77);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(120, 27);
this.label2.TabIndex = 9;
this.label2.Text = "数据库:";
//
// txtDBName
//
this.txtDBName.Location = new System.Drawing.Point(137, 74);
this.txtDBName.Name = "txtDBName";
this.txtDBName.Properties.Appearance.Font = new System.Drawing.Font("宋体", 20F);
this.txtDBName.Properties.Appearance.Options.UseFont = true;
this.txtDBName.Size = new System.Drawing.Size(239, 34);
this.txtDBName.TabIndex = 8;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 20F);
this.label1.Location = new System.Drawing.Point(17, 27);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(120, 27);
this.label1.TabIndex = 7;
this.label1.Text = "服务器:";
//
// txtServerName
//
this.txtServerName.Location = new System.Drawing.Point(137, 24);
this.txtServerName.Name = "txtServerName";
this.txtServerName.Properties.Appearance.Font = new System.Drawing.Font("宋体", 20F);
this.txtServerName.Properties.Appearance.Options.UseFont = true;
this.txtServerName.Size = new System.Drawing.Size(237, 34);
this.txtServerName.TabIndex = 6;
//
// FrmConfig
//
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
this.Appearance.Options.UseBackColor = true;
this.Appearance.Options.UseFont = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(395, 215);
this.Controls.Add(this.simpleButton2);
this.Controls.Add(this.simpleButton1);
this.Controls.Add(this.label2);
this.Controls.Add(this.txtDBName);
this.Controls.Add(this.label1);
this.Controls.Add(this.txtServerName);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmConfig";
this.Text = "服务器设置";
this.Load += new System.EventHandler(this.OnLoad);
((System.ComponentModel.ISupportInitialize)(this.txtDBName.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtServerName.Properties)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private DevExpress.XtraEditors.SimpleButton simpleButton2;
private DevExpress.XtraEditors.SimpleButton simpleButton1;
private System.Windows.Forms.Label label2;
private DevExpress.XtraEditors.TextEdit txtDBName;
private System.Windows.Forms.Label label1;
private DevExpress.XtraEditors.TextEdit txtServerName;
}
}
@@ -0,0 +1,128 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lskj.Control;
using Lskj.Core;
using Lskj.Data;
using Lskj.Model;
using Lskj.Business.Impl;
namespace Lskj.ProductPlatform2
{
public partial class FrmConfig : BaseForm
{
/// <summary>
/// 单据动态链接库参数
/// </summary>
public DynamicModel model;
public FrmConfig()
{
InitializeComponent();
}
void OnLoad(object sender, EventArgs e)
{
try
{
this.txtServerName.Text = DBConfig.Instance.ServerName;
this.txtDBName.Text = DBConfig.Instance.DataBase;
if (model != null && !model.HasReadPrivilege())
this.simpleButton1.Enabled = this.simpleButton2.Enabled = false;
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
void OnTestClick(object sender, EventArgs e)
{
try
{
ConnectServer();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
void OnSettingClick(object sender, EventArgs e)
{
try
{
ConnectServer(true);
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:连接服务器</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-09 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="isSave">if set to <c>true</c> [is save].</param>
private void ConnectServer(bool isSave = false)
{
string serverName = this.txtServerName.Text.Trim();
string dbName = this.txtDBName.Text.Trim();
if (string.IsNullOrWhiteSpace(serverName))
{
MessageUtil.Show(ResourceKeys.ServerNameIsNull);
return;
}
if (string.IsNullOrWhiteSpace(dbName))
{
MessageUtil.Show(ResourceKeys.ServerDBIsNull);
return;
}
DBConfig.Instance.ServerName = serverName;
DBConfig.Instance.DataBase = dbName;
// 测试数据库连接
try
{
if (DBConfig.Instance.CreateConnection())
{
if (isSave)
{
DBConfig.Instance.WriteConfig();
this.DialogResult = DialogResult.OK;
this.Close();
}
else
{
MessageUtil.Show(ResourceKeys.ConnectSuccess);
}
}
else
{
MessageUtil.Show(ResourceKeys.ConnectFault);
}
}
catch (Exception ex)
{
//MessageUtil.Show(ResourceKeys.ConnectFault);
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
}
}
@@ -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>
+557
View File
@@ -0,0 +1,557 @@
namespace Lskj.ProductPlatform2
{
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.panelControl1 = new DevExpress.XtraEditors.PanelControl();
this.panel19 = new System.Windows.Forms.Panel();
this.panel20 = new System.Windows.Forms.Panel();
this.cbBZ = new System.Windows.Forms.ComboBox();
this.panel15 = new System.Windows.Forms.Panel();
this.panel16 = new System.Windows.Forms.Panel();
this.cbJT = new System.Windows.Forms.ComboBox();
this.panel17 = new System.Windows.Forms.Panel();
this.panel18 = new System.Windows.Forms.Panel();
this.PlTop = new DevExpress.XtraEditors.PanelControl();
this.btnClose = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.panel9 = new System.Windows.Forms.Panel();
this.cbCJ = new System.Windows.Forms.ComboBox();
this.panel12 = new System.Windows.Forms.Panel();
this.panel14 = new System.Windows.Forms.Panel();
this.zt_panel = new System.Windows.Forms.Panel();
this.panel5 = new System.Windows.Forms.Panel();
this.cbLedger = new DevExpress.XtraEditors.ComboBoxEdit();
this.panel4 = new System.Windows.Forms.Panel();
this.panel13 = new System.Windows.Forms.Panel();
this.mm_panel = new System.Windows.Forms.Panel();
this.panel10 = new System.Windows.Forms.Panel();
this.txtPassword = new DevExpress.XtraEditors.TextEdit();
this.panel11 = new System.Windows.Forms.Panel();
this.panel6 = new System.Windows.Forms.Panel();
this.btnSetting = new DevExpress.XtraEditors.SimpleButton();
this.yh_panel = new System.Windows.Forms.Panel();
this.panel7 = new System.Windows.Forms.Panel();
this.txtUserName = new Lskj.Control.AutoGridLookUp();
this.panel8 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.btnLogin = new DevExpress.XtraEditors.SimpleButton();
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
this.panelControl1.SuspendLayout();
this.panel19.SuspendLayout();
this.panel20.SuspendLayout();
this.panel15.SuspendLayout();
this.panel16.SuspendLayout();
this.panel17.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.PlTop)).BeginInit();
this.PlTop.SuspendLayout();
this.panel2.SuspendLayout();
this.panel9.SuspendLayout();
this.panel12.SuspendLayout();
this.zt_panel.SuspendLayout();
this.panel5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.cbLedger.Properties)).BeginInit();
this.panel4.SuspendLayout();
this.mm_panel.SuspendLayout();
this.panel10.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtPassword.Properties)).BeginInit();
this.panel11.SuspendLayout();
this.yh_panel.SuspendLayout();
this.panel7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtUserName.Properties)).BeginInit();
this.panel8.SuspendLayout();
this.SuspendLayout();
//
// panelControl1
//
this.panelControl1.Appearance.BackColor = System.Drawing.Color.Transparent;
this.panelControl1.Appearance.Options.UseBackColor = true;
this.panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl1.Controls.Add(this.panel19);
this.panelControl1.Controls.Add(this.panel15);
this.panelControl1.Controls.Add(this.PlTop);
this.panelControl1.Controls.Add(this.panel2);
this.panelControl1.Controls.Add(this.zt_panel);
this.panelControl1.Controls.Add(this.mm_panel);
this.panelControl1.Controls.Add(this.btnSetting);
this.panelControl1.Controls.Add(this.yh_panel);
this.panelControl1.Controls.Add(this.btnLogin);
this.panelControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl1.Location = new System.Drawing.Point(0, 0);
this.panelControl1.Name = "panelControl1";
this.panelControl1.Size = new System.Drawing.Size(1021, 533);
this.panelControl1.TabIndex = 9;
//
// panel19
//
this.panel19.BackColor = System.Drawing.Color.White;
this.panel19.Controls.Add(this.panel20);
this.panel19.Location = new System.Drawing.Point(861, 262);
this.panel19.Name = "panel19";
this.panel19.Size = new System.Drawing.Size(85, 45);
this.panel19.TabIndex = 16;
//
// panel20
//
this.panel20.Controls.Add(this.cbBZ);
this.panel20.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel20.Location = new System.Drawing.Point(0, 0);
this.panel20.Name = "panel20";
this.panel20.Size = new System.Drawing.Size(85, 45);
this.panel20.TabIndex = 12;
//
// cbBZ
//
this.cbBZ.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbBZ.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.cbBZ.Font = new System.Drawing.Font("微软雅黑", 16F);
this.cbBZ.FormattingEnabled = true;
this.cbBZ.Items.AddRange(new object[] {
"",
"早班",
"中班",
"晚班"});
this.cbBZ.Location = new System.Drawing.Point(5, 4);
this.cbBZ.Name = "cbBZ";
this.cbBZ.Size = new System.Drawing.Size(77, 36);
this.cbBZ.TabIndex = 15;
//
// panel15
//
this.panel15.BackColor = System.Drawing.Color.White;
this.panel15.Controls.Add(this.panel16);
this.panel15.Controls.Add(this.panel17);
this.panel15.Location = new System.Drawing.Point(632, 262);
this.panel15.Name = "panel15";
this.panel15.Size = new System.Drawing.Size(226, 45);
this.panel15.TabIndex = 15;
//
// panel16
//
this.panel16.Controls.Add(this.cbJT);
this.panel16.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel16.Location = new System.Drawing.Point(45, 0);
this.panel16.Name = "panel16";
this.panel16.Size = new System.Drawing.Size(181, 45);
this.panel16.TabIndex = 12;
//
// cbJT
//
this.cbJT.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbJT.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.cbJT.Font = new System.Drawing.Font("微软雅黑", 16F);
this.cbJT.FormattingEnabled = true;
this.cbJT.Location = new System.Drawing.Point(3, 4);
this.cbJT.Name = "cbJT";
this.cbJT.Size = new System.Drawing.Size(175, 36);
this.cbJT.TabIndex = 16;
this.cbJT.SelectedIndexChanged += new System.EventHandler(this.JTSelectedIndexChanged);
//
// panel17
//
this.panel17.Controls.Add(this.panel18);
this.panel17.Dock = System.Windows.Forms.DockStyle.Left;
this.panel17.Location = new System.Drawing.Point(0, 0);
this.panel17.Name = "panel17";
this.panel17.Size = new System.Drawing.Size(45, 45);
this.panel17.TabIndex = 11;
//
// panel18
//
this.panel18.BackgroundImage = global::Lskj.ProductPlatform2.Properties.Resources.;
this.panel18.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.panel18.Location = new System.Drawing.Point(9, 9);
this.panel18.Name = "panel18";
this.panel18.Size = new System.Drawing.Size(28, 28);
this.panel18.TabIndex = 16;
//
// PlTop
//
this.PlTop.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.PlTop.Controls.Add(this.btnClose);
this.PlTop.Controls.Add(this.label5);
this.PlTop.Dock = System.Windows.Forms.DockStyle.Top;
this.PlTop.Location = new System.Drawing.Point(0, 0);
this.PlTop.Name = "PlTop";
this.PlTop.Size = new System.Drawing.Size(1021, 79);
this.PlTop.TabIndex = 11;
//
// btnClose
//
this.btnClose.BackColor = System.Drawing.Color.Transparent;
this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
this.btnClose.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.btnClose.FlatAppearance.BorderSize = 0;
this.btnClose.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
this.btnClose.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClose.Location = new System.Drawing.Point(969, 12);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(40, 40);
this.btnClose.TabIndex = 11;
this.btnClose.UseVisualStyleBackColor = false;
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// label5
//
this.label5.Dock = System.Windows.Forms.DockStyle.Fill;
this.label5.Font = new System.Drawing.Font("微软雅黑", 24F);
this.label5.ForeColor = System.Drawing.Color.White;
this.label5.Location = new System.Drawing.Point(0, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(1021, 79);
this.label5.TabIndex = 10;
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.White;
this.panel2.Controls.Add(this.panel9);
this.panel2.Controls.Add(this.panel12);
this.panel2.Location = new System.Drawing.Point(632, 211);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(314, 45);
this.panel2.TabIndex = 14;
//
// panel9
//
this.panel9.Controls.Add(this.cbCJ);
this.panel9.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel9.Location = new System.Drawing.Point(45, 0);
this.panel9.Name = "panel9";
this.panel9.Size = new System.Drawing.Size(269, 45);
this.panel9.TabIndex = 12;
//
// cbCJ
//
this.cbCJ.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbCJ.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.cbCJ.Font = new System.Drawing.Font("微软雅黑", 16F);
this.cbCJ.FormattingEnabled = true;
this.cbCJ.Location = new System.Drawing.Point(3, 4);
this.cbCJ.Name = "cbCJ";
this.cbCJ.Size = new System.Drawing.Size(263, 36);
this.cbCJ.TabIndex = 16;
this.cbCJ.SelectedIndexChanged += new System.EventHandler(this.cbCJ_SelectedIndexChanged);
//
// panel12
//
this.panel12.Controls.Add(this.panel14);
this.panel12.Dock = System.Windows.Forms.DockStyle.Left;
this.panel12.Location = new System.Drawing.Point(0, 0);
this.panel12.Name = "panel12";
this.panel12.Size = new System.Drawing.Size(45, 45);
this.panel12.TabIndex = 11;
//
// panel14
//
this.panel14.BackgroundImage = global::Lskj.ProductPlatform2.Properties.Resources.;
this.panel14.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.panel14.Location = new System.Drawing.Point(9, 9);
this.panel14.Name = "panel14";
this.panel14.Size = new System.Drawing.Size(28, 28);
this.panel14.TabIndex = 16;
//
// zt_panel
//
this.zt_panel.BackColor = System.Drawing.Color.White;
this.zt_panel.Controls.Add(this.panel5);
this.zt_panel.Controls.Add(this.panel4);
this.zt_panel.Location = new System.Drawing.Point(632, 160);
this.zt_panel.Name = "zt_panel";
this.zt_panel.Size = new System.Drawing.Size(314, 45);
this.zt_panel.TabIndex = 10;
//
// panel5
//
this.panel5.Controls.Add(this.cbLedger);
this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel5.Location = new System.Drawing.Point(45, 0);
this.panel5.Name = "panel5";
this.panel5.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
this.panel5.Size = new System.Drawing.Size(269, 45);
this.panel5.TabIndex = 12;
//
// cbLedger
//
this.cbLedger.Dock = System.Windows.Forms.DockStyle.Fill;
this.cbLedger.Location = new System.Drawing.Point(5, 0);
this.cbLedger.Name = "cbLedger";
this.cbLedger.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 16F);
this.cbLedger.Properties.Appearance.Options.UseFont = true;
this.cbLedger.Properties.AutoHeight = false;
this.cbLedger.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.cbLedger.Size = new System.Drawing.Size(264, 45);
this.cbLedger.TabIndex = 8;
//
// panel4
//
this.panel4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.panel4.Controls.Add(this.panel13);
this.panel4.Dock = System.Windows.Forms.DockStyle.Left;
this.panel4.Location = new System.Drawing.Point(0, 0);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(45, 45);
this.panel4.TabIndex = 11;
//
// panel13
//
this.panel13.BackgroundImage = global::Lskj.ProductPlatform2.Properties.Resources.;
this.panel13.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.panel13.Location = new System.Drawing.Point(9, 9);
this.panel13.Name = "panel13";
this.panel13.Size = new System.Drawing.Size(28, 28);
this.panel13.TabIndex = 15;
//
// mm_panel
//
this.mm_panel.BackColor = System.Drawing.Color.White;
this.mm_panel.Controls.Add(this.panel10);
this.mm_panel.Controls.Add(this.panel11);
this.mm_panel.Location = new System.Drawing.Point(632, 364);
this.mm_panel.Name = "mm_panel";
this.mm_panel.Size = new System.Drawing.Size(314, 45);
this.mm_panel.TabIndex = 13;
//
// panel10
//
this.panel10.Controls.Add(this.txtPassword);
this.panel10.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel10.Location = new System.Drawing.Point(45, 0);
this.panel10.Name = "panel10";
this.panel10.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
this.panel10.Size = new System.Drawing.Size(269, 45);
this.panel10.TabIndex = 12;
//
// txtPassword
//
this.txtPassword.Dock = System.Windows.Forms.DockStyle.Fill;
this.txtPassword.Location = new System.Drawing.Point(5, 0);
this.txtPassword.Name = "txtPassword";
this.txtPassword.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 16F);
this.txtPassword.Properties.Appearance.Options.UseFont = true;
this.txtPassword.Properties.AutoHeight = false;
this.txtPassword.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.txtPassword.Properties.PasswordChar = '*';
this.txtPassword.Size = new System.Drawing.Size(264, 45);
this.txtPassword.TabIndex = 2;
this.txtPassword.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OnPasswordKeyDown);
//
// panel11
//
this.panel11.Controls.Add(this.panel6);
this.panel11.Dock = System.Windows.Forms.DockStyle.Left;
this.panel11.Location = new System.Drawing.Point(0, 0);
this.panel11.Name = "panel11";
this.panel11.Size = new System.Drawing.Size(45, 45);
this.panel11.TabIndex = 11;
//
// panel6
//
this.panel6.BackgroundImage = global::Lskj.ProductPlatform2.Properties.Resources.;
this.panel6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.panel6.Location = new System.Drawing.Point(9, 9);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(28, 28);
this.panel6.TabIndex = 16;
//
// btnSetting
//
this.btnSetting.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(159)))), ((int)(((byte)(248)))));
this.btnSetting.Appearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(159)))), ((int)(((byte)(248)))));
this.btnSetting.Appearance.Font = new System.Drawing.Font("微软雅黑", 16F);
this.btnSetting.Appearance.ForeColor = System.Drawing.Color.White;
this.btnSetting.Appearance.Options.UseBackColor = true;
this.btnSetting.Appearance.Options.UseBorderColor = true;
this.btnSetting.Appearance.Options.UseFont = true;
this.btnSetting.Appearance.Options.UseForeColor = true;
this.btnSetting.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
this.btnSetting.Location = new System.Drawing.Point(289, 404);
this.btnSetting.Name = "btnSetting";
this.btnSetting.Size = new System.Drawing.Size(149, 46);
this.btnSetting.TabIndex = 5;
this.btnSetting.Text = "设 置";
this.btnSetting.Visible = false;
this.btnSetting.Click += new System.EventHandler(this.OnSettingClick);
//
// yh_panel
//
this.yh_panel.BackColor = System.Drawing.Color.White;
this.yh_panel.Controls.Add(this.panel7);
this.yh_panel.Controls.Add(this.panel8);
this.yh_panel.Location = new System.Drawing.Point(632, 313);
this.yh_panel.Name = "yh_panel";
this.yh_panel.Size = new System.Drawing.Size(314, 45);
this.yh_panel.TabIndex = 11;
//
// panel7
//
this.panel7.Controls.Add(this.txtUserName);
this.panel7.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel7.Location = new System.Drawing.Point(45, 0);
this.panel7.Name = "panel7";
this.panel7.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
this.panel7.Size = new System.Drawing.Size(269, 45);
this.panel7.TabIndex = 12;
//
// txtUserName
//
this.txtUserName.DataSource = null;
this.txtUserName.Dock = System.Windows.Forms.DockStyle.Fill;
this.txtUserName.EditValue = "";
this.txtUserName.Location = new System.Drawing.Point(5, 0);
this.txtUserName.Name = "txtUserName";
this.txtUserName.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 16F);
this.txtUserName.Properties.Appearance.Options.UseFont = true;
this.txtUserName.Properties.AutoHeight = false;
this.txtUserName.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.txtUserName.Size = new System.Drawing.Size(264, 45);
this.txtUserName.TabIndex = 51;
//
// panel8
//
this.panel8.Controls.Add(this.panel3);
this.panel8.Dock = System.Windows.Forms.DockStyle.Left;
this.panel8.Location = new System.Drawing.Point(0, 0);
this.panel8.Name = "panel8";
this.panel8.Size = new System.Drawing.Size(45, 45);
this.panel8.TabIndex = 11;
//
// panel3
//
this.panel3.BackgroundImage = global::Lskj.ProductPlatform2.Properties.Resources.;
this.panel3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.panel3.Location = new System.Drawing.Point(9, 9);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(28, 28);
this.panel3.TabIndex = 16;
//
// btnLogin
//
this.btnLogin.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(146)))), ((int)(((byte)(248)))));
this.btnLogin.Appearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(146)))), ((int)(((byte)(248)))));
this.btnLogin.Appearance.Font = new System.Drawing.Font("微软雅黑", 16F);
this.btnLogin.Appearance.ForeColor = System.Drawing.Color.White;
this.btnLogin.Appearance.Options.UseBackColor = true;
this.btnLogin.Appearance.Options.UseBorderColor = true;
this.btnLogin.Appearance.Options.UseFont = true;
this.btnLogin.Appearance.Options.UseForeColor = true;
this.btnLogin.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.btnLogin.Location = new System.Drawing.Point(632, 432);
this.btnLogin.Name = "btnLogin";
this.btnLogin.Size = new System.Drawing.Size(314, 46);
this.btnLogin.TabIndex = 4;
this.btnLogin.Text = "登 录";
this.btnLogin.Click += new System.EventHandler(this.OnLoginClick);
//
// FrmLogin
//
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
this.Appearance.Options.UseBackColor = true;
this.Appearance.Options.UseFont = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackgroundImageLayoutStore = System.Windows.Forms.ImageLayout.Stretch;
this.BackgroundImageStore = global::Lskj.ProductPlatform2.Properties.Resources.mesbj;
this.ClientSize = new System.Drawing.Size(1021, 533);
this.Controls.Add(this.panelControl1);
this.DoubleBuffered = true;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmLogin";
this.Text = "登陆";
this.Load += new System.EventHandler(this.OnLoad);
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
this.panelControl1.ResumeLayout(false);
this.panel19.ResumeLayout(false);
this.panel20.ResumeLayout(false);
this.panel15.ResumeLayout(false);
this.panel16.ResumeLayout(false);
this.panel17.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.PlTop)).EndInit();
this.PlTop.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel9.ResumeLayout(false);
this.panel12.ResumeLayout(false);
this.zt_panel.ResumeLayout(false);
this.panel5.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.cbLedger.Properties)).EndInit();
this.panel4.ResumeLayout(false);
this.mm_panel.ResumeLayout(false);
this.panel10.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.txtPassword.Properties)).EndInit();
this.panel11.ResumeLayout(false);
this.yh_panel.ResumeLayout(false);
this.panel7.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.txtUserName.Properties)).EndInit();
this.panel8.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraEditors.PanelControl panelControl1;
private DevExpress.XtraEditors.PanelControl PlTop;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.Panel panel19;
private System.Windows.Forms.Panel panel20;
private System.Windows.Forms.ComboBox cbBZ;
private System.Windows.Forms.Panel panel15;
private System.Windows.Forms.Panel panel16;
private System.Windows.Forms.ComboBox cbJT;
private System.Windows.Forms.Panel panel17;
private System.Windows.Forms.Panel panel18;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel9;
private System.Windows.Forms.ComboBox cbCJ;
private System.Windows.Forms.Panel panel12;
private System.Windows.Forms.Panel panel14;
private System.Windows.Forms.Panel mm_panel;
private System.Windows.Forms.Panel panel10;
private DevExpress.XtraEditors.TextEdit txtPassword;
private System.Windows.Forms.Panel panel11;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.Panel yh_panel;
private System.Windows.Forms.Panel panel7;
private System.Windows.Forms.Panel panel8;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel zt_panel;
private System.Windows.Forms.Panel panel5;
private DevExpress.XtraEditors.ComboBoxEdit cbLedger;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Panel panel13;
private DevExpress.XtraEditors.SimpleButton btnLogin;
private DevExpress.XtraEditors.SimpleButton btnSetting;
private Control.AutoGridLookUp txtUserName;
}
}
+825
View File
@@ -0,0 +1,825 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lskj.Control;
using Lskj.Business.Impl;
using Lskj.Core;
using Lskj.Business;
using Lskj.Data;
using Lskj.Model;
using Lskj.Control.Model;
using DevExpress.LookAndFeel;
using Lskj.Util;
using Lskj.AutoUpdate;
using System.Net;
using System.Xml;
using System.Data.SqlClient;
using System.IO;
namespace Lskj.ProductPlatform2
{
public partial class FrmLogin : BaseForm
{
private string MesLoginConfig = "MesLoginConfig.ini";
private string MesUserInputBefore = "P_MesLoginBefore ";
private DataTable mUserTable, mLedgerTable, mWorkTable;
private static string Logobg = @"Mes\logo.png";
//用户下拉框数据源
private DataTable _userTable;
public FrmLogin()
{
InitializeComponent();
this.txtUserName.TextChanged += new EventHandler(OnTxtUserNameLostFocus);
//this.txtUserName.LostFocus += new EventHandler(OnTxtUserNameLostFocus);
}
/// <summary>
/// <para>说明:设置帐套信息</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-09 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void SetLedgers()
{
// 获取帐套信息
this.mUserTable = MainImpl.GetLedgerList();
cbLedger.Properties.Items.Clear();
if (this.mUserTable.Rows.Count > 0)
{
foreach (DataRow item in this.mUserTable.Rows)
{
cbLedger.Properties.Items.Add(item["ShowName"]);
}
if (string.IsNullOrEmpty(DBConfig.Instance.DataBook))
{
}
cbLedger.Text = string.IsNullOrEmpty(DBConfig.Instance.DataBook) || this.mUserTable.Rows.Cast<DataRow>().FirstOrDefault(x => DBConfig.Instance.DataBook.Equals(x["ShowName"] + "")) == null
? this.mUserTable.Rows[0]["ShowName"] + "" : DBConfig.Instance.DataBook;
}
else
{
cbLedger.Enabled = false;
}
}
/// <summary>
/// <para>说明:设置工作车间</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-07-29 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void SetCJ()
{
try
{
this.mWorkTable = MainImpl.MesGetCJ();
foreach (DataRow item in this.mWorkTable.Rows)
{
this.cbCJ.Items.Add(item["mc"] + "");
}
}
catch (Exception)
{
}
}
/// <summary>
/// <para>说明:设置机台数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期: </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void SetJT()
{
try
{
DataRow[] rows = this.mWorkTable.Select(string.Format("mc = '{0}'", this.cbCJ.SelectedItem + ""));
this.cbJT.Items.Clear();
if (rows != null && rows.Length > 0)
{
DataTable table = MainImpl.MesGetJT(rows[0]["dm"] + "");
foreach (DataRow item in table.Rows)
{
this.cbJT.Items.Add(item["mc"] + "");
}
}
}
catch (Exception)
{
}
}
/// <summary>
/// <para>说明:设置班组数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期: </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void SetBZ()
{
this.cbBZ.Items.Clear();
DataTable tables = MainImpl.MesGetBZ();
this.cbBZ.Items.Add("");
foreach (DataRow item in tables.Rows)
{
this.cbBZ.Items.Add(item["mc"] + "");
}
}
/// <summary>
/// <para>说明:加载本地信息</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期: </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void SetLocalCongfig()
{
this.cbCJ.SelectedItem = IniHelper.Read(MesLoginConfig, "CJ");
this.cbJT.SelectedItem = IniHelper.Read(MesLoginConfig, "JT");
this.cbBZ.SelectedItem = IniHelper.Read(MesLoginConfig, "BZ");
}
/// <summary>
/// <para>说明:启动自动更新</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-02-23 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void StartAutoUpdate()
{
if (string.IsNullOrEmpty(SystemInfo.Instance.MesUpdateAddress))
{
//MessageUtil.Show(ResourceKeys.UpdateAddressIsNull);
return;
}
bool isUpdateSucess = false;
IAutoUpdater updater = new AutoUpdater(SystemInfo.Instance.MesUpdateAddress);
try
{
updater.Update();
isUpdateSucess = true;
}
catch (WebException ex)
{
MessageUtil.Show(ResourceKeys.ServerConnectionFault + "\r\n" + ex);
}
catch (XmlException ex)
{
MessageUtil.Show(ResourceKeys.DownLoadUpdateXmlFault + "\r\n" + ex);
}
catch (NotSupportedException ex)
{
MessageUtil.Show(ResourceKeys.UpdateXmlSettingFault + "\r\n" + ex);
}
catch (ArgumentException ex)
{
MessageUtil.Show(ResourceKeys.DownLoadUpdateFileFault + "\r\n" + ex);
}
catch (Exception ex)
{
MessageUtil.Show(ResourceKeys.UpdateError + "\r\n" + ex);
LogHelper.Instance.WriteError(ex);
}
finally
{
if (!isUpdateSucess)
{
try
{
updater.RollBack();
}
catch (Exception)
{
}
}
}
}
/// <summary>
/// <para>说明:设置delphi参数</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-12 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void SetDelphiDllParams()
{
try
{
StringBuilder sb1 = new StringBuilder();
sb1.Append(ERPInfo.Instance.UserName);
StringBuilder sb2 = new StringBuilder();
sb2.Append(ERPInfo.Instance.WindowName);
StringBuilder sb3 = new StringBuilder();
sb3.Append(ERPInfo.Instance.SkinName);
//给delphi库设置参数(用户id、子系统id、操作员名称、计算机名称)
DelphiHelper.Delphi_SetParams(Convert.ToInt32(ERPInfo.Instance.UserId), Convert.ToInt32(ERPInfo.Instance.SubSysId), sb1, sb2, sb3);
}
catch (Exception ex)
{
//MessageUtil.Show(ex);
LogHelper.Instance.WriteError(ex);
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:登陆</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-11-12 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void StartLogin()
{
try
{
string userCode = this.txtUserName.EditValue + "";
string userName = this.txtUserName.Text.Trim();
string password = this.txtPassword.Text.Trim();
DataTable table = MainImpl.GetEmployeeList();
DataRow[] drRows = table.Select("UserName='" + userName + "' or UserCode='" + userName + "'");
if ((drRows == null) || (drRows.Count() < 1))
{
MessageUtil.Show(ResourceKeys.NameOrPasswordError);
return;
}
//找到多个操作员
if (drRows.Count() > 1)
{
MessageUtil.Show(ResourceKeys.DuplicatedNameError);
return;
}
DataRow drRow = drRows[0];
//DataRow drRow = table.Rows.Cast<DataRow>().FirstOrDefault(x => userName.Equals(x["UserName"] + ""));
if (drRow != null)
{
userCode = drRow["userCode"] + "";
userName = drRow["UserName"] + "";
}
else
{
userCode = "";
}
if (string.IsNullOrWhiteSpace(userCode))
{
MessageUtil.Show(ResourceKeys.UserNotFound);
return;
}
if (string.IsNullOrEmpty(cbBZ.SelectedItem + ""))
{
MessageUtil.Show("请选择班次.");
return;
}
if (string.IsNullOrEmpty(userName))
{
this.txtUserName.Focus();
MessageUtil.Show(ResourceKeys.UserNameNotNull);
return;
}
if (string.IsNullOrEmpty(this.cbCJ.SelectedItem + ""))
{
MessageUtil.Show("当前用户未设置车间,请先设置.");
return;
}
// 检查Mac地址
if (SystemInfo.Instance.MacEnabled)
{
int result = MainImpl.CheckMacAddress(ERPInfo.Instance.MacAddress, userCode);
if (result == 0)
{
MessageUtil.Show(ResourceKeys.LoginFault + ResourceKeys.UnKownMacAddress);
return;
}
if (result == -1)
{
MessageUtil.Show(ResourceKeys.LoginFault + ResourceKeys.UnKownMacAddressTable);
return;
}
}
WaitForm.ShowForm(ResourceKeys.Logining);
int loginResult = MainImpl.MesLogin(userCode, password, true);
switch (loginResult)
{
case 0: // 登录成功
case 2:
DataRow rowItem = BaseImpl.GetDataRowResult(string.Format("select * from P_employeeTab where loginaccount='{0}'", userCode));
if (rowItem == null)
{
MessageUtil.Show("工号错误!");
return;
}
string userId = rowItem["employeeid"] + "";
// 登录成功后调用
string msg = string.Empty;
int result = LoginAfter(userId, out msg);
if (result == -1)
{
MessageUtil.Show(msg);
return;
}
string filepath = string.Empty;
string paramstr = string.Empty;
// 记录本地数据
IniHelper.Write(MesLoginConfig, "CJ", this.cbCJ.SelectedItem + "");
IniHelper.Write(MesLoginConfig, "JT", this.cbJT.SelectedItem + "");
IniHelper.Write(MesLoginConfig, "BZ", this.cbBZ.SelectedItem + "");
IniHelper.Write(MesLoginConfig, "UserName", userCode);
// 设置皮肤
DBConfig.Instance.BCName = cbBZ.SelectedItem + "";
DBConfig.Instance.NoticeUserID = userId;
DBConfig.Instance.NoticeUserName = userCode;
DBConfig.Instance.UpdateSet = true;
DBConfig.Instance.SmallClient = false;
DBConfig.Instance.DataBook = cbLedger.Text;
DBConfig.Instance.WriteConfig();
userName = rowItem["EmployeeName"] + "";
string skinName = MainImpl.GetUserSkin(userId);
skinName = string.IsNullOrEmpty(skinName) ? ERPInfo.Instance.SkinName : skinName;
UserLookAndFeel.Default.SetSkinStyle(skinName);
ERPInfo.Instance.UserId = userId;
ERPInfo.Instance.UserName = userName;
ERPInfo.Instance.Password = SHAHelper.EncryptPassword(password);
ERPInfo.Instance.SkinName = skinName;
ERPInfo.Instance.AccountBook = cbLedger.Text;
DataRow workItem = this.mWorkTable.Rows.Cast<DataRow>().FirstOrDefault(x => (this.cbCJ.SelectedItem + "").Equals(x["mc"] + ""));
if (workItem != null)
{
ERPInfo.Instance.WorkModid = workItem["dllcoid"] + "";
ERPInfo.Instance.WorkNo = workItem["no"] + "";
}
ERPInfo.Instance.WorkCJ = this.cbCJ.SelectedItem + "";
ERPInfo.Instance.WorkJT = this.cbJT.SelectedItem + "";
ERPInfo.Instance.WorkBZ = this.cbBZ.SelectedItem + "";
this.SetDelphiDllParams(); // 设置调用delphi参数
if (!string.IsNullOrEmpty(msg))
{
// 返回Msg值:tipmsg=我是提示信息;filepath=ccc.lsp;params=daskd
string[] msgs = msg.Split(';');
if (msgs != null && msgs.Length > 2)
{
msg = msgs[0].Replace("tipmsg=", "");
filepath = msgs[1].Replace("filepath=", "");
paramstr = msgs[2].Replace("params=", "");
}
if (!string.IsNullOrEmpty(msg))
MessageUtil.Show(msg);
if (filepath.Contains(".dll"))
{
GetMsgParamters(paramstr);
}
if (filepath.Contains(".lsp"))
{
DelphiHelper.LoadDelphiDll(PubUtil.AbsolutelyLibPath + filepath, "", "", paramstr, "", 0, "");
}
}
bool isStartMain = true;
if (isStartMain)
{
// 检查自动升级
WaitForm.ShowForm(ResourceKeys.AutoUpdating);
//this.StartAutoUpdate();
//// 启动小平台
//if (chkClient.Checked)
//{
// this.StartSmallClient();
//}
this.DialogResult = DialogResult.OK;
this.Close();
}
break;
case 1: // 密码不正确
MessageUtil.Show(ResourceKeys.NameOrPasswordError);
break;
//case 2: // 已有此用户登录
// MessageUtil.Show(ResourceKeys.AlreadyLogin);
// break;
case -1: // 登录失败
default:
MessageUtil.Show(ResourceKeys.LoginFault);
break;
}
}
catch (Exception ex)
{
LogUtil.WriteError("登录出错!", ex);
//MessageUtil.Show("登录出错!" + ex);
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:调用弹出dll</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2020-04-14 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void GetMsgParamters(string msgs)
{
if (msgs.Contains("module="))
{
string[] paramters = msgs.Split('=');
if (paramters.Length != 2)
{
MessageUtil.Show(ResourceKeys.ProcNameSettingFault);
return;
}
string[] defaultParams = paramters[1].Split('^');
if (defaultParams.Length < 4)
{
MessageUtil.Show(ResourceKeys.ExcuteMoudleFail);
return;
}
string dllName = defaultParams[1];
string moduleTitle = defaultParams[2];
string saveState = defaultParams[3];
if ("lskj.pubadd3.dll".Equals(dllName) || "lskj.pubadd2.dll".Equals(dllName) || "lskj.pubadd4.dll".Equals(dllName))
dllName = "Lskj.PubAdd.dll";
List<string> paramList = new List<string>();
for (int i = 4; i < 14; i++)
{
paramList.Add(defaultParams.Length > i ? defaultParams[i] : "");
}
//执行dll
string[] str = {
moduleTitle,
ERPInfo.Instance.UserId,
ERPInfo.Instance.UserName,
"1",
ERPInfo.Instance.WorkModid,
paramList[0],
paramList[1],
paramList[2],
paramList[3],
paramList[4],
paramList[5],
paramList[6],
paramList[7],
paramList[8],
paramList[9],
"",
"",
saveState
};
IForm form = FormHelper.LoadDllForm(dllName, str);
if (form == null)
{
MessageUtil.Show(ResourceKeys.DyncmicDllNotFount);
return;
}
if (form.SubForm == null)
{
MessageUtil.Show(ResourceKeys.DyncmicDllInitFault);
return;
}
form.SubForm.WindowState = FormWindowState.Normal;
form.SubForm.StartPosition = FormStartPosition.CenterScreen;
form.SubForm.Text = moduleTitle;
DialogResult dr = form.SubForm.ShowDialog();
}
}
/// <summary>
/// <para>说明:窗口加载</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-11-12 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnLoad(object sender, EventArgs e)
{
try
{
string iniPath = Path.Combine(new string[] { PubUtil.AbsolutelyPath, MesLoginConfig });
if (!File.Exists(iniPath))
{
File.Create(iniPath);
}
this.BackgroundImage = getBitmap();
this.cbBZ.SelectedIndex = 0;
this.SetUsers();
this.SetLedgers();
this.mUserTable = MainImpl.GetEmployeeList();
this.SetCJ();
this.SetJT();
this.SetBZ();
this.SetLocalCongfig();
if (string.IsNullOrEmpty(this.txtUserName.Text))
{
this.txtUserName.Focus();
}
else
{
this.txtPassword.Focus();
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// 获取本地资源文件
/// </summary>
/// <param name="mapEnum"></param>
/// <returns></returns>
public static Bitmap getBitmap()
{
Bitmap bitmap = null;
try
{
FileStream fs = File.OpenRead(PubUtil.BitMapPath + Logobg); //OpenRead
int filelength = (int)fs.Length; //获得文件长度
Byte[] image = new Byte[filelength]; //建立一个字节数组
fs.Read(image, 0, filelength); //按字节流读取
Image result = Image.FromStream(fs);
fs.Close();
bitmap = new Bitmap(result);
}
catch (Exception ex)
{
bitmap = Lskj.ProductPlatform2.Properties.Resources.mesbj;
}
return bitmap;
}
/// <summary>
/// <para>说明:设置系统用户</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2020-04-13 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void SetUsers()
{
BaseImpl.HasExistsColumn("P_SystemTab", "LoginPopupFlag", "int");
// 设置登录用户信息
_userTable = MainImpl.GetEmployeeList();
txtUserName.ValueField = txtUserName.ValueMember = "UserCode";
txtUserName.TextMember = "UserName";
txtUserName.SourceSQL = "select EmployeeId UserId,LoginAccount UserCode,EmployeeName UserName from P_EmployeeTab WHERE sign=0 and UseFlag=1";
txtUserName.DataSource = _userTable;
txtUserName.AutoShowPopup = "1".Equals(BaseImpl.GetResult("SELECT LoginPopupFlag FROM P_SystemTab") + "");
DataRow[] rowItems = _userTable.Select(" UserName = '" + DBConfig.Instance.LoginName + "'");
if (rowItems != null && rowItems.Length > 0)
{
txtUserName.EditValue = rowItems[0][txtUserName.ValueField] + "";
}
}
/// <summary>
/// <para>说明:服务器设置</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-11-12 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnSettingClick(object sender, EventArgs e)
{
try
{
FrmConfig config = new FrmConfig();
DialogResult result = config.ShowDialog();
if (result == DialogResult.OK)
{
SystemInfo.RefreshSystemParam();
}
}
catch (Exception ex)
{
//MessageUtil.Show(ex);
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:登陆</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-11-12 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnLoginClick(object sender, EventArgs e)
{
try
{
this.StartLogin();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:键盘按下</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-11-12 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="KeyEventArgs"/> instance containing the event data.</param>
void OnPasswordKeyDown(object sender, KeyEventArgs e)
{
try
{
if (e.KeyCode == Keys.Enter)
{
this.StartLogin();
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:失去焦点获取车间</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-07-29 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnTxtUserNameLostFocus(object sender, EventArgs e)
{
try
{
string userCode = this.txtUserName.EditValue + "";
string userName = this.txtUserName.Text.Trim();
if (!string.IsNullOrEmpty(userCode))
{
DataRow rowItem = BaseImpl.GetDataRowResult(string.Format("select * from P_employeeTab where loginaccount='{0}'", userCode));
string userId = rowItem["employeeid"] + "";
DataTable Logindt = SqlHelper.ExecuteDataTable(string.Format(" exec {0} {1},'{2}' ", MesUserInputBefore, userId, userName));
DataRow LoginRow = Logindt.Rows.Count > 0 ? Logindt.Rows[0] : null;
ERPInfo.Instance.ClassName = string.Empty;
if (LoginRow == null) return;
this.cbCJ.SelectedItem = LoginRow["mes_ws_Name"] + "";
this.cbJT.SelectedItem = LoginRow["JtName"] + "";
this.cbBZ.SelectedItem = LoginRow["ClassBc"] + "";
ERPInfo.Instance.ClassName = LoginRow["ClassName"] + "";
}
}
catch (Exception)
{
}
}
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}
public int LoginAfter(string opertaorid, out string tipMsg)
{
try
{
SqlParameter pMsg = new SqlParameter("@msg", SqlDbType.VarChar, 2000);
pMsg.Direction = ParameterDirection.Output;
SqlParameter returnValue = new SqlParameter("@return", SqlDbType.Int, 4);
returnValue.Direction = ParameterDirection.ReturnValue;
SqlParameter[] param =
{
new SqlParameter("@operatorid",SqlDbType.VarChar),
new SqlParameter("@TypeID ",SqlDbType.Int),
pMsg,
returnValue
};
param[0].Value = opertaorid;
param[1].Value = cbBZ.SelectedIndex;
SqlHelper.ExecuteDataSet(CommandType.StoredProcedure, "P_Login_AfterPr", "P_Login_AfterPr", param);
tipMsg = pMsg.Value + "";
return Convert.ToInt32(returnValue.Value + "");
}
catch (Exception)
{
tipMsg = "";
return 0;
}
}
private void cbCJ_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
SetJT();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// 机台值改变时改变操作人
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void JTSelectedIndexChanged(object sender, EventArgs e)
{
try
{
ComboBox comboBox = sender as ComboBox;
DataRow comRow = MainImpl.JTGetStaff(comboBox.SelectedItem+"");
if (comRow != null) {
DataRow[] rowItems = _userTable.Select(" UserName = '" + comRow["JzName"] + "'");
if (rowItems != null && rowItems.Length > 0)
{
txtUserName.EditValue = rowItems[0][txtUserName.ValueField] + "";
}
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
}
}
@@ -0,0 +1,133 @@
<?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="btnClose.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFvSURBVEhLY6AU/P//nySMAYTaL/gC8T4g/gzE/8nE
L4F4ORBr4rUQqKBFsP7wSy7PwulMglJ5QKE0cjCLnF4ZT0THCqGWM++AZvpgtRAkAbTsBbOwbAGQi9Ug
UjG7eUibUOs5kKXi2CzcB/IZkIlVM7mYL3PRfqDZ9dgs/ERJMOLCXJ4F04Fmr8dmIYiHVRMlmMM6ugto
9mGSLFQ3t61o2XXugqyGbjG6HEgMKHcRpAZdDoTJsrB11/mLs299+t9/6sFTZEtBbJAYSA5kKbIeGCbL
QjktfbjBMEuRLUN3CDImy0IQRrZ0wumHL0CYkGUgTLaFIAyyFGYRzGJ8loEwRRaCDKebhXQNUmyJBpsY
Nr1kWYgrWyBbStVsAcrUIEux+QJkKdUzPiUYn4V0L7zpXj35CtYepFUFLIFhIQgAJRBNDAEJajQx3gPN
xN7EgAGgAj8gBjWivgAxtgYSMRjWiNJCtgyrhaQCdAPx4/8MAG6r9s+X5DldAAAAAElFTkSuQmCC
</value>
</data>
</root>
+899
View File
@@ -0,0 +1,899 @@
namespace Lskj.ProductPlatform2
{
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.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage();
this.xtraTabPage3 = new DevExpress.XtraTab.XtraTabPage();
this.xtraTabPage4 = new DevExpress.XtraTab.XtraTabPage();
this.xtraTabPage5 = new DevExpress.XtraTab.XtraTabPage();
this.xtraTabPage6 = new DevExpress.XtraTab.XtraTabPage();
this.panelControl9 = new DevExpress.XtraEditors.PanelControl();
this.panelControl12 = new DevExpress.XtraEditors.PanelControl();
this.panelControl10 = new DevExpress.XtraEditors.PanelControl();
this.panelControl3 = new DevExpress.XtraEditors.PanelControl();
this.panelControl5 = new DevExpress.XtraEditors.PanelControl();
this.panelControl2 = new DevExpress.XtraEditors.PanelControl();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.panelControl15 = new DevExpress.XtraEditors.PanelControl();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.gcMain = new Lskj.Control.GridControlEx();
this.gcDetail = new Lskj.Control.GridControlEx();
this.panel2 = new System.Windows.Forms.Panel();
this.panelControl14 = new DevExpress.XtraEditors.PanelControl();
this.gcRight = new Lskj.Control.GridControlEx();
this.panelControl17 = new DevExpress.XtraEditors.PanelControl();
this.panel3 = new System.Windows.Forms.Panel();
this.panel1 = new System.Windows.Forms.Panel();
this.pageBar = new Lskj.ProductPlatform2.PageBar();
this.panelControl13 = new DevExpress.XtraEditors.PanelControl();
this.butMachineSwitch = new System.Windows.Forms.Button();
this.btnZX = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.panelControl11 = new DevExpress.XtraEditors.PanelControl();
this.gcAttach = new Lskj.Control.GridControlEx();
this.pMenu = new DevExpress.XtraBars.PopupMenu(this.components);
this.barManager1 = new DevExpress.XtraBars.BarManager(this.components);
this.barDockControl1 = new DevExpress.XtraBars.BarDockControl();
this.barDockControl2 = new DevExpress.XtraBars.BarDockControl();
this.barDockControl3 = new DevExpress.XtraBars.BarDockControl();
this.barDockControl5 = new DevExpress.XtraBars.BarDockControl();
this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
this.panelControl16 = new DevExpress.XtraEditors.PanelControl();
this.noticeContent = new System.Windows.Forms.Label();
this.panelControl8 = new DevExpress.XtraEditors.PanelControl();
this.lblTitle = new System.Windows.Forms.Label();
this.panelControl7 = new DevExpress.XtraEditors.PanelControl();
this.label3 = new System.Windows.Forms.Label();
this.lblDate = new System.Windows.Forms.Label();
this.lblUserName = new System.Windows.Forms.Label();
this.panelControl6 = new DevExpress.XtraEditors.PanelControl();
this.label2 = new System.Windows.Forms.Label();
this.lblDayName = new System.Windows.Forms.Label();
this.timer2 = new System.Windows.Forms.Timer(this.components);
((System.ComponentModel.ISupportInitialize)(this.panelControl9)).BeginInit();
this.panelControl9.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl12)).BeginInit();
this.panelControl12.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl10)).BeginInit();
this.panelControl10.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl3)).BeginInit();
this.panelControl3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl5)).BeginInit();
this.panelControl5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
this.panelControl2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl15)).BeginInit();
this.panelControl15.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
this.splitContainer2.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl14)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl17)).BeginInit();
this.panelControl17.SuspendLayout();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl13)).BeginInit();
this.panelControl13.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl11)).BeginInit();
this.panelControl11.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pMenu)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
this.panelControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl16)).BeginInit();
this.panelControl16.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl8)).BeginInit();
this.panelControl8.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl7)).BeginInit();
this.panelControl7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl6)).BeginInit();
this.panelControl6.SuspendLayout();
this.SuspendLayout();
//
// xtraTabPage2
//
this.xtraTabPage2.Name = "xtraTabPage2";
this.xtraTabPage2.Size = new System.Drawing.Size(0, 0);
this.xtraTabPage2.Text = "xtraTabPage2";
//
// xtraTabPage3
//
this.xtraTabPage3.Name = "xtraTabPage3";
this.xtraTabPage3.Size = new System.Drawing.Size(0, 0);
this.xtraTabPage3.Text = "xtraTabPage3";
//
// xtraTabPage4
//
this.xtraTabPage4.Name = "xtraTabPage4";
this.xtraTabPage4.Size = new System.Drawing.Size(1244, 573);
this.xtraTabPage4.Text = "xtraTabPage4";
//
// xtraTabPage5
//
this.xtraTabPage5.Name = "xtraTabPage5";
this.xtraTabPage5.Size = new System.Drawing.Size(0, 0);
this.xtraTabPage5.Text = "xtraTabPage5";
//
// xtraTabPage6
//
this.xtraTabPage6.Name = "xtraTabPage6";
this.xtraTabPage6.Size = new System.Drawing.Size(0, 0);
this.xtraTabPage6.Text = "xtraTabPage6";
//
// panelControl9
//
this.panelControl9.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl9.Controls.Add(this.panelControl12);
this.panelControl9.Controls.Add(this.panelControl11);
this.panelControl9.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl9.Location = new System.Drawing.Point(0, 54);
this.panelControl9.Name = "panelControl9";
this.panelControl9.Size = new System.Drawing.Size(1386, 708);
this.panelControl9.TabIndex = 8;
//
// panelControl12
//
this.panelControl12.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl12.Controls.Add(this.panelControl10);
this.panelControl12.Controls.Add(this.panelControl13);
this.panelControl12.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl12.Location = new System.Drawing.Point(0, 0);
this.panelControl12.Name = "panelControl12";
this.panelControl12.Size = new System.Drawing.Size(1386, 708);
this.panelControl12.TabIndex = 10;
//
// panelControl10
//
this.panelControl10.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl10.Controls.Add(this.panelControl3);
this.panelControl10.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl10.Location = new System.Drawing.Point(0, 0);
this.panelControl10.Name = "panelControl10";
this.panelControl10.Size = new System.Drawing.Size(1386, 648);
this.panelControl10.TabIndex = 9;
//
// panelControl3
//
this.panelControl3.Controls.Add(this.panelControl5);
this.panelControl3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl3.Location = new System.Drawing.Point(0, 0);
this.panelControl3.Name = "panelControl3";
this.panelControl3.Size = new System.Drawing.Size(1386, 648);
this.panelControl3.TabIndex = 2;
//
// panelControl5
//
this.panelControl5.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl5.Controls.Add(this.panelControl2);
this.panelControl5.Controls.Add(this.panelControl17);
this.panelControl5.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl5.Location = new System.Drawing.Point(2, 2);
this.panelControl5.Name = "panelControl5";
this.panelControl5.Size = new System.Drawing.Size(1382, 644);
this.panelControl5.TabIndex = 4;
//
// panelControl2
//
this.panelControl2.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl2.Controls.Add(this.splitContainer1);
this.panelControl2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl2.Location = new System.Drawing.Point(0, 0);
this.panelControl2.Name = "panelControl2";
this.panelControl2.Size = new System.Drawing.Size(1128, 644);
this.panelControl2.TabIndex = 47;
//
// splitContainer1
//
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.panelControl15);
this.splitContainer1.Panel1.Controls.Add(this.panel2);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.gcRight);
this.splitContainer1.Size = new System.Drawing.Size(1128, 644);
this.splitContainer1.SplitterDistance = 1046;
this.splitContainer1.SplitterWidth = 20;
this.splitContainer1.TabIndex = 3;
//
// panelControl15
//
this.panelControl15.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl15.Controls.Add(this.splitContainer2);
this.panelControl15.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl15.Location = new System.Drawing.Point(0, 41);
this.panelControl15.Name = "panelControl15";
this.panelControl15.Size = new System.Drawing.Size(1046, 603);
this.panelControl15.TabIndex = 7;
//
// splitContainer2
//
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer2.Location = new System.Drawing.Point(0, 0);
this.splitContainer2.Name = "splitContainer2";
this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer2.Panel1
//
this.splitContainer2.Panel1.Controls.Add(this.gcMain);
this.splitContainer2.Panel1MinSize = 0;
//
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.Controls.Add(this.gcDetail);
this.splitContainer2.Panel2MinSize = 0;
this.splitContainer2.Size = new System.Drawing.Size(1046, 603);
this.splitContainer2.SplitterDistance = 287;
this.splitContainer2.SplitterWidth = 20;
this.splitContainer2.TabIndex = 3;
//
// gcMain
//
this.gcMain.AdapterObj = null;
this.gcMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.gcMain.Location = new System.Drawing.Point(0, 0);
this.gcMain.Name = "gcMain";
this.gcMain.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
this.gcMain.Size = new System.Drawing.Size(1046, 287);
this.gcMain.TabIndex = 1;
//
// gcDetail
//
this.gcDetail.AdapterObj = null;
this.gcDetail.Dock = System.Windows.Forms.DockStyle.Fill;
this.gcDetail.Location = new System.Drawing.Point(0, 0);
this.gcDetail.Name = "gcDetail";
this.gcDetail.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
this.gcDetail.Size = new System.Drawing.Size(1046, 296);
this.gcDetail.TabIndex = 2;
//
// panel2
//
this.panel2.Controls.Add(this.panelControl14);
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(1046, 41);
this.panel2.TabIndex = 6;
//
// panelControl14
//
this.panelControl14.Appearance.BackColor = System.Drawing.Color.Transparent;
this.panelControl14.Appearance.Options.UseBackColor = true;
this.panelControl14.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl14.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl14.Location = new System.Drawing.Point(0, 0);
this.panelControl14.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.UltraFlat;
this.panelControl14.Name = "panelControl14";
this.panelControl14.Size = new System.Drawing.Size(1046, 41);
this.panelControl14.TabIndex = 5;
//
// gcRight
//
this.gcRight.AdapterObj = null;
this.gcRight.Dock = System.Windows.Forms.DockStyle.Fill;
this.gcRight.Location = new System.Drawing.Point(0, 0);
this.gcRight.Name = "gcRight";
this.gcRight.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
this.gcRight.Size = new System.Drawing.Size(62, 644);
this.gcRight.TabIndex = 2;
//
// panelControl17
//
this.panelControl17.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl17.Controls.Add(this.panel3);
this.panelControl17.Controls.Add(this.panel1);
this.panelControl17.Dock = System.Windows.Forms.DockStyle.Right;
this.panelControl17.Location = new System.Drawing.Point(1128, 0);
this.panelControl17.Name = "panelControl17";
this.panelControl17.Size = new System.Drawing.Size(254, 644);
this.panelControl17.TabIndex = 46;
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(47)))), ((int)(((byte)(114)))));
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.ForeColor = System.Drawing.Color.White;
this.panel3.Location = new System.Drawing.Point(0, 390);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(254, 254);
this.panel3.TabIndex = 1;
//
// panel1
//
this.panel1.Controls.Add(this.pageBar);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(254, 390);
this.panel1.TabIndex = 0;
//
// pageBar
//
this.pageBar.Dock = System.Windows.Forms.DockStyle.Fill;
this.pageBar.Location = new System.Drawing.Point(0, 0);
this.pageBar.Name = "pageBar";
this.pageBar.Size = new System.Drawing.Size(254, 390);
this.pageBar.TabIndex = 0;
//
// panelControl13
//
this.panelControl13.Appearance.BackColor = System.Drawing.Color.White;
this.panelControl13.Appearance.Options.UseBackColor = true;
this.panelControl13.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl13.Controls.Add(this.butMachineSwitch);
this.panelControl13.Controls.Add(this.btnZX);
this.panelControl13.Controls.Add(this.button8);
this.panelControl13.Controls.Add(this.button6);
this.panelControl13.Controls.Add(this.button5);
this.panelControl13.Controls.Add(this.button4);
this.panelControl13.Controls.Add(this.button3);
this.panelControl13.Controls.Add(this.button2);
this.panelControl13.Controls.Add(this.label1);
this.panelControl13.Controls.Add(this.button1);
this.panelControl13.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panelControl13.Location = new System.Drawing.Point(0, 648);
this.panelControl13.Name = "panelControl13";
this.panelControl13.Size = new System.Drawing.Size(1386, 60);
this.panelControl13.TabIndex = 7;
//
// butMachineSwitch
//
this.butMachineSwitch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.butMachineSwitch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(47)))), ((int)(((byte)(114)))));
this.butMachineSwitch.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(227)))), ((int)(((byte)(249)))));
this.butMachineSwitch.FlatAppearance.BorderSize = 0;
this.butMachineSwitch.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.butMachineSwitch.Font = new System.Drawing.Font("微软雅黑", 20F);
this.butMachineSwitch.ForeColor = System.Drawing.Color.White;
this.butMachineSwitch.Location = new System.Drawing.Point(863, 5);
this.butMachineSwitch.Name = "butMachineSwitch";
this.butMachineSwitch.Size = new System.Drawing.Size(175, 50);
this.butMachineSwitch.TabIndex = 49;
this.butMachineSwitch.Text = "切换机台";
this.butMachineSwitch.UseVisualStyleBackColor = false;
this.butMachineSwitch.Click += new System.EventHandler(this.butMachineSwitch_Click);
//
// btnZX
//
this.btnZX.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnZX.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(47)))), ((int)(((byte)(114)))));
this.btnZX.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(227)))), ((int)(((byte)(249)))));
this.btnZX.FlatAppearance.BorderSize = 0;
this.btnZX.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnZX.Font = new System.Drawing.Font("微软雅黑", 20F);
this.btnZX.ForeColor = System.Drawing.Color.White;
this.btnZX.Location = new System.Drawing.Point(1044, 6);
this.btnZX.Name = "btnZX";
this.btnZX.Size = new System.Drawing.Size(118, 50);
this.btnZX.TabIndex = 46;
this.btnZX.Text = "注销";
this.btnZX.UseVisualStyleBackColor = false;
this.btnZX.Click += new System.EventHandler(this.btnZX_Click);
//
// button8
//
this.button8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(47)))), ((int)(((byte)(114)))));
this.button8.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(227)))), ((int)(((byte)(249)))));
this.button8.FlatAppearance.BorderSize = 0;
this.button8.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button8.Font = new System.Drawing.Font("微软雅黑", 20F);
this.button8.ForeColor = System.Drawing.Color.White;
this.button8.Location = new System.Drawing.Point(854, 5);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(141, 50);
this.button8.TabIndex = 45;
this.button8.Text = "帮助文档";
this.button8.UseVisualStyleBackColor = false;
this.button8.Click += new System.EventHandler(this.button8_Click);
//
// button6
//
this.button6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.button6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(47)))), ((int)(((byte)(114)))));
this.button6.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(227)))), ((int)(((byte)(249)))));
this.button6.FlatAppearance.BorderSize = 0;
this.button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button6.Font = new System.Drawing.Font("微软雅黑", 20F);
this.button6.ForeColor = System.Drawing.Color.White;
this.button6.Location = new System.Drawing.Point(1168, 5);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(129, 50);
this.button6.TabIndex = 44;
this.button6.Text = "退出";
this.button6.UseVisualStyleBackColor = false;
this.button6.Click += new System.EventHandler(this.simpleButton3_Click);
//
// button5
//
this.button5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(47)))), ((int)(((byte)(114)))));
this.button5.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(227)))), ((int)(((byte)(249)))));
this.button5.FlatAppearance.BorderSize = 0;
this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button5.Font = new System.Drawing.Font("微软雅黑", 20F);
this.button5.ForeColor = System.Drawing.Color.White;
this.button5.Location = new System.Drawing.Point(736, 5);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(115, 50);
this.button5.TabIndex = 43;
this.button5.Text = "刷新";
this.button5.UseVisualStyleBackColor = false;
this.button5.Click += new System.EventHandler(this.simpleButton2_Click);
//
// button4
//
this.button4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(47)))), ((int)(((byte)(114)))));
this.button4.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(227)))), ((int)(((byte)(249)))));
this.button4.FlatAppearance.BorderSize = 0;
this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button4.Font = new System.Drawing.Font("微软雅黑", 20F);
this.button4.ForeColor = System.Drawing.Color.White;
this.button4.Location = new System.Drawing.Point(618, 5);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(115, 50);
this.button4.TabIndex = 42;
this.button4.Text = "末页";
this.button4.UseVisualStyleBackColor = false;
this.button4.Click += new System.EventHandler(this.simpleButton25_Click);
//
// button3
//
this.button3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(47)))), ((int)(((byte)(114)))));
this.button3.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(227)))), ((int)(((byte)(249)))));
this.button3.FlatAppearance.BorderSize = 0;
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button3.Font = new System.Drawing.Font("微软雅黑", 20F);
this.button3.ForeColor = System.Drawing.Color.White;
this.button3.Location = new System.Drawing.Point(500, 5);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(115, 50);
this.button3.TabIndex = 41;
this.button3.Text = "下一页";
this.button3.UseVisualStyleBackColor = false;
this.button3.Click += new System.EventHandler(this.simpleButton24_Click);
//
// button2
//
this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(47)))), ((int)(((byte)(114)))));
this.button2.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(227)))), ((int)(((byte)(249)))));
this.button2.FlatAppearance.BorderSize = 0;
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button2.Font = new System.Drawing.Font("微软雅黑", 20F);
this.button2.ForeColor = System.Drawing.Color.White;
this.button2.Location = new System.Drawing.Point(382, 5);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(115, 50);
this.button2.TabIndex = 40;
this.button2.Text = "上一页";
this.button2.UseVisualStyleBackColor = false;
this.button2.Click += new System.EventHandler(this.simpleButton23_Click);
//
// label1
//
this.label1.BackColor = System.Drawing.Color.White;
this.label1.Dock = System.Windows.Forms.DockStyle.Left;
this.label1.Font = new System.Drawing.Font("宋体", 24F);
this.label1.ForeColor = System.Drawing.Color.Black;
this.label1.Location = new System.Drawing.Point(0, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(258, 60);
this.label1.TabIndex = 39;
this.label1.Text = "第1页,共1页";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// button1
//
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(47)))), ((int)(((byte)(114)))));
this.button1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(227)))), ((int)(((byte)(249)))));
this.button1.FlatAppearance.BorderSize = 0;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("微软雅黑", 20F);
this.button1.ForeColor = System.Drawing.Color.White;
this.button1.Location = new System.Drawing.Point(264, 5);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(115, 50);
this.button1.TabIndex = 11;
this.button1.Text = "首页";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.simpleButton22_Click);
//
// panelControl11
//
this.panelControl11.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl11.Controls.Add(this.gcAttach);
this.panelControl11.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl11.Location = new System.Drawing.Point(0, 0);
this.panelControl11.Name = "panelControl11";
this.panelControl11.Size = new System.Drawing.Size(1386, 708);
this.panelControl11.TabIndex = 9;
//
// gcAttach
//
this.gcAttach.AdapterObj = null;
this.gcAttach.Dock = System.Windows.Forms.DockStyle.Fill;
this.gcAttach.Location = new System.Drawing.Point(0, 0);
this.gcAttach.Name = "gcAttach";
this.gcAttach.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
this.gcAttach.Size = new System.Drawing.Size(1386, 708);
this.gcAttach.TabIndex = 2;
//
// pMenu
//
this.pMenu.Manager = this.barManager1;
this.pMenu.Name = "pMenu";
//
// barManager1
//
this.barManager1.DockControls.Add(this.barDockControl1);
this.barManager1.DockControls.Add(this.barDockControl2);
this.barManager1.DockControls.Add(this.barDockControl3);
this.barManager1.DockControls.Add(this.barDockControl5);
this.barManager1.Form = this;
this.barManager1.MaxItemId = 0;
//
// barDockControl1
//
this.barDockControl1.CausesValidation = false;
this.barDockControl1.Dock = System.Windows.Forms.DockStyle.Top;
this.barDockControl1.Location = new System.Drawing.Point(0, 0);
this.barDockControl1.Size = new System.Drawing.Size(1386, 0);
//
// barDockControl2
//
this.barDockControl2.CausesValidation = false;
this.barDockControl2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.barDockControl2.Location = new System.Drawing.Point(0, 762);
this.barDockControl2.Size = new System.Drawing.Size(1386, 0);
//
// barDockControl3
//
this.barDockControl3.CausesValidation = false;
this.barDockControl3.Dock = System.Windows.Forms.DockStyle.Left;
this.barDockControl3.Location = new System.Drawing.Point(0, 0);
this.barDockControl3.Size = new System.Drawing.Size(0, 762);
//
// barDockControl5
//
this.barDockControl5.CausesValidation = false;
this.barDockControl5.Dock = System.Windows.Forms.DockStyle.Right;
this.barDockControl5.Location = new System.Drawing.Point(1386, 0);
this.barDockControl5.Size = new System.Drawing.Size(0, 762);
//
// xtraTabPage1
//
this.xtraTabPage1.Image = ((System.Drawing.Image)(resources.GetObject("xtraTabPage1.Image")));
this.xtraTabPage1.Name = "xtraTabPage1";
this.xtraTabPage1.Size = new System.Drawing.Size(1149, 596);
this.xtraTabPage1.Text = "工资设置";
//
// timer1
//
this.timer1.Interval = 1000;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// panelControl1
//
this.panelControl1.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(185)))), ((int)(((byte)(239)))));
this.panelControl1.Appearance.Options.UseBackColor = true;
this.panelControl1.Controls.Add(this.panelControl16);
this.panelControl1.Controls.Add(this.panelControl8);
this.panelControl1.Controls.Add(this.panelControl7);
this.panelControl1.Controls.Add(this.panelControl6);
this.panelControl1.Dock = System.Windows.Forms.DockStyle.Top;
this.panelControl1.Location = new System.Drawing.Point(0, 0);
this.panelControl1.Name = "panelControl1";
this.panelControl1.Size = new System.Drawing.Size(1386, 54);
this.panelControl1.TabIndex = 0;
//
// panelControl16
//
this.panelControl16.Appearance.Options.UseTextOptions = true;
this.panelControl16.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.panelControl16.AutoSize = true;
this.panelControl16.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl16.Controls.Add(this.noticeContent);
this.panelControl16.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl16.Location = new System.Drawing.Point(783, 2);
this.panelControl16.Name = "panelControl16";
this.panelControl16.Size = new System.Drawing.Size(326, 50);
this.panelControl16.TabIndex = 8;
//
// noticeContent
//
this.noticeContent.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(55)))), ((int)(((byte)(105)))));
this.noticeContent.Dock = System.Windows.Forms.DockStyle.Fill;
this.noticeContent.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Bold);
this.noticeContent.ForeColor = System.Drawing.Color.White;
this.noticeContent.Location = new System.Drawing.Point(0, 0);
this.noticeContent.Name = "noticeContent";
this.noticeContent.Size = new System.Drawing.Size(326, 50);
this.noticeContent.TabIndex = 4;
this.noticeContent.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// panelControl8
//
this.panelControl8.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl8.Controls.Add(this.lblTitle);
this.panelControl8.Dock = System.Windows.Forms.DockStyle.Right;
this.panelControl8.Location = new System.Drawing.Point(1109, 2);
this.panelControl8.Name = "panelControl8";
this.panelControl8.Size = new System.Drawing.Size(80, 50);
this.panelControl8.TabIndex = 7;
//
// lblTitle
//
this.lblTitle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(55)))), ((int)(((byte)(105)))));
this.lblTitle.Dock = System.Windows.Forms.DockStyle.Fill;
this.lblTitle.Font = new System.Drawing.Font("宋体", 24F, System.Drawing.FontStyle.Bold);
this.lblTitle.ForeColor = System.Drawing.Color.White;
this.lblTitle.Location = new System.Drawing.Point(0, 0);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new System.Drawing.Size(80, 50);
this.lblTitle.TabIndex = 3;
this.lblTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// panelControl7
//
this.panelControl7.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(55)))), ((int)(((byte)(105)))));
this.panelControl7.Appearance.Options.UseBackColor = true;
this.panelControl7.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl7.Controls.Add(this.label3);
this.panelControl7.Controls.Add(this.lblDate);
this.panelControl7.Controls.Add(this.lblUserName);
this.panelControl7.Dock = System.Windows.Forms.DockStyle.Right;
this.panelControl7.Location = new System.Drawing.Point(1189, 2);
this.panelControl7.Name = "panelControl7";
this.panelControl7.Size = new System.Drawing.Size(195, 50);
this.panelControl7.TabIndex = 6;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(103, 7);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(89, 19);
this.label3.TabIndex = 2;
this.label3.Text = "欢迎您!";
//
// lblDate
//
this.lblDate.AutoSize = true;
this.lblDate.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblDate.ForeColor = System.Drawing.Color.White;
this.lblDate.Location = new System.Drawing.Point(28, 33);
this.lblDate.Name = "lblDate";
this.lblDate.Size = new System.Drawing.Size(75, 12);
this.lblDate.TabIndex = 0;
this.lblDate.Text = "2018-11-07";
//
// lblUserName
//
this.lblUserName.AutoSize = true;
this.lblUserName.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblUserName.ForeColor = System.Drawing.Color.White;
this.lblUserName.Location = new System.Drawing.Point(26, 7);
this.lblUserName.Name = "lblUserName";
this.lblUserName.Size = new System.Drawing.Size(69, 19);
this.lblUserName.TabIndex = 1;
this.lblUserName.Text = "管理员";
//
// panelControl6
//
this.panelControl6.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(55)))), ((int)(((byte)(105)))));
this.panelControl6.Appearance.Options.UseBackColor = true;
this.panelControl6.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl6.Controls.Add(this.label2);
this.panelControl6.Controls.Add(this.lblDayName);
this.panelControl6.Dock = System.Windows.Forms.DockStyle.Left;
this.panelControl6.Location = new System.Drawing.Point(2, 2);
this.panelControl6.Name = "panelControl6";
this.panelControl6.Size = new System.Drawing.Size(781, 50);
this.panelControl6.TabIndex = 5;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 20F, System.Drawing.FontStyle.Bold);
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(10, 12);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(124, 27);
this.label2.TabIndex = 11;
this.label2.Text = "客户名称";
//
// lblDayName
//
this.lblDayName.AutoSize = true;
this.lblDayName.Font = new System.Drawing.Font("宋体", 20F, System.Drawing.FontStyle.Bold);
this.lblDayName.ForeColor = System.Drawing.Color.White;
this.lblDayName.Location = new System.Drawing.Point(410, 12);
this.lblDayName.Name = "lblDayName";
this.lblDayName.Size = new System.Drawing.Size(68, 27);
this.lblDayName.TabIndex = 2;
this.lblDayName.Text = "白班";
//
// timer2
//
this.timer2.Interval = 1000;
this.timer2.Tick += new System.EventHandler(this.UpdateTime);
//
// FrmMain
//
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
this.Appearance.Options.UseBackColor = true;
this.Appearance.Options.UseFont = true;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(1386, 762);
this.Controls.Add(this.panelControl9);
this.Controls.Add(this.panelControl1);
this.Controls.Add(this.barDockControl3);
this.Controls.Add(this.barDockControl5);
this.Controls.Add(this.barDockControl2);
this.Controls.Add(this.barDockControl1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "FrmMain";
this.Text = "生产平台";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.OnLoad);
((System.ComponentModel.ISupportInitialize)(this.panelControl9)).EndInit();
this.panelControl9.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl12)).EndInit();
this.panelControl12.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl10)).EndInit();
this.panelControl10.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl3)).EndInit();
this.panelControl3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl5)).EndInit();
this.panelControl5.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
this.panelControl2.ResumeLayout(false);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl15)).EndInit();
this.panelControl15.ResumeLayout(false);
this.splitContainer2.Panel1.ResumeLayout(false);
this.splitContainer2.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
this.splitContainer2.ResumeLayout(false);
this.panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl14)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl17)).EndInit();
this.panelControl17.ResumeLayout(false);
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl13)).EndInit();
this.panelControl13.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl11)).EndInit();
this.panelControl11.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pMenu)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
this.panelControl1.ResumeLayout(false);
this.panelControl1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl16)).EndInit();
this.panelControl16.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl8)).EndInit();
this.panelControl8.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl7)).EndInit();
this.panelControl7.ResumeLayout(false);
this.panelControl7.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl6)).EndInit();
this.panelControl6.ResumeLayout(false);
this.panelControl6.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private DevExpress.XtraTab.XtraTabPage xtraTabPage1;
private DevExpress.XtraTab.XtraTabPage xtraTabPage2;
private DevExpress.XtraTab.XtraTabPage xtraTabPage3;
private DevExpress.XtraTab.XtraTabPage xtraTabPage4;
private DevExpress.XtraTab.XtraTabPage xtraTabPage5;
private DevExpress.XtraTab.XtraTabPage xtraTabPage6;
private DevExpress.XtraEditors.PanelControl panelControl9;
private DevExpress.XtraEditors.PanelControl panelControl12;
private DevExpress.XtraEditors.PanelControl panelControl10;
private DevExpress.XtraEditors.PanelControl panelControl3;
private DevExpress.XtraEditors.PanelControl panelControl11;
private Control.GridControlEx gcAttach;
private DevExpress.XtraEditors.PanelControl panelControl13;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Button btnZX;
private DevExpress.XtraBars.PopupMenu pMenu;
private DevExpress.XtraBars.BarManager barManager1;
private DevExpress.XtraBars.BarDockControl barDockControl1;
private DevExpress.XtraBars.BarDockControl barDockControl2;
private DevExpress.XtraBars.BarDockControl barDockControl3;
private DevExpress.XtraBars.BarDockControl barDockControl5;
private System.Windows.Forms.Label label1;
private DevExpress.XtraEditors.PanelControl panelControl5;
private DevExpress.XtraEditors.PanelControl panelControl2;
private DevExpress.XtraEditors.PanelControl panelControl17;
private System.Windows.Forms.SplitContainer splitContainer1;
private DevExpress.XtraEditors.PanelControl panelControl15;
private System.Windows.Forms.SplitContainer splitContainer2;
private Control.GridControlEx gcMain;
private Control.GridControlEx gcDetail;
private System.Windows.Forms.Panel panel2;
private DevExpress.XtraEditors.PanelControl panelControl14;
private Control.GridControlEx gcRight;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel1;
private PageBar pageBar;
private DevExpress.XtraEditors.PanelControl panelControl1;
private DevExpress.XtraEditors.PanelControl panelControl16;
private System.Windows.Forms.Label noticeContent;
private DevExpress.XtraEditors.PanelControl panelControl8;
private System.Windows.Forms.Label lblTitle;
private DevExpress.XtraEditors.PanelControl panelControl7;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label lblDate;
private System.Windows.Forms.Label lblUserName;
private DevExpress.XtraEditors.PanelControl panelControl6;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label lblDayName;
private System.Windows.Forms.Timer timer2;
private System.Windows.Forms.Button butMachineSwitch;
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,226 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{195F9EA7-B4B1-486D-9BF1-307D4AE7CA80}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Lskj.ProductPlatform2</RootNamespace>
<AssemblyName>Ls_MES_New</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>..\..\Debug\AllMethodXml\Ls_MES_New.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>mes.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.BonusSkins.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\引用DLL\DevExpress\DevExpress.BonusSkins.v15.2.dll</HintPath>
</Reference>
<Reference Include="DevExpress.Data.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Sparkline.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Utils.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraBars.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files (x86)\DevExpress 15.2\Components\Bin\Framework\DevExpress.XtraBars.v15.2.dll</HintPath>
</Reference>
<Reference Include="DevExpress.XtraEditors.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraGrid.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraLayout.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraPrinting.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.Remoting" />
<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.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="FrmLogin.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmLogin.Designer.cs">
<DependentUpon>FrmLogin.cs</DependentUpon>
</Compile>
<Compile Include="FrmMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmMain.Designer.cs">
<DependentUpon>FrmMain.cs</DependentUpon>
</Compile>
<Compile Include="FrmConfig.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmConfig.Designer.cs">
<DependentUpon>FrmConfig.cs</DependentUpon>
</Compile>
<Compile Include="MachineSwitching.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="MachineSwitching.Designer.cs">
<DependentUpon>MachineSwitching.cs</DependentUpon>
</Compile>
<Compile Include="PageBar.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="PageBar.Designer.cs">
<DependentUpon>PageBar.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ToolButton.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="ToolButton.Designer.cs">
<DependentUpon>ToolButton.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="FrmLogin.resx">
<DependentUpon>FrmLogin.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmMain.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmConfig.resx">
<DependentUpon>FrmConfig.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="MachineSwitching.resx">
<DependentUpon>MachineSwitching.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="PageBar.resx">
<DependentUpon>PageBar.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\licenses.licx" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<EmbeddedResource Include="ToolButton.resx">
<DependentUpon>ToolButton.cs</DependentUpon>
</EmbeddedResource>
<None Include="app.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>
<Content Include="a.ico" />
<Content Include="mes.ico" />
<None Include="Resources\mesbj.png" />
<None Include="Resources\帐套配置.png" />
<None Include="Resources\用户名.png" />
<None Include="Resources\密码.png" />
<None Include="Resources\机台.png" />
<None Include="Resources\车间.png" />
<None Include="Resources\work.png" />
<None Include="Resources\bc.png" />
<None Include="Resources\dsad.jpg" />
<None Include="Resources\111.png" />
<None Include="Resources\right_bg.png" />
<None Include="Resources\未完工.png" />
<None Include="Resources\退出.png" />
<None Include="Resources\素板次品.png" />
<None Include="Resources\刷新.png" />
<None Include="Resources\其它消耗.png" />
<None Include="Resources\开工.png" />
<None Include="Resources\机台设置.png" />
<None Include="Resources\机台考评.png" />
<None Include="Resources\钢板设置.png" />
<None Include="Resources\成品次品.png" />
<None Include="Resources\产量报表.png" />
<None Include="Resources\材料库存.png" />
<None Include="Resources\纸张次品.png" />
<None Include="Resources\image_zt.png" />
<None Include="Resources\image_user.png" />
<None Include="Resources\image_server.png" />
<None Include="Resources\image_pass.png" />
<None Include="Resources\image_db.png" />
<None Include="Resources\mes_login_panel.png" />
<None Include="Resources\mes_login_left.png" />
<None Include="Resources\mes_login_bg.png" />
<None Include="Resources\item.png" />
<None Include="Resources\zt.png" />
<None Include="Resources\mes_logo_bg.png" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Lskj.AutoUpdate\Lskj.AutoUpdate.csproj">
<Project>{7fdd63da-78e2-4093-b51e-060491ddfd5a}</Project>
<Name>Lskj.AutoUpdate</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Business\Lskj.Business.csproj">
<Project>{7eafccc2-a18f-49e9-85c6-a984966cfd01}</Project>
<Name>Lskj.Business</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Control\Lskj.Control.csproj">
<Project>{447cdc40-659f-4cca-9ed6-8e818b4cf8bf}</Project>
<Name>Lskj.Control</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Core\Lskj.Core.csproj">
<Project>{2a1be6ac-1077-491b-a754-c5822fe8121e}</Project>
<Name>Lskj.Core</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Data\Lskj.Data.csproj">
<Project>{308b9b18-9be2-495c-9c64-eed81d567813}</Project>
<Name>Lskj.Data</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Model\Lskj.Model.csproj">
<Project>{52bc40e0-c0c6-4f78-996b-cae028d209ca}</Project>
<Name>Lskj.Model</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Util\Lskj.Util.csproj">
<Project>{a51bf642-6543-4de3-8948-83f558b72bd4}</Project>
<Name>Lskj.Util</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
@@ -0,0 +1,59 @@
namespace Lskj.ProductPlatform2
{
partial class MachineSwitching
{
/// <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.panel1 = new System.Windows.Forms.Panel();
this.SuspendLayout();
//
// panel1
//
this.panel1.AutoScroll = true;
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(170, 70);
this.panel1.TabIndex = 0;
//
// MachineSwitching
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.panel1);
this.Name = "MachineSwitching";
this.Size = new System.Drawing.Size(170, 70);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
}
}
@@ -0,0 +1,63 @@
using DevExpress.XtraEditors;
using Lskj.Business.Impl;
using Lskj.Control;
using Lskj.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Lskj.ProductPlatform2
{
public partial class MachineSwitching : UserControl
{
public MachineSwitching()
{
InitializeComponent();
}
//传入全部机器数据
public void Addmachine(DataTable dataTable)
{
//设置控件高度
this.panel1.Height = dataTable.Rows.Count * 45;
foreach (DataRow item in dataTable.Rows)
{
SimpleButton itemCommon = new SimpleButton();
itemCommon.Text = item["mc"] + "";
itemCommon.Tag = item;
itemCommon.Dock = DockStyle.Top;
itemCommon.Click += new EventHandler(OnCommonItemClick);
itemCommon.Height = 45;
itemCommon.Font= new Font("微软雅黑", 20);
itemCommon.Appearance.BackColor = Color.Transparent;
this.panel1.Controls.Add(itemCommon);
}
}
//点击按钮切换机器
private void OnCommonItemClick(object sender, EventArgs e)
{
try
{
SimpleButton simpleButton = sender as SimpleButton;
DataRow rowItem = simpleButton.Tag as DataRow;
ERPInfo.Instance.WorkJT = rowItem["mc"] + "";
Program.ReStartMain(true);
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
}
}
@@ -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>
+72
View File
@@ -0,0 +1,72 @@
namespace Lskj.ProductPlatform2
{
partial class PageBar
{
/// <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.main = new System.Windows.Forms.Panel();
this.panelDisplay1 = new System.Windows.Forms.Panel();
this.main.SuspendLayout();
this.SuspendLayout();
//
// main
//
this.main.Controls.Add(this.panelDisplay1);
this.main.Dock = System.Windows.Forms.DockStyle.Fill;
this.main.Location = new System.Drawing.Point(0, 0);
this.main.Name = "main";
this.main.Size = new System.Drawing.Size(295, 363);
this.main.TabIndex = 0;
//
// panelDisplay1
//
this.panelDisplay1.AutoScroll = true;
this.panelDisplay1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(82)))), ((int)(((byte)(146)))));
this.panelDisplay1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelDisplay1.Location = new System.Drawing.Point(0, 0);
this.panelDisplay1.Name = "panelDisplay1";
this.panelDisplay1.Size = new System.Drawing.Size(295, 363);
this.panelDisplay1.TabIndex = 2;
//
// PageBar
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Controls.Add(this.main);
this.Name = "PageBar";
this.Size = new System.Drawing.Size(295, 363);
this.main.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel main;
private System.Windows.Forms.Panel panelDisplay1;
}
}
@@ -0,0 +1,63 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Lskj.ProductPlatform2
{
public partial class PageBar : UserControl
{
public List<ToolButton> ToolButtonList = new List<ToolButton>();//全部选项
public Dictionary<int, List<ToolButton>> bonuttPaging = new Dictionary<int, List<ToolButton>>();//每页对于的选项
public PageBar()
{
InitializeComponent();
}
public void addButtons(List<ToolButton> ToolButtons)
{
int panelWidth = this.panelDisplay1.Width;
int panelheight = this.panelDisplay1.Height;
int tbx = 5;
int tby = 5;
int NumberPages = 0;
foreach (ToolButton tb in ToolButtons)
{
if (panelWidth > (tbx + tb.Width))
{
//换列
tbx += 5;
}
else
{
//换行
tbx = 5;
tby += tb.Height + 5;
}
tb.Location = new Point(tbx, tby);
tbx += tb.Width;
panelDisplay1.Controls.Add(tb);
}
}
}
}
@@ -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>
+555
View File
@@ -0,0 +1,555 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Globalization;
using System.Threading;
using DevExpress.UserSkins;
using DevExpress.Skins;
using Lskj.Control;
using Lskj.Util;
using Lskj.Control.Model;
using Lskj.Data;
using System.Data;
using System.Text;
using Lskj.Core;
using System.Runtime.InteropServices;
namespace Lskj.ProductPlatform2
{
static class Program
{
/// <summary>
/// 主程序
/// </summary>
private static FrmMain _frmMain = null;
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
try
{
// 汉化DevExpress界面
Thread.CurrentThread.CurrentUICulture = new CultureInfo("zh-Hans");
// 设置皮肤
BonusSkins.Register();
SkinManager.EnableFormSkins();
//处理未捕获的异常
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException);
AboutDevCompanion DC = new AboutDevCompanion(1, false);
DC.Run();
// 启动程序
StartForm();
DC.Stop();
}
catch (Exception ex)
{
MessageUtil.Show(ex);
}
}
/// <summary>
/// <para>说明:程序启动入口</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-09 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public static void StartForm()
{
bool isStart = true;
// 加载Splash动画界面
SplashForm.ShowForm();
// C#数据库连接检查
if (!DBConfig.MesInstance.CreateConnection())
{
MessageUtil.Show(ResourceKeys.UnConnectServer);
SplashForm.HideForm();
DialogResult result = RunConfigForm();
isStart = result == DialogResult.OK;
}
if (isStart)
{
// Delphi数据库连接检查
if (DelphiHelper.Delphi_Init(new StringBuilder(DBConfig.MesInstance.GetDelphiConnection())) == 0)
{
MessageUtil.Show(ResourceKeys.UnConnectServer + "[By Delphi]");
SplashForm.HideForm();
RunConfigForm();
return;
}
SplashForm.HideForm();
// 汉化dev控件
BaseResources.Localization(LocalizationType.CHS);
// 启动登录页面
DialogResult result = RunLoginForm();
if (result == DialogResult.OK)
{
RunMainForm();
}
}
else
{
SplashForm.HideForm();
}
}
/// <summary>
/// <para>说明:重新启动</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-14 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="skipMenu">是否跳过子系统选择(适用于切换用户).</param>
public static void ReStartMain(bool skipMenu = false)
{
if (_frmMain != null)
{
_frmMain.Close();
_frmMain.Dispose();
_frmMain = null;
}
bool isStart = true;
if (isStart)
{
// 直接进入主界面
RunMainForm();
}
}
/// <summary>
/// <para>说明:启动配置窗口</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-09 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private static DialogResult RunConfigForm()
{
FrmConfig frmConfig = new FrmConfig();
return frmConfig.ShowDialog();
}
/// <summary>
/// <para>说明:打开登录界面</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-12 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <returns>DialogResult.</returns>
private static DialogResult RunLoginForm()
{
FrmLogin frmLogin = new FrmLogin();
return frmLogin.ShowDialog();
}
/// <summary>
/// <para>说明:打开主程序</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-14 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <returns>DialogResult.</returns>
private static DialogResult RunMainForm()
{
_frmMain = new FrmMain();
return _frmMain.ShowDialog();
}
/// <summary>
/// <para>说明:处理异常</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-11-22 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="ThreadExceptionEventArgs"/> instance containing the event data.</param>
static void Application_ThreadException(object sender, ThreadExceptionEventArgs e)
{
MessageUtil.Show(e.Exception);
LogHelper.Instance.WriteError(e.Exception);
}
}
#region dev弹框清理
public static class WinAPI
{
#region
public const int GWL_WNDPROC = -4; //得到窗口回调函数的地址,或者句柄。得到后必须使用CallWindowProc函数来调用
public const int GWL_HINSTANCE = -6; //得到应用程序运行实例的句柄
public const int GWL_HWNDPARENT = -8; //得到父窗口的句柄
public const int GWL_STYLE = -16; //得到窗口风格
public const int GWL_EXSTYLE = -20; //得到扩展的窗口风格
public const int GWL_USERDATA = -21; //得到和窗口相关联的32位的值(每一个窗口都有一个有意留给创建窗口的应用程序是用的32位的值)
public const int GWL_ID = -12; //得到窗口的标识符
public const int DWL_MSGRESULT = 0;
public const int DWL_DLGPROC = 4;
public const int DWL_USER = 8;
public const int HWND_BOTTOM = 1;
public const int HWND_TOP = 0;
public const int HWND_TOPMOST = -1;
public const int HWND_NOTOPMOST = -2;
public const int SWP_DRAW = 0x20;
public const int SWP_HIDEWINDOW = 0x80;
public const int SWP_NOACTIVATE = 0x10;
public const int SWP_NOMOVE = 0x2;
public const int SWP_NOREDRAW = 0x8;
public const int SWP_NOSIZE = 0x1;
public const int SWP_NOZORDER = 0x4;
public const int SWP_SHOWWINDOW = 0x40;
public const int WS_OVERLAPPED = 0;
public const int WS_BORDER = 0x800000;
public const int WS_CAPTION = 0xC00000;
public const int WS_CHILD = 0x40000000;
public const int WS_DLGFRAME = 0x400000;
public const int WS_SIZEBOX = 0x40000;
public const int WS_MAXIMIZEBOX = 0x10000;
public const int WS_MINIMIZEBOX = 0x20000;
public const int WS_SYSMENU = 0x80000;
public const int WS_HSCROLL = 0x100000;
public const int WS_VSCROLL = 0x200000;
public const int WA_INACTIVE = 0;
public const int WA_ACTIVE = 1;
public const int WA_CLICKACTIVE = 2;
public const int WM_NOTIFY = 0x004E;
public const int WM_ACTIVATE = 0x0006;
public const int WM_NULL = 0x0000;
public const int WM_CREATE = 0x0001;
public const int WM_DESTROY = 0x0002;
public const int WM_MOVE = 0x0003;
public const int WM_SIZE = 0x0005;
public const int WM_SETFOCUS = 0x0007;
public const int WM_MOUSEACTIVATE = 0x0021;
public const int WM_CLOSE = 0x0010;
public const int WM_QUIT = 0x0012;
public const int WM_KEYDOWN = 0x0100;
public const int WM_KEYUP = 0x0101;
public const int WM_CHAR = 0x0102;
public const int WM_DEADCHAR = 0x0103;
public const int WM_SYSKEYDOWN = 0x0104;
public const int WM_SYSKEYUP = 0x0105;
public const int WM_SYSCHAR = 0x0106;
public const int WM_SYSDEADCHAR = 0x0107;
public const int WM_UNICHAR = 0x0109;
public const int WM_KEYLAST = 0x0109;
public const int UNICODE_NOCHAR = 0xFFFF;
public const int MK_LBUTTON = 0x0001;
public const int MK_RBUTTON = 0x0002;
public const int MK_SHIFT = 0x0004;
public const int MK_CONTROL = 0x0008;
public const int MK_MBUTTON = 0x0010;
public const int WM_MOUSEFIRST = 0x0200;
public const int WM_MOUSEMOVE = 0x0200;
public const int WM_LBUTTONDOWN = 0x0201;
public const int WM_LBUTTONUP = 0x0202;
public const int WM_LBUTTONDBLCLK = 0x0203;
public const int WM_RBUTTONDOWN = 0x0204;
public const int WM_RBUTTONUP = 0x0205;
public const int WM_RBUTTONDBLCLK = 0x0206;
public const int WM_MBUTTONDOWN = 0x0207;
public const int WM_MBUTTONUP = 0x0208;
public const int WM_MBUTTONDBLCLK = 0x0209;
public const int WM_MOUSEWHEEL = 0x020A;
public const int WM_MDICREATE = 0x0220;
public const int WM_ERASEBKGND = 0x14;
public const int WM_PAINT = 0xF;
public const int WM_NC_HITTEST = 0x84;
public const int WM_NC_PAINT = 0x85;
public const int WM_PRINTCLIENT = 0x318;
public const int WM_SETCURSOR = 0x20;
public const int BM_CLICK = 0x00F5;
public const int BM_GETIMAGE = 0x00F6;
public const int BM_SETIMAGE = 0x00F7;
public const int VK_BACK = 0x08;
public const int VK_TAB = 0x09;
public const int VK_CLEAR = 0x0C;
public const int VK_RETURN = 0x0D;
public const int VK_SHIFT = 0x10;
public const int VK_CONTROL = 0x11;
public const int VK_MENU = 0x12;
public const int VK_PAUSE = 0x13;
public const int VK_CAPITAL = 0x14;
public const int VK_KANA = 0x15;
public const int VK_HANGEUL = 0x15;
public const int VK_HANGUL = 0x15;
public const int VK_JUNJA = 0x17;
public const int VK_FINAL = 0x18;
public const int VK_HANJA = 0x19;
public const int VK_KANJI = 0x19;
public const int VK_ESCAPE = 0x1B;
public const int VK_CONVERT = 0x1C;
public const int VK_NONCONVERT = 0x1D;
public const int VK_ACCEPT = 0x1E;
public const int VK_MODECHANGE = 0x1F;
public const int VK_SPACE = 0x20;
public const int VK_PRIOR = 0x21;
public const int VK_NEXT = 0x22;
public const int VK_END = 0x23;
public const int VK_HOME = 0x24;
public const int VK_LEFT = 0x25;
public const int VK_UP = 0x26;
public const int VK_RIGHT = 0x27;
public const int VK_DOWN = 0x28;
public const int VK_SELECT = 0x29;
public const int VK_PRINT = 0x2A;
public const int VK_EXECUTE = 0x2B;
public const int VK_SNAPSHOT = 0x2C;
public const int VK_INSERT = 0x2D;
public const int VK_DELETE = 0x2E;
public const int VK_HELP = 0x2F;
public const int KEYEVENTF_EXTENDEDKEY = 0x0001;
public const int KEYEVENTF_KEYUP = 0x0002;
public const int KEYEVENTF_UNICODE = 0x0004;
public const int KEYEVENTF_SCANCODE = 0x0008;
public const int HC_ACTION = 0x0;
public const int WH_MOUSELL = 0xE;
public const int STATUS_SUCCESS = 0x0;
#endregion
#region API函数声明
[DllImport("user32.dll", EntryPoint = "SetParent")]
public static extern int SetParent(IntPtr hWndChild, IntPtr hWndNewParent);
[DllImport("user32.dll", EntryPoint = "GetParent")]
public static extern int GetParent(IntPtr hWnd);
[DllImport("user32.dll", EntryPoint = "GetWindowLong")]
public static extern int GetWindowLong(IntPtr hWnd, int nIndex);
[DllImport("user32.dll")]
public static extern int GetWindowRect(IntPtr hwnd, out Rect lpRect);
[DllImport("user32.dll", EntryPoint = "SetWindowLong")]
public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int lNewLong);
[DllImport("user32.dll", EntryPoint = "SetWindowPos")]
public static extern bool SetWindowPos(IntPtr hWnd, int hWndInsertAfter, int x, int y, int cx, int cy, int uFlags);
[DllImport("user32.dll", EntryPoint = "UpdateWindow")]
public static extern bool UpdateWindow(IntPtr hWnd);
[DllImport("user32.dll", EntryPoint = "SendMessage")]
public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam);
[DllImport("user32.dll", EntryPoint = "SendMessage")]
public static extern int SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam);
[DllImport("user32.dll", EntryPoint = "PostMessage")]
public static extern int PostMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
[DllImport("user32.dll", EntryPoint = "PostMessage")]
public static extern int PostMessage(IntPtr hwnd, int wMsg, IntPtr wParam, IntPtr lParam);
[DllImport("user32.dll", EntryPoint = "keybd_event")]
public static extern void keybd_event(byte bVk, byte bScan, int dwFlags, long dwExtraInfo);
[DllImport("user32.dll", EntryPoint = "GetWindowThreadProcessId")]
public static extern int GetWindowThreadProcessId(IntPtr hwnd, out int lpdwProcessId);
[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern void SetForegroundWindow(IntPtr hwnd);
[DllImport("user32.dll", EntryPoint = "DrawMenuBar")]
public static extern int DrawMenuBar(IntPtr hWnd);
[DllImport("user32.dll", EntryPoint = "mouse_event")]
public static extern void mouse_event(int dwFlags, int dx, int dy, int dwData, IntPtr dwExtraInfo);
[DllImport("user32.dll", EntryPoint = "SetCursorPos")]
public static extern void SetCursorPos(int x, int y);
[DllImport("user32.dll", EntryPoint = "GetCursorPos")]
public static extern bool GetCursorPos(out POINT p);
[DllImport("user32.dll", EntryPoint = "SetWindowsHookEx")]
public static extern int SetWindowsHookEx(int idHook, HookProc lpfn, IntPtr hInstance, int threadId);
[DllImport("user32.dll", EntryPoint = "UnhookWindowsHookEx")]
public static extern int UnhookWindowsHookEx(int idHook);
[DllImport("user32.dll", EntryPoint = "CallNextHookEx")]
public static extern int CallNextHookEx(int idHook, int nCode, IntPtr wParam, IntPtr lParam);
[DllImport("user32.dll", EntryPoint = "GetWindowDC")]
public static extern IntPtr GetWindowDC(IntPtr hWnd);
[DllImport("user32.dll", EntryPoint = "ReleaseDC")]
public static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC);
[DllImport("kernel32.dll")]
public static extern IntPtr GetModuleHandle(string name);
[DllImport("user32.dll")]
public static extern IntPtr WindowFromPoint(POINT Point);
[DllImport("user32.dll", EntryPoint = "GetDoubleClickTime")]
public static extern int GetDoubleClickTime();
[DllImport("user32.dll", EntryPoint = "FindWindow")]
public extern static IntPtr FindWindow(string lpClassName, string lpWindowName);
[DllImport("user32.dll", EntryPoint = "FindWindow")]
public static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
#endregion
/// <summary>
/// 表示 Hook 回调函数。
/// </summary>
/// <param name="nCode"></param>
/// <param name="wParam"></param>
/// <param name="lParam"></param>
/// <returns></returns>
public delegate int HookProc(int nCode, IntPtr wParam, IntPtr lParam);
/// <summary>
/// 表示进程间传递的数据结构
/// </summary>
public struct COPYDATASTRUCT
{
public IntPtr dwData;
public int cbData;
[MarshalAs(UnmanagedType.LPStr)]
public string lpData;
}
/// <summary>
/// 用于通过 API 获取位置信息的结构。
/// </summary>
public struct Rect
{
public int Left;
public int Top;
public int Right;
public int Bottom;
}
/// <summary>
/// 与非托管通信的鼠标位置结构。
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct POINT
{
public int X;
public int Y;
}
/// <summary>
/// 鼠标事件标识。
/// </summary>
public enum MouseEventFlags
{
Move = 0x0001,
LeftDown = 0x0002,
LeftUp = 0x0004,
RightDown = 0x0008,
RightUp = 0x0010,
MiddleDown = 0x0020,
MiddleUp = 0x0040,
Wheel = 0x0800,
Absolute = 0x8000
}
}
/// <summary>
/// DevExpress
/// </summary>
public class AboutDevCompanion
{
private int Interval;
private bool ResidentMode;
private bool StopCompanion;
private Thread m_Thread;
/// <summary>
/// 按指定的模式创建 <see cref="Wunion.Budget.PowerBasicFramework.AboutDevCompanion"/> 对象实例。
/// <param name="interval">检测Dev注册弹框的时间间隔(以毫秒为单位)。</param>
/// <param name="resident">检测程序是否以常驻模式运行(默认值 true)。</param>
/// </summary>
public AboutDevCompanion(int interval, bool resident = true)
{
Interval = interval;
ResidentMode = resident;
StopCompanion = true;
}
/// <summary>
/// 关闭 DevExpress 控件的注册弹框(如果调用时找到并关闭了DevExpress注册弹框则返回true,否则返回false)。
/// </summary>
/// <returns></returns>
private bool CloseAboutDev()
{
IntPtr devHwnd = WinAPI.FindWindow(null, "About DevExpress");
if (devHwnd != IntPtr.Zero)
{
WinAPI.SendMessage(devHwnd, WinAPI.WM_CLOSE, 0, 0);
return true;
}
return false;
}
/// <summary>
/// 运行 Dev 伴侣,对其注册弹框下毒手。
/// </summary>
public void Run()
{
if (!StopCompanion)
return; // 防止多次运行导致可能的线程错误。
StopCompanion = false;
m_Thread = new Thread(new ThreadStart(() =>
{
while (!StopCompanion)
{
if (ResidentMode)
CloseAboutDev();
else // 如果非常驻模式,则在检测并关闭Dev注册弹框后应结束程序。
StopCompanion = CloseAboutDev();
Thread.Sleep(Interval);
}
m_Thread = null;
}));
m_Thread.Start();
}
/// <summary>
/// 关闭程序的运行。
/// </summary>
public void Stop()
{
StopCompanion = true;
}
}
#endregion
}
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Lskj.ProductPlatform2")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Lskj.ProductPlatform2")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 使此程序集中的类型
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
// 则将该类型上的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("f6064e27-1ba6-4d48-ac8e-dcd998a6fbed")]
// 程序集的版本信息由下面四个值组成:
//
// 主版本
// 次版本
// 内部版本号
// 修订号
//
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,403 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.ProductPlatform2.Properties {
using System;
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// 返回此类使用的缓存的 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lskj.ProductPlatform2.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 重写当前线程的 CurrentUICulture 属性,对
/// 使用此强类型资源类的所有资源查找执行重写。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap _111 {
get {
object obj = ResourceManager.GetObject("_111", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap bc {
get {
object obj = ResourceManager.GetObject("bc", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap dsad {
get {
object obj = ResourceManager.GetObject("dsad", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap image_db {
get {
object obj = ResourceManager.GetObject("image_db", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap image_pass {
get {
object obj = ResourceManager.GetObject("image_pass", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap image_server {
get {
object obj = ResourceManager.GetObject("image_server", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap image_user {
get {
object obj = ResourceManager.GetObject("image_user", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap image_zt {
get {
object obj = ResourceManager.GetObject("image_zt", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap item {
get {
object obj = ResourceManager.GetObject("item", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap mes_login_bg {
get {
object obj = ResourceManager.GetObject("mes_login_bg", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap mes_login_left {
get {
object obj = ResourceManager.GetObject("mes_login_left", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap mes_login_panel {
get {
object obj = ResourceManager.GetObject("mes_login_panel", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap mes_logo_bg2 {
get {
object obj = ResourceManager.GetObject("mes_logo_bg2", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap mesbj {
get {
object obj = ResourceManager.GetObject("mesbj", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap right_bg {
get {
object obj = ResourceManager.GetObject("right_bg", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap work {
get {
object obj = ResourceManager.GetObject("work", 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));
}
}
/// <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));
}
}
/// <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));
}
}
/// <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));
}
}
/// <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));
}
}
/// <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));
}
}
/// <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));
}
}
/// <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));
}
}
/// <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));
}
}
}
}
@@ -0,0 +1,223 @@
<?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.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="image_db" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\image_db.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="image_pass" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\image_pass.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="image_server" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\image_server.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="image_user" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\image_user.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="image_zt" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\image_zt.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="item" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\item.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="mes_login_bg" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\mes_login_bg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="mes_login_left" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\mes_login_left.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="mes_login_panel" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\mes_login_panel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="mes_logo_bg2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\mes_logo_bg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="right_bg" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\right_bg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_111" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\111.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>
<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>
<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>
<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>
<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>
<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>
<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="dsad" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\dsad.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="bc" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\bc.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="work" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\work.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="mesbj" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\mesbj.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>
<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>
<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>
@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.ProductPlatform2.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
}
}
@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>
Binary file not shown.

After

Width:  |  Height:  |  Size: 989 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 934 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 659 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 530 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 480 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

+76
View File
@@ -0,0 +1,76 @@
namespace Lskj.ProductPlatform2
{
partial class ToolButton
{
/// <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.label1 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.SuspendLayout();
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold);
this.label1.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.label1.Location = new System.Drawing.Point(0, 68);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(90, 22);
this.label1.TabIndex = 1;
this.label1.Text = "机台设置";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label1.Click += new System.EventHandler(this.label1_Click);
//
// panel1
//
this.panel1.BackgroundImage = global::Lskj.ProductPlatform2.Properties.Resources.;
this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.panel1.Location = new System.Drawing.Point(22, 10);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(45, 45);
this.panel1.TabIndex = 0;
this.panel1.Click += new System.EventHandler(this.panel1_Click);
//
// ToolButton
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.Transparent;
this.Controls.Add(this.label1);
this.Controls.Add(this.panel1);
this.Name = "ToolButton";
this.Size = new System.Drawing.Size(90, 90);
this.Click += new System.EventHandler(this.ToolButton_Click);
this.ResumeLayout(false);
}
#endregion
public System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label1;
}
}
@@ -0,0 +1,80 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lskj.Business.Impl;
using Lskj.Control;
namespace Lskj.ProductPlatform2
{
public partial class ToolButton : UserControl
{
public event EventHandler OnClick;
public ToolButton()
{
InitializeComponent();
}
public void SetImage(Image image)
{
if (image != null)
this.panel1.BackgroundImage = image;
}
public void OnClickCallBack()
{
if (OnClick != null)
{
OnClick(this, null);
}
}
public void SetTitle(string title)
{
this.label1.Text = title;
}
private void panel1_Click(object sender, EventArgs e)
{
try
{
this.OnClickCallBack();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
private void label1_Click(object sender, EventArgs e)
{
try
{
this.OnClickCallBack();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
private void ToolButton_Click(object sender, EventArgs e)
{
try
{
this.OnClickCallBack();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
}
}
@@ -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>
Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="NPOI" publicKeyToken="0df73ec7942b34e1" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.1.3.1" newVersion="2.1.3.1" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB