B70340 2 년 전
부모
커밋
ec729cad2f

.vs/TENDEN-MES-SYS/FileContentIndex/1e2995c3-90eb-4020-b32f-963b365518f4.vsidx → .vs/TENDEN-MES-SYS/FileContentIndex/60b1a83c-e059-41f8-bcb2-6c4b78b139e2.vsidx 파일 보기


BIN
.vs/TENDEN-MES-SYS/FileContentIndex/6dacd10b-d3b9-4485-be2d-dc6a498c5de4.vsidx 파일 보기


BIN
.vs/TENDEN-MES-SYS/FileContentIndex/8932a195-f9fe-454d-9cde-da81c03fa720.vsidx 파일 보기


BIN
.vs/TENDEN-MES-SYS/FileContentIndex/6c994f0c-5602-461c-99f1-0df5647fa969.vsidx → .vs/TENDEN-MES-SYS/FileContentIndex/d06492e1-0834-4c51-94ed-524c570e0a2b.vsidx 파일 보기


BIN
.vs/TENDEN-MES-SYS/v17/.suo 파일 보기


BIN
.vs/TENDEN-MES-SYS/v17/02ywiabh.uyt 파일 보기


BIN
.vs/TENDEN-MES-SYS/v17/1fiduqko.nz2 파일 보기


BIN
.vs/TENDEN-MES-SYS/v17/aiw3wrgv.0sc 파일 보기


BIN
.vs/TENDEN-MES-SYS/v17/rpwy3juk.zjq 파일 보기


BIN
.vs/TENDEN-MES-SYS/v17/rri50zss.jct 파일 보기


+ 2
- 2
TENDEN-MES-SYS/Module/SQL_樣品訂單管理.vb 파일 보기

@@ -1681,11 +1681,11 @@
1681 1681
     '-----------------列印_中文樣品單------------------------------
1682 1682
     Friend Sub SQL_列印_中文樣品單_敘述攔()
1683 1683
         ConnOpen()
1684
-        SQL1 = "SELECT    確認樣品單明細表.細項, 確認樣品單敘述欄.內容
1684
+        SQL1 = "SELECT    確認樣品單明細表.細項, 確認樣品單敘述欄.內容, 確認樣品單明細表.廠商
1685 1685
                     FROM      確認樣品單明細表 LEFT OUTER JOIN 確認樣品單敘述欄 ON 確認樣品單明細表.樣品流水號 = 確認樣品單敘述欄.樣品流水號 AND 
1686 1686
                               確認樣品單明細表.細項 = 確認樣品單敘述欄.細項
1687 1687
                     WHERE    (確認樣品單明細表.樣品流水號 LIKE '" & 列印用SQL & "') AND (確認樣品單明細表.細項 NOT LIKE '') 
1688
-                    GROUP BY  確認樣品單明細表.細項, 確認樣品單敘述欄.內容"
1688
+                    GROUP BY  確認樣品單明細表.細項, 確認樣品單敘述欄.內容, 確認樣品單明細表.廠商"
1689 1689
         CmdSet_For_DGV()
1690 1690
     End Sub
1691 1691
     Friend Sub SQL_列印_中文樣品單()

+ 1
- 1
TENDEN-MES-SYS/Module/全域變數.vb 파일 보기

@@ -3,7 +3,7 @@
3 3
     Public g_conn_type, gUserName, 版本號, Target, Target1, Target2, FTP帳號, FTP密碼, 登入人IP, AA(99), 圖片庫, SQL密碼 As String
4 4
     Public CC(99), 登入判斷 As Boolean
5 5
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6
-    Public 版本 As String = "2023010401"
6
+    Public 版本 As String = "2023020201"
7 7
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8 8
     Public 匯率 As Double
9 9
     '----系統用全域變數----------------------------------------------------------------------------------------------------------------------------------------------------------------------

BIN
TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.exe 파일 보기


BIN
TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.pdb 파일 보기


BIN
TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.exe 파일 보기


BIN
TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.pdb 파일 보기


BIN
TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.GenerateResource.cache 파일 보기


+ 195
- 78
TENDEN-MES-SYS/樣品訂單管理/系統列印介面/列印_中文樣品單.vb 파일 보기

@@ -18,7 +18,8 @@ Public Class 列印_中文樣品單
18 18
     Dim 位置5 As Integer = 0 : Dim 位置6 As Integer = 0 : Dim 位置7 As Integer = 0 : Dim 位置8 As Integer = 0 : Dim 位置9 As Integer = 0 : Dim 位置10 As Integer = 0
19 19
     Dim 面料數 As Integer = 0 : Dim 內裏數 As Integer = 0 : Dim 底部數 As Integer = 0 : Dim 飾物數 As Integer = 0
20 20
     Dim 位置11 As String : Dim 攔寬 As Single
21
-    Dim 第一頁 As Boolean : Dim 第二頁 As Boolean : Dim 第三頁 As Boolean : Dim 分頁計數 As Integer = 0 : Dim 分頁計數1 As Integer = 0
21
+    Dim 第一頁, 第二頁, 第三頁, 第四頁, 第五頁 As Boolean
22
+    Dim 分頁計數 As Integer = 0 : Dim 分頁計數1 As Integer = 0 : Dim 分頁計數2 As Integer = 0 : Dim 分頁計數3 As Integer = 0 : Dim 分頁計數4 As Integer = 0
22 23
     Dim DGVX As Integer
23 24
 
24 25
     Private Sub Set_訂單清單4()
@@ -182,30 +183,24 @@ Public Class 列印_中文樣品單
182 183
     Private Sub 循環列印2()
183 184
         Try
184 185
             For i As Integer = 0 To 樣品單明細表_dgv.Rows.Count - 1
