B70340 3 年之前
父節點
當前提交
8ff27acc76

二進制
.vs/TENDEN-MES-SYS/v16/.suo 查看文件


+ 2
- 6
TENDEN-MES-SYS/Module/SQL_成本系統管理.vb 查看文件

72
                             " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling AS CollectedToolng, " & 訂單資料表(7) & ".年份, 
72
                             " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling AS CollectedToolng, " & 訂單資料表(7) & ".年份, 
73
                             " & 訂單資料表(7) & ".利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity AS 驗證, 
73
                             " & 訂單資料表(7) & ".利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity AS 驗證, 
74
                             STYLELIST.ItemNumber, " & 訂單資料表(7) & ".審核, " & 訂單資料表(1) & ".客戶訂單號, " & 訂單資料表(1) & ".ProductID, 
74
                             STYLELIST.ItemNumber, " & 訂單資料表(7) & ".審核, " & 訂單資料表(1) & ".客戶訂單號, " & 訂單資料表(1) & ".ProductID, 
75
-                            " & 訂單資料表(2) & ".Material, " & 訂單資料表(2) & ".MaterialDescription, " & 訂單資料表(2) & ".Colorway, 
76
-                            " & 訂單資料表(0) & ".SalesOrder, " & 訂單資料表(0) & ".CustomerName, " & 訂單資料表(0) & ".最終運送, 
77
-                            " & 訂單資料表(2) & ".CustomerData
75
+                            " & 訂單資料表(0) & ".SalesOrder, " & 訂單資料表(0) & ".CustomerName, " & 訂單資料表(0) & ".最終運送
78
                 FROM        " & 訂單資料表(1) & " LEFT OUTER JOIN
76
                 FROM        " & 訂單資料表(1) & " LEFT OUTER JOIN
79
                             " & 訂單資料表(0) & " ON " & 訂單資料表(1) & ".訂單流水號 = " & 訂單資料表(0) & ".天盾流水號 LEFT OUTER JOIN
77
                             " & 訂單資料表(0) & " ON " & 訂單資料表(1) & ".訂單流水號 = " & 訂單資料表(0) & ".天盾流水號 LEFT OUTER JOIN
80
                             " & 訂單資料表(2) & " ON " & 訂單資料表(1) & ".顏色 = " & 訂單資料表(2) & ".Colorway AND 
78
                             " & 訂單資料表(2) & " ON " & 訂單資料表(1) & ".顏色 = " & 訂單資料表(2) & ".Colorway AND 
95
                             " & 訂單資料表(7) & ".EXWsaving, " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling, 
93
                             " & 訂單資料表(7) & ".EXWsaving, " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling, 
96
                             " & 訂單資料表(7) & ".年份, " & 訂單資料表(7) & ".利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity, 
94
                             " & 訂單資料表(7) & ".年份, " & 訂單資料表(7) & ".利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity, 
97
                             STYLELIST.ItemNumber, " & 訂單資料表(7) & ".審核, " & 訂單資料表(1) & ".客戶訂單號, " & 訂單資料表(1) & ".ProductID, 
95
                             STYLELIST.ItemNumber, " & 訂單資料表(7) & ".審核, " & 訂單資料表(1) & ".客戶訂單號, " & 訂單資料表(1) & ".ProductID, 
98
-                            " & 訂單資料表(2) & ".Material, " & 訂單資料表(2) & ".MaterialDescription, " & 訂單資料表(2) & ".Colorway, 
99
-                            " & 訂單資料表(0) & ".SalesOrder, " & 訂單資料表(0) & ".CustomerName, " & 訂單資料表(0) & ".最終運送, 
100
-                            " & 訂單資料表(2) & ".CustomerData
96
+                            " & 訂單資料表(0) & ".SalesOrder, " & 訂單資料表(0) & ".CustomerName, " & 訂單資料表(0) & ".最終運送
101
                 ORDER BY    " & 訂單資料表(1) & ".訂單流水號 DESC"
97
                 ORDER BY    " & 訂單資料表(1) & ".訂單流水號 DESC"
102
     End Sub
98
     End Sub
103
     '----------------------------------訂單價格利潤明細表--------------------------------------------------------------
99
     '----------------------------------訂單價格利潤明細表--------------------------------------------------------------

+ 1
- 1
TENDEN-MES-SYS/Module/全域變數.vb 查看文件

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

二進制
TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.exe 查看文件


二進制
TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.pdb 查看文件


二進制
TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.exe 查看文件


二進制
TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.pdb 查看文件


二進制
TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.GenerateResource.cache 查看文件


二進制
TENDEN-MES-SYS/obj/Debug/天盾系統.vbprojAssemblyReference.cache 查看文件


+ 0
- 1
TENDEN-MES-SYS/圖片資料庫管理/楦頭圖片系統/楦頭圖片導入資料庫.vb 查看文件

3
 Public Class 楦頭圖片導入資料庫
3
 Public Class 楦頭圖片導入資料庫
4
     Public Property Credentials As ICredentials
4
     Public Property Credentials As ICredentials
5
     ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet
5
     ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet
6
-    ReadOnly DTP As String
7
     Private Sub Set_DGV1載入前設定()
6
     Private Sub Set_DGV1載入前設定()
8
         Try
7
         Try
9
             楦頭規格控制表_dgv.DataSource = Nothing : ds.Clear()
8
             楦頭規格控制表_dgv.DataSource = Nothing : ds.Clear()

+ 0
- 1
TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/驗貨報告圖片導入資料庫.vb 查看文件

3
 Public Class 驗貨報告圖片導入資料庫
3
 Public Class 驗貨報告圖片導入資料庫
4
     Public Property Credentials As ICredentials
4
     Public Property Credentials As ICredentials
5
     ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet
5
     ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet
6
-    Dim DTP As String
7
     Private Sub Set_DGV1載入前設定()
6
     Private Sub Set_DGV1載入前設定()
8
         Try
7
         Try
9
             訂單清單_dgv.DataSource = Nothing : ds.Clear()
8
             訂單清單_dgv.DataSource = Nothing : ds.Clear()

+ 14
- 14
TENDEN-MES-SYS/成本系統管理/列印_訂單價格利潤表.Designer.vb 查看文件

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
         Me.取消列印_bt = New System.Windows.Forms.Button()
