B70340 hace 4 años
padre
commit
79b32b7bfe
Se han modificado 24 ficheros con 663 adiciones y 397 borrados
  1. BIN
      .vs/TENDEN-MES-SYS/v16/.suo
  2. 1
    1
      TENDEN-MES-SYS/Module/全域變數.vb
  3. BIN
      TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.exe
  4. BIN
      TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.pdb
  5. BIN
      TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.exe
  6. BIN
      TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.pdb
  7. 1
    1
      TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.CoreCompileInputs.cache
  8. 116
    0
      TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.FileListAbsolute.txt
  9. BIN
      TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.GenerateResource.cache
  10. BIN
      TENDEN-MES-SYS/obj/Debug/天盾系統.vbprojAssemblyReference.cache
  11. 50
    50
      TENDEN-MES-SYS/彙總報表管理/訂單分析報表六.vb
  12. 82
    6
      TENDEN-MES-SYS/成本系統管理/列印_訂單價格利潤表.vb
  13. 33
    25
      TENDEN-MES-SYS/成本系統管理/訂單價格利潤明細表.vb
  14. 10
    10
      TENDEN-MES-SYS/樣品訂單管理/中文樣品單.Designer.vb
  15. 134
    127
      TENDEN-MES-SYS/樣品訂單管理/中文樣品單.vb
  16. 17
    5
      TENDEN-MES-SYS/量產訂單管理/訂單執行資訊輸入.Designer.vb
  17. 37
    0
      TENDEN-MES-SYS/量產訂單管理/訂單執行資訊輸入.vb
  18. 43
    43
      TENDEN-MES-SYS/量產訂單管理/訂單控制表.Designer.vb
  19. 29
    23
      TENDEN-MES-SYS/量產訂單管理/訂單控制表.vb
  20. 10
    10
      TENDEN-MES-SYS/量產訂單管理/訂單明細表.vb
  21. 1
    0
      TENDEN-MES-SYS/量產訂單管理/訂單資料匯入-力威.Designer.vb
  22. 2
    2
      TENDEN-MES-SYS/量產訂單管理/訂單資料匯入-力威.vb
  23. 94
    91
      TENDEN-MES-SYS/量產訂單管理/訂單資料比對與修改_力威.Designer.vb
  24. 3
    3
      TENDEN-MES-SYS/量產訂單管理/訂單資料比對與修改_力威.vb

BIN
.vs/TENDEN-MES-SYS/v16/.suo Ver fichero


+ 1
- 1
TENDEN-MES-SYS/Module/全域變數.vb Ver fichero

4
     Public Target As String : Public Target1 As String : Public Target2 As String : Public FTP帳號 As String : Public FTP密碼 As String : Public 登入人IP As String
4
     Public Target As String : Public Target1 As String : Public Target2 As String : Public FTP帳號 As String : Public FTP密碼 As String : Public 登入人IP As String
5
     Public CC(99) As Boolean : Public AA(99) As String : Public 登入判斷 As Boolean
5
     Public CC(99) As Boolean : Public AA(99) As String : Public 登入判斷 As Boolean
6
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7
-    Public 版本 As String = "2020122601"
7
+    Public 版本 As String = "2021011901"
8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9
     Public 匯率 As Double
9
     Public 匯率 As Double
10
 
10
 

BIN
TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.exe Ver fichero


BIN
TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.pdb Ver fichero


BIN
TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.exe Ver fichero


BIN
TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.pdb Ver fichero


+ 1
- 1
TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.CoreCompileInputs.cache Ver fichero

1
-16185a3f75c474b333fac30eab4d1373e2459acf
1
+6d0fdce5cb2e0b53964df67f907ecf468459564a

+ 116
- 0
TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.FileListAbsolute.txt Ver fichero

226
 G:\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單資料庫選擇.resources
226
 G:\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單資料庫選擇.resources
227
 G:\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單控制表.resources
227
 G:\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單控制表.resources
228
 G:\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單資料比對與修改_力威.resources
228
 G:\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單資料比對與修改_力威.resources
229
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.exe.config
230
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.exe
231
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.pdb
232
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.xml
233
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\Microsoft.Web.Infrastructure.dll
234
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\Newtonsoft.Json.dll
235
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\Transformer.NET.dll
236
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\WebActivatorEx.dll
237
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\Newtonsoft.Json.xml
238
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\Transformer.NET.xml
239
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾系統.vbprojAssemblyReference.cache
240
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單資料匯入_力威.resources
241
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.網段.resources
242
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析報表七.resources
243
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單明細表.resources
244
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單改量差異查詢.resources
245
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.人員ID卡系統配置設定.resources
246
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.Customer_Information_資料管理.resources
247
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.CXL訂單紀錄表.resources
248
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.DELIVERY_ADDRESS__資料管理.resources
249
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.FACTORY_資料管理.resources
250
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.FTP資料夾管理.resources
251
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.INVOICE_確認部門.resources
252
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.SAMPLE_TRACKER.resources
253
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.TENDENZA_STYLE_形體下單數量統計.resources
254
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.TENDENZA_STYLE_資料管理.resources
255
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.TENDENZA_STYLE_資料管理_對應訂單.resources
256
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.中文樣品單.resources
257
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.中文樣品單批量列印.resources
258
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.中文樣品單清單.resources
259
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.中文樣品單階段.resources
260
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.保證書出貨統計資料.resources
261
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.出貨明細表.resources
262
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_INVOICE.resources
263
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_SAMPLE_TRACKER.resources
264
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_中文樣品單.resources
265
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_出貨明細表.resources
266
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_吊牌.resources
267
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_周進度表.resources
268
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_周進度表T1_T4.resources
269
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_測試報告.resources
270
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_生產進度表.resources
271
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_確認樣品確認通知單.resources
272
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單價格利潤表.resources
273
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單分析二.resources
274
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單分析五.resources
275
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單分析四.resources
276
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單明細.resources
277
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_費用報表.resources
278
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_量產樣品控制表.resources
279
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單執行資訊輸入.resources
280
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.周進度表.resources
281
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.周進度表T1_T4.resources
282
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.帳務資料庫管理.resources
283
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.帳號管理.resources
284
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.LoginForm1vb.resources
285
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.TENDEN_MES_SYS.resources
286
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.Resources.resources
287
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.SplashScreen1.resources
288
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.成本資料庫管理.resources
289
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.收款報表.resources
290
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.收款報表批量輸入.resources
291
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.楦頭圖片導入資料庫.resources
292
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.楦頭圖片資料庫.resources
293
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.楦頭規格表.resources
294
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.業務資料庫管理.resources
295
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.樣品吊牌管理.resources
296
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.樣品資料庫管理.resources
297
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.清單修改.resources
298
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.測試報告報告到期管理.resources
299
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.測試報告控制表.resources
300
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.測試報告新配色管理.resources
301
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.現有訂單鞋盒資訊查詢.resources
302
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.生產進度表.resources
303
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.皮料資料紀錄表.resources
304
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.確認樣品確認通知單.resources
305
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.系統使用者管理.resources
306
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.系統執行檔版本管理.resources
307
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單價格利潤明細表.resources
308
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析報表一.resources
309
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析報表三.resources
310
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析報表二.resources
311
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析報表五.resources
312
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析報表六.resources
313
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析報表四.resources
314
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單列印選擇.resources
315
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單控制表.resources
316
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單控制表修改紀錄.resources
317
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單明細表.resources
318
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單明細表修改紀錄.resources
319
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單流水號.resources
320
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單資料匯入_Vionic.resources
321
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_收款報表.resources
322
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.費用報表.resources
323
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品控制表.resources
324
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品明細表.resources
325
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品流水號.resources
326
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品訂單CXL紀錄表.resources
327
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品訂單出貨紀錄表.resources
328
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品訂單匯入.resources
329
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.鞋型圖片導入資料庫.resources
330
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.鞋型圖片資料庫.resources
331
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單資料庫選擇.resources
332
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單資料比對與修改_力威.resources
333
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.鞋盒訂單紀錄表.resources
334
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.鞋盒資料控制表.resources
335
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.驗貨報告圖片導入資料庫.resources
336
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.驗貨報告大圖.resources
337
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.驗貨報告資料庫.resources
338
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.驗貨報告資料庫修正.resources
339
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾系統.vbproj.GenerateResource.cache
340
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾系統.vbproj.CoreCompileInputs.cache
341
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾系統.vbproj.CopyComplete
342
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.exe
343
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.xml
344
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.pdb

BIN
TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.GenerateResource.cache Ver fichero


BIN
TENDEN-MES-SYS/obj/Debug/天盾系統.vbprojAssemblyReference.cache Ver fichero


+ 50
- 50
TENDEN-MES-SYS/彙總報表管理/訂單分析報表六.vb Ver fichero

175
                     conn.Close()
175
                     conn.Close()
176
                     ConnOpen()
176
                     ConnOpen()
177
                     SQL1 = "SELECT     訂單明細表.天盾流水號 
177
                     SQL1 = "SELECT     訂單明細表.天盾流水號 
