B70340 2 år sedan
förälder
incheckning
5c0747f46c

Binär
.vs/YD-ERP-SYS/FileContentIndex/c77b1ff5-1e1c-4447-b37b-c66a3899faaf.vsidx Visa fil


Binär
.vs/YD-ERP-SYS/FileContentIndex/de8bf01d-187d-4522-836b-673e1c6b2116.vsidx Visa fil


Binär
.vs/YD-ERP-SYS/v17/.suo Visa fil


+ 4
- 3
YD-ERP-SYS/Module/SQL_倉儲系統管理.vb Visa fil

@@ -178,9 +178,10 @@
178 178
         CmdSet_For_DGV()
179 179
     End Sub
180 180
     Friend Sub SQL_倉儲控制表_刪除明細()
181
-        ConnOpen()
182
-        SQL1 = "DELETE 倉儲明細表 WHERE (資料流水號 LIKE N'" & PA20 & "')"
183
-        CmdSet_For_dr()
181
+        ConnOpen() : SQL1 = "DELETE 倉儲明細表 WHERE (資料流水號 LIKE N'" & PA20 & "')" : CmdSet_For_dr()
182
+    End Sub
183
+    Friend Sub SQL_倉儲控制表_備註存檔()
184
+        ConnOpen() : SQL1 = "UPDATE 倉儲明細表 SET 備註 = N'" & PA19 & "' WHERE (資料流水號 LIKE N'" & PA20 & "')" : CmdSet_For_dr()
184 185
     End Sub
185 186
     '---------------------盤盈盤損審核-----------------------------------------------------------------------------------------------------------------
186 187
     Friend Sub SQL_倉儲明細表_盤盈盤損審核()

+ 1
- 1
YD-ERP-SYS/Module/全域變數.vb Visa fil

@@ -3,7 +3,7 @@
3 3
     Public g_conn_type, gUserName, 登入人職稱, 登入人級別, 登入人組別, 登入人IP, 版本號, Target, Target1, Target2, FTP帳號, FTP密碼, FTP物理位置, 業務號碼, AA(99), 類別 As String
4 4
     Public BB(99), CC(99), 登入判斷 As Boolean
5 5
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6
-    Public 版本 As String = "2022100401"
6
+    Public 版本 As String = "2022102501"
7 7
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8 8
     Public 列印用SQL, 列印用SQL2, 公司編號, 公司電話, 公司統編, 公司地址, 關鍵字編號, 進度條後墜 As String
9 9
     '----系統閒置-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Binär
YD-ERP-SYS/bin/Debug/YD-ERP-SYS.exe Visa fil


Binär
YD-ERP-SYS/bin/Debug/YD-ERP-SYS.pdb Visa fil


Binär
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.exe Visa fil


Binär
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.pdb Visa fil


Binär
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbproj.GenerateResource.cache Visa fil


+ 180
- 130
YD-ERP-SYS/倉儲系統管理/倉儲控制表.Designer.vb Visa fil

@@ -23,10 +23,10 @@ Partial Class 倉儲控制表
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25 25
         Me.components = New System.ComponentModel.Container()
26
-        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
-        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30 30
         Me.控制表_dgv = New System.Windows.Forms.DataGridView()
31 31
         Me.明細表_dgv = New System.Windows.Forms.DataGridView()
32 32
         Me.物料圖_pb = New System.Windows.Forms.PictureBox()
@@ -61,16 +61,14 @@ Partial Class 倉儲控制表
61 61
         Me.中間距_ch = New System.Windows.Forms.CheckBox()
62 62
         Me.小間距_ch = New System.Windows.Forms.CheckBox()
63 63
         Me.SplitContainer1 = New System.Windows.Forms.SplitContainer()
64
+        Me.Label20 = New System.Windows.Forms.Label()
64 65
         Me.查詢_bt = New System.Windows.Forms.Button()
65 66
         Me.清空1_bt = New System.Windows.Forms.Button()
66 67
         Me.料號2_tb = New System.Windows.Forms.TextBox()
67 68
         Me.字體大小調整_lb = New System.Windows.Forms.Label()
68 69
         Me.字體_NUD = New System.Windows.Forms.NumericUpDown()
69
-        Me.訂製狀態_tb = New System.Windows.Forms.TextBox()
70
-        Me.物料狀態_tb = New System.Windows.Forms.TextBox()
71
-        Me.料號1_tb = New System.Windows.Forms.TextBox()
72
-        Me.倉名編號_tb = New System.Windows.Forms.TextBox()
73
-        Me.倉級_tb = New System.Windows.Forms.TextBox()
70
+        Me.資料存檔_bt = New System.Windows.Forms.Button()
71
+        Me.備註_tb = New System.Windows.Forms.TextBox()
74 72
         Me.新增_bt = New System.Windows.Forms.Button()
75 73
         Me.Label19 = New System.Windows.Forms.Label()
76 74
         Me.採購流水_tb = New System.Windows.Forms.TextBox()
@@ -90,7 +88,12 @@ Partial Class 倉儲控制表
90 88
         Me.刪除_bt = New System.Windows.Forms.Button()
91 89
         Me.Label11 = New System.Windows.Forms.Label()
92 90
         Me.倉儲流水_tb = New System.Windows.Forms.TextBox()