26
         Me.取消列印_bt = New System.Windows.Forms.Button()
27
         Me.確認列印_bt = New System.Windows.Forms.Button()
27
         Me.確認列印_bt = New System.Windows.Forms.Button()
28
-        Me.DataGridView1 = New System.Windows.Forms.DataGridView()
29
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
28
+        Me.利潤表_dgv = New System.Windows.Forms.DataGridView()
29
+        CType(Me.利潤表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
30
         Me.SuspendLayout()
30
         Me.SuspendLayout()
31
         '
31
         '
32
         '取消列印_bt
32
         '取消列印_bt
51
         Me.確認列印_bt.Text = "確認列印"
51
         Me.確認列印_bt.Text = "確認列印"
52
         Me.確認列印_bt.UseVisualStyleBackColor = True
52
         Me.確認列印_bt.UseVisualStyleBackColor = True
53
         '
53
         '
54
-        'DataGridView1
54
+        '利潤表_dgv
55
         '
55
         '
56
         DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
56
         DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
57
-        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
58
-        Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
59
-        Me.DataGridView1.Location = New System.Drawing.Point(12, 12)
60
-        Me.DataGridView1.Name = "DataGridView1"
61
-        Me.DataGridView1.RowHeadersWidth = 5
62
-        Me.DataGridView1.RowTemplate.Height = 24
63
-        Me.DataGridView1.Size = New System.Drawing.Size(775, 143)
64
-        Me.DataGridView1.TabIndex = 312
57
+        Me.利潤表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
58
+        Me.利潤表_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
59
+        Me.利潤表_dgv.Location = New System.Drawing.Point(12, 12)
60
+        Me.利潤表_dgv.Name = "利潤表_dgv"
61
+        Me.利潤表_dgv.RowHeadersWidth = 5
62
+        Me.利潤表_dgv.RowTemplate.Height = 24
63
+        Me.利潤表_dgv.Size = New System.Drawing.Size(775, 143)
64
+        Me.利潤表_dgv.TabIndex = 312
65
         '
65
         '
66
         '列印_訂單價格利潤表
66
         '列印_訂單價格利潤表
67
         '
67
         '
70
         Me.ClientSize = New System.Drawing.Size(250, 73)
70
         Me.ClientSize = New System.Drawing.Size(250, 73)
71
         Me.Controls.Add(Me.取消列印_bt)
71
         Me.Controls.Add(Me.取消列印_bt)
72
         Me.Controls.Add(Me.確認列印_bt)
72
         Me.Controls.Add(Me.確認列印_bt)
73
-        Me.Controls.Add(Me.DataGridView1)
73
+        Me.Controls.Add(Me.利潤表_dgv)
74
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
74
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
75
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
75
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
76
         Me.Name = "列印_訂單價格利潤表"
76
         Me.Name = "列印_訂單價格利潤表"
77
         Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
77
         Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
78
         Me.Text = "訂單價格利潤表列印"
78
         Me.Text = "訂單價格利潤表列印"
79
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
79
+        CType(Me.利潤表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
80
         Me.ResumeLayout(False)
80
         Me.ResumeLayout(False)
81
 
81
 
82
     End Sub
82
     End Sub
83
 
83
 
84
     Friend WithEvents 取消列印_bt As Button
84
     Friend WithEvents 取消列印_bt As Button
85
     Friend WithEvents 確認列印_bt As Button
85
     Friend WithEvents 確認列印_bt As Button
86
-    Friend WithEvents DataGridView1 As DataGridView
86
+    Friend WithEvents 利潤表_dgv As DataGridView
87
 End Class
87
 End Class
88
 
88
 

+ 46
- 55
TENDEN-MES-SYS/成本系統管理/列印_訂單價格利潤表.vb 查看文件

10
 Public Class 列印_訂單價格利潤表
10
 Public Class 列印_訂單價格利潤表
11
     ReadOnly ds As New DataSet
11
     ReadOnly ds As New DataSet
12
     Private Sub Set_DGV1載入前設定()
12
     Private Sub Set_DGV1載入前設定()
13
-        DataGridView1.DataSource = Nothing : ds.Clear()
14
-        DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
15
-        DataGridView1.ColumnHeadersHeight = 25
16
-        DataGridView1.AllowUserToAddRows = False
13
+        利潤表_dgv.DataSource = Nothing : ds.Clear()
14
+        利潤表_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
15
+        利潤表_dgv.ColumnHeadersHeight = 25
16
+        利潤表_dgv.AllowUserToAddRows = False
17
         ConnOpen()
17
         ConnOpen()
18
     End Sub
18
     End Sub
19
     Private Sub Set_DGV1載入後設定()
19
     Private Sub Set_DGV1載入後設定()
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) : 利潤表_dgv.DataSource = ds.Tables(0) : conn.Close()
21
     End Sub
21
     End Sub
22
     Private Sub Set_訂單清單()
22
     Private Sub Set_訂單清單()
23
         Set_DGV1載入前設定() : SQL_訂單價格利潤表() : Set_DGV1載入後設定()
23
         Set_DGV1載入前設定() : SQL_訂單價格利潤表() : Set_DGV1載入後設定()
24
     End Sub
24
     End Sub
25
     Private Sub Set_格式設定()
25
     Private Sub Set_格式設定()
26
-        DataGridView1.Visible = False
26
+        利潤表_dgv.Visible = False
27
     End Sub
27
     End Sub
28
     Private Sub 列印_訂單價格利潤表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
28
     Private Sub 列印_訂單價格利潤表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
29
         FormBorderStyle = FormBorderStyle.SizableToolWindow : ControlBox = False
29
         FormBorderStyle = FormBorderStyle.SizableToolWindow : ControlBox = False
89
         xlSheet.Cells(3, 31) = "ItemNumber"
89
         xlSheet.Cells(3, 31) = "ItemNumber"
90
         xlSheet.Cells(3, 32) = "審核"
90
         xlSheet.Cells(3, 32) = "審核"
91
         xlSheet.Cells(3, 33) = "Vionic Po#"
91
         xlSheet.Cells(3, 33) = "Vionic Po#"
92
-        xlSheet.Cells(3, 34) = "Material"
93
-        xlSheet.Cells(3, 35) = "Material Description"
94
-        xlSheet.Cells(3, 36) = "Colorway"
95
-        xlSheet.Cells(3, 37) = "Ship Mode"
96
-        xlSheet.Cells(3, 38) = "Company code"
97
-        xlSheet.Cells(3, 39) = "Final Customer Ship To"
98
-        xlSheet.Cells(3, 40) = "Customer Data"
92
+        xlSheet.Cells(3, 34) = "Ship Mode"
93
+        xlSheet.Cells(3, 35) = "Company code"
94
+        xlSheet.Cells(3, 36) = "Final Customer Ship To"
99
         AA(xlApp, xlSheet)
95
         AA(xlApp, xlSheet)
100
-        For i As Integer = 0 To DataGridView1.Rows.Count - 1
101
-            xlSheet.Cells(i + 4, 1) = DataGridView1.Rows(i).Cells("訂單流水號").Value
102
-            xlSheet.Cells(i + 4, 2) = DataGridView1.Rows(i).Cells("年份季度").Value
103
-            xlSheet.Cells(i + 4, 3) = DataGridView1.Rows(i).Cells("力威訂單號").Value
104
-            xlSheet.Cells(i + 4, 4) = DataGridView1.Rows(i).Cells("形體號").Value
105
-            xlSheet.Cells(i + 4, 5) = DataGridView1.Rows(i).Cells("顏色").Value
106
-            xlSheet.Cells(i + 4, 6) = DataGridView1.Rows(i).Cells("ProductID").Value
96
+        For i As Integer = 0 To 利潤表_dgv.Rows.Count - 1
97
+            xlSheet.Cells(i + 4, 1) = 利潤表_dgv.Rows(i).Cells("訂單流水號").Value
98
+            xlSheet.Cells(i + 4, 2) = 利潤表_dgv.Rows(i).Cells("年份季度").Value
99
+            xlSheet.Cells(i + 4, 3) = 利潤表_dgv.Rows(i).Cells("力威訂單號").Value
100
+            xlSheet.Cells(i + 4, 4) = 利潤表_dgv.Rows(i).Cells("形體號").Value
101
+            xlSheet.Cells(i + 4, 5) = 利潤表_dgv.Rows(i).Cells("顏色").Value
102
+            xlSheet.Cells(i + 4, 6) = 利潤表_dgv.Rows(i).Cells("ProductID").Value
107
 
103
 
108
-            xlSheet.Cells(i + 4, 7) = DataGridView1.Rows(i).Cells("楦型").Value
109
-            xlSheet.Cells(i + 4, 8) = DataGridView1.Rows(i).Cells("Quantity").Value
110
-            xlSheet.Cells(i + 4, 9) = DataGridView1.Rows(i).Cells("客戶交期").Value
104
+            xlSheet.Cells(i + 4, 7) = 利潤表_dgv.Rows(i).Cells("楦型").Value
105
+            xlSheet.Cells(i + 4, 8) = 利潤表_dgv.Rows(i).Cells("數量").Value
106
+            xlSheet.Cells(i + 4, 9) = 利潤表_dgv.Rows(i).Cells("客戶交期").Value
111
             xlSheet.Cells(i + 4, 10) = "=T" & i + 4 & "+U" & i + 4 & "+V" & i + 4 & "+W" & i + 4 & "+X" & i + 4 & "+Y" & i + 4 & "+Z" & i + 4 & "+AA" & i + 4 & "/AD" & i + 4 & "-AB" & i + 4
107
             xlSheet.Cells(i + 4, 10) = "=T" & i + 4 & "+U" & i + 4 & "+V" & i + 4 & "+W" & i + 4 & "+X" & i + 4 & "+Y" & i + 4 & "+Z" & i + 4 & "+AA" & i + 4 & "/AD" & i + 4 & "-AB" & i + 4
112
             xlSheet.Cells(i + 4, 11) = "=H" & i + 4 & "*J" & i + 4 & ""
108
             xlSheet.Cells(i + 4, 11) = "=H" & i + 4 & "*J" & i + 4 & ""
113
-            xlSheet.Cells(i + 4, 12) = DataGridView1.Rows(i).Cells("備註").Value
114
-            xlSheet.Cells(i + 4, 13) = DataGridView1.Rows(i).Cells("工廠").Value
115
-            xlSheet.Cells(i + 4, 14) = DataGridView1.Rows(i).Cells("訂單種類").Value
116
-            xlSheet.Cells(i + 4, 15) = DataGridView1.Rows(i).Cells("FTYPrice").Value
109
+            xlSheet.Cells(i + 4, 12) = 利潤表_dgv.Rows(i).Cells("備註").Value
110
+            xlSheet.Cells(i + 4, 13) = 利潤表_dgv.Rows(i).Cells("工廠").Value
111
+            xlSheet.Cells(i + 4, 14) = 利潤表_dgv.Rows(i).Cells("訂單種類").Value
112
+            xlSheet.Cells(i + 4, 15) = 利潤表_dgv.Rows(i).Cells("FTYPrice").Value
117
             xlSheet.Cells(i + 4, 16) = "=K" & i + 4 & "-(H" & i + 4 & "*O" & i + 4 & ")"
113
             xlSheet.Cells(i + 4, 16) = "=K" & i + 4 & "-(H" & i + 4 & "*O" & i + 4 & ")"
118
             xlSheet.Cells(i + 4, 17) = "=(K" & i + 4 & "-(H" & i + 4 & "*O" & i + 4 & "))/2"
114
             xlSheet.Cells(i + 4, 17) = "=(K" & i + 4 & "-(H" & i + 4 & "*O" & i + 4 & "))/2"
119
             xlSheet.Cells(i + 4, 18) = "=(K" & i + 4 & "-(H" & i + 4 & "*O" & i + 4 & "))/2"
115
             xlSheet.Cells(i + 4, 18) = "=(K" & i + 4 & "-(H" & i + 4 & "*O" & i + 4 & "))/2"
120
             xlSheet.Cells(i + 4, 19) = "=IF(K" & i + 4 & "=0,0,(K" & i + 4 & "-H" & i + 4 & "*O" & i + 4 & ")/K" & i + 4 & ")"
116
             xlSheet.Cells(i + 4, 19) = "=IF(K" & i + 4 & "=0,0,(K" & i + 4 & "-H" & i + 4 & "*O" & i + 4 & ")/K" & i + 4 & ")"
121
-            xlSheet.Cells(i + 4, 20) = DataGridView1.Rows(i).Cells("BasicPrice").Value
122
-            xlSheet.Cells(i + 4, 21) = DataGridView1.Rows(i).Cells("Polybag").Value
123
-            xlSheet.Cells(i + 4, 22) = DataGridView1.Rows(i).Cells("FOOTorPET").Value
124
-            xlSheet.Cells(i + 4, 23) = DataGridView1.Rows(i).Cells("Tooling").Value
125
-            xlSheet.Cells(i + 4, 24) = DataGridView1.Rows(i).Cells("RubberBand").Value
126
-            xlSheet.Cells(i + 4, 25) = DataGridView1.Rows(i).Cells("JHOOK").Value
127
-            xlSheet.Cells(i + 4, 26) = DataGridView1.Rows(i).Cells("WaterResistant").Value
128
-            xlSheet.Cells(i + 4, 27) = DataGridView1.Rows(i).Cells("P16VAT").Value
129
-            xlSheet.Cells(i + 4, 28) = DataGridView1.Rows(i).Cells("EXWsaving").Value
117
+            xlSheet.Cells(i + 4, 20) = 利潤表_dgv.Rows(i).Cells("BasicPrice").Value
118
+            xlSheet.Cells(i + 4, 21) = 利潤表_dgv.Rows(i).Cells("Polybag").Value
119
+            xlSheet.Cells(i + 4, 22) = 利潤表_dgv.Rows(i).Cells("FOOTorPET").Value
120
+            xlSheet.Cells(i + 4, 23) = 利潤表_dgv.Rows(i).Cells("Tooling").Value
121
+            xlSheet.Cells(i + 4, 24) = 利潤表_dgv.Rows(i).Cells("RubberBand").Value
122
+            xlSheet.Cells(i + 4, 25) = 利潤表_dgv.Rows(i).Cells("JHOOK").Value
123
+            xlSheet.Cells(i + 4, 26) = 利潤表_dgv.Rows(i).Cells("WaterResistant").Value
124
+            xlSheet.Cells(i + 4, 27) = 利潤表_dgv.Rows(i).Cells("P16VAT").Value
125
+            xlSheet.Cells(i + 4, 28) = 利潤表_dgv.Rows(i).Cells("EXWsaving").Value
130
             xlSheet.Cells(i + 4, 29) = "=W" & i + 4 & "*H" & i + 4 & ""
126
             xlSheet.Cells(i + 4, 29) = "=W" & i + 4 & "*H" & i + 4 & ""
131
-            xlSheet.Cells(i + 4, 30) = DataGridView1.Rows(i).Cells("Exchange").Value
132
-            xlSheet.Cells(i + 4, 31) = DataGridView1.Rows(i).Cells("ItemNumber").Value
133
-            xlSheet.Cells(i + 4, 32) = DataGridView1.Rows(i).Cells("審核").Value
134
-            xlSheet.Cells(i + 4, 33) = DataGridView1.Rows(i).Cells("客戶訂單號").Value
135
-            xlSheet.Cells(i + 4, 34) = DataGridView1.Rows(i).Cells("Material").Value
136
-            xlSheet.Cells(i + 4, 35) = DataGridView1.Rows(i).Cells("MaterialDescription").Value
137
-            xlSheet.Cells(i + 4, 36) = DataGridView1.Rows(i).Cells("Colorway").Value
138
-            xlSheet.Cells(i + 4, 37) = DataGridView1.Rows(i).Cells("SalesOrder").Value
139
-            xlSheet.Cells(i + 4, 38) = DataGridView1.Rows(i).Cells("CustomerName").Value
140
-            xlSheet.Cells(i + 4, 39) = DataGridView1.Rows(i).Cells("最終運送").Value
141
-            xlSheet.Cells(i + 4, 40) = DataGridView1.Rows(i).Cells("CustomerData").Value
127
+            xlSheet.Cells(i + 4, 30) = 利潤表_dgv.Rows(i).Cells("Exchange").Value
128
+            xlSheet.Cells(i + 4, 31) = 利潤表_dgv.Rows(i).Cells("ItemNumber").Value
129
+            xlSheet.Cells(i + 4, 32) = 利潤表_dgv.Rows(i).Cells("審核").Value
130
+            xlSheet.Cells(i + 4, 33) = 利潤表_dgv.Rows(i).Cells("客戶訂單號").Value
131
+            xlSheet.Cells(i + 4, 34) = 利潤表_dgv.Rows(i).Cells("SalesOrder").Value
132
+            xlSheet.Cells(i + 4, 35) = 利潤表_dgv.Rows(i).Cells("CustomerName").Value
133
+            xlSheet.Cells(i + 4, 36) = 利潤表_dgv.Rows(i).Cells("最終運送").Value
142
             With xlApp.Selection
134
             With xlApp.Selection
143
                 .Font.Bold = True
135
                 .Font.Bold = True
144
             End With
136
             End With
180
         xlSheet.Columns("AB:AB").Select : myExcel.Selection.ColumnWidth = 9 : xlSheet.Columns("AC:AC").Select : myExcel.Selection.ColumnWidth = 8
172
         xlSheet.Columns("AB:AB").Select : myExcel.Selection.ColumnWidth = 9 : xlSheet.Columns("AC:AC").Select : myExcel.Selection.ColumnWidth = 8
181
         xlSheet.Columns("AD:AD").Select : myExcel.Selection.ColumnWidth = 11 : xlSheet.Columns("AE:AE").Select : myExcel.Selection.ColumnWidth = 11
173
         xlSheet.Columns("AD:AD").Select : myExcel.Selection.ColumnWidth = 11 : xlSheet.Columns("AE:AE").Select : myExcel.Selection.ColumnWidth = 11
182
         xlSheet.Columns("AF:AF").Select : myExcel.Selection.ColumnWidth = 13 : xlSheet.Columns("AG:AG").Select : myExcel.Selection.ColumnWidth = 13
174
         xlSheet.Columns("AF:AF").Select : myExcel.Selection.ColumnWidth = 13 : xlSheet.Columns("AG:AG").Select : myExcel.Selection.ColumnWidth = 13
183
-        xlSheet.Columns("AH:AH").Select : myExcel.Selection.ColumnWidth = 15 : xlSheet.Columns("AI:AI").Select : myExcel.Selection.ColumnWidth = 30
184
-        xlSheet.Columns("AJ:AJ").Select : myExcel.Selection.ColumnWidth = 12 : xlSheet.Columns("AK:AK").Select : myExcel.Selection.ColumnWidth = 14
185
-        xlSheet.Columns("AL:AL").Select : myExcel.Selection.ColumnWidth = 8 : xlSheet.Columns("AM:AM").Select : myExcel.Selection.ColumnWidth = 75
186
-        xlSheet.Columns("AN:AN").Select : myExcel.Selection.ColumnWidth = 105
175
+        xlSheet.Columns("AH:AH").Select : myExcel.Selection.ColumnWidth = 14 : xlSheet.Columns("AI:AI").Select : myExcel.Selection.ColumnWidth = 8
176
+        xlSheet.Columns("AJ:AJ").Select : myExcel.Selection.ColumnWidth = 75
177
+
187
 
178
 
188
         xlSheet.Cells.Select()
179
         xlSheet.Cells.Select()
189
         With myExcel.Selection.Font
180
         With myExcel.Selection.Font
269
         xlSheet.Range("T1:AC3").Select() : With myExcel.Selection.Interior
260
         xlSheet.Range("T1:AC3").Select() : With myExcel.Selection.Interior
270
             .Pattern = xlSolid : .PatternColorIndex = xlAutomatic : .ThemeColor = xlThemeColorAccent6 : .TintAndShade = 0.399975585192419 : .PatternTintAndShade = 0 : End With
261
             .Pattern = xlSolid : .PatternColorIndex = xlAutomatic : .ThemeColor = xlThemeColorAccent6 : .TintAndShade = 0.399975585192419 : .PatternTintAndShade = 0 : End With
271
 
262
 
272
-        xlSheet.Range("A1:AN3").Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
263
+        xlSheet.Range("A1:AJ3").Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
273
         With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
264
         With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
274
         With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
265
         With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
275
         With myExcel.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
266
         With myExcel.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
280
         xlSheet.Rows("3:3").Select : myExcel.Selection.AutoFilter
271
         xlSheet.Rows("3:3").Select : myExcel.Selection.AutoFilter
281
 
272
 
282
         Dim M As Integer = 4
273
         Dim M As Integer = 4
283
-        For M = 4 To DataGridView1.Rows.Count + 2
274
+        For M = 4 To 利潤表_dgv.Rows.Count + 2
284
             M += 1
275
             M += 1
285
         Next M
276
         Next M
286
-        位置1 = "A4:AN" & M
277
+        位置1 = "A4:AJ" & M
287
         xlSheet.Range(位置1).Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
278
         xlSheet.Range(位置1).Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
288
         With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
279
         With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
289
         With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
280
         With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
297
             .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
288
             .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
298
         End With : myExcel.Selection.Merge
289
         End With : myExcel.Selection.Merge
299
 
290
 
300
-        xlSheet.Range("AM4:AN" & M).Select()
291
+        xlSheet.Range("AJ4:AJ" & M).Select()
301
         With myExcel.Selection : .HorizontalAlignment = xlGeneral : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False
292
         With myExcel.Selection : .HorizontalAlignment = xlGeneral : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False
302
             .IndentLevel = 0 : .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With
293
             .IndentLevel = 0 : .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With
303
 
294
 

+ 0
- 1
TENDEN-MES-SYS/樣品訂單管理/中文樣品單系統/中文樣品吊牌管理.vb 查看文件

2
 Imports System.IO
2
 Imports System.IO
3
 Public Class 中文樣品吊牌管理
3
 Public Class 中文樣品吊牌管理
4
     ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet
4
     ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet
5
-    ReadOnly DTP(0) As String
6
     Private Sub Set_DGV1載入前設定()
5
     Private Sub Set_DGV1載入前設定()
7
         Try
6
         Try
8
             樣品吊牌管理_dtp.DataSource = Nothing : ds.Clear()
7
             樣品吊牌管理_dtp.DataSource = Nothing : ds.Clear()

+ 7
- 7
TENDEN-MES-SYS/資料庫系統管理/下拉清單_1.Designer.vb 查看文件

35
         '
35
         '
36
         Me.ListBox1.FormattingEnabled = True
36
         Me.ListBox1.FormattingEnabled = True
37
         Me.ListBox1.ItemHeight = 16
37
         Me.ListBox1.ItemHeight = 16
38
-        Me.ListBox1.Location = New System.Drawing.Point(2, 2)
38
+        Me.ListBox1.Location = New System.Drawing.Point(4, 2)
39
         Me.ListBox1.Name = "ListBox1"
39
         Me.ListBox1.Name = "ListBox1"
40
         Me.ListBox1.Size = New System.Drawing.Size(214, 404)
40
         Me.ListBox1.Size = New System.Drawing.Size(214, 404)
41
         Me.ListBox1.TabIndex = 0
41
         Me.ListBox1.TabIndex = 0
44
         '
44
         '
45
         Me.ListBox2.FormattingEnabled = True
45
         Me.ListBox2.FormattingEnabled = True
46
         Me.ListBox2.ItemHeight = 16
46
         Me.ListBox2.ItemHeight = 16
47
-        Me.ListBox2.Location = New System.Drawing.Point(194, 2)
47
+        Me.ListBox2.Location = New System.Drawing.Point(217, 2)
48
         Me.ListBox2.Name = "ListBox2"
48
         Me.ListBox2.Name = "ListBox2"
49
         Me.ListBox2.Size = New System.Drawing.Size(214, 404)
49
         Me.ListBox2.Size = New System.Drawing.Size(214, 404)
50
         Me.ListBox2.TabIndex = 1
50
         Me.ListBox2.TabIndex = 1
53
         '
53
         '
54
         Me.ListBox3.FormattingEnabled = True
54
         Me.ListBox3.FormattingEnabled = True
55
         Me.ListBox3.ItemHeight = 16
55
         Me.ListBox3.ItemHeight = 16
56
-        Me.ListBox3.Location = New System.Drawing.Point(409, 3)
56
+        Me.ListBox3.Location = New System.Drawing.Point(430, 2)
57
         Me.ListBox3.Name = "ListBox3"
57
         Me.ListBox3.Name = "ListBox3"
58
         Me.ListBox3.Size = New System.Drawing.Size(214, 404)
58
         Me.ListBox3.Size = New System.Drawing.Size(214, 404)
59
         Me.ListBox3.TabIndex = 2
59
         Me.ListBox3.TabIndex = 2
62
         '
62
         '
63
         Me.ListBox4.FormattingEnabled = True
63
         Me.ListBox4.FormattingEnabled = True
64
         Me.ListBox4.ItemHeight = 16
64
         Me.ListBox4.ItemHeight = 16
65
-        Me.ListBox4.Location = New System.Drawing.Point(624, 3)
65
+        Me.ListBox4.Location = New System.Drawing.Point(643, 2)
66
         Me.ListBox4.Name = "ListBox4"
66
         Me.ListBox4.Name = "ListBox4"
67
         Me.ListBox4.Size = New System.Drawing.Size(214, 404)
67
         Me.ListBox4.Size = New System.Drawing.Size(214, 404)
68
         Me.ListBox4.TabIndex = 3
68
         Me.ListBox4.TabIndex = 3
70
         '上一頁_bt
70
         '上一頁_bt
71
         '
71
         '
72
         Me.上一頁_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
72
         Me.上一頁_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
73
-        Me.上一頁_bt.Location = New System.Drawing.Point(2, 407)
73
+        Me.上一頁_bt.Location = New System.Drawing.Point(4, 407)
74
         Me.上一頁_bt.Name = "上一頁_bt"
74
         Me.上一頁_bt.Name = "上一頁_bt"
75
         Me.上一頁_bt.Size = New System.Drawing.Size(160, 25)
75
         Me.上一頁_bt.Size = New System.Drawing.Size(160, 25)
76
         Me.上一頁_bt.TabIndex = 1523
76
         Me.上一頁_bt.TabIndex = 1523
80
         '下一頁_bt
80
         '下一頁_bt
81
         '
81
         '
82
         Me.下一頁_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
82
         Me.下一頁_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
83
-        Me.下一頁_bt.Location = New System.Drawing.Point(677, 407)
83
+        Me.下一頁_bt.Location = New System.Drawing.Point(697, 407)
84
         Me.下一頁_bt.Name = "下一頁_bt"
84
         Me.下一頁_bt.Name = "下一頁_bt"
85
         Me.下一頁_bt.Size = New System.Drawing.Size(160, 25)
85
         Me.下一頁_bt.Size = New System.Drawing.Size(160, 25)
86
         Me.下一頁_bt.TabIndex = 1524
86
         Me.下一頁_bt.TabIndex = 1524
91
         '
91
         '
92
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
92
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
93
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
93
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
94
-        Me.ClientSize = New System.Drawing.Size(839, 432)
94
+        Me.ClientSize = New System.Drawing.Size(861, 432)
95
         Me.Controls.Add(Me.下一頁_bt)
95
         Me.Controls.Add(Me.下一頁_bt)
96
         Me.Controls.Add(Me.上一頁_bt)
96
         Me.Controls.Add(Me.上一頁_bt)
97
         Me.Controls.Add(Me.ListBox4)
97
         Me.Controls.Add(Me.ListBox4)

+ 11
- 11
TENDEN-MES-SYS/量產訂單管理/系統列印介面/列印_生產進度表.Designer.vb 查看文件

32
         Me.JH_QVC_ch = New System.Windows.Forms.CheckBox()
32
         Me.JH_QVC_ch = New System.Windows.Forms.CheckBox()
33
         Me.SK_QVC_ch = New System.Windows.Forms.CheckBox()
33
         Me.SK_QVC_ch = New System.Windows.Forms.CheckBox()
34
         Me.NJ_QVC_ch = New System.Windows.Forms.CheckBox()
34
         Me.NJ_QVC_ch = New System.Windows.Forms.CheckBox()
35
-        Me.CheckBox7 = New System.Windows.Forms.CheckBox()
35
+        Me.全資料_ch = New System.Windows.Forms.CheckBox()
36
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
36
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
37
         Me.SuspendLayout()
37
         Me.SuspendLayout()
38
         '
38
         '
136
         Me.NJ_QVC_ch.Text = "NJ-QVC"
136
         Me.NJ_QVC_ch.Text = "NJ-QVC"
137
         Me.NJ_QVC_ch.UseVisualStyleBackColor = True
137
         Me.NJ_QVC_ch.UseVisualStyleBackColor = True
138
         '
138
         '
139
-        'CheckBox7
139
+        '全資料_ch
140
         '
140
         '
141
-        Me.CheckBox7.AutoSize = True
142
-        Me.CheckBox7.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
143
-        Me.CheckBox7.Location = New System.Drawing.Point(219, 15)
144
-        Me.CheckBox7.Name = "CheckBox7"
145
-        Me.CheckBox7.Size = New System.Drawing.Size(15, 14)
146
-        Me.CheckBox7.TabIndex = 326
147
-        Me.CheckBox7.UseVisualStyleBackColor = True
141
+        Me.全資料_ch.AutoSize = True
142
+        Me.全資料_ch.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
143
+        Me.全資料_ch.Location = New System.Drawing.Point(219, 15)
144
+        Me.全資料_ch.Name = "全資料_ch"
145
+        Me.全資料_ch.Size = New System.Drawing.Size(15, 14)
146
+        Me.全資料_ch.TabIndex = 326
147
+        Me.全資料_ch.UseVisualStyleBackColor = True
148
         '
148
         '
149
         '列印_生產進度表
149
         '列印_生產進度表
150
         '
150
         '
151
         Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!)