185
-                xlSheet.Cells(15 + 位置1, 2) = 樣品單明細表_dgv.Rows(i).Cells("細項").Value
186
-                xlSheet.Cells(15 + 位置1 + 1, 2) = "廠商"
187
-                位置1 += 2
188
-                If 樣品單明細表_dgv.Rows(i).Cells("樣品流水號二").Value = 1 Then
189
-                    面料數 += 1
190
-                ElseIf 樣品單明細表_dgv.Rows(i).Cells("樣品流水號二").Value = 2 Then
191
-                    內裏數 += 1
192
-                ElseIf 樣品單明細表_dgv.Rows(i).Cells("樣品流水號二").Value = 3 Then
193
-                    底部數 += 1
194
-                ElseIf 樣品單明細表_dgv.Rows(i).Cells("樣品流水號二").Value = 4 Then
195
-                    飾物數 += 1
196
-                End If
186
+                xlSheet.Cells(15 + 位置1, 2) = 樣品單明細表_dgv.Rows(i).Cells("細項").Value      'xlSheet.Cells(15 + 位置1 + 1, 2) = "廠商"
187
+                位置1 += 1
188
+                If 樣品單明細表_dgv.Rows(i).Cells("樣品流水號二").Value = 1 Then : 面料數 += 1
189
+                ElseIf 樣品單明細表_dgv.Rows(i).Cells("樣品流水號二").Value = 2 Then : 內裏數 += 1
190
+                ElseIf 樣品單明細表_dgv.Rows(i).Cells("樣品流水號二").Value = 3 Then : 底部數 += 1
191
+                ElseIf 樣品單明細表_dgv.Rows(i).Cells("樣品流水號二").Value = 4 Then : 飾物數 += 1 : End If
197 192
             Next
198
-            位置3 = 15 + (面料數 * 2) + (內裏數 * 2) + (底部數 * 2) + (飾物數 * 2)
193
+            位置3 = 15 + (面料數 * 1) + (內裏數 * 1) + (底部數 * 1) + (飾物數 * 1)
199 194
         Catch ex As Exception : MsgBox(ex.Message) : End Try
200 195
     End Sub
201 196
     Private Sub 循環列印3()
202 197
         Try
203 198
             xlSheet.Cells(15, 1) = "面料"
204
-            xlSheet.Cells(15 + (面料數 * 2), 1) = "內裏"
205
-            xlSheet.Cells(15 + (面料數 * 2) + (內裏數 * 2), 1) = "底部"
206
-            xlSheet.Cells(15 + (面料數 * 2) + (內裏數 * 2) + (底部數 * 2), 1) = "飾物"
199
+            xlSheet.Cells(15 + (面料數 * 1), 1) = "內裏"
200
+            xlSheet.Cells(15 + (面料數 * 1) + (內裏數 * 1), 1) = "底部"
201
+            xlSheet.Cells(15 + (面料數 * 1) + (內裏數 * 1) + (底部數 * 1), 1) = "飾物"
207 202
 
208
-            位置8 = 14 + (面料數 * 2) + (內裏數 * 2) + (底部數 * 2) + (飾物數 * 2)
203
+            位置8 = 14 + (面料數 * 1) + (內裏數 * 1) + (底部數 * 1) + (飾物數 * 1)
209 204
             xlSheet.Cells(位置8 + 1, 1) = "備註 : "
210 205
             xlSheet.Cells(位置8 + 2, 1) = "FINISH : "
211 206
         Catch ex As Exception : MsgBox(ex.Message) : End Try
@@ -224,7 +219,7 @@ Public Class 列印_中文樣品單
224 219
                 xlApp.Visible = True
225 220
                 xlApp.Application.WindowState = xlMaximized
226 221
 
227
-                '--------------------計算樣品備註圖片分頁---------------------------------------------------------------------------------
222
+                ''--------------------計算樣品備註圖片分頁---------------------------------------------------------------------------------
228 223
                 Dim 分頁數量, 圖片尾數, 圖片總數 As Integer
229 224
                 If 中繼_dgv.Rows.Count > 0 Then : 圖片總數 = 中繼_dgv.Rows.Count : 圖片尾數 = 中繼_dgv.Rows.Count
230 225
                     For i As Integer = 1 To 10
@@ -247,12 +242,21 @@ Public Class 列印_中文樣品單
247 242
                 End If
248 243
 
249 244
                 '--------------------計算樣品單分頁---------------------------------------------------------------------------------------
250
-                If 樣品單控制表_dgv.Rows.Count > 9 Then
251
-                    分頁計數 = 3 : 分頁計數1 = 7 : 第一頁 = True : 第二頁 = True : 第三頁 = True
252
-                ElseIf 樣品單控制表_dgv.Rows.Count > 4 Then
253
-                    分頁計數 = 3 : 分頁計數1 = 樣品單控制表_dgv.Rows.Count - 1 : 第一頁 = True : 第二頁 = True : 第三頁 = False
245
+                If 樣品單控制表_dgv.Rows.Count > 11 Then
246
+                    分頁計數 = 2 : 分頁計數1 = 5 : 分頁計數2 = 8 : 分頁計數3 = 11 : 分頁計數4 = 樣品單控制表_dgv.Rows.Count - 1
247
+                    第一頁 = True : 第二頁 = True : 第三頁 = True : 第四頁 = False : 第五頁 = True
248
+                ElseIf 樣品單控制表_dgv.Rows.Count > 8 Then
249
+                    分頁計數 = 2 : 分頁計數1 = 5 : 分頁計數2 = 8 : 分頁計數3 = 樣品單控制表_dgv.Rows.Count - 1
250
+                    第一頁 = True : 第二頁 = True : 第三頁 = True : 第四頁 = True : 第五頁 = False
251
+                ElseIf 樣品單控制表_dgv.Rows.Count > 5 Then
252
+                    分頁計數 = 2 : 分頁計數1 = 5 : 分頁計數2 = 樣品單控制表_dgv.Rows.Count - 1
253
+                    第一頁 = True : 第二頁 = True : 第三頁 = True : 第四頁 = False : 第五頁 = False
254
+                ElseIf 樣品單控制表_dgv.Rows.Count > 2 Then
255
+                    分頁計數 = 2 : 分頁計數1 = 樣品單控制表_dgv.Rows.Count - 1
256
+                    第一頁 = True : 第二頁 = True : 第三頁 = False : 第四頁 = False : 第五頁 = False
254 257
                 Else
255
-                    分頁計數 = 樣品單控制表_dgv.Rows.Count - 1 : 第一頁 = True : 第二頁 = False : 第三頁 = False
258
+                    分頁計數 = 樣品單控制表_dgv.Rows.Count - 1
259
+                    第一頁 = True : 第二頁 = False : 第三頁 = False : 第四頁 = False : 第五頁 = False
256 260
                 End If
257 261
                 '--------------------樣品單列印-------------------------------------------------------------------------------------------
258 262
                 If 第一頁 = True Then
@@ -264,32 +268,38 @@ Public Class 列印_中文樣品單
264 268
                     xlSheet.Activate()
265 269
                     循環列印1()
266 270
                     For i As Integer = 0 To 分頁計數
