|
@@ -34,7 +34,7 @@ Public Class 訂單列印選擇
|
34
|
34
|
" & 訂單資料表(1) & ".成型時間 AS 成型, " & 訂單資料表(1) & ".驗貨時間 AS 驗貨, " & 訂單資料表(1) & ".工廠進度表備註1, " & 訂單資料表(1) & ".工廠進度表備註2,
|
35
|
35
|
" & 訂單資料表(1) & ".客戶包裝確認, " & 訂單資料表(1) & ".東莞業務備註, " & 訂單資料表(1) & ".工廠確認, " & 訂單資料表(1) & ".利威確認,
|
36
|
36
|
" & 訂單資料表(1) & ".結關日, " & 訂單資料表(1) & ".SMS簽回, " & 訂單資料表(1) & ".FRS簽回, " & 訂單資料表(1) & ".MASTER_SWATCH, " & 訂單資料表(1) & ".力威訂單號,
|
37
|
|
- " & 訂單資料表(1) & ".ProductID, " & 訂單資料表(1) & ".UoM, " & 訂單資料表(2) & ".HS, " & 訂單資料表(0) & ".CustomerName
|
|
37
|
+ " & 訂單資料表(1) & ".ProductID, " & 訂單資料表(1) & ".UoM, " & 訂單資料表(2) & ".HS, " & 訂單資料表(0) & ".CustomerName, " & 訂單資料表(0) & ".DeliveryTerms
|
38
|
38
|
FROM " & 訂單資料表(1) & " LEFT OUTER JOIN " & 訂單資料表(0) & " ON " & 訂單資料表(1) & ".訂單流水號 = " & 訂單資料表(0) & ".天盾流水號 LEFT OUTER JOIN
|
39
|
39
|
" & 訂單資料表(2) & " ON " & 訂單資料表(1) & ".顏色 = " & 訂單資料表(2) & ".Colorway AND
|
40
|
40
|
" & 訂單資料表(1) & ".ProductID = " & 訂單資料表(2) & ".ProductID AND " & 訂單資料表(1) & ".訂單流水號 = " & 訂單資料表(2) & ".天盾流水號 AND
|
|
@@ -57,7 +57,7 @@ Public Class 訂單列印選擇
|
57
|
57
|
" & 訂單資料表(1) & ".客戶包裝確認, " & 訂單資料表(1) & ".東莞業務備註, " & 訂單資料表(1) & ".工廠確認, " & 訂單資料表(1) & ".利威確認,
|
58
|
58
|
" & 訂單資料表(1) & ".結關日, " & 訂單資料表(1) & ".SMS簽回, " & 訂單資料表(1) & ".FRS簽回, " & 訂單資料表(1) & ".MASTER_SWATCH,
|
59
|
59
|
" & 訂單資料表(1) & ".力威訂單號, " & 訂單資料表(1) & ".ProductID, " & 訂單資料表(1) & ".UoM, " & 訂單資料表(2) & ".HS,
|
60
|
|
- " & 訂單資料表(0) & ".CustomerName
|
|
60
|
+ " & 訂單資料表(0) & ".CustomerName, " & 訂單資料表(0) & ".DeliveryTerms
|
61
|
61
|
ORDER BY SUBSTRING(" & 訂單資料表(1) & ".訂單流水號, 4, 6) DESC"
|
62
|
62
|
Private Sub Set_DGV1載入前設定()
|
63
|
63
|
DataGridView1.DataSource = Nothing : ds.Clear()
|
|
@@ -147,6 +147,7 @@ Public Class 訂單列印選擇
|
147
|
147
|
If CheckBox58.Checked = True Then : xlSheet.Cells(3, W) = "UoM" : Q = W : W += 1 : End If
|
148
|
148
|
If CheckBox59.Checked = True Then : xlSheet.Cells(3, W) = "HS#" : Q = W : W += 1 : End If
|
149
|
149
|
If CheckBox60.Checked = True Then : xlSheet.Cells(3, W) = "Company Code" : Q = W : W += 1 : End If
|
|
150
|
+ If CheckBox61.Checked = True Then : xlSheet.Cells(3, W) = "Inco Terms" : Q = W : W += 1 : End If
|
150
|
151
|
If CheckBox49.Checked = True Then : xlSheet.Cells(3, W) = "東莞業務備註" : Q = W : W += 1 : End If
|
151
|
152
|
Set_訂單清單()
|
152
|
153
|
|
|
@@ -210,7 +211,8 @@ Public Class 訂單列印選擇
|
210
|
211
|
If CheckBox57.Checked = True Then : xlSheet.Cells(i + 4, W) = DataGridView1.Rows(i).Cells("ProductID").Value : W += 1 : End If
|
211
|
212
|
If CheckBox58.Checked = True Then : xlSheet.Cells(i + 4, W) = DataGridView1.Rows(i).Cells("UoM").Value : W += 1 : End If
|
212
|
213
|
If CheckBox59.Checked = True Then : xlSheet.Cells(i + 4, W) = DataGridView1.Rows(i).Cells("HS").Value : W += 1 : End If
|
213
|
|
- If CheckBox59.Checked = True Then : xlSheet.Cells(i + 4, W) = DataGridView1.Rows(i).Cells("CustomerName").Value : W += 1 : End If
|
|
214
|
+ If CheckBox60.Checked = True Then : xlSheet.Cells(i + 4, W) = DataGridView1.Rows(i).Cells("CustomerName").Value : W += 1 : End If
|
|
215
|
+ If CheckBox61.Checked = True Then : xlSheet.Cells(i + 4, W) = DataGridView1.Rows(i).Cells("DeliveryTerms").Value : W += 1 : End If
|
214
|
216
|
If CheckBox49.Checked = True Then : xlSheet.Cells(i + 4, W) = DataGridView1.Rows(i).Cells("東莞業務備註").Value : W += 1 : End If
|
215
|
217
|
With xlApp.Selection
|
216
|
218
|
.Font.Bold = True
|
|
@@ -751,8 +753,8 @@ Public Class 訂單列印選擇
|
751
|
753
|
myExcel.Selection.Font.Size = 14
|
752
|
754
|
|
753
|
755
|
' 儲存格設置格式 (數值 千分位符號)
|
754
|
|
- xlSheet.Range("D4:G1000").Select() : myExcel.Selection.NumberFormatLocal = "#,##0_ "
|
755
|
|
- xlSheet.Range("K4:N1000").Select() : myExcel.Selection.NumberFormatLocal = "#,##0_ "
|
|
756
|
+ xlSheet.Range("D4:G10000").Select() : myExcel.Selection.NumberFormatLocal = "#,##0_ "
|
|
757
|
+ xlSheet.Range("K4:N10000").Select() : myExcel.Selection.NumberFormatLocal = "#,##0_ "
|
756
|
758
|
|
757
|
759
|
' 儲存格顏色設定
|
758
|
760
|
xlSheet.Range("B3:G3").Select()
|