B70340 3 anos atrás
pai
commit
8ff27acc76

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


+ 2
- 6
TENDEN-MES-SYS/Module/SQL_成本系統管理.vb Ver arquivo

@@ -72,9 +72,7 @@
72 72
                             " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling AS CollectedToolng, " & 訂單資料表(7) & ".年份, 
73 73
                             " & 訂單資料表(7) & ".利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity AS 驗證, 
74 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 76
                 FROM        " & 訂單資料表(1) & " LEFT OUTER JOIN
79 77
                             " & 訂單資料表(0) & " ON " & 訂單資料表(1) & ".訂單流水號 = " & 訂單資料表(0) & ".天盾流水號 LEFT OUTER JOIN
80 78
                             " & 訂單資料表(2) & " ON " & 訂單資料表(1) & ".顏色 = " & 訂單資料表(2) & ".Colorway AND 
@@ -95,9 +93,7 @@
95 93
                             " & 訂單資料表(7) & ".EXWsaving, " & 訂單資料表(7) & ".Quantity * " & 訂單資料表(7) & ".Tooling, 
96 94
                             " & 訂單資料表(7) & ".年份, " & 訂單資料表(7) & ".利潤表流水號, " & 訂單資料表(1) & ".訂單數量 - " & 訂單資料表(7) & ".Quantity, 
97 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 97
                 ORDER BY    " & 訂單資料表(1) & ".訂單流水號 DESC"
102 98
     End Sub
103 99
     '----------------------------------訂單價格利潤明細表--------------------------------------------------------------

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

@@ -4,7 +4,7 @@
4 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 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 9
     Public 匯率 As Double
10 10
 

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


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


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


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


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


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


+ 0
- 1
TENDEN-MES-SYS/圖片資料庫管理/楦頭圖片系統/楦頭圖片導入資料庫.vb Ver arquivo

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

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

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

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

@@ -25,8 +25,8 @@ Partial Class 列印_訂單價格利潤表
25 25
         Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26 26
         Me.取消列印_bt = New System.Windows.Forms.Button()
27 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 30
         Me.SuspendLayout()
31 31
         '
32 32
         '取消列印_bt
@@ -51,17 +51,17 @@ Partial Class 列印_訂單價格利潤表
51 51
         Me.確認列印_bt.Text = "確認列印"
52 52
         Me.確認列印_bt.UseVisualStyleBackColor = True
53 53
         '
54
-        'DataGridView1
54
+        '利潤表_dgv
55 55
         '
56 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,19 +70,19 @@ Partial Class 列印_訂單價格利潤表
70 70
         Me.ClientSize = New System.Drawing.Size(250, 73)
71 71
         Me.Controls.Add(Me.取消列印_bt)
72 72
         Me.Controls.Add(Me.確認列印_bt)
73
-        Me.Controls.Add(Me.DataGridView1)
73
+        Me.Controls.Add(Me.利潤表_dgv)
74 74
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
75 75
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
76 76
         Me.Name = "列印_訂單價格利潤表"
77 77
         Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
78 78
         Me.Text = "訂單價格利潤表列印"