93
-        Me.Label20 = New System.Windows.Forms.Label()
91
+        Me.Panel1 = New System.Windows.Forms.Panel()
92
+        Me.倉級_tb = New System.Windows.Forms.TextBox()
93
+        Me.訂製狀態_tb = New System.Windows.Forms.TextBox()
94
+        Me.倉名編號_tb = New System.Windows.Forms.TextBox()
95
+        Me.物料狀態_tb = New System.Windows.Forms.TextBox()
96
+        Me.料號1_tb = New System.Windows.Forms.TextBox()
94 97
         CType(Me.控制表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
95 98
         CType(Me.明細表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
96 99
         CType(Me.物料圖_pb, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -102,12 +105,13 @@ Partial Class 倉儲控制表
102 105
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).BeginInit()
103 106
         CType(Me.出庫_nup, System.ComponentModel.ISupportInitialize).BeginInit()
104 107
         CType(Me.入庫_nup, System.ComponentModel.ISupportInitialize).BeginInit()
108
+        Me.Panel1.SuspendLayout()
105 109
         Me.SuspendLayout()
106 110
         '
107 111
         '控制表_dgv
108 112
         '
109
-        DataGridViewCellStyle5.BackColor = System.Drawing.Color.White
110
-        Me.控制表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
113
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.White
114
+        Me.控制表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
111 115
         Me.控制表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
112 116
             Or System.Windows.Forms.AnchorStyles.Left) _
113 117
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -116,28 +120,28 @@ Partial Class 倉儲控制表
116 120
         Me.控制表_dgv.Location = New System.Drawing.Point(467, 29)
117 121
         Me.控制表_dgv.Name = "控制表_dgv"
118 122
         Me.控制表_dgv.RowHeadersWidth = 5
119
-        DataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
120
-        Me.控制表_dgv.RowsDefaultCellStyle = DataGridViewCellStyle6
123
+        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
124
+        Me.控制表_dgv.RowsDefaultCellStyle = DataGridViewCellStyle2
121 125
         Me.控制表_dgv.RowTemplate.Height = 24
122 126
         Me.控制表_dgv.Size = New System.Drawing.Size(823, 382)
123 127
         Me.控制表_dgv.TabIndex = 1039
124 128
         '
125 129
         '明細表_dgv
126 130
         '
127
-        DataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
128
-        Me.明細表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle7
131
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
132
+        Me.明細表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
129 133
         Me.明細表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
130 134
             Or System.Windows.Forms.AnchorStyles.Left) _
131 135
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
132 136
         Me.明細表_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
133 137
         Me.明細表_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
134
-        Me.明細表_dgv.Location = New System.Drawing.Point(3, 29)
138
+        Me.明細表_dgv.Location = New System.Drawing.Point(182, 18)
135 139
         Me.明細表_dgv.Name = "明細表_dgv"
136 140
         Me.明細表_dgv.RowHeadersWidth = 5
137
-        DataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
138
-        Me.明細表_dgv.RowsDefaultCellStyle = DataGridViewCellStyle8
141
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
142
+        Me.明細表_dgv.RowsDefaultCellStyle = DataGridViewCellStyle4
139 143
         Me.明細表_dgv.RowTemplate.Height = 24
140
-        Me.明細表_dgv.Size = New System.Drawing.Size(1287, 188)
144
+        Me.明細表_dgv.Size = New System.Drawing.Size(1110, 198)
141 145
         Me.明細表_dgv.TabIndex = 1040
142 146
         '
143 147
         '物料圖_pb
@@ -175,18 +179,19 @@ Partial Class 倉儲控制表
175 179
         Me.Label9.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
176 180
         Me.Label9.AutoSize = True
177 181
         Me.Label9.ImeMode = System.Windows.Forms.ImeMode.NoControl
178
-        Me.Label9.Location = New System.Drawing.Point(1268, 6)
182
+        Me.Label9.Location = New System.Drawing.Point(1266, 2)
179 183
         Me.Label9.Name = "Label9"
180
-        Me.Label9.Size = New System.Drawing.Size(20, 16)
184
+        Me.Label9.Size = New System.Drawing.Size(19, 16)
181 185
         Me.Label9.TabIndex = 1182
182 186
         Me.Label9.Text = "筆"
183 187
         '
184 188
         '資料筆數1_tb
185 189
         '
186 190
         Me.資料筆數1_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
187
-        Me.資料筆數1_tb.Location = New System.Drawing.Point(1230, 3)
191
+        Me.資料筆數1_tb.BorderStyle = System.Windows.Forms.BorderStyle.None
192
+        Me.資料筆數1_tb.Location = New System.Drawing.Point(1228, 2)
188 193
         Me.資料筆數1_tb.Name = "資料筆數1_tb"
189
-        Me.資料筆數1_tb.Size = New System.Drawing.Size(39, 23)
194
+        Me.資料筆數1_tb.Size = New System.Drawing.Size(39, 16)
190 195
         Me.資料筆數1_tb.TabIndex = 1181
191 196
         Me.資料筆數1_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
192 197
         '
@@ -195,9 +200,9 @@ Partial Class 倉儲控制表
195 200
         Me.Label10.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
196 201
         Me.Label10.AutoSize = True
197 202
         Me.Label10.ImeMode = System.Windows.Forms.ImeMode.NoControl
198
-        Me.Label10.Location = New System.Drawing.Point(1211, 6)
203
+        Me.Label10.Location = New System.Drawing.Point(1209, 2)
199 204
         Me.Label10.Name = "Label10"
200
-        Me.Label10.Size = New System.Drawing.Size(20, 16)
205
+        Me.Label10.Size = New System.Drawing.Size(19, 16)
201 206
         Me.Label10.TabIndex = 1180
202 207
         Me.Label10.Text = "共"
203 208
         '
@@ -224,7 +229,7 @@ Partial Class 倉儲控制表
224 229
         Me.Label3.ImeMode = System.Windows.Forms.ImeMode.NoControl
225 230
         Me.Label3.Location = New System.Drawing.Point(1244, 6)
226 231
         Me.Label3.Name = "Label3"
227
-        Me.Label3.Size = New System.Drawing.Size(44, 16)
232
+        Me.Label3.Size = New System.Drawing.Size(43, 16)
228 233
         Me.Label3.TabIndex = 1187
229 234
         Me.Label3.Text = "筆資料"
230 235
         '
@@ -244,7 +249,7 @@ Partial Class 倉儲控制表
244 249
         Me.Label4.ImeMode = System.Windows.Forms.ImeMode.NoControl
245 250
         Me.Label4.Location = New System.Drawing.Point(1154, 6)
246 251
         Me.Label4.Name = "Label4"
247
-        Me.Label4.Size = New System.Drawing.Size(20, 16)
252
+        Me.Label4.Size = New System.Drawing.Size(19, 16)
248 253
         Me.Label4.TabIndex = 1185
249 254
         Me.Label4.Text = "共"
250 255
         '
@@ -273,7 +278,7 @@ Partial Class 倉儲控制表
273 278
         Me.指定倉庫_lb.AutoSize = True
274 279
         Me.指定倉庫_lb.Location = New System.Drawing.Point(6, 316)