267
-                        xlSheet.Cells(11, 4 + i) = 樣品單控制表_dgv.Rows(i).Cells("顏色").Value
268
-                        xlSheet.Cells(12, 4 + i) = 樣品單控制表_dgv.Rows(i).Cells("訂單顏色").Value
269
-                        xlSheet.Cells(13, 4 + i) = 樣品單控制表_dgv.Rows(i).Cells("ItemNumber").Value
270
-                        xlSheet.Cells(14, 4 + i) = Strings.Format(樣品單控制表_dgv.Rows(i).Cells("數量1").Value, "#,##0.0") & "双"
271
+                        xlSheet.Cells(11, 5 + i) = 樣品單控制表_dgv.Rows(i).Cells("顏色").Value
272
+                        xlSheet.Cells(12, 5 + i) = 樣品單控制表_dgv.Rows(i).Cells("訂單顏色").Value
273
+                        xlSheet.Cells(13, 5 + i) = 樣品單控制表_dgv.Rows(i).Cells("ItemNumber").Value
274
+                        xlSheet.Cells(14, 5 + i) = Strings.Format(樣品單控制表_dgv.Rows(i).Cells("數量1").Value, "#,##0.0") & "双"
271 275
                     Next : 循環列印2()
272 276
                     For i As Integer = 0 To 分頁計數
273 277
                         Set_DGV4載入前設定() : PA9 = 樣品單控制表_dgv.Rows(i).Cells("樣品流水號一").Value : SQL_讀取列印分頁計數() : Set_DGV4載入後設定()
274 278
                         位置2 = 0
275 279
                         For ii As Integer = 0 To 明細表分頁_dgv.Rows.Count - 1
276
-                            xlSheet.Cells(15 + 位置2, 4 + i) = 明細表分頁_dgv.Rows(ii).Cells("內容").Value
277
-                            xlSheet.Cells(15 + 位置2 + 1, 4 + i) = 明細表分頁_dgv.Rows(ii).Cells("廠商").Value
278
-                            EE(xlApp, xlSheet) : 位置2 += 2
280
+                            xlSheet.Cells(15 + 位置2, 5 + i) = 明細表分頁_dgv.Rows(ii).Cells("內容").Value
281
+                            'xlSheet.Cells(15 + 位置2 + 1, 4 + i) = 明細表分頁_dgv.Rows(ii).Cells("廠商").Value
282
+                            'EE(xlApp, xlSheet)
283
+                            位置2 += 1
279 284
                         Next
280 285
                     Next : 位置2 = 0
281 286
                     For ii As Integer = 0 To 明細表分頁_dgv.Rows.Count - 1
282 287
                         For iii As Integer = 0 To 敘述欄_dgv.Rows.Count - 1
283 288
                             If 明細表分頁_dgv.Rows(ii).Cells("細項").Value.ToString = 敘述欄_dgv.Rows(iii).Cells("細項").Value.ToString Then
284
-                                xlSheet.Cells(15 + 位置2, 3) = 敘述欄_dgv.Rows(iii).Cells("內容").Value : Exit For
289
+                                If 敘述欄_dgv.Rows(iii).Cells("內容").Value.ToString = "" Then
290
+                                    xlSheet.Cells(15 + 位置2, 3) = 敘述欄_dgv.Rows(iii).Cells("廠商").Value
291
+                                Else
292
+                                    xlSheet.Cells(15 + 位置2, 3) = 敘述欄_dgv.Rows(iii).Cells("內容").Value
293
+                                End If : Exit For
285 294
                             End If
286
-                        Next : 位置2 += 2
295
+                        Next : 位置2 += 1
287 296
                     Next : 循環列印3()
288 297
                     For i As Integer = 0 To 分頁計數
289
-                        xlSheet.Cells(位置8 + 1, 4 + i) = 樣品單控制表_dgv.Rows(i).Cells("備註").Value
290
-                        xlSheet.Cells(位置8 + 2, 4 + i) = 樣品單控制表_dgv.Rows(i).Cells("FINISH").Value
298
+                        xlSheet.Cells(位置8 + 1, 5 + i) = 樣品單控制表_dgv.Rows(i).Cells("備註").Value
299
+                        xlSheet.Cells(位置8 + 2, 5 + i) = 樣品單控制表_dgv.Rows(i).Cells("FINISH").Value
291 300
                     Next
292 301
                     AA(xlApp, xlSheet) : BB(xlApp, xlSheet) : CC(xlApp, xlSheet) : DD(xlApp, xlSheet) : FF(xlApp, xlSheet) : GG(xlApp, xlSheet)
302
+                    位置2 = 0 : For ii As Integer = 0 To 明細表分頁_dgv.Rows.Count - 1 : HH(xlApp, xlSheet) : 位置2 += 1 : Next : HH(xlApp, xlSheet) : 位置2 += 1 : HH(xlApp, xlSheet)
293 303
                 End If
294 304
 
295 305
                 If 第二頁 = True Then
@@ -300,33 +310,39 @@ Public Class 列印_中文樣品單
300 310
                     xlBook.Activate()
301 311
                     xlSheet.Activate()
302 312
                     循環列印1()
303
-                    For i As Integer = 0 + 4 To 分頁計數1
304
-                        xlSheet.Cells(11, 4 + i - 4) = 樣品單控制表_dgv.Rows(i).Cells("顏色").Value
305
-                        xlSheet.Cells(12, 4 + i - 4) = 樣品單控制表_dgv.Rows(i).Cells("訂單顏色").Value
306
-                        xlSheet.Cells(13, 4 + i) = 樣品單控制表_dgv.Rows(i).Cells("ItemNumber").Value
307
-                        xlSheet.Cells(14, 4 + i - 4) = Strings.Format(樣品單控制表_dgv.Rows(i).Cells("數量1").Value, "#,##0.0") & "双"
313
+                    For i As Integer = 0 + 3 To 分頁計數1
314
+                        xlSheet.Cells(11, 5 + i - 3) = 樣品單控制表_dgv.Rows(i).Cells("顏色").Value
315
+                        xlSheet.Cells(12, 5 + i - 3) = 樣品單控制表_dgv.Rows(i).Cells("訂單顏色").Value
316
+                        xlSheet.Cells(13, 5 + i) = 樣品單控制表_dgv.Rows(i).Cells("ItemNumber").Value
317
+                        xlSheet.Cells(14, 5 + i - 3) = Strings.Format(樣品單控制表_dgv.Rows(i).Cells("數量1").Value, "#,##0.0") & "双"
308 318
                     Next : 循環列印2()
309
-                    For i As Integer = 0 + 4 To 分頁計數1
319
+                    For i As Integer = 0 + 3 To 分頁計數1
310 320
                         Set_DGV4載入前設定() : PA9 = 樣品單控制表_dgv.Rows(i).Cells("樣品流水號一").Value : SQL_讀取列印分頁計數() : Set_DGV4載入後設定()
