1
zrg
2 天以前 9f656672e9db45ee147738d27093f17362a9e5f8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
namespace BarcodePrintEngine
{
    partial class Gy_BarcodePrint
    {
        private System.ComponentModel.IContainer components = null;
 
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
 
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.tabControl1 = new System.Windows.Forms.TabControl();
            this.tabPageUnprinted = new System.Windows.Forms.TabPage();
            this.grdUnprinted = new System.Windows.Forms.DataGridView();
            this.tabPagePrinted = new System.Windows.Forms.TabPage();
            this.grdPrinted = new System.Windows.Forms.DataGridView();
            this.panelTop = new System.Windows.Forms.Panel();
            this.labelDeviceAlias = new System.Windows.Forms.Label();
            this.txtDeviceAlias = new System.Windows.Forms.TextBox();
            this.btnSelectPrinter = new System.Windows.Forms.Button();
            this.txtPrinter = new System.Windows.Forms.TextBox();
            this.labelPrinter = new System.Windows.Forms.Label();
            this.btnPrintBarcode = new System.Windows.Forms.Button();
            this.btnToggleAutoPrint = new System.Windows.Forms.Button();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            this.tabControl1.SuspendLayout();
            this.tabPageUnprinted.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.grdUnprinted)).BeginInit();
            this.tabPagePrinted.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.grdPrinted)).BeginInit();
            this.panelTop.SuspendLayout();
            this.SuspendLayout();
            // 
            // tabControl1
            // 
            this.tabControl1.Controls.Add(this.tabPageUnprinted);
            this.tabControl1.Controls.Add(this.tabPagePrinted);
            this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tabControl1.Font = new System.Drawing.Font("黑体", 12F);
            this.tabControl1.Location = new System.Drawing.Point(0, 60);
            this.tabControl1.Name = "tabControl1";
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size = new System.Drawing.Size(1000, 500);
            this.tabControl1.TabIndex = 0;
            // 
            // tabPageUnprinted
            // 
            this.tabPageUnprinted.Controls.Add(this.grdUnprinted);
            this.tabPageUnprinted.Location = new System.Drawing.Point(4, 30);
            this.tabPageUnprinted.Name = "tabPageUnprinted";
            this.tabPageUnprinted.Padding = new System.Windows.Forms.Padding(3);
            this.tabPageUnprinted.Size = new System.Drawing.Size(992, 466);
            this.tabPageUnprinted.TabIndex = 0;
            this.tabPageUnprinted.Text = "拆码未打印";
            this.tabPageUnprinted.UseVisualStyleBackColor = true;
            // 
            // grdUnprinted
            // 
            this.grdUnprinted.BackgroundColor = System.Drawing.Color.WhiteSmoke;
            this.grdUnprinted.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.grdUnprinted.Dock = System.Windows.Forms.DockStyle.Fill;
            this.grdUnprinted.Location = new System.Drawing.Point(3, 3);
            this.grdUnprinted.Name = "grdUnprinted";
            this.grdUnprinted.RowHeadersWidth = 50;
            this.grdUnprinted.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
            this.grdUnprinted.Size = new System.Drawing.Size(986, 460);
            this.grdUnprinted.TabIndex = 0;
            // 
            // tabPagePrinted
            // 
            this.tabPagePrinted.Controls.Add(this.grdPrinted);
            this.tabPagePrinted.Location = new System.Drawing.Point(4, 30);
            this.tabPagePrinted.Name = "tabPagePrinted";
            this.tabPagePrinted.Padding = new System.Windows.Forms.Padding(3);
            this.tabPagePrinted.Size = new System.Drawing.Size(992, 466);
            this.tabPagePrinted.TabIndex = 1;
            this.tabPagePrinted.Text = "拆码已打印";
            this.tabPagePrinted.UseVisualStyleBackColor = true;
            // 
            // grdPrinted
            // 
            this.grdPrinted.BackgroundColor = System.Drawing.Color.WhiteSmoke;
            this.grdPrinted.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.grdPrinted.Dock = System.Windows.Forms.DockStyle.Fill;
            this.grdPrinted.Location = new System.Drawing.Point(3, 3);
            this.grdPrinted.Name = "grdPrinted";
            this.grdPrinted.RowHeadersWidth = 50;
            this.grdPrinted.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
            this.grdPrinted.Size = new System.Drawing.Size(986, 460);
            this.grdPrinted.TabIndex = 0;
            // 
            // panelTop
            // 
            this.panelTop.Controls.Add(this.labelDeviceAlias);
            this.panelTop.Controls.Add(this.txtDeviceAlias);
            this.panelTop.Controls.Add(this.btnSelectPrinter);
            this.panelTop.Controls.Add(this.txtPrinter);
            this.panelTop.Controls.Add(this.labelPrinter);
            this.panelTop.Controls.Add(this.btnPrintBarcode);
            this.panelTop.Controls.Add(this.btnToggleAutoPrint);
            this.panelTop.Dock = System.Windows.Forms.DockStyle.Top;
            this.panelTop.Location = new System.Drawing.Point(0, 0);
            this.panelTop.Name = "panelTop";
            this.panelTop.Size = new System.Drawing.Size(1000, 60);
            this.panelTop.TabIndex = 1;
            // 
            // labelDeviceAlias
            // 
            this.labelDeviceAlias.AutoSize = true;
            this.labelDeviceAlias.Font = new System.Drawing.Font("黑体", 12F);
            this.labelDeviceAlias.Location = new System.Drawing.Point(448, 21);
            this.labelDeviceAlias.Name = "labelDeviceAlias";
            this.labelDeviceAlias.Size = new System.Drawing.Size(109, 20);
            this.labelDeviceAlias.TabIndex = 4;
            this.labelDeviceAlias.Text = "设备别名:";
            // 
            // txtDeviceAlias
            // 
            this.txtDeviceAlias.Font = new System.Drawing.Font("黑体", 12F);
            this.txtDeviceAlias.Location = new System.Drawing.Point(563, 17);
            this.txtDeviceAlias.Name = "txtDeviceAlias";
            this.txtDeviceAlias.Size = new System.Drawing.Size(150, 30);
            this.txtDeviceAlias.TabIndex = 5;
            // 
            // btnSelectPrinter
            // 
            this.btnSelectPrinter.Font = new System.Drawing.Font("黑体", 12F);
            this.btnSelectPrinter.Location = new System.Drawing.Point(314, 14);
            this.btnSelectPrinter.Name = "btnSelectPrinter";
            this.btnSelectPrinter.Size = new System.Drawing.Size(120, 35);
            this.btnSelectPrinter.TabIndex = 2;
            this.btnSelectPrinter.Text = "选择打印机";
            this.btnSelectPrinter.UseVisualStyleBackColor = true;
            this.btnSelectPrinter.Click += new System.EventHandler(this.btnSelectPrinter_Click);
            // 
            // txtPrinter
            // 
            this.txtPrinter.Font = new System.Drawing.Font("黑体", 12F);
            this.txtPrinter.Location = new System.Drawing.Point(108, 17);
            this.txtPrinter.Name = "txtPrinter";
            this.txtPrinter.ReadOnly = true;
            this.txtPrinter.Size = new System.Drawing.Size(200, 30);
            this.txtPrinter.TabIndex = 1;
            // 
            // labelPrinter
            // 
            this.labelPrinter.AutoSize = true;
            this.labelPrinter.Font = new System.Drawing.Font("黑体", 12F);
            this.labelPrinter.Location = new System.Drawing.Point(12, 20);
            this.labelPrinter.Name = "labelPrinter";
            this.labelPrinter.Size = new System.Drawing.Size(89, 20);
            this.labelPrinter.TabIndex = 0;
            this.labelPrinter.Text = "打印机:";
            // 
            // btnPrintBarcode
            // 
            this.btnPrintBarcode.BackColor = System.Drawing.Color.Yellow;
            this.btnPrintBarcode.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Bold);
            this.btnPrintBarcode.Location = new System.Drawing.Point(823, 14);
            this.btnPrintBarcode.Name = "btnPrintBarcode";
            this.btnPrintBarcode.Size = new System.Drawing.Size(120, 35);
            this.btnPrintBarcode.TabIndex = 3;
            this.btnPrintBarcode.Text = "条码打印";
            this.btnPrintBarcode.UseVisualStyleBackColor = false;
            this.btnPrintBarcode.Click += new System.EventHandler(this.btnPrintBarcode_Click);
            // 
            // btnToggleAutoPrint
            // 
            this.btnToggleAutoPrint.Enabled = false;
            this.btnToggleAutoPrint.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Bold);
            this.btnToggleAutoPrint.Location = new System.Drawing.Point(719, 14);
            this.btnToggleAutoPrint.Name = "btnToggleAutoPrint";
            this.btnToggleAutoPrint.Size = new System.Drawing.Size(89, 35);
            this.btnToggleAutoPrint.TabIndex = 6;
            this.btnToggleAutoPrint.Text = "启动";
            this.btnToggleAutoPrint.UseVisualStyleBackColor = true;
            this.btnToggleAutoPrint.Click += new System.EventHandler(this.btnToggleAutoPrint_Click);
            // 
            // timer1
            // 
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            // 
            // Gy_BarcodePrint
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1000, 560);
            this.Controls.Add(this.tabControl1);
            this.Controls.Add(this.panelTop);
            this.Name = "Gy_BarcodePrint";
            this.Text = "条码拆分打印程序(自动打印)";
            this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed);
            this.tabControl1.ResumeLayout(false);
            this.tabPageUnprinted.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.grdUnprinted)).EndInit();
            this.tabPagePrinted.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.grdPrinted)).EndInit();
            this.panelTop.ResumeLayout(false);
            this.panelTop.PerformLayout();
            this.ResumeLayout(false);
 
        }
 
        // 控件声明
        private System.Windows.Forms.TabControl tabControl1;
        private System.Windows.Forms.TabPage tabPageUnprinted;
        private System.Windows.Forms.TabPage tabPagePrinted;
        private System.Windows.Forms.DataGridView grdUnprinted;
        private System.Windows.Forms.DataGridView grdPrinted;
        private System.Windows.Forms.Panel panelTop;
        private System.Windows.Forms.Label labelDeviceAlias;
        private System.Windows.Forms.TextBox txtDeviceAlias;
        private System.Windows.Forms.Button btnSelectPrinter;
        private System.Windows.Forms.TextBox txtPrinter;
        private System.Windows.Forms.Label labelPrinter;
        private System.Windows.Forms.Button btnPrintBarcode;
        private System.Windows.Forms.Button btnToggleAutoPrint;  // 新增
        private System.Windows.Forms.Timer timer1;
    }
}