178
-                           FROM        dbo.訂單明細表 INNER JOIN
178
+                           FROM        訂單明細表 INNER JOIN
179
                                           (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
179
                                           (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
180
-                                           FROM     dbo.訂單控制表
180
+                                           FROM     訂單控制表
181
                                            WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
181
                                            WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
182
-                                       dbo.訂單明細表.天盾流水號 = WWEE.訂單流水號 AND dbo.訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
183
-                                       dbo.訂單明細表.ProductName = WWEE.形體號 AND dbo.訂單明細表.Color = WWEE.顏色 AND 
184
-                                       dbo.訂單明細表.DM = WWEE.楦型 AND 
182
+                                       訂單明細表.天盾流水號 = WWEE.訂單流水號 AND 訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
183
+                                       訂單明細表.ProductName = WWEE.形體號 AND 訂單明細表.Color = WWEE.顏色 AND 
184
+                                       訂單明細表.DM = WWEE.楦型 AND 
185
                                        訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
185
                                        訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
186
                                        + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
186
                                        + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
187
                                        + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
187
                                        + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
200
                         conn.Close()
200
                         conn.Close()
201
                         ConnOpen()
201
                         ConnOpen()
202
                         SQL1 = "SELECT     訂單明細表.天盾流水號 
202
                         SQL1 = "SELECT     訂單明細表.天盾流水號 
203
-                               FROM        dbo.訂單明細表 INNER JOIN
203
+                               FROM        訂單明細表 INNER JOIN
204
                                               (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
204
                                               (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
205
-                                               FROM     dbo.訂單控制表
205
+                                               FROM     訂單控制表
206
                                                WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
206
                                                WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
207
-                                           dbo.訂單明細表.天盾流水號 = WWEE.訂單流水號 AND dbo.訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
208
-                                           dbo.訂單明細表.ProductName = WWEE.形體號 AND dbo.訂單明細表.Color = WWEE.顏色 AND 
209
-                                           dbo.訂單明細表.DM = WWEE.楦型 AND 
207
+                                           訂單明細表.天盾流水號 = WWEE.訂單流水號 AND 訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
208
+                                           訂單明細表.ProductName = WWEE.形體號 AND 訂單明細表.Color = WWEE.顏色 AND 
209
+                                           訂單明細表.DM = WWEE.楦型 AND 
210
                                            訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
210
                                            訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
211
                                            + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
211
                                            + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
212
                                            + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
212
                                            + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
224
                             conn.Close()
224
                             conn.Close()
225
                             ConnOpen()
225
                             ConnOpen()
226
                             SQL1 = "SELECT     訂單明細表.天盾流水號 
226
                             SQL1 = "SELECT     訂單明細表.天盾流水號 
227
-                                   FROM        dbo.訂單明細表 INNER JOIN
227
+                                   FROM        訂單明細表 INNER JOIN
228
                                                   (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
228
                                                   (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
229
-                                                   FROM     dbo.訂單控制表
229
+                                                   FROM     訂單控制表
230
                                                    WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
230
                                                    WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
231
-                                               dbo.訂單明細表.天盾流水號 = WWEE.訂單流水號 AND dbo.訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
232
-                                               dbo.訂單明細表.ProductName = WWEE.形體號 AND dbo.訂單明細表.Color = WWEE.顏色 AND 
233
-                                               dbo.訂單明細表.DM = WWEE.楦型 AND 
231
+                                               訂單明細表.天盾流水號 = WWEE.訂單流水號 AND 訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
232
+                                               訂單明細表.ProductName = WWEE.形體號 AND 訂單明細表.Color = WWEE.顏色 AND 
233
+                                               訂單明細表.DM = WWEE.楦型 AND 
234
                                                訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
234
                                                訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
235
                                                + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
235
                                                + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
236
                                                + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
236
                                                + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
247
                                 conn.Close()
247
                                 conn.Close()
248
                                 ConnOpen()
248
                                 ConnOpen()
249
                                 SQL1 = "SELECT     訂單明細表.天盾流水號 
249
                                 SQL1 = "SELECT     訂單明細表.天盾流水號 
250
-                                   FROM        dbo.訂單明細表 INNER JOIN
250
+                                   FROM        訂單明細表 INNER JOIN
251
                                                   (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
251
                                                   (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
252
-                                                   FROM     dbo.訂單控制表
252
+                                                   FROM     訂單控制表
253
                                                    WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
253
                                                    WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
254
-                                               dbo.訂單明細表.天盾流水號 = WWEE.訂單流水號 AND dbo.訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
255
-                                               dbo.訂單明細表.ProductName = WWEE.形體號 AND dbo.訂單明細表.Color = WWEE.顏色 AND 
256
-                                               dbo.訂單明細表.DM = WWEE.楦型 AND 
254
+                                               訂單明細表.天盾流水號 = WWEE.訂單流水號 AND 訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
255
+                                               訂單明細表.ProductName = WWEE.形體號 AND 訂單明細表.Color = WWEE.顏色 AND 
256
+                                               訂單明細表.DM = WWEE.楦型 AND 
257
                                                訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
257
                                                訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
258
                                                + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
258
                                                + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
259
                                                + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
259
                                                + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
269
                                     conn.Close()
269
                                     conn.Close()
270
                                     ConnOpen()
270
                                     ConnOpen()
271
                                     SQL1 = "SELECT     訂單明細表.天盾流水號 
271
                                     SQL1 = "SELECT     訂單明細表.天盾流水號 
272
-                                   FROM        dbo.訂單明細表 INNER JOIN
272
+                                   FROM        訂單明細表 INNER JOIN
273
                                                   (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
273
                                                   (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
274
-                                                   FROM     dbo.訂單控制表
274
+                                                   FROM     訂單控制表
275
                                                    WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
275
                                                    WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
276
-                                               dbo.訂單明細表.天盾流水號 = WWEE.訂單流水號 AND dbo.訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
277
-                                               dbo.訂單明細表.ProductName = WWEE.形體號 AND dbo.訂單明細表.Color = WWEE.顏色 AND 
278
-                                               dbo.訂單明細表.DM = WWEE.楦型 AND 
276
+                                               訂單明細表.天盾流水號 = WWEE.訂單流水號 AND 訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
277
+                                               訂單明細表.ProductName = WWEE.形體號 AND 訂單明細表.Color = WWEE.顏色 AND 
278
+                                               訂單明細表.DM = WWEE.楦型 AND 
279
                                                訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
279
                                                訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
280
                                                + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
280
                                                + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
281
                                                + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
281
                                                + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
301
                 conn.Close()
301
                 conn.Close()
302
                 ConnOpen()
302
                 ConnOpen()
303
                 SQL1 = "SELECT     訂單明細表.天盾流水號 
303
                 SQL1 = "SELECT     訂單明細表.天盾流水號 
304
-                                   FROM        dbo.訂單明細表 INNER JOIN
304
+                                   FROM        訂單明細表 INNER JOIN
305
                                                   (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
305
                                                   (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
306
-                                                   FROM     dbo.訂單控制表
306
+                                                   FROM     訂單控制表
307
                                                    WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
307
                                                    WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
308
-                                               dbo.訂單明細表.天盾流水號 = WWEE.訂單流水號 AND dbo.訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
309
-                                               dbo.訂單明細表.ProductName = WWEE.形體號 AND dbo.訂單明細表.Color = WWEE.顏色 AND 
310
-                                               dbo.訂單明細表.DM = WWEE.楦型 AND 
308
+                                               訂單明細表.天盾流水號 = WWEE.訂單流水號 AND 訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
309
+                                               訂單明細表.ProductName = WWEE.形體號 AND 訂單明細表.Color = WWEE.顏色 AND 
310
+                                               訂單明細表.DM = WWEE.楦型 AND 
311
                                                訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
311
                                                訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
312
                                                + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
312
                                                + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
313
                                                + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
313
                                                + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
326
                     conn.Close()
326
                     conn.Close()
327
                     ConnOpen()
327
                     ConnOpen()
328
                     SQL1 = "SELECT     訂單明細表.天盾流水號 
328
                     SQL1 = "SELECT     訂單明細表.天盾流水號 
329
-                                   FROM        dbo.訂單明細表 INNER JOIN
329
+                                   FROM        訂單明細表 INNER JOIN
330
                                                   (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
330
                                                   (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
331
-                                                   FROM     dbo.訂單控制表
331
+                                                   FROM     訂單控制表
332
                                                    WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
332
                                                    WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
333
-                                               dbo.訂單明細表.天盾流水號 = WWEE.訂單流水號 AND dbo.訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
334
-                                               dbo.訂單明細表.ProductName = WWEE.形體號 AND dbo.訂單明細表.Color = WWEE.顏色 AND 
335
-                                               dbo.訂單明細表.DM = WWEE.楦型 AND 
333
+                                               訂單明細表.天盾流水號 = WWEE.訂單流水號 AND 訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
334
+                                               訂單明細表.ProductName = WWEE.形體號 AND 訂單明細表.Color = WWEE.顏色 AND 
335
+                                               訂單明細表.DM = WWEE.楦型 AND 
336
                                                訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
336
                                                訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
337
                                                + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
337
                                                + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
338
                                                + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
338
                                                + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
350
                         conn.Close()
350
                         conn.Close()
351
                         ConnOpen()
351
                         ConnOpen()
352
                         SQL1 = "SELECT     訂單明細表.天盾流水號 
352
                         SQL1 = "SELECT     訂單明細表.天盾流水號 
353
-                                   FROM        dbo.訂單明細表 INNER JOIN
353
+                                   FROM        訂單明細表 INNER JOIN
354
                                                   (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
354
                                                   (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
355
-                                                   FROM     dbo.訂單控制表
355
+                                                   FROM     訂單控制表
356
                                                    WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
356
                                                    WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
357
-                                               dbo.訂單明細表.天盾流水號 = WWEE.訂單流水號 AND dbo.訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
358
-                                               dbo.訂單明細表.ProductName = WWEE.形體號 AND dbo.訂單明細表.Color = WWEE.顏色 AND 
359
-                                               dbo.訂單明細表.DM = WWEE.楦型 AND 
357
+                                               訂單明細表.天盾流水號 = WWEE.訂單流水號 AND 訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
358
+                                               訂單明細表.ProductName = WWEE.形體號 AND 訂單明細表.Color = WWEE.顏色 AND 
359
+                                               訂單明細表.DM = WWEE.楦型 AND 
360
                                                訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
360
                                                訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
361
                                                + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
361
                                                + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
362
                                                + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
362
                                                + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
373
                             conn.Close()
373
                             conn.Close()
374
                             ConnOpen()
374
                             ConnOpen()
375
                             SQL1 = "SELECT     訂單明細表.天盾流水號 
375
                             SQL1 = "SELECT     訂單明細表.天盾流水號 
376
-                                   FROM        dbo.訂單明細表 INNER JOIN
376
+                                   FROM        訂單明細表 INNER JOIN
377
                                                   (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
377
                                                   (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
378
-                                                   FROM     dbo.訂單控制表
378
+                                                   FROM     訂單控制表
379
                                                    WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
379
                                                    WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
380
-                                               dbo.訂單明細表.天盾流水號 = WWEE.訂單流水號 AND dbo.訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
381
-                                               dbo.訂單明細表.ProductName = WWEE.形體號 AND dbo.訂單明細表.Color = WWEE.顏色 AND 
382
-                                               dbo.訂單明細表.DM = WWEE.楦型 AND 
380
+                                               訂單明細表.天盾流水號 = WWEE.訂單流水號 AND 訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
381
+                                               訂單明細表.ProductName = WWEE.形體號 AND 訂單明細表.Color = WWEE.顏色 AND 
382
+                                               訂單明細表.DM = WWEE.楦型 AND 
383
                                                訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
383
                                                訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
384
                                                + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
384
                                                + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
385
                                                + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
385
                                                + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
395
                                 conn.Close()
395
                                 conn.Close()
396
                                 ConnOpen()
396
                                 ConnOpen()
397
                                 SQL1 = "SELECT     訂單明細表.天盾流水號 
397
                                 SQL1 = "SELECT     訂單明細表.天盾流水號 
398
-                                   FROM        dbo.訂單明細表 INNER JOIN
398
+                                   FROM        訂單明細表 INNER JOIN
399
                                                   (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
399
                                                   (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
400
-                                                   FROM     dbo.訂單控制表
400
+                                                   FROM     訂單控制表
401
                                                    WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
401
                                                    WHERE   (客戶訂單號 LIKE '" & DataGridView1.Rows(i).Cells("客戶訂單號").Value & "') AND (CXL = 0 OR CXL IS NULL)) AS WWEE ON 
402
-                                               dbo.訂單明細表.天盾流水號 = WWEE.訂單流水號 AND dbo.訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
403
-                                               dbo.訂單明細表.ProductName = WWEE.形體號 AND dbo.訂單明細表.Color = WWEE.顏色 AND 
404
-                                               dbo.訂單明細表.DM = WWEE.楦型 AND 
402
+                                               訂單明細表.天盾流水號 = WWEE.訂單流水號 AND 訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
403
+                                               訂單明細表.ProductName = WWEE.形體號 AND 訂單明細表.Color = WWEE.顏色 AND 
404
+                                               訂單明細表.DM = WWEE.楦型 AND 
405
                                                訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
405
                                                訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
406
                                                + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
406
                                                + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
407
                                                + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
407
                                                + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量

+ 82
- 6
TENDEN-MES-SYS/成本系統管理/列印_訂單價格利潤表.vb Ver fichero

20
         CmdSet_For_DGV() : da.SelectCommand.CommandTimeout = 900 : da.Fill(ds) : DataGridView1.DataSource = ds.Tables(0) : conn.Close()
20
         CmdSet_For_DGV() : da.SelectCommand.CommandTimeout = 900 : da.Fill(ds) : DataGridView1.DataSource = ds.Tables(0) : conn.Close()
21
     End Sub
21
     End Sub
22
     Private Sub Set_訂單清單()
22
     Private Sub Set_訂單清單()
23
-        Set_DGV1載入前設定() : SQL1 = 列印用SQL : Set_DGV1載入後設定()
23
+        Set_DGV1載入前設定()
24
+        SQL1 = "SELECT      " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".資料流水號, " & 訂單資料表(1) & ".年份季度, " & 訂單資料表(1) & ".力威訂單號, " & 訂單資料表(1) & ".形體號, 
25
+                            " & 訂單資料表(1) & ".顏色, " & 訂單資料表(1) & ".楦型, " & 訂單資料表(1) & ".訂單數量 AS 數量, " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".單價, 
26
+                            " & 訂單資料表(1) & ".總金額, " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠 AS 工廠, " & 訂單資料表(1) & ".訂單種類, 
27
+                            " & 訂單資料表(7) & ".Quantity, " & 訂單資料表(7) & ".Currency, " & 訂單資料表(7) & ".Exchange, 
28
+                            " & 訂單資料表(7) & ".FTYPrice, (" & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice) 
29
+                            * " & 訂單資料表(7) & ".Quantity AS CommissionTTL, (" & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice) 
30
+                            * " & 訂單資料表(7) & ".Quantity / 2 AS CommissionDarren, (" & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice) 
31
+                            * " & 訂單資料表(7) & ".Quantity / 2 AS CommissionTendenza, 
32
+                            " & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice AS Percentage, " & 訂單資料表(7) & ".BasicPrice, 
33
+                            " & 訂單資料表(7) & ".Polybag, " & 訂單資料表(7) & ".FOOTformOrPETform AS FOOTorPET, 
34
+                            " & 訂單資料表(7) & ".Tooling, " & 訂單資料表(7) & ".RubberBand, " & 訂單資料表(7) & ".JHOOK, 
35
+                            " & 訂單資料表(7) & ".WaterResistant, " & 訂單資料表(7) & ".P16VAT, " & 訂單資料表(7) & ".EXWsaving, 
36
+                            " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling AS CollectedToolng, " & 訂單資料表(7) & ".年份, 
37
+                            " & 訂單資料表(7) & ".利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity AS 驗證, 
38
+                            STYLELIST.ItemNumber, " & 訂單資料表(7) & ".審核, " & 訂單資料表(1) & ".客戶訂單號, " & 訂單資料表(1) & ".ProductID, 
39
+                            " & 訂單資料表(2) & ".Material, " & 訂單資料表(2) & ".MaterialDescription, " & 訂單資料表(2) & ".Colorway, 
40
+                            " & 訂單資料表(0) & ".SalesOrder, " & 訂單資料表(0) & ".CustomerName, " & 訂單資料表(0) & ".最終運送, 
41
+                            " & 訂單資料表(2) & ".CustomerData
42
+                FROM        " & 訂單資料表(1) & " LEFT OUTER JOIN
43
+                            " & 訂單資料表(0) & " ON " & 訂單資料表(1) & ".訂單流水號 = " & 訂單資料表(0) & ".天盾流水號 LEFT OUTER JOIN
44
+                            " & 訂單資料表(2) & " ON " & 訂單資料表(1) & ".顏色 = " & 訂單資料表(2) & ".Colorway AND 
45
+                            " & 訂單資料表(1) & ".形體號 = " & 訂單資料表(2) & ".StkName AND 
46
+                            " & 訂單資料表(1) & ".訂單流水號 = " & 訂單資料表(2) & ".天盾流水號 LEFT OUTER JOIN
47
+                            STYLELIST ON " & 訂單資料表(1) & ".形體號 = STYLELIST.ProductName RIGHT OUTER JOIN
48
+                            " & 訂單資料表(7) & " ON " & 訂單資料表(1) & ".資料流水號 = " & 訂單資料表(7) & ".資料流水號 " & 列印用SQL & "
49
+                GROUP BY    " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".資料流水號, " & 訂單資料表(1) & ".年份季度, " & 訂單資料表(1) & ".力威訂單號, " & 訂單資料表(1) & ".形體號, 
50
+                            " & 訂單資料表(1) & ".顏色, " & 訂單資料表(1) & ".楦型, " & 訂單資料表(1) & ".訂單數量, " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".單價, 
51
+                            " & 訂單資料表(1) & ".總金額, " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠, " & 訂單資料表(1) & ".訂單種類, " & 訂單資料表(7) & ".Quantity, 
52
+                            " & 訂單資料表(7) & ".Currency, " & 訂單資料表(7) & ".Exchange, " & 訂單資料表(7) & ".FTYPrice, 
53
+                            (" & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice) * " & 訂單資料表(7) & ".Quantity, 
54
+                            (" & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice) * " & 訂單資料表(7) & ".Quantity / 2, 
55
+                            (" & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice) * " & 訂單資料表(7) & ".Quantity / 2, 
56
+                            " & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice, " & 訂單資料表(7) & ".BasicPrice, " & 訂單資料表(7) & ".Polybag, 
57
+                            " & 訂單資料表(7) & ".FOOTformOrPETform, " & 訂單資料表(7) & ".Tooling, " & 訂單資料表(7) & ".RubberBand, 
58
+                            " & 訂單資料表(7) & ".JHOOK, " & 訂單資料表(7) & ".WaterResistant, " & 訂單資料表(7) & ".P16VAT, 
59
+                            " & 訂單資料表(7) & ".EXWsaving, " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling, 
60
+                            " & 訂單資料表(7) & ".年份, " & 訂單資料表(7) & ".利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity, 
61
+                            STYLELIST.ItemNumber, " & 訂單資料表(7) & ".審核, " & 訂單資料表(1) & ".客戶訂單號, " & 訂單資料表(1) & ".ProductID, 
62
+                            " & 訂單資料表(2) & ".Material, " & 訂單資料表(2) & ".MaterialDescription, " & 訂單資料表(2) & ".Colorway, 
63
+                            " & 訂單資料表(0) & ".SalesOrder, " & 訂單資料表(0) & ".CustomerName, " & 訂單資料表(0) & ".最終運送, 
64
+                            " & 訂單資料表(2) & ".CustomerData
65
+                ORDER BY    " & 訂單資料表(1) & ".訂單流水號 DESC"
66
+        Set_DGV1載入後設定()
24
     End Sub
67
     End Sub
25
     Private Sub Set_格式設定()
68
     Private Sub Set_格式設定()
26
         DataGridView1.Visible = False
69
         DataGridView1.Visible = False
46
 
89
 
47
         xlSheet.Cells(3, 1) = "Tendenza Po#"
90
         xlSheet.Cells(3, 1) = "Tendenza Po#"
48
         xlSheet.Cells(3, 2) = "Season"
91
         xlSheet.Cells(3, 2) = "Season"
49
-        xlSheet.Cells(3, 3) = "Vionic Po#"
92
+        xlSheet.Cells(3, 3) = "力威 Po#"
50
         xlSheet.Cells(3, 4) = "Style"
93
         xlSheet.Cells(3, 4) = "Style"
51
         xlSheet.Cells(3, 5) = "CLR"
94
         xlSheet.Cells(3, 5) = "CLR"
52
         xlSheet.Cells(3, 6) = "DM"
95
         xlSheet.Cells(3, 6) = "DM"
87
         xlSheet.Cells(2, 28) = "=SUBTOTAL(9,AB4:AB$99999)"
130
         xlSheet.Cells(2, 28) = "=SUBTOTAL(9,AB4:AB$99999)"
88
         xlSheet.Cells(3, 30) = "ItemNumber"
131
         xlSheet.Cells(3, 30) = "ItemNumber"
89
         xlSheet.Cells(3, 31) = "審核"
132
         xlSheet.Cells(3, 31) = "審核"
133
+        xlSheet.Cells(3, 32) = "Vionic Po#"
134
+        xlSheet.Cells(3, 33) = "Product Id"
135
+        xlSheet.Cells(3, 34) = "Material"
136
+        xlSheet.Cells(3, 35) = "Material Description"
137
+        xlSheet.Cells(3, 36) = "Colorway"
138
+        xlSheet.Cells(3, 37) = "Ship Mode"
139
+        xlSheet.Cells(3, 38) = "Company code"
140
+        xlSheet.Cells(3, 39) = "Final Customer Ship To"
141
+        xlSheet.Cells(3, 40) = "Customer Data"
90
         AA(xlApp, xlSheet)
142
         AA(xlApp, xlSheet)
91
         For i As Integer = 0 To DataGridView1.Rows.Count - 1
143
         For i As Integer = 0 To DataGridView1.Rows.Count - 1
92
             xlSheet.Cells(i + 4, 1) = DataGridView1.Rows(i).Cells("訂單流水號").Value
144
             xlSheet.Cells(i + 4, 1) = DataGridView1.Rows(i).Cells("訂單流水號").Value
93
             xlSheet.Cells(i + 4, 2) = DataGridView1.Rows(i).Cells("年份季度").Value
145
             xlSheet.Cells(i + 4, 2) = DataGridView1.Rows(i).Cells("年份季度").Value
94
-            xlSheet.Cells(i + 4, 3) = DataGridView1.Rows(i).Cells("客戶訂單號").Value
146
+            xlSheet.Cells(i + 4, 3) = DataGridView1.Rows(i).Cells("力威訂單號").Value
95
             xlSheet.Cells(i + 4, 4) = DataGridView1.Rows(i).Cells("形體號").Value
147
             xlSheet.Cells(i + 4, 4) = DataGridView1.Rows(i).Cells("形體號").Value
96
             xlSheet.Cells(i + 4, 5) = DataGridView1.Rows(i).Cells("顏色").Value
148
             xlSheet.Cells(i + 4, 5) = DataGridView1.Rows(i).Cells("顏色").Value
97
             xlSheet.Cells(i + 4, 6) = DataGridView1.Rows(i).Cells("楦型").Value
149
             xlSheet.Cells(i + 4, 6) = DataGridView1.Rows(i).Cells("楦型").Value
120
             xlSheet.Cells(i + 4, 29) = DataGridView1.Rows(i).Cells("Exchange").Value
172
             xlSheet.Cells(i + 4, 29) = DataGridView1.Rows(i).Cells("Exchange").Value
121
             xlSheet.Cells(i + 4, 30) = DataGridView1.Rows(i).Cells("ItemNumber").Value
173
             xlSheet.Cells(i + 4, 30) = DataGridView1.Rows(i).Cells("ItemNumber").Value
122
             xlSheet.Cells(i + 4, 31) = DataGridView1.Rows(i).Cells("審核").Value
174
             xlSheet.Cells(i + 4, 31) = DataGridView1.Rows(i).Cells("審核").Value
175
+            xlSheet.Cells(i + 4, 32) = DataGridView1.Rows(i).Cells("客戶訂單號").Value
176
+            xlSheet.Cells(i + 4, 33) = DataGridView1.Rows(i).Cells("ProductID").Value
177
+            xlSheet.Cells(i + 4, 34) = DataGridView1.Rows(i).Cells("Material").Value
178
+            xlSheet.Cells(i + 4, 35) = DataGridView1.Rows(i).Cells("MaterialDescription").Value
179
+            xlSheet.Cells(i + 4, 36) = DataGridView1.Rows(i).Cells("Colorway").Value
180
+            xlSheet.Cells(i + 4, 37) = DataGridView1.Rows(i).Cells("SalesOrder").Value
181
+            xlSheet.Cells(i + 4, 38) = DataGridView1.Rows(i).Cells("CustomerName").Value
182
+            xlSheet.Cells(i + 4, 39) = DataGridView1.Rows(i).Cells("最終運送").Value
183
+            xlSheet.Cells(i + 4, 40) = DataGridView1.Rows(i).Cells("CustomerData").Value
123
             With xlApp.Selection
184
             With xlApp.Selection
124
                 .Font.Bold = True
185
                 .Font.Bold = True
125
             End With
186
             End With
156
         xlSheet.Columns("V:V").Select : myExcel.Selection.ColumnWidth = 7 : xlSheet.Columns("W:W").Select : myExcel.Selection.ColumnWidth = 6
217
         xlSheet.Columns("V:V").Select : myExcel.Selection.ColumnWidth = 7 : xlSheet.Columns("W:W").Select : myExcel.Selection.ColumnWidth = 6
157
         xlSheet.Columns("X:X").Select : myExcel.Selection.ColumnWidth = 6 : xlSheet.Columns("Y:Y").Select : myExcel.Selection.ColumnWidth = 6.5
218
         xlSheet.Columns("X:X").Select : myExcel.Selection.ColumnWidth = 6 : xlSheet.Columns("Y:Y").Select : myExcel.Selection.ColumnWidth = 6.5
158
         xlSheet.Columns("Z:Z").Select : myExcel.Selection.ColumnWidth = 5 : xlSheet.Columns("AA:AA").Select : myExcel.Selection.ColumnWidth = 5
219
         xlSheet.Columns("Z:Z").Select : myExcel.Selection.ColumnWidth = 5 : xlSheet.Columns("AA:AA").Select : myExcel.Selection.ColumnWidth = 5
159
-        xlSheet.Columns("AB:AB").Select : myExcel.Selection.ColumnWidth = 9
220
+        xlSheet.Columns("AB:AB").Select : myExcel.Selection.ColumnWidth = 9 : xlSheet.Columns("AC:AC").Select : myExcel.Selection.ColumnWidth = 8
221
+        xlSheet.Columns("AD:AD").Select : myExcel.Selection.ColumnWidth = 11 : xlSheet.Columns("AE:AE").Select : myExcel.Selection.ColumnWidth = 6
222
+        xlSheet.Columns("AF:AF").Select : myExcel.Selection.ColumnWidth = 13 : xlSheet.Columns("AG:AG").Select : myExcel.Selection.ColumnWidth = 15
223
+        xlSheet.Columns("AH:AH").Select : myExcel.Selection.ColumnWidth = 11 : xlSheet.Columns("AI:AI").Select : myExcel.Selection.ColumnWidth = 30
224
+        xlSheet.Columns("AJ:AJ").Select : myExcel.Selection.ColumnWidth = 12 : xlSheet.Columns("AK:AK").Select : myExcel.Selection.ColumnWidth = 14
225
+        xlSheet.Columns("AL:AL").Select : myExcel.Selection.ColumnWidth = 8 : xlSheet.Columns("AM:AM").Select : myExcel.Selection.ColumnWidth = 75
226
+        xlSheet.Columns("AN:AN").Select : myExcel.Selection.ColumnWidth = 105
160
 
227
 
161
         xlSheet.Cells.Select()
228
         xlSheet.Cells.Select()
162
         With myExcel.Selection.Font
229
         With myExcel.Selection.Font
242
         xlSheet.Range("S1:AB3").Select() : With myExcel.Selection.Interior
309
         xlSheet.Range("S1:AB3").Select() : With myExcel.Selection.Interior
243
             .Pattern = xlSolid : .PatternColorIndex = xlAutomatic : .ThemeColor = xlThemeColorAccent6 : .TintAndShade = 0.399975585192419 : .PatternTintAndShade = 0 : End With
310
             .Pattern = xlSolid : .PatternColorIndex = xlAutomatic : .ThemeColor = xlThemeColorAccent6 : .TintAndShade = 0.399975585192419 : .PatternTintAndShade = 0 : End With
244
 
311
 
245
-        xlSheet.Range("A1:AB3").Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
312
+        xlSheet.Range("A1:AN3").Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
246
         With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
313
         With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
247
         With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
314
         With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
248
         With myExcel.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
315
         With myExcel.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
256
         For M = 4 To DataGridView1.Rows.Count + 2
323
         For M = 4 To DataGridView1.Rows.Count + 2
257
             M += 1
324
             M += 1
258
         Next M
325
         Next M
259
-        位置1 = "A4:AB" & M
326
+        位置1 = "A4:AN" & M
260
         xlSheet.Range(位置1).Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
327
         xlSheet.Range(位置1).Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
261
         With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
328
         With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
262
         With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
329
         With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
265
         With myExcel.Selection.Borders(xlInsideVertical) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlHairline : End With
332
         With myExcel.Selection.Borders(xlInsideVertical) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlHairline : End With
266
         With myExcel.Selection.Borders(xlInsideHorizontal) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlHairline : End With
333
         With myExcel.Selection.Borders(xlInsideHorizontal) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlHairline : End With
267
 
334
 
335
+        xlSheet.Range("AC1:AN2").Select()
336
+        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
337
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
338
+        End With : myExcel.Selection.Merge
339
+
340
+        xlSheet.Range("AM4:AN" & M).Select()
341
+        With myExcel.Selection : .HorizontalAlignment = xlGeneral : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False
342
+            .IndentLevel = 0 : .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With
343
+
268
         myExcel.ActiveWindow.DisplayGridlines = False
344
         myExcel.ActiveWindow.DisplayGridlines = False
269
     End Sub
345
     End Sub
270
 End Class
346
 End Class

+ 33
- 25
TENDEN-MES-SYS/成本系統管理/訂單價格利潤明細表.vb Ver fichero

18
             Timer1.Enabled = True : Button6.Enabled = True : Button5.Enabled = False : Button9.Enabled = False
18
             Timer1.Enabled = True : Button6.Enabled = True : Button5.Enabled = False : Button9.Enabled = False
19
             Button11.Enabled = True : Button12.Enabled = True : Button13.Enabled = True
19
             Button11.Enabled = True : Button12.Enabled = True : Button13.Enabled = True
20
             If TextBox1.Text = "" Then
20
             If TextBox1.Text = "" Then
21
-                SQL1 = "SELECT " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".資料流水號, " & 訂單資料表(1) & ".年份季度, " & 訂單資料表(1) & ".客戶訂單號, " & 訂單資料表(1) & ".形體號, 
21
+                SQL1 = "SELECT " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".資料流水號, " & 訂單資料表(1) & ".年份季度, " & 訂單資料表(1) & ".力威訂單號, " & 訂單資料表(1) & ".形體號, 
22
                                " & 訂單資料表(1) & ".顏色, " & 訂單資料表(1) & ".楦型, " & 訂單資料表(1) & ".訂單數量 AS 數量, " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".單價, 
22
                                " & 訂單資料表(1) & ".顏色, " & 訂單資料表(1) & ".楦型, " & 訂單資料表(1) & ".訂單數量 AS 數量, " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".單價, 
23
                                " & 訂單資料表(1) & ".總金額, " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠 AS 工廠, " & 訂單資料表(1) & ".訂單種類, " & 訂單資料表(7) & ".Quantity, 
23
                                " & 訂單資料表(1) & ".總金額, " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠 AS 工廠, " & 訂單資料表(1) & ".訂單種類, " & 訂單資料表(7) & ".Quantity, 
24
                                " & 訂單資料表(7) & ".Currency, " & 訂單資料表(7) & ".Exchange, " & 訂單資料表(7) & ".FTYPrice, (" & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice) * 
24
                                " & 訂單資料表(7) & ".Currency, " & 訂單資料表(7) & ".Exchange, " & 訂單資料表(7) & ".FTYPrice, (" & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice) * 
27
                                " & 訂單資料表(7) & ".FTYPrice) AS Percentage, " & 訂單資料表(7) & ".BasicPrice, " & 訂單資料表(7) & ".Polybag, " & 訂單資料表(7) & ".FOOTformOrPETform AS FOOTorPET, 
27
                                " & 訂單資料表(7) & ".FTYPrice) AS Percentage, " & 訂單資料表(7) & ".BasicPrice, " & 訂單資料表(7) & ".Polybag, " & 訂單資料表(7) & ".FOOTformOrPETform AS FOOTorPET, 
28
                                " & 訂單資料表(7) & ".Tooling, " & 訂單資料表(7) & ".RubberBand, " & 訂單資料表(7) & ".JHOOK, " & 訂單資料表(7) & ".WaterResistant, " & 訂單資料表(7) & ".P16VAT, 
28
                                " & 訂單資料表(7) & ".Tooling, " & 訂單資料表(7) & ".RubberBand, " & 訂單資料表(7) & ".JHOOK, " & 訂單資料表(7) & ".WaterResistant, " & 訂單資料表(7) & ".P16VAT, 
29
                                " & 訂單資料表(7) & ".EXWsaving, " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling AS CollectedToolng, " & 訂單資料表(7) & ".年份, 
29
                                " & 訂單資料表(7) & ".EXWsaving, " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling AS CollectedToolng, " & 訂單資料表(7) & ".年份, 
30
-                               " & 訂單資料表(7) & ".利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity AS 驗證, STYLELIST.ItemNumber, " & 訂單資料表(7) & ".審核 
30
+                               " & 訂單資料表(7) & ".利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity AS 驗證, STYLELIST.ItemNumber, " & 訂單資料表(7) & ".審核, 
31
+                               " & 訂單資料表(1) & ".客戶訂單號 
31
                         FROM   " & 訂單資料表(1) & " LEFT OUTER JOIN STYLELIST ON " & 訂單資料表(1) & ".形體號 = STYLELIST.ProductName RIGHT OUTER JOIN " & 訂單資料表(7) & " ON 
32
                         FROM   " & 訂單資料表(1) & " LEFT OUTER JOIN STYLELIST ON " & 訂單資料表(1) & ".形體號 = STYLELIST.ProductName RIGHT OUTER JOIN " & 訂單資料表(7) & " ON 
32
                                " & 訂單資料表(1) & ".資料流水號 = " & 訂單資料表(7) & ".資料流水號 
33
                                " & 訂單資料表(1) & ".資料流水號 = " & 訂單資料表(7) & ".資料流水號 
33
                         WHERE ((" & 訂單資料表(1) & ".訂單流水號 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".年份季度 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".客戶訂單號 LIKE '%" & PA & "%') OR 
34
                         WHERE ((" & 訂單資料表(1) & ".訂單流水號 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".年份季度 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".客戶訂單號 LIKE '%" & PA & "%') OR 
34
                                (" & 訂單資料表(1) & ".形體號 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".顏色 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".楦型 LIKE '%" & PA & "%') OR 
35
                                (" & 訂單資料表(1) & ".形體號 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".顏色 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".楦型 LIKE '%" & PA & "%') OR 
35
                                (" & 訂單資料表(1) & ".備註 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".備註 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".生產工廠 LIKE '%" & PA & "%') OR 
36
                                (" & 訂單資料表(1) & ".備註 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".備註 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".生產工廠 LIKE '%" & PA & "%') OR 
36
-                               (" & 訂單資料表(1) & ".訂單種類 LIKE '%" & PA & "%')) AND " & 訂單資料表(7) & ".天盾訂單號 IS NULL AND (" & 訂單資料表(1) & ".CXL IS NULL OR " & 訂單資料表(1) & ".CXL = 0) 
37
+                               (" & 訂單資料表(1) & ".訂單種類 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".力威訂單號 LIKE '%" & PA & "%')) 
38
+                               AND " & 訂單資料表(7) & ".天盾訂單號 IS NULL AND (" & 訂單資料表(1) & ".CXL IS NULL OR " & 訂單資料表(1) & ".CXL = 0) 
37
                         ORDER BY " & 訂單資料表(1) & ".訂單流水號 DESC"
39
                         ORDER BY " & 訂單資料表(1) & ".訂單流水號 DESC"
38
             Else
40
             Else
39
-                SQL1 = "SELECT " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".資料流水號, " & 訂單資料表(1) & ".年份季度, " & 訂單資料表(1) & ".客戶訂單號, " & 訂單資料表(1) & ".形體號, 
41
+                SQL1 = "SELECT " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".資料流水號, " & 訂單資料表(1) & ".年份季度, " & 訂單資料表(1) & ".力威訂單號, " & 訂單資料表(1) & ".形體號, 
40
                                " & 訂單資料表(1) & ".顏色, " & 訂單資料表(1) & ".楦型, " & 訂單資料表(1) & ".訂單數量 AS 數量, " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".單價, 
42
                                " & 訂單資料表(1) & ".顏色, " & 訂單資料表(1) & ".楦型, " & 訂單資料表(1) & ".訂單數量 AS 數量, " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".單價, 
41
                                " & 訂單資料表(1) & ".總金額, " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠 AS 工廠, " & 訂單資料表(1) & ".訂單種類, " & 訂單資料表(7) & ".Quantity, 
43
                                " & 訂單資料表(1) & ".總金額, " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠 AS 工廠, " & 訂單資料表(1) & ".訂單種類, " & 訂單資料表(7) & ".Quantity, 
42
                                " & 訂單資料表(7) & ".Currency, " & 訂單資料表(7) & ".Exchange, " & 訂單資料表(7) & ".FTYPrice, (" & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice) * 
44
                                " & 訂單資料表(7) & ".Currency, " & 訂單資料表(7) & ".Exchange, " & 訂單資料表(7) & ".FTYPrice, (" & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice) * 
45
                                " & 訂單資料表(7) & ".FTYPrice) AS Percentage, " & 訂單資料表(7) & ".BasicPrice, " & 訂單資料表(7) & ".Polybag, " & 訂單資料表(7) & ".FOOTformOrPETform AS FOOTorPET, 
47
                                " & 訂單資料表(7) & ".FTYPrice) AS Percentage, " & 訂單資料表(7) & ".BasicPrice, " & 訂單資料表(7) & ".Polybag, " & 訂單資料表(7) & ".FOOTformOrPETform AS FOOTorPET, 
46
                                " & 訂單資料表(7) & ".Tooling, " & 訂單資料表(7) & ".RubberBand, " & 訂單資料表(7) & ".JHOOK, " & 訂單資料表(7) & ".WaterResistant, " & 訂單資料表(7) & ".P16VAT, 
48
                                " & 訂單資料表(7) & ".Tooling, " & 訂單資料表(7) & ".RubberBand, " & 訂單資料表(7) & ".JHOOK, " & 訂單資料表(7) & ".WaterResistant, " & 訂單資料表(7) & ".P16VAT, 
47
                                " & 訂單資料表(7) & ".EXWsaving, " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling AS CollectedToolng, " & 訂單資料表(7) & ".年份, 
49
                                " & 訂單資料表(7) & ".EXWsaving, " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling AS CollectedToolng, " & 訂單資料表(7) & ".年份, 
48
-                               " & 訂單資料表(7) & ".利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity AS 驗證, STYLELIST.ItemNumber, " & 訂單資料表(7) & ".審核 
50
+                               " & 訂單資料表(7) & ".利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity AS 驗證, STYLELIST.ItemNumber, " & 訂單資料表(7) & ".審核, 
51
+                               " & 訂單資料表(1) & ".客戶訂單號 
49
                         FROM   " & 訂單資料表(1) & " LEFT OUTER JOIN STYLELIST ON " & 訂單資料表(1) & ".形體號 = STYLELIST.ProductName LEFT OUTER JOIN " & 訂單資料表(7) & " ON 
52
                         FROM   " & 訂單資料表(1) & " LEFT OUTER JOIN STYLELIST ON " & 訂單資料表(1) & ".形體號 = STYLELIST.ProductName LEFT OUTER JOIN " & 訂單資料表(7) & " ON 
50
                                " & 訂單資料表(1) & ".資料流水號 = " & 訂單資料表(7) & ".資料流水號 
53
                                " & 訂單資料表(1) & ".資料流水號 = " & 訂單資料表(7) & ".資料流水號 
51
                         WHERE (" & 訂單資料表(1) & ".訂單流水號 LIKE '" & TextBox1.Text & "') AND (" & 訂單資料表(1) & ".CXL IS NULL OR " & 訂單資料表(1) & ".CXL = 0) 
54
                         WHERE (" & 訂單資料表(1) & ".訂單流水號 LIKE '" & TextBox1.Text & "') AND (" & 訂單資料表(1) & ".CXL IS NULL OR " & 訂單資料表(1) & ".CXL = 0) 
57
             Timer1.Enabled = False : Label47.Visible = False : Button6.Enabled = False : Button5.Enabled = True : Button9.Enabled = True
60
             Timer1.Enabled = False : Label47.Visible = False : Button6.Enabled = False : Button5.Enabled = True : Button9.Enabled = True
58
             Button11.Enabled = False : Button12.Enabled = False : Button13.Enabled = False
61
             Button11.Enabled = False : Button12.Enabled = False : Button13.Enabled = False
59
             If PA = "" Then
62
             If PA = "" Then
60
-                SQL1 = "SELECT " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".資料流水號, " & 訂單資料表(1) & ".年份季度, " & 訂單資料表(1) & ".客戶訂單號, " & 訂單資料表(1) & ".形體號, 
63
+                列印用SQL = "WHERE " & 訂單資料表(7) & ".年份 LIKE '" & ComboBox1.Text & "' AND (" & 訂單資料表(1) & ".CXL IS NULL OR " & 訂單資料表(1) & ".CXL = 0) "
64
+                SQL1 = "SELECT " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".資料流水號, " & 訂單資料表(1) & ".年份季度, " & 訂單資料表(1) & ".力威訂單號, " & 訂單資料表(1) & ".形體號, 
61
                                " & 訂單資料表(1) & ".顏色, " & 訂單資料表(1) & ".楦型, " & 訂單資料表(1) & ".訂單數量 AS 數量, " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".單價, 
65
                                " & 訂單資料表(1) & ".顏色, " & 訂單資料表(1) & ".楦型, " & 訂單資料表(1) & ".訂單數量 AS 數量, " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".單價, 
62
                                " & 訂單資料表(1) & ".總金額, " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠 AS 工廠, " & 訂單資料表(1) & ".訂單種類, " & 訂單資料表(7) & ".Quantity, 
66
                                " & 訂單資料表(1) & ".總金額, " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠 AS 工廠, " & 訂單資料表(1) & ".訂單種類, " & 訂單資料表(7) & ".Quantity, 
63
                                " & 訂單資料表(7) & ".Currency, " & 訂單資料表(7) & ".Exchange, " & 訂單資料表(7) & ".FTYPrice, (" & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice) * 
67
                                " & 訂單資料表(7) & ".Currency, " & 訂單資料表(7) & ".Exchange, " & 訂單資料表(7) & ".FTYPrice, (" & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice) * 
66
                                " & 訂單資料表(7) & ".FTYPrice) AS Percentage, " & 訂單資料表(7) & ".BasicPrice, " & 訂單資料表(7) & ".Polybag, " & 訂單資料表(7) & ".FOOTformOrPETform AS FOOTorPET, 
70
                                " & 訂單資料表(7) & ".FTYPrice) AS Percentage, " & 訂單資料表(7) & ".BasicPrice, " & 訂單資料表(7) & ".Polybag, " & 訂單資料表(7) & ".FOOTformOrPETform AS FOOTorPET, 
67
                                " & 訂單資料表(7) & ".Tooling, " & 訂單資料表(7) & ".RubberBand, " & 訂單資料表(7) & ".JHOOK, " & 訂單資料表(7) & ".WaterResistant, " & 訂單資料表(7) & ".P16VAT, 
71
                                " & 訂單資料表(7) & ".Tooling, " & 訂單資料表(7) & ".RubberBand, " & 訂單資料表(7) & ".JHOOK, " & 訂單資料表(7) & ".WaterResistant, " & 訂單資料表(7) & ".P16VAT, 
68
                                " & 訂單資料表(7) & ".EXWsaving, " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling AS CollectedToolng, " & 訂單資料表(7) & ".年份, 
72
                                " & 訂單資料表(7) & ".EXWsaving, " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling AS CollectedToolng, " & 訂單資料表(7) & ".年份, 
69
-                               " & 訂單資料表(7) & ".利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity AS 驗證, STYLELIST.ItemNumber, " & 訂單資料表(7) & ".審核 
73
+                               " & 訂單資料表(7) & ".利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity AS 驗證, STYLELIST.ItemNumber, " & 訂單資料表(7) & ".審核, 
74
+                               " & 訂單資料表(1) & ".客戶訂單號 
70
                         FROM   " & 訂單資料表(1) & " LEFT OUTER JOIN STYLELIST ON " & 訂單資料表(1) & ".形體號 = STYLELIST.ProductName RIGHT OUTER JOIN " & 訂單資料表(7) & " ON 
75
                         FROM   " & 訂單資料表(1) & " LEFT OUTER JOIN STYLELIST ON " & 訂單資料表(1) & ".形體號 = STYLELIST.ProductName RIGHT OUTER JOIN " & 訂單資料表(7) & " ON 
71
-                               " & 訂單資料表(1) & ".資料流水號 = " & 訂單資料表(7) & ".資料流水號 
72
-                        WHERE " & 訂單資料表(7) & ".年份 LIKE '" & ComboBox1.Text & "' AND (" & 訂單資料表(1) & ".CXL IS NULL OR " & 訂單資料表(1) & ".CXL = 0) 
76
+                               " & 訂單資料表(1) & ".資料流水號 = " & 訂單資料表(7) & ".資料流水號 " & 列印用SQL & "
73
                         ORDER BY " & 訂單資料表(1) & ".訂單流水號 DESC"
77
                         ORDER BY " & 訂單資料表(1) & ".訂單流水號 DESC"
74
             Else
78
             Else
75
-                SQL1 = "SELECT " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".資料流水號, " & 訂單資料表(1) & ".年份季度, " & 訂單資料表(1) & ".客戶訂單號, " & 訂單資料表(1) & ".形體號, 
79
+                列印用SQL = " WHERE ((" & 訂單資料表(1) & ".訂單流水號 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".年份季度 LIKE '%" & PA & "%') OR 
80
+                                    (" & 訂單資料表(1) & ".客戶訂單號 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".形體號 LIKE '%" & PA & "%') OR 
81
+                                    (" & 訂單資料表(1) & ".顏色 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".楦型 LIKE '%" & PA & "%') OR 
82
+                                    (" & 訂單資料表(1) & ".備註 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".備註 LIKE '%" & PA & "%') OR 
83
+                                    (" & 訂單資料表(1) & ".生產工廠 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".訂單種類 LIKE '%" & PA & "%') OR 
84
+                                    (" & 訂單資料表(1) & ".力威訂單號 LIKE '%" & PA & "%')) AND " & 訂單資料表(7) & ".天盾訂單號 IS NOT NULL AND 
85
+                                    " & 訂單資料表(7) & ".年份 LIKE '" & ComboBox1.Text & "' AND (" & 訂單資料表(1) & ".CXL IS NULL OR " & 訂單資料表(1) & ".CXL = 0) "
86
+
87
+                SQL1 = "SELECT " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".資料流水號, " & 訂單資料表(1) & ".年份季度, " & 訂單資料表(1) & ".力威訂單號, " & 訂單資料表(1) & ".形體號, 
76
                                " & 訂單資料表(1) & ".顏色, " & 訂單資料表(1) & ".楦型, " & 訂單資料表(1) & ".訂單數量 AS 數量, " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".單價, 
88
                                " & 訂單資料表(1) & ".顏色, " & 訂單資料表(1) & ".楦型, " & 訂單資料表(1) & ".訂單數量 AS 數量, " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".單價, 
77
                                " & 訂單資料表(1) & ".總金額, " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠 AS 工廠, " & 訂單資料表(1) & ".訂單種類, " & 訂單資料表(7) & ".Quantity, 
89
                                " & 訂單資料表(1) & ".總金額, " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠 AS 工廠, " & 訂單資料表(1) & ".訂單種類, " & 訂單資料表(7) & ".Quantity, 
78
                                " & 訂單資料表(7) & ".Currency, " & 訂單資料表(7) & ".Exchange, " & 訂單資料表(7) & ".FTYPrice, (" & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice) * 
90
                                " & 訂單資料表(7) & ".Currency, " & 訂單資料表(7) & ".Exchange, " & 訂單資料表(7) & ".FTYPrice, (" & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice) * 
81
                                " & 訂單資料表(7) & ".FTYPrice) AS Percentage, " & 訂單資料表(7) & ".BasicPrice, " & 訂單資料表(7) & ".Polybag, " & 訂單資料表(7) & ".FOOTformOrPETform AS FOOTorPET, 
93
                                " & 訂單資料表(7) & ".FTYPrice) AS Percentage, " & 訂單資料表(7) & ".BasicPrice, " & 訂單資料表(7) & ".Polybag, " & 訂單資料表(7) & ".FOOTformOrPETform AS FOOTorPET, 
82
                                " & 訂單資料表(7) & ".Tooling, " & 訂單資料表(7) & ".RubberBand, " & 訂單資料表(7) & ".JHOOK, " & 訂單資料表(7) & ".WaterResistant, " & 訂單資料表(7) & ".P16VAT, 
94
                                " & 訂單資料表(7) & ".Tooling, " & 訂單資料表(7) & ".RubberBand, " & 訂單資料表(7) & ".JHOOK, " & 訂單資料表(7) & ".WaterResistant, " & 訂單資料表(7) & ".P16VAT, 
83
                                " & 訂單資料表(7) & ".EXWsaving, " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling AS CollectedToolng, " & 訂單資料表(7) & ".年份, 
95
                                " & 訂單資料表(7) & ".EXWsaving, " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling AS CollectedToolng, " & 訂單資料表(7) & ".年份, 
84
-                               " & 訂單資料表(7) & ".利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity AS 驗證, STYLELIST.ItemNumber, " & 訂單資料表(7) & ".審核 
96
+                               " & 訂單資料表(7) & ".利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity AS 驗證, STYLELIST.ItemNumber, " & 訂單資料表(7) & ".審核, 
97
+                               " & 訂單資料表(1) & ".客戶訂單號 
85
                         FROM   " & 訂單資料表(1) & " LEFT OUTER JOIN STYLELIST ON " & 訂單資料表(1) & ".形體號 = STYLELIST.ProductName RIGHT OUTER JOIN " & 訂單資料表(7) & " ON 
98
                         FROM   " & 訂單資料表(1) & " LEFT OUTER JOIN STYLELIST ON " & 訂單資料表(1) & ".形體號 = STYLELIST.ProductName RIGHT OUTER JOIN " & 訂單資料表(7) & " ON 
86
-                               " & 訂單資料表(1) & ".資料流水號 = " & 訂單資料表(7) & ".資料流水號 
87
-                        WHERE ((" & 訂單資料表(1) & ".訂單流水號 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".年份季度 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".客戶訂單號 LIKE '%" & PA & "%') OR 
88
-                               (" & 訂單資料表(1) & ".形體號 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".顏色 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".楦型 LIKE '%" & PA & "%') OR 
89
-                               (" & 訂單資料表(1) & ".備註 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".備註 LIKE '%" & PA & "%') OR (" & 訂單資料表(1) & ".生產工廠 LIKE '%" & PA & "%') OR 
90
-                               (" & 訂單資料表(1) & ".訂單種類 LIKE '%" & PA & "%')) AND " & 訂單資料表(7) & ".天盾訂單號 IS NOT NULL AND " & 訂單資料表(7) & ".年份 LIKE '" & ComboBox1.Text & "' AND 
91
-                               (" & 訂單資料表(1) & ".CXL IS NULL OR " & 訂單資料表(1) & ".CXL = 0) 
99
+                               " & 訂單資料表(1) & ".資料流水號 = " & 訂單資料表(7) & ".資料流水號 " & 列印用SQL & "
92
                         ORDER BY " & 訂單資料表(1) & ".訂單流水號 DESC"
100
                         ORDER BY " & 訂單資料表(1) & ".訂單流水號 DESC"
93
             End If
101
             End If
94
-            列印用SQL = SQL1
95
             Set_DGV1載入後設定()
102
             Set_DGV1載入後設定()
96
         End If
103
         End If
97
         TextBox18.Text = Format(DataGridView1.Rows.Count, "#,##0")
104
         TextBox18.Text = Format(DataGridView1.Rows.Count, "#,##0")
98
     End Sub
105
     End Sub
99
     Private Sub Set_編輯清單()
106
     Private Sub Set_編輯清單()
100
         Set_DGV1載入前設定()
107
         Set_DGV1載入前設定()
101
-        SQL1 = "SELECT " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".資料流水號, " & 訂單資料表(1) & ".年份季度, " & 訂單資料表(1) & ".客戶訂單號, " & 訂單資料表(1) & ".形體號, 
108
+        SQL1 = "SELECT " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".資料流水號, " & 訂單資料表(1) & ".年份季度, " & 訂單資料表(1) & ".力威訂單號, " & 訂單資料表(1) & ".形體號, 
102
                        " & 訂單資料表(1) & ".顏色, " & 訂單資料表(1) & ".楦型, " & 訂單資料表(1) & ".訂單數量 AS 數量, " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".單價, 
109
                        " & 訂單資料表(1) & ".顏色, " & 訂單資料表(1) & ".楦型, " & 訂單資料表(1) & ".訂單數量 AS 數量, " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".單價, 
103
                        " & 訂單資料表(1) & ".總金額, " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠 AS 工廠, " & 訂單資料表(1) & ".訂單種類, " & 訂單資料表(7) & ".Quantity, 
110
                        " & 訂單資料表(1) & ".總金額, " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠 AS 工廠, " & 訂單資料表(1) & ".訂單種類, " & 訂單資料表(7) & ".Quantity, 
104
                        " & 訂單資料表(7) & ".Currency, " & 訂單資料表(7) & ".Exchange, " & 訂單資料表(7) & ".FTYPrice, (" & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice) * 
111
                        " & 訂單資料表(7) & ".Currency, " & 訂單資料表(7) & ".Exchange, " & 訂單資料表(7) & ".FTYPrice, (" & 訂單資料表(1) & ".單價 - " & 訂單資料表(7) & ".FTYPrice) * 
107
                        " & 訂單資料表(7) & ".FTYPrice AS Percentage, " & 訂單資料表(7) & ".BasicPrice, " & 訂單資料表(7) & ".Polybag, " & 訂單資料表(7) & ".FOOTformOrPETform AS FOOTorPET, 
114
                        " & 訂單資料表(7) & ".FTYPrice AS Percentage, " & 訂單資料表(7) & ".BasicPrice, " & 訂單資料表(7) & ".Polybag, " & 訂單資料表(7) & ".FOOTformOrPETform AS FOOTorPET, 
108
                        " & 訂單資料表(7) & ".Tooling, " & 訂單資料表(7) & ".RubberBand, " & 訂單資料表(7) & ".JHOOK, " & 訂單資料表(7) & ".WaterResistant, " & 訂單資料表(7) & ".P16VAT, 
115
                        " & 訂單資料表(7) & ".Tooling, " & 訂單資料表(7) & ".RubberBand, " & 訂單資料表(7) & ".JHOOK, " & 訂單資料表(7) & ".WaterResistant, " & 訂單資料表(7) & ".P16VAT, 
109
                        " & 訂單資料表(7) & ".EXWsaving, " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling AS CollectedToolng, " & 訂單資料表(7) & ".年份, 
116
                        " & 訂單資料表(7) & ".EXWsaving, " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling AS CollectedToolng, " & 訂單資料表(7) & ".年份, 
110
-                       訂單價格利潤表暫存檔.利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity AS 驗證, STYLELIST.ItemNumber, " & 訂單資料表(7) & ".審核 
117
+                       訂單價格利潤表暫存檔.利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity AS 驗證, STYLELIST.ItemNumber, " & 訂單資料表(7) & ".審核, 
118
+                       " & 訂單資料表(1) & ".客戶訂單號 
111
                 FROM   STYLELIST RIGHT OUTER JOIN " & 訂單資料表(1) & " ON STYLELIST.ProductName = " & 訂單資料表(1) & ".形體號 RIGHT OUTER JOIN 訂單價格利潤表暫存檔 ON 
119
                 FROM   STYLELIST RIGHT OUTER JOIN " & 訂單資料表(1) & " ON STYLELIST.ProductName = " & 訂單資料表(1) & ".形體號 RIGHT OUTER JOIN 訂單價格利潤表暫存檔 ON 
112
                        " & 訂單資料表(1) & ".資料流水號 = 訂單價格利潤表暫存檔.資料流水號 LEFT OUTER JOIN " & 訂單資料表(7) & " ON 訂單價格利潤表暫存檔.資料流水號 = " & 訂單資料表(7) & ".資料流水號 
120
                        " & 訂單資料表(1) & ".資料流水號 = 訂單價格利潤表暫存檔.資料流水號 LEFT OUTER JOIN " & 訂單資料表(7) & " ON 訂單價格利潤表暫存檔.資料流水號 = " & 訂單資料表(7) & ".資料流水號 
113
                 ORDER BY " & 訂單資料表(1) & ".訂單流水號 DESC, " & 訂單資料表(1) & ".形體號, " & 訂單資料表(1) & ".顏色, " & 訂單資料表(1) & ".楦型"
121
                 ORDER BY " & 訂單資料表(1) & ".訂單流水號 DESC, " & 訂單資料表(1) & ".形體號, " & 訂單資料表(1) & ".顏色, " & 訂單資料表(1) & ".楦型"
218
             DataGridView1.Columns(22).Visible = False : DataGridView1.Columns(23).Visible = False : DataGridView1.Columns(24).Visible = False
226
             DataGridView1.Columns(22).Visible = False : DataGridView1.Columns(23).Visible = False : DataGridView1.Columns(24).Visible = False
219
             DataGridView1.Columns(25).Visible = False : DataGridView1.Columns(26).Visible = False : DataGridView1.Columns(27).Visible = False : DataGridView1.Columns(28).Visible = False
227
             DataGridView1.Columns(25).Visible = False : DataGridView1.Columns(26).Visible = False : DataGridView1.Columns(27).Visible = False : DataGridView1.Columns(28).Visible = False
220
             DataGridView1.Columns(29).Visible = False : DataGridView1.Columns(30).Visible = False : DataGridView1.Columns(31).Visible = False : DataGridView1.Columns(34).Visible = False
228
             DataGridView1.Columns(29).Visible = False : DataGridView1.Columns(30).Visible = False : DataGridView1.Columns(31).Visible = False : DataGridView1.Columns(34).Visible = False
221
-            DataGridView1.Columns(35).Visible = False : DataGridView1.Columns(36).Visible = False
229
+            DataGridView1.Columns(35).Visible = False : DataGridView1.Columns(36).Visible = False : DataGridView1.Columns(37).Visible = False
222
         ElseIf BB(0) = False And BB(1) = True And BB(2) = False And BB(3) = False Then
230
         ElseIf BB(0) = False And BB(1) = True And BB(2) = False And BB(3) = False Then
223
             DataGridView1.Columns(17).Visible = False : DataGridView1.Columns(18).Visible = False : DataGridView1.Columns(19).Visible = False : DataGridView1.Columns(20).Visible = False
231
             DataGridView1.Columns(17).Visible = False : DataGridView1.Columns(18).Visible = False : DataGridView1.Columns(19).Visible = False : DataGridView1.Columns(20).Visible = False
224
             DataGridView1.Columns(21).Visible = False
232
             DataGridView1.Columns(21).Visible = False
226
             DataGridView1.Columns(22).Visible = True : DataGridView1.Columns(23).Visible = True : DataGridView1.Columns(24).Visible = True
234
             DataGridView1.Columns(22).Visible = True : DataGridView1.Columns(23).Visible = True : DataGridView1.Columns(24).Visible = True
227
             DataGridView1.Columns(25).Visible = True : DataGridView1.Columns(26).Visible = True : DataGridView1.Columns(27).Visible = True : DataGridView1.Columns(28).Visible = True
235
             DataGridView1.Columns(25).Visible = True : DataGridView1.Columns(26).Visible = True : DataGridView1.Columns(27).Visible = True : DataGridView1.Columns(28).Visible = True
228
             DataGridView1.Columns(29).Visible = True : DataGridView1.Columns(30).Visible = True : DataGridView1.Columns(31).Visible = True : DataGridView1.Columns(34).Visible = False
236
             DataGridView1.Columns(29).Visible = True : DataGridView1.Columns(30).Visible = True : DataGridView1.Columns(31).Visible = True : DataGridView1.Columns(34).Visible = False
229
-            DataGridView1.Columns(35).Visible = False : DataGridView1.Columns(36).Visible = False
237
+            DataGridView1.Columns(35).Visible = False : DataGridView1.Columns(36).Visible = False : DataGridView1.Columns(37).Visible = False
230
         ElseIf BB(0) = False And BB(1) = False And BB(2) = True And BB(3) = False Then
238
         ElseIf BB(0) = False And BB(1) = False And BB(2) = True And BB(3) = False Then
231
             DataGridView1.Columns(31).Visible = True : DataGridView1.Columns(18).Visible = True : DataGridView1.Columns(19).Visible = True : DataGridView1.Columns(20).Visible = True
239
             DataGridView1.Columns(31).Visible = True : DataGridView1.Columns(18).Visible = True : DataGridView1.Columns(19).Visible = True : DataGridView1.Columns(20).Visible = True
232
             DataGridView1.Columns(21).Visible = True
240
             DataGridView1.Columns(21).Visible = True
234
             DataGridView1.Columns(22).Visible = False : DataGridView1.Columns(23).Visible = False : DataGridView1.Columns(24).Visible = False
242
             DataGridView1.Columns(22).Visible = False : DataGridView1.Columns(23).Visible = False : DataGridView1.Columns(24).Visible = False
235
             DataGridView1.Columns(25).Visible = False : DataGridView1.Columns(26).Visible = False : DataGridView1.Columns(27).Visible = False : DataGridView1.Columns(28).Visible = False
243
             DataGridView1.Columns(25).Visible = False : DataGridView1.Columns(26).Visible = False : DataGridView1.Columns(27).Visible = False : DataGridView1.Columns(28).Visible = False
236
             DataGridView1.Columns(29).Visible = False : DataGridView1.Columns(30).Visible = False : DataGridView1.Columns(17).Visible = False : DataGridView1.Columns(34).Visible = False
244
             DataGridView1.Columns(29).Visible = False : DataGridView1.Columns(30).Visible = False : DataGridView1.Columns(17).Visible = False : DataGridView1.Columns(34).Visible = False
237
-            DataGridView1.Columns(35).Visible = False : DataGridView1.Columns(36).Visible = False
245
+            DataGridView1.Columns(35).Visible = False : DataGridView1.Columns(36).Visible = False : DataGridView1.Columns(37).Visible = False
238
         ElseIf BB(0) = False And BB(1) = False And BB(2) = False And BB(3) = True Then
246
         ElseIf BB(0) = False And BB(1) = False And BB(2) = False And BB(3) = True Then
239
             DataGridView1.Columns(31).Visible = False : DataGridView1.Columns(18).Visible = False : DataGridView1.Columns(19).Visible = False : DataGridView1.Columns(20).Visible = False
247
             DataGridView1.Columns(31).Visible = False : DataGridView1.Columns(18).Visible = False : DataGridView1.Columns(19).Visible = False : DataGridView1.Columns(20).Visible = False
240
             DataGridView1.Columns(21).Visible = False
248
             DataGridView1.Columns(21).Visible = False
243
             DataGridView1.Columns(25).Visible = False : DataGridView1.Columns(26).Visible = False : DataGridView1.Columns(27).Visible = False : DataGridView1.Columns(28).Visible = False
251
             DataGridView1.Columns(25).Visible = False : DataGridView1.Columns(26).Visible = False : DataGridView1.Columns(27).Visible = False : DataGridView1.Columns(28).Visible = False
244
             DataGridView1.Columns(29).Visible = False : DataGridView1.Columns(30).Visible = False : DataGridView1.Columns(17).Visible = False
252
             DataGridView1.Columns(29).Visible = False : DataGridView1.Columns(30).Visible = False : DataGridView1.Columns(17).Visible = False
245
 
253
 
246
-            DataGridView1.Columns(34).Visible = True : DataGridView1.Columns(35).Visible = True : DataGridView1.Columns(36).Visible = True
254
+            DataGridView1.Columns(34).Visible = True : DataGridView1.Columns(35).Visible = True : DataGridView1.Columns(36).Visible = True : DataGridView1.Columns(37).Visible = True
247
         End If
255
         End If
248
-        DataGridView1.Columns(32).FillWeight = 50
256
+        DataGridView1.Columns(32).FillWeight = 50 : DataGridView1.Columns(34).FillWeight = 50 : DataGridView1.Columns(36).FillWeight = 50
249
         DataGridView1.Columns(14).DefaultCellStyle.BackColor = Color.MistyRose : DataGridView1.Columns(17).DefaultCellStyle.BackColor = Color.MistyRose
257
         DataGridView1.Columns(14).DefaultCellStyle.BackColor = Color.MistyRose : DataGridView1.Columns(17).DefaultCellStyle.BackColor = Color.MistyRose
250
         DataGridView1.Columns(22).DefaultCellStyle.BackColor = Color.MistyRose : DataGridView1.Columns(23).DefaultCellStyle.BackColor = Color.MistyRose
258
         DataGridView1.Columns(22).DefaultCellStyle.BackColor = Color.MistyRose : DataGridView1.Columns(23).DefaultCellStyle.BackColor = Color.MistyRose
251
         DataGridView1.Columns(24).DefaultCellStyle.BackColor = Color.MistyRose : DataGridView1.Columns(25).DefaultCellStyle.BackColor = Color.MistyRose
259
         DataGridView1.Columns(24).DefaultCellStyle.BackColor = Color.MistyRose : DataGridView1.Columns(25).DefaultCellStyle.BackColor = Color.MistyRose

+ 10
- 10
TENDEN-MES-SYS/樣品訂單管理/中文樣品單.Designer.vb Ver fichero

134
         Me.TextBox17 = New System.Windows.Forms.TextBox()
134
         Me.TextBox17 = New System.Windows.Forms.TextBox()
135
         Me.刪除樣品單_bt = New System.Windows.Forms.Button()
135
         Me.刪除樣品單_bt = New System.Windows.Forms.Button()
136
         Me.Label15 = New System.Windows.Forms.Label()
136
         Me.Label15 = New System.Windows.Forms.Label()
137
-        Me.ComboBox8 = New System.Windows.Forms.ComboBox()
137
+        Me.階段_cb = New System.Windows.Forms.ComboBox()
138
         Me.Button46 = New System.Windows.Forms.Button()
138
         Me.Button46 = New System.Windows.Forms.Button()
139
         Me.Button47 = New System.Windows.Forms.Button()
139
         Me.Button47 = New System.Windows.Forms.Button()
140
         Me.Button48 = New System.Windows.Forms.Button()
140
         Me.Button48 = New System.Windows.Forms.Button()
1274
         Me.Label15.TabIndex = 408
1274
         Me.Label15.TabIndex = 408
1275
         Me.Label15.Text = "階段:"
1275
         Me.Label15.Text = "階段:"
1276
         '
1276
         '
1277
-        'ComboBox8
1277
+        '階段_cb
1278
         '
1278
         '
1279
-        Me.ComboBox8.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1280
-        Me.ComboBox8.FormattingEnabled = True
1281
-        Me.ComboBox8.Location = New System.Drawing.Point(584, 186)
1282
-        Me.ComboBox8.Name = "ComboBox8"
1283
-        Me.ComboBox8.Size = New System.Drawing.Size(85, 24)
1284
-        Me.ComboBox8.TabIndex = 409
1279
+        Me.階段_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1280
+        Me.階段_cb.FormattingEnabled = True
1281
+        Me.階段_cb.Location = New System.Drawing.Point(584, 186)
1282
+        Me.階段_cb.Name = "階段_cb"
1283
+        Me.階段_cb.Size = New System.Drawing.Size(85, 24)
1284
+        Me.階段_cb.TabIndex = 409
1285
         '
1285
         '
1286
         'Button46
1286
         'Button46
1287
         '
1287
         '
2140
         Me.Controls.Add(Me.控制項_bt)
2140
         Me.Controls.Add(Me.控制項_bt)
2141
         Me.Controls.Add(Me.Label16)
2141
         Me.Controls.Add(Me.Label16)
2142
         Me.Controls.Add(Me.TextBox18)
2142
         Me.Controls.Add(Me.TextBox18)
2143
-        Me.Controls.Add(Me.ComboBox8)
2143
+        Me.Controls.Add(Me.階段_cb)
2144
         Me.Controls.Add(Me.Label15)
2144
         Me.Controls.Add(Me.Label15)
2145
         Me.Controls.Add(Me.清除其他LOGO_bt)
2145
         Me.Controls.Add(Me.清除其他LOGO_bt)
2146
         Me.Controls.Add(Me.PictureBox4)
2146
         Me.Controls.Add(Me.PictureBox4)
2337
     Friend WithEvents TextBox17 As TextBox
2337
     Friend WithEvents TextBox17 As TextBox
2338
     Friend WithEvents 刪除樣品單_bt As Button
2338
     Friend WithEvents 刪除樣品單_bt As Button
2339
     Friend WithEvents Label15 As Label
2339
     Friend WithEvents Label15 As Label
2340
-    Friend WithEvents ComboBox8 As ComboBox
2340
+    Friend WithEvents 階段_cb As ComboBox
2341
     Friend WithEvents Button46 As Button
2341
     Friend WithEvents Button46 As Button
2342
     Friend WithEvents Button47 As Button
2342
     Friend WithEvents Button47 As Button
2343
     Friend WithEvents Button48 As Button
2343
     Friend WithEvents Button48 As Button

+ 134
- 127
TENDEN-MES-SYS/樣品訂單管理/中文樣品單.vb Ver fichero

319
         While (dr1.Read()) : ComboBox7.Items.Add(dr1("形體號")) : End While : conn1.Close()
319
         While (dr1.Read()) : ComboBox7.Items.Add(dr1("形體號")) : End While : conn1.Close()
320
     End Sub
320
     End Sub
321
     Private Sub ComboBox8下拉表單資料載入()
321
     Private Sub ComboBox8下拉表單資料載入()
322
-        ComboBox8.Items.Clear()
322
+        階段_cb.Items.Clear()
323
         If 開發部門 = False And 確認部門 = True Then
323
         If 開發部門 = False And 確認部門 = True Then
324
-            ComboBox16.Items.Clear() : ComboBox8.Items.Clear()
325
-            ComboBox8.Items.Add("CFM") : ComboBox16.Items.Add("CFM")
324
+            ComboBox16.Items.Clear() : 階段_cb.Items.Clear()
325
+            階段_cb.Items.Add("CFM") : ComboBox16.Items.Add("CFM")
326
         ElseIf 開發部門 = True And 確認部門 = False Then
326
         ElseIf 開發部門 = True And 確認部門 = False Then
327
-            ComboBox16.Items.Clear() : ComboBox8.Items.Clear()
328
-            ComboBox8.Items.Add("ILR") : ComboBox8.Items.Add("FLR") : ComboBox8.Items.Add("SMS") : ComboBox8.Items.Add("SMU") : ComboBox8.Items.Add("Proto") : ComboBox8.Items.Add("Line")
329
-            ComboBox8.Items.Add("Canada")
327
+            ComboBox16.Items.Clear() : 階段_cb.Items.Clear()
328
+            階段_cb.Items.Add("ILR") : 階段_cb.Items.Add("FLR") : 階段_cb.Items.Add("SMS") : 階段_cb.Items.Add("SMU") : 階段_cb.Items.Add("Proto") : 階段_cb.Items.Add("Line")
329
+            階段_cb.Items.Add("Canada")
330
             ComboBox16.Items.Add("ILR") : ComboBox16.Items.Add("FLR") : ComboBox16.Items.Add("SMS") : ComboBox16.Items.Add("SMU") : ComboBox16.Items.Add("Proto") : ComboBox16.Items.Add("Line")
330
             ComboBox16.Items.Add("ILR") : ComboBox16.Items.Add("FLR") : ComboBox16.Items.Add("SMS") : ComboBox16.Items.Add("SMU") : ComboBox16.Items.Add("Proto") : ComboBox16.Items.Add("Line")
331
             ComboBox16.Items.Add("Canada")
331
             ComboBox16.Items.Add("Canada")
332
         End If
332
         End If
686
                         End If
686
                         End If
687
                     End If
687
                     End If
688
                     ComboBox8下拉表單資料載入()
688
                     ComboBox8下拉表單資料載入()
689
-                    ComboBox8.Text = 清單_dgv(3, e.RowIndex).Value.ToString
689
+                    階段_cb.Text = 清單_dgv(3, e.RowIndex).Value.ToString
690
 
690
 
691
                     TextBox35.Text = ComboBox2.Text
691
                     TextBox35.Text = ComboBox2.Text
692
                     TextBox34.Text = Microsoft.VisualBasic.Left(顏色_dgv(32, 0).Value.ToString, 4)
692
                     TextBox34.Text = Microsoft.VisualBasic.Left(顏色_dgv(32, 0).Value.ToString, 4)
702
                 End If
702
                 End If
703
             End If
703
             End If
704
             TextBox35.Text = ComboBox2.Text : TextBox31.Text = ComboBox6.Text : TextBox30.Text = ComboBox7.Text : TextBox29.Text = ComboBox3.Text : TextBox26.Text = ComboBox4.Text
704
             TextBox35.Text = ComboBox2.Text : TextBox31.Text = ComboBox6.Text : TextBox30.Text = ComboBox7.Text : TextBox29.Text = ComboBox3.Text : TextBox26.Text = ComboBox4.Text
705
-            If ComboBox8.Text = "ILR" Then : ComboBox9.Text = "ILR"
706
-            ElseIf ComboBox8.Text = "FLR" Then : ComboBox9.Text = "FLR"
707
-            ElseIf ComboBox8.Text = "SMS" Then : ComboBox9.Text = "SS"
708
-            ElseIf ComboBox8.Text = "SMU" Or ComboBox8.Text = "SMU" Then : ComboBox9.Text = ""
709
-            ElseIf ComboBox8.Text = "Proto" Then : ComboBox9.Text = "Proto"
710
-            ElseIf ComboBox8.Text = "Line" Then : ComboBox9.Text = "Line"
711
-            ElseIf ComboBox8.Text = "Canada" Then : ComboBox9.Text = "Canada"
705
+            If 階段_cb.Text = "ILR" Then : ComboBox9.Text = "ILR"
706
+            ElseIf 階段_cb.Text = "FLR" Then : ComboBox9.Text = "FLR"
707
+            ElseIf 階段_cb.Text = "SMS" Then : ComboBox9.Text = "SS"
708
+            ElseIf 階段_cb.Text = "SMU" Or 階段_cb.Text = "SMU" Then : ComboBox9.Text = ""
709
+            ElseIf 階段_cb.Text = "Proto" Then : ComboBox9.Text = "Proto"
710
+            ElseIf 階段_cb.Text = "Line" Then : ComboBox9.Text = "Line"
711
+            ElseIf 階段_cb.Text = "Canada" Then : ComboBox9.Text = "Canada"
712
             End If
712
             End If
713
-            If ComboBox8.Text = "ILR" Or ComboBox8.Text = "FLR" Then : CheckBox8.Checked = True : CheckBox7.Checked = False : CheckBox6.Checked = False
714
-            ElseIf ComboBox8.Text = "CFM" Then : CheckBox8.Checked = False : CheckBox7.Checked = True : CheckBox6.Checked = False
715
-            ElseIf ComboBox8.Text = "SMS" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = True
716
-            ElseIf ComboBox8.Text = "SMU" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
717
-            ElseIf ComboBox8.Text = "Proto" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
718
-            ElseIf ComboBox8.Text = "Line" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
719
-            ElseIf ComboBox8.Text = "Canada" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
713
+            If 階段_cb.Text = "ILR" Or 階段_cb.Text = "FLR" Then : CheckBox8.Checked = True : CheckBox7.Checked = False : CheckBox6.Checked = False
714
+            ElseIf 階段_cb.Text = "CFM" Then : CheckBox8.Checked = False : CheckBox7.Checked = True : CheckBox6.Checked = False
715
+            ElseIf 階段_cb.Text = "SMS" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = True
716
+            ElseIf 階段_cb.Text = "SMU" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
717
+            ElseIf 階段_cb.Text = "Proto" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
718
+            ElseIf 階段_cb.Text = "Line" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
719
+            ElseIf 階段_cb.Text = "Canada" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
720
             End If
720
             End If
721
         End If
721
         End If
722
     End Sub
722
     End Sub
754
             TextBox23.Text = 顏色_dgv(37, e.RowIndex).Value.ToString : TextBox22.Text = 顏色_dgv(38, e.RowIndex).Value.ToString & "/" & 顏色_dgv(39, e.RowIndex).Value.ToString
754
             TextBox23.Text = 顏色_dgv(37, e.RowIndex).Value.ToString : TextBox22.Text = 顏色_dgv(38, e.RowIndex).Value.ToString & "/" & 顏色_dgv(39, e.RowIndex).Value.ToString
755
             TextBox21.Text = 顏色_dgv(43, e.RowIndex).Value.ToString : ComboBox12.Text = 顏色_dgv(38, e.RowIndex).Value.ToString
755
             TextBox21.Text = 顏色_dgv(43, e.RowIndex).Value.ToString : ComboBox12.Text = 顏色_dgv(38, e.RowIndex).Value.ToString
756
             ComboBox11.Text = 顏色_dgv(39, e.RowIndex).Value.ToString : ComboBox10.Text = 顏色_dgv(40, e.RowIndex).Value.ToString
756
             ComboBox11.Text = 顏色_dgv(39, e.RowIndex).Value.ToString : ComboBox10.Text = 顏色_dgv(40, e.RowIndex).Value.ToString
757
-            If ComboBox8.Text = "ILR" Then : ComboBox9.Text = "ILR"
758
-            ElseIf ComboBox8.Text = "FLR" Then : ComboBox9.Text = "FLR"
759
-            ElseIf ComboBox8.Text = "SMS" Then : ComboBox9.Text = "SS"
760
-            ElseIf ComboBox8.Text = "SMU" Or ComboBox8.Text = "SMU" Then : ComboBox9.Text = ""
761
-            ElseIf ComboBox8.Text = "Proto" Then : ComboBox9.Text = "Proto"
762
-            ElseIf ComboBox8.Text = "Line" Then : ComboBox9.Text = "Line"
763
-            ElseIf ComboBox8.Text = "Canada" Then : ComboBox9.Text = "Canada"
757
+            If 階段_cb.Text = "ILR" Then : ComboBox9.Text = "ILR"
758
+            ElseIf 階段_cb.Text = "FLR" Then : ComboBox9.Text = "FLR"
759
+            ElseIf 階段_cb.Text = "SMS" Then : ComboBox9.Text = "SS"
760
+            ElseIf 階段_cb.Text = "SMU" Or 階段_cb.Text = "SMU" Then : ComboBox9.Text = ""
761
+            ElseIf 階段_cb.Text = "Proto" Then : ComboBox9.Text = "Proto"
762
+            ElseIf 階段_cb.Text = "Line" Then : ComboBox9.Text = "Line"
763
+            ElseIf 階段_cb.Text = "Canada" Then : ComboBox9.Text = "Canada"
764
             End If
764
             End If
765
-            If ComboBox8.Text = "ILR" Or ComboBox8.Text = "FLR" Then : CheckBox8.Checked = True : CheckBox7.Checked = False : CheckBox6.Checked = False
766
-            ElseIf ComboBox8.Text = "CFM" Then : CheckBox8.Checked = False : CheckBox7.Checked = True : CheckBox6.Checked = False
767
-            ElseIf ComboBox8.Text = "SMS" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = True
768
-            ElseIf ComboBox8.Text = "SMU" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
769
-            ElseIf ComboBox8.Text = "Proto" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
770
-            ElseIf ComboBox8.Text = "Line" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
771
-            ElseIf ComboBox8.Text = "Canada" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
765
+            If 階段_cb.Text = "ILR" Or 階段_cb.Text = "FLR" Then : CheckBox8.Checked = True : CheckBox7.Checked = False : CheckBox6.Checked = False
766
+            ElseIf 階段_cb.Text = "CFM" Then : CheckBox8.Checked = False : CheckBox7.Checked = True : CheckBox6.Checked = False
767
+            ElseIf 階段_cb.Text = "SMS" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = True
768
+            ElseIf 階段_cb.Text = "SMU" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
769
+            ElseIf 階段_cb.Text = "Proto" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
770
+            ElseIf 階段_cb.Text = "Line" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
771
+            ElseIf 階段_cb.Text = "Canada" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
772
             End If
772
             End If
773
         End If
773
         End If
774
     End Sub
774
     End Sub
1022
         If 開發部門 = False And 確認部門 = True Then
1022
         If 開發部門 = False And 確認部門 = True Then
1023
         ElseIf 開發部門 = True And 確認部門 = False Then
1023
         ElseIf 開發部門 = True And 確認部門 = False Then
1024
             中文樣品單階段.ShowDialog()
1024
             中文樣品單階段.ShowDialog()
1025
-            ComboBox8.Text = QA
1025
+            階段_cb.Text = QA
1026
         End If
1026
         End If
1027
         排序(0) = "ORDER BY 確認樣品單控制表.顏色, 確認樣品單明細表.細項" : 排序(1) = "ORDER BY 確認樣品單控制表暫存檔.顏色, 確認樣品單明細表暫存檔.細項"
1027
         排序(0) = "ORDER BY 確認樣品單控制表.顏色, 確認樣品單明細表.細項" : 排序(1) = "ORDER BY 確認樣品單控制表暫存檔.顏色, 確認樣品單明細表暫存檔.細項"
1028
         排序(2) = "ORDER BY 確認樣品單控制表.顏色, 確認樣品單明細表.細項" : 排序(3) = "ORDER BY 確認樣品單控制表暫存檔.顏色, 確認樣品單明細表暫存檔.細項"
1028
         排序(2) = "ORDER BY 確認樣品單控制表.顏色, 確認樣品單明細表.細項" : 排序(3) = "ORDER BY 確認樣品單控制表暫存檔.顏色, 確認樣品單明細表暫存檔.細項"
1529
         TextBox7.Text = 飾物_dgv(8, e.RowIndex).Value.ToString
1529
         TextBox7.Text = 飾物_dgv(8, e.RowIndex).Value.ToString
1530
     End Sub
1530
     End Sub
1531
     Private Sub Button29_Click(sender As Object, e As EventArgs) Handles 新增OR複製_bt.Click
1531
     Private Sub Button29_Click(sender As Object, e As EventArgs) Handles 新增OR複製_bt.Click
1532
-        If 開發部門 = False And 確認部門 = True Then : 部門 = "確認" : QA = "CFM"
1533
-        ElseIf 開發部門 = True And 確認部門 = False Then : 部門 = "開發"
1534
-        End If
1535
-        If CheckBox8.Checked = True Then : ASD = "D"
1536
-        ElseIf CheckBox7.Checked = True Then : ASD = "C"
1537
-        ElseIf CheckBox6.Checked = True Then : ASD = "S"
1538
-        ElseIf CheckBox8.Checked = False And CheckBox7.Checked = False And CheckBox6.Checked = False Then : ASD = ""
1539
-        End If
1540
-        ConnOpen()
1541
-        SQL1 = "INSERT INTO 確認樣品單抬頭 " &
1532
+        If 階段_cb.Text = "" Then
1533
+            MsgBox("階段選項不可空白")
1534
+        Else
1535
+            If 開發部門 = False And 確認部門 = True Then : 部門 = "確認" : QA = "CFM"
1536
+            ElseIf 開發部門 = True And 確認部門 = False Then : 部門 = "開發"
1537
+            End If
1538
+            If CheckBox8.Checked = True Then : ASD = "D"
1539
+            ElseIf CheckBox7.Checked = True Then : ASD = "C"
1540
+            ElseIf CheckBox6.Checked = True Then : ASD = "S"
1541
+            ElseIf CheckBox8.Checked = False And CheckBox7.Checked = False And CheckBox6.Checked = False Then : ASD = ""
1542
+            End If
1543
+            ConnOpen()
1544
+            SQL1 = "INSERT INTO 確認樣品單抬頭 " &
1542
                "(樣品流水號, 品牌, 季節, 工廠, 楦頭, Construction, 型體名, 型體號碼, 内里印刷, 中文樣品單產地標, 中文樣品單鞋圖, 新舊形體, 舊型體季別, 日期, 部門, 中文樣品單中底LOGO, " &
1545
                "(樣品流水號, 品牌, 季節, 工廠, 楦頭, Construction, 型體名, 型體號碼, 内里印刷, 中文樣品單產地標, 中文樣品單鞋圖, 新舊形體, 舊型體季別, 日期, 部門, 中文樣品單中底LOGO, " &
1543
                "中文樣品單其他LOGO, 階段, DEVELOPER, 制表人) " &
1546
                "中文樣品單其他LOGO, 階段, DEVELOPER, 制表人) " &
1544
                    "VALUES ('" & 樣品單流水號變數1 & "','" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & ComboBox3.Text & "','" & ComboBox4.Text & "','" & ComboBox5.Text &
1547
                    "VALUES ('" & 樣品單流水號變數1 & "','" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & ComboBox3.Text & "','" & ComboBox4.Text & "','" & ComboBox5.Text &
1545
                          "','" & ComboBox6.Text & "','" & ComboBox7.Text & "',N'" & TextBox2.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & CheckBox1.Checked &
1548
                          "','" & ComboBox6.Text & "','" & ComboBox7.Text & "',N'" & TextBox2.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & CheckBox1.Checked &
1546
                          "',N'" & TextBox1.Text & "','" & Format(DateTimePicker1.Value, "yyyy/MM/dd") & "','" & 部門 & "','" & TextBox10.Text & "','" & TextBox17.Text &
1549
                          "',N'" & TextBox1.Text & "','" & Format(DateTimePicker1.Value, "yyyy/MM/dd") & "','" & 部門 & "','" & TextBox10.Text & "','" & TextBox17.Text &
1547
-                         "', '" & ComboBox8.Text & "',N'" & TextBox18.Text & "',N'" & gUserName & "')"
1548
-        CmdSet_For_dr() : conn.Close()
1549
-        For i As Integer = 0 To 顏色_dgv.Rows.Count - 1
1550
-            ConnOpen()
1551
-            SQL1 = "INSERT INTO 確認樣品單控制表 (樣品流水號, 樣品流水號一, 顏色, 訂單顏色, 數量1, 面料, 內裏, 底部, 飾物, 備註, FINISH, Upper_Material, CFM_SPEC, ETD, Ship_Date, AWB, " &
1550
+                         "', '" & 階段_cb.Text & "',N'" & TextBox18.Text & "',N'" & gUserName & "')"
1551
+            CmdSet_For_dr() : conn.Close()
1552
+            For i As Integer = 0 To 顏色_dgv.Rows.Count - 1
1553
+                ConnOpen()
1554
+                SQL1 = "INSERT INTO 確認樣品單控制表 (樣品流水號, 樣品流水號一, 顏色, 訂單顏色, 數量1, 面料, 內裏, 底部, 飾物, 備註, FINISH, Upper_Material, CFM_SPEC, ETD, Ship_Date, AWB, " &
1552
                    "Approved_Date, Comments, 一ST_XFD, PO, Column1, Column2, DATE, SIZE, FROMS, FACTORY, 確認結果1, 確認結果2, 確認結果3, 注意, 確認通知單鞋圖, 掛牌Date, 掛牌Color, Material_Article, " &
1555
                    "Approved_Date, Comments, 一ST_XFD, PO, Column1, Column2, DATE, SIZE, FROMS, FACTORY, 確認結果1, 確認結果2, 確認結果3, 注意, 確認通知單鞋圖, 掛牌Date, 掛牌Color, Material_Article, " &
1553
                    "Construc_Name, Insole, Footbed, 掛牌Size, Gender, Width, D_C_S, Stage, 掛牌Comments) " &
1556
                    "Construc_Name, Insole, Footbed, 掛牌Size, Gender, Width, D_C_S, Stage, 掛牌Comments) " &
1554
                    "VALUES ('" & 顏色_dgv.Rows(i).Cells("樣品流水號").Value &
1557
                    "VALUES ('" & 顏色_dgv.Rows(i).Cells("樣品流水號").Value &
1574
                         "',N'" & ASD &
1577
                         "',N'" & ASD &
1575
                         "',N'" & ComboBox9.Text &
1578
                         "',N'" & ComboBox9.Text &
1576
                         "',N'" & 顏色_dgv.Rows(i).Cells("掛牌Comments").Value & "')"
1579
                         "',N'" & 顏色_dgv.Rows(i).Cells("掛牌Comments").Value & "')"
1577
-            CmdSet_For_dr() : conn.Close()
1578
-            ConnOpen()
1579
-            SQL1 = "INSERT INTO 確認品單掛牌 (樣品流水號, 樣品流水號一, Material_Article, Last, Construc_Name, Insole, Footbed, Gender, Width, D_C_S, Stage, 
1580
+                CmdSet_For_dr() : conn.Close()
1581
+                ConnOpen()
1582
+                SQL1 = "INSERT INTO 確認品單掛牌 (樣品流水號, 樣品流水號一, Material_Article, Last, Construc_Name, Insole, Footbed, Gender, Width, D_C_S, Stage, 
1580
                             Comments, Size) " &
1583
                             Comments, Size) " &
1581
                    "VALUES ('" & 顏色_dgv.Rows(i).Cells("樣品流水號").Value &
1584
                    "VALUES ('" & 顏色_dgv.Rows(i).Cells("樣品流水號").Value &
1582
                          "','" & 顏色_dgv.Rows(i).Cells("樣品流水號一").Value &
1585
                          "','" & 顏色_dgv.Rows(i).Cells("樣品流水號一").Value &
1583
                         "','','','','','','','','','','','')"
1586
                         "','','','','','','','','','','','')"
1584
-            CmdSet_For_dr() : conn.Close()
1585
-        Next
1586
-        If 面料_dgv.Rows.Count > 0 Then
1587
-            For i = 0 To 面料_dgv.Rows.Count - 1
1588
-                ConnOpen()
1589
-                SQL1 = "INSERT INTO 確認樣品單明細表 (樣品流水號二, 樣品流水號三, 細項, 內容, 廠商, 樣品流水號) " &
1587
+                CmdSet_For_dr() : conn.Close()
1588
+            Next
1589
+            If 面料_dgv.Rows.Count > 0 Then
1590
+                For i = 0 To 面料_dgv.Rows.Count - 1
1591
+                    ConnOpen()
1592
+                    SQL1 = "INSERT INTO 確認樣品單明細表 (樣品流水號二, 樣品流水號三, 細項, 內容, 廠商, 樣品流水號) " &
1590
                        "VALUES ('" & 面料_dgv.Rows(i).Cells("樣品流水號二").Value &
1593
                        "VALUES ('" & 面料_dgv.Rows(i).Cells("樣品流水號二").Value &
1591
                              "','" & 面料_dgv.Rows(i).Cells("樣品流水號三").Value &
1594
                              "','" & 面料_dgv.Rows(i).Cells("樣品流水號三").Value &
1592
                             "',N'" & 面料_dgv.Rows(i).Cells("Item_N").Value &
1595
                             "',N'" & 面料_dgv.Rows(i).Cells("Item_N").Value &
1593
                             "',N'" & 面料_dgv.Rows(i).Cells("內容").Value &
1596
                             "',N'" & 面料_dgv.Rows(i).Cells("內容").Value &
1594
                             "',N'" & 面料_dgv.Rows(i).Cells("Factory").Value &
1597
                             "',N'" & 面料_dgv.Rows(i).Cells("Factory").Value &
1595
                              "','" & 面料_dgv.Rows(i).Cells("樣品流水號").Value & "')"
1598
                              "','" & 面料_dgv.Rows(i).Cells("樣品流水號").Value & "')"
1596
-                CmdSet_For_dr() : conn.Close()
1597
-            Next i
1598
-        End If
1599
-        If 內裡_dgv.Rows.Count > 0 Then
1600
-            For i = 0 To 內裡_dgv.Rows.Count - 1
1601
-                ConnOpen()
1602
-                SQL1 = "INSERT INTO 確認樣品單明細表 (樣品流水號二, 樣品流水號三, 細項, 內容, 廠商, 樣品流水號) " &
1599
+                    CmdSet_For_dr() : conn.Close()
1600
+                Next i
1601
+            End If
1602
+            If 內裡_dgv.Rows.Count > 0 Then
1603
+                For i = 0 To 內裡_dgv.Rows.Count - 1
1604
+                    ConnOpen()
1605
+                    SQL1 = "INSERT INTO 確認樣品單明細表 (樣品流水號二, 樣品流水號三, 細項, 內容, 廠商, 樣品流水號) " &
1603
                        "VALUES ('" & 內裡_dgv.Rows(i).Cells("樣品流水號二").Value &
1606
                        "VALUES ('" & 內裡_dgv.Rows(i).Cells("樣品流水號二").Value &
1604
                              "','" & 內裡_dgv.Rows(i).Cells("樣品流水號三").Value &
1607
                              "','" & 內裡_dgv.Rows(i).Cells("樣品流水號三").Value &
1605
                             "',N'" & 內裡_dgv.Rows(i).Cells("Item_N").Value &
1608
                             "',N'" & 內裡_dgv.Rows(i).Cells("Item_N").Value &
1606
                             "',N'" & 內裡_dgv.Rows(i).Cells("內容").Value &
1609
                             "',N'" & 內裡_dgv.Rows(i).Cells("內容").Value &
1607
                             "',N'" & 內裡_dgv.Rows(i).Cells("Factory").Value &
1610
                             "',N'" & 內裡_dgv.Rows(i).Cells("Factory").Value &
1608
                              "','" & 內裡_dgv.Rows(i).Cells("樣品流水號").Value & "')"
1611
                              "','" & 內裡_dgv.Rows(i).Cells("樣品流水號").Value & "')"
1609
-                CmdSet_For_dr() : conn.Close()
1610
-            Next i
1611
-        End If
1612
-        If 底部_dgv.Rows.Count > 0 Then
1613
-            For i = 0 To 底部_dgv.Rows.Count - 1
1614
-                ConnOpen()
1615
-                SQL1 = "INSERT INTO 確認樣品單明細表 (樣品流水號二, 樣品流水號三, 細項, 內容, 廠商, 樣品流水號) " &
1612
+                    CmdSet_For_dr() : conn.Close()
1613
+                Next i
1614
+            End If
1615
+            If 底部_dgv.Rows.Count > 0 Then
1616
+                For i = 0 To 底部_dgv.Rows.Count - 1
1617
+                    ConnOpen()
1618
+                    SQL1 = "INSERT INTO 確認樣品單明細表 (樣品流水號二, 樣品流水號三, 細項, 內容, 廠商, 樣品流水號) " &
1616
                        "VALUES ('" & 底部_dgv.Rows(i).Cells("樣品流水號二").Value &
1619
                        "VALUES ('" & 底部_dgv.Rows(i).Cells("樣品流水號二").Value &
1617
                              "','" & 底部_dgv.Rows(i).Cells("樣品流水號三").Value &
1620
                              "','" & 底部_dgv.Rows(i).Cells("樣品流水號三").Value &
1618
                             "',N'" & 底部_dgv.Rows(i).Cells("Item_N").Value &
1621
                             "',N'" & 底部_dgv.Rows(i).Cells("Item_N").Value &
1619
                             "',N'" & 底部_dgv.Rows(i).Cells("內容").Value &
1622
                             "',N'" & 底部_dgv.Rows(i).Cells("內容").Value &
1620
                             "',N'" & 底部_dgv.Rows(i).Cells("Factory").Value &
1623
                             "',N'" & 底部_dgv.Rows(i).Cells("Factory").Value &
1621
                              "','" & 底部_dgv.Rows(i).Cells("樣品流水號").Value & "')"
1624
                              "','" & 底部_dgv.Rows(i).Cells("樣品流水號").Value & "')"
1622
-                CmdSet_For_dr() : conn.Close()
1623
-            Next i
1624
-        End If
1625
-        If 飾物_dgv.Rows.Count > 0 Then
1626
-            For i = 0 To 飾物_dgv.Rows.Count - 1
1627
-                ConnOpen()
1628
-                SQL1 = "INSERT INTO 確認樣品單明細表 (樣品流水號二, 樣品流水號三, 細項, 內容, 廠商, 樣品流水號) " &
1625
+                    CmdSet_For_dr() : conn.Close()
1626
+                Next i
1627
+            End If
1628
+            If 飾物_dgv.Rows.Count > 0 Then
1629
+                For i = 0 To 飾物_dgv.Rows.Count - 1
1630
+                    ConnOpen()
1631
+                    SQL1 = "INSERT INTO 確認樣品單明細表 (樣品流水號二, 樣品流水號三, 細項, 內容, 廠商, 樣品流水號) " &
1629
                        "VALUES ('" & 飾物_dgv.Rows(i).Cells("樣品流水號二").Value &
1632
                        "VALUES ('" & 飾物_dgv.Rows(i).Cells("樣品流水號二").Value &
1630
                              "','" & 飾物_dgv.Rows(i).Cells("樣品流水號三").Value &
1633
                              "','" & 飾物_dgv.Rows(i).Cells("樣品流水號三").Value &
1631
                             "',N'" & 飾物_dgv.Rows(i).Cells("Item_N").Value &
1634
                             "',N'" & 飾物_dgv.Rows(i).Cells("Item_N").Value &
1632
                             "',N'" & 飾物_dgv.Rows(i).Cells("內容").Value &
1635
                             "',N'" & 飾物_dgv.Rows(i).Cells("內容").Value &
1633
                             "',N'" & 飾物_dgv.Rows(i).Cells("Factory").Value &
1636
                             "',N'" & 飾物_dgv.Rows(i).Cells("Factory").Value &
1634
                              "','" & 飾物_dgv.Rows(i).Cells("樣品流水號").Value & "')"
1637
                              "','" & 飾物_dgv.Rows(i).Cells("樣品流水號").Value & "')"
1635
-                CmdSet_For_dr() : conn.Close()
1636
-            Next i
1638
+                    CmdSet_For_dr() : conn.Close()
1639
+                Next i
1640
+            End If
1641
+            ConnOpen()
1642
+            SQL1 = "DELETE FROM 確認樣品單抬頭暫存檔 WHERE (樣品流水號 = '" & 樣品單流水號變數1 & "')"
1643
+            cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : conn.Close()
1644
+            ConnOpen()
1645
+            SQL1 = "DELETE FROM 確認樣品單控制表暫存檔 WHERE (樣品流水號 = '" & 樣品單流水號變數1 & "')"
1646
+            cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : conn.Close()
1647
+            ConnOpen()
1648
+            SQL1 = "DELETE FROM 確認樣品單明細表暫存檔 WHERE (樣品流水號 = '" & 樣品單流水號變數1 & "')"
1649
+            cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : conn.Close()
1650
+            暫存模式 = False
1651
+            階段_cb.Text = QA
1652
+            Set_格式設定() : Set_確認樣品清單() : Set_grid() : Set_再次導入清單()
1653
+            列印用SQL = TextBox3.Text
1637
         End If
1654
         End If
1638
-        ConnOpen()
1639
-        SQL1 = "DELETE FROM 確認樣品單抬頭暫存檔 WHERE (樣品流水號 = '" & 樣品單流水號變數1 & "')"
1640
-        cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : conn.Close()
1641
-        ConnOpen()
1642
-        SQL1 = "DELETE FROM 確認樣品單控制表暫存檔 WHERE (樣品流水號 = '" & 樣品單流水號變數1 & "')"
1643
-        cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : conn.Close()
1644
-        ConnOpen()
1645
-        SQL1 = "DELETE FROM 確認樣品單明細表暫存檔 WHERE (樣品流水號 = '" & 樣品單流水號變數1 & "')"
1646
-        cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : conn.Close()
1647
-        暫存模式 = False
1648
-        ComboBox8.Text = QA
1649
-        Set_格式設定() : Set_確認樣品清單() : Set_grid() : Set_再次導入清單()
1650
-        列印用SQL = TextBox3.Text
1651
     End Sub
1655
     End Sub
1652
-
1653
     Private Sub Button34_Click(sender As Object, e As EventArgs) Handles 樣品單存檔_bt.Click
1656
     Private Sub Button34_Click(sender As Object, e As EventArgs) Handles 樣品單存檔_bt.Click
1654
-        If ComboBox1.Text = "" Or ComboBox2.Text = "" Or ComboBox3.Text = "" Or ComboBox4.Text = "" Or ComboBox5.Text = "" Or ComboBox6.Text = "" Or ComboBox7.Text = "" Or ComboBox8.Text = "" Then
1657
+        If ComboBox1.Text = "" Or ComboBox2.Text = "" Or ComboBox3.Text = "" Or ComboBox4.Text = "" Or ComboBox5.Text = "" Or ComboBox6.Text = "" Or ComboBox7.Text = "" Or 階段_cb.Text = "" Then
1655
             MsgBox("抬頭資料有空格,請重新選擇樣品單")
1658
             MsgBox("抬頭資料有空格,請重新選擇樣品單")
1656
         Else
1659
         Else
1657
             If CheckBox8.Checked = True Then : ASD = "D"
1660
             If CheckBox8.Checked = True Then : ASD = "D"
1663
             SQL1 = "UPDATE 確認樣品單抬頭 SET 品牌 = '" & ComboBox1.Text & "', 季節 = '" & ComboBox2.Text & "', 工廠 = '" & ComboBox3.Text & "', 楦頭 = '" & ComboBox4.Text & "', " &
1666
             SQL1 = "UPDATE 確認樣品單抬頭 SET 品牌 = '" & ComboBox1.Text & "', 季節 = '" & ComboBox2.Text & "', 工廠 = '" & ComboBox3.Text & "', 楦頭 = '" & ComboBox4.Text & "', " &
1664
                    "Construction = '" & ComboBox5.Text & "', 型體名 = '" & ComboBox6.Text & "', 型體號碼 = '" & ComboBox7.Text & "', 内里印刷 = N'" & TextBox2.Text & "', 中文樣品單產地標 = '" & TextBox4.Text & "', " &
1667
                    "Construction = '" & ComboBox5.Text & "', 型體名 = '" & ComboBox6.Text & "', 型體號碼 = '" & ComboBox7.Text & "', 内里印刷 = N'" & TextBox2.Text & "', 中文樣品單產地標 = '" & TextBox4.Text & "', " &
1665
                    "中文樣品單鞋圖 = '" & TextBox5.Text & "', 新舊形體 = '" & CheckBox1.Checked & "', 舊型體季別 = N'" & TextBox1.Text & "', 日期 = '" & Format(DateTimePicker1.Value, "yyyy/MM/dd") & "', " &
1668
                    "中文樣品單鞋圖 = '" & TextBox5.Text & "', 新舊形體 = '" & CheckBox1.Checked & "', 舊型體季別 = N'" & TextBox1.Text & "', 日期 = '" & Format(DateTimePicker1.Value, "yyyy/MM/dd") & "', " &
1666
-                   "中文樣品單中底LOGO = '" & TextBox10.Text & "', 中文樣品單其他LOGO = '" & TextBox17.Text & "', 階段 = '" & ComboBox8.Text & "', DEVELOPER = N'" & TextBox18.Text & "' " &
1669
+                   "中文樣品單中底LOGO = '" & TextBox10.Text & "', 中文樣品單其他LOGO = '" & TextBox17.Text & "', 階段 = '" & 階段_cb.Text & "', DEVELOPER = N'" & TextBox18.Text & "' " &
1667
                    "WHERE 樣品流水號 LIKE '" & TextBox3.Text & "'"
1670
                    "WHERE 樣品流水號 LIKE '" & TextBox3.Text & "'"
1668
             CmdSet_For_dr() : conn.Close()
1671
             CmdSet_For_dr() : conn.Close()
1669
             For i = 0 To 顏色_dgv.Rows.Count - 1
1672
             For i = 0 To 顏色_dgv.Rows.Count - 1
2020
         End If
2023
         End If
2021
     End Sub
2024
     End Sub
2022
     Private Sub Button38_Click(sender As Object, e As EventArgs) Handles 刷新資料_bt.Click
2025
     Private Sub Button38_Click(sender As Object, e As EventArgs) Handles 刷新資料_bt.Click
2023
-        If 編輯模式_bt.Enabled = False Then
2024
-            ConnOpen()
2025
-            SQL1 = "UPDATE 確認樣品單抬頭 SET 品牌 = '" & ComboBox1.Text & "', 季節 = '" & ComboBox2.Text & "', 工廠 = '" & ComboBox3.Text & "', 楦頭 = '" & ComboBox4.Text & "', " &
2026
-                   "Construction = '" & ComboBox5.Text & "', 型體名 = '" & ComboBox6.Text & "', 型體號碼 = '" & ComboBox7.Text & "', 内里印刷 = N'" & TextBox2.Text & "', 中文樣品單產地標 = '" & TextBox4.Text & "', " &
2027
-                   "中文樣品單鞋圖 = '" & TextBox5.Text & "', 新舊形體 = '" & CheckBox1.Checked & "', 舊型體季別 = N'" & TextBox1.Text & "', 日期 = '" & Format(DateTimePicker1.Value, "yyyy/MM/dd") & "', " &
2028
-                   "中文樣品單中底LOGO = '" & TextBox10.Text & "', 中文樣品單其他LOGO = '" & TextBox17.Text & "', 階段 = '" & ComboBox8.Text & "', DEVELOPER = N'" & TextBox18.Text & "' " &
2029
-                   "WHERE 樣品流水號 LIKE '" & TextBox3.Text & "'"
2030
-            CmdSet_For_dr() : conn.Close()
2031
-            編輯模式存檔()
2032
-            Set_再次導入清單()
2033
-        ElseIf 編輯模式_bt.Enabled = True Then
2034
-            Set_再次導入清單()
2026
+        If 階段_cb.Text = "" Then
2027
+            MsgBox("階段選項不可空白")
2028
+        Else
2029
+            If 編輯模式_bt.Enabled = False Then
2030
+                ConnOpen()
2031
+                SQL1 = "UPDATE 確認樣品單抬頭 SET 品牌 = '" & ComboBox1.Text & "', 季節 = '" & ComboBox2.Text & "', 工廠 = '" & ComboBox3.Text & "', 楦頭 = '" & ComboBox4.Text & "', " &
2032
+                       "Construction = '" & ComboBox5.Text & "', 型體名 = '" & ComboBox6.Text & "', 型體號碼 = '" & ComboBox7.Text & "', 内里印刷 = N'" & TextBox2.Text & "', 中文樣品單產地標 = '" & TextBox4.Text & "', " &
2033
+                       "中文樣品單鞋圖 = '" & TextBox5.Text & "', 新舊形體 = '" & CheckBox1.Checked & "', 舊型體季別 = N'" & TextBox1.Text & "', 日期 = '" & Format(DateTimePicker1.Value, "yyyy/MM/dd") & "', " &
2034
+                       "中文樣品單中底LOGO = '" & TextBox10.Text & "', 中文樣品單其他LOGO = '" & TextBox17.Text & "', 階段 = '" & 階段_cb.Text & "', DEVELOPER = N'" & TextBox18.Text & "' " &
2035
+                       "WHERE 樣品流水號 LIKE '" & TextBox3.Text & "'"
2036
+                CmdSet_For_dr() : conn.Close()
2037
+                編輯模式存檔()
2038
+                Set_再次導入清單()
2039
+            ElseIf 編輯模式_bt.Enabled = True Then
2040
+                Set_再次導入清單()
2041
+            End If
2035
         End If
2042
         End If
2036
     End Sub
2043
     End Sub
2037
     Private Sub Button40_Click(sender As Object, e As EventArgs) Handles 調用_bt.Click
2044
     Private Sub Button40_Click(sender As Object, e As EventArgs) Handles 調用_bt.Click
2281
             CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = True
2288
             CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = True
2282
         End If
2289
         End If
2283
     End Sub
2290
     End Sub
2284
-    Private Sub ComboBox8_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox8.SelectedIndexChanged
2285
-        If ComboBox8.Text = "ILR" Then : ComboBox9.Text = "ILR"
2286
-        ElseIf ComboBox8.Text = "FLR" Then : ComboBox9.Text = "FLR"
2287
-        ElseIf ComboBox8.Text = "SMS" Then : ComboBox9.Text = "SS"
2288
-        ElseIf ComboBox8.Text = "SMU" Or ComboBox8.Text = "SMU" Then : ComboBox9.Text = ""
2289
-        ElseIf ComboBox8.Text = "Proto" Then : ComboBox9.Text = "Proto"
2290
-        ElseIf ComboBox8.Text = "Line" Then : ComboBox9.Text = "Line"
2291
-        ElseIf ComboBox8.Text = "Canada" Then : ComboBox9.Text = "Canada"
2292
-        End If
2293
-        If ComboBox8.Text = "ILR" Or ComboBox8.Text = "FLR" Then : CheckBox8.Checked = True : CheckBox7.Checked = False : CheckBox6.Checked = False
2294
-        ElseIf ComboBox8.Text = "CFM" Then : CheckBox8.Checked = False : CheckBox7.Checked = True : CheckBox6.Checked = False
2295
-        ElseIf ComboBox8.Text = "SMS" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = True
2296
-        ElseIf ComboBox8.Text = "SMU" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
2297
-        ElseIf ComboBox8.Text = "Proto" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
2298
-        ElseIf ComboBox8.Text = "Line" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
2299
-        ElseIf ComboBox8.Text = "Canada" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
2291
+    Private Sub ComboBox8_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 階段_cb.SelectedIndexChanged
2292
+        If 階段_cb.Text = "ILR" Then : ComboBox9.Text = "ILR"
2293
+        ElseIf 階段_cb.Text = "FLR" Then : ComboBox9.Text = "FLR"
2294
+        ElseIf 階段_cb.Text = "SMS" Then : ComboBox9.Text = "SS"
2295
+        ElseIf 階段_cb.Text = "SMU" Or 階段_cb.Text = "SMU" Then : ComboBox9.Text = ""
2296
+        ElseIf 階段_cb.Text = "Proto" Then : ComboBox9.Text = "Proto"
2297
+        ElseIf 階段_cb.Text = "Line" Then : ComboBox9.Text = "Line"
2298
+        ElseIf 階段_cb.Text = "Canada" Then : ComboBox9.Text = "Canada"
2299
+        End If
2300
+        If 階段_cb.Text = "ILR" Or 階段_cb.Text = "FLR" Then : CheckBox8.Checked = True : CheckBox7.Checked = False : CheckBox6.Checked = False
2301
+        ElseIf 階段_cb.Text = "CFM" Then : CheckBox8.Checked = False : CheckBox7.Checked = True : CheckBox6.Checked = False
2302
+        ElseIf 階段_cb.Text = "SMS" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = True
2303
+        ElseIf 階段_cb.Text = "SMU" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
2304
+        ElseIf 階段_cb.Text = "Proto" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
2305
+        ElseIf 階段_cb.Text = "Line" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
2306
+        ElseIf 階段_cb.Text = "Canada" Then : CheckBox8.Checked = False : CheckBox7.Checked = False : CheckBox6.Checked = False
2300
         End If
2307
         End If
2301
         TextBox2.Focus()
2308
         TextBox2.Focus()
2302
     End Sub
2309
     End Sub

+ 17
- 5
TENDEN-MES-SYS/量產訂單管理/訂單執行資訊輸入.Designer.vb Ver fichero

49
         Me.資料庫選擇2_bt = New System.Windows.Forms.Button()
49
         Me.資料庫選擇2_bt = New System.Windows.Forms.Button()
50
         Me.資料庫選擇1_bt = New System.Windows.Forms.Button()
50
         Me.資料庫選擇1_bt = New System.Windows.Forms.Button()
51
         Me.Label20 = New System.Windows.Forms.Label()
51
         Me.Label20 = New System.Windows.Forms.Label()
52
+        Me.EXCEL檔案導入1_bt = New System.Windows.Forms.Button()
52
         CType(Me.控制表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
53
         CType(Me.控制表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
53
         CType(Me.圖片庫_pb, System.ComponentModel.ISupportInitialize).BeginInit()
54
         CType(Me.圖片庫_pb, System.ComponentModel.ISupportInitialize).BeginInit()
54
         Me.SuspendLayout()
55
         Me.SuspendLayout()
236
         '
237
         '
237
         'EXCEL檔案導入_bt
238
         'EXCEL檔案導入_bt
238
         '
239
         '
239
-        Me.EXCEL檔案導入_bt.Location = New System.Drawing.Point(752, 131)
240
+        Me.EXCEL檔案導入_bt.Location = New System.Drawing.Point(752, 97)
240
         Me.EXCEL檔案導入_bt.Name = "EXCEL檔案導入_bt"
241
         Me.EXCEL檔案導入_bt.Name = "EXCEL檔案導入_bt"
241
         Me.EXCEL檔案導入_bt.Size = New System.Drawing.Size(346, 30)
242
         Me.EXCEL檔案導入_bt.Size = New System.Drawing.Size(346, 30)
242
         Me.EXCEL檔案導入_bt.TabIndex = 515
243
         Me.EXCEL檔案導入_bt.TabIndex = 515
243
-        Me.EXCEL檔案導入_bt.Text = "EXCEL檔案導入-力威訂單號匹配VIONIC訂單號"
244
+        Me.EXCEL檔案導入_bt.Text = "EXCEL檔案導入-依據力威訂單號匹配VIONIC訂單號"
244
         Me.EXCEL檔案導入_bt.UseVisualStyleBackColor = True
245
         Me.EXCEL檔案導入_bt.UseVisualStyleBackColor = True
245
         '
246
         '
246
         'ProgressBar2
247
         'ProgressBar2
257
         '
258
         '
258
         '資料庫選擇2_bt
259
         '資料庫選擇2_bt
259
         '
260
         '
260
-        Me.資料庫選擇2_bt.Location = New System.Drawing.Point(870, 97)
261
+        Me.資料庫選擇2_bt.Location = New System.Drawing.Point(870, 63)
261
         Me.資料庫選擇2_bt.Name = "資料庫選擇2_bt"
262
         Me.資料庫選擇2_bt.Name = "資料庫選擇2_bt"
262
         Me.資料庫選擇2_bt.Size = New System.Drawing.Size(75, 30)
263
         Me.資料庫選擇2_bt.Size = New System.Drawing.Size(75, 30)
263
         Me.資料庫選擇2_bt.TabIndex = 562
264
         Me.資料庫選擇2_bt.TabIndex = 562
266
         '
267
         '
267
         '資料庫選擇1_bt
268
         '資料庫選擇1_bt
268
         '
269
         '
269
-        Me.資料庫選擇1_bt.Location = New System.Drawing.Point(792, 97)
270
+        Me.資料庫選擇1_bt.Location = New System.Drawing.Point(792, 63)
270
         Me.資料庫選擇1_bt.Name = "資料庫選擇1_bt"
271
         Me.資料庫選擇1_bt.Name = "資料庫選擇1_bt"
271
         Me.資料庫選擇1_bt.Size = New System.Drawing.Size(75, 30)
272
         Me.資料庫選擇1_bt.Size = New System.Drawing.Size(75, 30)
272
         Me.資料庫選擇1_bt.TabIndex = 561
273
         Me.資料庫選擇1_bt.TabIndex = 561
276
         'Label20
277
         'Label20
277
         '
278
         '
278
         Me.Label20.AutoSize = True
279
         Me.Label20.AutoSize = True
279
-        Me.Label20.Location = New System.Drawing.Point(749, 96)
280
+        Me.Label20.Location = New System.Drawing.Point(749, 62)
280
         Me.Label20.Name = "Label20"
281
         Me.Label20.Name = "Label20"
281
         Me.Label20.Size = New System.Drawing.Size(44, 32)
282
         Me.Label20.Size = New System.Drawing.Size(44, 32)
282
         Me.Label20.TabIndex = 560
283
         Me.Label20.TabIndex = 560
283
         Me.Label20.Text = "選擇訂" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "單品牌"
284
         Me.Label20.Text = "選擇訂" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "單品牌"
284
         '
285
         '
286
+        'EXCEL檔案導入1_bt
287
+        '
288
+        Me.EXCEL檔案導入1_bt.Location = New System.Drawing.Point(752, 129)
289
+        Me.EXCEL檔案導入1_bt.Name = "EXCEL檔案導入1_bt"
290
+        Me.EXCEL檔案導入1_bt.Size = New System.Drawing.Size(346, 30)
291
+        Me.EXCEL檔案導入1_bt.TabIndex = 563
292
+        Me.EXCEL檔案導入1_bt.Text = "EXCEL檔案導入-依據力威訂單號更新交期" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10)
293
+        Me.EXCEL檔案導入1_bt.UseVisualStyleBackColor = True
294
+        '
285
         '訂單執行資訊輸入
295
         '訂單執行資訊輸入
286
         '
296
         '
287
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
297
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
288
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
298
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
289
         Me.ClientSize = New System.Drawing.Size(1914, 991)
299
         Me.ClientSize = New System.Drawing.Size(1914, 991)
300
+        Me.Controls.Add(Me.EXCEL檔案導入1_bt)
290
         Me.Controls.Add(Me.資料庫選擇2_bt)
301
         Me.Controls.Add(Me.資料庫選擇2_bt)
291
         Me.Controls.Add(Me.資料庫選擇1_bt)
302
         Me.Controls.Add(Me.資料庫選擇1_bt)
292
         Me.Controls.Add(Me.Label20)
303
         Me.Controls.Add(Me.Label20)
348
     Friend WithEvents 資料庫選擇2_bt As Button
359
     Friend WithEvents 資料庫選擇2_bt As Button
349
     Friend WithEvents 資料庫選擇1_bt As Button
360
     Friend WithEvents 資料庫選擇1_bt As Button
350
     Friend WithEvents Label20 As Label
361
     Friend WithEvents Label20 As Label
362
+    Friend WithEvents EXCEL檔案導入1_bt As Button
351
 End Class
363
 End Class
352
 
364
 

+ 37
- 0
TENDEN-MES-SYS/量產訂單管理/訂單執行資訊輸入.vb Ver fichero

239
         分頁一_bt.Enabled = True : 分頁二_bt.Enabled = True : 分頁三_bt.Enabled = False
239
         分頁一_bt.Enabled = True : 分頁二_bt.Enabled = True : 分頁三_bt.Enabled = False
240
         Set_grid()
240
         Set_grid()
241
     End Sub
241
     End Sub
242
+    Private Sub EXCEL檔案導入1_bt_Click(sender As Object, e As EventArgs) Handles EXCEL檔案導入1_bt.Click
243
+        If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
244
+            file_name = OpenFileDialog1.FileName
245
+            xlApp = CreateObject("Excel.Application")
246
+            xlApp.DisplayAlerts = False
247
+            xlApp.Visible = True
248
+            xlApp.Workbooks.Open(file_name)
249
+            xlSheet = xlApp.Worksheets(1)
250
+            xlSheet.Activate()
251
+            xlApp.Visible = False
252
+            Dim 次數 As Integer = 0
253
+            For YY As Integer = 1 To 3000
254
+                資料數1 = 3000 : 進度條1()
255
+                If IsNothing(xlSheet.Cells(YY, 1).value) Then
256
+                    Exit For
257
+                Else
258
+                    conn.Close()
259
+                    ConnOpen()
260
+                    SQL1 = "SELECT 客戶訂單號 FROM " & 訂單資料表(1) & " WHERE 力威訂單號 LIKE '" & xlSheet.Cells(YY, 1).value & "'"
261
+                    CmdSet_For_dr()
262
+                    If dr.Read() Then
263
+                        conn.Close()
264
+                        ConnOpen()
265
+                        SQL1 = "UPDATE " & 訂單資料表(1) & " SET 客戶交期 = '" & xlSheet.Cells(YY, 2).value & "', PO_S_Date = '" & xlSheet.Cells(YY, 2).value & "', 
266
+                                                             Requested_XF = '" & xlSheet.Cells(YY, 2).value & "', Confirm_XF = '" & xlSheet.Cells(YY, 2).value & "' 
267
+                                WHERE 力威訂單號 LIKE '" & xlSheet.Cells(YY, 1).value & "'"
268
+                        CmdSet_For_dr() : conn.Close() : 次數 += 1
269
+                    End If : conn.Close()
270
+                End If
271
+            Next : ProgressBar2.Value = 0 : 最終數1 = 0
272
+            MsgBox("已修改  " & 次數 & "  次!")
273
+            xlApp.Quit() : xlApp = Nothing
274
+        ElseIf OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.No Then
275
+        End If
276
+    End Sub
242
     Private Sub EXCEL檔案導入_bt_Click(sender As Object, e As EventArgs) Handles EXCEL檔案導入_bt.Click
277
     Private Sub EXCEL檔案導入_bt_Click(sender As Object, e As EventArgs) Handles EXCEL檔案導入_bt.Click
243
         If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
278
         If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
244
             file_name = OpenFileDialog1.FileName
279
             file_name = OpenFileDialog1.FileName
280
     Private Sub 資料庫選擇2_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇2_bt.Click
315
     Private Sub 資料庫選擇2_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇2_bt.Click
281
         SQL_訂單資料表選擇_非VIONIC() : Set_清單() : Set_grid()
316
         SQL_訂單資料表選擇_非VIONIC() : Set_清單() : Set_grid()
282
     End Sub
317
     End Sub
318
+
319
+
283
 End Class
320
 End Class

+ 43
- 43
TENDEN-MES-SYS/量產訂單管理/訂單控制表.Designer.vb Ver fichero

89
         Me.CheckBox17 = New System.Windows.Forms.CheckBox()
89
         Me.CheckBox17 = New System.Windows.Forms.CheckBox()
90
         Me.天盾訂單號_tb = New System.Windows.Forms.TextBox()
90
         Me.天盾訂單號_tb = New System.Windows.Forms.TextBox()
91
         Me.TextBox7 = New System.Windows.Forms.TextBox()
91
         Me.TextBox7 = New System.Windows.Forms.TextBox()
92
-        Me.CheckBox23 = New System.Windows.Forms.CheckBox()
92
+        Me.不使用條件_ch = New System.Windows.Forms.CheckBox()
93
         Me.Label58 = New System.Windows.Forms.Label()
93
         Me.Label58 = New System.Windows.Forms.Label()
94
         Me.TextBox8 = New System.Windows.Forms.TextBox()
94
         Me.TextBox8 = New System.Windows.Forms.TextBox()
95
         Me.TextBox9 = New System.Windows.Forms.TextBox()
95
         Me.TextBox9 = New System.Windows.Forms.TextBox()
107
         Me.Button22 = New System.Windows.Forms.Button()
107
         Me.Button22 = New System.Windows.Forms.Button()
108
         Me.Button28 = New System.Windows.Forms.Button()
108
         Me.Button28 = New System.Windows.Forms.Button()
109
         Me.新增_bt = New System.Windows.Forms.Button()
109
         Me.新增_bt = New System.Windows.Forms.Button()
110
-        Me.Button30 = New System.Windows.Forms.Button()
110
+        Me.開啟訂單明細表_bt = New System.Windows.Forms.Button()
111
         Me.Button31 = New System.Windows.Forms.Button()
111
         Me.Button31 = New System.Windows.Forms.Button()
112
         Me.Label62 = New System.Windows.Forms.Label()
112
         Me.Label62 = New System.Windows.Forms.Label()
113
         Me.TextBox11 = New System.Windows.Forms.TextBox()
113
         Me.TextBox11 = New System.Windows.Forms.TextBox()
236
         Me.BB05_lb = New System.Windows.Forms.Label()
236
         Me.BB05_lb = New System.Windows.Forms.Label()
237
         Me.BB04_lb = New System.Windows.Forms.Label()
237
         Me.BB04_lb = New System.Windows.Forms.Label()
238
         Me.裝箱控制表_dgv = New System.Windows.Forms.DataGridView()
238
         Me.裝箱控制表_dgv = New System.Windows.Forms.DataGridView()
239
-        Me.裝箱明細_dgv = New System.Windows.Forms.DataGridView()
240
         Me.明細表_dgv = New System.Windows.Forms.DataGridView()
239
         Me.明細表_dgv = New System.Windows.Forms.DataGridView()
240
+        Me.裝箱明細_dgv = New System.Windows.Forms.DataGridView()
241
         Me.訂單明細_bt = New System.Windows.Forms.Button()
241
         Me.訂單明細_bt = New System.Windows.Forms.Button()
242
         Me.裝箱明細_bt = New System.Windows.Forms.Button()
242
         Me.裝箱明細_bt = New System.Windows.Forms.Button()
243
         Me.裝箱資訊_bt = New System.Windows.Forms.Button()
243
         Me.裝箱資訊_bt = New System.Windows.Forms.Button()
253
         Me.SplitContainer1.SuspendLayout()
253
         Me.SplitContainer1.SuspendLayout()
254
         Me.資訊_gb.SuspendLayout()
254
         Me.資訊_gb.SuspendLayout()
255
         CType(Me.裝箱控制表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
255
         CType(Me.裝箱控制表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
256
-        CType(Me.裝箱明細_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
257
         CType(Me.明細表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
256
         CType(Me.明細表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
257
+        CType(Me.裝箱明細_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
258
         Me.SuspendLayout()
258
         Me.SuspendLayout()
259
         '
259
         '
260
         '控制表_dgv
260
         '控制表_dgv
803
         Me.TextBox7.Size = New System.Drawing.Size(26, 22)
803
         Me.TextBox7.Size = New System.Drawing.Size(26, 22)
804
         Me.TextBox7.TabIndex = 295
804
         Me.TextBox7.TabIndex = 295
805
         '
805
         '
806
-        'CheckBox23
806
+        '不使用條件_ch
807
         '
807
         '
808
-        Me.CheckBox23.AutoSize = True
809
-        Me.CheckBox23.Location = New System.Drawing.Point(12, 8)
810
-        Me.CheckBox23.Name = "CheckBox23"
811
-        Me.CheckBox23.Size = New System.Drawing.Size(15, 14)
812
-        Me.CheckBox23.TabIndex = 296
813
-        Me.CheckBox23.UseVisualStyleBackColor = True
808
+        Me.不使用條件_ch.AutoSize = True
809
+        Me.不使用條件_ch.Location = New System.Drawing.Point(12, 8)
810
+        Me.不使用條件_ch.Name = "不使用條件_ch"
811
+        Me.不使用條件_ch.Size = New System.Drawing.Size(15, 14)
812
+        Me.不使用條件_ch.TabIndex = 296
813
+        Me.不使用條件_ch.UseVisualStyleBackColor = True
814
         '
814
         '
815
         'Label58
815
         'Label58
816
         '
816
         '
979
         Me.新增_bt.Text = "新增"
979
         Me.新增_bt.Text = "新增"
980
         Me.新增_bt.UseVisualStyleBackColor = True
980
         Me.新增_bt.UseVisualStyleBackColor = True
981
         '
981
         '
982
-        'Button30
982
+        '開啟訂單明細表_bt
983
         '
983
         '
984
-        Me.Button30.ForeColor = System.Drawing.Color.Black
985
-        Me.Button30.Location = New System.Drawing.Point(547, 103)
986
-        Me.Button30.Name = "Button30"
987
-        Me.Button30.Size = New System.Drawing.Size(73, 43)
988
-        Me.Button30.TabIndex = 326
989
-        Me.Button30.Text = "開啟訂單明細表"
990
-        Me.Button30.UseVisualStyleBackColor = True
984
+        Me.開啟訂單明細表_bt.ForeColor = System.Drawing.Color.Black
985
+        Me.開啟訂單明細表_bt.Location = New System.Drawing.Point(547, 103)
986
+        Me.開啟訂單明細表_bt.Name = "開啟訂單明細表_bt"
987
+        Me.開啟訂單明細表_bt.Size = New System.Drawing.Size(73, 43)
988
+        Me.開啟訂單明細表_bt.TabIndex = 326
989
+        Me.開啟訂單明細表_bt.Text = "開啟訂單明細表"
990
+        Me.開啟訂單明細表_bt.UseVisualStyleBackColor = True
991
         '
991
         '
992
         'Button31
992
         'Button31
993
         '
993
         '
1690
         Me.SplitContainer1.Panel2.AutoScroll = True
1690
         Me.SplitContainer1.Panel2.AutoScroll = True
1691
         Me.SplitContainer1.Panel2.Controls.Add(Me.資訊_gb)
1691
         Me.SplitContainer1.Panel2.Controls.Add(Me.資訊_gb)
1692
         Me.SplitContainer1.Panel2.Controls.Add(Me.裝箱控制表_dgv)
1692
         Me.SplitContainer1.Panel2.Controls.Add(Me.裝箱控制表_dgv)
1693
-        Me.SplitContainer1.Panel2.Controls.Add(Me.裝箱明細_dgv)
1694
         Me.SplitContainer1.Panel2.Controls.Add(Me.明細表_dgv)
1693
         Me.SplitContainer1.Panel2.Controls.Add(Me.明細表_dgv)
1694
+        Me.SplitContainer1.Panel2.Controls.Add(Me.裝箱明細_dgv)
1695
         Me.SplitContainer1.Size = New System.Drawing.Size(1900, 695)
1695
         Me.SplitContainer1.Size = New System.Drawing.Size(1900, 695)
1696
         Me.SplitContainer1.SplitterDistance = 454
1696
         Me.SplitContainer1.SplitterDistance = 454
1697
         Me.SplitContainer1.TabIndex = 753
1697
         Me.SplitContainer1.TabIndex = 753
2236
         Me.裝箱控制表_dgv.Size = New System.Drawing.Size(465, 229)
2236
         Me.裝箱控制表_dgv.Size = New System.Drawing.Size(465, 229)
2237
         Me.裝箱控制表_dgv.TabIndex = 3
2237
         Me.裝箱控制表_dgv.TabIndex = 3
2238
         '
2238
         '
2239
-        '裝箱明細_dgv
2240
-        '
2241
-        DataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
2242
-        Me.裝箱明細_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4
2243
-        Me.裝箱明細_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2244
-            Or System.Windows.Forms.AnchorStyles.Left) _
2245
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2246
-        Me.裝箱明細_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
2247
-        Me.裝箱明細_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
2248
-        Me.裝箱明細_dgv.Location = New System.Drawing.Point(475, 2)
2249
-        Me.裝箱明細_dgv.Name = "裝箱明細_dgv"
2250
-        Me.裝箱明細_dgv.RowHeadersWidth = 5
2251
-        Me.裝箱明細_dgv.RowTemplate.Height = 24
2252
-        Me.裝箱明細_dgv.Size = New System.Drawing.Size(1418, 229)
2253
-        Me.裝箱明細_dgv.TabIndex = 4
2254
-        '
2255
         '明細表_dgv
2239
         '明細表_dgv
2256
         '
2240
         '
2257
-        DataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
2258
-        Me.明細表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
2241
+        DataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
2242
+        Me.明細表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4
2259
         Me.明細表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2243
         Me.明細表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2260
             Or System.Windows.Forms.AnchorStyles.Left) _
2244
             Or System.Windows.Forms.AnchorStyles.Left) _
2261
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2245
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2268
         Me.明細表_dgv.Size = New System.Drawing.Size(1418, 229)
2252
         Me.明細表_dgv.Size = New System.Drawing.Size(1418, 229)
2269
         Me.明細表_dgv.TabIndex = 2
2253
         Me.明細表_dgv.TabIndex = 2
2270
         '
2254
         '
2255
+        '裝箱明細_dgv
2256
+        '
2257
+        DataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
2258
+        Me.裝箱明細_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
2259
+        Me.裝箱明細_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2260
+            Or System.Windows.Forms.AnchorStyles.Left) _
2261
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2262
+        Me.裝箱明細_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
2263
+        Me.裝箱明細_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
2264
+        Me.裝箱明細_dgv.Location = New System.Drawing.Point(475, 2)
2265
+        Me.裝箱明細_dgv.Name = "裝箱明細_dgv"
2266
+        Me.裝箱明細_dgv.RowHeadersWidth = 5
2267
+        Me.裝箱明細_dgv.RowTemplate.Height = 24
2268
+        Me.裝箱明細_dgv.Size = New System.Drawing.Size(1418, 229)
2269
+        Me.裝箱明細_dgv.TabIndex = 4
2270
+        '
2271
         '訂單明細_bt
2271
         '訂單明細_bt
2272
         '
2272
         '
2273
         Me.訂單明細_bt.Enabled = False
2273
         Me.訂單明細_bt.Enabled = False
2374
         Me.Controls.Add(Me.Label62)
2374
         Me.Controls.Add(Me.Label62)
2375
         Me.Controls.Add(Me.TextBox11)
2375
         Me.Controls.Add(Me.TextBox11)
2376
         Me.Controls.Add(Me.Button31)
2376
         Me.Controls.Add(Me.Button31)
2377
-        Me.Controls.Add(Me.Button30)
2377
+        Me.Controls.Add(Me.開啟訂單明細表_bt)
2378
         Me.Controls.Add(Me.Button28)
2378
         Me.Controls.Add(Me.Button28)
2379
         Me.Controls.Add(Me.Button22)
2379
         Me.Controls.Add(Me.Button22)
2380
         Me.Controls.Add(Me.Button14)
2380
         Me.Controls.Add(Me.Button14)
2387
         Me.Controls.Add(Me.TextBox9)
2387
         Me.Controls.Add(Me.TextBox9)
2388
         Me.Controls.Add(Me.TextBox8)
2388
         Me.Controls.Add(Me.TextBox8)
2389
         Me.Controls.Add(Me.Label58)
2389
         Me.Controls.Add(Me.Label58)
2390
-        Me.Controls.Add(Me.CheckBox23)
2390
+        Me.Controls.Add(Me.不使用條件_ch)
2391
         Me.Controls.Add(Me.TextBox7)
2391
         Me.Controls.Add(Me.TextBox7)
2392
         Me.Controls.Add(Me.CheckBox17)
2392
         Me.Controls.Add(Me.CheckBox17)
2393
         Me.Controls.Add(Me.CheckBox9)
2393
         Me.Controls.Add(Me.CheckBox9)
2467
         Me.資訊_gb.ResumeLayout(False)
2467
         Me.資訊_gb.ResumeLayout(False)
2468
         Me.資訊_gb.PerformLayout()
2468
         Me.資訊_gb.PerformLayout()
2469
         CType(Me.裝箱控制表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2469
         CType(Me.裝箱控制表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2470
-        CType(Me.裝箱明細_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2471
         CType(Me.明細表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2470
         CType(Me.明細表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2471
+        CType(Me.裝箱明細_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2472
         Me.ResumeLayout(False)
2472
         Me.ResumeLayout(False)
2473
         Me.PerformLayout()
2473
         Me.PerformLayout()
2474
 
2474
 
2535
     Friend WithEvents CheckBox17 As CheckBox
2535
     Friend WithEvents CheckBox17 As CheckBox
2536
     Friend WithEvents 天盾訂單號_tb As TextBox
2536
     Friend WithEvents 天盾訂單號_tb As TextBox
2537
     Friend WithEvents TextBox7 As TextBox
2537
     Friend WithEvents TextBox7 As TextBox
2538
-    Friend WithEvents CheckBox23 As CheckBox
2538
+    Friend WithEvents 不使用條件_ch As CheckBox
2539
     Friend WithEvents Label58 As Label
2539
     Friend WithEvents Label58 As Label
2540
     Friend WithEvents TextBox8 As TextBox
2540
     Friend WithEvents TextBox8 As TextBox
2541
     Friend WithEvents TextBox9 As TextBox
2541
     Friend WithEvents TextBox9 As TextBox
2553
     Friend WithEvents Button22 As Button
2553
     Friend WithEvents Button22 As Button
2554
     Friend WithEvents Button28 As Button
2554
     Friend WithEvents Button28 As Button
2555
     Friend WithEvents 新增_bt As Button
2555
     Friend WithEvents 新增_bt As Button
2556
-    Friend WithEvents Button30 As Button
2556
+    Friend WithEvents 開啟訂單明細表_bt As Button
2557
     Friend WithEvents Button31 As Button
2557
     Friend WithEvents Button31 As Button
2558
     Friend WithEvents Label62 As Label
2558
     Friend WithEvents Label62 As Label
2559
     Friend WithEvents TextBox11 As TextBox
2559
     Friend WithEvents TextBox11 As TextBox

+ 29
- 23
TENDEN-MES-SYS/量產訂單管理/訂單控制表.vb Ver fichero

40
     Private ReadOnly BB(9) As Boolean
40
     Private ReadOnly BB(9) As Boolean
41
     Dim aa As MsgBoxResult
41
     Dim aa As MsgBoxResult
42
     Private Sub SQL宣告()
42
     Private Sub SQL宣告()
43
-        SQL字串1 = "SELECT                訂單流水號,               年份季度,               客戶訂單號,            形體號,             顏色,                  楦型,                 訂單數量, " &
43
+        SQL字串1 = "SELECT                訂單流水號,               年份季度,               力威訂單號,            形體號,             顏色,                  楦型,                 訂單數量, " &
44
                                            "客戶交期,                   單價,                   總金額,              備註,         生產工廠,              訂單種類,             工廠回復交期, " &
44
                                            "客戶交期,                   單價,                   總金額,              備註,         生產工廠,              訂單種類,             工廠回復交期, " &
45
                                             "CFMSPEC,              CFMSAMPLE,                   TRIAL1,            TRIAL2,           TRIAL3,                TRIAL4,             包裝確認時間, " &
45
                                             "CFMSPEC,              CFMSAMPLE,                   TRIAL1,            TRIAL2,           TRIAL3,                TRIAL4,             包裝確認時間, " &
46
                                            "貼標時間,               裁斷時間,                 針車時間,          成型時間,         驗貨時間,            實際離廠日,               資料流水號, " &
46
                                            "貼標時間,               裁斷時間,                 針車時間,          成型時間,         驗貨時間,            實際離廠日,               資料流水號, " &
50
                                        "TRIAL3 AS T3,           TRIAL4 AS T4,          CFMSPEC AS TEST,              面料,             副料,                  中底,                     鞋墊, " &
50
                                        "TRIAL3 AS T3,           TRIAL4 AS T4,          CFMSPEC AS TEST,              面料,             副料,                  中底,                     鞋墊, " &
51
                                                "大底,                     跟,     包裝確認時間 AS 包裝,  裁斷時間 AS 裁斷, 針車時間 AS 針車,      成型時間 AS 成型,         驗貨時間 AS 驗貨, " &
51
                                                "大底,                     跟,     包裝確認時間 AS 包裝,  裁斷時間 AS 裁斷, 針車時間 AS 針車,      成型時間 AS 成型,         驗貨時間 AS 驗貨, " &
52
                                     "工廠進度表備註1,        工廠進度表備註2,             客戶包裝確認,      東莞業務備註,     驗貨報告圖片,              工廠確認,                 利威確認, 
52
                                     "工廠進度表備註1,        工廠進度表備註2,             客戶包裝確認,      東莞業務備註,     驗貨報告圖片,              工廠確認,                 利威確認, 
53
-                                              結關日,                SMS簽回,                  FRS簽回,     MASTER_SWATCH,       力威訂單號,             ProductID,                      UoM
53
+                                              結關日,                SMS簽回,                  FRS簽回,     MASTER_SWATCH,       客戶訂單號,             ProductID,                      UoM
54
                     FROM " & 訂單資料表(1) & ""
54
                     FROM " & 訂單資料表(1) & ""
55
     End Sub
55
     End Sub
56
     Private Sub Set_grid()
56
     Private Sub Set_grid()
169
     End Sub
169
     End Sub
170
     Private Sub Set_搜尋()
170
     Private Sub Set_搜尋()
171
         If CheckBox1.Checked = False And CheckBox2.Checked = False And CheckBox3.Checked = False And CheckBox4.Checked = False And CheckBox5.Checked = False And CheckBox6.Checked = False And
171
         If CheckBox1.Checked = False And CheckBox2.Checked = False And CheckBox3.Checked = False And CheckBox4.Checked = False And CheckBox5.Checked = False And CheckBox6.Checked = False And
172
-            CheckBox7.Checked = False And CheckBox8.Checked = False And CheckBox9.Checked = False And CheckBox17.Checked = False And CheckBox23.Checked = False Then
172
+            CheckBox7.Checked = False And CheckBox8.Checked = False And CheckBox9.Checked = False And CheckBox17.Checked = False And 不使用條件_ch.Checked = False Then
173
         Else
173
         Else
174
             Set_DGV1載入前設定()
174
             Set_DGV1載入前設定()
175
         End If
175
         End If
176
-        If CheckBox23.Checked = True Then
176
+        If 不使用條件_ch.Checked = True Then
177
             PA = InputBox("請輸入要查詢的資料")
177
             PA = InputBox("請輸入要查詢的資料")
178
             列印用SQL = " WHERE (" & 訂單資料表(1) & ".訂單流水號 LIKE '%" & PA & "%' OR " & 訂單資料表(1) & ".年份季度 LIKE '%" & PA & "%' OR " & 訂單資料表(1) & ".客戶訂單號 LIKE '%" & PA & "%' OR 
178
             列印用SQL = " WHERE (" & 訂單資料表(1) & ".訂單流水號 LIKE '%" & PA & "%' OR " & 訂單資料表(1) & ".年份季度 LIKE '%" & PA & "%' OR " & 訂單資料表(1) & ".客戶訂單號 LIKE '%" & PA & "%' OR 
179
                                  " & 訂單資料表(1) & ".形體號 LIKE '%" & PA & "%' OR " & 訂單資料表(1) & ".顏色 LIKE '%" & PA & "%' OR " & 訂單資料表(1) & ".楦型 LIKE '%" & PA & "%' OR 
179
                                  " & 訂單資料表(1) & ".形體號 LIKE '%" & PA & "%' OR " & 訂單資料表(1) & ".顏色 LIKE '%" & PA & "%' OR " & 訂單資料表(1) & ".楦型 LIKE '%" & PA & "%' OR 
721
             MsgBox("沒有選擇篩選條件")
721
             MsgBox("沒有選擇篩選條件")
722
         End If
722
         End If
723
         If CheckBox1.Checked = False And CheckBox2.Checked = False And CheckBox3.Checked = False And CheckBox4.Checked = False And CheckBox5.Checked = False And CheckBox6.Checked = False And
723
         If CheckBox1.Checked = False And CheckBox2.Checked = False And CheckBox3.Checked = False And CheckBox4.Checked = False And CheckBox5.Checked = False And CheckBox6.Checked = False And
724
-            CheckBox7.Checked = False And CheckBox8.Checked = False And CheckBox9.Checked = False And CheckBox17.Checked = False And CheckBox23.Checked = False Then
724
+            CheckBox7.Checked = False And CheckBox8.Checked = False And CheckBox9.Checked = False And CheckBox17.Checked = False And 不使用條件_ch.Checked = False Then
725
         Else
725
         Else
726
             Set_DGV1載入後設定() : Set_自動彙總1() : Set_grid() : Set_自動彙總1()
726
             Set_DGV1載入後設定() : Set_自動彙總1() : Set_grid() : Set_自動彙總1()
727
         End If
727
         End If
741
         Button11.Enabled = False : 第一頁_bt.Enabled = False : 第二頁_bt.Enabled = True : 第三頁_bt.Enabled = True
741
         Button11.Enabled = False : 第一頁_bt.Enabled = False : 第二頁_bt.Enabled = True : 第三頁_bt.Enabled = True
742
     End Sub
742
     End Sub
743
     Private Sub Set_格式設定1()
743
     Private Sub Set_格式設定1()
744
-        CheckBox1.Checked = False : CheckBox2.Checked = False : CheckBox3.Checked = False : CheckBox4.Checked = False : CheckBox5.Checked = False : CheckBox23.Checked = False
744
+        CheckBox1.Checked = False : CheckBox2.Checked = False : CheckBox3.Checked = False : CheckBox4.Checked = False : CheckBox5.Checked = False : 不使用條件_ch.Checked = False
745
     End Sub
745
     End Sub
746
     Private Sub Set_自動彙總1()
746
     Private Sub Set_自動彙總1()
747
         Dim 數量加總 As Double = 0 : Dim 金額加總 As Double = 0
747
         Dim 數量加總 As Double = 0 : Dim 金額加總 As Double = 0
940
         AA1_lb.Text = "Purchasing Group" : AA2_lb.Text = "PO Type" : AA3_lb.Text = "Inco Terms" : AA4_lb.Text = "CALERES PO#" : AA5_lb.Text = "SERVICED"
940
         AA1_lb.Text = "Purchasing Group" : AA2_lb.Text = "PO Type" : AA3_lb.Text = "Inco Terms" : AA4_lb.Text = "CALERES PO#" : AA5_lb.Text = "SERVICED"
941
         AA6_lb.Text = "Version" : AA7_lb.Text = "Vendor" : AA8_lb.Text = "Company Code" : AA9_lb.Text = "Shipping Method" : AA10_lb.Text = "Ship To"
941
         AA6_lb.Text = "Version" : AA7_lb.Text = "Vendor" : AA8_lb.Text = "Company Code" : AA9_lb.Text = "Shipping Method" : AA10_lb.Text = "Ship To"
942
         AA11_lb.Text = "Factory No" : AA12_lb.Text = "Final Customer Ship To"
942
         AA11_lb.Text = "Factory No" : AA12_lb.Text = "Final Customer Ship To"
943
-        明細表_dgv.Visible = True : 裝箱明細_dgv.Visible = False : 資訊_gb.Visible = False
943
+        明細表_dgv.Visible = True : 裝箱明細_dgv.Visible = False : 資訊_gb.Visible = False : 開啟訂單明細表_bt.Visible = False
944
 
944
 
945
         訂單資料庫選擇.ShowDialog()
945
         訂單資料庫選擇.ShowDialog()
946
 
946
 
981
         End If
981
         End If
982
         '訂單明細表可視權限
982
         '訂單明細表可視權限
983
         If CC(15) = False Then
983
         If CC(15) = False Then
984
-            Button30.Enabled = False
984
+            開啟訂單明細表_bt.Enabled = False
985
         End If
985
         End If
986
         '客戶交期可視權限
986
         '客戶交期可視權限
987
         If CC(17) = False Then
987
         If CC(17) = False Then
1026
             PP1 = 控制表_dgv(3, e.RowIndex).Value.ToString : PP2 = 控制表_dgv(4, e.RowIndex).Value.ToString
1026
             PP1 = 控制表_dgv(3, e.RowIndex).Value.ToString : PP2 = 控制表_dgv(4, e.RowIndex).Value.ToString
1027
             ComboBox2下拉表單資料載入() : ComboBox3下拉表單資料載入()
1027
             ComboBox2下拉表單資料載入() : ComboBox3下拉表單資料載入()
1028
             天盾訂單號_tb.Text = 控制表_dgv(0, e.RowIndex).Value.ToString : ComboBox1.Text = 控制表_dgv(1, e.RowIndex).Value.ToString
1028
             天盾訂單號_tb.Text = 控制表_dgv(0, e.RowIndex).Value.ToString : ComboBox1.Text = 控制表_dgv(1, e.RowIndex).Value.ToString
1029
-            客戶訂單號_tb.Text = 控制表_dgv(2, e.RowIndex).Value.ToString : ComboBox2.Text = 控制表_dgv(3, e.RowIndex).Value.ToString
1029
+            客戶訂單號_tb.Text = 控制表_dgv("客戶訂單號", e.RowIndex).Value.ToString : ComboBox2.Text = 控制表_dgv(3, e.RowIndex).Value.ToString
1030
             ComboBox3.Text = 控制表_dgv(4, e.RowIndex).Value.ToString : ComboBox4.Text = 控制表_dgv(5, e.RowIndex).Value.ToString
1030
             ComboBox3.Text = 控制表_dgv(4, e.RowIndex).Value.ToString : ComboBox4.Text = 控制表_dgv(5, e.RowIndex).Value.ToString
1031
             訂單數量 = 控制表_dgv(6, e.RowIndex).Value.ToString : TextBox3.Text = Format(Val(訂單數量), "#,##0")
1031
             訂單數量 = 控制表_dgv(6, e.RowIndex).Value.ToString : TextBox3.Text = Format(Val(訂單數量), "#,##0")
1032
 
1032
 
1175
     Private Sub Button27_Click(sender As Object, e As EventArgs) Handles Button27.Click
1175
     Private Sub Button27_Click(sender As Object, e As EventArgs) Handles Button27.Click
1176
         DateTimePicker30.Format = DateTimePickerFormat.Custom : DateTimePicker30.CustomFormat = " "
1176
         DateTimePicker30.Format = DateTimePickerFormat.Custom : DateTimePicker30.CustomFormat = " "
1177
     End Sub
1177
     End Sub
1178
-    Private Sub CheckBox23_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox23.Click
1179
-        If CheckBox23.Checked = True Then : CheckBox23.Checked = True : Set_格式設定() : Else : CheckBox23.Checked = False : End If
1178
+    Private Sub CheckBox23_CheckedChanged(sender As Object, e As EventArgs) Handles 不使用條件_ch.Click
1179
+        If 不使用條件_ch.Checked = True Then : 不使用條件_ch.Checked = True : Set_格式設定() : Else : 不使用條件_ch.Checked = False : End If
1180
     End Sub
1180
     End Sub
1181
     Private Sub CheckBox6_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox6.Click
1181
     Private Sub CheckBox6_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox6.Click
1182
         If CheckBox6.Checked = True Then
1182
         If CheckBox6.Checked = True Then
1218
         If CheckBox6.Checked = True Or CheckBox9.Checked = True Or CheckBox17.Checked = True Then
1218
         If CheckBox6.Checked = True Or CheckBox9.Checked = True Or CheckBox17.Checked = True Then
1219
             CheckBox1.Checked = False
1219
             CheckBox1.Checked = False
1220
         Else
1220
         Else
1221
-            If CheckBox1.Checked = True Then : CheckBox1.Checked = True : CheckBox23.Checked = False : Else : CheckBox1.Checked = False : End If
1221
+            If CheckBox1.Checked = True Then : CheckBox1.Checked = True : 不使用條件_ch.Checked = False : Else : CheckBox1.Checked = False : End If
1222
         End If
1222
         End If
1223
     End Sub
1223
     End Sub
1224
     Private Sub CheckBox2_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox2.Click
1224
     Private Sub CheckBox2_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox2.Click
1225
         If CheckBox6.Checked = True Or CheckBox9.Checked = True Or CheckBox17.Checked = True Then
1225
         If CheckBox6.Checked = True Or CheckBox9.Checked = True Or CheckBox17.Checked = True Then
1226
             CheckBox2.Checked = False
1226
             CheckBox2.Checked = False
1227
         Else
1227
         Else
1228
-            If CheckBox2.Checked = True Then : CheckBox2.Checked = True : CheckBox23.Checked = False : Else : CheckBox2.Checked = False : End If
1228
+            If CheckBox2.Checked = True Then : CheckBox2.Checked = True : 不使用條件_ch.Checked = False : Else : CheckBox2.Checked = False : End If
1229
         End If
1229
         End If
1230
     End Sub
1230
     End Sub
1231
     Private Sub CheckBox3_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox3.Click
1231
     Private Sub CheckBox3_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox3.Click
1232
         If CheckBox6.Checked = True Or CheckBox9.Checked = True Or CheckBox17.Checked = True Then
1232
         If CheckBox6.Checked = True Or CheckBox9.Checked = True Or CheckBox17.Checked = True Then
1233
             CheckBox3.Checked = False
1233
             CheckBox3.Checked = False
1234
         Else
1234
         Else
1235
-            If CheckBox3.Checked = True Then : CheckBox3.Checked = True : CheckBox23.Checked = False : Else : CheckBox3.Checked = False : End If
1235
+            If CheckBox3.Checked = True Then : CheckBox3.Checked = True : 不使用條件_ch.Checked = False : Else : CheckBox3.Checked = False : End If
1236
         End If
1236
         End If
1237
     End Sub
1237
     End Sub
1238
     Private Sub CheckBox4_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox4.Click
1238
     Private Sub CheckBox4_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox4.Click
1239
         If CheckBox6.Checked = True Or CheckBox9.Checked = True Or CheckBox17.Checked = True Then
1239
         If CheckBox6.Checked = True Or CheckBox9.Checked = True Or CheckBox17.Checked = True Then
1240
             CheckBox4.Checked = False
1240
             CheckBox4.Checked = False
1241
         Else
1241
         Else
1242
-            If CheckBox4.Checked = True Then : CheckBox4.Checked = True : CheckBox23.Checked = False : Else : CheckBox4.Checked = False : End If
1242
+            If CheckBox4.Checked = True Then : CheckBox4.Checked = True : 不使用條件_ch.Checked = False : Else : CheckBox4.Checked = False : End If
1243
         End If
1243
         End If
1244
     End Sub
1244
     End Sub
1245
     Private Sub CheckBox5_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox5.Click
1245
     Private Sub CheckBox5_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox5.Click
1246
         If CheckBox6.Checked = True Or CheckBox9.Checked = True Or CheckBox17.Checked = True Then
1246
         If CheckBox6.Checked = True Or CheckBox9.Checked = True Or CheckBox17.Checked = True Then
1247
             CheckBox5.Checked = False
1247
             CheckBox5.Checked = False
1248
         Else
1248
         Else
1249
-            If CheckBox5.Checked = True Then : CheckBox5.Checked = True : CheckBox23.Checked = False : Else : CheckBox5.Checked = False : End If
1249
+            If CheckBox5.Checked = True Then : CheckBox5.Checked = True : 不使用條件_ch.Checked = False : Else : CheckBox5.Checked = False : End If
1250
         End If
1250
         End If
1251
     End Sub
1251
     End Sub
1252
     Private Sub CheckBox7_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox7.Click
1252
     Private Sub CheckBox7_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox7.Click
1253
         If CheckBox17.Checked = True Then
1253
         If CheckBox17.Checked = True Then
1254
             CheckBox7.Checked = False
1254
             CheckBox7.Checked = False
1255
         Else
1255
         Else
1256
-            If CheckBox7.Checked = True Then : CheckBox7.Checked = True : CheckBox23.Checked = False : Else : CheckBox7.Checked = False : End If
1256
+            If CheckBox7.Checked = True Then : CheckBox7.Checked = True : 不使用條件_ch.Checked = False : Else : CheckBox7.Checked = False : End If
1257
         End If
1257
         End If
1258
     End Sub
1258
     End Sub
1259
     Private Sub CheckBox8_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox8.Click
1259
     Private Sub CheckBox8_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox8.Click
1260
         If CheckBox17.Checked = True Then
1260
         If CheckBox17.Checked = True Then
1261
             CheckBox8.Checked = False
1261
             CheckBox8.Checked = False
1262
         Else
1262
         Else
1263
-            If CheckBox8.Checked = True Then : CheckBox8.Checked = True : CheckBox23.Checked = False : Else : CheckBox8.Checked = False : End If
1263
+            If CheckBox8.Checked = True Then : CheckBox8.Checked = True : 不使用條件_ch.Checked = False : Else : CheckBox8.Checked = False : End If
1264
         End If
1264
         End If
1265
     End Sub
1265
     End Sub
1266
     Private Sub TextBox3_TextChanged(sender As Object, e As EventArgs) Handles TextBox3.TextChanged
1266
     Private Sub TextBox3_TextChanged(sender As Object, e As EventArgs) Handles TextBox3.TextChanged
1420
         aa = MsgBox("確定要刪除該筆資料?", MsgBoxStyle.OkCancel)
1420
         aa = MsgBox("確定要刪除該筆資料?", MsgBoxStyle.OkCancel)
1421
         If aa = MsgBoxResult.Ok Then
1421
         If aa = MsgBoxResult.Ok Then
1422
             ConnOpen()
1422
             ConnOpen()
1423
-            SQL1 = "DELETE FROM " & 訂單資料表(1) & " WHERE (資料流水號 = '" & TextBox7.Text & "')"
1423
+            SQL1 = "DELETE FROM " & 訂單資料表(1) & " WHERE (訂單流水號 = '" & 天盾訂單號_tb.Text & "')"
1424
             cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : cmd.ExecuteNonQuery() : conn.Close()
1424
             cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : cmd.ExecuteNonQuery() : conn.Close()
1425
             ConnOpen()
1425
             ConnOpen()
1426
-            SQL1 = "DELETE FROM 訂單控制表修改紀錄 WHERE (流水號 = '" & TextBox7.Text & "')"
1426
+            SQL1 = "DELETE FROM " & 訂單資料表(0) & " WHERE (天盾流水號 = '" & 天盾訂單號_tb.Text & "')"
1427
             cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : cmd.ExecuteNonQuery() : conn.Close()
1427
             cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : cmd.ExecuteNonQuery() : conn.Close()
1428
             ConnOpen()
1428
             ConnOpen()
1429
-            SQL1 = "DELETE FROM " & 訂單資料表(6) & " WHERE (資料流水號 = '" & TextBox7.Text & "')"
1429
+            SQL1 = "DELETE FROM " & 訂單資料表(6) & " WHERE (天盾流水號 = '" & 天盾訂單號_tb.Text & "')"
1430
+            cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : cmd.ExecuteNonQuery() : conn.Close()
1431
+            ConnOpen()
1432
+            SQL1 = "DELETE FROM " & 訂單資料表(2) & " WHERE (天盾流水號 = '" & 天盾訂單號_tb.Text & "')"
1433
+            cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : cmd.ExecuteNonQuery() : conn.Close()
1434
+            ConnOpen()
1435
+            SQL1 = "DELETE FROM " & 訂單資料表(3) & " WHERE (天盾流水號 = '" & 天盾訂單號_tb.Text & "')"
1430
             cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : cmd.ExecuteNonQuery() : conn.Close()
1436
             cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : cmd.ExecuteNonQuery() : conn.Close()
1431
             MsgBox("刪除完成")
1437
             MsgBox("刪除完成")
1432
         End If
1438
         End If
1433
-        Set_搜尋()
1439
+        Set_訂單清單() : Set_自動彙總1() : Set_grid()
1434
     End Sub
1440
     End Sub
1435
     Private Sub Button28_Click(sender As Object, e As EventArgs) Handles Button28.Click
1441
     Private Sub Button28_Click(sender As Object, e As EventArgs) Handles Button28.Click
1436
         If 列印用SQL = "" Then : MsgBox("請先搜尋資料後再行列印") : Else : 訂單列印選擇.Show() : End If
1442
         If 列印用SQL = "" Then : MsgBox("請先搜尋資料後再行列印") : Else : 訂單列印選擇.Show() : End If
1437
     End Sub
1443
     End Sub
1438
-    Private Sub Button30_Click(sender As Object, e As EventArgs) Handles Button30.Click
1444
+    Private Sub Button30_Click(sender As Object, e As EventArgs) Handles 開啟訂單明細表_bt.Click
1439
         If 天盾訂單號_tb.Text = "" Then
1445
         If 天盾訂單號_tb.Text = "" Then
1440
             MsgBox("請先選擇訂單資料")
1446
             MsgBox("請先選擇訂單資料")
1441
         Else
1447
         Else

+ 10
- 10
TENDEN-MES-SYS/量產訂單管理/訂單明細表.vb Ver fichero

45
                                     訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
45
                                     訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
46
                                      + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
46
                                      + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
47
                                      + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] AS TOTAL
47
                                      + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] AS TOTAL
48
-                        FROM        dbo.訂單明細表 INNER JOIN
48
+                        FROM        訂單明細表 INNER JOIN
49
                                        (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
49
                                        (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
50
-                                        FROM     dbo.訂單控制表
50
+                                        FROM     訂單控制表
51
                                         WHERE   (客戶訂單號 LIKE '" & 客戶訂單號_tb.Text & "') AND (CXL = 0 OR CXL IS NULL) AND (訂單流水號 LIKE '" & 訂單號_tb.Text & "')) AS WWEE ON 
51
                                         WHERE   (客戶訂單號 LIKE '" & 客戶訂單號_tb.Text & "') AND (CXL = 0 OR CXL IS NULL) AND (訂單流水號 LIKE '" & 訂單號_tb.Text & "')) AS WWEE ON 
52
-                                    dbo.訂單明細表.天盾流水號 = WWEE.訂單流水號 AND dbo.訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
53
-                                    dbo.訂單明細表.ProductName = WWEE.形體號 AND dbo.訂單明細表.Color = WWEE.顏色 AND 
54
-                                    dbo.訂單明細表.DM = WWEE.楦型 AND 
52
+                                    訂單明細表.天盾流水號 = WWEE.訂單流水號 AND 訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
53
+                                    訂單明細表.ProductName = WWEE.形體號 AND 訂單明細表.Color = WWEE.顏色 AND 
54
+                                    訂單明細表.DM = WWEE.楦型 AND 
55
                                     訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
55
                                     訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
56
                                     + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
56
                                     + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
57
                                     + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
57
                                     + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
65
                                     訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
65
                                     訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
66
                                      + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
66
                                      + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
67
                                      + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] AS TOTAL
67
                                      + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] AS TOTAL
68
-                        FROM        dbo.訂單明細表 INNER JOIN
68
+                        FROM        訂單明細表 INNER JOIN
69
                                        (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
69
                                        (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
70
-                                        FROM     dbo.訂單控制表
70
+                                        FROM     訂單控制表
71
                                         WHERE   (客戶訂單號 LIKE '" & 客戶訂單號_tb.Text & "') AND (CXL = 0 OR CXL IS NULL) AND (訂單流水號 LIKE '" & 訂單號_tb.Text & "')) AS WWEE ON 
71
                                         WHERE   (客戶訂單號 LIKE '" & 客戶訂單號_tb.Text & "') AND (CXL = 0 OR CXL IS NULL) AND (訂單流水號 LIKE '" & 訂單號_tb.Text & "')) AS WWEE ON 
72
-                                    dbo.訂單明細表.天盾流水號 = WWEE.訂單流水號 AND dbo.訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
73
-                                    dbo.訂單明細表.ProductName = WWEE.形體號 AND dbo.訂單明細表.Color = WWEE.顏色 AND 
74
-                                    dbo.訂單明細表.DM = WWEE.楦型 AND 
72
+                                    訂單明細表.天盾流水號 = WWEE.訂單流水號 AND 訂單明細表.客戶訂單號 = WWEE.客戶訂單號 AND 
73
+                                    訂單明細表.ProductName = WWEE.形體號 AND 訂單明細表.Color = WWEE.顏色 AND 
74
+                                    訂單明細表.DM = WWEE.楦型 AND 
75
                                     訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
75
                                     訂單明細表.[5] + 訂單明細表.[5.5] + 訂單明細表.[6] + 訂單明細表.[6.5] + 訂單明細表.[7] + 訂單明細表.[7.5] + 訂單明細表.[8]
76
                                     + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
76
                                     + 訂單明細表.[8.5] + 訂單明細表.[9] + 訂單明細表.[9.5] + 訂單明細表.[10] + 訂單明細表.[10.5] + 訂單明細表.[11] + 訂單明細表.[11.5]
77
                                     + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量
77
                                     + 訂單明細表.[12] + 訂單明細表.[12.5] + 訂單明細表.[13] + 訂單明細表.[14] = WWEE.訂單數量

+ 1
- 0
TENDEN-MES-SYS/量產訂單管理/訂單資料匯入-力威.Designer.vb Ver fichero

571
         Me.供應商編號_tb.Name = "供應商編號_tb"
571
         Me.供應商編號_tb.Name = "供應商編號_tb"
572
         Me.供應商編號_tb.Size = New System.Drawing.Size(139, 23)
572
         Me.供應商編號_tb.Size = New System.Drawing.Size(139, 23)
573
         Me.供應商編號_tb.TabIndex = 621
573
         Me.供應商編號_tb.TabIndex = 621
574
+        Me.供應商編號_tb.Text = " 903537"
574
         '
575
         '
575
         'Label14
576
         'Label14
576
         '
577
         '

+ 2
- 2
TENDEN-MES-SYS/量產訂單管理/訂單資料匯入-力威.vb Ver fichero

254
 
254
 
255
         SEASON_cb_下拉表單資料載入() : DIV_cb_下拉表單資料載入() : Remark_cb_下拉表單資料載入() : FTY_cb_下拉表單資料載入()
255
         SEASON_cb_下拉表單資料載入() : DIV_cb_下拉表單資料載入() : Remark_cb_下拉表單資料載入() : FTY_cb_下拉表單資料載入()
256
 
256
 
257
-        Number_tb.Text = "" : Brand_cb.Text = "" : 訂單類別_tb.Text = "" : 英科條款_tb.Text = "" : 公司編號_tb.Text = "" : 服務_tb.Text = "" : 版本_tb.Text = "" : 供應商編號_tb.Text = ""
257
+        Number_tb.Text = "" : Brand_cb.Text = "" : 訂單類別_tb.Text = "" : 英科條款_tb.Text = "" : 公司編號_tb.Text = "" : 服務_tb.Text = "" : 版本_tb.Text = "" : 供應商編號_tb.Text = " 903537"
258
         客戶訂單號_tb.Text = "" : 郵寄方式_tb.Text = "" : 客戶交期_dtp.Value = Today() : 客戶交期_dtp.Text = "" : 總雙數_tb.Text = "" : 總案件_tb.Text = "" : VendorName_tb.Text = ""
258
         客戶訂單號_tb.Text = "" : 郵寄方式_tb.Text = "" : 客戶交期_dtp.Value = Today() : 客戶交期_dtp.Text = "" : 總雙數_tb.Text = "" : 總案件_tb.Text = "" : VendorName_tb.Text = ""
259
         工廠編號_tb.Text = "" : 地址1_tb.Text = "" : 地址二_tb.Text = "" : 代理編號_cb.Text = "" : 訂貨代理_tb.Text = "" : 天盾流水號_tb.Text = "" : 最終運送_tb.Text = ""
259
         工廠編號_tb.Text = "" : 地址1_tb.Text = "" : 地址二_tb.Text = "" : 代理編號_cb.Text = "" : 訂貨代理_tb.Text = "" : 天盾流水號_tb.Text = "" : 最終運送_tb.Text = ""
260
 
260
 
332
                         資料數1 = 60 : 進度條1()
332
                         資料數1 = 60 : 進度條1()
333
                         If Strings.Left(xlSheet.Cells(YY, XX).value, 16) = "Purchasing Group" Then : Brand_cb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 22, 50) : End If
333
                         If Strings.Left(xlSheet.Cells(YY, XX).value, 16) = "Purchasing Group" Then : Brand_cb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 22, 50) : End If
334
                         If Strings.Left(xlSheet.Cells(YY, XX).value, 7) = "PO Type" Then : 訂單類別_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 12, 50) : End If
334
                         If Strings.Left(xlSheet.Cells(YY, XX).value, 7) = "PO Type" Then : 訂單類別_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 12, 50) : End If
335
-                        If Strings.Left(xlSheet.Cells(YY, XX).value, 6) = "Vendor" Then : 供應商編號_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 12, 50) : End If
335
+                        'If Strings.Left(xlSheet.Cells(YY, XX).value, 6) = "Vendor" Then : 供應商編號_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 12, 50) : End If
336
                         If Strings.Left(xlSheet.Cells(YY, XX).value, 18) = "Unsized Commitment" Then : 客戶訂單號_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 28, 50) : End If
336
                         If Strings.Left(xlSheet.Cells(YY, XX).value, 18) = "Unsized Commitment" Then : 客戶訂單號_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 28, 50) : End If
337
                         If Strings.Left(xlSheet.Cells(YY, XX).value, 12) = "Company Code" Then
337
                         If Strings.Left(xlSheet.Cells(YY, XX).value, 12) = "Company Code" Then
338
                             公司編號_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 18, 4) : 服務_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 35, 500) : End If
338
                             公司編號_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 18, 4) : 服務_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 35, 500) : End If

+ 94
- 91
TENDEN-MES-SYS/量產訂單管理/訂單資料比對與修改_力威.Designer.vb Ver fichero

22
     '請勿使用程式碼編輯器進行修改。
22
     '請勿使用程式碼編輯器進行修改。
23
     <System.Diagnostics.DebuggerStepThrough()> _
23
     <System.Diagnostics.DebuggerStepThrough()> _
24
     Private Sub InitializeComponent()
24
     Private Sub InitializeComponent()
25
-        Dim DataGridViewCellStyle18 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
-        Dim DataGridViewCellStyle19 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle20 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle21 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
-        Dim DataGridViewCellStyle22 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
-        Dim DataGridViewCellStyle23 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
-        Dim DataGridViewCellStyle24 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32
-        Dim DataGridViewCellStyle25 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
-        Dim DataGridViewCellStyle26 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34
-        Dim DataGridViewCellStyle27 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
35
-        Dim DataGridViewCellStyle28 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
36
-        Dim DataGridViewCellStyle29 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
37
-        Dim DataGridViewCellStyle30 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
38
-        Dim DataGridViewCellStyle31 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
39
-        Dim DataGridViewCellStyle32 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
40
-        Dim DataGridViewCellStyle33 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
41
-        Dim DataGridViewCellStyle34 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
25
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
+        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
+        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
+        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32
+        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
+        Dim DataGridViewCellStyle9 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34
+        Dim DataGridViewCellStyle10 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
35
+        Dim DataGridViewCellStyle11 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
36
+        Dim DataGridViewCellStyle12 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
37
+        Dim DataGridViewCellStyle13 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
38
+        Dim DataGridViewCellStyle14 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
39
+        Dim DataGridViewCellStyle15 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
40
+        Dim DataGridViewCellStyle16 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
41
+        Dim DataGridViewCellStyle17 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
42
         Me.TabControl1 = New System.Windows.Forms.TabControl()
42
         Me.TabControl1 = New System.Windows.Forms.TabControl()
43
         Me.TabPage1 = New System.Windows.Forms.TabPage()
43
         Me.TabPage1 = New System.Windows.Forms.TabPage()
44
         Me.Panel2 = New System.Windows.Forms.Panel()
44
         Me.Panel2 = New System.Windows.Forms.Panel()
184
         Me.國標測試報告_ch = New System.Windows.Forms.CheckBox()
184
         Me.國標測試報告_ch = New System.Windows.Forms.CheckBox()
185
         Me.Label28 = New System.Windows.Forms.Label()
185
         Me.Label28 = New System.Windows.Forms.Label()
186
         Me.TabPage3 = New System.Windows.Forms.TabPage()
186
         Me.TabPage3 = New System.Windows.Forms.TabPage()
187
+        Me.刪除新建_bt = New System.Windows.Forms.Button()
188
+        Me.覆蓋更新_bt = New System.Windows.Forms.Button()
187
         Me.BB12_lb = New System.Windows.Forms.Label()
189
         Me.BB12_lb = New System.Windows.Forms.Label()
188
         Me.BB11_lb = New System.Windows.Forms.Label()
190
         Me.BB11_lb = New System.Windows.Forms.Label()
189
         Me.BB10_lb = New System.Windows.Forms.Label()
191
         Me.BB10_lb = New System.Windows.Forms.Label()
294
         Me.Label88 = New System.Windows.Forms.Label()
296
         Me.Label88 = New System.Windows.Forms.Label()
295
         Me.Label71 = New System.Windows.Forms.Label()
297
         Me.Label71 = New System.Windows.Forms.Label()
296
         Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog()
298
         Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog()
297
-        Me.覆蓋更新_bt = New System.Windows.Forms.Button()
298
-        Me.刪除新建_bt = New System.Windows.Forms.Button()
299
         Me.TabControl1.SuspendLayout()
299
         Me.TabControl1.SuspendLayout()
300
         Me.TabPage1.SuspendLayout()
300
         Me.TabPage1.SuspendLayout()
301
         Me.Panel2.SuspendLayout()
301
         Me.Panel2.SuspendLayout()
506
         '
506
         '
507
         '控制表1_dgv
507
         '控制表1_dgv
508
         '
508
         '
509
-        DataGridViewCellStyle18.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
510
-        Me.控制表1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle18
509
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
510
+        Me.控制表1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
511
         Me.控制表1_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
511
         Me.控制表1_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
512
             Or System.Windows.Forms.AnchorStyles.Left) _
512
             Or System.Windows.Forms.AnchorStyles.Left) _
513
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
513
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
522
         '
522
         '
523
         '明細表1_dgv
523
         '明細表1_dgv
524
         '
524
         '
525
-        DataGridViewCellStyle19.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
526
-        Me.明細表1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle19
525
+        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
526
+        Me.明細表1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
527
         Me.明細表1_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
527
         Me.明細表1_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
528
             Or System.Windows.Forms.AnchorStyles.Left) _
528
             Or System.Windows.Forms.AnchorStyles.Left) _
529
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
529
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
561
         '
561
         '
562
         '裝箱控制1_dgv
562
         '裝箱控制1_dgv
563
         '
563
         '
564
-        DataGridViewCellStyle20.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
565
-        Me.裝箱控制1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle20
564
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
565
+        Me.裝箱控制1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
566
         Me.裝箱控制1_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
566
         Me.裝箱控制1_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
567
             Or System.Windows.Forms.AnchorStyles.Left) _
567
             Or System.Windows.Forms.AnchorStyles.Left) _
568
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
568
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
576
         '
576
         '
577
         '裝箱明細1_dgv
577
         '裝箱明細1_dgv
578
         '
578
         '
579
-        DataGridViewCellStyle21.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
580
-        Me.裝箱明細1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle21
579
+        DataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
580
+        Me.裝箱明細1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4
581
         Me.裝箱明細1_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
581
         Me.裝箱明細1_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
582
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
582
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
583
         Me.裝箱明細1_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
583
         Me.裝箱明細1_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
600
         '
600
         '
601
         '抬頭清單_dgv
601
         '抬頭清單_dgv
602
         '
602
         '
603
-        DataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
604
-        Me.抬頭清單_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle22
603
+        DataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
604
+        Me.抬頭清單_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
605
         Me.抬頭清單_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
605
         Me.抬頭清單_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
606
             Or System.Windows.Forms.AnchorStyles.Left) _
606
             Or System.Windows.Forms.AnchorStyles.Left) _
607
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
607
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
745
         Me.供應商編號1_tb.Name = "供應商編號1_tb"
745
         Me.供應商編號1_tb.Name = "供應商編號1_tb"
746
         Me.供應商編號1_tb.Size = New System.Drawing.Size(139, 23)
746
         Me.供應商編號1_tb.Size = New System.Drawing.Size(139, 23)
747
         Me.供應商編號1_tb.TabIndex = 825
747
         Me.供應商編號1_tb.TabIndex = 825
748
+        Me.供應商編號1_tb.Text = " 903537"
748
         '
749
         '
749
         'Label38
750
         'Label38
750
         '
751
         '
1306
         '
1307
         '
1307
         '控制表_dgv
1308
         '控制表_dgv
1308
         '
1309
         '
1309
-        DataGridViewCellStyle23.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1310
-        Me.控制表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle23
1310
+        DataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1311
+        Me.控制表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle6
1311
         Me.控制表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1312
         Me.控制表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1312
             Or System.Windows.Forms.AnchorStyles.Left) _
1313
             Or System.Windows.Forms.AnchorStyles.Left) _
1313
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1314
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1322
         '
1323
         '
1323
         '明細表_dgv
1324
         '明細表_dgv
1324
         '
1325
         '
1325
-        DataGridViewCellStyle24.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1326
-        Me.明細表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle24
1326
+        DataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1327
+        Me.明細表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle7
1327
         Me.明細表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1328
         Me.明細表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1328
             Or System.Windows.Forms.AnchorStyles.Left) _
1329
             Or System.Windows.Forms.AnchorStyles.Left) _
1329
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1330
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1361
         '
1362
         '
1362
         '裝箱控制_dgv
1363
         '裝箱控制_dgv
1363
         '
1364
         '
1364
-        DataGridViewCellStyle25.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1365
-        Me.裝箱控制_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle25
1365
+        DataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1366
+        Me.裝箱控制_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle8
1366
         Me.裝箱控制_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1367
         Me.裝箱控制_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1367
             Or System.Windows.Forms.AnchorStyles.Left) _
1368
             Or System.Windows.Forms.AnchorStyles.Left) _
1368
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1369
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1376
         '
1377
         '
1377
         '裝箱明細_dgv
1378
         '裝箱明細_dgv
1378
         '
1379
         '
1379
-        DataGridViewCellStyle26.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1380
-        Me.裝箱明細_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle26
1380
+        DataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1381
+        Me.裝箱明細_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle9
1381
         Me.裝箱明細_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1382
         Me.裝箱明細_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1382
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1383
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1383
         Me.裝箱明細_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
1384
         Me.裝箱明細_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
1528
         Me.供應商編號_tb.Name = "供應商編號_tb"
1529
         Me.供應商編號_tb.Name = "供應商編號_tb"
1529
         Me.供應商編號_tb.Size = New System.Drawing.Size(139, 23)
1530
         Me.供應商編號_tb.Size = New System.Drawing.Size(139, 23)
1530
         Me.供應商編號_tb.TabIndex = 757
1531
         Me.供應商編號_tb.TabIndex = 757
1532
+        Me.供應商編號_tb.Text = " 903537"
1531
         '
1533
         '
1532
         'Label12
1534
         'Label12
1533
         '
1535
         '
1999
         Me.TabPage3.Text = "--------------------訂單改版比對--------------------"
2001
         Me.TabPage3.Text = "--------------------訂單改版比對--------------------"
2000
         Me.TabPage3.UseVisualStyleBackColor = True
2002
         Me.TabPage3.UseVisualStyleBackColor = True
2001
         '
2003
         '
2004
+        '刪除新建_bt
2005
+        '
2006
+        Me.刪除新建_bt.Enabled = False
2007
+        Me.刪除新建_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
2008
+        Me.刪除新建_bt.Location = New System.Drawing.Point(1433, 194)
2009
+        Me.刪除新建_bt.Name = "刪除新建_bt"
2010
+        Me.刪除新建_bt.Size = New System.Drawing.Size(220, 25)
2011
+        Me.刪除新建_bt.TabIndex = 914
2012
+        Me.刪除新建_bt.Text = "資料對比後需要刪除舊資料新建"
2013
+        Me.刪除新建_bt.UseVisualStyleBackColor = True
2014
+        '
2015
+        '覆蓋更新_bt
2016
+        '
2017
+        Me.覆蓋更新_bt.Enabled = False
2018
+        Me.覆蓋更新_bt.ForeColor = System.Drawing.Color.Green
2019
+        Me.覆蓋更新_bt.Location = New System.Drawing.Point(1209, 194)
2020
+        Me.覆蓋更新_bt.Name = "覆蓋更新_bt"
2021
+        Me.覆蓋更新_bt.Size = New System.Drawing.Size(220, 25)
2022
+        Me.覆蓋更新_bt.TabIndex = 913
2023
+        Me.覆蓋更新_bt.Text = "資料對比後吻合度可覆蓋更新"
2024
+        Me.覆蓋更新_bt.UseVisualStyleBackColor = True
2025
+        '
2002
         'BB12_lb
2026
         'BB12_lb
2003
         '
2027
         '
2004
         Me.BB12_lb.AutoSize = True
2028
         Me.BB12_lb.AutoSize = True
2254
         Me.SplitContainer7.Panel2.AutoScroll = True
2278
         Me.SplitContainer7.Panel2.AutoScroll = True
2255
         Me.SplitContainer7.Panel2.Controls.Add(Me.Label19)
2279
         Me.SplitContainer7.Panel2.Controls.Add(Me.Label19)
2256
         Me.SplitContainer7.Panel2.Controls.Add(Me.控制表3_dgv)
2280
         Me.SplitContainer7.Panel2.Controls.Add(Me.控制表3_dgv)
2257
-        Me.SplitContainer7.Size = New System.Drawing.Size(1870, 718)
2258
-        Me.SplitContainer7.SplitterDistance = 344
2281
+        Me.SplitContainer7.Size = New System.Drawing.Size(1870, 721)
2282
+        Me.SplitContainer7.SplitterDistance = 345
2259
         Me.SplitContainer7.TabIndex = 644
2283
         Me.SplitContainer7.TabIndex = 644
2260
         '
2284
         '
2261
         'Label7
2285
         'Label7
2269
         '
2293
         '
2270
         '控制表2_dgv
2294
         '控制表2_dgv
2271
         '
2295
         '
2272
-        DataGridViewCellStyle27.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
2273
-        Me.控制表2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle27
2296
+        DataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
2297
+        Me.控制表2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle10
2274
         Me.控制表2_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2298
         Me.控制表2_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2275
             Or System.Windows.Forms.AnchorStyles.Left) _
2299
             Or System.Windows.Forms.AnchorStyles.Left) _
2276
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2300
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2280
         Me.控制表2_dgv.Name = "控制表2_dgv"
2304
         Me.控制表2_dgv.Name = "控制表2_dgv"
2281
         Me.控制表2_dgv.RowHeadersWidth = 5
2305
         Me.控制表2_dgv.RowHeadersWidth = 5
2282
         Me.控制表2_dgv.RowTemplate.Height = 24
2306
         Me.控制表2_dgv.RowTemplate.Height = 24
2283
-        Me.控制表2_dgv.Size = New System.Drawing.Size(1856, 307)
2307
+        Me.控制表2_dgv.Size = New System.Drawing.Size(1856, 308)
2284
         Me.控制表2_dgv.TabIndex = 637
2308
         Me.控制表2_dgv.TabIndex = 637
2285
         '
2309
         '
2286
         'Label19
2310
         'Label19
2294
         '
2318
         '
2295
         '控制表3_dgv
2319
         '控制表3_dgv
2296
         '
2320
         '
2297
-        DataGridViewCellStyle28.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
2298
-        Me.控制表3_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle28
2321
+        DataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
2322
+        Me.控制表3_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle11
2299
         Me.控制表3_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2323
         Me.控制表3_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2300
             Or System.Windows.Forms.AnchorStyles.Left) _
2324
             Or System.Windows.Forms.AnchorStyles.Left) _
2301
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2325
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2305
         Me.控制表3_dgv.Name = "控制表3_dgv"
2329
         Me.控制表3_dgv.Name = "控制表3_dgv"
2306
         Me.控制表3_dgv.RowHeadersWidth = 5
2330
         Me.控制表3_dgv.RowHeadersWidth = 5
2307
         Me.控制表3_dgv.RowTemplate.Height = 24
2331
         Me.控制表3_dgv.RowTemplate.Height = 24
2308
-        Me.控制表3_dgv.Size = New System.Drawing.Size(1856, 333)
2332
+        Me.控制表3_dgv.Size = New System.Drawing.Size(1856, 335)
2309
         Me.控制表3_dgv.TabIndex = 638
2333
         Me.控制表3_dgv.TabIndex = 638
2310
         '
2334
         '
2311
         'TabPage5
2335
         'TabPage5
2341
         Me.SplitContainer8.Panel2.AutoScroll = True
2365
         Me.SplitContainer8.Panel2.AutoScroll = True
2342
         Me.SplitContainer8.Panel2.Controls.Add(Me.Label52)
2366
         Me.SplitContainer8.Panel2.Controls.Add(Me.Label52)
2343
         Me.SplitContainer8.Panel2.Controls.Add(Me.明細表3_dgv)
2367
         Me.SplitContainer8.Panel2.Controls.Add(Me.明細表3_dgv)
2344
-        Me.SplitContainer8.Size = New System.Drawing.Size(1870, 718)
2345
-        Me.SplitContainer8.SplitterDistance = 344
2368
+        Me.SplitContainer8.Size = New System.Drawing.Size(1870, 721)
2369
+        Me.SplitContainer8.SplitterDistance = 345
2346
         Me.SplitContainer8.TabIndex = 645
2370
         Me.SplitContainer8.TabIndex = 645
2347
         '
2371
         '
2348
         'Label34
2372
         'Label34
2356
         '
2380
         '
2357
         '明細表2_dgv
2381
         '明細表2_dgv
2358
         '
2382
         '
2359
-        DataGridViewCellStyle29.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
2360
-        Me.明細表2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle29
2383
+        DataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
2384
+        Me.明細表2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle12
2361
         Me.明細表2_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2385
         Me.明細表2_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2362
             Or System.Windows.Forms.AnchorStyles.Left) _
2386
             Or System.Windows.Forms.AnchorStyles.Left) _
2363
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2387
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2367
         Me.明細表2_dgv.Name = "明細表2_dgv"
2391
         Me.明細表2_dgv.Name = "明細表2_dgv"
2368
         Me.明細表2_dgv.RowHeadersWidth = 5
2392
         Me.明細表2_dgv.RowHeadersWidth = 5
2369
         Me.明細表2_dgv.RowTemplate.Height = 24
2393
         Me.明細表2_dgv.RowTemplate.Height = 24
2370
-        Me.明細表2_dgv.Size = New System.Drawing.Size(1856, 307)
2394
+        Me.明細表2_dgv.Size = New System.Drawing.Size(1856, 308)
2371
         Me.明細表2_dgv.TabIndex = 637
2395
         Me.明細表2_dgv.TabIndex = 637
2372
         '
2396
         '
2373
         'Label52
2397
         'Label52
2381
         '
2405
         '
2382
         '明細表3_dgv
2406
         '明細表3_dgv
2383
         '
2407
         '
2384
-        DataGridViewCellStyle30.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
2385
-        Me.明細表3_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle30
2408
+        DataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
2409
+        Me.明細表3_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle13
2386
         Me.明細表3_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2410
         Me.明細表3_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2387
             Or System.Windows.Forms.AnchorStyles.Left) _
2411
             Or System.Windows.Forms.AnchorStyles.Left) _
2388
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2412
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2392
         Me.明細表3_dgv.Name = "明細表3_dgv"
2416
         Me.明細表3_dgv.Name = "明細表3_dgv"
2393
         Me.明細表3_dgv.RowHeadersWidth = 5
2417
         Me.明細表3_dgv.RowHeadersWidth = 5
2394
         Me.明細表3_dgv.RowTemplate.Height = 24
2418
         Me.明細表3_dgv.RowTemplate.Height = 24
2395
-        Me.明細表3_dgv.Size = New System.Drawing.Size(1856, 333)
2419
+        Me.明細表3_dgv.Size = New System.Drawing.Size(1856, 335)
2396
         Me.明細表3_dgv.TabIndex = 638
2420
         Me.明細表3_dgv.TabIndex = 638
2397
         '
2421
         '
2398
         'TabPage6
2422
         'TabPage6
2428
         Me.SplitContainer9.Panel2.AutoScroll = True
2452
         Me.SplitContainer9.Panel2.AutoScroll = True
2429
         Me.SplitContainer9.Panel2.Controls.Add(Me.Label61)
2453
         Me.SplitContainer9.Panel2.Controls.Add(Me.Label61)
2430
         Me.SplitContainer9.Panel2.Controls.Add(Me.裝箱控制3_dgv)
2454
         Me.SplitContainer9.Panel2.Controls.Add(Me.裝箱控制3_dgv)
2431
-        Me.SplitContainer9.Size = New System.Drawing.Size(1870, 718)
2432
-        Me.SplitContainer9.SplitterDistance = 344
2455
+        Me.SplitContainer9.Size = New System.Drawing.Size(1870, 721)
2456
+        Me.SplitContainer9.SplitterDistance = 345
2433
         Me.SplitContainer9.TabIndex = 645
2457
         Me.SplitContainer9.TabIndex = 645
2434
         '
2458
         '
2435
         'Label60
2459
         'Label60
2443
         '
2467
         '
2444
         '裝箱控制2_dgv
2468
         '裝箱控制2_dgv
2445
         '
2469
         '
2446
-        DataGridViewCellStyle31.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
2447
-        Me.裝箱控制2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle31
2470
+        DataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
2471
+        Me.裝箱控制2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle14
2448
         Me.裝箱控制2_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2472
         Me.裝箱控制2_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2449
             Or System.Windows.Forms.AnchorStyles.Left) _