311 321
                         位置2 = 0
312 322
                         For ii As Integer = 0 To 明細表分頁_dgv.Rows.Count - 1
313
-                            xlSheet.Cells(15 + 位置2, 4 + i - 4) = 明細表分頁_dgv.Rows(ii).Cells("內容").Value
314
-                            xlSheet.Cells(15 + 位置2 + 1, 4 + i - 4) = 明細表分頁_dgv.Rows(ii).Cells("廠商").Value
315
-                            EE(xlApp, xlSheet) : 位置2 += 2
323
+                            xlSheet.Cells(15 + 位置2, 5 + i - 3) = 明細表分頁_dgv.Rows(ii).Cells("內容").Value
324
+                            'xlSheet.Cells(15 + 位置2 + 1, 4 + i - 4) = 明細表分頁_dgv.Rows(ii).Cells("廠商").Value
325
+                            'EE(xlApp, xlSheet)
326
+                            位置2 += 1
316 327
                         Next
317 328
                     Next : 位置2 = 0
318 329
                     For ii As Integer = 0 To 明細表分頁_dgv.Rows.Count - 1
319 330
                         For iii As Integer = 0 To 敘述欄_dgv.Rows.Count - 1
320 331
                             If 明細表分頁_dgv.Rows(ii).Cells("細項").Value.ToString = 敘述欄_dgv.Rows(iii).Cells("細項").Value.ToString Then
321
-                                xlSheet.Cells(15 + 位置2, 3) = 敘述欄_dgv.Rows(iii).Cells("內容").Value : Exit For
332
+                                If 敘述欄_dgv.Rows(iii).Cells("內容").Value.ToString = "" Then
333
+                                    xlSheet.Cells(15 + 位置2, 3) = 敘述欄_dgv.Rows(iii).Cells("廠商").Value
334
+                                Else
335
+                                    xlSheet.Cells(15 + 位置2, 3) = 敘述欄_dgv.Rows(iii).Cells("內容").Value
336
+                                End If : Exit For
322 337
                             End If
323
-                        Next : 位置2 += 2
338
+                        Next : 位置2 += 1
324 339
                     Next : 循環列印3()
325
-                    For i As Integer = 0 + 4 To 分頁計數1
326
-                        xlSheet.Cells(位置8 + 1, 4 + i - 4) = 樣品單控制表_dgv.Rows(i).Cells("備註").Value
327
-                        xlSheet.Cells(位置8 + 2, 4 + i - 4) = 樣品單控制表_dgv.Rows(i).Cells("FINISH").Value
340
+                    For i As Integer = 0 + 3 To 分頁計數1
341
+                        xlSheet.Cells(位置8 + 1, 5 + i - 3) = 樣品單控制表_dgv.Rows(i).Cells("備註").Value
342
+                        xlSheet.Cells(位置8 + 2, 5 + i - 3) = 樣品單控制表_dgv.Rows(i).Cells("FINISH").Value
328 343
                     Next
329 344
                     AA(xlApp, xlSheet) : BB(xlApp, xlSheet) : CC(xlApp, xlSheet) : DD(xlApp, xlSheet) : FF(xlApp, xlSheet) : GG(xlApp, xlSheet)
345
+                    位置2 = 0 : For ii As Integer = 0 To 明細表分頁_dgv.Rows.Count - 1 : HH(xlApp, xlSheet) : 位置2 += 1 : Next : HH(xlApp, xlSheet) : 位置2 += 1 : HH(xlApp, xlSheet)
330 346
                 End If
331 347
 
332 348
                 If 第三頁 = True Then
@@ -337,37 +353,131 @@ Public Class 列印_中文樣品單
337 353
                     xlBook.Activate()
338 354
                     xlSheet.Activate()
339 355
                     循環列印1()