275 280
         Me.指定倉庫_lb.Name = "指定倉庫_lb"
276
-        Me.指定倉庫_lb.Size = New System.Drawing.Size(56, 16)
281
+        Me.指定倉庫_lb.Size = New System.Drawing.Size(55, 16)
277 282
         Me.指定倉庫_lb.TabIndex = 1190
278 283
         Me.指定倉庫_lb.Text = "庫存區域"
279 284
         '
@@ -294,7 +299,7 @@ Partial Class 倉儲控制表
294 299
         Me.Label12.AutoSize = True
295 300
         Me.Label12.Location = New System.Drawing.Point(204, 316)
296 301
         Me.Label12.Name = "Label12"
297
-        Me.Label12.Size = New System.Drawing.Size(56, 16)
302
+        Me.Label12.Size = New System.Drawing.Size(55, 16)
298 303
         Me.Label12.TabIndex = 1192
299 304
         Me.Label12.Text = "倉儲狀態"
300 305
         '
@@ -304,7 +309,7 @@ Partial Class 倉儲控制表
304 309
         Me.Label1.AutoSize = True
305 310
         Me.Label1.Location = New System.Drawing.Point(6, 343)
306 311
         Me.Label1.Name = "Label1"
307
-        Me.Label1.Size = New System.Drawing.Size(56, 16)
312
+        Me.Label1.Size = New System.Drawing.Size(55, 16)
308 313
         Me.Label1.TabIndex = 1193
309 314
         Me.Label1.Text = "倉        名"
310 315
         '
@@ -314,7 +319,7 @@ Partial Class 倉儲控制表
314 319
         Me.Label2.AutoSize = True
315 320
         Me.Label2.Location = New System.Drawing.Point(204, 343)
316 321
         Me.Label2.Name = "Label2"
317
-        Me.Label2.Size = New System.Drawing.Size(56, 16)
322
+        Me.Label2.Size = New System.Drawing.Size(55, 16)
318 323
         Me.Label2.TabIndex = 1194
319 324
         Me.Label2.Text = "料        號"
320 325
         '
@@ -324,7 +329,7 @@ Partial Class 倉儲控制表
324 329
         Me.Label5.AutoSize = True
325 330
         Me.Label5.Location = New System.Drawing.Point(6, 367)
326 331
         Me.Label5.Name = "Label5"
327
-        Me.Label5.Size = New System.Drawing.Size(56, 16)
332
+        Me.Label5.Size = New System.Drawing.Size(55, 16)
328 333
         Me.Label5.TabIndex = 1195
329 334
         Me.Label5.Text = "品        名"
330 335
         '
@@ -334,7 +339,7 @@ Partial Class 倉儲控制表
334 339
         Me.Label6.AutoSize = True
335 340
         Me.Label6.Location = New System.Drawing.Point(6, 391)
336 341
         Me.Label6.Name = "Label6"
337
-        Me.Label6.Size = New System.Drawing.Size(56, 16)
342
+        Me.Label6.Size = New System.Drawing.Size(55, 16)
338 343
         Me.Label6.TabIndex = 1196
339 344
         Me.Label6.Text = "訂        制"
340 345
         '
@@ -344,7 +349,7 @@ Partial Class 倉儲控制表
344 349
         Me.Label7.AutoSize = True
345 350
         Me.Label7.Location = New System.Drawing.Point(204, 391)
346 351
         Me.Label7.Name = "Label7"
347
-        Me.Label7.Size = New System.Drawing.Size(56, 16)
352
+        Me.Label7.Size = New System.Drawing.Size(55, 16)
348 353
         Me.Label7.TabIndex = 1197
349 354
         Me.Label7.Text = "狀        態"
350 355
         '
@@ -354,7 +359,7 @@ Partial Class 倉儲控制表
354 359
         Me.Label8.AutoSize = True
355 360
         Me.Label8.Location = New System.Drawing.Point(6, 330)
356 361
         Me.Label8.Name = "Label8"
357
-        Me.Label8.Size = New System.Drawing.Size(463, 16)
362
+        Me.Label8.Size = New System.Drawing.Size(462, 16)
358 363
         Me.Label8.TabIndex = 1198
359 364
         Me.Label8.Text = "---------------------------------------------------------------------------------" &
360 365
     "----------"
@@ -365,9 +370,9 @@ Partial Class 倉儲控制表
365 370
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
366 371
         Me.跑馬燈_tb.Font = New System.Drawing.Font("微軟正黑體", 12.0!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Italic), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(136, Byte))
367 372
         Me.跑馬燈_tb.ForeColor = System.Drawing.Color.Red
368
-        Me.跑馬燈_tb.Location = New System.Drawing.Point(3, 220)
373
+        Me.跑馬燈_tb.Location = New System.Drawing.Point(182, 219)
369 374
         Me.跑馬燈_tb.Name = "跑馬燈_tb"
370
-        Me.跑馬燈_tb.Size = New System.Drawing.Size(1287, 29)
375
+        Me.跑馬燈_tb.Size = New System.Drawing.Size(1110, 29)
371 376
         Me.跑馬燈_tb.TabIndex = 1199
372 377
         Me.跑馬燈_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
373 378
         '
@@ -403,7 +408,7 @@ Partial Class 倉儲控制表
403 408
         Me.不顯示歸零_ch.AutoSize = True
404 409
         Me.不顯示歸零_ch.Location = New System.Drawing.Point(469, 4)
405 410
         Me.不顯示歸零_ch.Name = "不顯示歸零_ch"
406
-        Me.不顯示歸零_ch.Size = New System.Drawing.Size(111, 20)
411
+        Me.不顯示歸零_ch.Size = New System.Drawing.Size(110, 20)
407 412
         Me.不顯示歸零_ch.TabIndex = 1201
408 413
         Me.不顯示歸零_ch.Text = "不顯示歸零資料"
409 414
         Me.不顯示歸零_ch.UseVisualStyleBackColor = True
@@ -414,7 +419,7 @@ Partial Class 倉儲控制表
414 419
         Me.大間距_ch.AutoSize = True
415 420
         Me.大間距_ch.Location = New System.Drawing.Point(405, 390)
