Browse Source

注塑打码重新开发代码提交

master
ruoxing.wang 6 months ago
parent
commit
da1e7eecd8
  1. 655
      InjectionPC/FrmBarCodeNew.Designer.cs
  2. 1723
      InjectionPC/FrmBarCodeNew.cs
  3. 40
      InjectionPC/FrmLogin.Designer.cs
  4. 10
      InjectionPC/FrmLogin.cs
  5. 11
      InjectionPC/InjectionPC.csproj
  6. 55
      InjectionPC/Program.cs
  7. 0
      InjectionPC/Report/111 - 副本.grf
  8. 43
      InjectionSearch/Form1.Designer.cs
  9. 7
      InjectionSearch/Form1.cs
  10. 1
      InjectionSearch/FrmBarCodeSearch.cs
  11. 445
      InjectionSearch/FrmBarCodeSearchNew.Designer.cs
  12. 566
      InjectionSearch/FrmBarCodeSearchNew.cs
  13. 12
      InjectionSearch/InjectionSearch.csproj
  14. 56
      InjectionSearch/Program.cs
  15. BIN
      InjectionSearch/Report/P02 - 副本.grf
  16. 14
      MESClassLibrary/BLL/BasicInfo/StationBLL.cs
  17. 2
      MESClassLibrary/BLL/User/UserBLL.cs
  18. 41
      MESClassLibrary/DAL/BasicDAL.cs
  19. 18
      MESClassLibrary/DAL/BasicInfo/StationDAL.cs
  20. 40
      PaintingPrintBarCode/Login.Designer.cs
  21. 2
      PunchAssemble/PunchAndWeld/BusinessHelper.cs

655
InjectionPC/FrmBarCodeNew.Designer.cs