151
         Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!)
152
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
152
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
153
         Me.ClientSize = New System.Drawing.Size(246, 116)
153
         Me.ClientSize = New System.Drawing.Size(246, 116)
154
-        Me.Controls.Add(Me.CheckBox7)
154
+        Me.Controls.Add(Me.全資料_ch)
155
         Me.Controls.Add(Me.NJ_QVC_ch)
155
         Me.Controls.Add(Me.NJ_QVC_ch)
156
         Me.Controls.Add(Me.SK_QVC_ch)
156
         Me.Controls.Add(Me.SK_QVC_ch)
157
         Me.Controls.Add(Me.JH_QVC_ch)
157
         Me.Controls.Add(Me.JH_QVC_ch)
179
     Friend WithEvents JH_QVC_ch As CheckBox
179
     Friend WithEvents JH_QVC_ch As CheckBox
180
     Friend WithEvents SK_QVC_ch As CheckBox
180
     Friend WithEvents SK_QVC_ch As CheckBox
181
     Friend WithEvents NJ_QVC_ch As CheckBox
181
     Friend WithEvents NJ_QVC_ch As CheckBox
182
-    Friend WithEvents CheckBox7 As CheckBox
182
+    Friend WithEvents 全資料_ch As CheckBox
183
 End Class
183
 End Class