416 421
         Me.大間距_ch.Name = "大間距_ch"
417
-        Me.大間距_ch.Size = New System.Drawing.Size(63, 20)
422
+        Me.大間距_ch.Size = New System.Drawing.Size(62, 20)
418 423
         Me.大間距_ch.TabIndex = 1379
419 424
         Me.大間距_ch.Text = "大間距"
420 425
         Me.大間距_ch.UseVisualStyleBackColor = True
@@ -425,7 +430,7 @@ Partial Class 倉儲控制表
425 430
         Me.中間距_ch.AutoSize = True
426 431
         Me.中間距_ch.Location = New System.Drawing.Point(405, 366)
427 432
         Me.中間距_ch.Name = "中間距_ch"
428
-        Me.中間距_ch.Size = New System.Drawing.Size(63, 20)
433
+        Me.中間距_ch.Size = New System.Drawing.Size(62, 20)
429 434
         Me.中間距_ch.TabIndex = 1378
430 435
         Me.中間距_ch.Text = "中間距"
431 436
         Me.中間距_ch.UseVisualStyleBackColor = True
@@ -436,7 +441,7 @@ Partial Class 倉儲控制表
436 441
         Me.小間距_ch.AutoSize = True
437 442
         Me.小間距_ch.Location = New System.Drawing.Point(405, 342)
438 443
         Me.小間距_ch.Name = "小間距_ch"
439
-        Me.小間距_ch.Size = New System.Drawing.Size(63, 20)
444
+        Me.小間距_ch.Size = New System.Drawing.Size(62, 20)
440 445
         Me.小間距_ch.TabIndex = 1377
441 446
         Me.小間距_ch.Text = "小間距"
442 447
         Me.小間距_ch.UseVisualStyleBackColor = True
@@ -487,11 +492,8 @@ Partial Class 倉儲控制表
487 492
         '
488 493
         'SplitContainer1.Panel2
489 494
         '
490
-        Me.SplitContainer1.Panel2.Controls.Add(Me.訂製狀態_tb)
491
-        Me.SplitContainer1.Panel2.Controls.Add(Me.物料狀態_tb)
492
-        Me.SplitContainer1.Panel2.Controls.Add(Me.料號1_tb)
493
-        Me.SplitContainer1.Panel2.Controls.Add(Me.倉名編號_tb)
494
-        Me.SplitContainer1.Panel2.Controls.Add(Me.倉級_tb)
495
+        Me.SplitContainer1.Panel2.Controls.Add(Me.資料存檔_bt)
496
+        Me.SplitContainer1.Panel2.Controls.Add(Me.備註_tb)
495 497
         Me.SplitContainer1.Panel2.Controls.Add(Me.新增_bt)
496 498
         Me.SplitContainer1.Panel2.Controls.Add(Me.Label19)
497 499
         Me.SplitContainer1.Panel2.Controls.Add(Me.採購流水_tb)
@@ -516,10 +518,20 @@ Partial Class 倉儲控制表
516 518
         Me.SplitContainer1.Panel2.Controls.Add(Me.刪除_bt)
517 519
         Me.SplitContainer1.Panel2.Controls.Add(Me.Label11)
518 520
         Me.SplitContainer1.Panel2.Controls.Add(Me.倉儲流水_tb)
521
+        Me.SplitContainer1.Panel2.Controls.Add(Me.Panel1)
519 522
         Me.SplitContainer1.Size = New System.Drawing.Size(1297, 673)
520 523
         Me.SplitContainer1.SplitterDistance = 416
521 524
         Me.SplitContainer1.TabIndex = 1380
522 525
         '
526
+        'Label20
527
+        '
528
+        Me.Label20.AutoSize = True
529
+        Me.Label20.Location = New System.Drawing.Point(598, 6)
530
+        Me.Label20.Name = "Label20"
531
+        Me.Label20.Size = New System.Drawing.Size(151, 16)
532
+        Me.Label20.TabIndex = 1495
533
+        Me.Label20.Text = "請輸入供應商編號或是料號"
534
+        '
523 535
         '查詢_bt
524 536
         '
525 537
         Me.查詢_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
@@ -575,53 +587,36 @@ Partial Class 倉儲控制表
575 587
         Me.字體_NUD.TabIndex = 1490
576 588
         Me.字體_NUD.Value = New Decimal(New Integer() {9, 0, 0, 0})
577 589
         '
578
-        '訂製狀態_tb
590
+        '資料存檔_bt
579 591
         '
580
-        Me.訂製狀態_tb.Location = New System.Drawing.Point(516, 148)
581
-        Me.訂製狀態_tb.Name = "訂製狀態_tb"
582
-        Me.訂製狀態_tb.Size = New System.Drawing.Size(65, 23)
583
-        Me.訂製狀態_tb.TabIndex = 1403
584
-        Me.訂製狀態_tb.Visible = False
585
-        '
586
-        '物料狀態_tb
587
-        '
588
-        Me.物料狀態_tb.Location = New System.Drawing.Point(515, 119)
589
-        Me.物料狀態_tb.Name = "物料狀態_tb"
590
-        Me.物料狀態_tb.Size = New System.Drawing.Size(65, 23)
591
-        Me.物料狀態_tb.TabIndex = 1402
592
-        Me.物料狀態_tb.Visible = False
593
-        '
594
-        '料號1_tb
592
+        Me.資料存檔_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
593
+        Me.資料存檔_bt.ForeColor = System.Drawing.Color.Green
594
+        Me.資料存檔_bt.ImeMode = System.Windows.Forms.ImeMode.NoControl
595
+        Me.資料存檔_bt.Location = New System.Drawing.Point(48, 208)
596
+        Me.資料存檔_bt.Name = "資料存檔_bt"
597
+        Me.資料存檔_bt.Size = New System.Drawing.Size(42, 41)
598
+        Me.資料存檔_bt.TabIndex = 1406
599
+        Me.資料存檔_bt.Text = "備註存檔"
600
+        Me.資料存檔_bt.UseVisualStyleBackColor = True
595 601
         '