@ -0,0 +1,655 @@
namespace InjectionPC
{
partial class FrmBarCodeNew
{
/// <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(FrmBarCodeNew));
GlacialComponents.Controls.GLColumn glColumn1 = new GlacialComponents.Controls.GLColumn();
GlacialComponents.Controls.GLColumn glColumn2 = new GlacialComponents.Controls.GLColumn();
GlacialComponents.Controls.GLColumn glColumn3 = new GlacialComponents.Controls.GLColumn();
GlacialComponents.Controls.GLColumn glColumn4 = new GlacialComponents.Controls.GLColumn();
this.panel1 = new System.Windows.Forms.Panel();
this.label2 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label1 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.glacialList1 = new GlacialComponents.Controls.GlacialList();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label17 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label15 = new System.Windows.Forms.Label();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.label14 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.label21 = new System.Windows.Forms.Label();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.panel3 = new System.Windows.Forms.Panel();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.textBox3 = new System.Windows.Forms.TextBox();
this.label22 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.pictureBox1);
this.panel1.Controls.Add(this.label1);
this.panel1.Location = new System.Drawing.Point(2, 2);
this.panel1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(2338, 159);
this.panel1.TabIndex = 0;
//
// label2
//
this.label2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label2.Font = new System.Drawing.Font("宋体", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(1980, 9);
this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(350, 146);
this.label2.TabIndex = 3;
this.label2.Text = "2019-05-29 10:30:31";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label2.Click += new System.EventHandler(this.label2_Click);
//
// pictureBox1
//
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(7, 7);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(308, 146);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 2;
this.pictureBox1.TabStop = false;
//
// label1
//
this.label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label1.Font = new System.Drawing.Font("宋体", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(315, 9);
this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(1669, 146);
this.label1.TabIndex = 1;
this.label1.Text = "注塑车间条码打印new";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label3
//
this.label3.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label3.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(9, 156);
this.label3.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(308, 90);
this.label3.TabIndex = 1;
this.label3.Text = "用户信息:";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label4
//
this.label4.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label4.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label4.Location = new System.Drawing.Point(319, 156);
this.label4.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(200, 90);
this.label4.TabIndex = 2;
this.label4.Text = "班组:";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// comboBox1
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.Font = new System.Drawing.Font("宋体", 32F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"A班",
"B班"});
this.comboBox1.Location = new System.Drawing.Point(521, 159);
this.comboBox1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(246, 83);
this.comboBox1.TabIndex = 3;
//
// label5
//
this.label5.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label5.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.Location = new System.Drawing.Point(768, 159);
this.label5.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(200, 90);
this.label5.TabIndex = 4;
this.label5.Text = "工位:";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label6
//
this.label6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label6.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.Location = new System.Drawing.Point(970, 163);
this.label6.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(264, 90);
this.label6.TabIndex = 5;
this.label6.Text = "IM01";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label7
//
this.label7.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label7.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.Location = new System.Drawing.Point(1238, 163);
this.label7.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(200, 90);
this.label7.TabIndex = 6;
this.label7.Text = "用户:";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label8
//
this.label8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label8.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.Location = new System.Drawing.Point(1437, 163);
this.label8.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(224, 90);
this.label8.TabIndex = 7;
this.label8.Text = "cy";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label9
//
this.label9.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label9.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.Location = new System.Drawing.Point(1657, 163);
this.label9.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(328, 90);
this.label9.TabIndex = 8;
this.label9.Text = "质量录入";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label9.Click += new System.EventHandler(this.label9_Click);
//
// label10
//
this.label10.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label10.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label10.Location = new System.Drawing.Point(9, 247);
this.label10.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(308, 1087);
this.label10.TabIndex = 9;
this.label10.Text = "打印记录:";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// glacialList1
//
this.glacialList1.AllowColumnResize = true;
this.glacialList1.AllowMultiselect = false;
this.glacialList1.AlternateBackground = System.Drawing.Color.DarkGreen;
this.glacialList1.AlternatingColors = false;
this.glacialList1.AutoHeight = true;
this.glacialList1.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.glacialList1.BackgroundStretchToFit = true;
glColumn1.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None;
glColumn1.CheckBoxes = false;
glColumn1.ImageIndex = -1;
glColumn1.Name = "Column1";
glColumn1.NumericSort = false;
glColumn1.Text = "条码";
glColumn1.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
glColumn1.Width = 350;
glColumn2.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None;
glColumn2.CheckBoxes = false;
glColumn2.ImageIndex = -1;
glColumn2.Name = "Column2";
glColumn2.NumericSort = false;
glColumn2.Text = "产品名称";
glColumn2.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
glColumn2.Width = 320;
glColumn3.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None;
glColumn3.CheckBoxes = false;
glColumn3.ImageIndex = -1;
glColumn3.Name = "Column3";
glColumn3.NumericSort = false;
glColumn3.Text = "打印方式";
glColumn3.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
glColumn3.Width = 150;
glColumn4.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None;
glColumn4.CheckBoxes = false;
glColumn4.ImageIndex = -1;
glColumn4.Name = "Column4";
glColumn4.NumericSort = false;
glColumn4.Text = "打印时间";
glColumn4.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
glColumn4.Width = 270;
this.glacialList1.Columns.AddRange(new GlacialComponents.Controls.GLColumn[] {
glColumn1,
glColumn2,
glColumn3,
glColumn4});
this.glacialList1.ControlStyle = GlacialComponents.Controls.GLControlStyles.Normal;
this.glacialList1.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.glacialList1.FullRowSelect = true;
this.glacialList1.GridColor = System.Drawing.Color.DeepSkyBlue;
this.glacialList1.GridLines = GlacialComponents.Controls.GLGridLines.gridBoth;
this.glacialList1.GridLineStyle = GlacialComponents.Controls.GLGridLineStyles.gridSolid;
this.glacialList1.GridTypes = GlacialComponents.Controls.GLGridTypes.gridNormal;
this.glacialList1.HeaderHeight = 40;
this.glacialList1.HeaderVisible = true;
this.glacialList1.HeaderWordWrap = false;
this.glacialList1.HotColumnTracking = false;
this.glacialList1.HotItemTracking = false;
this.glacialList1.HotTrackingColor = System.Drawing.Color.LightGray;
this.glacialList1.HoverEvents = false;
this.glacialList1.HoverTime = 1;
this.glacialList1.ImageList = null;
this.glacialList1.ItemHeight = 50;
this.glacialList1.ItemWordWrap = false;
this.glacialList1.Location = new System.Drawing.Point(317, 248);
this.glacialList1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.glacialList1.Name = "glacialList1";
this.glacialList1.Selectable = true;
this.glacialList1.SelectedTextColor = System.Drawing.Color.White;
this.glacialList1.SelectionColor = System.Drawing.Color.Lime;
this.glacialList1.ShowBorder = true;
this.glacialList1.ShowFocusRect = false;
this.glacialList1.Size = new System.Drawing.Size(2017, 1087);
this.glacialList1.SortType = GlacialComponents.Controls.SortTypes.InsertionSort;
this.glacialList1.SuperFlatHeaderColor = System.Drawing.Color.White;
this.glacialList1.TabIndex = 10;
this.glacialList1.Text = "glacialList1";
this.glacialList1.Click += new System.EventHandler(this.glacialList1_Click);
//
// label11
//
this.label11.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label11.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label11.Location = new System.Drawing.Point(9, 1335);
this.label11.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(308, 440);
this.label11.TabIndex = 11;
this.label11.Text = "打印信息:";
this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label12
//
this.label12.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label12.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label12.Location = new System.Drawing.Point(317, 1335);
this.label12.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(132, 440);
this.label12.TabIndex = 12;
this.label12.Text = "暂停打印";
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label12.Click += new System.EventHandler(this.label12_Click);
//
// label13
//
this.label13.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label13.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label13.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label13.Location = new System.Drawing.Point(449, 1335);
this.label13.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(132, 440);
this.label13.TabIndex = 13;
this.label13.Text = "下一计划";
this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label13.Click += new System.EventHandler(this.label13_Click);
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.Aquamarine;
this.panel2.Controls.Add(this.textBox2);
this.panel2.Controls.Add(this.label17);
this.panel2.Controls.Add(this.label16);
this.panel2.Controls.Add(this.textBox1);
this.panel2.Controls.Add(this.label15);
this.panel2.Controls.Add(this.comboBox2);
this.panel2.Controls.Add(this.label14);
this.panel2.Location = new System.Drawing.Point(583, 1335);
this.panel2.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1351, 441);
this.panel2.TabIndex = 14;
//
// textBox2
//
this.textBox2.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox2.Location = new System.Drawing.Point(306, 262);
this.textBox2.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(303, 65);
this.textBox2.TabIndex = 6;
this.textBox2.Click += new System.EventHandler(this.textBox2_Click);
//
// label17
//
this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label17.Location = new System.Drawing.Point(68, 273);
this.label17.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(178, 51);
this.label17.TabIndex = 5;
this.label17.Text = "数量:";
//
// label16
//
this.label16.AutoSize = true;
this.label16.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label16.Location = new System.Drawing.Point(693, 147);
this.label16.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(238, 51);
this.label16.TabIndex = 4;
this.label16.Text = "(yyMMdd)";
//
// textBox1
//
this.textBox1.Enabled = false;
this.textBox1.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox1.Location = new System.Drawing.Point(308, 142);
this.textBox1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(301, 65);
this.textBox1.TabIndex = 3;
//
// label15
//
this.label15.AutoSize = true;
this.label15.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label15.Location = new System.Drawing.Point(70, 156);
this.label15.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(178, 51);
this.label15.TabIndex = 2;
this.label15.Text = "批次:";
//
// comboBox2
//
this.comboBox2.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Location = new System.Drawing.Point(308, 33);
this.comboBox2.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(879, 59);
this.comboBox2.TabIndex = 1;
//
// label14
//
this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label14.Location = new System.Drawing.Point(70, 40);
this.label14.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(178, 51);
this.label14.TabIndex = 0;
this.label14.Text = "产品:";
//
// label18
//
this.label18.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label18.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label18.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label18.Location = new System.Drawing.Point(2070, 1335);
this.label18.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(132, 440);
this.label18.TabIndex = 15;
this.label18.Text = "补打";
this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label18.Visible = false;
this.label18.Click += new System.EventHandler(this.label18_Click);
//
// label19
//
this.label19.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label19.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label19.Location = new System.Drawing.Point(1936, 1335);
this.label19.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(132, 440);
this.label19.TabIndex = 16;
this.label19.Text = "手工打印";
this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label19.Click += new System.EventHandler(this.label19_Click);
//
// label20
//
this.label20.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label20.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label20.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label20.Location = new System.Drawing.Point(2204, 1335);
this.label20.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(132, 440);
this.label20.TabIndex = 17;
this.label20.Text = "删除条码";
this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label20.Visible = false;
this.label20.Click += new System.EventHandler(this.label20_Click);
//
// label21
//
this.label21.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label21.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label21.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label21.Location = new System.Drawing.Point(1982, 163);
this.label21.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(350, 86);
this.label21.TabIndex = 18;
this.label21.Text = "停机录入";
this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label21.Click += new System.EventHandler(this.label21_Click);
//
// timer1
//
this.timer1.Enabled = true;
this.timer1.Interval = 5000;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// panel3
//
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.button2);
this.panel3.Controls.Add(this.button1);
this.panel3.Controls.Add(this.textBox3);
this.panel3.Controls.Add(this.label22);
this.panel3.Location = new System.Drawing.Point(939, 971);
this.panel3.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(965, 96);
this.panel3.TabIndex = 19;
//
// button2
//
this.button2.Location = new System.Drawing.Point(765, 35);
this.button2.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(138, 40);
this.button2.TabIndex = 3;
this.button2.Text = "取消";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button1
//
this.button1.Location = new System.Drawing.Point(567, 35);
this.button1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(138, 40);
this.button1.TabIndex = 2;
this.button1.Text = "确定";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(149, 35);
this.textBox3.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(319, 31);
this.textBox3.TabIndex = 1;
this.textBox3.UseSystemPasswordChar = true;
this.textBox3.Click += new System.EventHandler(this.textBox3_Click);
this.textBox3.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox3_KeyDown);
//
// label22
//
this.label22.AutoSize = true;
this.label22.Location = new System.Drawing.Point(48, 42);
this.label22.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(73, 21);
this.label22.TabIndex = 0;
this.label22.Text = "密码:";
//
// FrmBarCodeNew
//
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(2317, 1724);
this.Controls.Add(this.panel3);
this.Controls.Add(this.label21);
this.Controls.Add(this.label20);
this.Controls.Add(this.label19);
this.Controls.Add(this.label18);
this.Controls.Add(this.panel2);
this.Controls.Add(this.label13);
this.Controls.Add(this.label12);
this.Controls.Add(this.label11);
this.Controls.Add(this.glacialList1);
this.Controls.Add(this.label10);
this.Controls.Add(this.label9);
this.Controls.Add(this.label8);
this.Controls.Add(this.label7);
this.Controls.Add(this.label6);
this.Controls.Add(this.label5);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.panel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.Name = "FrmBarCodeNew";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Form1";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FrmBarCode_FormClosed);
this.Load += new System.EventHandler(this.FrmBarCodeNew_Load);
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private GlacialComponents.Controls.GlacialList glacialList1;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.Label label21;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.Label label22;
}
}

