|
@@ -179,7 +179,8 @@ Public Class 訂單資料比對與修改_力威
|
179
|
179
|
裝箱明細2_dgv.ColumnHeadersHeight = 25
|
180
|
180
|
裝箱明細2_dgv.AllowUserToAddRows = False
|
181
|
181
|
ConnOpen()
|
182
|
|
- SQL1 = "SELECT 天盾流水號, 客戶訂單號, 力威訂單號, Item, Material, DM, [5], [5.5], [6], [6.5], [7], [7.5], [8], [8.5], [9], [9.5], [10], [10.5], [11], [11.5], [12], [12.5], [13], [14]
|
|
182
|
+ SQL1 = "SELECT 天盾流水號, 客戶訂單號, 力威訂單號, Item, Material, DM, [5], [5.5], [6], [6.5], [7], [7.5], [8], [8.5], [9], [9.5], [10], [10.5], [11], [11.5], [12], [12.5],
|
|
183
|
+ [13], [14], CustAssign
|
183
|
184
|
FROM " & 訂單資料表(3) & "
|
184
|
185
|
WHERE 天盾流水號 LIKE '" & Number1_tb.Text & "' ORDER BY Item DESC"
|
185
|
186
|
CmdSet_For_DGV() : da.SelectCommand.CommandTimeout = 900 : da.Fill(ds4) : 裝箱明細1_dgv.DataSource = ds4.Tables(0) : 裝箱明細2_dgv.DataSource = ds4.Tables(0) : conn.Close()
|
|
@@ -190,7 +191,7 @@ Public Class 訂單資料比對與修改_力威
|
190
|
191
|
裝箱明細1_dgv.Columns(10).FillWeight = 40 : 裝箱明細1_dgv.Columns(11).FillWeight = 40 : 裝箱明細1_dgv.Columns(12).FillWeight = 40 : 裝箱明細1_dgv.Columns(13).FillWeight = 40
|
191
|
192
|
裝箱明細1_dgv.Columns(14).FillWeight = 40 : 裝箱明細1_dgv.Columns(15).FillWeight = 40 : 裝箱明細1_dgv.Columns(16).FillWeight = 40 : 裝箱明細1_dgv.Columns(17).FillWeight = 40
|
192
|
193
|
裝箱明細1_dgv.Columns(18).FillWeight = 40 : 裝箱明細1_dgv.Columns(19).FillWeight = 40 : 裝箱明細1_dgv.Columns(20).FillWeight = 40 : 裝箱明細1_dgv.Columns(21).FillWeight = 40
|
193
|
|
- 裝箱明細1_dgv.Columns(22).FillWeight = 40 : 裝箱明細1_dgv.Columns(23).FillWeight = 40
|
|
194
|
+ 裝箱明細1_dgv.Columns(22).FillWeight = 40 : 裝箱明細1_dgv.Columns(23).FillWeight = 40 : 裝箱明細1_dgv.Columns(24).FillWeight = 80
|
194
|
195
|
裝箱明細1_dgv.Columns(7).DefaultCellStyle.Format = "#,##0" : 裝箱明細1_dgv.Columns(8).DefaultCellStyle.Format = "#,##0" : 裝箱明細1_dgv.Columns(9).DefaultCellStyle.Format = "#,##0"
|
195
|
196
|
裝箱明細1_dgv.Columns(10).DefaultCellStyle.Format = "#,##0" : 裝箱明細1_dgv.Columns(11).DefaultCellStyle.Format = "#,##0" : 裝箱明細1_dgv.Columns(12).DefaultCellStyle.Format = "#,##0"
|
196
|
197
|
裝箱明細1_dgv.Columns(13).DefaultCellStyle.Format = "#,##0" : 裝箱明細1_dgv.Columns(14).DefaultCellStyle.Format = "#,##0" : 裝箱明細1_dgv.Columns(15).DefaultCellStyle.Format = "#,##0"
|
|
@@ -204,7 +205,7 @@ Public Class 訂單資料比對與修改_力威
|
204
|
205
|
裝箱明細2_dgv.Columns(10).FillWeight = 40 : 裝箱明細2_dgv.Columns(11).FillWeight = 40 : 裝箱明細2_dgv.Columns(12).FillWeight = 40 : 裝箱明細2_dgv.Columns(13).FillWeight = 40
|
205
|
206
|
裝箱明細2_dgv.Columns(14).FillWeight = 40 : 裝箱明細2_dgv.Columns(15).FillWeight = 40 : 裝箱明細2_dgv.Columns(16).FillWeight = 40 : 裝箱明細2_dgv.Columns(17).FillWeight = 40
|
206
|
207
|
裝箱明細2_dgv.Columns(18).FillWeight = 40 : 裝箱明細2_dgv.Columns(19).FillWeight = 40 : 裝箱明細2_dgv.Columns(20).FillWeight = 40 : 裝箱明細2_dgv.Columns(21).FillWeight = 40
|
207
|
|
- 裝箱明細2_dgv.Columns(22).FillWeight = 40 : 裝箱明細2_dgv.Columns(23).FillWeight = 40
|
|
208
|
+ 裝箱明細2_dgv.Columns(22).FillWeight = 40 : 裝箱明細2_dgv.Columns(23).FillWeight = 40 : 裝箱明細2_dgv.Columns(24).FillWeight = 80
|
208
|
209
|
裝箱明細2_dgv.Columns(7).DefaultCellStyle.Format = "#,##0" : 裝箱明細2_dgv.Columns(8).DefaultCellStyle.Format = "#,##0" : 裝箱明細2_dgv.Columns(9).DefaultCellStyle.Format = "#,##0"
|
209
|
210
|
裝箱明細2_dgv.Columns(10).DefaultCellStyle.Format = "#,##0" : 裝箱明細2_dgv.Columns(11).DefaultCellStyle.Format = "#,##0" : 裝箱明細2_dgv.Columns(12).DefaultCellStyle.Format = "#,##0"
|
210
|
211
|
裝箱明細2_dgv.Columns(13).DefaultCellStyle.Format = "#,##0" : 裝箱明細2_dgv.Columns(14).DefaultCellStyle.Format = "#,##0" : 裝箱明細2_dgv.Columns(15).DefaultCellStyle.Format = "#,##0"
|
|
@@ -267,7 +268,7 @@ Public Class 訂單資料比對與修改_力威
|
267
|
268
|
裝箱明細_dgv.Rows(0).Cells("11").Value = 0 : 裝箱明細_dgv.Rows(0).Cells("11.5").Value = 0 : 裝箱明細_dgv.Rows(0).Cells("12").Value = 0 : 裝箱明細_dgv.Rows(0).Cells("12.5").Value = 0
|
268
|
269
|
裝箱明細_dgv.Rows(0).Cells("13").Value = 0 : 裝箱明細_dgv.Rows(0).Cells("14").Value = 0 : 裝箱明細_dgv.Rows(0).Cells("天盾流水號").Value = ""
|
269
|
270
|
裝箱明細_dgv.Rows(0).Cells("客戶訂單號").Value = "" : 裝箱明細_dgv.Rows(0).Cells("力威訂單號").Value = "" : 裝箱明細_dgv.Rows(0).Cells("Item").Value = ""
|
270
|
|
- 裝箱明細_dgv.Rows(0).Cells("Material").Value = "" : 裝箱明細_dgv.Rows(0).Cells("DM").Value = ""
|
|
271
|
+ 裝箱明細_dgv.Rows(0).Cells("Material").Value = "" : 裝箱明細_dgv.Rows(0).Cells("DM").Value = "" : 裝箱明細_dgv.Rows(0).Cells("CustAssign").Value = ""
|
271
|
272
|
End Sub
|
272
|
273
|
Private Sub 填入0值2_1()
|
273
|
274
|
裝箱明細3_dgv.Rows(0).Cells("5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("5.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("6").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("6.5").Value = 0
|
|
@@ -276,7 +277,7 @@ Public Class 訂單資料比對與修改_力威
|
276
|
277
|
裝箱明細3_dgv.Rows(0).Cells("11").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("11.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("12").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("12.5").Value = 0
|
277
|
278
|
裝箱明細3_dgv.Rows(0).Cells("13").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("14").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("天盾流水號").Value = ""
|
278
|
279
|
裝箱明細3_dgv.Rows(0).Cells("客戶訂單號").Value = "" : 裝箱明細3_dgv.Rows(0).Cells("力威訂單號").Value = "" : 裝箱明細3_dgv.Rows(0).Cells("Item").Value = ""
|
279
|
|
- 裝箱明細3_dgv.Rows(0).Cells("Material").Value = "" : 裝箱明細3_dgv.Rows(0).Cells("DM").Value = ""
|
|
280
|
+ 裝箱明細3_dgv.Rows(0).Cells("Material").Value = "" : 裝箱明細3_dgv.Rows(0).Cells("DM").Value = "" : 裝箱明細3_dgv.Rows(0).Cells("CustAssign").Value = ""
|
280
|
281
|
End Sub
|
281
|
282
|
Private Sub 填入0值3()
|
282
|
283
|
控制表_dgv.Rows(0).Cells("訂單流水號").Value = "" : 控制表_dgv.Rows(0).Cells("年份季度").Value = "" : 控制表_dgv.Rows(0).Cells("客戶訂單號").Value = ""
|
|
@@ -552,6 +553,7 @@ Public Class 訂單資料比對與修改_力威
|
552
|
553
|
Dim DR13 As New DataGridViewTextBoxColumn : Dim DR14 As New DataGridViewTextBoxColumn : Dim DR15 As New DataGridViewTextBoxColumn : Dim DR16 As New DataGridViewTextBoxColumn
|
553
|
554
|
Dim DR17 As New DataGridViewTextBoxColumn : Dim DR18 As New DataGridViewTextBoxColumn : Dim DR19 As New DataGridViewTextBoxColumn : Dim DR20 As New DataGridViewTextBoxColumn
|
554
|
555
|
Dim DR21 As New DataGridViewTextBoxColumn : Dim DR22 As New DataGridViewTextBoxColumn : Dim DR23 As New DataGridViewTextBoxColumn : Dim DR24 As New DataGridViewTextBoxColumn
|
|
556
|
+ Dim DR25 As New DataGridViewTextBoxColumn
|
555
|
557
|
DR01.HeaderText = "天盾流水號" : DR01.Name = "天盾流水號" : 裝箱明細_dgv.Columns.Insert(0, DR01)
|
556
|
558
|
DR02.HeaderText = "客戶訂單號" : DR02.Name = "客戶訂單號" : 裝箱明細_dgv.Columns.Insert(1, DR02)
|
557
|
559
|
DR03.HeaderText = "力威訂單號" : DR03.Name = "力威訂單號" : 裝箱明細_dgv.Columns.Insert(2, DR03)
|
|
@@ -567,12 +569,14 @@ Public Class 訂單資料比對與修改_力威
|
567
|
569
|
DR19.HeaderText = "11" : DR19.Name = "11" : 裝箱明細_dgv.Columns.Insert(18, DR19) : DR20.HeaderText = "11.5" : DR20.Name = "11.5" : 裝箱明細_dgv.Columns.Insert(19, DR20)
|
568
|
570
|
DR21.HeaderText = "12" : DR21.Name = "12" : 裝箱明細_dgv.Columns.Insert(20, DR21) : DR22.HeaderText = "12.5" : DR22.Name = "12.5" : 裝箱明細_dgv.Columns.Insert(21, DR22)
|
569
|
571
|
DR23.HeaderText = "13" : DR23.Name = "13" : 裝箱明細_dgv.Columns.Insert(22, DR23) : DR24.HeaderText = "14" : DR24.Name = "14" : 裝箱明細_dgv.Columns.Insert(23, DR24)
|
|
572
|
+ DR25.HeaderText = "CustAssign" : DR25.Name = "CustAssign" : 裝箱明細_dgv.Columns.Insert(23, DR25)
|
570
|
573
|
裝箱明細_dgv.Columns(0).FillWeight = 100 : 裝箱明細_dgv.Columns(1).FillWeight = 100 : 裝箱明細_dgv.Columns(2).FillWeight = 100 : 裝箱明細_dgv.Columns(3).FillWeight = 100
|
571
|
574
|
裝箱明細_dgv.Columns(4).FillWeight = 80 : 裝箱明細_dgv.Columns(5).FillWeight = 60 : 裝箱明細_dgv.Columns(6).FillWeight = 50 : 裝箱明細_dgv.Columns(7).FillWeight = 50
|
572
|
575
|
裝箱明細_dgv.Columns(8).FillWeight = 50 : 裝箱明細_dgv.Columns(9).FillWeight = 50 : 裝箱明細_dgv.Columns(10).FillWeight = 50 : 裝箱明細_dgv.Columns(11).FillWeight = 50
|
573
|
576
|
裝箱明細_dgv.Columns(12).FillWeight = 50 : 裝箱明細_dgv.Columns(13).FillWeight = 50 : 裝箱明細_dgv.Columns(14).FillWeight = 50 : 裝箱明細_dgv.Columns(15).FillWeight = 50
|
574
|
577
|
裝箱明細_dgv.Columns(16).FillWeight = 50 : 裝箱明細_dgv.Columns(17).FillWeight = 50 : 裝箱明細_dgv.Columns(18).FillWeight = 50 : 裝箱明細_dgv.Columns(19).FillWeight = 50
|
575
|
578
|
裝箱明細_dgv.Columns(20).FillWeight = 50 : 裝箱明細_dgv.Columns(21).FillWeight = 50 : 裝箱明細_dgv.Columns(22).FillWeight = 50 : 裝箱明細_dgv.Columns(23).FillWeight = 50
|
|
579
|
+ 裝箱明細_dgv.Columns(24).FillWeight = 80
|
576
|
580
|
填入0值2()
|
577
|
581
|
|
578
|
582
|
Dim DK01 As New DataGridViewTextBoxColumn : Dim DK02 As New DataGridViewTextBoxColumn : Dim DK03 As New DataGridViewTextBoxColumn : Dim DK04 As New DataGridViewTextBoxColumn
|
|
@@ -581,6 +585,7 @@ Public Class 訂單資料比對與修改_力威
|
581
|
585
|
Dim DK13 As New DataGridViewTextBoxColumn : Dim DK14 As New DataGridViewTextBoxColumn : Dim DK15 As New DataGridViewTextBoxColumn : Dim DK16 As New DataGridViewTextBoxColumn
|
582
|
586
|
Dim DK17 As New DataGridViewTextBoxColumn : Dim DK18 As New DataGridViewTextBoxColumn : Dim DK19 As New DataGridViewTextBoxColumn : Dim DK20 As New DataGridViewTextBoxColumn
|
583
|
587
|
Dim DK21 As New DataGridViewTextBoxColumn : Dim DK22 As New DataGridViewTextBoxColumn : Dim DK23 As New DataGridViewTextBoxColumn : Dim DK24 As New DataGridViewTextBoxColumn
|
|
588
|
+ Dim DK25 As New DataGridViewTextBoxColumn
|
584
|
589
|
DK01.HeaderText = "天盾流水號" : DK01.Name = "天盾流水號" : 裝箱明細3_dgv.Columns.Insert(0, DK01)
|
585
|
590
|
DK02.HeaderText = "客戶訂單號" : DK02.Name = "客戶訂單號" : 裝箱明細3_dgv.Columns.Insert(1, DK02)
|
586
|
591
|
DK03.HeaderText = "力威訂單號" : DK03.Name = "力威訂單號" : 裝箱明細3_dgv.Columns.Insert(2, DK03)
|
|
@@ -596,13 +601,14 @@ Public Class 訂單資料比對與修改_力威
|
596
|
601
|
DK19.HeaderText = "11" : DK19.Name = "11" : 裝箱明細3_dgv.Columns.Insert(18, DK19) : DK20.HeaderText = "11.5" : DK20.Name = "11.5" : 裝箱明細3_dgv.Columns.Insert(19, DK20)
|
597
|
602
|
DK21.HeaderText = "12" : DK21.Name = "12" : 裝箱明細3_dgv.Columns.Insert(20, DK21) : DK22.HeaderText = "12.5" : DK22.Name = "12.5" : 裝箱明細3_dgv.Columns.Insert(21, DK22)
|
598
|
603
|
DK23.HeaderText = "13" : DK23.Name = "13" : 裝箱明細3_dgv.Columns.Insert(22, DK23) : DK24.HeaderText = "14" : DK24.Name = "14" : 裝箱明細3_dgv.Columns.Insert(23, DK24)
|
|
604
|
+ DK25.HeaderText = "CustAssign" : DK25.Name = "CustAssign" : 裝箱明細3_dgv.Columns.Insert(23, DK25)
|
599
|
605
|
裝箱明細3_dgv.Columns(0).FillWeight = 110 : 裝箱明細3_dgv.Columns(1).FillWeight = 110 : 裝箱明細3_dgv.Columns(2).FillWeight = 110
|
600
|
606
|
裝箱明細3_dgv.Columns(3).FillWeight = 90 : 裝箱明細3_dgv.Columns(4).FillWeight = 190 : 裝箱明細3_dgv.Columns(5).FillWeight = 80
|
601
|
607
|
裝箱明細3_dgv.Columns(6).FillWeight = 40 : 裝箱明細3_dgv.Columns(7).FillWeight = 40 : 裝箱明細3_dgv.Columns(8).FillWeight = 40 : 裝箱明細3_dgv.Columns(9).FillWeight = 40
|
602
|
608
|
裝箱明細3_dgv.Columns(10).FillWeight = 40 : 裝箱明細3_dgv.Columns(11).FillWeight = 40 : 裝箱明細3_dgv.Columns(12).FillWeight = 40 : 裝箱明細3_dgv.Columns(13).FillWeight = 40
|
603
|
609
|
裝箱明細3_dgv.Columns(14).FillWeight = 40 : 裝箱明細3_dgv.Columns(15).FillWeight = 40 : 裝箱明細3_dgv.Columns(16).FillWeight = 40 : 裝箱明細3_dgv.Columns(17).FillWeight = 40
|
604
|
610
|
裝箱明細3_dgv.Columns(18).FillWeight = 40 : 裝箱明細3_dgv.Columns(19).FillWeight = 40 : 裝箱明細3_dgv.Columns(20).FillWeight = 40 : 裝箱明細3_dgv.Columns(21).FillWeight = 40
|
605
|
|
- 裝箱明細3_dgv.Columns(22).FillWeight = 40 : 裝箱明細3_dgv.Columns(23).FillWeight = 40
|
|
611
|
+ 裝箱明細3_dgv.Columns(22).FillWeight = 40 : 裝箱明細3_dgv.Columns(23).FillWeight = 40 : 裝箱明細3_dgv.Columns(25).FillWeight = 80
|
606
|
612
|
填入0值2_1()
|
607
|
613
|
End Sub
|
608
|
614
|
Private Sub 抬頭清單_dgv_CellClick(ByVal sender As Object, ByVal e As DataGridViewCellEventArgs) Handles 抬頭清單_dgv.CellClick
|
|
@@ -1010,128 +1016,133 @@ Public Class 訂單資料比對與修改_力威
|
1010
|
1016
|
|
1011
|
1017
|
For II As Integer = 0 To 10 : 資料數2 = 10 : 進度條2()
|
1012
|
1018
|
If Strings.Left(xlSheet.Cells(YY + I, XX2 + II).value, 5) = "Width" Then
|
1013
|
|
- For TT As Integer = 1 To 3
|
1014
|
|
- If Strings.Left(xlSheet.Cells(YY + I + TT, XX2 + II).value, 1) = "M" Or Strings.Left(xlSheet.Cells(YY + I + TT, XX2 + II).value, 1) = "W" Or
|
|
1019
|
+ For TT As Integer = 1 To 15
|
|
1020
|
+ If xlSheet.Cells(YY + I + TT, XX2 + II).value = "Width" Then : Else
|
|
1021
|
+ If Strings.Left(xlSheet.Cells(YY + I + TT, XX2 + II).value, 1) = "M" Or Strings.Left(xlSheet.Cells(YY + I + TT, XX2 + II).value, 1) = "W" Or
|
1015
|
1022
|
Strings.Left(xlSheet.Cells(YY + I + TT, XX2 + II).value, 1) = "N" Then
|
1016
|
|
- If W2 = 0 Then : Else
|
1017
|
|
- 裝箱明細_dgv.Rows.Insert(0) : 裝箱明細3_dgv.Rows.Insert(0)
|
1018
|
|
- 填入0值2() : 填入0值2_1()
|
1019
|
|
- End If
|
|
1023
|
+ If W2 = 0 Then : Else
|
|
1024
|
+ 裝箱明細_dgv.Rows.Insert(0) : 裝箱明細3_dgv.Rows.Insert(0)
|
|
1025
|
+ 填入0值2() : 填入0值2_1()
|
|
1026
|
+ End If
|
1020
|
1027
|
|
1021
|
|
- 裝箱明細_dgv.Rows(0).Cells("天盾流水號").Value = Number_tb.Text
|
1022
|
|
- 裝箱明細_dgv.Rows(0).Cells("客戶訂單號").Value = 客戶訂單號_tb.Text
|
1023
|
|
- 裝箱明細_dgv.Rows(0).Cells("力威訂單號").Value = 力威訂單號_tb.Text
|
1024
|
|
- 裝箱明細_dgv.Rows(0).Cells("Item").Value = 項目
|
1025
|
|
- 裝箱明細_dgv.Rows(0).Cells("Material").Value = 型體資料
|
1026
|
|
-
|
1027
|
|
- 裝箱明細3_dgv.Rows(0).Cells("天盾流水號").Value = Number_tb.Text
|
1028
|
|
- 裝箱明細3_dgv.Rows(0).Cells("客戶訂單號").Value = 客戶訂單號_tb.Text
|
1029
|
|
- 裝箱明細3_dgv.Rows(0).Cells("力威訂單號").Value = 力威訂單號_tb.Text
|
1030
|
|
- 裝箱明細3_dgv.Rows(0).Cells("Item").Value = 項目
|
1031
|
|
- 裝箱明細3_dgv.Rows(0).Cells("Material").Value = 型體資料
|
1032
|
|
-
|
1033
|
|
- If Strings.Left(xlSheet.Cells(YY + I + TT, XX2 + II).value, 1) = "M" Then
|
1034
|
|
- 裝箱明細_dgv.Rows(0).Cells("DM").Value = "MED" : 裝箱明細3_dgv.Rows(0).Cells("DM").Value = "MED"
|
1035
|
|
- ElseIf Strings.Left(xlSheet.Cells(YY + I + TT, XX2 + II).value, 1) = "W" Then
|
1036
|
|
- 裝箱明細_dgv.Rows(0).Cells("DM").Value = "WIDE" : 裝箱明細3_dgv.Rows(0).Cells("DM").Value = "WIDE"
|
1037
|
|
- ElseIf Strings.Left(xlSheet.Cells(YY + I + TT, XX2 + II).value, 1) = "N" Then
|
1038
|
|
- 裝箱明細_dgv.Rows(0).Cells("DM").Value = "NARRO" : 裝箱明細3_dgv.Rows(0).Cells("DM").Value = "NARRO"
|
1039
|
|
- End If
|
1040
|
|
- For UU As Integer = 1 To 70 : 資料數3 = 70 : 進度條3()
|
1041
|
|
- If Not IsNumeric(xlSheet.Cells(YY + I, XX2 + II + UU).value) Then : Else
|
1042
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 5 Then
|
1043
|
|
- 裝箱明細_dgv.Rows(0).Cells("5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1044
|
|
- 裝箱明細3_dgv.Rows(0).Cells("5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1045
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1046
|
|
- 裝箱明細_dgv.Rows(0).Cells("5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("5").Value = 0 : End If : End If
|
1047
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 5.5 Then
|
1048
|
|
- 裝箱明細_dgv.Rows(0).Cells("5.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1049
|
|
- 裝箱明細3_dgv.Rows(0).Cells("5.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1050
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1051
|
|
- 裝箱明細_dgv.Rows(0).Cells("5.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("5.5").Value = 0 : End If : End If
|
1052
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 6 Then
|
1053
|
|
- 裝箱明細_dgv.Rows(0).Cells("6").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1054
|
|
- 裝箱明細3_dgv.Rows(0).Cells("6").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1055
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1056
|
|
- 裝箱明細_dgv.Rows(0).Cells("6").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("6").Value = 0 : End If : End If
|
1057
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 6.5 Then
|
1058
|
|
- 裝箱明細_dgv.Rows(0).Cells("6.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1059
|
|
- 裝箱明細3_dgv.Rows(0).Cells("6.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1060
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1061
|
|
- 裝箱明細_dgv.Rows(0).Cells("6.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("6.5").Value = 0 : End If : End If
|
1062
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 7 Then
|
1063
|
|
- 裝箱明細_dgv.Rows(0).Cells("7").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1064
|
|
- 裝箱明細3_dgv.Rows(0).Cells("7").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1065
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1066
|
|
- 裝箱明細_dgv.Rows(0).Cells("7").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("7").Value = 0 : End If : End If
|
1067
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 7.5 Then
|
1068
|
|
- 裝箱明細_dgv.Rows(0).Cells("7.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1069
|
|
- 裝箱明細3_dgv.Rows(0).Cells("7.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1070
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1071
|
|
- 裝箱明細_dgv.Rows(0).Cells("7.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("7.5").Value = 0 : End If : End If
|
1072
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 8 Then
|
1073
|
|
- 裝箱明細_dgv.Rows(0).Cells("8").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1074
|
|
- 裝箱明細3_dgv.Rows(0).Cells("8").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1075
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1076
|
|
- 裝箱明細_dgv.Rows(0).Cells("8").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("8").Value = 0 : End If : End If
|
1077
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 8.5 Then
|
1078
|
|
- 裝箱明細_dgv.Rows(0).Cells("8.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1079
|
|
- 裝箱明細3_dgv.Rows(0).Cells("8.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1080
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1081
|
|
- 裝箱明細_dgv.Rows(0).Cells("8.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("8.5").Value = 0 : End If : End If
|
1082
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 9 Then
|
1083
|
|
- 裝箱明細_dgv.Rows(0).Cells("9").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1084
|
|
- 裝箱明細3_dgv.Rows(0).Cells("9").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1085
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1086
|
|
- 裝箱明細_dgv.Rows(0).Cells("9").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("9").Value = 0 : End If : End If
|
1087
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 9.5 Then
|
1088
|
|
- 裝箱明細_dgv.Rows(0).Cells("9.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1089
|
|
- 裝箱明細3_dgv.Rows(0).Cells("9.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1090
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1091
|
|
- 裝箱明細_dgv.Rows(0).Cells("9.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("9.5").Value = 0 : End If : End If
|
1092
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 10 Then
|
1093
|
|
- 裝箱明細_dgv.Rows(0).Cells("10").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1094
|
|
- 裝箱明細3_dgv.Rows(0).Cells("10").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1095
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1096
|
|
- 裝箱明細_dgv.Rows(0).Cells("10").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("10").Value = 0 : End If : End If
|
1097
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 10.5 Then
|
1098
|
|
- 裝箱明細_dgv.Rows(0).Cells("10.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1099
|
|
- 裝箱明細3_dgv.Rows(0).Cells("10.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1100
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1101
|
|
- 裝箱明細_dgv.Rows(0).Cells("10.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("10.5").Value = 0 : End If : End If
|
1102
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 11 Then
|
1103
|
|
- 裝箱明細_dgv.Rows(0).Cells("11").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1104
|
|
- 裝箱明細3_dgv.Rows(0).Cells("11").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1105
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1106
|
|
- 裝箱明細_dgv.Rows(0).Cells("11").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("11").Value = 0 : End If : End If
|
1107
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 11.5 Then
|
1108
|
|
- 裝箱明細_dgv.Rows(0).Cells("11.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1109
|
|
- 裝箱明細3_dgv.Rows(0).Cells("11.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1110
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1111
|
|
- 裝箱明細_dgv.Rows(0).Cells("11.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("11.5").Value = 0 : End If : End If
|
1112
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 12 Then
|
1113
|
|
- 裝箱明細_dgv.Rows(0).Cells("12").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1114
|
|
- 裝箱明細3_dgv.Rows(0).Cells("12").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1115
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1116
|
|
- 裝箱明細_dgv.Rows(0).Cells("12").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("12").Value = 0 : End If : End If
|
1117
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 12.5 Then
|
1118
|
|
- 裝箱明細_dgv.Rows(0).Cells("12.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1119
|
|
- 裝箱明細3_dgv.Rows(0).Cells("12.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1120
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1121
|
|
- 裝箱明細_dgv.Rows(0).Cells("12.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("12.5").Value = 0 : End If : End If
|
1122
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 13 Then
|
1123
|
|
- 裝箱明細_dgv.Rows(0).Cells("13").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1124
|
|
- 裝箱明細3_dgv.Rows(0).Cells("13").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1125
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1126
|
|
- 裝箱明細_dgv.Rows(0).Cells("13").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("13").Value = 0 : End If : End If
|
1127
|
|
- If xlSheet.Cells(YY + I, XX2 + II + UU).value = 14 Then
|
1128
|
|
- 裝箱明細_dgv.Rows(0).Cells("14").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1129
|
|
- 裝箱明細3_dgv.Rows(0).Cells("14").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
1130
|
|
- If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
1131
|
|
- 裝箱明細_dgv.Rows(0).Cells("14").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("14").Value = 0 : End If : End If
|
|
1028
|
+ 裝箱明細_dgv.Rows(0).Cells("天盾流水號").Value = Number_tb.Text
|
|
1029
|
+ 裝箱明細_dgv.Rows(0).Cells("客戶訂單號").Value = 客戶訂單號_tb.Text
|
|
1030
|
+ 裝箱明細_dgv.Rows(0).Cells("力威訂單號").Value = 力威訂單號_tb.Text
|
|
1031
|
+ 裝箱明細_dgv.Rows(0).Cells("Item").Value = 項目
|
|
1032
|
+ 裝箱明細_dgv.Rows(0).Cells("Material").Value = 型體資料
|
|
1033
|
+ 裝箱明細_dgv.Rows(0).Cells("CustAssign").Value = xlSheet.Cells(YY + I + TT, 1).value
|
|
1034
|
+
|
|
1035
|
+ 裝箱明細3_dgv.Rows(0).Cells("天盾流水號").Value = Number_tb.Text
|
|
1036
|
+ 裝箱明細3_dgv.Rows(0).Cells("客戶訂單號").Value = 客戶訂單號_tb.Text
|
|
1037
|
+ 裝箱明細3_dgv.Rows(0).Cells("力威訂單號").Value = 力威訂單號_tb.Text
|
|
1038
|
+ 裝箱明細3_dgv.Rows(0).Cells("Item").Value = 項目
|
|
1039
|
+ 裝箱明細3_dgv.Rows(0).Cells("Material").Value = 型體資料
|
|
1040
|
+ 裝箱明細3_dgv.Rows(0).Cells("CustAssign").Value = xlSheet.Cells(YY + I + TT, 1).value
|
|
1041
|
+
|
|
1042
|
+ If Strings.Left(xlSheet.Cells(YY + I + TT, XX2 + II).value, 1) = "M" Then
|
|
1043
|
+ 裝箱明細_dgv.Rows(0).Cells("DM").Value = "MED" : 裝箱明細3_dgv.Rows(0).Cells("DM").Value = "MED"
|
|
1044
|
+ ElseIf Strings.Left(xlSheet.Cells(YY + I + TT, XX2 + II).value, 1) = "W" Then
|
|
1045
|
+ 裝箱明細_dgv.Rows(0).Cells("DM").Value = "WIDE" : 裝箱明細3_dgv.Rows(0).Cells("DM").Value = "WIDE"
|
|
1046
|
+ ElseIf Strings.Left(xlSheet.Cells(YY + I + TT, XX2 + II).value, 1) = "N" Then
|
|
1047
|
+ 裝箱明細_dgv.Rows(0).Cells("DM").Value = "NARRO" : 裝箱明細3_dgv.Rows(0).Cells("DM").Value = "NARRO"
|
1132
|
1048
|
End If
|
1133
|
|
- Next : ProgressBar4.Value = 0 : 最終數3 = 0
|
1134
|
|
- W2 += 1
|
|
1049
|
+
|
|
1050
|
+ For UU As Integer = 1 To 70 : 資料數3 = 70 : 進度條3()
|
|
1051
|
+ If Not IsNumeric(xlSheet.Cells(YY + I, XX2 + II + UU).value) Then : Else
|
|
1052
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 5 Then
|
|
1053
|
+ 裝箱明細_dgv.Rows(0).Cells("5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1054
|
+ 裝箱明細3_dgv.Rows(0).Cells("5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1055
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1056
|
+ 裝箱明細_dgv.Rows(0).Cells("5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("5").Value = 0 : End If : End If
|
|
1057
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 5.5 Then
|
|
1058
|
+ 裝箱明細_dgv.Rows(0).Cells("5.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1059
|
+ 裝箱明細3_dgv.Rows(0).Cells("5.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1060
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1061
|
+ 裝箱明細_dgv.Rows(0).Cells("5.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("5.5").Value = 0 : End If : End If
|
|
1062
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 6 Then
|
|
1063
|
+ 裝箱明細_dgv.Rows(0).Cells("6").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1064
|
+ 裝箱明細3_dgv.Rows(0).Cells("6").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1065
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1066
|
+ 裝箱明細_dgv.Rows(0).Cells("6").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("6").Value = 0 : End If : End If
|
|
1067
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 6.5 Then
|
|
1068
|
+ 裝箱明細_dgv.Rows(0).Cells("6.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1069
|
+ 裝箱明細3_dgv.Rows(0).Cells("6.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1070
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1071
|
+ 裝箱明細_dgv.Rows(0).Cells("6.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("6.5").Value = 0 : End If : End If
|
|
1072
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 7 Then
|
|
1073
|
+ 裝箱明細_dgv.Rows(0).Cells("7").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1074
|
+ 裝箱明細3_dgv.Rows(0).Cells("7").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1075
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1076
|
+ 裝箱明細_dgv.Rows(0).Cells("7").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("7").Value = 0 : End If : End If
|
|
1077
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 7.5 Then
|
|
1078
|
+ 裝箱明細_dgv.Rows(0).Cells("7.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1079
|
+ 裝箱明細3_dgv.Rows(0).Cells("7.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1080
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1081
|
+ 裝箱明細_dgv.Rows(0).Cells("7.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("7.5").Value = 0 : End If : End If
|
|
1082
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 8 Then
|
|
1083
|
+ 裝箱明細_dgv.Rows(0).Cells("8").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1084
|
+ 裝箱明細3_dgv.Rows(0).Cells("8").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1085
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1086
|
+ 裝箱明細_dgv.Rows(0).Cells("8").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("8").Value = 0 : End If : End If
|
|
1087
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 8.5 Then
|
|
1088
|
+ 裝箱明細_dgv.Rows(0).Cells("8.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1089
|
+ 裝箱明細3_dgv.Rows(0).Cells("8.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1090
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1091
|
+ 裝箱明細_dgv.Rows(0).Cells("8.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("8.5").Value = 0 : End If : End If
|
|
1092
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 9 Then
|
|
1093
|
+ 裝箱明細_dgv.Rows(0).Cells("9").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1094
|
+ 裝箱明細3_dgv.Rows(0).Cells("9").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1095
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1096
|
+ 裝箱明細_dgv.Rows(0).Cells("9").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("9").Value = 0 : End If : End If
|
|
1097
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 9.5 Then
|
|
1098
|
+ 裝箱明細_dgv.Rows(0).Cells("9.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1099
|
+ 裝箱明細3_dgv.Rows(0).Cells("9.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1100
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1101
|
+ 裝箱明細_dgv.Rows(0).Cells("9.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("9.5").Value = 0 : End If : End If
|
|
1102
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 10 Then
|
|
1103
|
+ 裝箱明細_dgv.Rows(0).Cells("10").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1104
|
+ 裝箱明細3_dgv.Rows(0).Cells("10").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1105
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1106
|
+ 裝箱明細_dgv.Rows(0).Cells("10").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("10").Value = 0 : End If : End If
|
|
1107
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 10.5 Then
|
|
1108
|
+ 裝箱明細_dgv.Rows(0).Cells("10.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1109
|
+ 裝箱明細3_dgv.Rows(0).Cells("10.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1110
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1111
|
+ 裝箱明細_dgv.Rows(0).Cells("10.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("10.5").Value = 0 : End If : End If
|
|
1112
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 11 Then
|
|
1113
|
+ 裝箱明細_dgv.Rows(0).Cells("11").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1114
|
+ 裝箱明細3_dgv.Rows(0).Cells("11").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1115
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1116
|
+ 裝箱明細_dgv.Rows(0).Cells("11").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("11").Value = 0 : End If : End If
|
|
1117
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 11.5 Then
|
|
1118
|
+ 裝箱明細_dgv.Rows(0).Cells("11.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1119
|
+ 裝箱明細3_dgv.Rows(0).Cells("11.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1120
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1121
|
+ 裝箱明細_dgv.Rows(0).Cells("11.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("11.5").Value = 0 : End If : End If
|
|
1122
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 12 Then
|
|
1123
|
+ 裝箱明細_dgv.Rows(0).Cells("12").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1124
|
+ 裝箱明細3_dgv.Rows(0).Cells("12").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1125
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1126
|
+ 裝箱明細_dgv.Rows(0).Cells("12").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("12").Value = 0 : End If : End If
|
|
1127
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 12.5 Then
|
|
1128
|
+ 裝箱明細_dgv.Rows(0).Cells("12.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1129
|
+ 裝箱明細3_dgv.Rows(0).Cells("12.5").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1130
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1131
|
+ 裝箱明細_dgv.Rows(0).Cells("12.5").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("12.5").Value = 0 : End If : End If
|
|
1132
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 13 Then
|
|
1133
|
+ 裝箱明細_dgv.Rows(0).Cells("13").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1134
|
+ 裝箱明細3_dgv.Rows(0).Cells("13").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1135
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1136
|
+ 裝箱明細_dgv.Rows(0).Cells("13").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("13").Value = 0 : End If : End If
|
|
1137
|
+ If xlSheet.Cells(YY + I, XX2 + II + UU).value = 14 Then
|
|
1138
|
+ 裝箱明細_dgv.Rows(0).Cells("14").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1139
|
+ 裝箱明細3_dgv.Rows(0).Cells("14").Value = xlSheet.Cells(YY + I + TT, XX2 + II + UU).value
|
|
1140
|
+ If IsNumeric(xlSheet.Cells(YY + I + TT, XX2 + II + UU).value) Then : Else
|
|
1141
|
+ 裝箱明細_dgv.Rows(0).Cells("14").Value = 0 : 裝箱明細3_dgv.Rows(0).Cells("14").Value = 0 : End If : End If
|
|
1142
|
+ End If
|
|
1143
|
+ Next : ProgressBar4.Value = 0 : 最終數3 = 0
|
|
1144
|
+ W2 += 1
|
|
1145
|
+ End If
|
1135
|
1146
|
End If
|
1136
|
1147
|
Next
|
1137
|
1148
|
End If
|
|
@@ -1790,6 +1801,10 @@ Public Class 訂單資料比對與修改_力威
|
1790
|
1801
|
If 裝箱明細2_dgv.Rows(I).Cells("14").Value <> 裝箱明細3_dgv.Rows(II).Cells("14").Value Then
|
1791
|
1802
|
裝箱明細3_dgv.Rows(II).Cells("14").Style.ForeColor = Color.Red : 裝箱明細2_dgv.Rows(I).Cells("14").Style.ForeColor = Color.Red : Else
|
1792
|
1803
|
裝箱明細3_dgv.Rows(II).Cells("14").Style.ForeColor = Color.Black : 裝箱明細2_dgv.Rows(I).Cells("14").Style.ForeColor = Color.Black : End If
|
|
1804
|
+
|
|
1805
|
+ If 裝箱明細2_dgv.Rows(I).Cells("CustAssign").Value <> 裝箱明細3_dgv.Rows(II).Cells("CustAssign").Value Then
|
|
1806
|
+ 裝箱明細3_dgv.Rows(II).Cells("CustAssign").Style.ForeColor = Color.Red : 裝箱明細2_dgv.Rows(I).Cells("CustAssign").Style.ForeColor = Color.Red : Else
|
|
1807
|
+ 裝箱明細3_dgv.Rows(II).Cells("CustAssign").Style.ForeColor = Color.Black : 裝箱明細2_dgv.Rows(I).Cells("CustAssign").Style.ForeColor = Color.Black : End If
|
1793
|
1808
|
End If
|
1794
|
1809
|
Next
|
1795
|
1810
|
Next
|
|
@@ -1885,7 +1900,8 @@ Public Class 訂單資料比對與修改_力威
|
1885
|
1900
|
[10] = '" & 裝箱明細3_dgv.Rows(i).Cells("10").Value & "', [10.5] = '" & 裝箱明細3_dgv.Rows(i).Cells("10.5").Value & "',
|
1886
|
1901
|
[11] = '" & 裝箱明細3_dgv.Rows(i).Cells("11").Value & "', [11.5] = '" & 裝箱明細3_dgv.Rows(i).Cells("11.5").Value & "',
|
1887
|
1902
|
[12] = '" & 裝箱明細3_dgv.Rows(i).Cells("12").Value & "', [12.5] = '" & 裝箱明細3_dgv.Rows(i).Cells("12.5").Value & "',
|
1888
|
|
- [13] = '" & 裝箱明細3_dgv.Rows(i).Cells("13").Value & "', [14] = '" & 裝箱明細3_dgv.Rows(i).Cells("14").Value & "'
|
|
1903
|
+ [13] = '" & 裝箱明細3_dgv.Rows(i).Cells("13").Value & "', [14] = '" & 裝箱明細3_dgv.Rows(i).Cells("14").Value & "',
|
|
1904
|
+ CustAssign = '" & 裝箱明細3_dgv.Rows(i).Cells("CustAssign").Value & "'
|
1889
|
1905
|
WHERE 天盾流水號 LIKE '" & Number2_tb.Text & "' AND Item LIKE '" & 裝箱明細3_dgv.Rows(i).Cells("Item").Value & "' AND
|
1890
|
1906
|
Material LIKE '" & 裝箱明細3_dgv.Rows(i).Cells("Material").Value & "'AND DM LIKE '" & 裝箱明細3_dgv.Rows(i).Cells("DM").Value & "'"
|
1891
|
1907
|
CmdSet_For_dr() : conn.Close()
|
|
@@ -2027,7 +2043,7 @@ Public Class 訂單資料比對與修改_力威
|
2027
|
2043
|
For i As Integer = 0 To 裝箱明細3_dgv.Rows.Count - 1 : 資料數3 = 裝箱明細3_dgv.Rows.Count : 進度條3()
|
2028
|
2044
|
ConnOpen()
|
2029
|
2045
|
SQL1 = "INSERT INTO " & 訂單資料表(3) & " (天盾流水號, 客戶訂單號, 力威訂單號, Item, Material, DM, [5], [5.5], [6], [6.5], [7], [7.5], [8], [8.5], [9], [9.5],
|
2030
|
|
- [10], [10.5], [11], [11.5], [12], [12.5], [13], [14])
|
|
2046
|
+ [10], [10.5], [11], [11.5], [12], [12.5], [13], [14], CustAssign)
|
2031
|
2047
|
VALUES ('" & 裝箱明細3_dgv.Rows(i).Cells("天盾流水號").Value & "','" & 裝箱明細3_dgv.Rows(i).Cells("客戶訂單號").Value & "','" & 裝箱明細3_dgv.Rows(i).Cells("力威訂單號").Value & "',
|
2032
|
2048
|
'" & 裝箱明細3_dgv.Rows(i).Cells("Item").Value & "','" & 裝箱明細3_dgv.Rows(i).Cells("Material").Value & "','" & 裝箱明細3_dgv.Rows(i).Cells("DM").Value & "',
|
2033
|
2049
|
'" & 裝箱明細3_dgv.Rows(i).Cells("5").Value & "','" & 裝箱明細3_dgv.Rows(i).Cells("5.5").Value & "', '" & 裝箱明細3_dgv.Rows(i).Cells("6").Value & "',
|
|
@@ -2035,7 +2051,8 @@ Public Class 訂單資料比對與修改_力威
|
2035
|
2051
|
'" & 裝箱明細3_dgv.Rows(i).Cells("8").Value & "','" & 裝箱明細3_dgv.Rows(i).Cells("8.5").Value & "', '" & 裝箱明細3_dgv.Rows(i).Cells("9").Value & "',
|
2036
|
2052
|
'" & 裝箱明細3_dgv.Rows(i).Cells("9.5").Value & "','" & 裝箱明細3_dgv.Rows(i).Cells("10").Value & "', '" & 裝箱明細3_dgv.Rows(i).Cells("10.5").Value & "',
|
2037
|
2053
|
'" & 裝箱明細3_dgv.Rows(i).Cells("11").Value & "','" & 裝箱明細3_dgv.Rows(i).Cells("11.5").Value & "', '" & 裝箱明細3_dgv.Rows(i).Cells("12").Value & "',
|
2038
|
|
- '" & 裝箱明細3_dgv.Rows(i).Cells("12.5").Value & "','" & 裝箱明細3_dgv.Rows(i).Cells("13").Value & "', '" & 裝箱明細3_dgv.Rows(i).Cells("14").Value & "')"
|
|
2054
|
+ '" & 裝箱明細3_dgv.Rows(i).Cells("12.5").Value & "','" & 裝箱明細3_dgv.Rows(i).Cells("13").Value & "', '" & 裝箱明細3_dgv.Rows(i).Cells("14").Value & "',
|
|
2055
|
+ '" & 裝箱明細3_dgv.Rows(i).Cells("CustAssign").Value & "')"
|
2039
|
2056
|
CmdSet_For_dr() : conn.Close()
|
2040
|
2057
|
Next : ProgressBar4.Value = 0 : 最終數3 = 0
|
2041
|
2058
|
'-------清空------------------------------------------------------------------------------------------------------------------------------------------------------------------
|