2473
             Or System.Windows.Forms.AnchorStyles.Left) _
2450
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2474
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2453
         Me.裝箱控制2_dgv.Name = "裝箱控制2_dgv"
2477
         Me.裝箱控制2_dgv.Name = "裝箱控制2_dgv"
2454
         Me.裝箱控制2_dgv.RowHeadersWidth = 5
2478
         Me.裝箱控制2_dgv.RowHeadersWidth = 5
2455
         Me.裝箱控制2_dgv.RowTemplate.Height = 24
2479
         Me.裝箱控制2_dgv.RowTemplate.Height = 24
2456
-        Me.裝箱控制2_dgv.Size = New System.Drawing.Size(1856, 307)
2480
+        Me.裝箱控制2_dgv.Size = New System.Drawing.Size(1856, 308)
2457
         Me.裝箱控制2_dgv.TabIndex = 637
2481
         Me.裝箱控制2_dgv.TabIndex = 637
2458
         '
2482
         '
2459
         'Label61
2483
         'Label61
2467
         '
2491
         '
2468
         '裝箱控制3_dgv
2492
         '裝箱控制3_dgv
2469
         '
2493
         '
2470
-        DataGridViewCellStyle32.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
2471
-        Me.裝箱控制3_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle32
2494
+        DataGridViewCellStyle15.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
2495
+        Me.裝箱控制3_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle15
2472
         Me.裝箱控制3_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2496
         Me.裝箱控制3_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2473
             Or System.Windows.Forms.AnchorStyles.Left) _