184
 
184
 

+ 14
- 15
TENDEN-MES-SYS/量產訂單管理/系統列印介面/列印_生產進度表.vb 查看文件

24
             DataGridView1.ColumnHeadersHeight = 25
24
             DataGridView1.ColumnHeadersHeight = 25
25
             DataGridView1.AllowUserToAddRows = False
25
             DataGridView1.AllowUserToAddRows = False
26
             ConnOpen()
26
             ConnOpen()
27
-            If CheckBox7.Checked = True Then
27
+            If 全資料_ch.Checked = True Then
28
                 SQL_讀取訂單清單()
28
                 SQL_讀取訂單清單()
29
             ElseIf NJ_ch.Checked = True And NJ_QVC_ch.Checked = True Then
29
             ElseIf NJ_ch.Checked = True And NJ_QVC_ch.Checked = True Then
30
                 SQL_讀取訂單清單1()
30
                 SQL_讀取訂單清單1()
53
     Private Sub Set_格式設定()
53
     Private Sub Set_格式設定()
54
         DataGridView1.Visible = False
54
         DataGridView1.Visible = False
55
         If gUserName = "李協叡" Then
55
         If gUserName = "李協叡" Then
56
-            CheckBox7.Visible = True
56
+            全資料_ch.Visible = True
57
         Else