596
-        Me.料號1_tb.Location = New System.Drawing.Point(516, 90)
597
-        Me.料號1_tb.Name = "料號1_tb"
598
-        Me.料號1_tb.Size = New System.Drawing.Size(65, 23)
599
-        Me.料號1_tb.TabIndex = 1401
600
-        Me.料號1_tb.Visible = False
601
-        '
602
-        '倉名編號_tb
603
-        '
604
-        Me.倉名編號_tb.Location = New System.Drawing.Point(515, 61)
605
-        Me.倉名編號_tb.Name = "倉名編號_tb"
606
-        Me.倉名編號_tb.Size = New System.Drawing.Size(65, 23)
607
-        Me.倉名編號_tb.TabIndex = 1400
608
-        Me.倉名編號_tb.Visible = False
609
-        '
610
-        '倉級_tb
602
+        '備註_tb
611 603
         '
612
-        Me.倉級_tb.Location = New System.Drawing.Point(515, 32)
613
-        Me.倉級_tb.Name = "倉級_tb"
614
-        Me.倉級_tb.Size = New System.Drawing.Size(65, 23)
615
-        Me.倉級_tb.TabIndex = 1399
616
-        Me.倉級_tb.Visible = False
604
+        Me.備註_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
605
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
606
+        Me.備註_tb.Location = New System.Drawing.Point(3, 159)
607
+        Me.備註_tb.Multiline = True
608
+        Me.備註_tb.Name = "備註_tb"
609
+        Me.備註_tb.Size = New System.Drawing.Size(177, 48)
610
+        Me.備註_tb.TabIndex = 1405
617 611
         '
618 612
         '新增_bt
619 613
         '
614
+        Me.新增_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
620 615
         Me.新增_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
621 616
         Me.新增_bt.ImeMode = System.Windows.Forms.ImeMode.NoControl
622
-        Me.新增_bt.Location = New System.Drawing.Point(1004, 2)
617
+        Me.新增_bt.Location = New System.Drawing.Point(4, 208)
623 618
         Me.新增_bt.Name = "新增_bt"
624
-        Me.新增_bt.Size = New System.Drawing.Size(65, 25)
619
+        Me.新增_bt.Size = New System.Drawing.Size(42, 41)
625 620
         Me.新增_bt.TabIndex = 1398
626 621
         Me.新增_bt.Text = "新增資料"
627 622
         Me.新增_bt.UseVisualStyleBackColor = True
@@ -629,56 +624,58 @@ Partial Class 倉儲控制表
629 624
         'Label19
630 625
         '
631 626
         Me.Label19.AutoSize = True
632
-        Me.Label19.Location = New System.Drawing.Point(184, 7)
627
+        Me.Label19.Location = New System.Drawing.Point(4, 24)
633 628
         Me.Label19.Name = "Label19"
634
-        Me.Label19.Size = New System.Drawing.Size(56, 16)
629
+        Me.Label19.Size = New System.Drawing.Size(55, 16)
635 630
         Me.Label19.TabIndex = 1397
636 631
         Me.Label19.Text = "採購流水"
637 632
         '
638 633
         '採購流水_tb
639 634
         '
640
-        Me.採購流水_tb.Location = New System.Drawing.Point(240, 3)
635
+        Me.採購流水_tb.BorderStyle = System.Windows.Forms.BorderStyle.None
636
+        Me.採購流水_tb.Location = New System.Drawing.Point(60, 23)
641 637
         Me.採購流水_tb.Name = "採購流水_tb"
642
-        Me.採購流水_tb.Size = New System.Drawing.Size(103, 23)
638
+        Me.採購流水_tb.Size = New System.Drawing.Size(120, 16)
643 639
         Me.採購流水_tb.TabIndex = 1396
644 640
         '
645 641
         'Label18
646 642
         '
647 643
         Me.Label18.AutoSize = True
648
-        Me.Label18.Location = New System.Drawing.Point(4, 7)
644
+        Me.Label18.Location = New System.Drawing.Point(4, 4)
649 645
         Me.Label18.Name = "Label18"
650
-        Me.Label18.Size = New System.Drawing.Size(56, 16)
646
+        Me.Label18.Size = New System.Drawing.Size(55, 16)
651 647
         Me.Label18.TabIndex = 1395
652 648
         Me.Label18.Text = "執行單號"
653 649
         '
654 650
         '執行單號_tb
655 651
         '
652
+        Me.執行單號_tb.BorderStyle = System.Windows.Forms.BorderStyle.None
656 653
         Me.執行單號_tb.Location = New System.Drawing.Point(60, 3)
657 654
         Me.執行單號_tb.Name = "執行單號_tb"
658
-        Me.執行單號_tb.Size = New System.Drawing.Size(120, 23)
655
+        Me.執行單號_tb.Size = New System.Drawing.Size(120, 16)
659 656
         Me.執行單號_tb.TabIndex = 1394
660 657
         '
661 658
         '補單日_dtp
662 659
         '
663 660
         Me.補單日_dtp.CustomFormat = "yyyy/MM/dd"
664 661
         Me.補單日_dtp.Format = System.Windows.Forms.DateTimePickerFormat.Custom
665
-        Me.補單日_dtp.Location = New System.Drawing.Point(914, 3)
662
+        Me.補單日_dtp.Location = New System.Drawing.Point(60, 134)
666 663
         Me.補單日_dtp.Name = "補單日_dtp"
667
-        Me.補單日_dtp.Size = New System.Drawing.Size(89, 23)
664
+        Me.補單日_dtp.Size = New System.Drawing.Size(120, 23)
668 665
         Me.補單日_dtp.TabIndex = 1393
669 666
         '
670 667
         'Label17
671 668
         '
672 669
         Me.Label17.AutoSize = True
673
-        Me.Label17.Location = New System.Drawing.Point(872, 6)
670
+        Me.Label17.Location = New System.Drawing.Point(4, 137)
674 671
         Me.Label17.Name = "Label17"
675
-        Me.Label17.Size = New System.Drawing.Size(44, 16)
672
+        Me.Label17.Size = New System.Drawing.Size(55, 16)
676 673
         Me.Label17.TabIndex = 1392
677
-        Me.Label17.Text = "補單日"
674
+        Me.Label17.Text = "補    日"
678 675
         '
679 676
         '出庫_nup
680 677
         '