340
-                    For i As Integer = 0 + 8 To 樣品單控制表_dgv.Rows.Count - 1
341
-                        xlSheet.Cells(11, 4 + i - 8) = 樣品單控制表_dgv.Rows(i).Cells("顏色").Value
342
-                        xlSheet.Cells(12, 4 + i - 8) = 樣品單控制表_dgv.Rows(i).Cells("訂單顏色").Value
343
-                        xlSheet.Cells(13, 4 + i) = 樣品單控制表_dgv.Rows(i).Cells("ItemNumber").Value
344
-                        xlSheet.Cells(14, 4 + i - 8) = Strings.Format(樣品單控制表_dgv.Rows(i).Cells("數量1").Value, "#,##0.0") & "双"
356
+                    For i As Integer = 0 + 6 To 分頁計數2
357
+                        xlSheet.Cells(11, 5 + i - 6) = 樣品單控制表_dgv.Rows(i).Cells("顏色").Value
358
+                        xlSheet.Cells(12, 5 + i - 6) = 樣品單控制表_dgv.Rows(i).Cells("訂單顏色").Value
359
+                        xlSheet.Cells(13, 5 + i) = 樣品單控制表_dgv.Rows(i).Cells("ItemNumber").Value
360
+                        xlSheet.Cells(14, 5 + i - 6) = Strings.Format(樣品單控制表_dgv.Rows(i).Cells("數量1").Value, "#,##0.0") & "双"
361
+                    Next : 循環列印2()
362
+                    For i As Integer = 0 + 6 To 分頁計數2
363
+                        Set_DGV4載入前設定() : PA9 = 樣品單控制表_dgv.Rows(i).Cells("樣品流水號一").Value : SQL_讀取列印分頁計數() : Set_DGV4載入後設定()
364
+                        位置2 = 0
365
+                        For ii As Integer = 0 To 明細表分頁_dgv.Rows.Count - 1
366
+                            xlSheet.Cells(15 + 位置2, 5 + i - 6) = 明細表分頁_dgv.Rows(ii).Cells("內容").Value
367
+                            'xlSheet.Cells(15 + 位置2 + 1, 4 + i - 8) = 明細表分頁_dgv.Rows(ii).Cells("廠商").Value
368
+                            'EE(xlApp, xlSheet)
369
+                            位置2 += 1
370
+                        Next
371
+                    Next : 位置2 = 0
372
+                    For ii As Integer = 0 To 明細表分頁_dgv.Rows.Count - 1
373
+                        For iii As Integer = 0 To 敘述欄_dgv.Rows.Count - 1
374
+                            If 明細表分頁_dgv.Rows(ii).Cells("細項").Value.ToString = 敘述欄_dgv.Rows(iii).Cells("細項").Value.ToString Then
375
+                                If 敘述欄_dgv.Rows(iii).Cells("內容").Value.ToString = "" Then
376
+                                    xlSheet.Cells(15 + 位置2, 3) = 敘述欄_dgv.Rows(iii).Cells("廠商").Value
377
+                                Else
378
+                                    xlSheet.Cells(15 + 位置2, 3) = 敘述欄_dgv.Rows(iii).Cells("內容").Value
379
+                                End If : Exit For
380
+                            End If
381
+                        Next : 位置2 += 1
382
+                    Next : 循環列印3()
383
+                    For i As Integer = 0 + 6 To 分頁計數2
384
+                        xlSheet.Cells(位置8 + 1, 5 + i - 6) = 樣品單控制表_dgv.Rows(i).Cells("備註").Value
385
+                        xlSheet.Cells(位置8 + 2, 5 + i - 6) = 樣品單控制表_dgv.Rows(i).Cells("FINISH").Value
386
+                    Next : AA(xlApp, xlSheet) : BB(xlApp, xlSheet) : CC(xlApp, xlSheet) : DD(xlApp, xlSheet) : FF(xlApp, xlSheet) : GG(xlApp, xlSheet)
387
+                    位置2 = 0 : For ii As Integer = 0 To 明細表分頁_dgv.Rows.Count - 1 : HH(xlApp, xlSheet) : 位置2 += 1 : Next : HH(xlApp, xlSheet) : 位置2 += 1 : HH(xlApp, xlSheet)
388
+                End If
389
+
390
+                If 第四頁 = True Then
391
+                    xlSheet = NewMethod(xlBook)
392
+                    位置1 = 0 : 位置2 = 0 : 位置3 = 0 : 位置5 = 0 : 位置6 = 0 : 位置7 = 0 : 位置8 = 0 : 位置9 = 0 : 位置10 = 0
393
+                    面料數 = 0 : 內裏數 = 0 : 底部數 = 0 : 飾物數 = 0
394
+                    xlApp.Sheets(1).Name = 樣品單抬頭_dgv.Rows(0).Cells("型體號碼").Value & "第四頁"
395
+                    xlBook.Activate()
396
+                    xlSheet.Activate()
397
+                    循環列印1()
398
+                    For i As Integer = 0 + 9 To 分頁計數3
399
+                        xlSheet.Cells(11, 5 + i - 9) = 樣品單控制表_dgv.Rows(i).Cells("顏色").Value
400
+                        xlSheet.Cells(12, 5 + i - 9) = 樣品單控制表_dgv.Rows(i).Cells("訂單顏色").Value
401
+                        xlSheet.Cells(13, 5 + i) = 樣品單控制表_dgv.Rows(i).Cells("ItemNumber").Value
402
+                        xlSheet.Cells(14, 5 + i - 9) = Strings.Format(樣品單控制表_dgv.Rows(i).Cells("數量1").Value, "#,##0.0") & "双"
403
+                    Next : 循環列印2()
404
+                    For i As Integer = 0 + 9 To 分頁計數3
405
+                        Set_DGV4載入前設定() : PA9 = 樣品單控制表_dgv.Rows(i).Cells("樣品流水號一").Value : SQL_讀取列印分頁計數() : Set_DGV4載入後設定()
406
+                        位置2 = 0
407
+                        For ii As Integer = 0 To 明細表分頁_dgv.Rows.Count - 1
408
+                            xlSheet.Cells(15 + 位置2, 5 + i - 9) = 明細表分頁_dgv.Rows(ii).Cells("內容").Value
409
+                            'xlSheet.Cells(15 + 位置2 + 1, 4 + i - 4) = 明細表分頁_dgv.Rows(ii).Cells("廠商").Value
410
+                            'EE(xlApp, xlSheet)
411
+                            位置2 += 1
412
+                        Next
413
+                    Next : 位置2 = 0
414
+                    For ii As Integer = 0 To 明細表分頁_dgv.Rows.Count - 1
415
+                        For iii As Integer = 0 To 敘述欄_dgv.Rows.Count - 1
416
+                            If 明細表分頁_dgv.Rows(ii).Cells("細項").Value.ToString = 敘述欄_dgv.Rows(iii).Cells("細項").Value.ToString Then
417
+                                If 敘述欄_dgv.Rows(iii).Cells("內容").Value.ToString = "" Then
418
+                                    xlSheet.Cells(15 + 位置2, 3) = 敘述欄_dgv.Rows(iii).Cells("廠商").Value
419
+                                Else
420
+                                    xlSheet.Cells(15 + 位置2, 3) = 敘述欄_dgv.Rows(iii).Cells("內容").Value
421
+                                End If : Exit For
422
+                            End If
423
+                        Next : 位置2 += 1
424
+                    Next : 循環列印3()
425
+                    For i As Integer = 0 + 9 To 分頁計數3
426
+                        xlSheet.Cells(位置8 + 1, 5 + i - 9) = 樣品單控制表_dgv.Rows(i).Cells("備註").Value
427
+                        xlSheet.Cells(位置8 + 2, 5 + i - 9) = 樣品單控制表_dgv.Rows(i).Cells("FINISH").Value
428
+                    Next
429
+                    AA(xlApp, xlSheet) : BB(xlApp, xlSheet) : CC(xlApp, xlSheet) : DD(xlApp, xlSheet) : FF(xlApp, xlSheet) : GG(xlApp, xlSheet)
430
+                    位置2 = 0 : For ii As Integer = 0 To 明細表分頁_dgv.Rows.Count - 1 : HH(xlApp, xlSheet) : 位置2 += 1 : Next : HH(xlApp, xlSheet) : 位置2 += 1 : HH(xlApp, xlSheet)
431
+                End If
432
+
433
+                If 第五頁 = True Then
434
+                    xlSheet = NewMethod(xlBook)
435
+                    位置1 = 0 : 位置2 = 0 : 位置3 = 0 : 位置5 = 0 : 位置6 = 0 : 位置7 = 0 : 位置8 = 0 : 位置9 = 0 : 位置10 = 0
436
+                    面料數 = 0 : 內裏數 = 0 : 底部數 = 0 : 飾物數 = 0
437
+                    xlApp.Sheets(1).Name = 樣品單抬頭_dgv.Rows(0).Cells("型體號碼").Value & "第五頁"
438
+                    xlBook.Activate()
439
+                    xlSheet.Activate()
440
+                    循環列印1()
441
+                    For i As Integer = 0 + 12 To 樣品單控制表_dgv.Rows.Count - 1
442
+                        xlSheet.Cells(11, 5 + i - 12) = 樣品單控制表_dgv.Rows(i).Cells("顏色").Value
443
+                        xlSheet.Cells(12, 5 + i - 12) = 樣品單控制表_dgv.Rows(i).Cells("訂單顏色").Value
444
+                        xlSheet.Cells(13, 5 + i) = 樣品單控制表_dgv.Rows(i).Cells("ItemNumber").Value
445
+                        xlSheet.Cells(14, 5 + i - 12) = Strings.Format(樣品單控制表_dgv.Rows(i).Cells("數量1").Value, "#,##0.0") & "双"
345 446
                     Next : 循環列印2()