1723
InjectionPC/FrmBarCodeNew.cs

File diff suppressed because it is too large

40
InjectionPC/FrmLogin.Designer.cs

@ -43,9 +43,10 @@
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(216, 194);
this.label1.Location = new System.Drawing.Point(396, 340);
this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(66, 19);
this.label1.Size = new System.Drawing.Size(117, 34);
this.label1.TabIndex = 0;
this.label1.Text = "用户名";
//
@ -54,28 +55,31 @@
this.label2.AutoSize = true;
this.label2.BackColor = System.Drawing.Color.Transparent;
this.label2.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(216, 247);
this.label2.Location = new System.Drawing.Point(396, 432);
this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(47, 19);
this.label2.Size = new System.Drawing.Size(83, 34);
this.label2.TabIndex = 1;
this.label2.Text = "密码";
//
// textBox1
//
this.textBox1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox1.Location = new System.Drawing.Point(296, 185);
this.textBox1.Location = new System.Drawing.Point(543, 324);
this.textBox1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(159, 29);
this.textBox1.Size = new System.Drawing.Size(288, 45);
this.textBox1.TabIndex = 2;
this.textBox1.Click += new System.EventHandler(this.textBox1_Click);
//
// textBox2
//
this.textBox2.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox2.Location = new System.Drawing.Point(296, 247);
this.textBox2.Location = new System.Drawing.Point(543, 432);
this.textBox2.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.textBox2.Name = "textBox2";
this.textBox2.PasswordChar = '*';
this.textBox2.Size = new System.Drawing.Size(159, 29);
this.textBox2.Size = new System.Drawing.Size(288, 45);
this.textBox2.TabIndex = 3;
this.textBox2.Click += new System.EventHandler(this.textBox2_Click);
//
@ -83,11 +87,12 @@
//
this.button1.BackColor = System.Drawing.Color.LightSkyBlue;
this.button1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(231, 306);
this.button1.Location = new System.Drawing.Point(424, 536);
this.button1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(84, 38);
this.button1.Size = new System.Drawing.Size(154, 66);
this.button1.TabIndex = 4;
this.button1.Text = "登";
this.button1.Text = "登";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
@ -95,9 +100,10 @@
//
this.button2.BackColor = System.Drawing.Color.LightSkyBlue;
this.button2.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button2.Location = new System.Drawing.Point(387, 306);
this.button2.Location = new System.Drawing.Point(710, 536);
this.button2.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(83, 38);
this.button2.Size = new System.Drawing.Size(152, 66);
this.button2.TabIndex = 5;
this.button2.Text = "取消";
this.button2.UseVisualStyleBackColor = false;
@ -108,8 +114,9 @@
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(703, 453);
this.pictureBox1.Size = new System.Drawing.Size(1289, 793);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 6;
this.pictureBox1.TabStop = false;
@ -117,9 +124,9 @@
//
// FrmLogin
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(703, 453);
this.ClientSize = new System.Drawing.Size(1289, 793);
this.Controls.Add(this.label2);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.textBox2);
@ -127,6 +134,7 @@
this.Controls.Add(this.button2);
this.Controls.Add(this.label1);
this.Controls.Add(this.pictureBox1);
this.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.Name = "FrmLogin";
this.Text = "登录";
this.Load += new System.EventHandler(this.FrmLogin_Load);

10
InjectionPC/FrmLogin.cs

@ -90,11 +90,19 @@ namespace InjectionPC
DataTable dt=bll.SearchInfoByNameAndPsw(textBox1.Text.Trim(),stationID,textBox2.Text.Trim());
if (dt!=null && dt.Rows.Count >0)
{
try
{
this.Visible = false;
Form fr=new FrmBarCode();
//Form fr = new FrmBarCode();
Form fr=new FrmBarCodeNew();
//Form fr = new FrmQuality();
fr.Show();
}
catch(Exception ex)
{
}
}
else

11
InjectionPC/InjectionPC.csproj

@ -86,6 +86,12 @@
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="FrmBarCodeNew.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmBarCodeNew.Designer.cs">
<DependentUpon>FrmBarCodeNew.cs</DependentUpon>
</Compile>
<Compile Include="FrmDown.cs">
<SubType>Form</SubType>
</Compile>
@ -119,6 +125,9 @@
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmBarCodeNew.resx">
<DependentUpon>FrmBarCodeNew.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmBarCode.resx">
<DependentUpon>FrmBarCode.cs</DependentUpon>
</EmbeddedResource>
@ -153,7 +162,7 @@
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<None Include="Report\111 - 副本2.grf">
<None Include="Report\111 - 副本.grf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Report\称重.xlsx">

55
InjectionPC/Program.cs

@ -4,6 +4,7 @@ using System.Linq;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
using System.Text;
namespace InjectionPC
{
@ -37,6 +38,16 @@ namespace InjectionPC
{
bool isRuned;
System.Threading.Mutex mutex = new System.Threading.Mutex(true, "OnlyRunOneInstance", out isRuned);
//处理UI线程异常
Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
//处理非UI线程异常
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
if (isRuned)
{
Application.EnableVisualStyles();
@ -92,5 +103,49 @@ namespace InjectionPC
}
}
}
static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
{
string str = GetExceptionMsg(e.Exception, e.ToString());
MessageBox.Show(str);
//LogManager.WriteLog(str);
}
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
string str = GetExceptionMsg(e.ExceptionObject as Exception, e.ToString());
MessageBox.Show(str);
//LogManager.WriteLog(str);
}
static string GetExceptionMsg(Exception ex, string backStr)
{
StringBuilder sb = new StringBuilder();
sb.AppendLine("****************************异常文本****************************");
sb.AppendLine("【出现时间】:" + DateTime.Now.ToString());
if (ex != null)
{
sb.AppendLine("【异常类型】:" + ex.GetType().Name);
sb.AppendLine("【异常信息】:" + ex.Message);
sb.AppendLine("【堆栈调用】:" + ex.StackTrace);
}
else
{
sb.AppendLine("【未处理异常】:" + backStr);
}
sb.AppendLine("***************************************************************");
return sb.ToString();
}
}
}

0
InjectionPC/Report/111 - 副本2.grf → InjectionPC/Report/111 - 副本.grf

43
InjectionSearch/Form1.Designer.cs