57
         Else
58
-            CheckBox7.Visible = False
59
-
58
+            全資料_ch.Visible = False
60
         End If
59
         End If
61
     End Sub
60
     End Sub
62
     Private Sub 列印_生產進度表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
61
     Private Sub 列印_生產進度表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
84
             xlApp.Sheets(1).Select
83
             xlApp.Sheets(1).Select
85
 
84
 
86
             If xlApp.Sheets(1).Name = "工作表2" Then
85
             If xlApp.Sheets(1).Name = "工作表2" Then
87
-                If CheckBox7.Checked = True Then : xlApp.Sheets("工作表2").Name = "全資料"
86
+                If 全資料_ch.Checked = True Then : xlApp.Sheets("工作表2").Name = "全資料"
88
                 ElseIf NJ_ch.Checked = True Then : xlApp.Sheets("工作表2").Name = "NJ"
87
                 ElseIf NJ_ch.Checked = True Then : xlApp.Sheets("工作表2").Name = "NJ"
89
                 ElseIf SK_ch.Checked = True Then : xlApp.Sheets("工作表2").Name = "SK"
88
                 ElseIf SK_ch.Checked = True Then : xlApp.Sheets("工作表2").Name = "SK"
90
                 ElseIf JH_ch.Checked = True Then : xlApp.Sheets("工作表2").Name = "JH"