346
-                    For i As Integer = 0 + 8 To 樣品單控制表_dgv.Rows.Count - 1
447
+                    For i As Integer = 0 + 12 To 樣品單控制表_dgv.Rows.Count - 1
347 448
                         Set_DGV4載入前設定() : PA9 = 樣品單控制表_dgv.Rows(i).Cells("樣品流水號一").Value : SQL_讀取列印分頁計數() : Set_DGV4載入後設定()
348 449
                         位置2 = 0
349 450
                         For ii As Integer = 0 To 明細表分頁_dgv.Rows.Count - 1
350
-                            xlSheet.Cells(15 + 位置2, 4 + i - 8) = 明細表分頁_dgv.Rows(ii).Cells("內容").Value
351
-                            xlSheet.Cells(15 + 位置2 + 1, 4 + i - 8) = 明細表分頁_dgv.Rows(ii).Cells("廠商").Value
352
-                            EE(xlApp, xlSheet) : 位置2 += 2
451
+                            xlSheet.Cells(15 + 位置2, 5 + i - 12) = 明細表分頁_dgv.Rows(ii).Cells("內容").Value
452
+                            'xlSheet.Cells(15 + 位置2 + 1, 4 + i - 8) = 明細表分頁_dgv.Rows(ii).Cells("廠商").Value
453
+                            'EE(xlApp, xlSheet)
454
+                            位置2 += 1
353 455
                         Next
354 456
                     Next : 位置2 = 0
355 457
                     For ii As Integer = 0 To 明細表分頁_dgv.Rows.Count - 1
356 458
                         For iii As Integer = 0 To 敘述欄_dgv.Rows.Count - 1
357 459
                             If 明細表分頁_dgv.Rows(ii).Cells("細項").Value.ToString = 敘述欄_dgv.Rows(iii).Cells("細項").Value.ToString Then
358
-                                xlSheet.Cells(15 + 位置2, 3) = 敘述欄_dgv.Rows(iii).Cells("內容").Value : Exit For
460
+                                If 敘述欄_dgv.Rows(iii).Cells("內容").Value.ToString = "" Then
461
+                                    xlSheet.Cells(15 + 位置2, 3) = 敘述欄_dgv.Rows(iii).Cells("廠商").Value
462
+                                Else
463
+                                    xlSheet.Cells(15 + 位置2, 3) = 敘述欄_dgv.Rows(iii).Cells("內容").Value
464
+                                End If : Exit For
359 465
                             End If
360
-                        Next : 位置2 += 2
466
+                        Next : 位置2 += 1
361 467
                     Next : 循環列印3()
362
-                    For i As Integer = 0 + 8 To 樣品單控制表_dgv.Rows.Count - 1
363
-                        xlSheet.Cells(位置8 + 1, 4 + i - 8) = 樣品單控制表_dgv.Rows(i).Cells("備註").Value
364
-                        xlSheet.Cells(位置8 + 2, 4 + i - 8) = 樣品單控制表_dgv.Rows(i).Cells("FINISH").Value
468
+                    For i As Integer = 0 + 12 To 樣品單控制表_dgv.Rows.Count - 1
469
+                        xlSheet.Cells(位置8 + 1, 5 + i - 12) = 樣品單控制表_dgv.Rows(i).Cells("備註").Value
470
+                        xlSheet.Cells(位置8 + 2, 5 + i - 12) = 樣品單控制表_dgv.Rows(i).Cells("FINISH").Value
365 471
                     Next : AA(xlApp, xlSheet) : BB(xlApp, xlSheet) : CC(xlApp, xlSheet) : DD(xlApp, xlSheet) : FF(xlApp, xlSheet) : GG(xlApp, xlSheet)
472
+                    位置2 = 0 : For ii As Integer = 0 To 明細表分頁_dgv.Rows.Count - 1 : HH(xlApp, xlSheet) : 位置2 += 1 : Next : HH(xlApp, xlSheet) : 位置2 += 1 : HH(xlApp, xlSheet)
366 473
                 End If
367 474
 
368
-                If 第一頁 = True And 第二頁 = False And 第三頁 = False Then : xlApp.Sheets(2 + 分頁數量).Delete
369
-                ElseIf 第一頁 = True And 第二頁 = True And 第三頁 = False Then : xlApp.Sheets(3 + 分頁數量).Delete
370
-                ElseIf 第一頁 = True And 第二頁 = True And 第三頁 = True Then : xlApp.Sheets(4 + 分頁數量).Delete : End If
475
+                If 第一頁 = True And 第二頁 = False And 第三頁 = False And 第四頁 = False And 第五頁 = False Then : xlApp.Sheets(2 + 分頁數量).Delete
476
+                ElseIf 第一頁 = True And 第二頁 = True And 第三頁 = False And 第四頁 = False And 第五頁 = False Then : xlApp.Sheets(3 + 分頁數量).Delete
477
+                ElseIf 第一頁 = True And 第二頁 = True And 第三頁 = True And 第四頁 = False And 第五頁 = False Then : xlApp.Sheets(4 + 分頁數量).Delete
478
+                ElseIf 第一頁 = True And 第二頁 = True And 第三頁 = True And 第四頁 = True And 第五頁 = False Then : xlApp.Sheets(5 + 分頁數量).Delete
479
+                ElseIf 第一頁 = True And 第二頁 = True And 第三頁 = True And 第四頁 = True And 第五頁 = True Then : xlApp.Sheets(6 + 分頁數量).Delete
480
+                End If
371 481
 
372 482
                 xlSheet.PageSetup.PrintArea = ""
373 483
                 xlApp.Cells.Select()
@@ -533,7 +643,7 @@ Public Class 列印_中文樣品單
533 643
         With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
534 644
             .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With
535 645
 