@ -42,9 +42,10 @@
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(1, 0);
this.pictureBox1.Location = new System.Drawing.Point(2, 0);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(704, 456);
this.pictureBox1.Size = new System.Drawing.Size(1291, 798);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
@ -54,27 +55,30 @@
this.label2.AutoSize = true;
this.label2.BackColor = System.Drawing.Color.Transparent;
this.label2.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(224, 234);
this.label2.Location = new System.Drawing.Point(411, 410);
this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(47, 19);
this.label2.Size = new System.Drawing.Size(83, 34);
this.label2.TabIndex = 7;
this.label2.Text = "密码";
//
// textBox1
//
this.textBox1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox1.Location = new System.Drawing.Point(304, 172);
this.textBox1.Location = new System.Drawing.Point(557, 301);
this.textBox1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(159, 29);
this.textBox1.Size = new System.Drawing.Size(288, 45);
this.textBox1.TabIndex = 8;
//
// textBox2
//
this.textBox2.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox2.Location = new System.Drawing.Point(304, 234);
this.textBox2.Location = new System.Drawing.Point(557, 410);
this.textBox2.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.textBox2.Name = "textBox2";
this.textBox2.PasswordChar = '*';
this.textBox2.Size = new System.Drawing.Size(159, 29);
this.textBox2.Size = new System.Drawing.Size(288, 45);
this.textBox2.TabIndex = 9;
this.textBox2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox2_KeyDown);
//
@ -82,11 +86,12 @@
//
this.button1.BackColor = System.Drawing.Color.LightSkyBlue;
this.button1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(239, 293);
this.button1.Location = new System.Drawing.Point(438, 513);
this.button1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(84, 38);
this.button1.Size = new System.Drawing.Size(154, 66);
this.button1.TabIndex = 10;
this.button1.Text = "登";
this.button1.Text = "登";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
@ -94,28 +99,31 @@
//
this.button2.BackColor = System.Drawing.Color.LightSkyBlue;
this.button2.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button2.Location = new System.Drawing.Point(395, 293);
this.button2.Location = new System.Drawing.Point(724, 513);
this.button2.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(83, 38);
this.button2.Size = new System.Drawing.Size(152, 66);
this.button2.TabIndex = 11;
this.button2.Text = "取消";
this.button2.UseVisualStyleBackColor = false;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(224, 181);
this.label1.Location = new System.Drawing.Point(411, 317);
this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(66, 19);
this.label1.Size = new System.Drawing.Size(117, 34);
this.label1.TabIndex = 6;
this.label1.Text = "用户名";
//
// FrmLogin
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(703, 453);
this.ClientSize = new System.Drawing.Size(1289, 793);
this.Controls.Add(this.label2);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.textBox2);
@ -123,6 +131,7 @@
this.Controls.Add(this.button2);
this.Controls.Add(this.label1);
this.Controls.Add(this.pictureBox1);
this.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.Name = "FrmLogin";
this.Text = "登录";
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();

7
InjectionSearch/Form1.cs

@ -66,7 +66,7 @@ namespace InjectionSearch
DataTable dt = bll.SearchInfoByNameAndPsw(textBox1.Text.Trim(), stationID, textBox2.Text.Trim());
if (dt != null && dt.Rows.Count > 0)
{
Form fr = new FrmBarCodeSearch();
Form fr = new FrmBarCodeSearchNew();
fr.Show();
this.Hide();
}
@ -106,5 +106,10 @@ namespace InjectionSearch
Login();
}
}
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
}
}

1
InjectionSearch/FrmBarCodeSearch.cs

@ -65,6 +65,7 @@ namespace InjectionSearch
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(comboBox1.Text) || comboBox1.Text.Length<10) return;
string stockNo = comboBox1.Text.Substring(0, 10);
ProductBLL bll=new ProductBLL();

445
InjectionSearch/FrmBarCodeSearchNew.Designer.cs