2497
             Or System.Windows.Forms.AnchorStyles.Left) _
2474
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2498
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2477
         Me.裝箱控制3_dgv.Name = "裝箱控制3_dgv"
2501
         Me.裝箱控制3_dgv.Name = "裝箱控制3_dgv"
2478
         Me.裝箱控制3_dgv.RowHeadersWidth = 5
2502
         Me.裝箱控制3_dgv.RowHeadersWidth = 5
2479
         Me.裝箱控制3_dgv.RowTemplate.Height = 24
2503
         Me.裝箱控制3_dgv.RowTemplate.Height = 24
2480
-        Me.裝箱控制3_dgv.Size = New System.Drawing.Size(1856, 333)
2504
+        Me.裝箱控制3_dgv.Size = New System.Drawing.Size(1856, 335)
2481
         Me.裝箱控制3_dgv.TabIndex = 638
2505
         Me.裝箱控制3_dgv.TabIndex = 638
2482
         '
2506
         '
2483
         'TabPage7
2507
         'TabPage7
2513
         Me.SplitContainer10.Panel2.AutoScroll = True
2537
         Me.SplitContainer10.Panel2.AutoScroll = True
2514
         Me.SplitContainer10.Panel2.Controls.Add(Me.Label66)
2538
         Me.SplitContainer10.Panel2.Controls.Add(Me.Label66)