681
-        Me.出庫_nup.Location = New System.Drawing.Point(830, 3)
678
+        Me.出庫_nup.Location = New System.Drawing.Point(140, 109)
682 679
         Me.出庫_nup.Maximum = New Decimal(New Integer() {10000, 0, 0, 0})
683 680
         Me.出庫_nup.Name = "出庫_nup"
684 681
         Me.出庫_nup.Size = New System.Drawing.Size(40, 23)
@@ -687,15 +684,15 @@ Partial Class 倉儲控制表
687 684
         'Label16
688 685
         '
689 686
         Me.Label16.AutoSize = True
690
-        Me.Label16.Location = New System.Drawing.Point(797, 6)
687
+        Me.Label16.Location = New System.Drawing.Point(107, 111)
691 688
         Me.Label16.Name = "Label16"
692
-        Me.Label16.Size = New System.Drawing.Size(32, 16)
689
+        Me.Label16.Size = New System.Drawing.Size(31, 16)
693 690
         Me.Label16.TabIndex = 1390
694 691
         Me.Label16.Text = "出庫"
695 692
         '
696 693
         '入庫_nup
697 694
         '
698
-        Me.入庫_nup.Location = New System.Drawing.Point(755, 3)
695
+        Me.入庫_nup.Location = New System.Drawing.Point(40, 108)
699 696
         Me.入庫_nup.Maximum = New Decimal(New Integer() {10000, 0, 0, 0})
700 697
         Me.入庫_nup.Name = "入庫_nup"
701 698
         Me.入庫_nup.Size = New System.Drawing.Size(40, 23)
@@ -704,65 +701,68 @@ Partial Class 倉儲控制表
704 701
         'Label15
705 702
         '
706 703
         Me.Label15.AutoSize = True
707
-        Me.Label15.Location = New System.Drawing.Point(722, 6)
704
+        Me.Label15.Location = New System.Drawing.Point(7, 111)
708 705
         Me.Label15.Name = "Label15"
709
-        Me.Label15.Size = New System.Drawing.Size(32, 16)
706
+        Me.Label15.Size = New System.Drawing.Size(31, 16)
710 707
         Me.Label15.TabIndex = 1388
711 708
         Me.Label15.Text = "入庫"
712 709
         '
713 710
         'Label14
714 711
         '
715 712
         Me.Label14.AutoSize = True
716
-        Me.Label14.Location = New System.Drawing.Point(613, 6)
713
+        Me.Label14.Location = New System.Drawing.Point(4, 87)
717 714
         Me.Label14.Name = "Label14"
718
-        Me.Label14.Size = New System.Drawing.Size(32, 16)
715
+        Me.Label14.Size = New System.Drawing.Size(55, 16)
719 716
         Me.Label14.TabIndex = 1387
720
-        Me.Label14.Text = "狀態"
717
+        Me.Label14.Text = "狀        態"
721 718
         '
722 719
         '狀態_ch
723 720
         '
724 721
         Me.狀態_ch.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
725 722
         Me.狀態_ch.FormattingEnabled = True
726 723
         Me.狀態_ch.Items.AddRange(New Object() {"2019"})
727
-        Me.狀態_ch.Location = New System.Drawing.Point(645, 2)
724
+        Me.狀態_ch.Location = New System.Drawing.Point(60, 83)
728 725
         Me.狀態_ch.Name = "狀態_ch"
729
-        Me.狀態_ch.Size = New System.Drawing.Size(75, 24)
726
+        Me.狀態_ch.Size = New System.Drawing.Size(120, 24)
730 727
         Me.狀態_ch.TabIndex = 1386
731 728
         '
732 729
         'Label13
733 730
         '
734 731
         Me.Label13.AutoSize = True
735
-        Me.Label13.Location = New System.Drawing.Point(502, 7)
732
+        Me.Label13.Location = New System.Drawing.Point(4, 65)
736 733
         Me.Label13.Name = "Label13"
737
-        Me.Label13.Size = New System.Drawing.Size(44, 16)
734
+        Me.Label13.Size = New System.Drawing.Size(55, 16)
738 735
         Me.Label13.TabIndex = 1385
739
-        Me.Label13.Text = "採購單"
736
+        Me.Label13.Text = "採    單"
740 737
         '
741 738
         '採購單_tb
742 739
         '
743
-        Me.採購單_tb.Location = New System.Drawing.Point(546, 3)
740
+        Me.採購單_tb.BorderStyle = System.Windows.Forms.BorderStyle.None
741
+        Me.採購單_tb.Location = New System.Drawing.Point(60, 64)
744 742
         Me.採購單_tb.Name = "採購單_tb"
745
-        Me.採購單_tb.Size = New System.Drawing.Size(65, 23)
743
+        Me.採購單_tb.Size = New System.Drawing.Size(120, 16)
746 744
         Me.採購單_tb.TabIndex = 1384
747 745
         '
748 746
         '列印Excel_bt
749 747
         '
750
-        Me.列印Excel_bt.ForeColor = System.Drawing.Color.Green
748
+        Me.列印Excel_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
749
+        Me.列印Excel_bt.ForeColor = System.Drawing.Color.Black
751 750
         Me.列印Excel_bt.ImeMode = System.Windows.Forms.ImeMode.NoControl
752
-        Me.列印Excel_bt.Location = New System.Drawing.Point(1136, 2)
751
+        Me.列印Excel_bt.Location = New System.Drawing.Point(133, 208)
753 752
         Me.列印Excel_bt.Name = "列印Excel_bt"
754
-        Me.列印Excel_bt.Size = New System.Drawing.Size(70, 25)
753
+        Me.列印Excel_bt.Size = New System.Drawing.Size(47, 41)
755 754
         Me.列印Excel_bt.TabIndex = 1383
756 755
         Me.列印Excel_bt.Text = "列印Excel"
757 756
         Me.列印Excel_bt.UseVisualStyleBackColor = True
758 757
         '
759 758
         '刪除_bt
760 759
         '
760
+        Me.刪除_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
761 761
         Me.刪除_bt.ForeColor = System.Drawing.Color.Red
762 762
         Me.刪除_bt.ImeMode = System.Windows.Forms.ImeMode.NoControl
