Browse Source

版本號 : 2021052701

更新內容如下
1、出貨明細表介面新增SIZRUN清單,並取消進入訂單明細表的按鈕。
B70340 4 years ago
parent
commit
b22ad10e45

BIN
.vs/TENDEN-MES-SYS/v16/.suo View File


+ 1
- 1
TENDEN-MES-SYS/Module/全域變數.vb View File

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 = "2021042101"
7
+    Public 版本 As String = "2021052701"
8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9
     Public 匯率 As Double
9
     Public 匯率 As Double
10
 
10
 

BIN
TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.exe View File


BIN
TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.pdb View File


BIN
TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.exe View File


BIN
TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.pdb View File


+ 3
- 0
TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.FileListAbsolute.txt View File

580
 D:\tenden-erp-sys-team\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.pdb
580
 D:\tenden-erp-sys-team\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.pdb
581
 D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.模具控制表.resources
581
 D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.模具控制表.resources
582
 D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析報表八.resources
582
 D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析報表八.resources
583
+C:\Users\user\Desktop\tenden-erp-sys-team\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析報表八.resources
584
+C:\Users\user\Desktop\tenden-erp-sys-team\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.模具控制表.resources
585
+D:\tenden-erp-sys-team\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析報表八.resources

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


BIN
TENDEN-MES-SYS/obj/Debug/天盾系統.vbprojAssemblyReference.cache View File


+ 75
- 7
TENDEN-MES-SYS/量產訂單管理/出貨明細表.Designer.vb View File

23
     <System.Diagnostics.DebuggerStepThrough()>
23
     <System.Diagnostics.DebuggerStepThrough()>
24
     Private  Sub InitializeComponent()
24
     Private  Sub InitializeComponent()
25
         Dim DataGridViewCellStyle1 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()
26
         Me.訂單明細表_dgv = New System.Windows.Forms.DataGridView()
27
         Me.訂單明細表_dgv = New System.Windows.Forms.DataGridView()
27
         Me.搜尋_bt = New System.Windows.Forms.Button()
28
         Me.搜尋_bt = New System.Windows.Forms.Button()
28
         Me.驗貨報告編號_tb = New System.Windows.Forms.TextBox()
29
         Me.驗貨報告編號_tb = New System.Windows.Forms.TextBox()
61
         Me.資料庫選擇2_bt = New System.Windows.Forms.Button()
62
         Me.資料庫選擇2_bt = New System.Windows.Forms.Button()
62
         Me.資料庫選擇1_bt = New System.Windows.Forms.Button()
63
         Me.資料庫選擇1_bt = New System.Windows.Forms.Button()
63
         Me.Label20 = New System.Windows.Forms.Label()
64
         Me.Label20 = New System.Windows.Forms.Label()