2515
         Me.SplitContainer10.Panel2.Controls.Add(Me.裝箱明細3_dgv)
2539
         Me.SplitContainer10.Panel2.Controls.Add(Me.裝箱明細3_dgv)
2516
-        Me.SplitContainer10.Size = New System.Drawing.Size(1870, 718)
2517
-        Me.SplitContainer10.SplitterDistance = 344
2540
+        Me.SplitContainer10.Size = New System.Drawing.Size(1870, 721)
2541
+        Me.SplitContainer10.SplitterDistance = 345
2518
         Me.SplitContainer10.TabIndex = 645
2542
         Me.SplitContainer10.TabIndex = 645
2519
         '
2543
         '
2520
         'Label65
2544
         'Label65
2528
         '
2552
         '
2529
         '裝箱明細2_dgv
2553
         '裝箱明細2_dgv
2530
         '
2554
         '
2531
-        DataGridViewCellStyle33.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
2532
-        Me.裝箱明細2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle33
2555
+        DataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
2556
+        Me.裝箱明細2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle16
2533
         Me.裝箱明細2_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2557
         Me.裝箱明細2_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2534
             Or System.Windows.Forms.AnchorStyles.Left) _
2558
             Or System.Windows.Forms.AnchorStyles.Left) _
2535
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2559
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2539
         Me.裝箱明細2_dgv.Name = "裝箱明細2_dgv"