763
-        Me.刪除_bt.Location = New System.Drawing.Point(1070, 2)
763
+        Me.刪除_bt.Location = New System.Drawing.Point(92, 208)
764 764
         Me.刪除_bt.Name = "刪除_bt"
765
-        Me.刪除_bt.Size = New System.Drawing.Size(65, 25)
765
+        Me.刪除_bt.Size = New System.Drawing.Size(42, 41)
766 766
         Me.刪除_bt.TabIndex = 1382
767 767
         Me.刪除_bt.Text = "刪除資料"
768 768
         Me.刪除_bt.UseVisualStyleBackColor = True
@@ -770,27 +770,72 @@ Partial Class 倉儲控制表
770 770
         'Label11
771 771
         '
772 772
         Me.Label11.AutoSize = True
773
-        Me.Label11.Location = New System.Drawing.Point(346, 7)
773
+        Me.Label11.Location = New System.Drawing.Point(4, 44)
774 774
         Me.Label11.Name = "Label11"
775
-        Me.Label11.Size = New System.Drawing.Size(56, 16)
775
+        Me.Label11.Size = New System.Drawing.Size(55, 16)
776 776
         Me.Label11.TabIndex = 1381
777 777
         Me.Label11.Text = "倉儲流水"
778 778
         '
779 779
         '倉儲流水_tb
780 780
         '
781
-        Me.倉儲流水_tb.Location = New System.Drawing.Point(402, 3)
781
+        Me.倉儲流水_tb.BorderStyle = System.Windows.Forms.BorderStyle.None
782
+        Me.倉儲流水_tb.Location = New System.Drawing.Point(60, 43)
782 783
         Me.倉儲流水_tb.Name = "倉儲流水_tb"
783
-        Me.倉儲流水_tb.Size = New System.Drawing.Size(98, 23)
784
+        Me.倉儲流水_tb.Size = New System.Drawing.Size(120, 16)
784 785
         Me.倉儲流水_tb.TabIndex = 1380
785 786
         '
786
-        'Label20
787
+        'Panel1
787 788
         '
788
-        Me.Label20.AutoSize = True
789
-        Me.Label20.Location = New System.Drawing.Point(598, 6)
790
-        Me.Label20.Name = "Label20"
791
-        Me.Label20.Size = New System.Drawing.Size(152, 16)
792
-        Me.Label20.TabIndex = 1495
793
-        Me.Label20.Text = "請輸入供應商編號或是料號"
789
+        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
790
+        Me.Panel1.Controls.Add(Me.倉級_tb)
791
+        Me.Panel1.Controls.Add(Me.訂製狀態_tb)
792
+        Me.Panel1.Controls.Add(Me.倉名編號_tb)
793
+        Me.Panel1.Controls.Add(Me.物料狀態_tb)
794
+        Me.Panel1.Controls.Add(Me.料號1_tb)
795
+        Me.Panel1.Location = New System.Drawing.Point(262, 67)
796
+        Me.Panel1.Name = "Panel1"
797
+        Me.Panel1.Size = New System.Drawing.Size(200, 100)
798
+        Me.Panel1.TabIndex = 1404
799
+        '
800
+        '倉級_tb
801
+        '
802
+        Me.倉級_tb.Location = New System.Drawing.Point(3, 3)
803
+        Me.倉級_tb.Name = "倉級_tb"
804
+        Me.倉級_tb.Size = New System.Drawing.Size(65, 23)
805
+        Me.倉級_tb.TabIndex = 1399
806
+        Me.倉級_tb.Visible = False
807
+        '
808
+        '訂製狀態_tb
809
+        '
810
+        Me.訂製狀態_tb.Location = New System.Drawing.Point(3, 61)
811
+        Me.訂製狀態_tb.Name = "訂製狀態_tb"
812
+        Me.訂製狀態_tb.Size = New System.Drawing.Size(65, 23)
813
+        Me.訂製狀態_tb.TabIndex = 1403
814
+        Me.訂製狀態_tb.Visible = False
815
+        '
816
+        '倉名編號_tb
817
+        '
818
+        Me.倉名編號_tb.Location = New System.Drawing.Point(3, 32)
819
+        Me.倉名編號_tb.Name = "倉名編號_tb"
820
+        Me.倉名編號_tb.Size = New System.Drawing.Size(65, 23)
821
+        Me.倉名編號_tb.TabIndex = 1400
822
+        Me.倉名編號_tb.Visible = False
823
+        '
824
+        '物料狀態_tb
825
+        '
826
+        Me.物料狀態_tb.Location = New System.Drawing.Point(73, 32)
827
+        Me.物料狀態_tb.Name = "物料狀態_tb"
828
+        Me.物料狀態_tb.Size = New System.Drawing.Size(65, 23)
829
+        Me.物料狀態_tb.TabIndex = 1402
830
+        Me.物料狀態_tb.Visible = False
831
+        '
832
+        '料號1_tb
833
+        '
834
+        Me.料號1_tb.Location = New System.Drawing.Point(74, 3)
835
+        Me.料號1_tb.Name = "料號1_tb"
836
+        Me.料號1_tb.Size = New System.Drawing.Size(65, 23)
837
+        Me.料號1_tb.TabIndex = 1401
838
+        Me.料號1_tb.Visible = False
794 839
         '
795 840
         '倉儲控制表
796 841
         '
@@ -816,12 +861,13 @@ Partial Class 倉儲控制表
816 861
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).EndInit()
817 862
         CType(Me.出庫_nup, System.ComponentModel.ISupportInitialize).EndInit()
818 863
         CType(Me.入庫_nup, System.ComponentModel.ISupportInitialize).EndInit()
864
+        Me.Panel1.ResumeLayout(False)
865
+        Me.Panel1.PerformLayout()
819 866
         Me.ResumeLayout(False)
820 867
 
821 868
     End Sub
822 869
 
823 870
     Friend WithEvents 控制表_dgv As Windows.Forms.DataGridView
824
-    Friend WithEvents 明細表_dgv As Windows.Forms.DataGridView
825 871
     Friend WithEvents 物料圖_pb As PictureBox
826 872
     Friend WithEvents 品名_tb As TextBox
827 873
     Friend WithEvents 料號_tb As TextBox