536
-        位置8 = 14 + (面料數 * 2) + (內裏數 * 2) + (底部數 * 2) + (飾物數 * 2)
646
+        位置8 = 14 + (面料數 * 1) + (內裏數 * 1) + (底部數 * 1) + (飾物數 * 1)
537 647
         For i As Integer = 15 To 位置8
538 648
             攔寬 = xlSheet.Rows(i).RowHeight
539 649
             位置11 = i & ":" & i
@@ -541,7 +651,7 @@ Public Class 列印_中文樣品單
541 651
             i += 1
542 652
         Next
543 653
 
544
-        位置5 = 14 + (面料數 * 2) : 位置4 = "A14:G" & 位置5
654
+        位置5 = 14 + (面料數 * 1) : 位置4 = "A14:G" & 位置5
545 655
         xlSheet.Range(位置4).Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
546 656
         With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium : End With
547 657
         With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium : End With
@@ -554,7 +664,7 @@ Public Class 列印_中文樣品單
554 664
         With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
555 665
             .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With : myExcel.Selection.Merge
556 666
 
557
-        位置5 += 1 : 位置6 = 14 + (面料數 * 2) + (內裏數 * 2) : 位置4 = "A" & 位置5 & ":G" & 位置6
667
+        位置5 += 1 : 位置6 = 14 + (面料數 * 1) + (內裏數 * 1) : 位置4 = "A" & 位置5 & ":G" & 位置6
558 668
         xlSheet.Range(位置4).Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
559 669
         With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium : End With
560 670
         With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium : End With
@@ -567,7 +677,7 @@ Public Class 列印_中文樣品單
567 677
         With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
568 678
             .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With : myExcel.Selection.Merge
569 679
 
570
-        位置6 += 1 : 位置7 = 14 + (面料數 * 2) + (內裏數 * 2) + (底部數 * 2) : 位置4 = "A" & 位置6 & ":G" & 位置7
680
+        位置6 += 1 : 位置7 = 14 + (面料數 * 1) + (內裏數 * 1) + (底部數 * 1) : 位置4 = "A" & 位置6 & ":G" & 位置7
571 681
         xlSheet.Range(位置4).Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
572 682
         With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium : End With
573 683
         With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium : End With
@@ -580,7 +690,7 @@ Public Class 列印_中文樣品單
580 690
         With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
581 691
             .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With : myExcel.Selection.Merge
582 692
 
583
-        位置7 += 1 : 位置8 = 14 + (面料數 * 2) + (內裏數 * 2) + (底部數 * 2) + (飾物數 * 2) : 位置4 = "A" & 位置7 & ":G" & 位置8
693
+        位置7 += 1 : 位置8 = 14 + (面料數 * 1) + (內裏數 * 1) + (底部數 * 1) + (飾物數 * 1) : 位置4 = "A" & 位置7 & ":G" & 位置8
584 694
         xlSheet.Range(位置4).Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
585 695
         With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium : End With
586 696
         With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium : End With
@@ -650,7 +760,7 @@ Public Class 列印_中文樣品單
650 760
         With myExcel.Selection.Font : .Name = "Microsoft YaHei UI" : .Size = 10 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False
651 761
             .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone : End With
652 762
 
653
-        xlSheet.Range("C11:C14").Select()
763
+        xlSheet.Range("C11:D14").Select()
654 764
         With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0
655 765
             .AddIndent = False : .IndentLevel = 0 : .ReadingOrder = xlContext : .MergeCells = False : End With
656 766
         myExcel.Selection.Merge : myExcel.ActiveCell.FormulaR1C1 = "材料敘述"
@@ -684,6 +794,13 @@ Public Class 列印_中文樣品單
684 794
         End With
685 795
         myExcel.Application.PrintCommunication = True
686 796
     End Sub
797
+    Private Sub HH(ByVal myExcel As Application, ByVal xlSheet As Worksheet)
798
+        xlSheet.Range("C" & 15 + 位置2 & ":D" & 15 + 位置2).Select()
799
+        With myExcel.Selection : .HorizontalAlignment = xlLeft : .VerticalAlignment = xlCenter : .WrapText = True : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
800
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With : myExcel.Selection.Merge
801
+        'With myExcel.Selection : .HorizontalAlignment = xlLeft : .VerticalAlignment = xlCenter : .WrapText = True : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
802
+        '    .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = True : End With
803
+    End Sub
687 804
     Private Sub BB(ByVal myExcel As Application, ByVal xlSheet As Worksheet)
688 805
         Clipboard.SetDataObject(PictureBox3.Image)
689 806
         xlSheet.Range("C1").Select()
@@ -767,12 +884,12 @@ Public Class 列印_中文樣品單
767 884
         If 圖片2_pb.Image.Size.Height > 圖片2_pb.Image.Size.Width Then : myExcel.Selection.ShapeRange.Height = HHS : Else : myExcel.Selection.ShapeRange.Width = WWS : End If
768 885
         myExcel.Selection.ShapeRange.IncrementLeft(1.5) : myExcel.Selection.ShapeRange.IncrementTop(1.5)
769 886
     End Sub
770
-    Private Sub EE(ByVal myExcel As Application, ByVal xlSheet As Worksheet)
771
-        位置9 = 15 + 位置2 + 1 : 位置4 = "B" & 位置9 & ":G" & 位置9 : xlSheet.Range(位置4).Select()
772
-        With myExcel.Selection.Interior
773
-            .Pattern = xlSolid : .PatternColorIndex = xlAutomatic : .ThemeColor = xlThemeColorDark1 : .TintAndShade = -0.249977111117893 : .PatternTintAndShade = 0
774
-        End With
775
-    End Sub
887
+    'Private Sub EE(ByVal myExcel As Application, ByVal xlSheet As Worksheet)
888
+    '    位置9 = 15 + 位置2 + 1 : 位置4 = "B" & 位置9 & ":G" & 位置9 : xlSheet.Range(位置4).Select()
889
+    '    With myExcel.Selection.Interior
890
+    '        .Pattern = xlSolid : .PatternColorIndex = xlAutomatic : .ThemeColor = xlThemeColorDark1 : .TintAndShade = -0.249977111117893 : .PatternTintAndShade = 0
891
+    '    End With
892
+    'End Sub
776 893
     Private Sub II(ByVal myExcel As Application, ByVal xlSheet As Worksheet)
777 894
         xlSheet.Columns("A:A").Select : myExcel.Selection.ColumnWidth = 2 : xlSheet.Columns("B:C").Select : myExcel.Selection.ColumnWidth = 60
778 895
         xlSheet.Rows("2:2").Select : myExcel.Selection.RowHeight = 400 : xlSheet.Rows("4:4").Select : myExcel.Selection.RowHeight = 400

