327 lines
14 KiB
C#
327 lines
14 KiB
C#
|
|
|
|||
|
|
namespace YBDevice.PrintTool
|
|||
|
|
{
|
|||
|
|
partial class Form1
|
|||
|
|
{
|
|||
|
|
/// <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.button1 = new System.Windows.Forms.Button();
|
|||
|
|
this.button2 = new System.Windows.Forms.Button();
|
|||
|
|
this.listBox1 = new System.Windows.Forms.ListBox();
|
|||
|
|
this.label1 = new System.Windows.Forms.Label();
|
|||
|
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
|||
|
|
this.button3 = new System.Windows.Forms.Button();
|
|||
|
|
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
|||
|
|
this.label2 = new System.Windows.Forms.Label();
|
|||
|
|
this.textBox_PaperWidth = new System.Windows.Forms.TextBox();
|
|||
|
|
this.label3 = new System.Windows.Forms.Label();
|
|||
|
|
this.label4 = new System.Windows.Forms.Label();
|
|||
|
|
this.textBox_PaperHeight = new System.Windows.Forms.TextBox();
|
|||
|
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
|||
|
|
this.textBox_x = new System.Windows.Forms.TextBox();
|
|||
|
|
this.label5 = new System.Windows.Forms.Label();
|
|||
|
|
this.textBox_y = new System.Windows.Forms.TextBox();
|
|||
|
|
this.label6 = new System.Windows.Forms.Label();
|
|||
|
|
this.richTextBox1_logger = new System.Windows.Forms.RichTextBox();
|
|||
|
|
this.comboBox_type = new System.Windows.Forms.ComboBox();
|
|||
|
|
this.label7 = new System.Windows.Forms.Label();
|
|||
|
|
this.label8 = new System.Windows.Forms.Label();
|
|||
|
|
this.textBox_marginw = new System.Windows.Forms.TextBox();
|
|||
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
|||
|
|
this.SuspendLayout();
|
|||
|
|
//
|
|||
|
|
// button1
|
|||
|
|
//
|
|||
|
|
this.button1.Location = new System.Drawing.Point(19, 31);
|
|||
|
|
this.button1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|||
|
|
this.button1.Name = "button1";
|
|||
|
|
this.button1.Size = new System.Drawing.Size(75, 23);
|
|||
|
|
this.button1.TabIndex = 0;
|
|||
|
|
this.button1.Text = "开启";
|
|||
|
|
this.button1.UseVisualStyleBackColor = true;
|
|||
|
|
this.button1.Click += new System.EventHandler(this.button1_Click);
|
|||
|
|
//
|
|||
|
|
// button2
|
|||
|
|
//
|
|||
|
|
this.button2.Location = new System.Drawing.Point(19, 81);
|
|||
|
|
this.button2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|||
|
|
this.button2.Name = "button2";
|
|||
|
|
this.button2.Size = new System.Drawing.Size(75, 23);
|
|||
|
|
this.button2.TabIndex = 1;
|
|||
|
|
this.button2.Text = "关闭";
|
|||
|
|
this.button2.UseVisualStyleBackColor = true;
|
|||
|
|
this.button2.Click += new System.EventHandler(this.button2_Click);
|
|||
|
|
//
|
|||
|
|
// listBox1
|
|||
|
|
//
|
|||
|
|
this.listBox1.FormattingEnabled = true;
|
|||
|
|
this.listBox1.ItemHeight = 12;
|
|||
|
|
this.listBox1.Location = new System.Drawing.Point(104, 31);
|
|||
|
|
this.listBox1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|||
|
|
this.listBox1.Name = "listBox1";
|
|||
|
|
this.listBox1.Size = new System.Drawing.Size(301, 208);
|
|||
|
|
this.listBox1.TabIndex = 2;
|
|||
|
|
//
|
|||
|
|
// label1
|
|||
|
|
//
|
|||
|
|
this.label1.AutoSize = true;
|
|||
|
|
this.label1.Location = new System.Drawing.Point(19, 133);
|
|||
|
|
this.label1.Name = "label1";
|
|||
|
|
this.label1.Size = new System.Drawing.Size(53, 12);
|
|||
|
|
this.label1.TabIndex = 3;
|
|||
|
|
this.label1.Text = "装箱台数";
|
|||
|
|
//
|
|||
|
|
// textBox1
|
|||
|
|
//
|
|||
|
|
this.textBox1.Location = new System.Drawing.Point(19, 161);
|
|||
|
|
this.textBox1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|||
|
|
this.textBox1.Name = "textBox1";
|
|||
|
|
this.textBox1.Size = new System.Drawing.Size(65, 21);
|
|||
|
|
this.textBox1.TabIndex = 4;
|
|||
|
|
this.textBox1.Text = "10";
|
|||
|
|
//
|
|||
|
|
// button3
|
|||
|
|
//
|
|||
|
|
this.button3.Location = new System.Drawing.Point(413, 213);
|
|||
|
|
this.button3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|||
|
|
this.button3.Name = "button3";
|
|||
|
|
this.button3.Size = new System.Drawing.Size(75, 23);
|
|||
|
|
this.button3.TabIndex = 6;
|
|||
|
|
this.button3.Text = "打印";
|
|||
|
|
this.button3.UseVisualStyleBackColor = true;
|
|||
|
|
this.button3.Click += new System.EventHandler(this.button3_Click);
|
|||
|
|
//
|
|||
|
|
// comboBox1
|
|||
|
|
//
|
|||
|
|
this.comboBox1.FormattingEnabled = true;
|
|||
|
|
this.comboBox1.Location = new System.Drawing.Point(413, 162);
|
|||
|
|
this.comboBox1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|||
|
|
this.comboBox1.Name = "comboBox1";
|
|||
|
|
this.comboBox1.Size = new System.Drawing.Size(86, 20);
|
|||
|
|
this.comboBox1.TabIndex = 7;
|
|||
|
|
//
|
|||
|
|
// label2
|
|||
|
|
//
|
|||
|
|
this.label2.AutoSize = true;
|
|||
|
|
this.label2.Location = new System.Drawing.Point(411, 143);
|
|||
|
|
this.label2.Name = "label2";
|
|||
|
|
this.label2.Size = new System.Drawing.Size(41, 12);
|
|||
|
|
this.label2.TabIndex = 8;
|
|||
|
|
this.label2.Text = "打印机";
|
|||
|
|
//
|
|||
|
|
// textBox_PaperWidth
|
|||
|
|
//
|
|||
|
|
this.textBox_PaperWidth.Location = new System.Drawing.Point(413, 51);
|
|||
|
|
this.textBox_PaperWidth.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|||
|
|
this.textBox_PaperWidth.Name = "textBox_PaperWidth";
|
|||
|
|
this.textBox_PaperWidth.Size = new System.Drawing.Size(86, 21);
|
|||
|
|
this.textBox_PaperWidth.TabIndex = 9;
|
|||
|
|
this.textBox_PaperWidth.Text = "200";
|
|||
|
|
//
|
|||
|
|
// label3
|
|||
|
|
//
|
|||
|
|
this.label3.AutoSize = true;
|
|||
|
|
this.label3.Location = new System.Drawing.Point(411, 31);
|
|||
|
|
this.label3.Name = "label3";
|
|||
|
|
this.label3.Size = new System.Drawing.Size(53, 12);
|
|||
|
|
this.label3.TabIndex = 10;
|
|||
|
|
this.label3.Text = "纸张宽度";
|
|||
|
|
//
|
|||
|
|
// label4
|
|||
|
|
//
|
|||
|
|
this.label4.AutoSize = true;
|
|||
|
|
this.label4.Location = new System.Drawing.Point(411, 92);
|
|||
|
|
this.label4.Name = "label4";
|
|||
|
|
this.label4.Size = new System.Drawing.Size(53, 12);
|
|||
|
|
this.label4.TabIndex = 11;
|
|||
|
|
this.label4.Text = "纸张高度";
|
|||
|
|
//
|
|||
|
|
// textBox_PaperHeight
|
|||
|
|
//
|
|||
|
|
this.textBox_PaperHeight.Location = new System.Drawing.Point(413, 107);
|
|||
|
|
this.textBox_PaperHeight.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|||
|
|
this.textBox_PaperHeight.Name = "textBox_PaperHeight";
|
|||
|
|
this.textBox_PaperHeight.Size = new System.Drawing.Size(86, 21);
|
|||
|
|
this.textBox_PaperHeight.TabIndex = 12;
|
|||
|
|
this.textBox_PaperHeight.Text = "200";
|
|||
|
|
//
|
|||
|
|
// pictureBox1
|
|||
|
|
//
|
|||
|
|
this.pictureBox1.Location = new System.Drawing.Point(542, 31);
|
|||
|
|
this.pictureBox1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|||
|
|
this.pictureBox1.Name = "pictureBox1";
|
|||
|
|
this.pictureBox1.Size = new System.Drawing.Size(246, 242);
|
|||
|
|
this.pictureBox1.TabIndex = 13;
|
|||
|
|
this.pictureBox1.TabStop = false;
|
|||
|
|
//
|
|||
|
|
// textBox_x
|
|||
|
|
//
|
|||
|
|
this.textBox_x.Location = new System.Drawing.Point(84, 356);
|
|||
|
|
this.textBox_x.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|||
|
|
this.textBox_x.Name = "textBox_x";
|
|||
|
|
this.textBox_x.Size = new System.Drawing.Size(86, 21);
|
|||
|
|
this.textBox_x.TabIndex = 14;
|
|||
|
|
this.textBox_x.Text = "10";
|
|||
|
|
//
|
|||
|
|
// label5
|
|||
|
|
//
|
|||
|
|
this.label5.AutoSize = true;
|
|||
|
|
this.label5.Location = new System.Drawing.Point(19, 359);
|
|||
|
|
this.label5.Name = "label5";
|
|||
|
|
this.label5.Size = new System.Drawing.Size(59, 12);
|
|||
|
|
this.label5.TabIndex = 15;
|
|||
|
|
this.label5.Text = "图片X偏移";
|
|||
|
|
//
|
|||
|
|
// textBox_y
|
|||
|
|
//
|
|||
|
|
this.textBox_y.Location = new System.Drawing.Point(252, 356);
|
|||
|
|
this.textBox_y.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|||
|
|
this.textBox_y.Name = "textBox_y";
|
|||
|
|
this.textBox_y.Size = new System.Drawing.Size(86, 21);
|
|||
|
|
this.textBox_y.TabIndex = 16;
|
|||
|
|
this.textBox_y.Text = "10";
|
|||
|
|
//
|
|||
|
|
// label6
|
|||
|
|
//
|
|||
|
|
this.label6.AutoSize = true;
|
|||
|
|
this.label6.Location = new System.Drawing.Point(187, 359);
|
|||
|
|
this.label6.Name = "label6";
|
|||
|
|
this.label6.Size = new System.Drawing.Size(59, 12);
|
|||
|
|
this.label6.TabIndex = 17;
|
|||
|
|
this.label6.Text = "图片Y偏移";
|
|||
|
|
//
|
|||
|
|
// richTextBox1_logger
|
|||
|
|
//
|
|||
|
|
this.richTextBox1_logger.Location = new System.Drawing.Point(413, 318);
|
|||
|
|
this.richTextBox1_logger.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|||
|
|
this.richTextBox1_logger.Name = "richTextBox1_logger";
|
|||
|
|
this.richTextBox1_logger.Size = new System.Drawing.Size(375, 121);
|
|||
|
|
this.richTextBox1_logger.TabIndex = 18;
|
|||
|
|
this.richTextBox1_logger.Text = "";
|
|||
|
|
//
|
|||
|
|
// comboBox_type
|
|||
|
|
//
|
|||
|
|
this.comboBox_type.FormattingEnabled = true;
|
|||
|
|
this.comboBox_type.Items.AddRange(new object[] {
|
|||
|
|
"L01"});
|
|||
|
|
this.comboBox_type.Location = new System.Drawing.Point(21, 219);
|
|||
|
|
this.comboBox_type.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|||
|
|
this.comboBox_type.Name = "comboBox_type";
|
|||
|
|
this.comboBox_type.Size = new System.Drawing.Size(65, 20);
|
|||
|
|
this.comboBox_type.TabIndex = 19;
|
|||
|
|
this.comboBox_type.Text = "L01";
|
|||
|
|
//
|
|||
|
|
// label7
|
|||
|
|
//
|
|||
|
|
this.label7.AutoSize = true;
|
|||
|
|
this.label7.Location = new System.Drawing.Point(19, 199);
|
|||
|
|
this.label7.Name = "label7";
|
|||
|
|
this.label7.Size = new System.Drawing.Size(53, 12);
|
|||
|
|
this.label7.TabIndex = 20;
|
|||
|
|
this.label7.Text = "设备类型";
|
|||
|
|
//
|
|||
|
|
// label8
|
|||
|
|
//
|
|||
|
|
this.label8.AutoSize = true;
|
|||
|
|
this.label8.Location = new System.Drawing.Point(21, 396);
|
|||
|
|
this.label8.Name = "label8";
|
|||
|
|
this.label8.Size = new System.Drawing.Size(41, 12);
|
|||
|
|
this.label8.TabIndex = 21;
|
|||
|
|
this.label8.Text = "填充值";
|
|||
|
|
//
|
|||
|
|
// textBox_marginw
|
|||
|
|
//
|
|||
|
|
this.textBox_marginw.Location = new System.Drawing.Point(84, 387);
|
|||
|
|
this.textBox_marginw.Name = "textBox_marginw";
|
|||
|
|
this.textBox_marginw.Size = new System.Drawing.Size(86, 21);
|
|||
|
|
this.textBox_marginw.TabIndex = 22;
|
|||
|
|
this.textBox_marginw.Text = "20";
|
|||
|
|
//
|
|||
|
|
// Form1
|
|||
|
|
//
|
|||
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|||
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|||
|
|
this.ClientSize = new System.Drawing.Size(800, 450);
|
|||
|
|
this.Controls.Add(this.textBox_marginw);
|
|||
|
|
this.Controls.Add(this.label8);
|
|||
|
|
this.Controls.Add(this.label7);
|
|||
|
|
this.Controls.Add(this.comboBox_type);
|
|||
|
|
this.Controls.Add(this.richTextBox1_logger);
|
|||
|
|
this.Controls.Add(this.label6);
|
|||
|
|
this.Controls.Add(this.textBox_y);
|
|||
|
|
this.Controls.Add(this.label5);
|
|||
|
|
this.Controls.Add(this.textBox_x);
|
|||
|
|
this.Controls.Add(this.pictureBox1);
|
|||
|
|
this.Controls.Add(this.textBox_PaperHeight);
|
|||
|
|
this.Controls.Add(this.label4);
|
|||
|
|
this.Controls.Add(this.label3);
|
|||
|
|
this.Controls.Add(this.textBox_PaperWidth);
|
|||
|
|
this.Controls.Add(this.label2);
|
|||
|
|
this.Controls.Add(this.comboBox1);
|
|||
|
|
this.Controls.Add(this.button3);
|
|||
|
|
this.Controls.Add(this.textBox1);
|
|||
|
|
this.Controls.Add(this.label1);
|
|||
|
|
this.Controls.Add(this.listBox1);
|
|||
|
|
this.Controls.Add(this.button2);
|
|||
|
|
this.Controls.Add(this.button1);
|
|||
|
|
this.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
|
|||
|
|
this.Name = "Form1";
|
|||
|
|
this.Text = "品传家用秤打印工具V1.0";
|
|||
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
|||
|
|
this.ResumeLayout(false);
|
|||
|
|
this.PerformLayout();
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
private System.Windows.Forms.Button button1;
|
|||
|
|
private System.Windows.Forms.Button button2;
|
|||
|
|
private System.Windows.Forms.ListBox listBox1;
|
|||
|
|
private System.Windows.Forms.Label label1;
|
|||
|
|
private System.Windows.Forms.TextBox textBox1;
|
|||
|
|
private System.Windows.Forms.Button button3;
|
|||
|
|
private System.Windows.Forms.ComboBox comboBox1;
|
|||
|
|
private System.Windows.Forms.Label label2;
|
|||
|
|
private System.Windows.Forms.TextBox textBox_PaperWidth;
|
|||
|
|
private System.Windows.Forms.Label label3;
|
|||
|
|
private System.Windows.Forms.Label label4;
|
|||
|
|
private System.Windows.Forms.TextBox textBox_PaperHeight;
|
|||
|
|
private System.Windows.Forms.PictureBox pictureBox1;
|
|||
|
|
private System.Windows.Forms.TextBox textBox_x;
|
|||
|
|
private System.Windows.Forms.Label label5;
|
|||
|
|
private System.Windows.Forms.TextBox textBox_y;
|
|||
|
|
private System.Windows.Forms.Label label6;
|
|||
|
|
private System.Windows.Forms.RichTextBox richTextBox1_logger;
|
|||
|
|
private System.Windows.Forms.ComboBox comboBox_type;
|
|||
|
|
private System.Windows.Forms.Label label7;
|
|||
|
|
private System.Windows.Forms.Label label8;
|
|||
|
|
private System.Windows.Forms.TextBox textBox_marginw;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|