@@ -884,4 +930,8 @@ Partial Class 倉儲控制表
884 930
     Friend WithEvents 查詢_bt As Button
885 931
     Friend WithEvents 清空1_bt As Button
886 932
     Friend WithEvents Label20 As Label
933
+    Friend WithEvents Panel1 As Panel
934
+    Friend WithEvents 明細表_dgv As DataGridView
935
+    Friend WithEvents 資料存檔_bt As Button
936
+    Friend WithEvents 備註_tb As TextBox
887 937
 End Class

+ 15
- 12
YD-ERP-SYS/倉儲系統管理/倉儲控制表.vb Visa fil

@@ -14,7 +14,7 @@ Public Class 倉儲控制表
14 14
     Dim xlApp As Application : Dim xlBook As Workbook : Dim xlSheet As Worksheet
15 15
     Dim KKKK As String : Dim 比例 As Integer : Dim N1 As Integer
16 16
     Dim 首次開啟 As Boolean = False
17
-    Dim N2 As Integer :: Dim EDR As Integer = 0 : Dim ESTR As String
17
+    Dim N2 As Integer : Dim EDR As Integer = 0 : Dim ESTR As String
18 18
     Private Sub Set_清單()
19 19
         Try
20 20
             控制表_dgv.DataSource = Nothing : ds.Clear()
@@ -270,7 +270,7 @@ Public Class 倉儲控制表
270 270
             da.Fill(ds1) : 明細表_dgv.DataSource = ds1.Tables(0) : conn.Close()
271 271
 
272 272
             明細表_dgv.Columns(0).FillWeight = 150 : 明細表_dgv.Columns(1).FillWeight = 150 : 明細表_dgv.Columns(2).FillWeight = 100 : 明細表_dgv.Columns(3).FillWeight = 50
273
-            明細表_dgv.Columns(4).FillWeight = 50 : 明細表_dgv.Columns(5).FillWeight = 350 : 明細表_dgv.Columns(6).FillWeight = 100 : 明細表_dgv.Columns(7).FillWeight = 100
273
+            明細表_dgv.Columns(4).FillWeight = 50 : 明細表_dgv.Columns(5).FillWeight = 200 : 明細表_dgv.Columns(6).FillWeight = 100 : 明細表_dgv.Columns(7).FillWeight = 100
274 274
             明細表_dgv.Columns(8).FillWeight = 100 : 明細表_dgv.Columns(9).FillWeight = 100 : 明細表_dgv.Columns(10).FillWeight = 100 : 明細表_dgv.Columns(11).FillWeight = 100
275 275
             明細表_dgv.Columns(12).Visible = False : 明細表_dgv.Columns(13).Visible = False : 明細表_dgv.Columns(14).Visible = False : 明細表_dgv.Columns(15).Visible = False
276 276
             明細表_dgv.Columns(16).Visible = False : 明細表_dgv.Columns(17).Visible = False : 明細表_dgv.Columns(18).FillWeight = 100
@@ -384,6 +384,7 @@ Public Class 倉儲控制表
384 384
                 訂製狀態_tb.Text = 明細表_dgv("訂製狀態", e.RowIndex).Value.ToString
385 385
                 倉儲流水_tb.Text = 明細表_dgv("資料流水號", e.RowIndex).Value.ToString
386 386
                 補單日_dtp.Value = 明細表_dgv("申請日期", e.RowIndex).Value
387
+                備註_tb.Text = 明細表_dgv("備註", e.RowIndex).Value
387 388
             End If
388 389
         Catch ex As Exception
389 390
             MsgBox(ex.Message)
@@ -456,16 +457,7 @@ Public Class 倉儲控制表
456 457
     Private Sub 顯示歸零_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 不顯示歸零_ch.Click
457 458
         Set_清單()
458 459
     End Sub
459
-    Private Sub 刪除_bt_Click(sender As Object, e As EventArgs) Handles 刪除_bt.Click
460
-        Try
461
-            Dim aa1 As MsgBoxResult = MsgBox("請確定是否刪除資料?", MsgBoxStyle.OkCancel)
462
-            If aa1 = MsgBoxResult.Ok Then
463
-                PA20 = 倉儲流水_tb.Text : SQL_倉儲控制表_刪除明細() : Set_清單() : Set_清單1()
464
-            End If
465
-        Catch ex As Exception
466
-            MsgBox(ex.Message)
467
-        End Try
468
-    End Sub
460
+
469 461
     Private Shared Function NewMethod(xlBook As Microsoft.Office.Interop.Excel.Workbook) As Microsoft.Office.Interop.Excel.Worksheet
470 462
         Return CType(xlBook.Worksheets.Add, Microsoft.Office.Interop.Excel.Worksheet)
471 463
     End Function
@@ -628,6 +620,17 @@ Public Class 倉儲控制表
628 620
             MsgBox("調整帳務完成!!") : Set_清單() : Set_清單1()
629 621
         End If
630 622
     End Sub
623
+    Private Sub 資料存檔_bt_Click(sender As Object, e As EventArgs) Handles 資料存檔_bt.Click
624
+        If 倉儲流水_tb.Text = "" Then : MsgBox("請先選擇資料!!") : Else
625
+            PA20 = 倉儲流水_tb.Text : PA19 = 備註_tb.Text : SQL_倉儲控制表_備註存檔() : Set_清單1() : MsgBox("備註存檔成功!!")
626
+        End If
627
+    End Sub
628
+    Private Sub 刪除_bt_Click(sender As Object, e As EventArgs) Handles 刪除_bt.Click
629
+        Dim aa1 As MsgBoxResult = MsgBox("請確定是否刪除資料?", MsgBoxStyle.OkCancel)
630
+        If aa1 = MsgBoxResult.Ok Then
631
+            PA20 = 倉儲流水_tb.Text : SQL_倉儲控制表_刪除明細() : Set_清單() : Set_清單1() : MsgBox("刪除成功!!")
632
+        End If
633
+    End Sub
631 634
     Private Sub 清空1_bt_Click(sender As Object, e As EventArgs) Handles 清空1_bt.Click
632 635
         料號2_tb.Text = "" : Set_清單() : Set_清單1()
633 636
     End Sub

Loading…
Avbryt
Spara