@ -0,0 +1,445 @@
namespace InjectionSearch
{
partial class FrmBarCodeSearchNew
{
/// <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()
{
GlacialComponents.Controls.GLColumn glColumn1 = new GlacialComponents.Controls.GLColumn();
GlacialComponents.Controls.GLColumn glColumn2 = new GlacialComponents.Controls.GLColumn();
GlacialComponents.Controls.GLColumn glColumn3 = new GlacialComponents.Controls.GLColumn();
GlacialComponents.Controls.GLColumn glColumn4 = new GlacialComponents.Controls.GLColumn();
GlacialComponents.Controls.GLColumn glColumn5 = new GlacialComponents.Controls.GLColumn();
GlacialComponents.Controls.GLColumn glColumn6 = new GlacialComponents.Controls.GLColumn();
this.label1 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.label7 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.textBox4 = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox();
this.label19 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
this.label6 = new System.Windows.Forms.Label();
this.textBox5 = new System.Windows.Forms.TextBox();
this.glacialList1 = new GlacialComponents.Controls.GlacialList();
this.panel1.SuspendLayout();
this.panel3.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold);
this.label1.Location = new System.Drawing.Point(90, 59);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(103, 29);
this.label1.TabIndex = 0;
this.label1.Text = "产品:";
//
// comboBox1
//
this.comboBox1.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold);
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(222, 57);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(627, 37);
this.comboBox1.TabIndex = 1;
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold);
this.label2.Location = new System.Drawing.Point(85, 109);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(133, 29);
this.label2.TabIndex = 2;
this.label2.Text = "零件号:";
//
// textBox1
//
this.textBox1.Enabled = false;
this.textBox1.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold);
this.textBox1.Location = new System.Drawing.Point(222, 101);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(239, 41);
this.textBox1.TabIndex = 3;
//
// textBox2
//
this.textBox2.Enabled = false;
this.textBox2.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold);
this.textBox2.Location = new System.Drawing.Point(222, 152);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(627, 41);
this.textBox2.TabIndex = 4;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold);
this.label3.Location = new System.Drawing.Point(90, 163);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(103, 29);
this.label3.TabIndex = 5;
this.label3.Text = "原料:";
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Aquamarine;
this.panel1.Controls.Add(this.comboBox2);
this.panel1.Controls.Add(this.label7);
this.panel1.Controls.Add(this.label16);
this.panel1.Controls.Add(this.label5);
this.panel1.Controls.Add(this.textBox4);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.textBox3);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.comboBox1);
this.panel1.Controls.Add(this.textBox2);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.textBox1);
this.panel1.Location = new System.Drawing.Point(185, 541);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(936, 317);
this.panel1.TabIndex = 6;
//
// comboBox2
//
this.comboBox2.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold);
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Location = new System.Drawing.Point(222, 8);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(206, 37);
this.comboBox2.TabIndex = 12;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold);
this.label7.Location = new System.Drawing.Point(90, 16);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(103, 29);
this.label7.TabIndex = 11;
this.label7.Text = "机台:";
//
// label16
//
this.label16.AutoSize = true;
this.label16.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label16.Location = new System.Drawing.Point(490, 210);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(141, 29);
this.label16.TabIndex = 10;
this.label16.Text = "(yyMMdd)";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold);
this.label5.Location = new System.Drawing.Point(86, 259);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(103, 29);
this.label5.TabIndex = 8;
this.label5.Text = "数量:";
//
// textBox4
//
this.textBox4.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold);
this.textBox4.Location = new System.Drawing.Point(222, 259);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(239, 41);
this.textBox4.TabIndex = 9;
this.textBox4.Text = "1000";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold);
this.label4.Location = new System.Drawing.Point(80, 219);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(133, 29);
this.label4.TabIndex = 6;
this.label4.Text = "批次号:";
//
// textBox3
//
this.textBox3.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold);
this.textBox3.Location = new System.Drawing.Point(222, 207);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(239, 41);
this.textBox3.TabIndex = 7;
//
// label19
//
this.label19.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label19.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label19.Location = new System.Drawing.Point(1186, 541);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(73, 317);
this.label19.TabIndex = 17;
this.label19.Text = "打印条码";
this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label19.Click += new System.EventHandler(this.label19_Click);
//
// label11
//
this.label11.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label11.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label11.Location = new System.Drawing.Point(2, 541);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(182, 317);
this.label11.TabIndex = 18;
this.label11.Text = "打印信息:";
this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label10
//
this.label10.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label10.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label10.Location = new System.Drawing.Point(2, 66);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(182, 475);
this.label10.TabIndex = 19;
this.label10.Text = "打印记录:";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label18
//
this.label18.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label18.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label18.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label18.Location = new System.Drawing.Point(1114, 541);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(73, 317);
this.label18.TabIndex = 20;
this.label18.Text = "补打";
this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label18.Click += new System.EventHandler(this.label18_Click);
//
// panel3
//
this.panel3.BackColor = System.Drawing.SystemColors.Control;
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.button1);
this.panel3.Controls.Add(this.label6);
this.panel3.Controls.Add(this.textBox5);
this.panel3.Location = new System.Drawing.Point(2, 2);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1250, 61);
this.panel3.TabIndex = 22;
//
// button1
//
this.button1.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold);
this.button1.Location = new System.Drawing.Point(1074, 10);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(95, 43);
this.button1.TabIndex = 6;
this.button1.Text = "查询";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold);
this.label6.Location = new System.Drawing.Point(477, 12);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(133, 29);
this.label6.TabIndex = 4;
this.label6.Text = "条码号:";
//
// textBox5
//
this.textBox5.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold);
this.textBox5.Location = new System.Drawing.Point(626, 9);
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(415, 41);
this.textBox5.TabIndex = 5;
//
// glacialList1
//
this.glacialList1.AllowColumnResize = true;
this.glacialList1.AllowMultiselect = false;
this.glacialList1.AlternateBackground = System.Drawing.Color.DarkGreen;
this.glacialList1.AlternatingColors = false;
this.glacialList1.AutoHeight = true;
this.glacialList1.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.glacialList1.BackgroundStretchToFit = true;
glColumn1.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None;
glColumn1.CheckBoxes = false;
glColumn1.ImageIndex = -1;
glColumn1.Name = "Column1";
glColumn1.NumericSort = false;
glColumn1.Text = "条码";
glColumn1.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
glColumn1.Width = 200;
glColumn2.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None;
glColumn2.CheckBoxes = false;
glColumn2.ImageIndex = -1;
glColumn2.Name = "Column2";
glColumn2.NumericSort = false;
glColumn2.Text = "产品名称";
glColumn2.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
glColumn2.Width = 150;
glColumn3.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None;
glColumn3.CheckBoxes = false;
glColumn3.ImageIndex = -1;
glColumn3.Name = "Column3";
glColumn3.NumericSort = false;
glColumn3.Text = "打印方式";
glColumn3.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
glColumn3.Width = 80;
glColumn4.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None;
glColumn4.CheckBoxes = false;
glColumn4.ImageIndex = -1;
glColumn4.Name = "Column4";
glColumn4.NumericSort = false;
glColumn4.Text = "打印时间";
glColumn4.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
glColumn4.Width = 220;
glColumn5.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None;
glColumn5.CheckBoxes = false;
glColumn5.ImageIndex = -1;
glColumn5.Name = "Column2x";
glColumn5.NumericSort = false;
glColumn5.Text = "原料名称";
glColumn5.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
glColumn5.Width = 250;
glColumn6.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None;
glColumn6.CheckBoxes = false;
glColumn6.ImageIndex = -1;
glColumn6.Name = "Column3x";
glColumn6.NumericSort = false;
glColumn6.Text = "原料批次";
glColumn6.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
glColumn6.Width = 160;
this.glacialList1.Columns.AddRange(new GlacialComponents.Controls.GLColumn[] {
glColumn1,
glColumn2,
glColumn3,
glColumn4,
glColumn5,
glColumn6});
this.glacialList1.ControlStyle = GlacialComponents.Controls.GLControlStyles.Normal;
this.glacialList1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.glacialList1.FullRowSelect = true;
this.glacialList1.GridColor = System.Drawing.Color.DeepSkyBlue;
this.glacialList1.GridLines = GlacialComponents.Controls.GLGridLines.gridBoth;
this.glacialList1.GridLineStyle = GlacialComponents.Controls.GLGridLineStyles.gridSolid;
this.glacialList1.GridTypes = GlacialComponents.Controls.GLGridTypes.gridNormal;
this.glacialList1.HeaderHeight = 40;
this.glacialList1.HeaderVisible = true;
this.glacialList1.HeaderWordWrap = false;
this.glacialList1.HotColumnTracking = false;
this.glacialList1.HotItemTracking = false;
this.glacialList1.HotTrackingColor = System.Drawing.Color.LightGray;
this.glacialList1.HoverEvents = false;
this.glacialList1.HoverTime = 1;
this.glacialList1.ImageList = null;
this.glacialList1.ItemHeight = 21;
this.glacialList1.ItemWordWrap = false;
this.glacialList1.Location = new System.Drawing.Point(185, 65);
this.glacialList1.Name = "glacialList1";
this.glacialList1.Selectable = true;
this.glacialList1.SelectedTextColor = System.Drawing.Color.White;
this.glacialList1.SelectionColor = System.Drawing.Color.Lime;
this.glacialList1.ShowBorder = true;
this.glacialList1.ShowFocusRect = false;
this.glacialList1.Size = new System.Drawing.Size(1074, 473);
this.glacialList1.SortType = GlacialComponents.Controls.SortTypes.InsertionSort;
this.glacialList1.SuperFlatHeaderColor = System.Drawing.Color.White;
this.glacialList1.TabIndex = 23;
this.glacialList1.Text = "glacialList1";
//
// FrmBarCodeSearch
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1264, 861);
this.Controls.Add(this.glacialList1);
this.Controls.Add(this.panel3);
this.Controls.Add(this.label18);
this.Controls.Add(this.label10);
this.Controls.Add(this.label11);
this.Controls.Add(this.label19);
this.Controls.Add(this.panel1);
this.Name = "FrmBarCodeSearch";
this.Text = "条码信息";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmBarCodeSearch_FormClosing);
this.Load += new System.EventHandler(this.FrmBarCodeSearch_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox textBox5;
private GlacialComponents.Controls.GlacialList glacialList1;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.Label label7;
}
}

566
InjectionSearch/FrmBarCodeSearchNew.cs