2563
         Me.裝箱明細2_dgv.Name = "裝箱明細2_dgv"
2540
         Me.裝箱明細2_dgv.RowHeadersWidth = 5
2564
         Me.裝箱明細2_dgv.RowHeadersWidth = 5
2541
         Me.裝箱明細2_dgv.RowTemplate.Height = 24
2565
         Me.裝箱明細2_dgv.RowTemplate.Height = 24
2542
-        Me.裝箱明細2_dgv.Size = New System.Drawing.Size(1856, 307)
2566
+        Me.裝箱明細2_dgv.Size = New System.Drawing.Size(1856, 308)
2543
         Me.裝箱明細2_dgv.TabIndex = 637
2567
         Me.裝箱明細2_dgv.TabIndex = 637
2544
         '
2568
         '
2545
         'Label66
2569
         'Label66
2553
         '
2577
         '
2554
         '裝箱明細3_dgv
2578
         '裝箱明細3_dgv
2555
         '
2579
         '
2556
-        DataGridViewCellStyle34.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
2557
-        Me.裝箱明細3_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle34
2580
+        DataGridViewCellStyle17.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
2581
+        Me.裝箱明細3_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle17
2558
         Me.裝箱明細3_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2582
         Me.裝箱明細3_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2559
             Or System.Windows.Forms.AnchorStyles.Left) _