89
                 ElseIf JH_ch.Checked = True Then : xlApp.Sheets("工作表2").Name = "JH"
93
                 ElseIf NJ_QVC_ch.Checked = True Then : xlApp.Sheets("工作表2").Name = "NJ-QVC"
92
                 ElseIf NJ_QVC_ch.Checked = True Then : xlApp.Sheets("工作表2").Name = "NJ-QVC"
94
                 End If
93
                 End If
95
             Else
94
             Else
96
-                If CheckBox7.Checked = True Then : xlApp.Sheets("sheet2").Name = "全資料"
95
+                If 全資料_ch.Checked = True Then : xlApp.Sheets("sheet2").Name = "全資料"
97
                 ElseIf NJ_ch.Checked = True Then : xlApp.Sheets("sheet2").Name = "NJ"
96
                 ElseIf NJ_ch.Checked = True Then : xlApp.Sheets("sheet2").Name = "NJ"
98
                 ElseIf SK_ch.Checked = True Then : xlApp.Sheets("sheet2").Name = "SK"
97
                 ElseIf SK_ch.Checked = True Then : xlApp.Sheets("sheet2").Name = "SK"
99
                 ElseIf JH_ch.Checked = True Then : xlApp.Sheets("sheet2").Name = "JH"
98
                 ElseIf JH_ch.Checked = True Then : xlApp.Sheets("sheet2").Name = "JH"