79
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
79
+        CType(Me.利潤表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
80 80
         Me.ResumeLayout(False)
81 81
 
82 82
     End Sub
83 83
 
84 84
     Friend WithEvents 取消列印_bt As Button
85 85
     Friend WithEvents 確認列印_bt As Button
86
-    Friend WithEvents DataGridView1 As DataGridView
86
+    Friend WithEvents 利潤表_dgv As DataGridView
87 87
 End Class
88 88
 

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

@@ -10,20 +10,20 @@ Imports Microsoft.Office.Interop.Excel.XlWindowState
10 10
 Public Class 列印_訂單價格利潤表
11 11
     ReadOnly ds As New DataSet
12 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 17
         ConnOpen()
18 18
     End Sub
19 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 21
     End Sub
22 22
     Private Sub Set_訂單清單()
23 23
         Set_DGV1載入前設定() : SQL_訂單價格利潤表() : Set_DGV1載入後設定()
24 24
     End Sub
25 25
     Private Sub Set_格式設定()
26
-        DataGridView1.Visible = False
26
+        利潤表_dgv.Visible = False
27 27
     End Sub
28 28
     Private Sub 列印_訂單價格利潤表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
29 29
         FormBorderStyle = FormBorderStyle.SizableToolWindow : ControlBox = False
@@ -89,56 +89,48 @@ Public Class 列印_訂單價格利潤表
89 89
         xlSheet.Cells(3, 31) = "ItemNumber"
90 90
         xlSheet.Cells(3, 32) = "審核"
91 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 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 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 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 113
             xlSheet.Cells(i + 4, 16) = "=K" & i + 4 & "-(H" & i + 4 & "*O" & i + 4 & ")"
118 114
             xlSheet.Cells(i + 4, 17) = "=(K" & i + 4 & "-(H" & i + 4 & "*O" & i + 4 & "))/2"
119 115
             xlSheet.Cells(i + 4, 18) = "=(K" & i + 4 & "-(H" & i + 4 & "*O" & i + 4 & "))/2"
120 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 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 134
             With xlApp.Selection
143 135
                 .Font.Bold = True
144 136
             End With
@@ -180,10 +172,9 @@ Public Class 列印_訂單價格利潤表
180 172
         xlSheet.Columns("AB:AB").Select : myExcel.Selection.ColumnWidth = 9 : xlSheet.Columns("AC:AC").Select : myExcel.Selection.ColumnWidth = 8
181 173
         xlSheet.Columns("AD:AD").Select : myExcel.Selection.ColumnWidth = 11 : xlSheet.Columns("AE:AE").Select : myExcel.Selection.ColumnWidth = 11
182 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 179
         xlSheet.Cells.Select()
189 180
         With myExcel.Selection.Font
@@ -269,7 +260,7 @@ Public Class 列印_訂單價格利潤表
269 260
         xlSheet.Range("T1:AC3").Select() : With myExcel.Selection.Interior
270 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 264
         With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
274 265
         With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
275 266
         With myExcel.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
@@ -280,10 +271,10 @@ Public Class 列印_訂單價格利潤表
280 271
         xlSheet.Rows("3:3").Select : myExcel.Selection.AutoFilter
281 272
 
282 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 275
             M += 1
285 276
         Next M
286
-        位置1 = "A4:AN" & M
277
+        位置1 = "A4:AJ" & M
287 278
         xlSheet.Range(位置1).Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
288 279
         With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
289 280
         With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
@@ -297,7 +288,7 @@ Public Class 列印_訂單價格利潤表
297 288
             .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
298 289
         End With : myExcel.Selection.Merge
299 290
 
300
-        xlSheet.Range("AM4:AN" & M).Select()
291
+        xlSheet.Range("AJ4:AJ" & M).Select()
301 292
         With myExcel.Selection : .HorizontalAlignment = xlGeneral : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False
302 293
             .IndentLevel = 0 : .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With
303 294
 

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

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

+ 7
- 7
TENDEN-MES-SYS/資料庫系統管理/下拉清單_1.Designer.vb Ver arquivo

@@ -35,7 +35,7 @@ Partial Class 下拉清單_1
35 35
         '
36 36
         Me.ListBox1.FormattingEnabled = True
37 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 39
         Me.ListBox1.Name = "ListBox1"
40 40
         Me.ListBox1.Size = New System.Drawing.Size(214, 404)
41 41
         Me.ListBox1.TabIndex = 0
@@ -44,7 +44,7 @@ Partial Class 下拉清單_1
44 44
         '
45 45
         Me.ListBox2.FormattingEnabled = True
46 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 48
         Me.ListBox2.Name = "ListBox2"
49 49
         Me.ListBox2.Size = New System.Drawing.Size(214, 404)
50 50
         Me.ListBox2.TabIndex = 1
@@ -53,7 +53,7 @@ Partial Class 下拉清單_1
53 53
         '
54 54
         Me.ListBox3.FormattingEnabled = True
55 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 57
         Me.ListBox3.Name = "ListBox3"
58 58
         Me.ListBox3.Size = New System.Drawing.Size(214, 404)
59 59
         Me.ListBox3.TabIndex = 2
@@ -62,7 +62,7 @@ Partial Class 下拉清單_1
62 62
         '
63 63
         Me.ListBox4.FormattingEnabled = True
64 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 66
         Me.ListBox4.Name = "ListBox4"
67 67
         Me.ListBox4.Size = New System.Drawing.Size(214, 404)
68 68
         Me.ListBox4.TabIndex = 3
@@ -70,7 +70,7 @@ Partial Class 下拉清單_1
70 70
         '上一頁_bt
71 71
         '
72 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 74
         Me.上一頁_bt.Name = "上一頁_bt"
75 75
         Me.上一頁_bt.Size = New System.Drawing.Size(160, 25)
76 76
         Me.上一頁_bt.TabIndex = 1523
@@ -80,7 +80,7 @@ Partial Class 下拉清單_1
80 80
         '下一頁_bt
81 81
         '
82 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 84
         Me.下一頁_bt.Name = "下一頁_bt"
85 85
         Me.下一頁_bt.Size = New System.Drawing.Size(160, 25)
86 86
         Me.下一頁_bt.TabIndex = 1524
@@ -91,7 +91,7 @@ Partial Class 下拉清單_1
91 91
         '
92 92
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
93 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 95
         Me.Controls.Add(Me.下一頁_bt)
96 96
         Me.Controls.Add(Me.上一頁_bt)
97 97
         Me.Controls.Add(Me.ListBox4)

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

@@ -32,7 +32,7 @@ Partial Class 列印_生產進度表
32 32
         Me.JH_QVC_ch = New System.Windows.Forms.CheckBox()
33 33
         Me.SK_QVC_ch = New System.Windows.Forms.CheckBox()
34 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 36
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
37 37
         Me.SuspendLayout()
38 38
         '
@@ -136,22 +136,22 @@ Partial Class 列印_生產進度表
136 136
         Me.NJ_QVC_ch.Text = "NJ-QVC"
137 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 151
         Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!)