+ 4
- 1
TENDEN-MES-SYS/資料庫系統管理/清單修改.Designer.vb 파일 보기

@@ -68,7 +68,7 @@ Partial Class 清單修改
68 68
         'Panel1
69 69
         '
70 70
         Me.Panel1.Controls.Add(Me.舊字串_tb)
71
-        Me.Panel1.Location = New System.Drawing.Point(12, 162)
71
+        Me.Panel1.Location = New System.Drawing.Point(48, 99)
72 72
         Me.Panel1.Name = "Panel1"
73 73
         Me.Panel1.Size = New System.Drawing.Size(138, 58)
74 74
         Me.Panel1.TabIndex = 216
@@ -130,7 +130,10 @@ Partial Class 清單修改
130 130
         Me.Controls.Add(Me.修改_bt)
131 131
         Me.Controls.Add(Me.清單_dgv)
132 132
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
133
+        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
133 134
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
135
+        Me.MaximizeBox = False
136
+        Me.MinimizeBox = False
134 137
         Me.Name = "清單修改"
135 138
         Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
136 139
         Me.Text = "清單修改"

+ 1
- 1
TENDEN-MES-SYS/資料庫系統管理/清單修改.vb 파일 보기

@@ -31,7 +31,7 @@ Public Class 清單修改
31 31
         清單_dgv.Columns(0).FillWeight = 126
32 32
     End Sub
33 33
     Private Sub 清單修改_Load(sender As Object, e As EventArgs) Handles MyBase.Load
34
-        FormBorderStyle = FormBorderStyle.SizableToolWindow
34
+
35 35
         Panel1.SendToBack() : ToolTip1.ToolTipTitle = "系統說明"
36 36
         清單_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", 7.6)
37 37
     End Sub

+ 11
- 6
TENDEN-MES-SYS/資料庫系統管理/系統執行檔版本管理.Designer.vb 파일 보기

@@ -43,7 +43,7 @@ Partial Class 系統執行檔版本管理
43 43
         Me.資料庫版本號_lb.BackColor = System.Drawing.SystemColors.Control
44 44
         Me.資料庫版本號_lb.Location = New System.Drawing.Point(437, 9)
45 45
         Me.資料庫版本號_lb.Name = "資料庫版本號_lb"
46
-        Me.資料庫版本號_lb.Size = New System.Drawing.Size(159, 16)
46
+        Me.資料庫版本號_lb.Size = New System.Drawing.Size(158, 16)
47 47
         Me.資料庫版本號_lb.TabIndex = 605
48 48
         Me.資料庫版本號_lb.Text = "資料庫版本號 : 2018110801"
49 49
         '
@@ -53,7 +53,7 @@ Partial Class 系統執行檔版本管理
53 53
         Me.執行檔存放區_lb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
54 54
         Me.執行檔存放區_lb.Location = New System.Drawing.Point(955, 10)
55 55
         Me.執行檔存放區_lb.Name = "執行檔存放區_lb"
56
-        Me.執行檔存放區_lb.Size = New System.Drawing.Size(80, 16)
56
+        Me.執行檔存放區_lb.Size = New System.Drawing.Size(79, 16)
57 57
         Me.執行檔存放區_lb.TabIndex = 604
58 58
         Me.執行檔存放區_lb.Text = "執行檔存放區"
59 59
         '
@@ -63,7 +63,7 @@ Partial Class 系統執行檔版本管理
63 63
         Me.我的電腦_lb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
64 64
         Me.我的電腦_lb.Location = New System.Drawing.Point(6, 9)
65 65
         Me.我的電腦_lb.Name = "我的電腦_lb"
66
-        Me.我的電腦_lb.Size = New System.Drawing.Size(56, 16)
66
+        Me.我的電腦_lb.Size = New System.Drawing.Size(55, 16)
67 67
         Me.我的電腦_lb.TabIndex = 603
68 68
         Me.我的電腦_lb.Text = "我的電腦"
69 69
         '
@@ -115,7 +115,7 @@ Partial Class 系統執行檔版本管理
115 115
         Me.版本號_lb.BackColor = System.Drawing.SystemColors.Control
116 116
         Me.版本號_lb.Location = New System.Drawing.Point(171, 9)
117 117
         Me.版本號_lb.Name = "版本號_lb"
118
-        Me.版本號_lb.Size = New System.Drawing.Size(44, 16)
118
+        Me.版本號_lb.Size = New System.Drawing.Size(43, 16)
119 119
         Me.版本號_lb.TabIndex = 598
120 120
         Me.版本號_lb.Text = "版本號"
121 121
         '
@@ -134,13 +134,18 @@ Partial Class 系統執行檔版本管理
134 134
         Me.SaveFileDialog1.SupportMultiDottedExtensions = True
135 135
         Me.SaveFileDialog1.Title = "指定檔案名稱與選擇檔案路徑"
136 136
         '
137
+        'FolderBrowserDialog1
138
+        '
139
+        Me.FolderBrowserDialog1.RootFolder = System.Environment.SpecialFolder.MyComputer
140
+        Me.FolderBrowserDialog1.ShowNewFolderButton = False
141
+        '
137 142
         '原代碼存放區_lb
138 143
         '
139 144
         Me.原代碼存放區_lb.AutoSize = True
140 145
         Me.原代碼存放區_lb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
141 146
         Me.原代碼存放區_lb.Location = New System.Drawing.Point(948, 354)
142 147
         Me.原代碼存放區_lb.Name = "原代碼存放區_lb"
143
-        Me.原代碼存放區_lb.Size = New System.Drawing.Size(80, 16)
148
+        Me.原代碼存放區_lb.Size = New System.Drawing.Size(79, 16)
144 149
         Me.原代碼存放區_lb.TabIndex = 607
145 150
         Me.原代碼存放區_lb.Text = "原代碼存放區"
146 151
         '
@@ -191,8 +196,8 @@ Partial Class 系統執行檔版本管理
191 196
     Friend WithEvents 版本號_lb As Label
192 197
     Friend WithEvents 版本號_tb As TextBox
193 198
     Friend WithEvents SaveFileDialog1 As SaveFileDialog
194
-    Friend WithEvents FolderBrowserDialog1 As FolderBrowserDialog
195 199
     Friend WithEvents 原代碼存放區_lb As Label
196 200
     Friend WithEvents WebBrowser3 As WebBrowser
201
+    Public WithEvents FolderBrowserDialog1 As FolderBrowserDialog
197 202
 End Class
198 203
 

Loading…
취소
저장