106
             xlBook.Activate()
105
             xlBook.Activate()
107
             xlSheet.Activate()
106
             xlSheet.Activate()
108
             xlSheet.Range("A1").Select()
107
             xlSheet.Range("A1").Select()
109
-            If CheckBox7.Checked = True Then : xlSheet.Cells(1, 1) = "" & PID & "  大貨進度表"
108
+            If 全資料_ch.Checked = True Then : xlSheet.Cells(1, 1) = "" & PID & "  大貨進度表"
110
             ElseIf NJ_ch.Checked = True Then : xlSheet.Cells(1, 1) = "" & PID & " 大貨進度表(楠晋)"
109
             ElseIf NJ_ch.Checked = True Then : xlSheet.Cells(1, 1) = "" & PID & " 大貨進度表(楠晋)"
111
             ElseIf SK_ch.Checked = True Then : xlSheet.Cells(1, 1) = "" & PID & " 大貨進度表(森康)"
110
             ElseIf SK_ch.Checked = True Then : xlSheet.Cells(1, 1) = "" & PID & " 大貨進度表(森康)"
112
             ElseIf JH_ch.Checked = True Then : xlSheet.Cells(1, 1) = "" & PID & " 大貨進度表(玖弘)"
111
             ElseIf JH_ch.Checked = True Then : xlSheet.Cells(1, 1) = "" & PID & " 大貨進度表(玖弘)"
384
     End Sub
383
     End Sub
385
     Private Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles NJ_ch.Click
384
     Private Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles NJ_ch.Click
386
         If NJ_ch.Checked = True Then : NJ_ch.Checked = True
385
         If NJ_ch.Checked = True Then : NJ_ch.Checked = True