@ -0,0 +1,566 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using grproLib;
using MESClassLibrary.BLL.BasicInfo;
using MESClassLibrary.BLL.Log;
using MESClassLibrary.DAL;
using MESClassLibrary.Model;
using DataTable = System.Data.DataTable;
namespace InjectionSearch
{
public partial class FrmBarCodeSearchNew : Form
{
private string _printTemplateName = string.Empty;
private DataTable _stationTable = null;
public FrmBarCodeSearchNew()
{
InitializeComponent();
_printTemplateName = Application.StartupPath + "\\Report\\P02 - 副本.grf";
}
private void initProduct()
{
comboBox1.Items.Clear();
ProductBLL bll = new ProductBLL();
DataTable dt = bll.SearchInfoAllByType("2000");
if (dt != null && dt.Rows.Count > 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
comboBox1.Items.Add(dt.Rows[i]["StockNo"].ToString() +"--"+dt.Rows[i]["ProductName"].ToString());
}
}
dt.Dispose();
}
private void initBarCode()
{
BarCodeBLL bll = new BarCodeBLL();
glacialList1.Items.Clear();
DataTable dt = bll.SearchBarCode();
if (dt != null && dt.Rows.Count > 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
glacialList1.Items.Add(i.ToString());
glacialList1.Items[i].SubItems[0].Text = dt.Rows[i]["BarCode"].ToString();
glacialList1.Items[i].SubItems[1].Text = dt.Rows[i]["ProductName"].ToString();
glacialList1.Items[i].SubItems[2].Text = dt.Rows[i]["PrintType"].ToString();
glacialList1.Items[i].SubItems[3].Text = dt.Rows[i]["PrintTime"].ToString() == "" ? "" : Convert.ToDateTime(dt.Rows[i]["PrintTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss.fff");
glacialList1.Items[i].SubItems[4].Text = dt.Rows[i]["MaterialName"].ToString();
glacialList1.Items[i].SubItems[5].Text = dt.Rows[i]["BatchNo"].ToString();
}
}
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(comboBox1.Text) || comboBox1.Text.Length < 10) return;
string stockNo = comboBox1.Text.Substring(0, 10);
ProductBLL bll=new ProductBLL();
BomBLL bombll=new BomBLL();
DataTable dt = bll.SearchInfoByStock(stockNo);
if (dt != null && dt.Rows.Count > 0)
{
textBox1.Text = dt.Rows[0]["PartNo"].ToString();
dt.Dispose();
}
else
{
textBox1.Text = "";
}
DataTable dt1 = bombll.SearchBom(textBox1.Text);
if (dt1 != null && dt1.Rows.Count > 0)
{
textBox2.Text = dt1.Rows[0]["PartNo2"].ToString();
dt.Dispose();
}
else
{
textBox2.Text = "";
}
}
private void FrmBarCodeSearch_Load(object sender, EventArgs e)
{
initProduct();
initBarCode();
comboBox2.Items.Clear();
comboBox2.Items.Add("IM01");
comboBox2.Items.Add("IM02");
comboBox2.Items.Add("IM03");
comboBox2.Items.Add("IM04");
comboBox2.Items.Add("IM05");
comboBox2.Items.Add("IM06");
StationBLL sbll = new StationBLL();
_stationTable = sbll.SearchAllInfo();
}
private void label18_Click(object sender, EventArgs e)
{
string code = "";
BarCodeModel md = new BarCodeModel();
BarCodeBLL bll = new BarCodeBLL();
ProductBLL pbll=new ProductBLL();
try
{
if (glacialList1.SelectedItems.Count == 0)
{
MessageBox.Show("请选择要补打的条码!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
else
{
GlacialComponents.Controls.GLItem gv;
gv = glacialList1.SelectedItems[0] as GlacialComponents.Controls.GLItem;
code = gv.Text;
DataTable dt = bll.SearchInfoByBarCode(code);
if (dt != null && dt.Rows.Count > 0)
{
md.ID = Guid.NewGuid().ToString();
md.BarCode = code;
md.StationID = Program.StationID;
md.StockNo = dt.Rows[0]["StockNo"].ToString();
md.OneBarCode = dt.Rows[0]["OneBarCode"].ToString();
md.StationID2 = dt.Rows[0]["StationID"].ToString();
md.PrintType = 2;
DataTable pdt = pbll.SearchIsImportByStockNo(md.StockNo);
if (pdt != null && pdt.Rows.Count > 0)
{
if (pdt.Rows[0]["isImport"].ToString() == "1")
{
md.Import = "国产料Kingfa";
}
else
{
md.Import = "";
}
}
//if (md.StockNo == "2200000064" || md.StockNo == "2200000093" || md.StockNo == "2200000096" ||
// md.StockNo == "2200000052")
//{
// md.Import = "国产料Kingfa";
//}
//else
//{
// md.Import = "";
//}
}
dt.Dispose();
bll.Add_Info(md);
#region 打印条码
GridppReport report = new GridppReport();
report.Register("");
//report.LoadFromFile(@"D:\P02 - 副本.grf");
report.LoadFromFile(_printTemplateName);
report.ConnectionString = ConfigurationManager.ConnectionStrings["report"].ToString();
//report.PrintPreview(true);
report.Print(false);
#endregion
bll.Update_Info(md);
initBarCode();
}
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
}
}
public DateTime GetDateTime()
{
string sql = "";
DateTime time;
DataTable dt;
try
{
sql = @"select getdate() as time";
dt = SqlHelper.ExecuteDataset(SqlHelper.GetConnSting(), CommandType.Text, sql, null).Tables[0];
if (dt != null && dt.Rows.Count > 0)
{
time = Convert.ToDateTime(dt.Rows[0]["time"].ToString());
}
else
{
time = DateTime.Now;
}
return time;
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return DateTime.Now;
}
}
private static bool IsNumeric(string str)
{
System.Text.RegularExpressions.Regex reg1 = new System.Text.RegularExpressions.Regex(@"^[0-9]\d*$");
return reg1.IsMatch(str);
}
private void label19_Click(object sender, EventArgs e)
{
string code = "", stationID = "", OneCode = "";
string newcode = "", partNo = "", stockNo = "", NewOneCode = "";
try
{
#region 数据合法性判断
if (comboBox2.Text.Trim() == "")
{
MessageBox.Show("请选择机台!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
if (comboBox1.Text.Trim() == "")
{
MessageBox.Show("请选择产品!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
if (textBox3.Text.Trim() == "")
{
MessageBox.Show("请输入批次!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
if (textBox3.Text.Trim().Length != 6)
{
MessageBox.Show("输入批次格式错误(yyMMdd)!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
DateTime dt = DateTime.Now;
if (DateTime.TryParse("20" + textBox3.Text.Trim().Substring(0, 2) + "-" + textBox3.Text.Trim().Substring(2, 2) + "-" + textBox3.Text.Trim().Substring(4, 2), out dt) == false)
{
MessageBox.Show("批次格式错误", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
if (textBox4.Text.Trim() == "")
{
MessageBox.Show("请输入数量!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
if (textBox1.Text.Trim() == "")
{
MessageBox.Show("零件号不能为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
if (!IsNumeric(textBox4.Text.Trim()))
{
MessageBox.Show("数量格式不正确!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
if (Convert.ToInt32(textBox4.Text.Trim()) > 1000)
{
MessageBox.Show("数量不能大于1000!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
#endregion
#region 获取工位编号
// StationBLL sbll = new StationBLL();
// DataTable sdt = sbll.SearchInfoByNo(comboBox2.Text.Trim());
List<DataRow> stationList = _stationTable.AsEnumerable().Where(p => p.Field<string>("StationNo") == comboBox2.Text.Trim()).ToList();
if (stationList != null && stationList.Count > 0)
{
stationID = stationList[0]["StationID"].ToString();
}
//sdt.Dispose();
#endregion
DialogResult result = MessageBox.Show("确定手工打印条码?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
if (result == DialogResult.OK)
{
#region 生成条码
ProductBLL pbll = new ProductBLL();
//查询零件号
stockNo = comboBox1.Text.Substring(0, 10);
partNo = textBox1.Text.Trim();
//根据零件号、批次号查找
BarCodeBLL bll = new BarCodeBLL();
BarCodeModel md = new BarCodeModel();
for (int i = 1; i <= Convert.ToInt32(textBox4.Text.Trim()); i++)
{
string batch = textBox3.Text.Trim();
NewOneCode = BasicDAL.GetSjBarCodeSerialNo(stockNo, batch);
newcode = partNo + "." + batch + "." + NewOneCode.Substring(16, 4);
string[] part = newcode.Split('.');
//存入tb_BarCode表
md.ID = Guid.NewGuid().ToString();
md.StationID = Program.StationID;
md.StationID2 = stationID;
md.OneBarCode = NewOneCode;
md.BarCode = newcode;
md.BatchNo = batch;
md.StockNo = stockNo;
md.PrintType = 1;
DataTable pdt = pbll.SearchIsImportByStockNo(stockNo);
if (pdt != null && pdt.Rows.Count > 0)
{
if (pdt.Rows[0]["isImport"].ToString() == "1")
{
md.Import = "国产料Kingfa";
}
else
{
md.Import = "";
}
}
if (bll.Add_Info(md))
{
#region 打印条码
GridppReport report = new GridppReport();
report.Register("");
//report.LoadFromFile(@"D:\P02.grf");
//report.LoadFromFile(@"D:\P02 - 副本.grf");
report.LoadFromFile(_printTemplateName);
report.ConnectionString = ConfigurationManager.ConnectionStrings["report"].ToString();
//report.PrintPreview(true);
report.Print(false);
#endregion
bll.Update_Info(md);
}
}
// //DataTable dt = bll.SearchSerialNoByBarCode(partNo + "." + textBox3.Text.Trim());
// //DataTable dt = bll.SearchInfoByStock(stockNo);
// DataTable dt = bll.SearchSerialNoByBarCode(stockNo, textBox3.Text.Trim());
//if (dt != null && dt.Rows.Count > 0)
//{
// OneCode = dt.Rows[0]["OneBarCode"].ToString().Trim();
// code = dt.Rows[0]["BarCode"].ToString().TrimEnd();
// for (int i = 1; i <= Convert.ToInt32(textBox4.Text.Trim()); i++)
// {
// newcode = code.Substring(0, code.Length - 4) +
// (Convert.ToInt32(code.Substring(code.Length - 4, 4)) + i)
// .ToString()
// .PadLeft(4, '0');
// NewOneCode = OneCode.Substring(0, OneCode.Length - 4) +
// (Convert.ToInt32(OneCode.Substring(OneCode.Length - 4, 4)) + i).ToString()
// .PadLeft(4, '0');
// string[] part = newcode.Split('.');
// //存入tb_BarCode表
// md.ID = Guid.NewGuid().ToString();
// md.StationID = Program.StationID;
// md.StationID2 = stationID;
// md.OneBarCode = NewOneCode;
// md.BarCode = newcode;
// md.BatchNo= textBox3.Text.Trim();
// md.StockNo = stockNo;
// md.PrintType = 1;
// DataTable pdt = pbll.SearchIsImportByStockNo(stockNo);
// if (pdt != null && pdt.Rows.Count > 0)
// {
// if (pdt.Rows[0]["isImport"].ToString() == "1")
// {
// md.Import = "国产料Kingfa";
// }
// else
// {
// md.Import = "";
// }
// }
// //if (NewOneCode.Substring(0, 10) == "2200000064" ||
// // NewOneCode.Substring(0, 10) == "2200000093" ||
// // NewOneCode.Substring(0, 10) == "2200000096" ||
// // NewOneCode.Substring(0, 10) == "2200000084" ||
// // NewOneCode.Substring(0, 10) == "2200000090" ||
// // NewOneCode.Substring(0, 10) == "2200000052")
// //{
// // md.Import = "国产料Kingfa";
// //}
// //else
// //{
// // md.Import = "";
// //}
// if (bll.Add_Info(md))
// {
// #region 打印条码
// GridppReport report = new GridppReport();
// report.Register("");
// //report.LoadFromFile(@"D:\P02.grf");
// report.LoadFromFile(@"D:\P02 - 副本.grf");
// report.ConnectionString = ConfigurationManager.ConnectionStrings["report"].ToString();
// //report.PrintPreview(true);
// report.Print(false);
// #endregion
// bll.Update_Info(md);
// }
// }
//}
//else
//{
// for (int i = 1; i <= Convert.ToInt32(textBox4.Text.Trim()); i++)
// {
// newcode = partNo + "." + textBox3.Text.Trim() + "." + i.ToString().PadLeft(4, '0');
// NewOneCode = stockNo + textBox3.Text.Trim() + i.ToString().PadLeft(4, '0');
// string[] part = newcode.Split('.');
// //存入tb_BarCode表
// md.ID = Guid.NewGuid().ToString();
// md.StationID = Program.StationID;
// md.StationID2 = stationID;
// md.StockNo = stockNo;
// md.OneBarCode = NewOneCode;
// md.BarCode = newcode;
// md.PrintType = 1;
// md.BatchNo = textBox3.Text.Trim();
// DataTable pdt = pbll.SearchIsImportByStockNo(stockNo);
// if (pdt != null && pdt.Rows.Count > 0)
// {
// if (pdt.Rows[0]["isImport"].ToString() == "1")
// {
// md.Import = "国产料Kingfa";
// }
// else
// {
// md.Import = "";
// }
// }
// bll.Add_Info(md);
// #region 打印条码
// GridppReport report = new GridppReport();
// report.Register("");
// //report.LoadFromFile(@"D:\P02.grf");
// report.LoadFromFile(@"D:\P02 - 副本.grf");
// report.ConnectionString = ConfigurationManager.ConnectionStrings["report"].ToString();
// //report.PrintPreview(true);
// report.Print(false);
// #endregion
// bll.Update_Info(md);
// }
//}
#endregion
initBarCode();
}
else
{
return;
}
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
}
}
private void button1_Click(object sender, EventArgs e)
{
BarCodeBLL bll = new BarCodeBLL();
DataTable dt = null;
try
{
glacialList1.Items.Clear();
if (textBox5.Text.Trim() == "")
{
dt = bll.SearchBarCode();
}
else
{
if (textBox5.Text.Trim().Length == 20)
{
dt = bll.SearchBarCodeByOne(textBox5.Text.Trim());
}
else
{
dt = bll.SearchBarCodeByTwo(textBox5.Text.Trim());
}
}
if (dt != null && dt.Rows.Count > 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
glacialList1.Items.Add(i.ToString());
glacialList1.Items[i].SubItems[0].Text = dt.Rows[i]["BarCode"].ToString();
glacialList1.Items[i].SubItems[1].Text = dt.Rows[i]["ProductName"].ToString();
glacialList1.Items[i].SubItems[2].Text = dt.Rows[i]["PrintType"].ToString();
glacialList1.Items[i].SubItems[3].Text = dt.Rows[i]["PrintTime"].ToString() == "" ? "" : Convert.ToDateTime(dt.Rows[i]["PrintTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss.fff");
glacialList1.Items[i].SubItems[4].Text = dt.Rows[i]["MaterialName"].ToString();
glacialList1.Items[i].SubItems[5].Text = dt.Rows[i]["BatchNo"].ToString();
}
}
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
}
}
private void FrmBarCodeSearch_FormClosing(object sender, FormClosingEventArgs e)
{
Application.Exit();
}
}
}

12
InjectionSearch/InjectionSearch.csproj

@ -70,6 +70,12 @@
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="FrmBarCodeSearchNew.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmBarCodeSearchNew.Designer.cs">
<DependentUpon>FrmBarCodeSearchNew.cs</DependentUpon>
</Compile>
<Compile Include="FrmBarCodeSearch.cs">
<SubType>Form</SubType>
</Compile>
@ -81,6 +87,9 @@
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmBarCodeSearchNew.resx">
<DependentUpon>FrmBarCodeSearchNew.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmBarCodeSearch.resx">
<DependentUpon>FrmBarCodeSearch.cs</DependentUpon>
</EmbeddedResource>
@ -103,6 +112,9 @@
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<None Include="Report\P02 - 副本.grf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="App.config">

56
InjectionSearch/Program.cs

@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@ -27,6 +28,14 @@ namespace InjectionSearch
bool isRuned;
System.Threading.Mutex mutex = new System.Threading.Mutex(true, "OnlyRunOneInstance", out isRuned);
//处理UI线程异常
Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
//处理非UI线程异常
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
if (isRuned)
{
Application.EnableVisualStyles();
@ -39,5 +48,52 @@ namespace InjectionSearch
MessageBox.Show("程序已启动!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
{
string str = GetExceptionMsg(e.Exception, e.ToString());
MessageBox.Show(str);
//LogManager.WriteLog(str);
}
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
string str = GetExceptionMsg(e.ExceptionObject as Exception, e.ToString());
MessageBox.Show(str);
//LogManager.WriteLog(str);
}
static string GetExceptionMsg(Exception ex, string backStr)
{
StringBuilder sb = new StringBuilder();
sb.AppendLine("****************************异常文本****************************");
sb.AppendLine("【出现时间】:" + DateTime.Now.ToString());
if (ex != null)
{
sb.AppendLine("【异常类型】:" + ex.GetType().Name);
sb.AppendLine("【异常信息】:" + ex.Message);
sb.AppendLine("【堆栈调用】:" + ex.StackTrace);
}
else
{
sb.AppendLine("【未处理异常】:" + backStr);
}
sb.AppendLine("***************************************************************");
return sb.ToString();
}
}
}

BIN
InjectionSearch/Report/P02 - 副本.grf

Binary file not shown.

14
MESClassLibrary/BLL/BasicInfo/StationBLL.cs

@ -191,5 +191,19 @@ namespace MESClassLibrary.BLL.BasicInfo
return null;
}
}
public DataTable SearchAllInfo()
{
StationDAL db = new StationDAL();
try
{
return db.SearchInfoByNo();
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return null;
}
}
}
}

2
MESClassLibrary/BLL/User/UserBLL.cs

@ -28,7 +28,7 @@ namespace MESClassLibrary.BLL.User
}
#endregion
#region 登
#region 登
//DataTable dt = db.Search_UserInfoByUP(md.Username, Tool.MD5encryption(md.Password));
DataTable dt = db.Search_UserInfoByUP(md.Username, md.Password);
if (dt != null && dt.Rows.Count > 0)

41
MESClassLibrary/DAL/BasicDAL.cs

@ -47,5 +47,46 @@ namespace MESClassLibrary.DAL
}
}
/// <summary>
/// 生成流水号
/// </summary>
/// <param name="type">类型</param>
/// <param name="len">流水号长度</param>
/// <returns></returns>
public static string GetBillNo(string type, int len)
{
string sql = $"exec p_GetBillNo '{type}'";
DataTable dt = SqlHelper.ExecuteDataset(SqlHelper.GetConnSting(), CommandType.Text, sql).Tables[0];
int ret = Convert.ToInt32(dt.Rows[0]["value"].ToString());
return ret.ToString().PadLeft(len, '0');
}
/// <summary>
/// 生成最新的注塑条码
/// </summary>
/// <param name="stockNo"></param>
/// <param name="batch"></param>
/// <returns></returns>
public static string GetSjBarCodeSerialNo(string stockNo,string batch)
{
if(stockNo.Length != 10)
{
throw new Exception($"生成塑件条码错误,因为存货代码[{stockNo}]格式不正确,必须10位长度.");
}
string s = GetBillNo(stockNo + batch, 4);
string sjBarCode = stockNo + batch + s;
try
{
SqlHelper.ExecuteNonQuery(SqlHelper.GetConnSting(), CommandType.Text, $" insert into tb_BarCodeUnique(OneBarCode) values('{sjBarCode}')");
return sjBarCode;
}
catch(Exception ex)
{
return GetSjBarCodeSerialNo(stockNo, batch);
}
}
}
}

18
MESClassLibrary/DAL/BasicInfo/StationDAL.cs

@ -25,6 +25,24 @@ namespace MESClassLibrary.DAL.BasicInfo
param[0] = new SqlParameter("@StationNo", SqlDbType.VarChar);
param[0].Value = station;
return SqlHelper.ExecuteDataset(SqlHelper.GetConnSting(), CommandType.Text, sql, param).Tables[0];
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return null;
}
}
public DataTable SearchInfoByNo()
{
try
{
string sql = @"select * from " + TableName ;
SqlParameter[] param = new SqlParameter[0];
return SqlHelper.ExecuteDataset(SqlHelper.GetConnSting(), CommandType.Text, sql, param).Tables[0];
}

40
PaintingPrintBarCode/Login.Designer.cs

@ -44,26 +44,29 @@
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(703, 453);
this.pictureBox1.Size = new System.Drawing.Size(1289, 793);
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// textBox1
//
this.textBox1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox1.Location = new System.Drawing.Point(294, 191);
this.textBox1.Location = new System.Drawing.Point(539, 334);
this.textBox1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(159, 29);
this.textBox1.Size = new System.Drawing.Size(288, 45);
this.textBox1.TabIndex = 4;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(216, 194);
this.label1.Location = new System.Drawing.Point(396, 340);
this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(66, 19);
this.label1.Size = new System.Drawing.Size(117, 34);
this.label1.TabIndex = 3;
this.label1.Text = "用户名";
//
@ -72,30 +75,33 @@
this.label2.AutoSize = true;
this.label2.BackColor = System.Drawing.Color.Transparent;
this.label2.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(214, 241);
this.label2.Location = new System.Drawing.Point(392, 422);
this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(47, 19);
this.label2.Size = new System.Drawing.Size(83, 34);
this.label2.TabIndex = 6;
this.label2.Text = "密码";
//
// textBox2
//
this.textBox2.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox2.Location = new System.Drawing.Point(294, 241);
this.textBox2.Location = new System.Drawing.Point(539, 422);
this.textBox2.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.textBox2.Name = "textBox2";
this.textBox2.PasswordChar = '*';
this.textBox2.Size = new System.Drawing.Size(159, 29);
this.textBox2.Size = new System.Drawing.Size(288, 45);
this.textBox2.TabIndex = 7;
//
// button1
//
this.button1.BackColor = System.Drawing.Color.LightSkyBlue;
this.button1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(229, 300);
this.button1.Location = new System.Drawing.Point(420, 525);
this.button1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(84, 38);
this.button1.Size = new System.Drawing.Size(154, 66);
this.button1.TabIndex = 8;
this.button1.Text = "登";
this.button1.Text = "登";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
@ -103,9 +109,10 @@
//
this.button2.BackColor = System.Drawing.Color.LightSkyBlue;
this.button2.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button2.Location = new System.Drawing.Point(381, 300);
this.button2.Location = new System.Drawing.Point(699, 525);
this.button2.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(83, 38);
this.button2.Size = new System.Drawing.Size(152, 66);
this.button2.TabIndex = 9;
this.button2.Text = "取消";
this.button2.UseVisualStyleBackColor = false;
@ -113,9 +120,9 @@
//
// Login
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(703, 453);
this.ClientSize = new System.Drawing.Size(1289, 793);
this.Controls.Add(this.label2);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.button1);
@ -123,6 +130,7 @@
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.pictureBox1);
this.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.Name = "Login";
this.Text = "登录";
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();

2
PunchAssemble/PunchAndWeld/BusinessHelper.cs

@ -10,7 +10,7 @@ namespace PunchAndWeld
public class BusinessHelper
{
/// <summary>
/// 补打
/// 补打标签后
/// </summary>
/// <param name="tb"></param>
public static void SetRePrint(TextBox tb)

Loading…
Cancel
Save