65
+        Me.明細表_dgv = New System.Windows.Forms.DataGridView()
66
+        Me.Label6 = New System.Windows.Forms.Label()
67
+        Me.客戶訂單號_tb = New System.Windows.Forms.TextBox()
68
+        Me.天盾訂單號_tb = New System.Windows.Forms.TextBox()
69
+        Me.Label7 = New System.Windows.Forms.Label()
64
         CType(Me.訂單明細表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
70
         CType(Me.訂單明細表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
65
         CType(Me.驗貨報告_pb, System.ComponentModel.ISupportInitialize).BeginInit()
71
         CType(Me.驗貨報告_pb, System.ComponentModel.ISupportInitialize).BeginInit()
66
         CType(Me.驗貨報告圖庫_pb, System.ComponentModel.ISupportInitialize).BeginInit()
72
         CType(Me.驗貨報告圖庫_pb, System.ComponentModel.ISupportInitialize).BeginInit()
73
+        CType(Me.明細表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
67
         Me.SuspendLayout()
74
         Me.SuspendLayout()
68
         '
75
         '
69
         '訂單明細表_dgv
76
         '訂單明細表_dgv
76
         Me.訂單明細表_dgv.Name = "訂單明細表_dgv"
83
         Me.訂單明細表_dgv.Name = "訂單明細表_dgv"
77
         Me.訂單明細表_dgv.RowHeadersWidth = 5
84
         Me.訂單明細表_dgv.RowHeadersWidth = 5
78
         Me.訂單明細表_dgv.RowTemplate.Height = 24
85
         Me.訂單明細表_dgv.RowTemplate.Height = 24
79
-        Me.訂單明細表_dgv.Size = New System.Drawing.Size(1558, 883)
86
+        Me.訂單明細表_dgv.Size = New System.Drawing.Size(1558, 657)
80
         Me.訂單明細表_dgv.TabIndex = 2
87
         Me.訂單明細表_dgv.TabIndex = 2
81
         '
88
         '
82
         '搜尋_bt
89
         '搜尋_bt
83
         '
90
         '
84
         Me.搜尋_bt.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
91
         Me.搜尋_bt.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
85
         Me.搜尋_bt.ForeColor = System.Drawing.Color.Red
92
         Me.搜尋_bt.ForeColor = System.Drawing.Color.Red
86
-        Me.搜尋_bt.Location = New System.Drawing.Point(1094, 6)
93
+        Me.搜尋_bt.Location = New System.Drawing.Point(892, 5)
87
         Me.搜尋_bt.Name = "搜尋_bt"
94
         Me.搜尋_bt.Name = "搜尋_bt"
88
         Me.搜尋_bt.Size = New System.Drawing.Size(115, 53)
95
         Me.搜尋_bt.Size = New System.Drawing.Size(115, 53)
89
         Me.搜尋_bt.TabIndex = 303
96
         Me.搜尋_bt.TabIndex = 303
111
         '
118
         '
112
         Me.開啟訂單明細表_bt.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
119
         Me.開啟訂單明細表_bt.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
113
         Me.開啟訂單明細表_bt.ForeColor = System.Drawing.Color.Black
120
         Me.開啟訂單明細表_bt.ForeColor = System.Drawing.Color.Black
114
-        Me.開啟訂單明細表_bt.Location = New System.Drawing.Point(892, 6)
121
+        Me.開啟訂單明細表_bt.Location = New System.Drawing.Point(1706, 36)
115
         Me.開啟訂單明細表_bt.Name = "開啟訂單明細表_bt"
122
         Me.開啟訂單明細表_bt.Name = "開啟訂單明細表_bt"
116
         Me.開啟訂單明細表_bt.Size = New System.Drawing.Size(196, 54)
123
         Me.開啟訂單明細表_bt.Size = New System.Drawing.Size(196, 54)
117
         Me.開啟訂單明細表_bt.TabIndex = 327
124
         Me.開啟訂單明細表_bt.TabIndex = 327
118
         Me.開啟訂單明細表_bt.Text = "開啟訂單明細表"
125
         Me.開啟訂單明細表_bt.Text = "開啟訂單明細表"
119
         Me.開啟訂單明細表_bt.UseVisualStyleBackColor = True
126
         Me.開啟訂單明細表_bt.UseVisualStyleBackColor = True
127
+        Me.開啟訂單明細表_bt.Visible = False
120
         '
128
         '
121
         '驗貨報告_pb
129
         '驗貨報告_pb
122
         '
130
         '
389
         '
397
         '
390
         Me.列印成EXCEL_bt.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
398
         Me.列印成EXCEL_bt.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
391
         Me.列印成EXCEL_bt.ForeColor = System.Drawing.Color.Black
399
         Me.列印成EXCEL_bt.ForeColor = System.Drawing.Color.Black
392
-        Me.列印成EXCEL_bt.Location = New System.Drawing.Point(1215, 6)
400
+        Me.列印成EXCEL_bt.Location = New System.Drawing.Point(1010, 5)
393
         Me.列印成EXCEL_bt.Name = "列印成EXCEL_bt"
401
         Me.列印成EXCEL_bt.Name = "列印成EXCEL_bt"
394
         Me.列印成EXCEL_bt.Size = New System.Drawing.Size(115, 53)
402
         Me.列印成EXCEL_bt.Size = New System.Drawing.Size(115, 53)
395
         Me.列印成EXCEL_bt.TabIndex = 544
403
         Me.列印成EXCEL_bt.TabIndex = 544
398
         '
406
         '
399
         '資料庫選擇2_bt
407
         '資料庫選擇2_bt
400
         '
408
         '
401
-        Me.資料庫選擇2_bt.Location = New System.Drawing.Point(1219, 62)
409
+        Me.資料庫選擇2_bt.Location = New System.Drawing.Point(263, 62)
402
         Me.資料庫選擇2_bt.Name = "資料庫選擇2_bt"
410
         Me.資料庫選擇2_bt.Name = "資料庫選擇2_bt"
403
         Me.資料庫選擇2_bt.Size = New System.Drawing.Size(75, 30)
411
         Me.資料庫選擇2_bt.Size = New System.Drawing.Size(75, 30)
404
         Me.資料庫選擇2_bt.TabIndex = 547
412
         Me.資料庫選擇2_bt.TabIndex = 547
407
         '
415
         '
408
         '資料庫選擇1_bt
416
         '資料庫選擇1_bt
409
         '
417
         '
410
-        Me.資料庫選擇1_bt.Location = New System.Drawing.Point(1141, 62)
418
+        Me.資料庫選擇1_bt.Location = New System.Drawing.Point(185, 62)
411
         Me.資料庫選擇1_bt.Name = "資料庫選擇1_bt"
419
         Me.資料庫選擇1_bt.Name = "資料庫選擇1_bt"
412
         Me.資料庫選擇1_bt.Size = New System.Drawing.Size(75, 30)
420
         Me.資料庫選擇1_bt.Size = New System.Drawing.Size(75, 30)
413
         Me.資料庫選擇1_bt.TabIndex = 546
421
         Me.資料庫選擇1_bt.TabIndex = 546
417
         'Label20
425
         'Label20
418
         '
426
         '
419
         Me.Label20.AutoSize = True
427
         Me.Label20.AutoSize = True
420
-        Me.Label20.Location = New System.Drawing.Point(1098, 61)
428
+        Me.Label20.Location = New System.Drawing.Point(142, 61)
421
         Me.Label20.Name = "Label20"
429
         Me.Label20.Name = "Label20"
422
         Me.Label20.Size = New System.Drawing.Size(44, 32)
430
         Me.Label20.Size = New System.Drawing.Size(44, 32)
423
         Me.Label20.TabIndex = 545
431
         Me.Label20.TabIndex = 545
424
         Me.Label20.Text = "選擇訂" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "單品牌"
432
         Me.Label20.Text = "選擇訂" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "單品牌"
425
         '
433
         '
434
+        '明細表_dgv
435
+        '
436
+        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
437
+        Me.明細表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
438
+        Me.明細表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
439
+            Or System.Windows.Forms.AnchorStyles.Left) _
440
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
441
+        Me.明細表_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
442
+        Me.明細表_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
443
+        Me.明細表_dgv.Location = New System.Drawing.Point(344, 782)
444
+        Me.明細表_dgv.Name = "明細表_dgv"
445
+        Me.明細表_dgv.RowHeadersWidth = 5
446
+        Me.明細表_dgv.RowTemplate.Height = 24
447
+        Me.明細表_dgv.Size = New System.Drawing.Size(1558, 204)
448
+        Me.明細表_dgv.TabIndex = 548
449
+        '
450
+        'Label6
451
+        '
452
+        Me.Label6.AutoSize = True
453
+        Me.Label6.Location = New System.Drawing.Point(344, 759)
454
+        Me.Label6.Name = "Label6"
455
+        Me.Label6.Size = New System.Drawing.Size(77, 16)
456
+        Me.Label6.TabIndex = 550
457
+        Me.Label6.Text = "CLIENT PO#"
458
+        '
459
+        '客戶訂單號_tb
460
+        '
461
+        Me.客戶訂單號_tb.Location = New System.Drawing.Point(428, 756)
462
+        Me.客戶訂單號_tb.Name = "客戶訂單號_tb"
463
+        Me.客戶訂單號_tb.Size = New System.Drawing.Size(130, 23)
464
+        Me.客戶訂單號_tb.TabIndex = 549
465
+        '
466
+        '天盾訂單號_tb
467
+        '
468
+        Me.天盾訂單號_tb.ForeColor = System.Drawing.Color.Black
469
+        Me.天盾訂單號_tb.Location = New System.Drawing.Point(656, 756)
470
+        Me.天盾訂單號_tb.Name = "天盾訂單號_tb"
471
+        Me.天盾訂單號_tb.Size = New System.Drawing.Size(130, 23)
472
+        Me.天盾訂單號_tb.TabIndex = 551
473
+        '
474
+        'Label7
475
+        '
476
+        Me.Label7.AutoSize = True
477
+        Me.Label7.Location = New System.Drawing.Point(564, 759)
478
+        Me.Label7.Name = "Label7"
479
+        Me.Label7.Size = New System.Drawing.Size(90, 16)
480
+        Me.Label7.TabIndex = 552
481
+        Me.Label7.Text = "Tendenza Po#"
482
+        '
426
         '出貨明細表
483
         '出貨明細表
427
         '
484
         '
428
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
485
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
429
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
486
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
430
         Me.ClientSize = New System.Drawing.Size(1914, 991)
487
         Me.ClientSize = New System.Drawing.Size(1914, 991)
488
+        Me.Controls.Add(Me.天盾訂單號_tb)
489
+        Me.Controls.Add(Me.Label7)
490
+        Me.Controls.Add(Me.Label6)
491
+        Me.Controls.Add(Me.客戶訂單號_tb)
492
+        Me.Controls.Add(Me.明細表_dgv)
431
         Me.Controls.Add(Me.資料庫選擇2_bt)
493
         Me.Controls.Add(Me.資料庫選擇2_bt)
432
         Me.Controls.Add(Me.資料庫選擇1_bt)
494
         Me.Controls.Add(Me.資料庫選擇1_bt)
433
         Me.Controls.Add(Me.Label20)
495
         Me.Controls.Add(Me.Label20)
473
         CType(Me.訂單明細表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
535
         CType(Me.訂單明細表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
474
         CType(Me.驗貨報告_pb, System.ComponentModel.ISupportInitialize).EndInit()
536
         CType(Me.驗貨報告_pb, System.ComponentModel.ISupportInitialize).EndInit()
475
         CType(Me.驗貨報告圖庫_pb, System.ComponentModel.ISupportInitialize).EndInit()
537
         CType(Me.驗貨報告圖庫_pb, System.ComponentModel.ISupportInitialize).EndInit()
538
+        CType(Me.明細表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
476
         Me.ResumeLayout(False)
539
         Me.ResumeLayout(False)
477
         Me.PerformLayout()
540
         Me.PerformLayout()
478
 
541
 
516
     Friend WithEvents 資料庫選擇2_bt As Button
579
     Friend WithEvents 資料庫選擇2_bt As Button
517
     Friend WithEvents 資料庫選擇1_bt As Button
580
     Friend WithEvents 資料庫選擇1_bt As Button
518
     Friend WithEvents Label20 As Label
581
     Friend WithEvents Label20 As Label
582
+    Friend WithEvents 明細表_dgv As DataGridView
583
+    Friend WithEvents Label6 As Label
584
+    Friend WithEvents 客戶訂單號_tb As TextBox
585
+    Friend WithEvents 天盾訂單號_tb As TextBox
586
+    Friend WithEvents Label7 As Label
519
 End Class
587
 End Class
520
 
588
 

+ 59
- 1
TENDEN-MES-SYS/量產訂單管理/出貨明細表.vb View File

1
 Option Strict Off
1
 Option Strict Off
2
 Imports System.IO
2
 Imports System.IO
3
 Public Class 出貨明細表
3
 Public Class 出貨明細表
4
-    ReadOnly ds As New DataSet
4
+    ReadOnly ds, ds2 As New DataSet
5
     Dim kkk1 As String : Dim kkk2 As String : Dim kkk3 As String : Dim kkk4 As String : Dim kkk5 As String : Dim kkk6 As String
5
     Dim kkk1 As String : Dim kkk2 As String : Dim kkk3 As String : Dim kkk4 As String : Dim kkk5 As String : Dim kkk6 As String
6
     Private Sub Set_DGV1載入前設定()
6
     Private Sub Set_DGV1載入前設定()
7
         訂單明細表_dgv.DataSource = Nothing : ds.Clear()
7
         訂單明細表_dgv.DataSource = Nothing : ds.Clear()
27
                             貨款匯入出款明細表.楦型 = " & 訂單資料表(1) & ".楦型 AND 
27
                             貨款匯入出款明細表.楦型 = " & 訂單資料表(1) & ".楦型 AND 
28
                             貨款匯入出款明細表.形體號 = " & 訂單資料表(1) & ".形體號 AND 
28
                             貨款匯入出款明細表.形體號 = " & 訂單資料表(1) & ".形體號 AND 
29
                             貨款匯入出款明細表.訂單流水號 = " & 訂單資料表(1) & ".訂單流水號 " & kkk1 & kkk2 & kkk3 & kkk4 & kkk5 & kkk6 & "
29
                             貨款匯入出款明細表.訂單流水號 = " & 訂單資料表(1) & ".訂單流水號 " & kkk1 & kkk2 & kkk3 & kkk4 & kkk5 & kkk6 & "
30
+                   GROUP BY 貨款匯入出款明細表.貨款流水號, 貨款匯入出款明細表.訂單流水號, 貨款匯入出款明細表.年份季度, 
31
+                            貨款匯入出款明細表.客戶訂單號, 貨款匯入出款明細表.形體號, 貨款匯入出款明細表.顏色, 
32
+                            貨款匯入出款明細表.楦型, 貨款匯入出款明細表.訂單數量, 貨款匯入出款明細表.出貨數量, 
33
+                            " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠, " & 訂單資料表(1) & ".訂單種類, 
34
+                            " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".工廠回復交期, 貨款匯入出款明細表.實際離廠日, 
35
+                            " & 訂單資料表(1) & ".明細建檔, " & 訂單資料表(1) & ".驗貨報告圖片, " & 訂單資料表(1) & ".TVW
30
                     ORDER BY   貨款匯入出款明細表.訂單流水號 DESC, 貨款匯入出款明細表.形體號, 貨款匯入出款明細表.顏色, 
36
                     ORDER BY   貨款匯入出款明細表.訂單流水號 DESC, 貨款匯入出款明細表.形體號, 貨款匯入出款明細表.顏色, 
31
                             貨款匯入出款明細表.楦型"
37
                             貨款匯入出款明細表.楦型"
32
         Else
38
         Else
43
                             貨款匯入出款明細表.訂單流水號 = " & 訂單資料表(1) & ".訂單流水號 " & kkk1 & kkk2 & kkk3 & kkk4 & kkk5 & kkk6 & " AND 
49
                             貨款匯入出款明細表.訂單流水號 = " & 訂單資料表(1) & ".訂單流水號 " & kkk1 & kkk2 & kkk3 & kkk4 & kkk5 & kkk6 & " AND 
44
                            (貨款匯入出款明細表.訂單流水號 LIKE '%" & PA & "%' OR 貨款匯入出款明細表.客戶訂單號 LIKE '%" & PA & "%' OR 貨款匯入出款明細表.形體號 LIKE '%" & PA & "%' OR 
50
                            (貨款匯入出款明細表.訂單流水號 LIKE '%" & PA & "%' OR 貨款匯入出款明細表.客戶訂單號 LIKE '%" & PA & "%' OR 貨款匯入出款明細表.形體號 LIKE '%" & PA & "%' OR 
45
                             貨款匯入出款明細表.顏色 LIKE '%" & PA & "%' OR 貨款匯入出款明細表.楦型 LIKE '%" & PA & "%' OR " & 訂單資料表(1) & ".備註 LIKE '%" & PA & "%') 
51
                             貨款匯入出款明細表.顏色 LIKE '%" & PA & "%' OR 貨款匯入出款明細表.楦型 LIKE '%" & PA & "%' OR " & 訂單資料表(1) & ".備註 LIKE '%" & PA & "%') 
52
+                   GROUP BY 貨款匯入出款明細表.貨款流水號, 貨款匯入出款明細表.訂單流水號, 貨款匯入出款明細表.年份季度, 
53
+                            貨款匯入出款明細表.客戶訂單號, 貨款匯入出款明細表.形體號, 貨款匯入出款明細表.顏色, 
54
+                            貨款匯入出款明細表.楦型, 貨款匯入出款明細表.訂單數量, 貨款匯入出款明細表.出貨數量, 
55
+                            " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠, " & 訂單資料表(1) & ".訂單種類, 
56
+                            " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".工廠回復交期, 貨款匯入出款明細表.實際離廠日, 
57
+                            " & 訂單資料表(1) & ".明細建檔, " & 訂單資料表(1) & ".驗貨報告圖片, " & 訂單資料表(1) & ".TVW
46
                     ORDER BY   貨款匯入出款明細表.訂單流水號 DESC, 貨款匯入出款明細表.形體號, 貨款匯入出款明細表.顏色, 
58
                     ORDER BY   貨款匯入出款明細表.訂單流水號 DESC, 貨款匯入出款明細表.形體號, 貨款匯入出款明細表.顏色, 
47
                             貨款匯入出款明細表.楦型"
59
                             貨款匯入出款明細表.楦型"
48
         End If
60
         End If
65
         訂單明細表_dgv.Columns(13).FillWeight = 80 : 訂單明細表_dgv.Columns(14).FillWeight = 80 : 訂單明細表_dgv.Columns(15).FillWeight = 90
77
         訂單明細表_dgv.Columns(13).FillWeight = 80 : 訂單明細表_dgv.Columns(14).FillWeight = 80 : 訂單明細表_dgv.Columns(15).FillWeight = 90
66
         訂單明細表_dgv.Columns(16).Visible = False : 訂單明細表_dgv.Columns(17).Visible = False
78
         訂單明細表_dgv.Columns(16).Visible = False : 訂單明細表_dgv.Columns(17).Visible = False
67
     End Sub
79
     End Sub
80
+    Private Sub Set_訂單明細()
81
+        明細表_dgv.DataSource = Nothing : ds2.Clear()
82
+        明細表_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
83
+        明細表_dgv.ColumnHeadersHeight = 25
84
+        明細表_dgv.AllowUserToAddRows = False
85
+        ConnOpen()
86
+        SQL1 = "SELECT      " & 訂單資料表(5) & ".天盾流水號, " & 訂單資料表(5) & ".客戶訂單號, " & 訂單資料表(5) & ".ItemNumber, " & 訂單資料表(5) & ".ProductName, 
87
+                            " & 訂單資料表(5) & ".ProductDescription, " & 訂單資料表(5) & ".Color, " & 訂單資料表(5) & ".DM, " & 訂單資料表(5) & ".[5], " & 訂單資料表(5) & ".[5.5], 
88
+                            " & 訂單資料表(5) & ".[6], " & 訂單資料表(5) & ".[6.5], " & 訂單資料表(5) & ".[7], " & 訂單資料表(5) & ".[7.5], " & 訂單資料表(5) & ".[8], " & 訂單資料表(5) & ".[8.5], 
89
+                            " & 訂單資料表(5) & ".[9], " & 訂單資料表(5) & ".[9.5], " & 訂單資料表(5) & ".[10], " & 訂單資料表(5) & ".[10.5], " & 訂單資料表(5) & ".[11], " & 訂單資料表(5) & ".[11.5], 
90
+                            " & 訂單資料表(5) & ".[12], " & 訂單資料表(5) & ".[12.5], " & 訂單資料表(5) & ".[13], " & 訂單資料表(5) & ".[14], " & 訂單資料表(5) & ".[5] + " & 訂單資料表(5) & ".[5.5] + 
91
+                            " & 訂單資料表(5) & ".[6] + " & 訂單資料表(5) & ".[6.5] + " & 訂單資料表(5) & ".[7] + " & 訂單資料表(5) & ".[7.5] + " & 訂單資料表(5) & ".[8] + " & 訂單資料表(5) & ".[8.5] + 
92
+                            " & 訂單資料表(5) & ".[9] + " & 訂單資料表(5) & ".[9.5] + " & 訂單資料表(5) & ".[10] + " & 訂單資料表(5) & ".[10.5] + " & 訂單資料表(5) & ".[11] + " & 訂單資料表(5) & ".[11.5]
93
+                            + " & 訂單資料表(5) & ".[12] + " & 訂單資料表(5) & ".[12.5] + " & 訂單資料表(5) & ".[13] + " & 訂單資料表(5) & ".[14] AS TOTAL
94
+                FROM        " & 訂單資料表(5) & " INNER JOIN
95
+                            (SELECT   訂單流水號, 客戶訂單號, 形體號, 顏色, 楦型, 訂單數量, CXL
96
+                             FROM     " & 訂單資料表(1) & "
97
+                             WHERE   (客戶訂單號 LIKE '" & 客戶訂單號_tb.Text & "') AND (CXL = 0 OR CXL IS NULL) AND (訂單流水號 LIKE '" & 天盾訂單號_tb.Text & "')) AS WWEE ON 
98
+                             " & 訂單資料表(5) & ".天盾流水號 = WWEE.訂單流水號 AND " & 訂單資料表(5) & ".客戶訂單號 = WWEE.客戶訂單號 AND " & 訂單資料表(5) & ".ProductName = WWEE.形體號 AND 
99
+                             " & 訂單資料表(5) & ".Color = WWEE.顏色 AND  " & 訂單資料表(5) & ".DM = WWEE.楦型 AND " & 訂單資料表(5) & ".[5] + " & 訂單資料表(5) & ".[5.5] + " & 訂單資料表(5) & ".[6] + 
100
+                             " & 訂單資料表(5) & ".[6.5] + " & 訂單資料表(5) & ".[7] + " & 訂單資料表(5) & ".[7.5] + " & 訂單資料表(5) & ".[8] + " & 訂單資料表(5) & ".[8.5] + " & 訂單資料表(5) & ".[9] + 
101
+                             " & 訂單資料表(5) & ".[9.5] + " & 訂單資料表(5) & ".[10] + " & 訂單資料表(5) & ".[10.5] + " & 訂單資料表(5) & ".[11] + " & 訂單資料表(5) & ".[11.5] + 
102
+                             " & 訂單資料表(5) & ".[12] + " & 訂單資料表(5) & ".[12.5] + " & 訂單資料表(5) & ".[13] + " & 訂單資料表(5) & ".[14] = WWEE.訂單數量
103
+                WHERE      (" & 訂單資料表(5) & ".客戶訂單號 LIKE '" & 客戶訂單號_tb.Text & "') AND (" & 訂單資料表(5) & ".天盾流水號 LIKE '" & 天盾訂單號_tb.Text & "') AND (WWEE.CXL = 0 OR WWEE.CXL IS NULL)
104
+                ORDER BY   " & 訂單資料表(5) & ".ProductName, " & 訂單資料表(5) & ".Color"
105
+        CmdSet_For_DGV() : da.SelectCommand.CommandTimeout = 900 : da.Fill(ds2) : 明細表_dgv.DataSource = ds2.Tables(0) : conn.Close()
106
+
107
+        明細表_dgv.Columns(0).Visible = False : 明細表_dgv.Columns(1).Visible = False
108
+        明細表_dgv.Columns(2).FillWeight = 90 : 明細表_dgv.Columns(3).FillWeight = 90 : 明細表_dgv.Columns(4).FillWeight = 190 : 明細表_dgv.Columns(5).FillWeight = 80
109
+        明細表_dgv.Columns(6).FillWeight = 70 : 明細表_dgv.Columns(7).FillWeight = 40 : 明細表_dgv.Columns(8).FillWeight = 40 : 明細表_dgv.Columns(9).FillWeight = 40
110
+        明細表_dgv.Columns(10).FillWeight = 40 : 明細表_dgv.Columns(11).FillWeight = 40 : 明細表_dgv.Columns(12).FillWeight = 40 : 明細表_dgv.Columns(13).FillWeight = 40
111
+        明細表_dgv.Columns(14).FillWeight = 40 : 明細表_dgv.Columns(15).FillWeight = 40 : 明細表_dgv.Columns(16).FillWeight = 40 : 明細表_dgv.Columns(17).FillWeight = 40
112
+        明細表_dgv.Columns(18).FillWeight = 40 : 明細表_dgv.Columns(19).FillWeight = 40 : 明細表_dgv.Columns(20).FillWeight = 40 : 明細表_dgv.Columns(21).FillWeight = 40
113
+        明細表_dgv.Columns(22).FillWeight = 40 : 明細表_dgv.Columns(23).FillWeight = 40 : 明細表_dgv.Columns(24).FillWeight = 40 : 明細表_dgv.Columns(25).FillWeight = 60
114
+        明細表_dgv.Columns(7).DefaultCellStyle.Format = "#,##0" : 明細表_dgv.Columns(8).DefaultCellStyle.Format = "#,##0" : 明細表_dgv.Columns(9).DefaultCellStyle.Format = "#,##0"
115
+        明細表_dgv.Columns(10).DefaultCellStyle.Format = "#,##0" : 明細表_dgv.Columns(11).DefaultCellStyle.Format = "#,##0" : 明細表_dgv.Columns(12).DefaultCellStyle.Format = "#,##0"
116
+        明細表_dgv.Columns(13).DefaultCellStyle.Format = "#,##0" : 明細表_dgv.Columns(14).DefaultCellStyle.Format = "#,##0" : 明細表_dgv.Columns(15).DefaultCellStyle.Format = "#,##0"
117
+        明細表_dgv.Columns(16).DefaultCellStyle.Format = "#,##0" : 明細表_dgv.Columns(17).DefaultCellStyle.Format = "#,##0" : 明細表_dgv.Columns(18).DefaultCellStyle.Format = "#,##0"
118
+        明細表_dgv.Columns(19).DefaultCellStyle.Format = "#,##0" : 明細表_dgv.Columns(20).DefaultCellStyle.Format = "#,##0" : 明細表_dgv.Columns(21).DefaultCellStyle.Format = "#,##0"
119
+        明細表_dgv.Columns(22).DefaultCellStyle.Format = "#,##0" : 明細表_dgv.Columns(23).DefaultCellStyle.Format = "#,##0" : 明細表_dgv.Columns(24).DefaultCellStyle.Format = "#,##0"
120
+        明細表_dgv.Columns(25).DefaultCellStyle.Format = "#,##0"
121
+    End Sub
122
+
68
     Private Sub ComboBox1下拉表單資料載入()
123
     Private Sub ComboBox1下拉表單資料載入()
69
         conn1.Close()
124
         conn1.Close()
70
         If conn1.State = ConnectionState.Closed Then : conn1.ConnectionString = ConString : conn1.Open() : End If
125
         If conn1.State = ConnectionState.Closed Then : conn1.ConnectionString = ConString : conn1.Open() : End If
111
         If e.RowIndex = -1 Then : Else
166
         If e.RowIndex = -1 Then : Else
112
             驗貨報告編號_tb.Text = 訂單明細表_dgv(1, e.RowIndex).Value.ToString
167
             驗貨報告編號_tb.Text = 訂單明細表_dgv(1, e.RowIndex).Value.ToString
113
             明細是否建檔_cb.Checked = 訂單明細表_dgv(15, e.RowIndex).Value.ToString
168
             明細是否建檔_cb.Checked = 訂單明細表_dgv(15, e.RowIndex).Value.ToString
169
+            天盾訂單號_tb.Text = 訂單明細表_dgv("訂單流水號", e.RowIndex).Value.ToString
170
+            客戶訂單號_tb.Text = 訂單明細表_dgv("客戶訂單號", e.RowIndex).Value.ToString
114
             If 明細是否建檔_cb.Checked = False Then : 開啟訂單明細表_bt.Enabled = False : Else : 開啟訂單明細表_bt.Enabled = True : End If
171
             If 明細是否建檔_cb.Checked = False Then : 開啟訂單明細表_bt.Enabled = False : Else : 開啟訂單明細表_bt.Enabled = True : End If
115
 
172
 
116
             If 訂單明細表_dgv(5, e.RowIndex).Value = "" Then
173
             If 訂單明細表_dgv(5, e.RowIndex).Value = "" Then
163
             conn.Close() : 驗貨報告圖庫_pb.SizeMode = 4
220
             conn.Close() : 驗貨報告圖庫_pb.SizeMode = 4
164
 
221
 
165
             驗貨報告 = 訂單明細表_dgv(16, e.RowIndex).Value.ToString
222
             驗貨報告 = 訂單明細表_dgv(16, e.RowIndex).Value.ToString
223
+            Set_訂單明細()
166
         End If
224
         End If
167
     End Sub
225
     End Sub
168
     Private Sub DataGridView1_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 訂單明細表_dgv.RowPostPaint
226
     Private Sub DataGridView1_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 訂單明細表_dgv.RowPostPaint

+ 16
- 4
TENDEN-MES-SYS/量產訂單管理/列印_周進度表.vb View File

14
     Dim xlApp As Application
14
     Dim xlApp As Application
15
     Dim xlBook As Workbook
15
     Dim xlBook As Workbook
16
     Dim xlSheet As Worksheet
16
     Dim xlSheet As Worksheet
17
+    Dim PID As String
17
     Public Property ThisWorkbook As Object
18
     Public Property ThisWorkbook As Object
18
     Public Property ActiveWorkbook As Object
19
     Public Property ActiveWorkbook As Object
19
     Dim N1 As Integer = 0
20
     Dim N1 As Integer = 0
79
             xlSheet.Cells(i + 4, 14) = DataGridView1.Rows(i).Cells("Lasting").Value
80
             xlSheet.Cells(i + 4, 14) = DataGridView1.Rows(i).Cells("Lasting").Value
80
             xlSheet.Cells(i + 4, 15) = DataGridView1.Rows(i).Cells("Special_Packaging").Value
81
             xlSheet.Cells(i + 4, 15) = DataGridView1.Rows(i).Cells("Special_Packaging").Value
81
             xlSheet.Cells(i + 4, 16) = DataGridView1.Rows(i).Cells("Remarks").Value
82
             xlSheet.Cells(i + 4, 16) = DataGridView1.Rows(i).Cells("Remarks").Value
83
+
82
             With xlApp.Selection
84
             With xlApp.Selection
83
                 .Font.Bold = True
85
                 .Font.Bold = True
84
             End With
86
             End With
92
         Set_格式設定()
94
         Set_格式設定()
93
     End Sub
95
     End Sub
94
     Private Sub Button11_Click(sender As Object, e As EventArgs) Handles Button11.Click
96
     Private Sub Button11_Click(sender As Object, e As EventArgs) Handles Button11.Click
97
+        If 訂單資料庫選擇.品牌V_R判斷 = "V" Then
98
+            PID = "VIONIC and VOLIN'L"
99
+        ElseIf 訂單資料庫選擇.品牌V_R判斷 = "R" Then
100
+            PID = "DRS / LIF"
101
+        End If
102
+        If 周進度表.品牌V_R判斷 = "V" Then
103
+            PID = "VIONIC and VOLIN'L"
104
+        ElseIf 周進度表.品牌V_R判斷 = "R" Then
105
+            PID = "DRS / LIF"
106
+        End If
95
         xlApp = CType(CreateObject("Excel.Application"), Application)
107
         xlApp = CType(CreateObject("Excel.Application"), Application)
96
         xlApp.Visible = True
108
         xlApp.Visible = True
97
         xlApp.DisplayAlerts = True
109
         xlApp.DisplayAlerts = True
110
         xlSheet.Activate()
122
         xlSheet.Activate()
111
         OPEXC(0) = True : OPEXC(1) = False : OPEXC(2) = False : OPEXC(3) = False
123
         OPEXC(0) = True : OPEXC(1) = False : OPEXC(2) = False : OPEXC(3) = False
112
         xlSheet.Range("A1").Select()
124
         xlSheet.Range("A1").Select()
113
-        xlSheet.Cells(1, 1) = "Weekly Prod Schedule for VIONIC and VOLINT'L" : xlSheet.Cells(2, 15) = "DATE : " : xlSheet.Cells(2, 16) = "=Today()"
125
+        xlSheet.Cells(1, 1) = "Weekly Prod Schedule for " & PID & "" : xlSheet.Cells(2, 15) = "DATE : " : xlSheet.Cells(2, 16) = "=Today()"
114
         Set_循環列印()
126
         Set_循環列印()
115
         '----------------------------------------------------------------------------------------------------------------------
127
         '----------------------------------------------------------------------------------------------------------------------
116
         xlSheet = NewMethod(xlBook)
128
         xlSheet = NewMethod(xlBook)
125
         xlSheet.Activate()
137
         xlSheet.Activate()
126
         OPEXC(0) = False : OPEXC(1) = True : OPEXC(2) = False : OPEXC(3) = False
138
         OPEXC(0) = False : OPEXC(1) = True : OPEXC(2) = False : OPEXC(3) = False
127
         xlSheet.Range("A1").Select()
139
         xlSheet.Range("A1").Select()
128
-        xlSheet.Cells(1, 1) = "Weekly Prod Schedule for VIONIC and VOLINT'L" : xlSheet.Cells(2, 1) = "JH" : xlSheet.Cells(2, 15) = "DATE : " : xlSheet.Cells(2, 16) = "=Today()"
140
+        xlSheet.Cells(1, 1) = "Weekly Prod Schedule for " & PID & "" : xlSheet.Cells(2, 1) = "JH" : xlSheet.Cells(2, 15) = "DATE : " : xlSheet.Cells(2, 16) = "=Today()"
129
         Set_循環列印()
141
         Set_循環列印()
130
         '----------------------------------------------------------------------------------------------------------------------
142
         '----------------------------------------------------------------------------------------------------------------------
131
         xlSheet = NewMethod(xlBook)
143
         xlSheet = NewMethod(xlBook)
140
         xlSheet.Activate()
152
         xlSheet.Activate()
141
         OPEXC(0) = False : OPEXC(1) = False : OPEXC(2) = True : OPEXC(3) = False
153
         OPEXC(0) = False : OPEXC(1) = False : OPEXC(2) = True : OPEXC(3) = False
142
         xlSheet.Range("A1").Select()
154
         xlSheet.Range("A1").Select()
143
-        xlSheet.Cells(1, 1) = "Weekly Prod Schedule for VIONIC and VOLINT'L" : xlSheet.Cells(2, 1) = "SK" : xlSheet.Cells(2, 15) = "DATE : " : xlSheet.Cells(2, 16) = "=Today()"
155
+        xlSheet.Cells(1, 1) = "Weekly Prod Schedule for " & PID & "" : xlSheet.Cells(2, 1) = "SK" : xlSheet.Cells(2, 15) = "DATE : " : xlSheet.Cells(2, 16) = "=Today()"
144
         Set_循環列印()
156
         Set_循環列印()
145
         '----------------------------------------------------------------------------------------------------------------------
157
         '----------------------------------------------------------------------------------------------------------------------
146
         xlSheet = NewMethod(xlBook)
158
         xlSheet = NewMethod(xlBook)
155
         xlSheet.Activate()
167
         xlSheet.Activate()
156
         OPEXC(0) = False : OPEXC(1) = False : OPEXC(2) = False : OPEXC(3) = True
168
         OPEXC(0) = False : OPEXC(1) = False : OPEXC(2) = False : OPEXC(3) = True
157
         xlSheet.Range("A1").Select()
169
         xlSheet.Range("A1").Select()
158
-        xlSheet.Cells(1, 1) = "Weekly Prod Schedule for VIONIC and VOLINT'L" : xlSheet.Cells(2, 1) = "NJ" : xlSheet.Cells(2, 15) = "DATE : " : xlSheet.Cells(2, 16) = "=Today()"
170
+        xlSheet.Cells(1, 1) = "Weekly Prod Schedule for " & PID & "" : xlSheet.Cells(2, 1) = "NJ" : xlSheet.Cells(2, 15) = "DATE : " : xlSheet.Cells(2, 16) = "=Today()"
159
         Set_循環列印()
171
         Set_循環列印()
160
         '----------------------------------------------------------------------------------------------------------------------
172
         '----------------------------------------------------------------------------------------------------------------------
161
         If xlApp.Sheets(5).Name = "工作表1" Then
173
         If xlApp.Sheets(5).Name = "工作表1" Then

+ 15
- 4
TENDEN-MES-SYS/量產訂單管理/列印_周進度表T1_T4.vb View File

14
     Dim xlApp As Application
14
     Dim xlApp As Application
15
     Dim xlBook As Workbook
15
     Dim xlBook As Workbook
16
     Dim xlSheet As Worksheet
16
     Dim xlSheet As Worksheet
17
+    Dim PID As String
17
     Public Property ThisWorkbook As Object
18
     Public Property ThisWorkbook As Object
18
     Public Property ActiveWorkbook As Object
19
     Public Property ActiveWorkbook As Object
19
     Dim N1 As Integer = 0
20
     Dim N1 As Integer = 0
104
         Set_格式設定()
105
         Set_格式設定()
105
     End Sub
106
     End Sub
106
     Private Sub Button11_Click(sender As Object, e As EventArgs) Handles Button11.Click
107
     Private Sub Button11_Click(sender As Object, e As EventArgs) Handles Button11.Click
108
+        If 訂單資料庫選擇.品牌V_R判斷 = "V" Then
109
+            PID = "VIONIC and VOLIN'L"
110
+        ElseIf 訂單資料庫選擇.品牌V_R判斷 = "R" Then
111
+            PID = "DRS / LIF"
112
+        End If
113
+        If 周進度表T1_T4.品牌V_R判斷 = "V" Then
114
+            PID = "VIONIC and VOLIN'L"
115
+        ElseIf 周進度表T1_T4.品牌V_R判斷 = "R" Then
116
+            PID = "DRS / LIF"
117
+        End If
107
         xlApp = CType(CreateObject("Excel.Application"), Application)
118
         xlApp = CType(CreateObject("Excel.Application"), Application)
108
         xlApp.Visible = True
119
         xlApp.Visible = True
109
         xlApp.DisplayAlerts = True
120
         xlApp.DisplayAlerts = True
116
         xlSheet.Activate()
127
         xlSheet.Activate()
117
         OPEXC(0) = True : OPEXC(1) = False : OPEXC(2) = False : OPEXC(3) = False
128
         OPEXC(0) = True : OPEXC(1) = False : OPEXC(2) = False : OPEXC(3) = False
118
         xlSheet.Range("A1").Select()
129
         xlSheet.Range("A1").Select()
119
-        xlSheet.Cells(1, 1) = "Weekly Prod Schedule for VIONIC and VOLINT'L" : xlSheet.Cells(2, 15) = "DATE : " : xlSheet.Cells(2, 16) = "=Today()"
130
+        xlSheet.Cells(1, 1) = "Weekly Prod Schedule for " & PID & "" : xlSheet.Cells(2, 15) = "Date : " : xlSheet.Cells(2, 16) = "=Today()"
120
         Set_循環列印()
131
         Set_循環列印()
121
         '----------------------------------------------------------------------------------------------------------------------
132
         '----------------------------------------------------------------------------------------------------------------------
122
         xlSheet = NewMethod(xlBook)
133
         xlSheet = NewMethod(xlBook)
125
         xlSheet.Activate()
136
         xlSheet.Activate()
126
         OPEXC(0) = False : OPEXC(1) = True : OPEXC(2) = False : OPEXC(3) = False
137
         OPEXC(0) = False : OPEXC(1) = True : OPEXC(2) = False : OPEXC(3) = False
127
         xlSheet.Range("A1").Select()
138
         xlSheet.Range("A1").Select()
128
-        xlSheet.Cells(1, 1) = "Weekly Prod Schedule for VIONIC and VOLINT'L" : xlSheet.Cells(2, 1) = "JH" : xlSheet.Cells(2, 15) = "DATE : " : xlSheet.Cells(2, 16) = "=Today()"
139
+        xlSheet.Cells(1, 1) = "Weekly Prod Schedule for " & PID & "" : xlSheet.Cells(2, 1) = "JH" : xlSheet.Cells(2, 15) = "DATE : " : xlSheet.Cells(2, 16) = "=Today()"
129
         Set_循環列印()
140
         Set_循環列印()
130
         '----------------------------------------------------------------------------------------------------------------------
141
         '----------------------------------------------------------------------------------------------------------------------
131
         xlSheet = NewMethod(xlBook)
142
         xlSheet = NewMethod(xlBook)
134
         xlSheet.Activate()
145
         xlSheet.Activate()
135
         OPEXC(0) = False : OPEXC(1) = False : OPEXC(2) = True : OPEXC(3) = False
146
         OPEXC(0) = False : OPEXC(1) = False : OPEXC(2) = True : OPEXC(3) = False
136
         xlSheet.Range("A1").Select()
147
         xlSheet.Range("A1").Select()
137
-        xlSheet.Cells(1, 1) = "Weekly Prod Schedule for VIONIC and VOLINT'L" : xlSheet.Cells(2, 1) = "SK" : xlSheet.Cells(2, 15) = "DATE : " : xlSheet.Cells(2, 16) = "=Today()"
148
+        xlSheet.Cells(1, 1) = "Weekly Prod Schedule for " & PID & "" : xlSheet.Cells(2, 1) = "SK" : xlSheet.Cells(2, 15) = "DATE : " : xlSheet.Cells(2, 16) = "=Today()"
138
         Set_循環列印()
149
         Set_循環列印()
139
         '----------------------------------------------------------------------------------------------------------------------
150
         '----------------------------------------------------------------------------------------------------------------------
140
         xlSheet = NewMethod(xlBook)
151
         xlSheet = NewMethod(xlBook)
143
         xlSheet.Activate()
154
         xlSheet.Activate()
144
         OPEXC(0) = False : OPEXC(1) = False : OPEXC(2) = False : OPEXC(3) = True
155
         OPEXC(0) = False : OPEXC(1) = False : OPEXC(2) = False : OPEXC(3) = True
145
         xlSheet.Range("A1").Select()
156
         xlSheet.Range("A1").Select()
146
-        xlSheet.Cells(1, 1) = "Weekly Prod Schedule for VIONIC and VOLINT'L" : xlSheet.Cells(2, 1) = "NJ" : xlSheet.Cells(2, 15) = "DATE : " : xlSheet.Cells(2, 16) = "=Today()"
157
+        xlSheet.Cells(1, 1) = "Weekly Prod Schedule for " & PID & "" : xlSheet.Cells(2, 1) = "NJ" : xlSheet.Cells(2, 15) = "DATE : " : xlSheet.Cells(2, 16) = "=Today()"
147
         Set_循環列印()
158
         Set_循環列印()
148
         '----------------------------------------------------------------------------------------------------------------------
159
         '----------------------------------------------------------------------------------------------------------------------
149
         xlApp.Sheets(5).Delete
160
         xlApp.Sheets(5).Delete

+ 22
- 7
TENDEN-MES-SYS/量產訂單管理/列印_生產進度表.vb View File

13
     Dim xlApp As Application
13
     Dim xlApp As Application
14
     Dim xlBook As Workbook
14
     Dim xlBook As Workbook
15
     Dim xlSheet As Worksheet
15
     Dim xlSheet As Worksheet
16
+    Dim PID As String
17
+    Public 品牌V_R判斷 As String = ""
16
     Public Property ThisWorkbook As Object
18
     Public Property ThisWorkbook As Object
17
     Public Property ActiveWorkbook As Object
19
     Public Property ActiveWorkbook As Object
18
     Dim N1 As Integer = 0
20
     Dim N1 As Integer = 0
91
             CheckBox7.Visible = True
93
             CheckBox7.Visible = True
92
         Else
94
         Else
93
             CheckBox7.Visible = False
95
             CheckBox7.Visible = False
96
+
94
         End If
97
         End If
95
     End Sub
98
     End Sub
96
     Private Sub 列印_生產進度表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
99
     Private Sub 列印_生產進度表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
97
         FormBorderStyle = FormBorderStyle.SizableToolWindow : ControlBox = False
100
         FormBorderStyle = FormBorderStyle.SizableToolWindow : ControlBox = False
98
         Set_格式設定()
101
         Set_格式設定()
102
+        If 訂單資料庫選擇.品牌V_R判斷 = "V" Then
103
+            PID = "VIONIC and VOLIN'L"
104
+        ElseIf 訂單資料庫選擇.品牌V_R判斷 = "R" Then
105
+            PID = "DRS / LIF"
106
+        End If
107
+        If 生產進度表.品牌V_R判斷 = "V" Then
108
+            PID = "VIONIC and VOLIN'L"
109
+        ElseIf 生產進度表.品牌V_R判斷 = "R" Then
110
+            PID = "DRS / LIF"
111
+        End If
112
+
113
+
99
     End Sub
114
     End Sub
100
     Private Sub Button11_Click(sender As Object, e As EventArgs) Handles 確認列印_bt.Click
115
     Private Sub Button11_Click(sender As Object, e As EventArgs) Handles 確認列印_bt.Click
101
         xlApp = CType(CreateObject("Excel.Application"), Application)
116
         xlApp = CType(CreateObject("Excel.Application"), Application)
129
         xlBook.Activate()
144
         xlBook.Activate()
130
         xlSheet.Activate()
145
         xlSheet.Activate()
131
         xlSheet.Range("A1").Select()
146
         xlSheet.Range("A1").Select()
132
-        If CheckBox7.Checked = True Then : xlSheet.Cells(1, 1) = "VIONIC W'S大貨進度表"
133
-        ElseIf NJ_cb.Checked = True Then : xlSheet.Cells(1, 1) = "VIONIC W'S大貨進度表(楠晋)"
134
-        ElseIf SK_cb.Checked = True Then : xlSheet.Cells(1, 1) = "VIONIC W'S大貨進度表(森康)"
135
-        ElseIf JH_cb.Checked = True Then : xlSheet.Cells(1, 1) = "VIONIC W'S大貨進度表(玖弘)"
136
-        ElseIf CheckBox4.Checked = True Then : xlSheet.Cells(1, 1) = "VIONIC W'S大貨進度表(玖弘-QVC)"
137
-        ElseIf CheckBox5.Checked = True Then : xlSheet.Cells(1, 1) = "VIONIC W'S大貨進度表(森康-QVC)"
138
-        ElseIf CheckBox6.Checked = True Then : xlSheet.Cells(1, 1) = "VIONIC W'S大貨進度表(楠晋-QVC)"
147
+        If CheckBox7.Checked = True Then : xlSheet.Cells(1, 1) = "" & PID & "  大貨進度表"
148
+        ElseIf NJ_cb.Checked = True Then : xlSheet.Cells(1, 1) = "" & PID & " 大貨進度表(楠晋)"
149
+        ElseIf SK_cb.Checked = True Then : xlSheet.Cells(1, 1) = "" & PID & " 大貨進度表(森康)"
150
+        ElseIf JH_cb.Checked = True Then : xlSheet.Cells(1, 1) = "" & PID & " 大貨進度表(玖弘)"
151
+        ElseIf CheckBox4.Checked = True Then : xlSheet.Cells(1, 1) = "" & PID & " 大貨進度表(玖弘-QVC)"
152
+        ElseIf CheckBox5.Checked = True Then : xlSheet.Cells(1, 1) = "" & PID & " 大貨進度表(森康-QVC)"
153
+        ElseIf CheckBox6.Checked = True Then : xlSheet.Cells(1, 1) = "" & PID & " 大貨進度表(楠晋-QVC)"
139
         End If
154
         End If
140
         xlSheet.Cells(1, 30) = "淺藍色欄位為系統輸出,請勿做任何更改"
155
         xlSheet.Cells(1, 30) = "淺藍色欄位為系統輸出,請勿做任何更改"
141
         xlSheet.Cells(2, 13) = "樣品SIZE(60天)" : xlSheet.Cells(2, 17) = "全套SIZE(45天)" : xlSheet.Cells(2, 21) = "PRODUCTION(30天)"
156
         xlSheet.Cells(2, 13) = "樣品SIZE(60天)" : xlSheet.Cells(2, 17) = "全套SIZE(45天)" : xlSheet.Cells(2, 21) = "PRODUCTION(30天)"

+ 2
- 2
TENDEN-MES-SYS/量產訂單管理/列印_訂單明細表.vb View File

20
         清單_dgv.ColumnHeadersHeight = 25
20
         清單_dgv.ColumnHeadersHeight = 25
21
         清單_dgv.AllowUserToAddRows = False
21
         清單_dgv.AllowUserToAddRows = False
22
         ConnOpen()
22
         ConnOpen()
23
-        SQL1 = "SELECT      " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".客戶訂單號, " & 訂單資料表(5) & ".ItemNumber, 
23
+        SQL1 = "SELECT      " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".力威訂單號, " & 訂單資料表(5) & ".ItemNumber, 
24
                             " & 訂單資料表(5) & ".ProductName, " & 訂單資料表(5) & ".Color, " & 訂單資料表(5) & ".DM, " & 訂單資料表(5) & ".[5], 
24
                             " & 訂單資料表(5) & ".ProductName, " & 訂單資料表(5) & ".Color, " & 訂單資料表(5) & ".DM, " & 訂單資料表(5) & ".[5], 
25
                             " & 訂單資料表(5) & ".[5.5], " & 訂單資料表(5) & ".[6], " & 訂單資料表(5) & ".[6.5], " & 訂單資料表(5) & ".[7], " & 訂單資料表(5) & ".[7.5], 
25
                             " & 訂單資料表(5) & ".[5.5], " & 訂單資料表(5) & ".[6], " & 訂單資料表(5) & ".[6.5], " & 訂單資料表(5) & ".[7], " & 訂單資料表(5) & ".[7.5], 
26
                             " & 訂單資料表(5) & ".[8], " & 訂單資料表(5) & ".[8.5], " & 訂單資料表(5) & ".[9], " & 訂單資料表(5) & ".[9.5], " & 訂單資料表(5) & ".[10], 
26
                             " & 訂單資料表(5) & ".[8], " & 訂單資料表(5) & ".[8.5], " & 訂單資料表(5) & ".[9], " & 訂單資料表(5) & ".[9.5], " & 訂單資料表(5) & ".[10], 
95
 
95
 
96
         For i As Integer = 0 To 清單_dgv.Rows.Count - 1
96
         For i As Integer = 0 To 清單_dgv.Rows.Count - 1
97
             xlSheet.Cells(i + 3, 1) = 清單_dgv.Rows(i).Cells("訂單流水號").Value
97
             xlSheet.Cells(i + 3, 1) = 清單_dgv.Rows(i).Cells("訂單流水號").Value
98
-            xlSheet.Cells(i + 3, 2) = 清單_dgv.Rows(i).Cells("客戶訂單號").Value
98
+            xlSheet.Cells(i + 3, 2) = 清單_dgv.Rows(i).Cells("力威訂單號").Value
99
             xlSheet.Cells(i + 3, 3) = 清單_dgv.Rows(i).Cells("ItemNumber").Value
99
             xlSheet.Cells(i + 3, 3) = 清單_dgv.Rows(i).Cells("ItemNumber").Value
100
             xlSheet.Cells(i + 3, 4) = 清單_dgv.Rows(i).Cells("ProductName").Value
100
             xlSheet.Cells(i + 3, 4) = 清單_dgv.Rows(i).Cells("ProductName").Value
101
             xlSheet.Cells(i + 3, 5) = 清單_dgv.Rows(i).Cells("Color").Value
101
             xlSheet.Cells(i + 3, 5) = 清單_dgv.Rows(i).Cells("Color").Value

+ 4
- 2
TENDEN-MES-SYS/量產訂單管理/周進度表.vb View File

6
     ReadOnly xlBook As Microsoft.Office.Interop.Excel.Workbook
6
     ReadOnly xlBook As Microsoft.Office.Interop.Excel.Workbook
7
     Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
7
     Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
8
     Dim file_name As String = "" : Public 平均數 As Integer : Public 最終數 As Integer = 0 : Public 資料數 As Integer = 0
8
     Dim file_name As String = "" : Public 平均數 As Integer : Public 最終數 As Integer = 0 : Public 資料數 As Integer = 0
9
+    Public 品牌V_R判斷 As String = ""
9
     Private Sub Set_訂單清單()
10
     Private Sub Set_訂單清單()
10
         訂單種類_dgv.DataSource = Nothing : ds.Clear()
11
         訂單種類_dgv.DataSource = Nothing : ds.Clear()
11
         訂單種類_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
12
         訂單種類_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
34
                          "(CXL IS NULL OR (CXL = 0)) AND (訂單數量 - 出貨數量 <> 0) AND (力威訂單號 LIKE '%" & PA & "%') " &
35
                          "(CXL IS NULL OR (CXL = 0)) AND (訂單數量 - 出貨數量 <> 0) AND (力威訂單號 LIKE '%" & PA & "%') " &
35
                          "ORDER BY   訂單流水號 DESC, STYLE_NAME, COLOR, WIDTH"
36
                          "ORDER BY   訂單流水號 DESC, STYLE_NAME, COLOR, WIDTH"
36
         End If
37
         End If
38
+
37
         CmdSet_For_DGV() : da.SelectCommand.CommandTimeout = 900 : da.Fill(ds) : 訂單種類_dgv.DataSource = ds.Tables(0) : conn.Close()
39
         CmdSet_For_DGV() : da.SelectCommand.CommandTimeout = 900 : da.Fill(ds) : 訂單種類_dgv.DataSource = ds.Tables(0) : conn.Close()
38
     End Sub
40
     End Sub
39
     Private Sub Set_grid()
41
     Private Sub Set_grid()
299
         驗貨報告圖片_pb.Image.RotateFlip(RotateFlipType.Rotate180FlipX) : 驗貨報告圖片_pb.Refresh() : 驗貨報告圖片_pb.SizeMode = 4
301
         驗貨報告圖片_pb.Image.RotateFlip(RotateFlipType.Rotate180FlipX) : 驗貨報告圖片_pb.Refresh() : 驗貨報告圖片_pb.SizeMode = 4
300
     End Sub
302
     End Sub
301
     Private Sub 資料庫選擇1_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇1_bt.Click
303
     Private Sub 資料庫選擇1_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇1_bt.Click
302
-        SQL_訂單資料表選擇_VIONIC() : Set_訂單清單() : Set_grid()
304
+        SQL_訂單資料表選擇_VIONIC() : Set_訂單清單() : Set_grid() : 品牌V_R判斷 = "V"
303
     End Sub
305
     End Sub
304
     Private Sub 資料庫選擇2_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇2_bt.Click
306
     Private Sub 資料庫選擇2_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇2_bt.Click
305
-        SQL_訂單資料表選擇_非VIONIC() : Set_訂單清單() : Set_grid()
307
+        SQL_訂單資料表選擇_非VIONIC() : Set_訂單清單() : Set_grid() : 品牌V_R判斷 = "R"
306
     End Sub
308
     End Sub
307
     Private Sub 進度條()
309
     Private Sub 進度條()
308
         平均數 = 10000 / 資料數
310
         平均數 = 10000 / 資料數

+ 3
- 2
TENDEN-MES-SYS/量產訂單管理/周進度表T1_T4.vb View File

2
 Imports System.IO
2
 Imports System.IO
3
 Public Class 周進度表T1_T4
3
 Public Class 周進度表T1_T4
4
     ReadOnly ds As New DataSet
4
     ReadOnly ds As New DataSet
5
+    Public 品牌V_R判斷 As String = ""
5
     Private Sub Set_訂單清單()
6
     Private Sub Set_訂單清單()
6
         訂單清單_dgv.DataSource = Nothing : ds.Clear()
7
         訂單清單_dgv.DataSource = Nothing : ds.Clear()
7
         訂單清單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
8
         訂單清單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
167
         驗貨報告圖片_pb.Image.RotateFlip(RotateFlipType.Rotate180FlipX) : 驗貨報告圖片_pb.Refresh() : 驗貨報告圖片_pb.SizeMode = 4
168
         驗貨報告圖片_pb.Image.RotateFlip(RotateFlipType.Rotate180FlipX) : 驗貨報告圖片_pb.Refresh() : 驗貨報告圖片_pb.SizeMode = 4
168
     End Sub
169
     End Sub
169
     Private Sub 資料庫選擇1_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇1_bt.Click
170
     Private Sub 資料庫選擇1_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇1_bt.Click
170
-        SQL_訂單資料表選擇_VIONIC() : Set_訂單清單() : Set_grid()
171
+        SQL_訂單資料表選擇_VIONIC() : Set_訂單清單() : Set_grid() : 品牌V_R判斷 = "V"
171
     End Sub
172
     End Sub
172
     Private Sub 資料庫選擇2_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇2_bt.Click
173
     Private Sub 資料庫選擇2_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇2_bt.Click
173
-        SQL_訂單資料表選擇_非VIONIC() : Set_訂單清單() : Set_grid()
174
+        SQL_訂單資料表選擇_非VIONIC() : Set_訂單清單() : Set_grid() : 品牌V_R判斷 = "R"
174
     End Sub
175
     End Sub
175
 End Class
176
 End Class

+ 3
- 2
TENDEN-MES-SYS/量產訂單管理/生產進度表.vb View File

7
     Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
7
     Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
8
     Dim file_name As String = ""
8
     Dim file_name As String = ""
9
     ReadOnly BB(3) As Boolean
9
     ReadOnly BB(3) As Boolean
10
+    Public 品牌V_R判斷 As String = ""
10
     Private Sub Set_DGV1載入前設定()
11
     Private Sub Set_DGV1載入前設定()
11
         訂單清單_dgv.DataSource = Nothing : ds.Clear()
12
         訂單清單_dgv.DataSource = Nothing : ds.Clear()
12
         訂單清單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
13
         訂單清單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
281
         驗貨報告圖庫_pb.Image.RotateFlip(RotateFlipType.Rotate180FlipX) : 驗貨報告圖庫_pb.Refresh() : 驗貨報告圖庫_pb.SizeMode = 4
282
         驗貨報告圖庫_pb.Image.RotateFlip(RotateFlipType.Rotate180FlipX) : 驗貨報告圖庫_pb.Refresh() : 驗貨報告圖庫_pb.SizeMode = 4
282
     End Sub
283
     End Sub
283
     Private Sub 資料庫選擇1_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇1_bt.Click
284
     Private Sub 資料庫選擇1_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇1_bt.Click
284
-        SQL_訂單資料表選擇_VIONIC() : Set_訂單清單() : Set_grid()
285
+        SQL_訂單資料表選擇_VIONIC() : Set_訂單清單() : Set_grid() : 品牌V_R判斷 = "V"
285
     End Sub
286
     End Sub
286
     Private Sub 資料庫選擇2_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇2_bt.Click
287
     Private Sub 資料庫選擇2_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇2_bt.Click
287
-        SQL_訂單資料表選擇_非VIONIC() : Set_訂單清單() : Set_grid()
288
+        SQL_訂單資料表選擇_非VIONIC() : Set_訂單清單() : Set_grid() : 品牌V_R判斷 = "R"
288
     End Sub
289
     End Sub
289
 End Class
290
 End Class

+ 6
- 2
TENDEN-MES-SYS/量產訂單管理/訂單控制表.Designer.vb View File

1125
         Me.修改PO_bt.TabIndex = 339
1125
         Me.修改PO_bt.TabIndex = 339
1126
         Me.修改PO_bt.Text = "修改PO#"
1126
         Me.修改PO_bt.Text = "修改PO#"
1127
         Me.修改PO_bt.UseVisualStyleBackColor = True
1127
         Me.修改PO_bt.UseVisualStyleBackColor = True
1128
+        Me.修改PO_bt.Visible = False
1128
         '
1129
         '
1129
         'CheckBox10
1130
         'CheckBox10
1130
         '
1131
         '
1730
         'SplitContainer1.Panel2
1731
         'SplitContainer1.Panel2
1731
         '
1732
         '
1732
         Me.SplitContainer1.Panel2.AutoScroll = True
1733
         Me.SplitContainer1.Panel2.AutoScroll = True
1733
-        Me.SplitContainer1.Panel2.Controls.Add(Me.資訊_gb)
1734
         Me.SplitContainer1.Panel2.Controls.Add(Me.裝箱控制表_dgv)
1734
         Me.SplitContainer1.Panel2.Controls.Add(Me.裝箱控制表_dgv)
1735
         Me.SplitContainer1.Panel2.Controls.Add(Me.明細表_dgv)
1735
         Me.SplitContainer1.Panel2.Controls.Add(Me.明細表_dgv)
1736
         Me.SplitContainer1.Panel2.Controls.Add(Me.裝箱明細_dgv)
1736
         Me.SplitContainer1.Panel2.Controls.Add(Me.裝箱明細_dgv)
1737
+        Me.SplitContainer1.Panel2.Controls.Add(Me.資訊_gb)
1737
         Me.SplitContainer1.Size = New System.Drawing.Size(1900, 695)
1738
         Me.SplitContainer1.Size = New System.Drawing.Size(1900, 695)
1738
         Me.SplitContainer1.SplitterDistance = 454
1739
         Me.SplitContainer1.SplitterDistance = 454
1739
         Me.SplitContainer1.TabIndex = 753
1740
         Me.SplitContainer1.TabIndex = 753
1753
         '
1754
         '
1754
         '資訊_gb
1755
         '資訊_gb
1755
         '
1756
         '
1757
+        Me.資訊_gb.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1758
+            Or System.Windows.Forms.AnchorStyles.Left) _
1759
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1756
         Me.資訊_gb.Controls.Add(Me.TT23_lb)
1760
         Me.資訊_gb.Controls.Add(Me.TT23_lb)
1757
         Me.資訊_gb.Controls.Add(Me.Label49)
1761
         Me.資訊_gb.Controls.Add(Me.Label49)
1758
         Me.資訊_gb.Controls.Add(Me.Label48)
1762
         Me.資訊_gb.Controls.Add(Me.Label48)
1807
         Me.資訊_gb.Controls.Add(Me.BB04_lb)
1811
         Me.資訊_gb.Controls.Add(Me.BB04_lb)
1808
         Me.資訊_gb.Location = New System.Drawing.Point(475, 2)
1812
         Me.資訊_gb.Location = New System.Drawing.Point(475, 2)
1809
         Me.資訊_gb.Name = "資訊_gb"
1813
         Me.資訊_gb.Name = "資訊_gb"
1810
-        Me.資訊_gb.Size = New System.Drawing.Size(1394, 227)
1814
+        Me.資訊_gb.Size = New System.Drawing.Size(1418, 227)
1811
         Me.資訊_gb.TabIndex = 766
1815
         Me.資訊_gb.TabIndex = 766
1812
         Me.資訊_gb.TabStop = False
1816
         Me.資訊_gb.TabStop = False
1813
         Me.資訊_gb.Text = "裝箱資訊"
1817
         Me.資訊_gb.Text = "裝箱資訊"

+ 1
- 1
TENDEN-MES-SYS/量產訂單管理/訂單控制表.vb View File

1622
             SQL1 = "UPDATE " & 訂單資料表(5) & " SET 客戶訂單號 = '" & 客戶訂單號_tb.Text & "' WHERE (天盾流水號 LIKE '" & 天盾訂單號_tb.Text & "')"
1622
             SQL1 = "UPDATE " & 訂單資料表(5) & " SET 客戶訂單號 = '" & 客戶訂單號_tb.Text & "' WHERE (天盾流水號 LIKE '" & 天盾訂單號_tb.Text & "')"
1623
             cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : cmd.ExecuteNonQuery() : conn.Close()
1623
             cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : cmd.ExecuteNonQuery() : conn.Close()
1624
             ConnOpen()
1624
             ConnOpen()
1625
-            SQL1 = "UPDATE " & 訂單資料表(6) & " SET 客戶流水號 = '" & 客戶訂單號_tb.Text & "' WHERE (天盾訂單號 LIKE '" & 天盾訂單號_tb.Text & "')"
1625
+            SQL1 = "UPDATE " & 訂單資料表(7) & " SET 客戶流水號 = '" & 客戶訂單號_tb.Text & "' WHERE (天盾訂單號 LIKE '" & 天盾訂單號_tb.Text & "')"
1626
             cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : cmd.ExecuteNonQuery() : conn.Close()
1626
             cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : cmd.ExecuteNonQuery() : conn.Close()
1627
             MsgBox("修改完成")
1627
             MsgBox("修改完成")
1628
         End If
1628
         End If

+ 3
- 2
TENDEN-MES-SYS/量產訂單管理/訂單資料庫選擇.vb View File

1
 Public Class 訂單資料庫選擇
1
 Public Class 訂單資料庫選擇
2
+    Public 品牌V_R判斷 As String = ""
2
     Private Sub 訂單資料庫選擇_Load(sender As Object, e As EventArgs) Handles MyBase.Load
3
     Private Sub 訂單資料庫選擇_Load(sender As Object, e As EventArgs) Handles MyBase.Load
3
         FormBorderStyle = FormBorderStyle.SizableToolWindow
4
         FormBorderStyle = FormBorderStyle.SizableToolWindow
4
     End Sub
5
     End Sub
5
     Private Sub 資料庫選擇1_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇1_bt.Click
6
     Private Sub 資料庫選擇1_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇1_bt.Click
6
-        SQL_訂單資料表選擇_VIONIC()
7
+        SQL_訂單資料表選擇_VIONIC() : 品牌V_R判斷 = "V"
7
         Me.Close()
8
         Me.Close()
8
     End Sub
9
     End Sub
9
     Private Sub 資料庫選擇2_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇2_bt.Click
10
     Private Sub 資料庫選擇2_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇2_bt.Click
10
-        SQL_訂單資料表選擇_非VIONIC()
11
+        SQL_訂單資料表選擇_非VIONIC() : 品牌V_R判斷 = "R"
11
         Me.Close()
12
         Me.Close()
12
     End Sub
13
     End Sub
13
 End Class
14
 End Class

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

569
         DR19.HeaderText = "11" : DR19.Name = "11" : 裝箱明細_dgv.Columns.Insert(18, DR19) : DR20.HeaderText = "11.5" : DR20.Name = "11.5" : 裝箱明細_dgv.Columns.Insert(19, DR20)
569
         DR19.HeaderText = "11" : DR19.Name = "11" : 裝箱明細_dgv.Columns.Insert(18, DR19) : DR20.HeaderText = "11.5" : DR20.Name = "11.5" : 裝箱明細_dgv.Columns.Insert(19, DR20)
570
         DR21.HeaderText = "12" : DR21.Name = "12" : 裝箱明細_dgv.Columns.Insert(20, DR21) : DR22.HeaderText = "12.5" : DR22.Name = "12.5" : 裝箱明細_dgv.Columns.Insert(21, DR22)
570
         DR21.HeaderText = "12" : DR21.Name = "12" : 裝箱明細_dgv.Columns.Insert(20, DR21) : DR22.HeaderText = "12.5" : DR22.Name = "12.5" : 裝箱明細_dgv.Columns.Insert(21, DR22)
571
         DR23.HeaderText = "13" : DR23.Name = "13" : 裝箱明細_dgv.Columns.Insert(22, DR23) : DR24.HeaderText = "14" : DR24.Name = "14" : 裝箱明細_dgv.Columns.Insert(23, DR24)
571
         DR23.HeaderText = "13" : DR23.Name = "13" : 裝箱明細_dgv.Columns.Insert(22, DR23) : DR24.HeaderText = "14" : DR24.Name = "14" : 裝箱明細_dgv.Columns.Insert(23, DR24)
572
-        DR25.HeaderText = "CustAssign" : DR25.Name = "CustAssign" : 裝箱明細_dgv.Columns.Insert(23, DR25)
572
+        DR25.HeaderText = "CustAssign" : DR25.Name = "CustAssign" : 裝箱明細_dgv.Columns.Insert(24, DR25)
573
         裝箱明細_dgv.Columns(0).FillWeight = 100 : 裝箱明細_dgv.Columns(1).FillWeight = 100 : 裝箱明細_dgv.Columns(2).FillWeight = 100 : 裝箱明細_dgv.Columns(3).FillWeight = 100
573
         裝箱明細_dgv.Columns(0).FillWeight = 100 : 裝箱明細_dgv.Columns(1).FillWeight = 100 : 裝箱明細_dgv.Columns(2).FillWeight = 100 : 裝箱明細_dgv.Columns(3).FillWeight = 100
574
         裝箱明細_dgv.Columns(4).FillWeight = 80 : 裝箱明細_dgv.Columns(5).FillWeight = 60 : 裝箱明細_dgv.Columns(6).FillWeight = 50 : 裝箱明細_dgv.Columns(7).FillWeight = 50
574
         裝箱明細_dgv.Columns(4).FillWeight = 80 : 裝箱明細_dgv.Columns(5).FillWeight = 60 : 裝箱明細_dgv.Columns(6).FillWeight = 50 : 裝箱明細_dgv.Columns(7).FillWeight = 50
575
         裝箱明細_dgv.Columns(8).FillWeight = 50 : 裝箱明細_dgv.Columns(9).FillWeight = 50 : 裝箱明細_dgv.Columns(10).FillWeight = 50 : 裝箱明細_dgv.Columns(11).FillWeight = 50
575
         裝箱明細_dgv.Columns(8).FillWeight = 50 : 裝箱明細_dgv.Columns(9).FillWeight = 50 : 裝箱明細_dgv.Columns(10).FillWeight = 50 : 裝箱明細_dgv.Columns(11).FillWeight = 50
601
         DK19.HeaderText = "11" : DK19.Name = "11" : 裝箱明細3_dgv.Columns.Insert(18, DK19) : DK20.HeaderText = "11.5" : DK20.Name = "11.5" : 裝箱明細3_dgv.Columns.Insert(19, DK20)
601
         DK19.HeaderText = "11" : DK19.Name = "11" : 裝箱明細3_dgv.Columns.Insert(18, DK19) : DK20.HeaderText = "11.5" : DK20.Name = "11.5" : 裝箱明細3_dgv.Columns.Insert(19, DK20)
602
         DK21.HeaderText = "12" : DK21.Name = "12" : 裝箱明細3_dgv.Columns.Insert(20, DK21) : DK22.HeaderText = "12.5" : DK22.Name = "12.5" : 裝箱明細3_dgv.Columns.Insert(21, DK22)
602
         DK21.HeaderText = "12" : DK21.Name = "12" : 裝箱明細3_dgv.Columns.Insert(20, DK21) : DK22.HeaderText = "12.5" : DK22.Name = "12.5" : 裝箱明細3_dgv.Columns.Insert(21, DK22)
603
         DK23.HeaderText = "13" : DK23.Name = "13" : 裝箱明細3_dgv.Columns.Insert(22, DK23) : DK24.HeaderText = "14" : DK24.Name = "14" : 裝箱明細3_dgv.Columns.Insert(23, DK24)
603
         DK23.HeaderText = "13" : DK23.Name = "13" : 裝箱明細3_dgv.Columns.Insert(22, DK23) : DK24.HeaderText = "14" : DK24.Name = "14" : 裝箱明細3_dgv.Columns.Insert(23, DK24)
604
-        DK25.HeaderText = "CustAssign" : DK25.Name = "CustAssign" : 裝箱明細3_dgv.Columns.Insert(23, DK25)
604
+        DK25.HeaderText = "CustAssign" : DK25.Name = "CustAssign" : 裝箱明細3_dgv.Columns.Insert(24, DK25)
605
         裝箱明細3_dgv.Columns(0).FillWeight = 110 : 裝箱明細3_dgv.Columns(1).FillWeight = 110 : 裝箱明細3_dgv.Columns(2).FillWeight = 110
605
         裝箱明細3_dgv.Columns(0).FillWeight = 110 : 裝箱明細3_dgv.Columns(1).FillWeight = 110 : 裝箱明細3_dgv.Columns(2).FillWeight = 110
606
         裝箱明細3_dgv.Columns(3).FillWeight = 90 : 裝箱明細3_dgv.Columns(4).FillWeight = 190 : 裝箱明細3_dgv.Columns(5).FillWeight = 80
606
         裝箱明細3_dgv.Columns(3).FillWeight = 90 : 裝箱明細3_dgv.Columns(4).FillWeight = 190 : 裝箱明細3_dgv.Columns(5).FillWeight = 80
607
         裝箱明細3_dgv.Columns(6).FillWeight = 40 : 裝箱明細3_dgv.Columns(7).FillWeight = 40 : 裝箱明細3_dgv.Columns(8).FillWeight = 40 : 裝箱明細3_dgv.Columns(9).FillWeight = 40
607
         裝箱明細3_dgv.Columns(6).FillWeight = 40 : 裝箱明細3_dgv.Columns(7).FillWeight = 40 : 裝箱明細3_dgv.Columns(8).FillWeight = 40 : 裝箱明細3_dgv.Columns(9).FillWeight = 40
608
         裝箱明細3_dgv.Columns(10).FillWeight = 40 : 裝箱明細3_dgv.Columns(11).FillWeight = 40 : 裝箱明細3_dgv.Columns(12).FillWeight = 40 : 裝箱明細3_dgv.Columns(13).FillWeight = 40
608
         裝箱明細3_dgv.Columns(10).FillWeight = 40 : 裝箱明細3_dgv.Columns(11).FillWeight = 40 : 裝箱明細3_dgv.Columns(12).FillWeight = 40 : 裝箱明細3_dgv.Columns(13).FillWeight = 40
609
         裝箱明細3_dgv.Columns(14).FillWeight = 40 : 裝箱明細3_dgv.Columns(15).FillWeight = 40 : 裝箱明細3_dgv.Columns(16).FillWeight = 40 : 裝箱明細3_dgv.Columns(17).FillWeight = 40
609
         裝箱明細3_dgv.Columns(14).FillWeight = 40 : 裝箱明細3_dgv.Columns(15).FillWeight = 40 : 裝箱明細3_dgv.Columns(16).FillWeight = 40 : 裝箱明細3_dgv.Columns(17).FillWeight = 40
610
         裝箱明細3_dgv.Columns(18).FillWeight = 40 : 裝箱明細3_dgv.Columns(19).FillWeight = 40 : 裝箱明細3_dgv.Columns(20).FillWeight = 40 : 裝箱明細3_dgv.Columns(21).FillWeight = 40
610
         裝箱明細3_dgv.Columns(18).FillWeight = 40 : 裝箱明細3_dgv.Columns(19).FillWeight = 40 : 裝箱明細3_dgv.Columns(20).FillWeight = 40 : 裝箱明細3_dgv.Columns(21).FillWeight = 40
611
-        裝箱明細3_dgv.Columns(22).FillWeight = 40 : 裝箱明細3_dgv.Columns(23).FillWeight = 40 : 裝箱明細3_dgv.Columns(25).FillWeight = 80
611
+        裝箱明細3_dgv.Columns(22).FillWeight = 40 : 裝箱明細3_dgv.Columns(23).FillWeight = 40 : 裝箱明細3_dgv.Columns(24).FillWeight = 80
612
         填入0值2_1()
612
         填入0值2_1()
613
     End Sub
613
     End Sub
614
     Private Sub 抬頭清單_dgv_CellClick(ByVal sender As Object, ByVal e As DataGridViewCellEventArgs) Handles 抬頭清單_dgv.CellClick
614
     Private Sub 抬頭清單_dgv_CellClick(ByVal sender As Object, ByVal e As DataGridViewCellEventArgs) Handles 抬頭清單_dgv.CellClick

Loading…
Cancel
Save