387
-            SK_ch.Checked = False : JH_ch.Checked = False : JH_QVC_ch.Checked = False : SK_QVC_ch.Checked = False : CheckBox7.Checked = False : End If
386
+            SK_ch.Checked = False : JH_ch.Checked = False : JH_QVC_ch.Checked = False : SK_QVC_ch.Checked = False : 全資料_ch.Checked = False : End If
388
     End Sub
387
     End Sub
389
     Private Sub CheckBox2_CheckedChanged(sender As Object, e As EventArgs) Handles SK_ch.Click
388
     Private Sub CheckBox2_CheckedChanged(sender As Object, e As EventArgs) Handles SK_ch.Click
390
         If SK_ch.Checked = True Then : SK_ch.Checked = True
389
         If SK_ch.Checked = True Then : SK_ch.Checked = True
391
-            NJ_ch.Checked = False : JH_ch.Checked = False : JH_QVC_ch.Checked = False : NJ_QVC_ch.Checked = False : CheckBox7.Checked = False : End If
390
+            NJ_ch.Checked = False : JH_ch.Checked = False : JH_QVC_ch.Checked = False : NJ_QVC_ch.Checked = False : 全資料_ch.Checked = False : End If
392
     End Sub
391
     End Sub
393
     Private Sub CheckBox3_CheckedChanged(sender As Object, e As EventArgs) Handles JH_ch.Click
392
     Private Sub CheckBox3_CheckedChanged(sender As Object, e As EventArgs) Handles JH_ch.Click
394
         If JH_ch.Checked = True Then : JH_ch.Checked = True
393
         If JH_ch.Checked = True Then : JH_ch.Checked = True
395
-            NJ_ch.Checked = False : SK_ch.Checked = False : SK_QVC_ch.Checked = False : NJ_QVC_ch.Checked = False : CheckBox7.Checked = False : End If
394
+            NJ_ch.Checked = False : SK_ch.Checked = False : SK_QVC_ch.Checked = False : NJ_QVC_ch.Checked = False : 全資料_ch.Checked = False : End If
396
     End Sub
395
     End Sub
397
     Private Sub CheckBox4_CheckedChanged(sender As Object, e As EventArgs) Handles JH_QVC_ch.Click
396
     Private Sub CheckBox4_CheckedChanged(sender As Object, e As EventArgs) Handles JH_QVC_ch.Click
398
         If JH_QVC_ch.Checked = True Then : JH_QVC_ch.Checked = True
397
         If JH_QVC_ch.Checked = True Then : JH_QVC_ch.Checked = True
399
-            NJ_ch.Checked = False : SK_ch.Checked = False : SK_QVC_ch.Checked = False : NJ_QVC_ch.Checked = False : CheckBox7.Checked = False : End If
398
+            NJ_ch.Checked = False : SK_ch.Checked = False : SK_QVC_ch.Checked = False : NJ_QVC_ch.Checked = False : 全資料_ch.Checked = False : End If
400
     End Sub
399
     End Sub
401
     Private Sub CheckBox5_CheckedChanged(sender As Object, e As EventArgs) Handles SK_QVC_ch.Click
400
     Private Sub CheckBox5_CheckedChanged(sender As Object, e As EventArgs) Handles SK_QVC_ch.Click
402
         If SK_QVC_ch.Checked = True Then : SK_QVC_ch.Checked = True
401
         If SK_QVC_ch.Checked = True Then : SK_QVC_ch.Checked = True
403
-            NJ_ch.Checked = False : JH_ch.Checked = False : JH_QVC_ch.Checked = False : NJ_QVC_ch.Checked = False : CheckBox7.Checked = False : End If
402
+            NJ_ch.Checked = False : JH_ch.Checked = False : JH_QVC_ch.Checked = False : NJ_QVC_ch.Checked = False : 全資料_ch.Checked = False : End If
404
     End Sub
403
     End Sub
405
     Private Sub CheckBox6_CheckedChanged(sender As Object, e As EventArgs) Handles NJ_QVC_ch.Click
404
     Private Sub CheckBox6_CheckedChanged(sender As Object, e As EventArgs) Handles NJ_QVC_ch.Click
406
         If NJ_QVC_ch.Checked = True Then : NJ_QVC_ch.Checked = True
405
         If NJ_QVC_ch.Checked = True Then : NJ_QVC_ch.Checked = True
407
-            SK_ch.Checked = False : JH_ch.Checked = False : JH_QVC_ch.Checked = False : SK_QVC_ch.Checked = False : CheckBox7.Checked = False : End If
406
+            SK_ch.Checked = False : JH_ch.Checked = False : JH_QVC_ch.Checked = False : SK_QVC_ch.Checked = False : 全資料_ch.Checked = False : End If
408
     End Sub
407
     End Sub
409
-    Private Sub CheckBox7_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox7.Click
410
-        If CheckBox7.Checked = True Then : CheckBox7.Checked = True
408
+    Private Sub CheckBox7_CheckedChanged(sender As Object, e As EventArgs) Handles 全資料_ch.Click
409
+        If 全資料_ch.Checked = True Then : 全資料_ch.Checked = True
411
             NJ_ch.Checked = False : SK_ch.Checked = False : JH_ch.Checked = False : JH_QVC_ch.Checked = False : SK_QVC_ch.Checked = False : NJ_QVC_ch.Checked = False : End If
410
             NJ_ch.Checked = False : SK_ch.Checked = False : JH_ch.Checked = False : JH_QVC_ch.Checked = False : SK_QVC_ch.Checked = False : NJ_QVC_ch.Checked = False : End If
412
     End Sub
411
     End Sub
413
 End Class
412
 End Class

+ 0
- 1
TENDEN-MES-SYS/量產訂單管理/訂單周邊資訊/訂單執行資訊輸入.vb 查看文件

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 QQ(1) As Boolean
9
     ReadOnly QQ(1) As Boolean
10
-    Public 平均數 As Integer : Public 最終數 As Integer = 0 : Public 資料數 As Integer = 0
11
     Public 平均數1 As Integer : Public 最終數1 As Integer = 0 : Public 資料數1 As Integer = 0
10
     Public 平均數1 As Integer : Public 最終數1 As Integer = 0 : Public 資料數1 As Integer = 0
12
     Private Sub Set_清單()
11
     Private Sub Set_清單()
13
         Try
12
         Try

Loading…
取消
儲存