2583
             Or System.Windows.Forms.AnchorStyles.Left) _
2560
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2584
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2564
         Me.裝箱明細3_dgv.Name = "裝箱明細3_dgv"
2588
         Me.裝箱明細3_dgv.Name = "裝箱明細3_dgv"
2565
         Me.裝箱明細3_dgv.RowHeadersWidth = 5
2589
         Me.裝箱明細3_dgv.RowHeadersWidth = 5
2566
         Me.裝箱明細3_dgv.RowTemplate.Height = 24
2590
         Me.裝箱明細3_dgv.RowTemplate.Height = 24
2567
-        Me.裝箱明細3_dgv.Size = New System.Drawing.Size(1856, 333)
2591
+        Me.裝箱明細3_dgv.Size = New System.Drawing.Size(1856, 335)
2568
         Me.裝箱明細3_dgv.TabIndex = 638
2592
         Me.裝箱明細3_dgv.TabIndex = 638
2569
         '
2593
         '
2570
         'AA18_lb
2594
         'AA18_lb
2698
         Me.供應商編號2_tb.Name = "供應商編號2_tb"
2722
         Me.供應商編號2_tb.Name = "供應商編號2_tb"
2699
         Me.供應商編號2_tb.Size = New System.Drawing.Size(139, 23)