152 152
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
153 153
         Me.ClientSize = New System.Drawing.Size(246, 116)
154
-        Me.Controls.Add(Me.CheckBox7)
154
+        Me.Controls.Add(Me.全資料_ch)
155 155
         Me.Controls.Add(Me.NJ_QVC_ch)
156 156
         Me.Controls.Add(Me.SK_QVC_ch)
157 157
         Me.Controls.Add(Me.JH_QVC_ch)
@@ -179,6 +179,6 @@ Partial Class 列印_生產進度表
179 179
     Friend WithEvents JH_QVC_ch As CheckBox
180 180
     Friend WithEvents SK_QVC_ch As CheckBox
181 181
     Friend WithEvents NJ_QVC_ch As CheckBox
182
-    Friend WithEvents CheckBox7 As CheckBox
182
+    Friend WithEvents 全資料_ch As CheckBox
183 183
 End Class
184 184
 

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

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

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

@@ -7,7 +7,6 @@ Public Class 訂單執行資訊輸入
7 7
     Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
8 8
     Dim file_name As String = ""
9 9
     ReadOnly QQ(1) As Boolean
10
-    Public 平均數 As Integer : Public 最終數 As Integer = 0 : Public 資料數 As Integer = 0
11 10
     Public 平均數1 As Integer : Public 最終數1 As Integer = 0 : Public 資料數1 As Integer = 0
12 11
     Private Sub Set_清單()
13 12
         Try

Carregando…
Cancelar
Salvar