2723
         Me.供應商編號2_tb.Size = New System.Drawing.Size(139, 23)
2700
         Me.供應商編號2_tb.TabIndex = 882
2724
         Me.供應商編號2_tb.TabIndex = 882
2725
+        Me.供應商編號2_tb.Text = " 903537"
2701
         '
2726
         '
2702
         'AA06_lb
2727
         'AA06_lb
2703
         '
2728
         '
3154
         '
3179
         '
3155
         Me.OpenFileDialog1.FileName = "OpenFileDialog1"
3180
         Me.OpenFileDialog1.FileName = "OpenFileDialog1"
3156
         '
3181
         '
3157
-        '覆蓋更新_bt
3158
-        '
3159
-        Me.覆蓋更新_bt.Enabled = False
3160
-        Me.覆蓋更新_bt.ForeColor = System.Drawing.Color.Green
3161
-        Me.覆蓋更新_bt.Location = New System.Drawing.Point(1209, 194)
3162
-        Me.覆蓋更新_bt.Name = "覆蓋更新_bt"
3163
-        Me.覆蓋更新_bt.Size = New System.Drawing.Size(220, 25)
3164
-        Me.覆蓋更新_bt.TabIndex = 913
3165
-        Me.覆蓋更新_bt.Text = "資料對比後吻合度可覆蓋更新"
3166
-        Me.覆蓋更新_bt.UseVisualStyleBackColor = True
3167
-        '
3168
-        '刪除新建_bt
3169
-        '
3170
-        Me.刪除新建_bt.Enabled = False
3171
-        Me.刪除新建_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
3172
-        Me.刪除新建_bt.Location = New System.Drawing.Point(1433, 194)
3173
-        Me.刪除新建_bt.Name = "刪除新建_bt"
3174
-        Me.刪除新建_bt.Size = New System.Drawing.Size(220, 25)
3175
-        Me.刪除新建_bt.TabIndex = 914
3176
-        Me.刪除新建_bt.Text = "資料對比後需要刪除舊資料新建"
3177
-        Me.刪除新建_bt.UseVisualStyleBackColor = True
3178
-        '
3179
         '訂單資料比對與修改_力威
3182
         '訂單資料比對與修改_力威
3180
         '
3183
         '
3181
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
3184
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)

+ 3
- 3
TENDEN-MES-SYS/量產訂單管理/訂單資料比對與修改_力威.vb Ver fichero

658
                         資料數1 = 60 : 進度條1()
658
                         資料數1 = 60 : 進度條1()
659
                         If Strings.Left(xlSheet.Cells(YY, XX).value, 16) = "Purchasing Group" Then : Brand_cb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 22, 50) : End If
659
                         If Strings.Left(xlSheet.Cells(YY, XX).value, 16) = "Purchasing Group" Then : Brand_cb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 22, 50) : End If
660
                         If Strings.Left(xlSheet.Cells(YY, XX).value, 7) = "PO Type" Then : 訂單類別_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 12, 50) : End If
660
                         If Strings.Left(xlSheet.Cells(YY, XX).value, 7) = "PO Type" Then : 訂單類別_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 12, 50) : End If
661
-                        If Strings.Left(xlSheet.Cells(YY, XX).value, 6) = "Vendor" Then : 供應商編號_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 12, 50) : End If
661
+                        'If Strings.Left(xlSheet.Cells(YY, XX).value, 6) = "Vendor" Then : 供應商編號_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 12, 50) : End If
662
                         If Strings.Left(xlSheet.Cells(YY, XX).value, 18) = "Unsized Commitment" Then : 客戶訂單號_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 28, 50) : End If
662
                         If Strings.Left(xlSheet.Cells(YY, XX).value, 18) = "Unsized Commitment" Then : 客戶訂單號_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 28, 50) : End If
663
                         If Strings.Left(xlSheet.Cells(YY, XX).value, 12) = "Company Code" Then
663
                         If Strings.Left(xlSheet.Cells(YY, XX).value, 12) = "Company Code" Then
664
                             公司編號_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 18, 4) : 服務_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 35, 500) : End If
664
                             公司編號_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 18, 4) : 服務_tb.Text = Strings.Mid(xlSheet.Cells(YY, XX).value, 35, 500) : End If
1313
         '-------清空------------------------------------------------------------------------------------------------------------------------------------------------------------------
1313
         '-------清空------------------------------------------------------------------------------------------------------------------------------------------------------------------
1314
         SEASON_cb_下拉表單資料載入() : DIV_cb_下拉表單資料載入() : Remark_cb_下拉表單資料載入() : FTY_cb_下拉表單資料載入()
1314
         SEASON_cb_下拉表單資料載入() : DIV_cb_下拉表單資料載入() : Remark_cb_下拉表單資料載入() : FTY_cb_下拉表單資料載入()
1315
 
1315
 
1316
-        Number_tb.Text = "" : Brand_cb.Text = "" : 訂單類別_tb.Text = "" : 英科條款_tb.Text = "" : 公司編號_tb.Text = "" : 服務_tb.Text = "" : 版本_tb.Text = "" : 供應商編號_tb.Text = ""
1316
+        Number_tb.Text = "" : Brand_cb.Text = "" : 訂單類別_tb.Text = "" : 英科條款_tb.Text = "" : 公司編號_tb.Text = "" : 服務_tb.Text = "" : 版本_tb.Text = "" : 供應商編號_tb.Text = " 903537"
1317
         客戶訂單號_tb.Text = "" : 郵寄方式_tb.Text = "" : 客戶交期_dtp.Value = Today() : 客戶交期_dtp.Text = "" : 總雙數_tb.Text = "" : 總案件_tb.Text = "" : VendorName_tb.Text = ""
1317
         客戶訂單號_tb.Text = "" : 郵寄方式_tb.Text = "" : 客戶交期_dtp.Value = Today() : 客戶交期_dtp.Text = "" : 總雙數_tb.Text = "" : 總案件_tb.Text = "" : VendorName_tb.Text = ""
1318
         工廠編號_tb.Text = "" : 地址1_tb.Text = "" : 地址二_tb.Text = "" : 代理編號_cb.Text = "" : 訂貨代理_tb.Text = "" : 最終運送_tb.Text = ""
1318
         工廠編號_tb.Text = "" : 地址1_tb.Text = "" : 地址二_tb.Text = "" : 代理編號_cb.Text = "" : 訂貨代理_tb.Text = "" : 最終運送_tb.Text = ""
1319
 
1319
 
1320
-        Number2_tb.Text = "" : Brand2_cb.Text = "" : 訂單類別2_tb.Text = "" : 英科條款2_tb.Text = "" : 公司編號2_tb.Text = "" : 服務2_tb.Text = "" : 版本2_tb.Text = "" : 供應商編號2_tb.Text = ""
1320
+        Number2_tb.Text = "" : Brand2_cb.Text = "" : 訂單類別2_tb.Text = "" : 英科條款2_tb.Text = "" : 公司編號2_tb.Text = "" : 服務2_tb.Text = "" : 版本2_tb.Text = "" : 供應商編號2_tb.Text = " 903537"
1321
         客戶訂單號2_tb.Text = "" : 郵寄方式2_tb.Text = "" : 客戶交期2_dtp.Value = Today() : 客戶交期2_dtp.Text = "" : 總雙數2_tb.Text = "" : 總案件2_tb.Text = "" : VendorName2_tb.Text = ""
1321
         客戶訂單號2_tb.Text = "" : 郵寄方式2_tb.Text = "" : 客戶交期2_dtp.Value = Today() : 客戶交期2_dtp.Text = "" : 總雙數2_tb.Text = "" : 總案件2_tb.Text = "" : VendorName2_tb.Text = ""
1322
         工廠編號2_tb.Text = "" : 地址12_tb.Text = "" : 地址二2_tb.Text = "" : 代理編號2_cb.Text = "" : 訂貨代理2_tb.Text = "" : 最終運送2_tb.Text = ""
1322
         工廠編號2_tb.Text = "" : 地址12_tb.Text = "" : 地址二2_tb.Text = "" : 代理編號2_cb.Text = "" : 訂貨代理2_tb.Text = "" : 最終運送2_tb.Text = ""
1323
 
1323
 

Loading…
Cancelar
Guardar