B70340 3 lat temu
rodzic
commit
edc4a796b8
57 zmienionych plików z 3814 dodań i 1798 usunięć
  1. 1
    1
      .editorconfig
  2. BIN
      .vs/TENDEN-MES-SYS/v16/.suo
  3. 1
    5
      TENDEN-MES-SYS/LoginForm1vb.vb
  4. 62
    0
      TENDEN-MES-SYS/Module/DGV進度條.vb
  5. 4
    1
      TENDEN-MES-SYS/Module/SQL_Module.vb
  6. 91
    36
      TENDEN-MES-SYS/Module/SQL_圖片資料庫管理.vb
  7. 2
    2
      TENDEN-MES-SYS/Module/SQL_製鞋技術管理.vb
  8. 42
    0
      TENDEN-MES-SYS/Module/SQL_資料庫系統管理.vb
  9. 11
    0
      TENDEN-MES-SYS/Module/SQL_連線字串.vb
  10. 3
    3
      TENDEN-MES-SYS/Module/SQL_連線狀態模組.vb
  11. 34
    26
      TENDEN-MES-SYS/Module/SQL_量產訂單系統.vb
  12. 18
    15
      TENDEN-MES-SYS/Module/全域變數.vb
  13. 44
    7
      TENDEN-MES-SYS/TENDEN_MES_SYS.Designer.vb
  14. 13
    0
      TENDEN-MES-SYS/TENDEN_MES_SYS.vb
  15. BIN
      TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.exe
  16. BIN
      TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.pdb
  17. BIN
      TENDEN-MES-SYS/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  18. BIN
      TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.exe
  19. BIN
      TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.pdb
  20. BIN
      TENDEN-MES-SYS/obj/Debug/天盾國際管理系統.包裝資料圖片導入資料庫.resources
  21. BIN
      TENDEN-MES-SYS/obj/Debug/天盾國際管理系統.包裝資料圖片資料庫.resources
  22. BIN
      TENDEN-MES-SYS/obj/Debug/天盾國際管理系統.系統編碼原則.resources
  23. 1
    1
      TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.CoreCompileInputs.cache
  24. 123
    121
      TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.FileListAbsolute.txt
  25. BIN
      TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.GenerateResource.cache
  26. BIN
      TENDEN-MES-SYS/obj/Debug/天盾系統.vbprojAssemblyReference.cache
  27. 366
    0
      TENDEN-MES-SYS/圖片資料庫管理/包裝圖片系統/包裝資料圖片導入資料庫.Designer.vb
  28. 126
    0
      TENDEN-MES-SYS/圖片資料庫管理/包裝圖片系統/包裝資料圖片導入資料庫.resx
  29. 130
    0
      TENDEN-MES-SYS/圖片資料庫管理/包裝圖片系統/包裝資料圖片導入資料庫.vb
  30. 227
    0
      TENDEN-MES-SYS/圖片資料庫管理/包裝圖片系統/包裝資料圖片資料庫.Designer.vb
  31. 129
    0
      TENDEN-MES-SYS/圖片資料庫管理/包裝圖片系統/包裝資料圖片資料庫.resx
  32. 115
    0
      TENDEN-MES-SYS/圖片資料庫管理/包裝圖片系統/包裝資料圖片資料庫.vb
  33. 295
    295
      TENDEN-MES-SYS/圖片資料庫管理/鞋型圖片系統/鞋型圖片導入資料庫.Designer.vb
  34. 9
    0
      TENDEN-MES-SYS/圖片資料庫管理/鞋型圖片系統/鞋型圖片導入資料庫.vb
  35. 75
    15
      TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/保證書出貨統計資料.Designer.vb
  36. 30
    19
      TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/保證書出貨統計資料.vb
  37. 30
    75
      TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/驗貨報告圖片導入資料庫.vb
  38. 9
    8
      TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/驗貨報告大圖.vb
  39. 88
    31
      TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/驗貨報告資料庫.Designer.vb
  40. 73
    85
      TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/驗貨報告資料庫.vb
  41. 102
    6
      TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/驗貨報告資料庫修正.Designer.vb
  42. 29
    6
      TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/驗貨報告資料庫修正.vb
  43. 29
    0
      TENDEN-MES-SYS/天盾系統.vbproj
  44. 371
    172
      TENDEN-MES-SYS/樣品訂單管理/中文樣品單系統/中文樣品單.Designer.vb
  45. 258
    565
      TENDEN-MES-SYS/樣品訂單管理/中文樣品單系統/中文樣品單.vb
  46. 94
    9
      TENDEN-MES-SYS/製鞋技術資料管理/STYLE_資料管理.Designer.vb
  47. 19
    3
      TENDEN-MES-SYS/製鞋技術資料管理/STYLE_資料管理.vb
  48. 246
    0
      TENDEN-MES-SYS/資料庫系統管理/系統編碼原則.Designer.vb
  49. 120
    0
      TENDEN-MES-SYS/資料庫系統管理/系統編碼原則.resx
  50. 96
    0
      TENDEN-MES-SYS/資料庫系統管理/系統編碼原則.vb
  51. 17
    30
      TENDEN-MES-SYS/量產訂單管理/量產管理報表/出貨明細表.vb
  52. 18
    30
      TENDEN-MES-SYS/量產訂單管理/量產管理報表/周進度表.vb
  53. 22
    46
      TENDEN-MES-SYS/量產訂單管理/量產管理報表/周進度表T1_T4.vb
  54. 13
    13
      TENDEN-MES-SYS/量產訂單管理/量產管理報表/生產進度表.Designer.vb
  55. 21
    24
      TENDEN-MES-SYS/量產訂單管理/量產管理報表/生產進度表.vb
  56. 138
    41
      TENDEN-MES-SYS/量產訂單管理/量產訂單系統/訂單控制表.Designer.vb
  57. 69
    107
      TENDEN-MES-SYS/量產訂單管理/量產訂單系統/訂單控制表.vb

+ 1
- 1
.editorconfig Wyświetl plik

1
 [*.vb]
1
 [*.vb]
2
 
2
 
3
 # BC42353: 函式在所有程式碼路徑上皆不會傳回值
3
 # BC42353: 函式在所有程式碼路徑上皆不會傳回值
4
-dotnet_diagnostic.BC42353.severity = suggestion
4
+dotnet_diagnostic.BC42353.severity = none

BIN
.vs/TENDEN-MES-SYS/v16/.suo Wyświetl plik


+ 1
- 5
TENDEN-MES-SYS/LoginForm1vb.vb Wyświetl plik

55
     End Sub
55
     End Sub
56
     Private Sub 登入()
56
     Private Sub 登入()
57
         '-----------------------寫入連線字串-----------------------------------------------------------------------------------------------------------------------------------------------
57
         '-----------------------寫入連線字串-----------------------------------------------------------------------------------------------------------------------------------------------
58
-        If ComboBox1.Text = "雲端伺服器" Then
59
-            ConString = "Data Source=" & 登入人IP & ";Initial Catalog=天盾國際管理系統資料庫;Persist Security Info=True;User ID=b70340;Password=Lee0911274990;Max pool size = 200;Connection Timeout=0"
60
-        Else
61
-            ConString = "Data Source=" & 登入人IP & ";Initial Catalog=天盾國際管理系統資料庫;Persist Security Info=True;User ID=b70340;Password=0911274990;Max pool size = 200;Connection Timeout=0"
62
-        End If
58
+        If ComboBox1.Text = "雲端伺服器" Then : SQL_連線字串_測試() : SQL密碼 = "Lee0911274990" : Else : SQL_連線字串_正式() : SQL密碼 = "0911274990" : End If
63
         g_conn_type = ComboBox1.Text
59
         g_conn_type = ComboBox1.Text
64
         '-----------------------系統版本號寫入-----------------------------------------------------------------------------------------------------------------------------------------------
60
         '-----------------------系統版本號寫入-----------------------------------------------------------------------------------------------------------------------------------------------
65
         ConnOpen()
61
         ConnOpen()

+ 62
- 0
TENDEN-MES-SYS/Module/DGV進度條.vb Wyświetl plik

1
+Imports System.ComponentModel
2
+Module DGV進度條
3
+    Public Class DataGridViewProgressColumn
4
+        Inherits DataGridViewImageColumn
5
+        Public Sub New()
6
+            Me.CellTemplate = New DataGridViewProgressCell
7
+        End Sub
8
+    End Class
9
+    Public Class DataGridViewProgressCell
10
+        Inherits DataGridViewImageCell
11
+        Sub New()
12
+            ValueType = Type.GetType("Integer")
13
+        End Sub
14
+        ' 使進度單元與默認圖像單元一致所需的方法。
15
+        ' 默認圖像單元將圖像作為值,儘管進度單元的值是整數。
16
+        Protected Overrides Function GetFormattedValue(
17
+            ByVal value As Object,
18
+            ByVal rowIndex As Integer,
19
+            ByRef cellStyle As DataGridViewCellStyle,
20
+            ByVal valueTypeConverter As TypeConverter,
21
+            ByVal formattedValueTypeConverter As TypeConverter,
22
+            ByVal context As DataGridViewDataErrorContexts) As Object
23
+            Static emptyImage As Bitmap = New Bitmap(1, 1, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
24
+            GetFormattedValue = emptyImage
25
+        End Function
26
+        Protected Overrides Sub Paint(ByVal g As System.Drawing.Graphics, ByVal clipBounds As System.Drawing.Rectangle,
27
+                                      ByVal cellBounds As System.Drawing.Rectangle,
28
+                                      ByVal rowIndex As Integer, ByVal cellState As System.Windows.Forms.DataGridViewElementStates,
29
+                                      ByVal value As Object, ByVal formattedValue As Object, ByVal errorText As String,
30
+                                      ByVal cellStyle As System.Windows.Forms.DataGridViewCellStyle,
31
+                                      ByVal advancedBorderStyle As System.Windows.Forms.DataGridViewAdvancedBorderStyle,
32
+                                      ByVal paintParts As System.Windows.Forms.DataGridViewPaintParts)
33
+            Dim progressVal As Double = CType(value, Double)
34
+            Dim percentage As Single = CType(progressVal / 分母, Single)
35
+            Dim backBrush As Brush = New SolidBrush(cellStyle.BackColor)
36
+            Dim foreBrush As Brush = New SolidBrush(cellStyle.ForeColor)
37
+            ' 調用基類方法來繪製默認單元格外觀。
38
+            MyBase.Paint(g, clipBounds, cellBounds, rowIndex, cellState,
39
+                value, formattedValue, errorText, cellStyle,
40
+                advancedBorderStyle, paintParts)
41
+            If percentage > 0.0 And percentage < 分段1 Then
42
+                ' 繪製進度條和文字
43
+                g.FillRectangle(New SolidBrush(Color.LightBlue), cellBounds.X + 2, cellBounds.Y + 2, Convert.ToInt32((percentage * cellBounds.Width - 8)), cellBounds.Height - 8)
44
+                g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, foreBrush, cellBounds.X + 6, cellBounds.Y + 2)
45
+            ElseIf percentage > 分段2 And percentage < 分段3 Then
46
+                ' 繪製進度條和文字
47
+                g.FillRectangle(New SolidBrush(Color.LightGreen), cellBounds.X + 2, cellBounds.Y + 2, Convert.ToInt32((percentage * cellBounds.Width - 8)), cellBounds.Height - 8)
48
+                g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, foreBrush, cellBounds.X + 6, cellBounds.Y + 2)
49
+            ElseIf percentage > 分段4 Then
50
+                ' 繪製進度條和文字
51
+                g.FillRectangle(New SolidBrush(Color.LightPink), cellBounds.X + 2, cellBounds.Y + 2, Convert.ToInt32((percentage * cellBounds.Width - 8)), cellBounds.Height - 8)
52
+                g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, foreBrush, cellBounds.X + 6, cellBounds.Y + 2)
53
+            Else
54
+                '繪製文本
55
+                If Not Me.DataGridView.CurrentCell Is Nothing AndAlso Me.DataGridView.CurrentCell.RowIndex = rowIndex Then
56
+                    g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, New SolidBrush(cellStyle.SelectionForeColor), cellBounds.X + 6, cellBounds.Y + 2)
57
+                Else : g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, foreBrush, cellBounds.X + 6, cellBounds.Y + 2) : End If
58
+            End If
59
+        End Sub
60
+    End Class
61
+End Module
62
+

+ 4
- 1
TENDEN-MES-SYS/Module/SQL_Module.vb Wyświetl plik

1
 Imports System.Data.SqlClient
1
 Imports System.Data.SqlClient
2
 Module SQL_Module
2
 Module SQL_Module
3
-    Public ConString As String : Public SQL1 As String : Public SQL2 As String
3
+    Public ConString, ConString2, SQL1, SQL2 As String
4
     Public conn As New SqlConnection : Public conn1 As New SqlConnection : Public cmd As New SqlCommand : Public cmd1 As New SqlCommand
4
     Public conn As New SqlConnection : Public conn1 As New SqlConnection : Public cmd As New SqlCommand : Public cmd1 As New SqlCommand
5
     Public dr As SqlDataReader : Public dr1 As SqlDataReader : Public da As New SqlDataAdapter : Public da1 As New SqlDataAdapter
5
     Public dr As SqlDataReader : Public dr1 As SqlDataReader : Public da As New SqlDataAdapter : Public da1 As New SqlDataAdapter
6
     Public DTP, DTP1, DTP2, DTP3, DTP4, DTP5, DTP6 As String
6
     Public DTP, DTP1, DTP2, DTP3, DTP4, DTP5, DTP6 As String
8
     Friend Sub ConnOpen()
8
     Friend Sub ConnOpen()
9
         conn.Close() : If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
9
         conn.Close() : If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
10
     End Sub
10
     End Sub
11
+    Friend Sub ConnOpen_工程圖庫SQL()
12
+        conn.Close() : If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString2 : conn.Open() : End If
13
+    End Sub
11
     Friend Sub CmdSet_For_DGV()
14
     Friend Sub CmdSet_For_DGV()
12
         cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd
15
         cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd
13
     End Sub
16
     End Sub

+ 91
- 36
TENDEN-MES-SYS/Module/SQL_圖片資料庫管理.vb Wyświetl plik

1
 Module SQL_圖片資料庫管理
1
 Module SQL_圖片資料庫管理
2
     '----------------------驗貨報告資料庫修正-----------------------------
2
     '----------------------驗貨報告資料庫修正-----------------------------
3
     Friend Sub SQL_驗貨報告圖庫()
3
     Friend Sub SQL_驗貨報告圖庫()
4
-        ConnOpen()
4
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫() : ConnOpen_工程圖庫SQL()
5
         SQL1 = "SELECT 客戶訂單號, 型體名稱, 驗貨報告編號 FROM 驗貨報告圖庫 WHERE (客戶訂單號 LIKE '%" & 驗貨報告資料庫修正.客戶訂單號_tb.Text & "%')"
5
         SQL1 = "SELECT 客戶訂單號, 型體名稱, 驗貨報告編號 FROM 驗貨報告圖庫 WHERE (客戶訂單號 LIKE '%" & 驗貨報告資料庫修正.客戶訂單號_tb.Text & "%')"
6
         CmdSet_For_DGV()
6
         CmdSet_For_DGV()
7
     End Sub
7
     End Sub
8
     Friend Sub SQL_訂單控制表1()
8
     Friend Sub SQL_訂單控制表1()
9
         ConnOpen()
9
         ConnOpen()
10
-        SQL1 = "SELECT   訂單流水號, 年份季度, 客戶訂單號, 形體號, 驗貨報告圖片 FROM 訂單控制表
10
+        SQL1 = "SELECT   訂單流水號, 年份季度, 客戶訂單號, 形體號, 驗貨報告圖片 FROM " & 訂單資料表(1) & "
11
                 WHERE   (客戶訂單號 LIKE '%" & 驗貨報告資料庫修正.客戶訂單號_tb.Text & "%') AND (形體號 LIKE N'" & 驗貨報告資料庫修正.型體名稱_tb.Text & "')"
11
                 WHERE   (客戶訂單號 LIKE '%" & 驗貨報告資料庫修正.客戶訂單號_tb.Text & "%') AND (形體號 LIKE N'" & 驗貨報告資料庫修正.型體名稱_tb.Text & "')"
12
         CmdSet_For_DGV()
12
         CmdSet_For_DGV()
13
     End Sub
13
     End Sub
18
         CmdSet_For_dr()
18
         CmdSet_For_dr()
19
     End Sub
19
     End Sub
20
     '---------------------------驗貨報告圖片導入資料庫--------------------------------------------------------------
20
     '---------------------------驗貨報告圖片導入資料庫--------------------------------------------------------------
21
+    Friend Sub SQL_資料庫選擇()
22
+        ConnOpen() : SQL1 = "SELECT  TOP (1) 圖片資料庫  FROM  圖片資料庫管理  WHERE  (是否可用 = 0)  ORDER BY  圖片資料庫" : CmdSet_For_dr()
23
+    End Sub
21
     Friend Sub SQL_訂單清單()
24
     Friend Sub SQL_訂單清單()
22
         SQL1 = "SELECT 訂單流水號, 年份季度, 客戶訂單號, 形體號, 顏色, 生產工廠, 裁斷時間, 針車時間, 成型時間, 驗貨時間, 驗貨報告圖片, 力威訂單號 FROM " & 訂單資料表(1) & " 
25
         SQL1 = "SELECT 訂單流水號, 年份季度, 客戶訂單號, 形體號, 顏色, 生產工廠, 裁斷時間, 針車時間, 成型時間, 驗貨時間, 驗貨報告圖片, 力威訂單號 FROM " & 訂單資料表(1) & " 
23
                 WHERE (CXL = 0 OR CXL IS NULL) AND (訂單數量 - 出貨數量 <> 0) AND (驗貨時間 LIKE '') ORDER BY   SUBSTRING(訂單流水號, 4, 6), 客戶訂單號, 形體號"
26
                 WHERE (CXL = 0 OR CXL IS NULL) AND (訂單數量 - 出貨數量 <> 0) AND (驗貨時間 LIKE '') ORDER BY   SUBSTRING(訂單流水號, 4, 6), 客戶訂單號, 形體號"
29
                 ORDER BY SUBSTRING(訂單流水號, 4, 6), 客戶訂單號, 形體號"
32
                 ORDER BY SUBSTRING(訂單流水號, 4, 6), 客戶訂單號, 形體號"
30
     End Sub
33
     End Sub
31
     Friend Sub SQL_查詢最後一筆驗貨報告編號()
34
     Friend Sub SQL_查詢最後一筆驗貨報告編號()
32
-        ConnOpen()
35
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫() : ConnOpen_工程圖庫SQL()
33
         SQL1 = "SELECT TOP (1) 驗貨報告編號 FROM 驗貨報告圖庫 ORDER BY 驗貨報告編號 DESC"
36
         SQL1 = "SELECT TOP (1) 驗貨報告編號 FROM 驗貨報告圖庫 ORDER BY 驗貨報告編號 DESC"
34
         CmdSet_For_dr()
37
         CmdSet_For_dr()
35
     End Sub
38
     End Sub
36
     Friend Sub SQL_新增驗貨報告編號_測試()
39
     Friend Sub SQL_新增驗貨報告編號_測試()
37
-        ConnOpen()
40
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫() : ConnOpen_工程圖庫SQL()
38
         SQL1 = "INSERT INTO 驗貨報告圖庫 (客戶訂單號, 型體名稱, 驗貨報告編號, 操作人, 驗貨報告) 
41
         SQL1 = "INSERT INTO 驗貨報告圖庫 (客戶訂單號, 型體名稱, 驗貨報告編號, 操作人, 驗貨報告) 
39
                         SELECT '" & 驗貨報告圖片導入資料庫.客戶訂單號_tb.Text & "','" & 驗貨報告圖片導入資料庫.型體名稱_tb.Text & "','" & 驗貨報告圖片導入資料庫.TextBox3.Text & "','" & gUserName & "', 
42
                         SELECT '" & 驗貨報告圖片導入資料庫.客戶訂單號_tb.Text & "','" & 驗貨報告圖片導入資料庫.型體名稱_tb.Text & "','" & 驗貨報告圖片導入資料庫.TextBox3.Text & "','" & gUserName & "', 
40
                         BULKCOLUMN FROM OPENROWSET ( BULK 'D:\FTP\TENDENZA\0004\" & 驗貨報告圖片導入資料庫.檔案名稱_tb.Text & "', SINGLE_BLOB) AS EMPLOYEEPICTURE"
43
                         BULKCOLUMN FROM OPENROWSET ( BULK 'D:\FTP\TENDENZA\0004\" & 驗貨報告圖片導入資料庫.檔案名稱_tb.Text & "', SINGLE_BLOB) AS EMPLOYEEPICTURE"
41
         CmdSet_For_dr()
44
         CmdSet_For_dr()
42
     End Sub
45
     End Sub
43
     Friend Sub SQL_新增驗貨報告圖庫_正式()
46
     Friend Sub SQL_新增驗貨報告圖庫_正式()
44
-        ConnOpen()
47
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫() : ConnOpen_工程圖庫SQL()
45
         SQL1 = "INSERT INTO 驗貨報告圖庫 (客戶訂單號, 型體名稱, 驗貨報告編號, 操作人, 驗貨報告) 
48
         SQL1 = "INSERT INTO 驗貨報告圖庫 (客戶訂單號, 型體名稱, 驗貨報告編號, 操作人, 驗貨報告) 
46
                         SELECT '" & 驗貨報告圖片導入資料庫.客戶訂單號_tb.Text & "','" & 驗貨報告圖片導入資料庫.型體名稱_tb.Text & "','" & 驗貨報告圖片導入資料庫.TextBox3.Text & "','" & gUserName & "', 
49
                         SELECT '" & 驗貨報告圖片導入資料庫.客戶訂單號_tb.Text & "','" & 驗貨報告圖片導入資料庫.型體名稱_tb.Text & "','" & 驗貨報告圖片導入資料庫.TextBox3.Text & "','" & gUserName & "', 
47
                         BULKCOLUMN FROM OPENROWSET ( BULK 'E:\TENDENZA\0004\" & 驗貨報告圖片導入資料庫.檔案名稱_tb.Text & "', SINGLE_BLOB) AS EMPLOYEEPICTURE"
50
                         BULKCOLUMN FROM OPENROWSET ( BULK 'E:\TENDENZA\0004\" & 驗貨報告圖片導入資料庫.檔案名稱_tb.Text & "', SINGLE_BLOB) AS EMPLOYEEPICTURE"
49
     End Sub
52
     End Sub
50
     Friend Sub SQL_修改驗貨報告圖庫()
53
     Friend Sub SQL_修改驗貨報告圖庫()
51
         ConnOpen()
54
         ConnOpen()
52
-        SQL1 = "UPDATE " & 訂單資料表(1) & " SET 驗貨時間 = '" & DTP & "', 驗貨報告圖片 = '" & 驗貨報告圖片導入資料庫.TextBox3.Text & "' 
55
+        SQL1 = "UPDATE " & 訂單資料表(1) & " SET 驗貨時間 = '" & DTP & "', 驗貨報告圖片 = '" & 驗貨報告圖片導入資料庫.TextBox3.Text & "', 驗報圖庫 = '" & PA20 & "'
53
                 WHERE (訂單流水號 LIKE '" & 驗貨報告圖片導入資料庫.天盾訂單號_tb.Text & "' AND 客戶訂單號 = '" & 驗貨報告圖片導入資料庫.客戶訂單號_tb.Text & "' AND 
56
                 WHERE (訂單流水號 LIKE '" & 驗貨報告圖片導入資料庫.天盾訂單號_tb.Text & "' AND 客戶訂單號 = '" & 驗貨報告圖片導入資料庫.客戶訂單號_tb.Text & "' AND 
54
                        形體號 = '" & 驗貨報告圖片導入資料庫.型體名稱_tb.Text & "')"
57
                        形體號 = '" & 驗貨報告圖片導入資料庫.型體名稱_tb.Text & "')"
55
         CmdSet_For_dr()
58
         CmdSet_For_dr()
56
     End Sub
59
     End Sub
57
     '------------------------------------------------驗貨報告資料庫-------------------------------------
60
     '------------------------------------------------驗貨報告資料庫-------------------------------------
58
     Friend Sub SQL_驗貨報告圖庫清單()
61
     Friend Sub SQL_驗貨報告圖庫清單()
59
-        SQL1 = "SELECT     " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".年份季度, 驗貨報告圖庫.客戶訂單號, 驗貨報告圖庫.型體名稱, " & 訂單資料表(1) & ".顏色,  驗貨報告圖庫.驗貨報告編號 
60
-                FROM       驗貨報告圖庫 INNER JOIN " & 訂單資料表(1) & " ON 驗貨報告圖庫.客戶訂單號 = " & 訂單資料表(1) & ".客戶訂單號 
61
-                GROUP BY   " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".年份季度, 驗貨報告圖庫.客戶訂單號, 驗貨報告圖庫.型體名稱, " & 訂單資料表(1) & ".顏色, 驗貨報告圖庫.驗貨報告編號 
62
-                ORDER BY   驗貨報告圖庫.客戶訂單號, 驗貨報告圖庫.型體名稱"
62
+        SQL1 = "SELECT     " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".年份季度, " & PA20 & ".dbo.驗貨報告圖庫.客戶訂單號, " & PA20 & ".dbo.驗貨報告圖庫.型體名稱, 
63
+                           " & 訂單資料表(1) & ".顏色,  " & PA20 & ".dbo.驗貨報告圖庫.驗貨報告編號 
64
+                FROM       " & PA20 & ".dbo.驗貨報告圖庫 INNER JOIN " & 訂單資料表(1) & " ON " & PA20 & ".dbo.驗貨報告圖庫.客戶訂單號 = " & 訂單資料表(1) & ".客戶訂單號 
65
+                GROUP BY   " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".年份季度, " & PA20 & ".dbo.驗貨報告圖庫.客戶訂單號, " & PA20 & ".dbo.驗貨報告圖庫.型體名稱, 
66
+                           " & 訂單資料表(1) & ".顏色, " & PA20 & ".dbo.驗貨報告圖庫.驗貨報告編號 
67
+                ORDER BY   " & PA20 & ".dbo.驗貨報告圖庫.客戶訂單號, " & PA20 & ".dbo.驗貨報告圖庫.型體名稱"
63
     End Sub
68
     End Sub
64
     Friend Sub SQL_驗貨報告圖庫查詢()
69
     Friend Sub SQL_驗貨報告圖庫查詢()
65
-        ConnOpen()
66
-        SQL1 = "SELECT 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & 驗貨報告資料庫.驗貨報告編號_tb.Text & "'"
70
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫()
71
+        ConnOpen_工程圖庫SQL() : SQL1 = "SELECT 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & PA2 & "'"
67
         CmdSet_For_dr()
72
         CmdSet_For_dr()
68
     End Sub
73
     End Sub
69
     Friend Sub SQL_驗貨報告圖庫查詢1()
74
     Friend Sub SQL_驗貨報告圖庫查詢1()
70
-        SQL1 = "SELECT   " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".年份季度, 驗貨報告圖庫.客戶訂單號, 驗貨報告圖庫.型體名稱, " & 訂單資料表(1) & ".顏色,  驗貨報告圖庫.驗貨報告編號 
71
-                FROM     驗貨報告圖庫 LEFT OUTER JOIN " & 訂單資料表(1) & " ON 驗貨報告圖庫.客戶訂單號 = " & 訂單資料表(1) & ".客戶訂單號 
72
-                WHERE    " & 訂單資料表(1) & ".訂單流水號 LIKE '%" & PA & "%' OR " &
73
-                             "" & 訂單資料表(1) & ".年份季度 LIKE '%" & PA & "%' OR 驗貨報告圖庫.客戶訂單號 LIKE '%" & PA & "%' OR 驗貨報告圖庫.型體名稱 LIKE '%" & PA & "%' 
74
-                GROUP BY " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".年份季度, 驗貨報告圖庫.客戶訂單號, 驗貨報告圖庫.型體名稱, " & 訂單資料表(1) & ".顏色, 驗貨報告圖庫.驗貨報告編號 
75
-                ORDER BY 驗貨報告圖庫.客戶訂單號, 驗貨報告圖庫.型體名稱"
75
+        SQL1 = "SELECT   " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".年份季度, " & PA20 & ".dbo.驗貨報告圖庫.客戶訂單號, " & PA20 & ".dbo.驗貨報告圖庫.型體名稱, 
76
+                         " & 訂單資料表(1) & ".顏色,  " & PA20 & ".dbo.驗貨報告圖庫.驗貨報告編號 
77
+                FROM     " & PA20 & ".dbo.驗貨報告圖庫 LEFT OUTER JOIN " & 訂單資料表(1) & " ON " & PA20 & ".dbo.驗貨報告圖庫.客戶訂單號 = " & 訂單資料表(1) & ".客戶訂單號 
78
+                WHERE    " & 訂單資料表(1) & ".訂單流水號 LIKE '%" & PA & "%' OR " & 訂單資料表(1) & ".年份季度 LIKE '%" & PA & "%' OR 
79
+                         " & PA20 & ".dbo.驗貨報告圖庫.客戶訂單號 LIKE '%" & PA & "%' OR " & PA20 & ".dbo.驗貨報告圖庫.型體名稱 LIKE '%" & PA & "%' 
80
+                GROUP BY " & 訂單資料表(1) & ".訂單流水號, " & 訂單資料表(1) & ".年份季度, " & PA20 & ".dbo.驗貨報告圖庫.客戶訂單號, " & PA20 & ".dbo.驗貨報告圖庫.型體名稱, 
81
+                         " & 訂單資料表(1) & ".顏色, " & PA20 & ".dbo.驗貨報告圖庫.驗貨報告編號 
82
+                ORDER BY " & PA20 & ".dbo.驗貨報告圖庫.客戶訂單號, " & PA20 & ".dbo.驗貨報告圖庫.型體名稱"
76
     End Sub
83
     End Sub
77
     Friend Sub SQL_驗貨報告圖庫3()
84
     Friend Sub SQL_驗貨報告圖庫3()
78
-        ConnOpen()
79
-        SQL1 = "SELECT 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & 驗貨報告資料庫.驗貨報告編號_tb.Text & "'"
80
-        CmdSet_For_DGV()
85
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫()
86
+        ConnOpen_工程圖庫SQL() : SQL1 = "SELECT 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & 驗貨報告資料庫.驗貨報告編號_tb.Text & "'" : CmdSet_For_DGV()
81
     End Sub
87
     End Sub
82
     Friend Sub SQL_修改驗貨報告圖庫1_測試()
88
     Friend Sub SQL_修改驗貨報告圖庫1_測試()
83
-        ConnOpen()
89
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫() : ConnOpen_工程圖庫SQL()
84
         SQL1 = "UPDATE 驗貨報告圖庫 SET  驗貨報告 = BULKCOLUMN FROM OPENROWSET ( BULK 'D:\FTP\TENDENZA\0004\" & 驗貨報告資料庫.TextBox6.Text & "', SINGLE_BLOB) AS EMPLOYEEPICTURE 
90
         SQL1 = "UPDATE 驗貨報告圖庫 SET  驗貨報告 = BULKCOLUMN FROM OPENROWSET ( BULK 'D:\FTP\TENDENZA\0004\" & 驗貨報告資料庫.TextBox6.Text & "', SINGLE_BLOB) AS EMPLOYEEPICTURE 
85
                         WHERE (驗貨報告編號 = '" & 驗貨報告資料庫.驗貨報告編號_tb.Text & "')"
91
                         WHERE (驗貨報告編號 = '" & 驗貨報告資料庫.驗貨報告編號_tb.Text & "')"
86
         CmdSet_For_dr()
92
         CmdSet_For_dr()
87
     End Sub
93
     End Sub
88
     Friend Sub SQL_修改驗貨報告圖庫1_正式()
94
     Friend Sub SQL_修改驗貨報告圖庫1_正式()
89
-        ConnOpen()
95
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫() : ConnOpen_工程圖庫SQL()
90
         SQL1 = "UPDATE 驗貨報告圖庫 SET  驗貨報告 = BULKCOLUMN FROM OPENROWSET ( BULK 'E:\TENDENZA\0004\" & 驗貨報告資料庫.TextBox6.Text & "', SINGLE_BLOB) AS EMPLOYEEPICTURE 
96
         SQL1 = "UPDATE 驗貨報告圖庫 SET  驗貨報告 = BULKCOLUMN FROM OPENROWSET ( BULK 'E:\TENDENZA\0004\" & 驗貨報告資料庫.TextBox6.Text & "', SINGLE_BLOB) AS EMPLOYEEPICTURE 
91
                         WHERE (驗貨報告編號 = '" & 驗貨報告資料庫.驗貨報告編號_tb.Text & "')"
97
                         WHERE (驗貨報告編號 = '" & 驗貨報告資料庫.驗貨報告編號_tb.Text & "')"
92
         CmdSet_For_dr()
98
         CmdSet_For_dr()
94
     '--------------------保證書出貨統計資料---------------------------------------------------------
100
     '--------------------保證書出貨統計資料---------------------------------------------------------
95
     Friend Sub SQL_保證書出貨清單()
101
     Friend Sub SQL_保證書出貨清單()
96
         ConnOpen()
102
         ConnOpen()
97
-        SQL1 = "SELECT 驗貨報告圖庫.操作人, 訂單控制表.訂單流水號, 訂單控制表.年份季度, 訂單控制表.客戶訂單號, 訂單控制表.形體號 AS 型體名稱, 訂單控制表.TVW AS 形體號碼, 訂單控制表.顏色, " &
98
-                   "訂單控制表.楦型, 訂單控制表.訂單數量, 訂單控制表.生產工廠 AS 工廠, 訂單控制表.訂單種類, 訂單控制表.工廠回復交期, 訂單控制表.裁斷時間, 訂單控制表.針車時間, 訂單控制表.成型時間, " &
99
-                   "訂單控制表.驗貨時間, 訂單控制表.實際離廠日, 訂單控制表.東莞業務備註, 訂單控制表.驗貨報告圖片 FROM 驗貨報告圖庫 LEFT OUTER JOIN 訂單控制表 ON 驗貨報告圖庫.型體名稱 = " &
100
-                   "訂單控制表.形體號 AND 驗貨報告圖庫.客戶訂單號 = 訂單控制表.客戶訂單號 WHERE (驗貨報告圖庫.操作人 LIKE 'Sammi') ORDER BY   訂單控制表.客戶訂單號 DESC, 型體名稱"
103
+        SQL1 = "SELECT      " & PA20 & ".dbo.驗貨報告圖庫.操作人, 訂單控制表.訂單流水號, 訂單控制表.年份季度, 
104
+                            訂單控制表.客戶訂單號, 訂單控制表.形體號 AS 型體名稱, 訂單控制表.TVW AS 形體號碼, 訂單控制表.顏色, 
105
+                            訂單控制表.楦型, 訂單控制表.訂單數量, 訂單控制表.生產工廠 AS 工廠, 訂單控制表.訂單種類, 
106
+                            訂單控制表.工廠回復交期, 訂單控制表.裁斷時間, 訂單控制表.針車時間, 訂單控制表.成型時間, 訂單控制表.驗貨時間, 
107
+                            訂單控制表.實際離廠日, 訂單控制表.東莞業務備註, 訂單控制表.驗貨報告圖片
108
+                FROM        訂單控制表 RIGHT OUTER JOIN
109
+                            " & PA20 & ".dbo.驗貨報告圖庫 ON 
110
+                            訂單控制表.客戶訂單號 = " & PA20 & ".dbo.驗貨報告圖庫.客戶訂單號 AND 
111
+                            訂單控制表.形體號 = " & PA20 & ".dbo.驗貨報告圖庫.型體名稱
112
+                WHERE      (" & PA20 & ".dbo.驗貨報告圖庫.操作人 LIKE 'Sammi')
113
+                ORDER BY    訂單控制表.客戶訂單號 DESC, 型體名稱"
101
         CmdSet_For_DGV()
114
         CmdSet_For_DGV()
102
     End Sub
115
     End Sub
103
     Friend Sub SQL_驗貨報告()
116
     Friend Sub SQL_驗貨報告()
104
-        ConnOpen()
105
-        SQL1 = "SELECT TOP(1) 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & PA & "'"
106
-        CmdSet_For_dr()
107
-    End Sub
108
-    '-------------------------驗貨報告大圖---------------------------------------------------
109
-    Friend Sub SQL_驗貨報告1()
110
-        ConnOpen()
111
-        SQL1 = "SELECT TOP(1) 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & 驗貨報告 & "'"
112
-        CmdSet_For_dr()
117
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫()
118
+        ConnOpen_工程圖庫SQL() : SQL1 = "SELECT TOP(1) 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & PA2 & "'" : CmdSet_For_dr()
113
     End Sub
119
     End Sub
114
     '----------------------鞋型圖片導入資料庫---------------------------------------------------
120
     '----------------------鞋型圖片導入資料庫---------------------------------------------------
115
     Friend Sub SQL_季節清單()
121
     Friend Sub SQL_季節清單()
320
                     BULKCOLUMN FROM OPENROWSET ( BULK 'E:\TENDENZA\0003\" & 楦頭圖片導入資料庫.檔案名稱_tb.Text & "', SINGLE_BLOB) AS EMPLOYEEPICTURE"
326
                     BULKCOLUMN FROM OPENROWSET ( BULK 'E:\TENDENZA\0003\" & 楦頭圖片導入資料庫.檔案名稱_tb.Text & "', SINGLE_BLOB) AS EMPLOYEEPICTURE"
321
         CmdSet_For_dr()
327
         CmdSet_For_dr()
322
     End Sub
328
     End Sub
329
+    '---------------------------包裝資料圖片導入資料庫--------------------------------------------------------------
330
+    Friend Sub SQL_形體清單()
331
+        ConnOpen() : SQL1 = "SELECT  建立季節, Style, ProductName, ItemNumber  FROM  STYLELIST  WHERE  (包裝圖號 LIKE '') OR (包裝圖號 IS NULL)  ORDER BY  Style, 建立季節 DESC" : CmdSet_For_DGV()
332
+    End Sub
333
+    Friend Sub SQL_形體清單1()
334
+        ConnOpen()
335
+        SQL1 = "SELECT    建立季節, Style, ProductName, ItemNumber  FROM  STYLELIST  
336
+                WHERE   ((包裝圖號 LIKE '') OR (包裝圖號 IS NULL)) AND 
337
+                          (建立季節 LIKE N'%" & PA & "%' OR Style LIKE N'%" & PA & "%' OR ProductName LIKE N'%" & PA & "%' OR ItemNumber LIKE N'%" & PA & "%')   
338
+                ORDER BY  Style, 建立季節 DESC"
339
+        CmdSet_For_DGV()
340
+    End Sub
341
+    Friend Sub SQL_查詢最後一筆包裝資料編號()
342
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫() : ConnOpen_工程圖庫SQL()
343
+        SQL1 = "SELECT TOP (1) 流水號 FROM 包裝資料圖庫 ORDER BY 流水號 DESC"
344
+        CmdSet_For_dr()
345
+    End Sub
346
+    Friend Sub SQL_新增包裝編號_測試()
347
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫() : ConnOpen_工程圖庫SQL()
348
+        SQL1 = "INSERT INTO 包裝資料圖庫 (流水號, 季節, 型體名稱, 型體號碼, 項目編號, 圖片) 
349
+                        SELECT '" & 包裝資料圖片導入資料庫.流水號_tb.Text & "','" & 包裝資料圖片導入資料庫.建立季節_tb.Text & "','" & 包裝資料圖片導入資料庫.型體名稱_tb.Text & "',
350
+                               '" & 包裝資料圖片導入資料庫.型體號碼_tb.Text & "', '" & 包裝資料圖片導入資料庫.項目編號_tb.Text & "',  
351
+                        BULKCOLUMN FROM OPENROWSET ( BULK 'D:\FTP\TENDENZA\0004\" & 包裝資料圖片導入資料庫.檔案名稱_tb.Text & "', SINGLE_BLOB) AS EMPLOYEEPICTURE"
352
+        CmdSet_For_dr()
353
+    End Sub
354
+    Friend Sub SQL_新增包裝編號_正式()
355
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫() : ConnOpen_工程圖庫SQL()
356
+        SQL1 = "INSERT INTO 包裝資料圖庫 (流水號, 季節, 型體名稱, 型體號碼, 項目編號, 圖片) 
357
+                        SELECT '" & 包裝資料圖片導入資料庫.流水號_tb.Text & "','" & 包裝資料圖片導入資料庫.建立季節_tb.Text & "','" & 包裝資料圖片導入資料庫.型體名稱_tb.Text & "',
358
+                               '" & 包裝資料圖片導入資料庫.型體號碼_tb.Text & "', '" & 包裝資料圖片導入資料庫.項目編號_tb.Text & "',  
359
+                        BULKCOLUMN FROM OPENROWSET ( BULK 'E:\TENDENZA\0004\" & 包裝資料圖片導入資料庫.檔案名稱_tb.Text & "', SINGLE_BLOB) AS EMPLOYEEPICTURE"
360
+        CmdSet_For_dr()
361
+    End Sub
362
+    Friend Sub SQL_修改STYLELIST包裝圖號()
363
+        ConnOpen()
364
+        SQL1 = "UPDATE STYLELIST SET 包裝圖號 = '" & 包裝資料圖片導入資料庫.流水號_tb.Text & "', 包裝圖庫 = '" & PA1 & "'
365
+                WHERE  (ItemNumber LIKE N'" & 包裝資料圖片導入資料庫.項目編號_tb.Text & "' AND ProductName LIKE N'" & 包裝資料圖片導入資料庫.型體名稱_tb.Text & "' AND 
366
+                        Style LIKE N'" & 包裝資料圖片導入資料庫.型體號碼_tb.Text & "' AND 建立季節 LIKE N'" & 包裝資料圖片導入資料庫.建立季節_tb.Text & "')"
367
+        CmdSet_For_dr()
368
+    End Sub
369
+    Friend Sub SQL_包裝圖片清單()
370
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫() : ConnOpen_工程圖庫SQL()
371
+        SQL1 = "SELECT  流水號, 季節, 型體名稱, 型體號碼, 項目編號  FROM  包裝資料圖庫  ORDER BY  流水號 DESC"
372
+        CmdSet_For_DGV()
373
+    End Sub
374
+    Friend Sub SQL_包裝圖片()
375
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫()
376
+        ConnOpen_工程圖庫SQL() : SQL1 = "SELECT TOP(1) 圖片 FROM 包裝資料圖庫 WHERE 流水號 LIKE '" & PA2 & "'" : CmdSet_For_dr()
377
+    End Sub
323
 End Module
378
 End Module

+ 2
- 2
TENDEN-MES-SYS/Module/SQL_製鞋技術管理.vb Wyświetl plik

274
     '---------------------------------STYLE_資料管理---------------------------------------------------------------------
274
     '---------------------------------STYLE_資料管理---------------------------------------------------------------------
275
     Friend Sub SQL_STYLE()
275
     Friend Sub SQL_STYLE()
276
         SQL1 = "SELECT   STYLELIST.建立季節, 訂單控制表形體號清單.形體號 AS 形體名稱, STYLELIST.ProductName, STYLELIST.ItemNumber, STYLELIST.Style AS 形體號碼, STYLELIST.Description, Q.形體號, 
276
         SQL1 = "SELECT   STYLELIST.建立季節, 訂單控制表形體號清單.形體號 AS 形體名稱, STYLELIST.ProductName, STYLELIST.ItemNumber, STYLELIST.Style AS 形體號碼, STYLELIST.Description, Q.形體號, 
277
-                         Q.訂單數量 AS 訂單筆數, Q.總雙數, STYLELIST.APMA確認, STYLELIST.T1, STYLELIST.T2, STYLELIST.WEAR_TEST, STYLELIST.T3, STYLELIST.T4
277
+                         Q.訂單數量 AS 訂單筆數, Q.總雙數, STYLELIST.APMA確認, STYLELIST.T1, STYLELIST.T2, STYLELIST.WEAR_TEST, STYLELIST.T3, STYLELIST.T4, STYLELIST.包裝圖號, STYLELIST.包裝圖庫
278
                 FROM    (SELECT 形體號, COUNT(形體號) AS 訂單數量, SUM(訂單數量) AS 總雙數 FROM 訂單控制表 GROUP BY    形體號) AS Q RIGHT OUTER JOIN STYLELIST ON Q.形體號 = STYLELIST.ProductName 
278
                 FROM    (SELECT 形體號, COUNT(形體號) AS 訂單數量, SUM(訂單數量) AS 總雙數 FROM 訂單控制表 GROUP BY    形體號) AS Q RIGHT OUTER JOIN STYLELIST ON Q.形體號 = STYLELIST.ProductName 
279
                          FULL OUTER JOIN 訂單控制表形體號清單 ON STYLELIST.ProductName = 訂單控制表形體號清單.形體號 
279
                          FULL OUTER JOIN 訂單控制表形體號清單 ON STYLELIST.ProductName = 訂單控制表形體號清單.形體號 
280
                 ORDER BY Q.總雙數 DESC, RIGHT(STYLELIST.建立季節,2) DESC, 形體號碼 DESC"
280
                 ORDER BY Q.總雙數 DESC, RIGHT(STYLELIST.建立季節,2) DESC, 形體號碼 DESC"
449
     End Sub
449
     End Sub
450
     Friend Sub SQL_查詢訂單控制表()
450
     Friend Sub SQL_查詢訂單控制表()
451
         SQL1 = "SELECT   STYLELIST.建立季節, 訂單控制表形體號清單.形體號 AS 形體名稱, STYLELIST.ProductName, STYLELIST.ItemNumber, STYLELIST.Style AS 形體號碼, STYLELIST.Description, Q.形體號, 
451
         SQL1 = "SELECT   STYLELIST.建立季節, 訂單控制表形體號清單.形體號 AS 形體名稱, STYLELIST.ProductName, STYLELIST.ItemNumber, STYLELIST.Style AS 形體號碼, STYLELIST.Description, Q.形體號, 
452
-                         Q.訂單數量 AS 訂單筆數, Q.總雙數, STYLELIST.APMA確認 
452
+                         Q.訂單數量 AS 訂單筆數, Q.總雙數, STYLELIST.APMA確認, STYLELIST.包裝圖號, STYLELIST.包裝圖庫 
453
                 FROM    (SELECT 形體號, COUNT(形體號) AS 訂單數量, SUM(訂單數量) AS 總雙數 FROM 訂單控制表 GROUP BY 形體號) AS Q RIGHT OUTER JOIN STYLELIST ON Q.形體號 = 
453
                 FROM    (SELECT 形體號, COUNT(形體號) AS 訂單數量, SUM(訂單數量) AS 總雙數 FROM 訂單控制表 GROUP BY 形體號) AS Q RIGHT OUTER JOIN STYLELIST ON Q.形體號 = 
454
                          STYLELIST.ProductName FULL OUTER JOIN 訂單控制表形體號清單 ON STYLELIST.ProductName = 訂單控制表形體號清單.形體號 
454
                          STYLELIST.ProductName FULL OUTER JOIN 訂單控制表形體號清單 ON STYLELIST.ProductName = 訂單控制表形體號清單.形體號 
455
                 WHERE    訂單控制表形體號清單.形體號 LIKE '%" & PA & "%' OR STYLELIST.ItemNumber LIKE '%" & PA & "%' OR STYLELIST.Style LIKE '%" & PA & "%' OR STYLELIST.Description LIKE '%" & PA & "%' 
455
                 WHERE    訂單控制表形體號清單.形體號 LIKE '%" & PA & "%' OR STYLELIST.ItemNumber LIKE '%" & PA & "%' OR STYLELIST.Style LIKE '%" & PA & "%' OR STYLELIST.Description LIKE '%" & PA & "%' 

+ 42
- 0
TENDEN-MES-SYS/Module/SQL_資料庫系統管理.vb Wyświetl plik

124
         SQL1 = "SELECT 系統認證版本號 FROM 版本號管理 "
124
         SQL1 = "SELECT 系統認證版本號 FROM 版本號管理 "
125
         CmdSet_For_dr()
125
         CmdSet_For_dr()
126
     End Sub
126
     End Sub
127
+    '----------------------系統編碼原則------------------------------------------------------------------------------------
128
+    Friend Sub SQL_主資料庫LOG檔案截斷()
129
+        ConnOpen() : SQL1 = "USE [" & PA & "] ALTER DATABASE [" & PA & "]
130
+                             SET RECOVERY SIMPLE; DBCC SHRINKFILE([" & PA & "_Log], 1); 
131
+                             ALTER DATABASE [" & PA & "]
132
+                             SET RECOVERY FULL;" : CmdSet_For_dr()
133
+    End Sub
134
+    Friend Sub SQL_伺服器1清單()
135
+        ConnOpen()
136
+        SQL1 = "SELECT  DB_NAME(database_id) AS 資料庫 FROM sys.master_files WHERE  (DB_NAME(database_id) LIKE '天盾%') GROUP BY DB_NAME(database_id) ORDER BY DB_NAME(database_id)"
137
+        CmdSet_For_DGV()
138
+    End Sub
139
+    Friend Sub SQL_資料庫狀態()
140
+        ConnOpen()
141
+        SQL1 = "SELECT  DB_NAME(database_id) AS [資料庫名稱], physical_name AS [磁碟路徑], type_desc AS [類型描述], 
142
+                        state_desc  AS [狀態描述], size * 8.0 / 1024  AS [使用容量]
143
+                FROM    sys.master_files
144
+                WHERE  (DB_NAME(database_id) LIKE N'天盾%')"
145
+        CmdSet_For_DGV()
146
+    End Sub
147
+    Friend Sub SQL_圖片資料庫管理查詢()
148
+        ConnOpen() : SQL1 = "SELECT 圖片資料庫, 是否可用  FROM 圖片資料庫管理 ORDER BY 圖片資料庫" : CmdSet_For_DGV()
149
+    End Sub
150
+    Friend Sub SQL_系統預測值修改()
151
+        ConnOpen() : SQL1 = "UPDATE 版本號管理 SET 圖片伺服器上限 = '" & 系統編碼原則.MAX_nud.Value & "'" : CmdSet_For_dr()
152
+    End Sub
153
+    Friend Sub SQL_系統預設值()
154
+        ConnOpen() : SQL1 = "SELECT  圖片伺服器上限 FROM 版本號管理" : CmdSet_For_dr()
155
+    End Sub
156
+    Friend Sub SQL_圖片資料庫管理查詢1()
157
+        ConnOpen() : SQL1 = "SELECT 圖片資料庫, 是否可用 FROM 圖片資料庫管理 WHERE 圖片資料庫 LIKE N'" & 系統編碼原則.圖片資料庫名稱_tb.Text & "'" : CmdSet_For_dr()
158
+    End Sub
159
+    Friend Sub SQL_工程圖片資料庫管理查詢新增()
160
+        ConnOpen()
161
+        SQL1 = "INSERT INTO 圖片資料庫管理 (圖片資料庫, 是否可用) VALUES ('" & 系統編碼原則.圖片資料庫名稱_tb.Text & "','" & 系統編碼原則.是否可用_ch.Checked & "')"
162
+        CmdSet_For_dr()
163
+    End Sub
164
+    Friend Sub SQL_工程圖片資料庫管理查詢修改()
165
+        ConnOpen()
166
+        SQL1 = "UPDATE 圖片資料庫管理 SET 是否可用 = '" & 系統編碼原則.是否可用_ch.Checked & "' WHERE 圖片資料庫 LIKE N'" & 系統編碼原則.圖片資料庫名稱_tb.Text & "'"
167
+        CmdSet_For_dr()
168
+    End Sub
127
 End Module
169
 End Module

+ 11
- 0
TENDEN-MES-SYS/Module/SQL_連線字串.vb Wyświetl plik

1
+Module SQL_連線字串
2
+    Friend Sub SQL_連線字串_測試()
3
+        ConString = "Data Source=" & 登入人IP & ";Initial Catalog=天盾國際管理系統資料庫;Persist Security Info=True;User ID=b70340;Password=Lee0911274990;Max pool size = 200;Connection Timeout=0"
4
+    End Sub
5
+    Friend Sub SQL_連線字串_正式()
6
+        ConString = "Data Source=" & 登入人IP & ";Initial Catalog=天盾國際管理系統資料庫;Persist Security Info=True;User ID=b70340;Password=0911274990;Max pool size = 200;Connection Timeout=0"
7
+    End Sub
8
+    Friend Sub SQL_連線字串_圖片資料庫()
9
+        ConString2 = "Data Source=" & 登入人IP & ";Initial Catalog=" & 圖片庫 & ";Persist Security Info=True;User ID=b70340;Password=" & SQL密碼 & ";Max pool size = 200;Connection Timeout=0"
10
+    End Sub
11
+End Module

+ 3
- 3
TENDEN-MES-SYS/Module/SQL_連線狀態模組.vb Wyświetl plik

1
 Module SQL_連線狀態模組
1
 Module SQL_連線狀態模組
2
 #Region "——连接测试:避免等待时间过长——"
2
 #Region "——连接测试:避免等待时间过长——"
3
     Dim bConnect As Boolean
3
     Dim bConnect As Boolean
4
-    Dim BgWorker1 As New System.ComponentModel.BackgroundWorker
4
+    ReadOnly BgWorker1 As New System.ComponentModel.BackgroundWorker
5
     Dim ServerIP As String
5
     Dim ServerIP As String
6
     ''' <summary>
6
     ''' <summary>
7
     ''' 测试连接:True-连接成功,False-连接失败
7
     ''' 测试连接:True-连接成功,False-连接失败
49
     End Sub
49
     End Sub
50
     '--连接数据库
50
     '--连接数据库
51
     Private Function ConnectMSSQLServer() As Boolean
51
     Private Function ConnectMSSQLServer() As Boolean
52
-        Dim sqlConTest As Data.SqlClient.SqlConnection ' 连接   
53
-        sqlConTest = New Data.SqlClient.SqlConnection
52
+        Dim sqlConTest As SqlClient.SqlConnection ' 连接   
53
+        sqlConTest = New SqlClient.SqlConnection
54
         sqlConTest.ConnectionString = "Data Source=" + ServerIP + ";Initial Catalog=天盾國際管理系統資料庫;Persist Security Info=True;User ID=b70340;Password=0911274990;Max pool size = 200;Connection Timeout=0"
54
         sqlConTest.ConnectionString = "Data Source=" + ServerIP + ";Initial Catalog=天盾國際管理系統資料庫;Persist Security Info=True;User ID=b70340;Password=0911274990;Max pool size = 200;Connection Timeout=0"
55
         Try
55
         Try
56
             sqlConTest.Open()
56
             sqlConTest.Open()

+ 34
- 26
TENDEN-MES-SYS/Module/SQL_量產訂單系統.vb Wyświetl plik

342
                             貨款匯入出款明細表.楦型, 貨款匯入出款明細表.訂單數量, 貨款匯入出款明細表.出貨數量, 
342
                             貨款匯入出款明細表.楦型, 貨款匯入出款明細表.訂單數量, 貨款匯入出款明細表.出貨數量, 
343
                             " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠, " & 訂單資料表(1) & ".訂單種類, 
343
                             " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠, " & 訂單資料表(1) & ".訂單種類, 
344
                             " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".工廠回復交期, 貨款匯入出款明細表.實際離廠日, 
344
                             " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".工廠回復交期, 貨款匯入出款明細表.實際離廠日, 
345
-                            " & 訂單資料表(1) & ".明細建檔, " & 訂單資料表(1) & ".驗貨報告圖片, " & 訂單資料表(1) & ".TVW
345
+                            " & 訂單資料表(1) & ".明細建檔, " & 訂單資料表(1) & ".驗貨報告圖片, " & 訂單資料表(1) & ".TVW, " & 訂單資料表(1) & ".驗報圖庫
346
                     FROM    貨款匯入出款明細表 INNER JOIN
346
                     FROM    貨款匯入出款明細表 INNER JOIN
347
                             " & 訂單資料表(1) & " ON 貨款匯入出款明細表.顏色 = " & 訂單資料表(1) & ".顏色 AND 
347
                             " & 訂單資料表(1) & " ON 貨款匯入出款明細表.顏色 = " & 訂單資料表(1) & ".顏色 AND 
348
                             貨款匯入出款明細表.楦型 = " & 訂單資料表(1) & ".楦型 AND 
348
                             貨款匯入出款明細表.楦型 = " & 訂單資料表(1) & ".楦型 AND 
353
                             貨款匯入出款明細表.楦型, 貨款匯入出款明細表.訂單數量, 貨款匯入出款明細表.出貨數量, 
353
                             貨款匯入出款明細表.楦型, 貨款匯入出款明細表.訂單數量, 貨款匯入出款明細表.出貨數量, 
354
                             " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠, " & 訂單資料表(1) & ".訂單種類, 
354
                             " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠, " & 訂單資料表(1) & ".訂單種類, 
355
                             " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".工廠回復交期, 貨款匯入出款明細表.實際離廠日, 
355
                             " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".工廠回復交期, 貨款匯入出款明細表.實際離廠日, 
356
-                            " & 訂單資料表(1) & ".明細建檔, " & 訂單資料表(1) & ".驗貨報告圖片, " & 訂單資料表(1) & ".TVW
356
+                            " & 訂單資料表(1) & ".明細建檔, " & 訂單資料表(1) & ".驗貨報告圖片, " & 訂單資料表(1) & ".TVW, " & 訂單資料表(1) & ".驗報圖庫
357
                     ORDER BY   貨款匯入出款明細表.訂單流水號 DESC, 貨款匯入出款明細表.形體號, 貨款匯入出款明細表.顏色, 
357
                     ORDER BY   貨款匯入出款明細表.訂單流水號 DESC, 貨款匯入出款明細表.形體號, 貨款匯入出款明細表.顏色, 
358
                             貨款匯入出款明細表.楦型"
358
                             貨款匯入出款明細表.楦型"
359
     End Sub
359
     End Sub
363
                             貨款匯入出款明細表.楦型, 貨款匯入出款明細表.訂單數量, 貨款匯入出款明細表.出貨數量, 
363
                             貨款匯入出款明細表.楦型, 貨款匯入出款明細表.訂單數量, 貨款匯入出款明細表.出貨數量, 
364
                             " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠, " & 訂單資料表(1) & ".訂單種類, 
364
                             " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠, " & 訂單資料表(1) & ".訂單種類, 
365
                             " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".工廠回復交期, 貨款匯入出款明細表.實際離廠日, 
365
                             " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".工廠回復交期, 貨款匯入出款明細表.實際離廠日, 
366
-                            " & 訂單資料表(1) & ".明細建檔, " & 訂單資料表(1) & ".驗貨報告圖片, " & 訂單資料表(1) & ".TVW
366
+                            " & 訂單資料表(1) & ".明細建檔, " & 訂單資料表(1) & ".驗貨報告圖片, " & 訂單資料表(1) & ".TVW, " & 訂單資料表(1) & ".驗報圖庫
367
                     FROM    貨款匯入出款明細表 INNER JOIN
367
                     FROM    貨款匯入出款明細表 INNER JOIN
368
                             " & 訂單資料表(1) & " ON 貨款匯入出款明細表.顏色 = " & 訂單資料表(1) & ".顏色 AND 
368
                             " & 訂單資料表(1) & " ON 貨款匯入出款明細表.顏色 = " & 訂單資料表(1) & ".顏色 AND 
369
                             貨款匯入出款明細表.楦型 = " & 訂單資料表(1) & ".楦型 AND 
369
                             貨款匯入出款明細表.楦型 = " & 訂單資料表(1) & ".楦型 AND 
376
                             貨款匯入出款明細表.楦型, 貨款匯入出款明細表.訂單數量, 貨款匯入出款明細表.出貨數量, 
376
                             貨款匯入出款明細表.楦型, 貨款匯入出款明細表.訂單數量, 貨款匯入出款明細表.出貨數量, 
377
                             " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠, " & 訂單資料表(1) & ".訂單種類, 
377
                             " & 訂單資料表(1) & ".備註, " & 訂單資料表(1) & ".生產工廠, " & 訂單資料表(1) & ".訂單種類, 
378
                             " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".工廠回復交期, 貨款匯入出款明細表.實際離廠日, 
378
                             " & 訂單資料表(1) & ".客戶交期, " & 訂單資料表(1) & ".工廠回復交期, 貨款匯入出款明細表.實際離廠日, 
379
-                            " & 訂單資料表(1) & ".明細建檔, " & 訂單資料表(1) & ".驗貨報告圖片, " & 訂單資料表(1) & ".TVW
379
+                            " & 訂單資料表(1) & ".明細建檔, " & 訂單資料表(1) & ".驗貨報告圖片, " & 訂單資料表(1) & ".TVW, " & 訂單資料表(1) & ".驗報圖庫
380
                     ORDER BY   貨款匯入出款明細表.訂單流水號 DESC, 貨款匯入出款明細表.形體號, 貨款匯入出款明細表.顏色, 
380
                     ORDER BY   貨款匯入出款明細表.訂單流水號 DESC, 貨款匯入出款明細表.形體號, 貨款匯入出款明細表.顏色, 
381
                             貨款匯入出款明細表.楦型"
381
                             貨款匯入出款明細表.楦型"
382
     End Sub
382
     End Sub
430
         CmdSet_For_dr()
430
         CmdSet_For_dr()
431
     End Sub
431
     End Sub
432
     Friend Sub SQL_讀取訂單明細表圖片2()
432
     Friend Sub SQL_讀取訂單明細表圖片2()
433
-        ConnOpen()
434
-        SQL1 = "SELECT TOP(1) 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & PA1 & "'"
433
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫() : ConnOpen_工程圖庫SQL()
434
+        SQL1 = "SELECT TOP(1) 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & PA2 & "'"
435
         CmdSet_For_dr()
435
         CmdSet_For_dr()
436
     End Sub
436
     End Sub
437
     '--------------------------生產進度表----------------------------------------------
437
     '--------------------------生產進度表----------------------------------------------
439
         SQL1 = "SELECT PO_S_Date AS 接單日, 出貨地, 訂單流水號 AS 天盾PO, 客戶訂單號 AS 客戶PO, 形體號, TVW, 楦頭號, 楦型, 材質, 顏色, 訂單數量 AS 訂單數, 
439
         SQL1 = "SELECT PO_S_Date AS 接單日, 出貨地, 訂單流水號 AS 天盾PO, 客戶訂單號 AS 客戶PO, 形體號, TVW, 楦頭號, 楦型, 材質, 顏色, 訂單數量 AS 訂單數, 
440
                            工廠回復交期 AS 工廠交期, 七號模具, TRIAL1, TRIAL2, 長期試穿, CFMSAMPLE AS CFM, TRIAL3, TRIAL4, CFMSPEC AS TEST, 面料, 副料, 中底, 
440
                            工廠回復交期 AS 工廠交期, 七號模具, TRIAL1, TRIAL2, 長期試穿, CFMSAMPLE AS CFM, TRIAL3, TRIAL4, CFMSPEC AS TEST, 面料, 副料, 中底, 
441
                            鞋墊, 大底, 跟, 包裝確認時間 AS 包裝, 裁斷時間 AS 裁斷, 針車時間 AS 針車, 成型時間 AS 成型, 驗貨時間 AS 驗貨, 工廠進度表備註1 AS 備註1, 
441
                            鞋墊, 大底, 跟, 包裝確認時間 AS 包裝, 裁斷時間 AS 裁斷, 針車時間 AS 針車, 成型時間 AS 成型, 驗貨時間 AS 驗貨, 工廠進度表備註1 AS 備註1, 
442
-                           力威訂單號 AS 力威單號, 驗貨報告圖片 
442
+                           力威訂單號 AS 力威單號, 驗貨報告圖片, 驗報圖庫
443
                     FROM  " & 訂單資料表(1) & " 
443
                     FROM  " & 訂單資料表(1) & " 
444
                     WHERE ((CXL = 0) OR CXL IS NULL) AND (訂單數量 - 出貨數量 <> 0) ORDER BY   訂單流水號, 客戶交期, 形體號, 顏色, 楦型"
444
                     WHERE ((CXL = 0) OR CXL IS NULL) AND (訂單數量 - 出貨數量 <> 0) ORDER BY   訂單流水號, 客戶交期, 形體號, 顏色, 楦型"
445
     End Sub
445
     End Sub
447
         SQL1 = "SELECT PO_S_Date AS 接單日, 出貨地, 訂單流水號 AS 天盾PO, 客戶訂單號 AS 客戶PO, 形體號, TVW, 楦頭號, 楦型, 材質, 顏色, 訂單數量 AS 訂單數, 
447
         SQL1 = "SELECT PO_S_Date AS 接單日, 出貨地, 訂單流水號 AS 天盾PO, 客戶訂單號 AS 客戶PO, 形體號, TVW, 楦頭號, 楦型, 材質, 顏色, 訂單數量 AS 訂單數, 
448
                            工廠回復交期 AS 工廠交期, 七號模具, TRIAL1, TRIAL2, 長期試穿, CFMSAMPLE AS CFM, TRIAL3, TRIAL4, CFMSPEC AS TEST, 面料, 副料, 中底, 
448
                            工廠回復交期 AS 工廠交期, 七號模具, TRIAL1, TRIAL2, 長期試穿, CFMSAMPLE AS CFM, TRIAL3, TRIAL4, CFMSPEC AS TEST, 面料, 副料, 中底, 
449
                            鞋墊, 大底, 跟, 包裝確認時間 AS 包裝, 裁斷時間 AS 裁斷, 針車時間 AS 針車, 成型時間 AS 成型, 驗貨時間 AS 驗貨, 工廠進度表備註1 AS 備註1, 
449
                            鞋墊, 大底, 跟, 包裝確認時間 AS 包裝, 裁斷時間 AS 裁斷, 針車時間 AS 針車, 成型時間 AS 成型, 驗貨時間 AS 驗貨, 工廠進度表備註1 AS 備註1, 
450
-                           力威訂單號 AS 力威單號, 驗貨報告圖片 
450
+                           力威訂單號 AS 力威單號, 驗貨報告圖片, 驗報圖庫
451
                     FROM " & 訂單資料表(1) & " 
451
                     FROM " & 訂單資料表(1) & " 
452
                     WHERE ((CXL = 0) OR CXL IS NULL) AND (訂單數量 - 出貨數量 <> 0) AND (訂單流水號 LIKE '%" & PA & "%') OR 
452
                     WHERE ((CXL = 0) OR CXL IS NULL) AND (訂單數量 - 出貨數量 <> 0) AND (訂單流水號 LIKE '%" & PA & "%') OR 
453
                           ((CXL = 0) OR CXL IS NULL) AND (訂單數量 - 出貨數量 <> 0) AND (年份季度 LIKE '%" & PA & "%') OR 
453
                           ((CXL = 0) OR CXL IS NULL) AND (訂單數量 - 出貨數量 <> 0) AND (年份季度 LIKE '%" & PA & "%') OR 
487
         CmdSet_For_dr()
487
         CmdSet_For_dr()
488
     End Sub
488
     End Sub
489
     Friend Sub SQL_讀取生產進度表圖片2()
489
     Friend Sub SQL_讀取生產進度表圖片2()
490
-        ConnOpen()
491
-        SQL1 = "SELECT TOP(1) 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & PA2 & "'"
492
-        CmdSet_For_dr()
490
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫()
491
+        ConnOpen_工程圖庫SQL() : SQL1 = "SELECT TOP(1) 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & PA2 & "'" : CmdSet_For_dr()
493
     End Sub
492
     End Sub
494
     '------------------周進度表-------------------------------------------
493
     '------------------周進度表-------------------------------------------
495
     Friend Sub SQL_讀取周進度表()
494
     Friend Sub SQL_讀取周進度表()
496
         SQL1 = "SELECT 訂單種類 AS Order_type, PO_S_Date , 生產工廠 AS Plant, 客戶訂單號 AS PO#, 形體號 AS Style_Name, 顏色 AS Color, 楦型 AS Width, 
495
         SQL1 = "SELECT 訂單種類 AS Order_type, PO_S_Date , 生產工廠 AS Plant, 客戶訂單號 AS PO#, 形體號 AS Style_Name, 顏色 AS Color, 楦型 AS Width, 
497
                            訂單數量 AS QTY, Requested_XF, Confirm_XF, Revised_XF, 裁斷時間 AS Cutting, 針車時間 AS Stitching, 成型時間 AS Lasting, Special_Packaging, 
496
                            訂單數量 AS QTY, Requested_XF, Confirm_XF, Revised_XF, 裁斷時間 AS Cutting, 針車時間 AS Stitching, 成型時間 AS Lasting, Special_Packaging, 
498
-                           Remarks, 訂單流水號, 驗貨報告圖片, 力威訂單號 ,TVW
497
+                           Remarks, 訂單流水號, 驗貨報告圖片, 力威訂單號 ,TVW, 驗報圖庫
499
                     FROM   " & 訂單資料表(1) & " 
498
                     FROM   " & 訂單資料表(1) & " 
500
                     WHERE (CXL IS NULL OR (CXL = 0)) AND (訂單數量 - 出貨數量 <> 0) ORDER BY   訂單流水號 DESC, STYLE_NAME, COLOR, WIDTH "
499
                     WHERE (CXL IS NULL OR (CXL = 0)) AND (訂單數量 - 出貨數量 <> 0) ORDER BY   訂單流水號 DESC, STYLE_NAME, COLOR, WIDTH "
501
     End Sub
500
     End Sub
502
     Friend Sub SQL_讀取周進度表1()
501
     Friend Sub SQL_讀取周進度表1()
503
         SQL1 = "SELECT 訂單種類 AS Order_type, PO_S_Date, 生產工廠 AS Plant, 客戶訂單號 AS PO#, 形體號 AS Style_Name, 顏色 AS Color, 楦型 AS Width, 訂單數量 AS QTY, 
502
         SQL1 = "SELECT 訂單種類 AS Order_type, PO_S_Date, 生產工廠 AS Plant, 客戶訂單號 AS PO#, 形體號 AS Style_Name, 顏色 AS Color, 楦型 AS Width, 訂單數量 AS QTY, 
504
                            Requested_XF, Confirm_XF,  Revised_XF, 裁斷時間 AS Cutting, 針車時間 AS Stitching, 成型時間 AS Lasting, Special_Packaging, Remarks, 訂單流水號, 
503
                            Requested_XF, Confirm_XF,  Revised_XF, 裁斷時間 AS Cutting, 針車時間 AS Stitching, 成型時間 AS Lasting, Special_Packaging, Remarks, 訂單流水號, 
505
-                           驗貨報告圖片, 力威訂單號,TVW 
504
+                           驗貨報告圖片, 力威訂單號,TVW, 驗報圖庫
506
                     FROM   " & 訂單資料表(1) & " 
505
                     FROM   " & 訂單資料表(1) & " 
507
                     WHERE (CXL IS NULL OR (CXL = 0)) AND (訂單數量 - 出貨數量 <> 0) AND (訂單流水號 LIKE '%" & PA & "%') OR 
506
                     WHERE (CXL IS NULL OR (CXL = 0)) AND (訂單數量 - 出貨數量 <> 0) AND (訂單流水號 LIKE '%" & PA & "%') OR 
508
                           (CXL Is NULL Or (CXL = 0)) And (訂單數量 - 出貨數量 <> 0) And (年份季度 Like '%" & PA & "%') OR 
507
                           (CXL Is NULL Or (CXL = 0)) And (訂單數量 - 出貨數量 <> 0) And (年份季度 Like '%" & PA & "%') OR 
552
         CmdSet_For_dr()
551
         CmdSet_For_dr()
553
     End Sub
552
     End Sub
554
     Friend Sub SQL_讀取訂單種類圖片3()
553
     Friend Sub SQL_讀取訂單種類圖片3()
555
-        ConnOpen()
556
-        SQL1 = "SELECT TOP(1) 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & PA3 & "'"
557
-        CmdSet_For_dr()
554
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫()
555
+        ConnOpen_工程圖庫SQL() : SQL1 = "SELECT TOP(1) 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & PA2 & "'" : CmdSet_For_dr()
558
     End Sub
556
     End Sub
559
     Friend Sub SQL_修改日期存檔()
557
     Friend Sub SQL_修改日期存檔()
560
         SQL1 = "UPDATE " & 訂單資料表(1) & " SET PO_S_Date = '" & PA & "', 
558
         SQL1 = "UPDATE " & 訂單資料表(1) & " SET PO_S_Date = '" & PA & "', 
602
     Friend Sub SQL_讀取周進度表T1_T4()
600
     Friend Sub SQL_讀取周進度表T1_T4()
603
         SQL1 = "SELECT 年份季度 AS SEASON, 訂單種類 AS Order_type, PO_S_Date, 生產工廠 AS Plant, 客戶訂單號 AS PO#, 形體號 AS Style_Name, 顏色 AS Color, 楦型 AS Width, 
601
         SQL1 = "SELECT 年份季度 AS SEASON, 訂單種類 AS Order_type, PO_S_Date, 生產工廠 AS Plant, 客戶訂單號 AS PO#, 形體號 AS Style_Name, 顏色 AS Color, 楦型 AS Width, 
604
                            訂單數量 AS QTY, Requested_XF, Confirm_XF, Revised_XF, TRIAL1 AS T1, CFMSAMPLE AS CFM, TRIAL4 AS T4, 裁斷時間 AS Cutting, 針車時間 AS Stitching, 
602
                            訂單數量 AS QTY, Requested_XF, Confirm_XF, Revised_XF, TRIAL1 AS T1, CFMSAMPLE AS CFM, TRIAL4 AS T4, 裁斷時間 AS Cutting, 針車時間 AS Stitching, 
605
-                           成型時間 AS Lasting, Special_Packaging, Remarks, 訂單流水號, 驗貨報告圖片, 力威訂單號,TVW 
603
+                           成型時間 AS Lasting, Special_Packaging, Remarks, 訂單流水號, 驗貨報告圖片, 力威訂單號,TVW, 驗報圖庫
606
                     FROM   " & 訂單資料表(1) & " 
604
                     FROM   " & 訂單資料表(1) & " 
607
                     WHERE (CXL IS NULL OR CXL = 0) AND (訂單數量 - 出貨數量 <> 0) ORDER BY 訂單流水號 DESC, STYLE_NAME, COLOR, WIDTH"
605
                     WHERE (CXL IS NULL OR CXL = 0) AND (訂單數量 - 出貨數量 <> 0) ORDER BY 訂單流水號 DESC, STYLE_NAME, COLOR, WIDTH"
608
     End Sub
606
     End Sub
609
     Friend Sub SQL_讀取周進度表T1_T4_1()
607
     Friend Sub SQL_讀取周進度表T1_T4_1()
610
         SQL1 = "SELECT 年份季度 AS SEASON, 訂單種類 AS Order_type, PO_S_Date, 生產工廠 AS Plant, 客戶訂單號 AS PO#, 形體號 AS Style_Name, 顏色 AS Color, 楦型 AS Width, 訂單數量 AS QTY, 
608
         SQL1 = "SELECT 年份季度 AS SEASON, 訂單種類 AS Order_type, PO_S_Date, 生產工廠 AS Plant, 客戶訂單號 AS PO#, 形體號 AS Style_Name, 顏色 AS Color, 楦型 AS Width, 訂單數量 AS QTY, 
611
                            Requested_XF, Confirm_XF, Revised_XF, TRIAL1 AS T1, CFMSAMPLE AS CFM, TRIAL4 AS T4, 裁斷時間 AS Cutting, 針車時間 AS Stitching, 成型時間 AS Lasting, 
609
                            Requested_XF, Confirm_XF, Revised_XF, TRIAL1 AS T1, CFMSAMPLE AS CFM, TRIAL4 AS T4, 裁斷時間 AS Cutting, 針車時間 AS Stitching, 成型時間 AS Lasting, 
612
-                           Special_Packaging, Remarks, 訂單流水號, 驗貨報告圖片, 力威訂單號,TVW 
610
+                           Special_Packaging, Remarks, 訂單流水號, 驗貨報告圖片, 力威訂單號,TVW, 驗報圖庫 
613
                     FROM   " & 訂單資料表(1) & " WHERE (CXL IS NULL OR (CXL = 0)) AND (訂單數量 - 出貨數量 <> 0) AND (訂單流水號 LIKE '%" & PA & "%') OR 
611
                     FROM   " & 訂單資料表(1) & " WHERE (CXL IS NULL OR (CXL = 0)) AND (訂單數量 - 出貨數量 <> 0) AND (訂單流水號 LIKE '%" & PA & "%') OR 
614
                           (CXL IS NULL OR (CXL = 0)) AND (訂單數量 - 出貨數量 <> 0) AND (年份季度 LIKE '%" & PA & "%') OR 
612
                           (CXL IS NULL OR (CXL = 0)) AND (訂單數量 - 出貨數量 <> 0) AND (年份季度 LIKE '%" & PA & "%') OR 
615
                           (CXL Is NULL Or (CXL = 0)) And (訂單數量 - 出貨數量 <> 0) And (客戶訂單號 Like '%" & PA & "%') OR 
613
                           (CXL Is NULL Or (CXL = 0)) And (訂單數量 - 出貨數量 <> 0) And (客戶訂單號 Like '%" & PA & "%') OR 
634
         CmdSet_For_dr()
632
         CmdSet_For_dr()
635
     End Sub
633
     End Sub
636
     Friend Sub SQL_讀取周進度表圖片2()
634
     Friend Sub SQL_讀取周進度表圖片2()
637
-        ConnOpen()
638
-        SQL1 = "SELECT TOP(1) 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & PA3 & "'"
639
-        CmdSet_For_dr()
635
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫()
636
+        ConnOpen_工程圖庫SQL() : SQL1 = "SELECT TOP(1) 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & PA2 & "'" : CmdSet_For_dr()
640
     End Sub
637
     End Sub
641
     '----------------------------訂單改量差異查詢---------------------------------------------------------
638
     '----------------------------訂單改量差異查詢---------------------------------------------------------
642
     Friend Sub SQL_讀取訂單改量差異查詢()
639
     Friend Sub SQL_讀取訂單改量差異查詢()
849
         ConnOpen()
846
         ConnOpen()
850
         SQL1 = "UPDATE 訂單控制表 SET 客戶交期 = N'" & PA1 & "', 工廠回復交期 = N'" & PA1 & "', Requested_XF = N'" & PA1 & "', 
847
         SQL1 = "UPDATE 訂單控制表 SET 客戶交期 = N'" & PA1 & "', 工廠回復交期 = N'" & PA1 & "', Requested_XF = N'" & PA1 & "', 
851
                                                 Confirm_XF = N'" & PA1 & "', Revised_XF = N'" & PA1 & "' 
848
                                                 Confirm_XF = N'" & PA1 & "', Revised_XF = N'" & PA1 & "' 
852
-                            WHERE (力威訂單號 LIKE N'" & PA & "')"
849
+                WHERE (力威訂單號 LIKE N'" & PA & "')"
853
         CmdSet_For_dr()
850
         CmdSet_For_dr()
854
     End Sub
851
     End Sub
855
     Friend Sub SQL_訂單交期批量修改工具1()
852
     Friend Sub SQL_訂單交期批量修改工具1()
859
         ConnOpen()
856
         ConnOpen()
860
         SQL1 = "UPDATE 訂單控制表_非VIONIC SET 客戶交期 = N'" & PA1 & "', 工廠回復交期 = N'" & PA1 & "', Requested_XF = N'" & PA1 & "', 
857
         SQL1 = "UPDATE 訂單控制表_非VIONIC SET 客戶交期 = N'" & PA1 & "', 工廠回復交期 = N'" & PA1 & "', Requested_XF = N'" & PA1 & "', 
861
                                                              Confirm_XF = N'" & PA1 & "', Revised_XF = N'" & PA1 & "' 
858
                                                              Confirm_XF = N'" & PA1 & "', Revised_XF = N'" & PA1 & "' 
862
-                                WHERE (力威訂單號 LIKE N'" & PA & "')"
859
+                WHERE (力威訂單號 LIKE N'" & PA & "')"
863
         CmdSet_For_dr()
860
         CmdSet_For_dr()
864
     End Sub
861
     End Sub
865
     Friend Sub SQL_讀取訂單交期批量修改工具()
862
     Friend Sub SQL_讀取訂單交期批量修改工具()
869
         ConnOpen()
866
         ConnOpen()
870
         SQL1 = "UPDATE 訂單明細表抬頭 SET OrgShipDate = N'" & PA1 & "', ShipDate = N'" & PA1 & "', 交期 = N'" & PA1 & "', 
867
         SQL1 = "UPDATE 訂單明細表抬頭 SET OrgShipDate = N'" & PA1 & "', ShipDate = N'" & PA1 & "', 交期 = N'" & PA1 & "', 
871
                                                     ETADate = N'" & PA1 & "' 
868
                                                     ETADate = N'" & PA1 & "' 
872
-                            WHERE (CustomerRequisition LIKE N'" & PA & "')"
869
+                WHERE (CustomerRequisition LIKE N'" & PA & "')"
873
         CmdSet_For_dr()
870
         CmdSet_For_dr()
874
     End Sub
871
     End Sub
875
     Friend Sub SQL_讀取訂單交期批量修改工具1()
872
     Friend Sub SQL_讀取訂單交期批量修改工具1()
879
         ConnOpen()
876
         ConnOpen()
880
         SQL1 = "UPDATE 訂單明細表抬頭_非VIONIC SET OrgShipDate = N'" & PA1 & "', ShipDate = N'" & PA1 & "', 交期 = N'" & PA1 & "', 
877
         SQL1 = "UPDATE 訂單明細表抬頭_非VIONIC SET OrgShipDate = N'" & PA1 & "', ShipDate = N'" & PA1 & "', 交期 = N'" & PA1 & "', 
881
                                                                  ETADate = N'" & PA1 & "'
878
                                                                  ETADate = N'" & PA1 & "'
882
-                                WHERE (CustomerRequisition LIKE N'" & PA & "')"
879
+                WHERE (CustomerRequisition LIKE N'" & PA & "')"
880
+        CmdSet_For_dr()
881
+    End Sub
882
+    '-------------------訂單控制表-----------------------------------------------
883
+    Friend Sub SQL_包裝資訊圖片連結查詢()
884
+        ConnOpen()
885
+        SQL1 = "SELECT  包裝圖號, 包裝圖庫  FROM  STYLELIST
886
+                WHERE  (ProductName LIKE N'" & 訂單控制表.風格_cb.Text & "') AND (Style LIKE N'" & 訂單控制表.TVW_tb.Text & "') AND 
887
+                       (包裝圖號 IS NOT NULL) AND (包裝圖號 NOT LIKE '')"
883
         CmdSet_For_dr()
888
         CmdSet_For_dr()
884
     End Sub
889
     End Sub
885
-
890
+    Friend Sub SQL_訂單驗貨報告圖片讀取()
891
+        圖片庫 = PA1 : SQL_連線字串_圖片資料庫()
892
+        ConnOpen_工程圖庫SQL() : SQL1 = "SELECT TOP(1) 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & PA2 & "'" : CmdSet_For_dr()
893
+    End Sub
886
 End Module
894
 End Module

+ 18
- 15
TENDEN-MES-SYS/Module/全域變數.vb Wyświetl plik

1
 Module 全域變數
1
 Module 全域變數
2
     '----系統登入-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2
     '----系統登入-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3
-    Public g_conn_type As String = "" : Public gUserName As String : Public 版本號 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
3
+    Public g_conn_type, gUserName, 版本號, Target, Target1, Target2, FTP帳號, FTP密碼, 登入人IP, AA(99), 圖片庫, SQL密碼 As String
4
+    Public CC(99), 登入判斷 As Boolean
6
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7
-    Public 版本 As String = "2022050401"
6
+    Public 版本 As String = "2022051701"
8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9
     Public 匯率 As Double
8
     Public 匯率 As Double
10
-
11
-    Public 開發部門 As Boolean = False : Public 確認部門 As Boolean = False : Public frmOpenFlag As Boolean = False : Public 匯入列表開啟 As Boolean : Public 力威匯入列表 As Boolean
12
-    Public 財務列印(3) As Boolean : Public 修改清單(16) As Boolean : Public 中文樣品單開啟修改 As Boolean : Public 量產樣品匯入列表開啟 As Boolean
13
-    Public PPBB(3000), 排序(1), OD(42), 訂單資料表(10), PB(60) As String
9
+    '----系統用全域變數----------------------------------------------------------------------------------------------------------------------------------------------------------------------
10
+    Public 圖片傳遞 As Image
11
+    Public 進度條後墜 As String
12
+    '--------------整數變數
13
+    Public 比例1, 比例2, 比例3, 分母 As Integer
14
+    '--------------雙精變數
15
+    Public 分段1, 分段2, 分段3, 分段4 As Double : Public DN(3) As Double
16
+    '--------------布林函數
17
+    Public 財務列印(3), 修改清單(16), 中文樣品單開啟修改, 量產樣品匯入列表開啟, BL(1), 暫存模式, 開發部門, 確認部門, 匯入列表開啟, 力威匯入列表, frmOpenFlag As Boolean
18
+    '--------------字串變數
14
     Public PA, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PA16, PA17, PA18, PA19, PA20, PA21, PA22, PA23, PA24, PA25, PA26,
19
     Public PA, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PA16, PA17, PA18, PA19, PA20, PA21, PA22, PA23, PA24, PA25, PA26,
15
-           PA27, PA28, PA29, WW, 條件, WWD1, WWD2, WWD3, 流水號2, EDFR, 日期(1), QQWEE, 樣品單流水號變數1, 樣品單流水號變數2, 樣品單流水號變數3, 部門, QWWE, ZXC As String
16
-    Public kkk1, kkk2, kkk3, kkk4, kkk5, kkk6, YR, YS, YD, ASDF As String
17
-    Public PA30 As String = "" : Public PP As String = "" : Public 品牌V_R判斷 As String = ""
18
-    Public QA, PP1, PP2, PP3, PP4, PP5, PP6, PP7, PP8, ASD, 列印用SQL, 驗貨報告, 訂單紀錄流水號, PPAA As String
19
-    Public BL(1), 暫存模式 As Boolean : Public DN(3) As Double
20
-    Public 平均數, NN1, NUM2, NUM3, ERT As Integer : Public 最終數 As Integer = 0 : Public 資料數 As Integer = 0
20
+           PA27, PA28, PA29, PA30, WW, 條件, WWD1, WWD2, WWD3, 流水號2, EDFR, 日期(1), QQWEE, 樣品單流水號變數1, 樣品單流水號變數2, 樣品單流水號變數3, 部門, QWWE, ZXC,
21
+           kkk1, kkk2, kkk3, kkk4, kkk5, kkk6, YR, YS, YD, ASDF, PP, 品牌V_R判斷, QA, PP1, PP2, PP3, PP4, PP5, PP6, PP7, PP8, ASD, 列印用SQL, 驗貨報告, 訂單紀錄流水號,
22
+           PPAA, PPBB(3000), 排序(1), OD(42), 訂單資料表(10), PB(60) As String
23
+    '--------------整數變數
24
+    Public 平均數, NN1, NUM2, NUM3, ERT, 最終數, 資料數, 圖庫限制 As Integer
21
     Public YM As Integer = -1
25
     Public YM As Integer = -1
22
-
23
     '-------------------------------------------進度條------------------------------------------------------------------
26
     '-------------------------------------------進度條------------------------------------------------------------------
24
     Public Class MyModule1
27
     Public Class MyModule1
25
         Friend Shared Sub 進度條()
28
         Friend Shared Sub 進度條()

+ 44
- 7
TENDEN-MES-SYS/TENDEN_MES_SYS.Designer.vb Wyświetl plik

139
         Me.系統管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
139
         Me.系統管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
140
         Me.系統使用者管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
140
         Me.系統使用者管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
141
         Me.ToolStripSeparator22 = New System.Windows.Forms.ToolStripSeparator()
141
         Me.ToolStripSeparator22 = New System.Windows.Forms.ToolStripSeparator()
142
+        Me.系統編碼原則_tsm = New System.Windows.Forms.ToolStripMenuItem()
142
         Me.FTP資料夾管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
143
         Me.FTP資料夾管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
143
         Me.系統執行檔版本管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
144
         Me.系統執行檔版本管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
144
         Me.ToolStripSeparator23 = New System.Windows.Forms.ToolStripSeparator()
145
         Me.ToolStripSeparator23 = New System.Windows.Forms.ToolStripSeparator()
149
         Me.ToolStripStatusLabel1 = New System.Windows.Forms.ToolStripStatusLabel()
150
         Me.ToolStripStatusLabel1 = New System.Windows.Forms.ToolStripStatusLabel()
150
         Me.ToolStripProgressBar1 = New System.Windows.Forms.ToolStripProgressBar()
151
         Me.ToolStripProgressBar1 = New System.Windows.Forms.ToolStripProgressBar()
151
         Me.合計_TSSL = New System.Windows.Forms.ToolStripStatusLabel()
152
         Me.合計_TSSL = New System.Windows.Forms.ToolStripStatusLabel()
153
+        Me.包裝資料圖片導入資料庫_tsm = New System.Windows.Forms.ToolStripMenuItem()
154
+        Me.包裝資料圖片資料庫_tsm = New System.Windows.Forms.ToolStripMenuItem()
155
+        Me.ToolStripSeparator26 = New System.Windows.Forms.ToolStripSeparator()
152
         Me.MenuStrip.SuspendLayout()
156
         Me.MenuStrip.SuspendLayout()
153
         Me.StatusStrip.SuspendLayout()
157
         Me.StatusStrip.SuspendLayout()
154
         Me.SuspendLayout()
158
         Me.SuspendLayout()
274
         '
278
         '
275
         '圖片資料庫管理_tsm
279
         '圖片資料庫管理_tsm
276
         '
280
         '
277
-        Me.圖片資料庫管理_tsm.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.鞋型圖片導入資料庫_tsm, Me.圖片資料庫_tsm, Me.ToolStripSeparator17, Me.楦頭圖片導入資料庫_tsm, Me.楦頭圖片資料庫_tsm})
281
+        Me.圖片資料庫管理_tsm.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.鞋型圖片導入資料庫_tsm, Me.圖片資料庫_tsm, Me.ToolStripSeparator17, Me.楦頭圖片導入資料庫_tsm, Me.楦頭圖片資料庫_tsm, Me.ToolStripSeparator26, Me.包裝資料圖片導入資料庫_tsm, Me.包裝資料圖片資料庫_tsm})
278
         Me.圖片資料庫管理_tsm.ForeColor = System.Drawing.Color.Purple
282
         Me.圖片資料庫管理_tsm.ForeColor = System.Drawing.Color.Purple
279
         Me.圖片資料庫管理_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.shoe
283
         Me.圖片資料庫管理_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.shoe
280
         Me.圖片資料庫管理_tsm.Name = "圖片資料庫管理_tsm"
284
         Me.圖片資料庫管理_tsm.Name = "圖片資料庫管理_tsm"
286
         Me.鞋型圖片導入資料庫_tsm.ForeColor = System.Drawing.Color.Purple
290
         Me.鞋型圖片導入資料庫_tsm.ForeColor = System.Drawing.Color.Purple
287
         Me.鞋型圖片導入資料庫_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.pen
291
         Me.鞋型圖片導入資料庫_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.pen
288
         Me.鞋型圖片導入資料庫_tsm.Name = "鞋型圖片導入資料庫_tsm"
292
         Me.鞋型圖片導入資料庫_tsm.Name = "鞋型圖片導入資料庫_tsm"
289
-        Me.鞋型圖片導入資料庫_tsm.Size = New System.Drawing.Size(182, 22)
293
+        Me.鞋型圖片導入資料庫_tsm.Size = New System.Drawing.Size(206, 22)
290
         Me.鞋型圖片導入資料庫_tsm.Text = "鞋型圖片導入資料庫"
294
         Me.鞋型圖片導入資料庫_tsm.Text = "鞋型圖片導入資料庫"
291
         '
295
         '
292
         '圖片資料庫_tsm
296
         '圖片資料庫_tsm
294
         Me.圖片資料庫_tsm.ForeColor = System.Drawing.Color.Purple
298
         Me.圖片資料庫_tsm.ForeColor = System.Drawing.Color.Purple
295
         Me.圖片資料庫_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.document_accept
299
         Me.圖片資料庫_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.document_accept
296
         Me.圖片資料庫_tsm.Name = "圖片資料庫_tsm"
300
         Me.圖片資料庫_tsm.Name = "圖片資料庫_tsm"
297
-        Me.圖片資料庫_tsm.Size = New System.Drawing.Size(182, 22)
301
+        Me.圖片資料庫_tsm.Size = New System.Drawing.Size(206, 22)
298
         Me.圖片資料庫_tsm.Text = "鞋型圖片資料庫"
302
         Me.圖片資料庫_tsm.Text = "鞋型圖片資料庫"
299
         '
303
         '
300
         'ToolStripSeparator17
304
         'ToolStripSeparator17
301
         '
305
         '
302
         Me.ToolStripSeparator17.Name = "ToolStripSeparator17"
306
         Me.ToolStripSeparator17.Name = "ToolStripSeparator17"
303
-        Me.ToolStripSeparator17.Size = New System.Drawing.Size(179, 6)
307
+        Me.ToolStripSeparator17.Size = New System.Drawing.Size(203, 6)
304
         '
308
         '
305
         '楦頭圖片導入資料庫_tsm
309
         '楦頭圖片導入資料庫_tsm
306
         '
310
         '
307
         Me.楦頭圖片導入資料庫_tsm.ForeColor = System.Drawing.Color.Purple
311
         Me.楦頭圖片導入資料庫_tsm.ForeColor = System.Drawing.Color.Purple
308
         Me.楦頭圖片導入資料庫_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.pen
312
         Me.楦頭圖片導入資料庫_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.pen
309
         Me.楦頭圖片導入資料庫_tsm.Name = "楦頭圖片導入資料庫_tsm"
313
         Me.楦頭圖片導入資料庫_tsm.Name = "楦頭圖片導入資料庫_tsm"
310
-        Me.楦頭圖片導入資料庫_tsm.Size = New System.Drawing.Size(182, 22)
314
+        Me.楦頭圖片導入資料庫_tsm.Size = New System.Drawing.Size(206, 22)
311
         Me.楦頭圖片導入資料庫_tsm.Text = "楦頭圖片導入資料庫"
315
         Me.楦頭圖片導入資料庫_tsm.Text = "楦頭圖片導入資料庫"
312
         '
316
         '
313
         '楦頭圖片資料庫_tsm
317
         '楦頭圖片資料庫_tsm
315
         Me.楦頭圖片資料庫_tsm.ForeColor = System.Drawing.Color.Purple
319
         Me.楦頭圖片資料庫_tsm.ForeColor = System.Drawing.Color.Purple
316
         Me.楦頭圖片資料庫_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.document_accept
320
         Me.楦頭圖片資料庫_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.document_accept
317
         Me.楦頭圖片資料庫_tsm.Name = "楦頭圖片資料庫_tsm"
321
         Me.楦頭圖片資料庫_tsm.Name = "楦頭圖片資料庫_tsm"
318
-        Me.楦頭圖片資料庫_tsm.Size = New System.Drawing.Size(182, 22)
322
+        Me.楦頭圖片資料庫_tsm.Size = New System.Drawing.Size(206, 22)
319
         Me.楦頭圖片資料庫_tsm.Text = "楦頭圖片資料庫"
323
         Me.楦頭圖片資料庫_tsm.Text = "楦頭圖片資料庫"
320
         '
324
         '
321
         '製鞋技術資料管理_tsm
325
         '製鞋技術資料管理_tsm
957
         '
961
         '
958
         '系統管理_tsm
962
         '系統管理_tsm
959
         '
963
         '
960
-        Me.系統管理_tsm.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.系統使用者管理_tsm, Me.ToolStripSeparator22, Me.FTP資料夾管理_tsm, Me.系統執行檔版本管理_tsm, Me.ToolStripSeparator23})
964
+        Me.系統管理_tsm.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.系統使用者管理_tsm, Me.ToolStripSeparator22, Me.系統編碼原則_tsm, Me.FTP資料夾管理_tsm, Me.系統執行檔版本管理_tsm, Me.ToolStripSeparator23})
961
         Me.系統管理_tsm.ForeColor = System.Drawing.Color.Red
965
         Me.系統管理_tsm.ForeColor = System.Drawing.Color.Red
962
         Me.系統管理_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.Sys_Command
966
         Me.系統管理_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.Sys_Command
963
         Me.系統管理_tsm.Name = "系統管理_tsm"
967
         Me.系統管理_tsm.Name = "系統管理_tsm"
977
         Me.ToolStripSeparator22.Name = "ToolStripSeparator22"
981
         Me.ToolStripSeparator22.Name = "ToolStripSeparator22"
978
         Me.ToolStripSeparator22.Size = New System.Drawing.Size(179, 6)
982
         Me.ToolStripSeparator22.Size = New System.Drawing.Size(179, 6)
979
         '
983
         '
984
+        '系統編碼原則_tsm
985
+        '
986
+        Me.系統編碼原則_tsm.ForeColor = System.Drawing.Color.Red
987
+        Me.系統編碼原則_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.Sys_Command
988
+        Me.系統編碼原則_tsm.Name = "系統編碼原則_tsm"
989
+        Me.系統編碼原則_tsm.Size = New System.Drawing.Size(182, 22)
990
+        Me.系統編碼原則_tsm.Text = "系統編碼原則"
991
+        '
980
         'FTP資料夾管理_tsm
992
         'FTP資料夾管理_tsm
981
         '
993
         '
982
         Me.FTP資料夾管理_tsm.ForeColor = System.Drawing.Color.Red
994
         Me.FTP資料夾管理_tsm.ForeColor = System.Drawing.Color.Red
1046
         Me.合計_TSSL.Size = New System.Drawing.Size(47, 17)
1058
         Me.合計_TSSL.Size = New System.Drawing.Size(47, 17)
1047
         Me.合計_TSSL.Text = "合計 : 0"
1059
         Me.合計_TSSL.Text = "合計 : 0"
1048
         '
1060
         '
1061
+        '包裝資料圖片導入資料庫_tsm
1062
+        '
1063
+        Me.包裝資料圖片導入資料庫_tsm.ForeColor = System.Drawing.Color.Purple
1064
+        Me.包裝資料圖片導入資料庫_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.pen
1065
+        Me.包裝資料圖片導入資料庫_tsm.Name = "包裝資料圖片導入資料庫_tsm"
1066
+        Me.包裝資料圖片導入資料庫_tsm.Size = New System.Drawing.Size(206, 22)
1067
+        Me.包裝資料圖片導入資料庫_tsm.Text = "包裝資料圖片導入資料庫"
1068
+        '
1069
+        '包裝資料圖片資料庫_tsm
1070
+        '
1071
+        Me.包裝資料圖片資料庫_tsm.ForeColor = System.Drawing.Color.Purple
1072
+        Me.包裝資料圖片資料庫_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.Shoebox
1073
+        Me.包裝資料圖片資料庫_tsm.Name = "包裝資料圖片資料庫_tsm"
1074
+        Me.包裝資料圖片資料庫_tsm.Size = New System.Drawing.Size(206, 22)
1075
+        Me.包裝資料圖片資料庫_tsm.Text = "包裝資料圖片資料庫"
1076
+        '
1077
+        'ToolStripSeparator26
1078
+        '
1079
+        Me.ToolStripSeparator26.Name = "ToolStripSeparator26"
1080
+        Me.ToolStripSeparator26.Size = New System.Drawing.Size(203, 6)
1081
+        '
1049
         'TENDEN_MES_SYS
1082
         'TENDEN_MES_SYS
1050
         '
1083
         '
1051
         Me.AllowDrop = True
1084
         Me.AllowDrop = True
1195
     Friend WithEvents ToolStripStatusLabel1 As ToolStripStatusLabel
1228
     Friend WithEvents ToolStripStatusLabel1 As ToolStripStatusLabel
1196
     Friend WithEvents ToolStripProgressBar1 As ToolStripProgressBar
1229
     Friend WithEvents ToolStripProgressBar1 As ToolStripProgressBar
1197
     Friend WithEvents 合計_TSSL As ToolStripStatusLabel
1230
     Friend WithEvents 合計_TSSL As ToolStripStatusLabel
1231
+    Friend WithEvents 系統編碼原則_tsm As ToolStripMenuItem
1232
+    Friend WithEvents ToolStripSeparator26 As ToolStripSeparator
1233
+    Friend WithEvents 包裝資料圖片導入資料庫_tsm As ToolStripMenuItem
1234
+    Friend WithEvents 包裝資料圖片資料庫_tsm As ToolStripMenuItem
1198
 End Class
1235
 End Class

+ 13
- 0
TENDEN-MES-SYS/TENDEN_MES_SYS.vb Wyświetl plik

25
     Private ReadOnly m_ChildFormNumber As Integer
25
     Private ReadOnly m_ChildFormNumber As Integer
26
     Private Sub MDIParent1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
26
     Private Sub MDIParent1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
27
         Me.Text = Me.Text & "  --  " & g_conn_type & "  --  " & gUserName & "  --  系統版本  :" & 版本
27
         Me.Text = Me.Text & "  --  " & g_conn_type & "  --  " & gUserName & "  --  系統版本  :" & 版本
28
+        SQL_系統預設值() : If dr.Read() Then : 圖庫限制 = dr("圖片伺服器上限") : End If
28
 
29
 
29
         Dim screenWidth = Screen.PrimaryScreen.Bounds.Width
30
         Dim screenWidth = Screen.PrimaryScreen.Bounds.Width
30
         Dim screenHeight = Screen.PrimaryScreen.Bounds.Height
31
         Dim screenHeight = Screen.PrimaryScreen.Bounds.Height
380
         For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
381
         For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
381
         PA = "" : 訂單交期批量修改工具.ShowDialog()
382
         PA = "" : 訂單交期批量修改工具.ShowDialog()
382
     End Sub
383
     End Sub
384
+    Private Sub 系統編碼原則_tsm_Click(sender As Object, e As EventArgs) Handles 系統編碼原則_tsm.Click
385
+        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
386
+        PA = "" : 系統編碼原則.Show() : 系統編碼原則.BringToFront()
387
+    End Sub
388
+    Private Sub 包裝資料圖片導入資料庫_tsm_Click(sender As Object, e As EventArgs) Handles 包裝資料圖片導入資料庫_tsm.Click
389
+        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
390
+        PA = "" : 包裝資料圖片導入資料庫.Show() : 包裝資料圖片導入資料庫.BringToFront()
391
+    End Sub
392
+    Private Sub 包裝資料圖片資料庫_tsm_Click(sender As Object, e As EventArgs) Handles 包裝資料圖片資料庫_tsm.Click
393
+        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
394
+        PA = "" : 包裝資料圖片資料庫.Show() : 包裝資料圖片資料庫.BringToFront()
395
+    End Sub
383
 End Class
396
 End Class

BIN
TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.exe Wyświetl plik


BIN
TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.pdb Wyświetl plik


BIN
TENDEN-MES-SYS/obj/Debug/DesignTimeResolveAssemblyReferences.cache Wyświetl plik


BIN
TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.exe Wyświetl plik


BIN
TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.pdb Wyświetl plik


BIN
TENDEN-MES-SYS/obj/Debug/天盾國際管理系統.包裝資料圖片導入資料庫.resources Wyświetl plik


BIN
TENDEN-MES-SYS/obj/Debug/天盾國際管理系統.包裝資料圖片資料庫.resources Wyświetl plik


BIN
TENDEN-MES-SYS/obj/Debug/天盾國際管理系統.系統編碼原則.resources Wyświetl plik


+ 1
- 1
TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.CoreCompileInputs.cache Wyświetl plik

1
-faf913a810261d1ca276697c3a73648b9bc8c807
1
+2a390db857e55cf1c8e6b907ca95c517144d0016

+ 123
- 121
TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.FileListAbsolute.txt Wyświetl plik

567
 D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單分析2.resources
567
 D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單分析2.resources
568
 D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單分析3.resources
568
 D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單分析3.resources
569
 D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析比對工具_Vionic.resources
569
 D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析比對工具_Vionic.resources
570
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.exe.config
571
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.exe
572
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.pdb
573
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.xml
574
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\Microsoft.Web.Infrastructure.dll
575
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\Newtonsoft.Json.dll
576
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\Transformer.NET.dll
577
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\WebActivatorEx.dll
578
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\Newtonsoft.Json.xml
579
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\Transformer.NET.xml
580
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.力威發票明細轉換工具.resources
581
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單交期批量修改工具.resources
582
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析比對工具_力威.resources
583
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.模具控制表.resources
584
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.業務資料日期除錯.resources
585
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單資料匯入_力威.resources
586
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.網段.resources
587
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.形體分析報表.resources
588
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單明細表.resources
589
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單改量差異查詢.resources
590
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.人員ID卡系統配置設定.resources
591
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.Customer_Information_資料管理.resources
592
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.CXL訂單紀錄表.resources
593
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.DELIVERY_ADDRESS__資料管理.resources
594
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.FACTORY_資料管理.resources
595
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.FTP資料夾管理.resources
596
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.INVOICE_確認部門.resources
597
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.SAMPLE_TRACKER.resources
598
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.STYLE_形體下單數量統計.resources
599
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.STYLE_資料管理.resources
600
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.STYLE_資料管理_對應訂單.resources
601
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.中文樣品單.resources
602
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.中文樣品單批量列印.resources
603
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.中文樣品單清單.resources
604
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.中文樣品單階段.resources
605
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.保證書出貨統計資料.resources
606
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.出貨明細表.resources
607
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_INVOICE.resources
608
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_SAMPLE_TRACKER.resources
609
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_中文樣品單.resources
610
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_出貨明細表.resources
611
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_吊牌.resources
612
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_周進度表.resources
613
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_周進度表T1_T4.resources
614
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_測試報告.resources
615
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_生產進度表.resources
616
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_確認樣品確認通知單.resources
617
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單價格利潤表.resources
618
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單分析1.resources
619
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單分析2.resources
620
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單分析3.resources
621
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單明細.resources
622
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_費用報表.resources
623
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_量產樣品控制表.resources
624
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單執行資訊輸入.resources
625
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.周進度表.resources
626
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.周進度表T1_T4.resources
627
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.帳務資料庫管理.resources
628
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.帳號管理.resources
629
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.LoginForm1vb.resources
630
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.TENDEN_MES_SYS.resources
631
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.Resources.resources
632
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.SplashScreen1.resources
633
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.成本資料庫管理.resources
634
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.收款報表.resources
635
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.收款報表批量輸入.resources
636
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.楦頭圖片導入資料庫.resources
637
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.楦頭圖片資料庫.resources
638
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.楦頭規格表.resources
639
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.業務資料庫管理.resources
640
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.中文樣品吊牌管理.resources
641
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.樣品資料庫管理.resources
642
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.清單修改.resources
643
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.測試報告報告到期管理.resources
644
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.測試報告控制表.resources
645
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.測試報告新配色管理.resources
646
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.現有訂單鞋盒資訊查詢.resources
647
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.生產進度表.resources
648
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.皮料資料紀錄表.resources
649
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.中文確認樣品確認通知單.resources
650
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.系統使用者管理.resources
651
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.系統執行檔版本管理.resources
652
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單價格利潤明細表.resources
653
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析報表.resources
654
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.OrderTypeAnalysis.resources
655
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.OldUnitComparison.resources
656
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.NewUnitComparison.resources
657
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析比對工具_Vionic.resources
658
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.DeadlineReport.resources
659
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單控制表.resources
660
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單控制表.resources
661
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單控制表修改紀錄.resources
662
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單明細表.resources
663
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單明細表修改紀錄.resources
664
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單流水號.resources
665
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單資料匯入_Vionic.resources
666
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_收款報表.resources
667
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.費用報表.resources
668
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品控制表.resources
669
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品明細表.resources
670
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品流水號.resources
671
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品訂單CXL紀錄表.resources
672
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品訂單出貨紀錄表.resources
673
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品訂單匯入.resources
674
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.鞋型圖片導入資料庫.resources
675
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.鞋型圖片資料庫.resources
676
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單資料庫選擇.resources
677
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單資料比對與修改_力威.resources
678
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.鞋盒訂單紀錄表.resources
679
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.鞋盒資料控制表.resources
680
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.驗貨報告圖片導入資料庫.resources
681
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.驗貨報告大圖.resources
682
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.驗貨報告資料庫.resources
683
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.驗貨報告資料庫修正.resources
684
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾系統.vbproj.GenerateResource.cache
685
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾系統.vbproj.CoreCompileInputs.cache
686
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾系統.vbproj.CopyComplete
687
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.exe
688
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.xml
689
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.pdb
690
 C:\Users\yee\Desktop\工巧明專案\tenden-erp-sys-team\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.exe.config
570
 C:\Users\yee\Desktop\工巧明專案\tenden-erp-sys-team\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.exe.config
691
 C:\Users\yee\Desktop\工巧明專案\tenden-erp-sys-team\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.exe
571
 C:\Users\yee\Desktop\工巧明專案\tenden-erp-sys-team\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.exe
692
 C:\Users\yee\Desktop\工巧明專案\tenden-erp-sys-team\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.pdb
572
 C:\Users\yee\Desktop\工巧明專案\tenden-erp-sys-team\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.pdb
951
 C:\Users\USER\Downloads\FANG-master\fang\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.exe
831
 C:\Users\USER\Downloads\FANG-master\fang\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.exe
952
 C:\Users\USER\Downloads\FANG-master\fang\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.xml
832
 C:\Users\USER\Downloads\FANG-master\fang\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.xml
953
 C:\Users\USER\Downloads\FANG-master\fang\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.pdb
833
 C:\Users\USER\Downloads\FANG-master\fang\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.pdb
834
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.exe.config
835
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.exe
836
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.pdb
837
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\TENDEN-ERP-SYS.xml
838
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\Microsoft.Web.Infrastructure.dll
839
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\Newtonsoft.Json.dll
840
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\Transformer.NET.dll
841
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\WebActivatorEx.dll
842
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\Newtonsoft.Json.xml
843
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\bin\Debug\Transformer.NET.xml
844
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.包裝資料圖片導入資料庫.resources
845
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.包裝資料圖片資料庫.resources
846
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.力威發票明細轉換工具.resources
847
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單交期批量修改工具.resources
848
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析比對工具_力威.resources
849
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.模具控制表.resources
954
 D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.下拉清單_1.resources
850
 D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.下拉清單_1.resources
955
-D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾系統.vbprojAssemblyReference.cache
851
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.系統編碼原則.resources
852
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.業務資料日期除錯.resources
853
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單資料匯入_力威.resources
854
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.網段.resources
855
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.形體分析報表.resources
856
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單明細表.resources
857
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單改量差異查詢.resources
858
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.人員ID卡系統配置設定.resources
859
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.Customer_Information_資料管理.resources
860
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.CXL訂單紀錄表.resources
861
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.DELIVERY_ADDRESS__資料管理.resources
862
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.FACTORY_資料管理.resources
863
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.FTP資料夾管理.resources
864
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.INVOICE_確認部門.resources
865
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.SAMPLE_TRACKER.resources
866
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.STYLE_形體下單數量統計.resources
867
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.STYLE_資料管理.resources
868
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.STYLE_資料管理_對應訂單.resources
869
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.中文樣品單.resources
870
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.中文樣品單批量列印.resources
871
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.中文樣品單清單.resources
872
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.中文樣品單階段.resources
873
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.保證書出貨統計資料.resources
874
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.出貨明細表.resources
875
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_INVOICE.resources
876
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_SAMPLE_TRACKER.resources
877
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_中文樣品單.resources
878
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_出貨明細表.resources
879
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_吊牌.resources
880
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_周進度表.resources
881
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_周進度表T1_T4.resources
882
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_測試報告.resources
883
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_生產進度表.resources
884
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_確認樣品確認通知單.resources
885
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單價格利潤表.resources
886
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單分析1.resources
887
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單分析2.resources
888
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單分析3.resources
889
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單明細.resources
890
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_費用報表.resources
891
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_量產樣品控制表.resources
892
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單執行資訊輸入.resources
893
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.周進度表.resources
894
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.周進度表T1_T4.resources
895
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.帳務資料庫管理.resources
896
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.帳號管理.resources
897
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.LoginForm1vb.resources
898
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.TENDEN_MES_SYS.resources
899
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.Resources.resources
900
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.SplashScreen1.resources
901
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.成本資料庫管理.resources
902
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.收款報表.resources
903
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.收款報表批量輸入.resources
904
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.楦頭圖片導入資料庫.resources
905
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.楦頭圖片資料庫.resources
906
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.楦頭規格表.resources
907
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.業務資料庫管理.resources
908
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.中文樣品吊牌管理.resources
909
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.樣品資料庫管理.resources
910
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.清單修改.resources
911
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.測試報告報告到期管理.resources
912
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.測試報告控制表.resources
913
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.測試報告新配色管理.resources
914
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.現有訂單鞋盒資訊查詢.resources
915
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.生產進度表.resources
916
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.皮料資料紀錄表.resources
917
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.中文確認樣品確認通知單.resources
918
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.系統使用者管理.resources
919
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.系統執行檔版本管理.resources
920
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單價格利潤明細表.resources
921
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析報表.resources
922
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.OrderTypeAnalysis.resources
923
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.OldUnitComparison.resources
924
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.NewUnitComparison.resources
925
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析比對工具_Vionic.resources
926
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.DeadlineReport.resources
927
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_訂單控制表.resources
928
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單控制表.resources
929
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單控制表修改紀錄.resources
930
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單明細表.resources
931
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單明細表修改紀錄.resources
932
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單流水號.resources
933
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單資料匯入_Vionic.resources
934
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.列印_收款報表.resources
935
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.費用報表.resources
936
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品控制表.resources
937
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品明細表.resources
938
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品流水號.resources
939
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品訂單CXL紀錄表.resources
940
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品訂單出貨紀錄表.resources
941
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.量產樣品訂單匯入.resources
942
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.鞋型圖片導入資料庫.resources
943
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.鞋型圖片資料庫.resources
944
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單資料庫選擇.resources
945
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單資料比對與修改_力威.resources
946
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.鞋盒訂單紀錄表.resources
947
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.鞋盒資料控制表.resources
948
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.驗貨報告圖片導入資料庫.resources
949
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.驗貨報告大圖.resources
950
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.驗貨報告資料庫.resources
951
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.驗貨報告資料庫修正.resources
952
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾系統.vbproj.GenerateResource.cache
953
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾系統.vbproj.CoreCompileInputs.cache
954
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾系統.vbproj.CopyComplete
955
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.exe
956
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.xml
957
+D:\工巧明\TENDEN\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.pdb

BIN
TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.GenerateResource.cache Wyświetl plik


BIN
TENDEN-MES-SYS/obj/Debug/天盾系統.vbprojAssemblyReference.cache Wyświetl plik


+ 366
- 0
TENDEN-MES-SYS/圖片資料庫管理/包裝圖片系統/包裝資料圖片導入資料庫.Designer.vb Wyświetl plik

1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
+Partial Class 包裝資料圖片導入資料庫
3
+    Inherits System.Windows.Forms.Form
4
+
5
+    'Form 覆寫 Dispose 以清除元件清單。
6
+    <System.Diagnostics.DebuggerNonUserCode()> _
7
+    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
8
+        Try
9
+            If disposing AndAlso components IsNot Nothing Then
10
+                components.Dispose()
11
+            End If
12
+        Finally
13
+            MyBase.Dispose(disposing)
14
+        End Try
15
+    End Sub
16
+
17
+    '為 Windows Form 設計工具的必要項
18
+    Private components As System.ComponentModel.IContainer
19
+
20
+    '注意: 以下為 Windows Form 設計工具所需的程序
21
+    '可以使用 Windows Form 設計工具進行修改。
22
+    '請勿使用程式碼編輯器進行修改。
23
+    <System.Diagnostics.DebuggerStepThrough()> _
24
+    Private Sub InitializeComponent()
25
+        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Me.字體_NUD = New System.Windows.Forms.NumericUpDown()
27
+        Me.字體大小調整_lb = New System.Windows.Forms.Label()
28
+        Me.查詢_bt = New System.Windows.Forms.Button()
29
+        Me.項目編號_tb = New System.Windows.Forms.TextBox()
30
+        Me.天盾訂單號_lb = New System.Windows.Forms.Label()
31
+        Me.Label5 = New System.Windows.Forms.Label()
32
+        Me.伺服器FTP文件夾_lb = New System.Windows.Forms.Label()
33
+        Me.TextBox7 = New System.Windows.Forms.TextBox()
34
+        Me.Label4 = New System.Windows.Forms.Label()
35
+        Me.讀取料夾路徑_bt = New System.Windows.Forms.Button()
36
+        Me.WebBrowser2 = New System.Windows.Forms.WebBrowser()
37
+        Me.流水號_tb = New System.Windows.Forms.TextBox()
38
+        Me.確認儲存_bt = New System.Windows.Forms.Button()
39
+        Me.檔案名稱_tb = New System.Windows.Forms.TextBox()
40
+        Me.型體號碼_tb = New System.Windows.Forms.TextBox()
41
+        Me.建立季節_tb = New System.Windows.Forms.TextBox()
42
+        Me.型體名稱_lb = New System.Windows.Forms.Label()
43
+        Me.客戶訂單號_lb = New System.Windows.Forms.Label()
44
+        Me.型體清單_dgv = New System.Windows.Forms.DataGridView()
45
+        Me.WebBrowser1 = New System.Windows.Forms.WebBrowser()
46
+        Me.Label7 = New System.Windows.Forms.Label()
47
+        Me.檔案名稱_lb = New System.Windows.Forms.Label()
48
+        Me.FolderBrowserDialog1 = New System.Windows.Forms.FolderBrowserDialog()
49
+        Me.型體名稱_tb = New System.Windows.Forms.TextBox()
50
+        Me.Label1 = New System.Windows.Forms.Label()
51
+        CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).BeginInit()
52
+        CType(Me.型體清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
53
+        Me.SuspendLayout()
54
+        '
55
+        '字體_NUD
56
+        '
57
+        Me.字體_NUD.DecimalPlaces = 1
58
+        Me.字體_NUD.Increment = New Decimal(New Integer() {1, 0, 0, 65536})
59
+        Me.字體_NUD.Location = New System.Drawing.Point(751, 30)
60
+        Me.字體_NUD.Maximum = New Decimal(New Integer() {18, 0, 0, 0})
61
+        Me.字體_NUD.Minimum = New Decimal(New Integer() {6, 0, 0, 0})
62
+        Me.字體_NUD.Name = "字體_NUD"
63
+        Me.字體_NUD.Size = New System.Drawing.Size(38, 23)
64
+        Me.字體_NUD.TabIndex = 1661
65
+        Me.字體_NUD.Value = New Decimal(New Integer() {9, 0, 0, 0})
66
+        '
67
+        '字體大小調整_lb
68
+        '
69
+        Me.字體大小調整_lb.AutoSize = True
70
+        Me.字體大小調整_lb.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
71
+        Me.字體大小調整_lb.ForeColor = System.Drawing.Color.Red
72
+        Me.字體大小調整_lb.ImeMode = System.Windows.Forms.ImeMode.NoControl
73
+        Me.字體大小調整_lb.Location = New System.Drawing.Point(693, 33)
74
+        Me.字體大小調整_lb.Name = "字體大小調整_lb"
75
+        Me.字體大小調整_lb.Size = New System.Drawing.Size(60, 17)
76
+        Me.字體大小調整_lb.TabIndex = 1662
77
+        Me.字體大小調整_lb.Text = "字體調整"
78
+        '
79
+        '查詢_bt
80
+        '
81
+        Me.查詢_bt.ForeColor = System.Drawing.Color.Black
82
+        Me.查詢_bt.Location = New System.Drawing.Point(795, 29)
83
+        Me.查詢_bt.Name = "查詢_bt"
84
+        Me.查詢_bt.Size = New System.Drawing.Size(149, 25)
85
+        Me.查詢_bt.TabIndex = 1642
86
+        Me.查詢_bt.Text = "查詢"
87
+        Me.查詢_bt.UseVisualStyleBackColor = True
88
+        '
89
+        '項目編號_tb
90
+        '
91
+        Me.項目編號_tb.ForeColor = System.Drawing.Color.Black
92
+        Me.項目編號_tb.Location = New System.Drawing.Point(795, 5)
93
+        Me.項目編號_tb.Name = "項目編號_tb"
94
+        Me.項目編號_tb.Size = New System.Drawing.Size(149, 23)
95
+        Me.項目編號_tb.TabIndex = 1658
96
+        '
97
+        '天盾訂單號_lb
98
+        '
99
+        Me.天盾訂單號_lb.AutoSize = True
100
+        Me.天盾訂單號_lb.Location = New System.Drawing.Point(738, 8)
101
+        Me.天盾訂單號_lb.Name = "天盾訂單號_lb"
102
+        Me.天盾訂單號_lb.Size = New System.Drawing.Size(56, 16)
103
+        Me.天盾訂單號_lb.TabIndex = 1657
104
+        Me.天盾訂單號_lb.Text = "項目編號"
105
+        '
106
+        'Label5
107
+        '
108
+        Me.Label5.AutoSize = True
109
+        Me.Label5.ForeColor = System.Drawing.Color.Red
110
+        Me.Label5.Location = New System.Drawing.Point(220, 33)
111
+        Me.Label5.Name = "Label5"
112
+        Me.Label5.Size = New System.Drawing.Size(424, 16)
113
+        Me.Label5.TabIndex = 1655
114
+        Me.Label5.Text = "如檔案無法拖曳至伺服器FTP文件夾,請修改檔案名稱不要帶有中文字或是符號"
115
+        '
116
+        '伺服器FTP文件夾_lb
117
+        '
118
+        Me.伺服器FTP文件夾_lb.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
119
+        Me.伺服器FTP文件夾_lb.AutoSize = True
120
+        Me.伺服器FTP文件夾_lb.Font = New System.Drawing.Font("微軟正黑體", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
121
+        Me.伺服器FTP文件夾_lb.Location = New System.Drawing.Point(6, 534)
122
+        Me.伺服器FTP文件夾_lb.Name = "伺服器FTP文件夾_lb"
123
+        Me.伺服器FTP文件夾_lb.Size = New System.Drawing.Size(156, 24)
124
+        Me.伺服器FTP文件夾_lb.TabIndex = 1653
125
+        Me.伺服器FTP文件夾_lb.Text = "伺服器FTP文件夾"
126
+        '
127
+        'TextBox7
128
+        '
129
+        Me.TextBox7.AllowDrop = True
130
+        Me.TextBox7.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
131
+        Me.TextBox7.ForeColor = System.Drawing.Color.Black
132
+        Me.TextBox7.Location = New System.Drawing.Point(1057, 4)
133
+        Me.TextBox7.Multiline = True
134
+        Me.TextBox7.Name = "TextBox7"
135
+        Me.TextBox7.Size = New System.Drawing.Size(149, 23)
136
+        Me.TextBox7.TabIndex = 1652
137
+        '
138
+        'Label4
139
+        '
140
+        Me.Label4.AutoSize = True
141
+        Me.Label4.Font = New System.Drawing.Font("微軟正黑體", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
142
+        Me.Label4.Location = New System.Drawing.Point(6, 29)
143
+        Me.Label4.Name = "Label4"
144
+        Me.Label4.Size = New System.Drawing.Size(86, 24)
145
+        Me.Label4.TabIndex = 1651
146
+        Me.Label4.Text = "我的電腦"
147
+        '
148
+        '讀取料夾路徑_bt
149
+        '
150
+        Me.讀取料夾路徑_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
151
+        Me.讀取料夾路徑_bt.ForeColor = System.Drawing.Color.Blue
152
+        Me.讀取料夾路徑_bt.Location = New System.Drawing.Point(98, 29)
153
+        Me.讀取料夾路徑_bt.Name = "讀取料夾路徑_bt"
154
+        Me.讀取料夾路徑_bt.Size = New System.Drawing.Size(119, 24)
155
+        Me.讀取料夾路徑_bt.TabIndex = 1650
156
+        Me.讀取料夾路徑_bt.Text = "讀取料夾路徑"
157
+        Me.讀取料夾路徑_bt.UseVisualStyleBackColor = True
158
+        '
159
+        'WebBrowser2
160
+        '
161
+        Me.WebBrowser2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
162
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
163
+        Me.WebBrowser2.Location = New System.Drawing.Point(9, 56)
164
+        Me.WebBrowser2.MinimumSize = New System.Drawing.Size(20, 20)
165
+        Me.WebBrowser2.Name = "WebBrowser2"
166
+        Me.WebBrowser2.Size = New System.Drawing.Size(681, 448)
167
+        Me.WebBrowser2.TabIndex = 1649
168
+        Me.WebBrowser2.Url = New System.Uri("", System.UriKind.Relative)
169
+        '
170
+        '流水號_tb
171
+        '
172
+        Me.流水號_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
173
+        Me.流水號_tb.ForeColor = System.Drawing.Color.Black
174
+        Me.流水號_tb.Location = New System.Drawing.Point(1057, 30)
175
+        Me.流水號_tb.Name = "流水號_tb"
176
+        Me.流水號_tb.Size = New System.Drawing.Size(149, 23)
177
+        Me.流水號_tb.TabIndex = 1648
178
+        '
179
+        '確認儲存_bt
180
+        '
181
+        Me.確認儲存_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
182
+        Me.確認儲存_bt.ForeColor = System.Drawing.Color.Blue
183
+        Me.確認儲存_bt.Location = New System.Drawing.Point(947, 2)
184
+        Me.確認儲存_bt.Name = "確認儲存_bt"
185
+        Me.確認儲存_bt.Size = New System.Drawing.Size(107, 52)
186
+        Me.確認儲存_bt.TabIndex = 1645
187
+        Me.確認儲存_bt.Text = "確認儲存"
188
+        Me.確認儲存_bt.UseVisualStyleBackColor = True
189
+        '
190
+        '檔案名稱_tb
191
+        '
192
+        Me.檔案名稱_tb.AllowDrop = True
193
+        Me.檔案名稱_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
194
+        Me.檔案名稱_tb.ForeColor = System.Drawing.Color.Black
195
+        Me.檔案名稱_tb.Location = New System.Drawing.Point(62, 507)
196
+        Me.檔案名稱_tb.Multiline = True
197
+        Me.檔案名稱_tb.Name = "檔案名稱_tb"
198
+        Me.檔案名稱_tb.Size = New System.Drawing.Size(628, 23)
199
+        Me.檔案名稱_tb.TabIndex = 1643
200
+        '
201
+        '型體號碼_tb
202
+        '
203
+        Me.型體號碼_tb.ForeColor = System.Drawing.Color.Black
204
+        Me.型體號碼_tb.Location = New System.Drawing.Point(272, 4)
205
+        Me.型體號碼_tb.Name = "型體號碼_tb"
206
+        Me.型體號碼_tb.Size = New System.Drawing.Size(97, 23)
207
+        Me.型體號碼_tb.TabIndex = 1641
208
+        '
209
+        '建立季節_tb
210
+        '
211
+        Me.建立季節_tb.ForeColor = System.Drawing.Color.Black
212
+        Me.建立季節_tb.Location = New System.Drawing.Point(62, 4)
213
+        Me.建立季節_tb.Name = "建立季節_tb"
214
+        Me.建立季節_tb.Size = New System.Drawing.Size(149, 23)
215
+        Me.建立季節_tb.TabIndex = 1640
216
+        '
217
+        '型體名稱_lb
218
+        '
219
+        Me.型體名稱_lb.AutoSize = True
220
+        Me.型體名稱_lb.Location = New System.Drawing.Point(215, 7)
221
+        Me.型體名稱_lb.Name = "型體名稱_lb"
222
+        Me.型體名稱_lb.Size = New System.Drawing.Size(56, 16)
223
+        Me.型體名稱_lb.TabIndex = 1639
224
+        Me.型體名稱_lb.Text = "型體號碼"
225
+        '
226
+        '客戶訂單號_lb
227
+        '
228
+        Me.客戶訂單號_lb.AutoSize = True
229
+        Me.客戶訂單號_lb.Location = New System.Drawing.Point(6, 7)
230
+        Me.客戶訂單號_lb.Name = "客戶訂單號_lb"
231
+        Me.客戶訂單號_lb.Size = New System.Drawing.Size(56, 16)
232
+        Me.客戶訂單號_lb.TabIndex = 1638
233
+        Me.客戶訂單號_lb.Text = "建立季節"
234
+        '
235
+        '型體清單_dgv
236
+        '
237
+        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
238
+        Me.型體清單_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
239
+        Me.型體清單_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
240
+            Or System.Windows.Forms.AnchorStyles.Left) _
241
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
242
+        Me.型體清單_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
243
+        Me.型體清單_dgv.BackgroundColor = System.Drawing.Color.White
244
+        Me.型體清單_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
245
+        Me.型體清單_dgv.Location = New System.Drawing.Point(696, 56)
246
+        Me.型體清單_dgv.Name = "型體清單_dgv"
247
+        Me.型體清單_dgv.RowHeadersWidth = 5
248
+        Me.型體清單_dgv.RowTemplate.Height = 24
249
+        Me.型體清單_dgv.Size = New System.Drawing.Size(648, 641)
250
+        Me.型體清單_dgv.TabIndex = 1637
251
+        '
252
+        'WebBrowser1
253
+        '
254
+        Me.WebBrowser1.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
255
+        Me.WebBrowser1.Location = New System.Drawing.Point(9, 561)
256
+        Me.WebBrowser1.MinimumSize = New System.Drawing.Size(20, 20)
257
+        Me.WebBrowser1.Name = "WebBrowser1"
258
+        Me.WebBrowser1.Size = New System.Drawing.Size(681, 135)
259
+        Me.WebBrowser1.TabIndex = 1636
260
+        Me.WebBrowser1.Url = New System.Uri("", System.UriKind.Relative)
261
+        '
262
+        'Label7
263
+        '
264
+        Me.Label7.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
265
+        Me.Label7.AutoSize = True
266
+        Me.Label7.Font = New System.Drawing.Font("微軟正黑體", 21.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
267
+        Me.Label7.ForeColor = System.Drawing.Color.Red
268
+        Me.Label7.Location = New System.Drawing.Point(168, 526)
269
+        Me.Label7.Name = "Label7"
270
+        Me.Label7.Size = New System.Drawing.Size(46, 37)
271
+        Me.Label7.TabIndex = 1654
272
+        Me.Label7.Text = "↓"
273
+        '
274
+        '檔案名稱_lb
275
+        '
276
+        Me.檔案名稱_lb.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
277
+        Me.檔案名稱_lb.AutoSize = True
278
+        Me.檔案名稱_lb.Location = New System.Drawing.Point(7, 509)
279
+        Me.檔案名稱_lb.Name = "檔案名稱_lb"
280
+        Me.檔案名稱_lb.Size = New System.Drawing.Size(56, 16)
281
+        Me.檔案名稱_lb.TabIndex = 1644
282
+        Me.檔案名稱_lb.Text = "檔案名稱"
283
+        '
284
+        '型體名稱_tb
285
+        '
286
+        Me.型體名稱_tb.ForeColor = System.Drawing.Color.Black
287
+        Me.型體名稱_tb.Location = New System.Drawing.Point(429, 5)
288
+        Me.型體名稱_tb.Name = "型體名稱_tb"
289
+        Me.型體名稱_tb.Size = New System.Drawing.Size(307, 23)
290
+        Me.型體名稱_tb.TabIndex = 1664
291
+        '
292
+        'Label1
293
+        '
294
+        Me.Label1.AutoSize = True
295
+        Me.Label1.Location = New System.Drawing.Point(373, 8)
296
+        Me.Label1.Name = "Label1"
297
+        Me.Label1.Size = New System.Drawing.Size(56, 16)
298
+        Me.Label1.TabIndex = 1663
299
+        Me.Label1.Text = "型體名稱"
300
+        '
301
+        '包裝資料圖片導入資料庫
302
+        '
303
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
304
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
305
+        Me.ClientSize = New System.Drawing.Size(1350, 701)
306
+        Me.Controls.Add(Me.型體名稱_tb)
307
+        Me.Controls.Add(Me.Label1)
308
+        Me.Controls.Add(Me.字體_NUD)
309
+        Me.Controls.Add(Me.字體大小調整_lb)
310
+        Me.Controls.Add(Me.查詢_bt)
311
+        Me.Controls.Add(Me.項目編號_tb)
312
+        Me.Controls.Add(Me.天盾訂單號_lb)
313
+        Me.Controls.Add(Me.Label5)
314
+        Me.Controls.Add(Me.伺服器FTP文件夾_lb)
315
+        Me.Controls.Add(Me.TextBox7)
316
+        Me.Controls.Add(Me.Label4)
317
+        Me.Controls.Add(Me.讀取料夾路徑_bt)
318
+        Me.Controls.Add(Me.WebBrowser2)
319
+        Me.Controls.Add(Me.流水號_tb)
320
+        Me.Controls.Add(Me.確認儲存_bt)
321
+        Me.Controls.Add(Me.檔案名稱_tb)
322
+        Me.Controls.Add(Me.型體號碼_tb)
323
+        Me.Controls.Add(Me.建立季節_tb)
324
+        Me.Controls.Add(Me.型體名稱_lb)
325
+        Me.Controls.Add(Me.客戶訂單號_lb)
326
+        Me.Controls.Add(Me.型體清單_dgv)
327
+        Me.Controls.Add(Me.WebBrowser1)
328
+        Me.Controls.Add(Me.Label7)
329
+        Me.Controls.Add(Me.檔案名稱_lb)
330
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
331
+        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
332
+        Me.Name = "包裝資料圖片導入資料庫"
333
+        Me.Text = "包裝資料圖片導入資料庫"
334
+        CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).EndInit()
335
+        CType(Me.型體清單_dgv, System.ComponentModel.ISupportInitialize).EndInit()
336
+        Me.ResumeLayout(False)
337
+        Me.PerformLayout()
338
+
339
+    End Sub
340
+
341
+    Friend WithEvents 字體_NUD As NumericUpDown
342
+    Friend WithEvents 字體大小調整_lb As Label
343
+    Friend WithEvents 查詢_bt As Button
344
+    Friend WithEvents 項目編號_tb As TextBox
345
+    Friend WithEvents 天盾訂單號_lb As Label
346
+    Friend WithEvents Label5 As Label
347
+    Friend WithEvents 伺服器FTP文件夾_lb As Label
348
+    Friend WithEvents TextBox7 As TextBox
349
+    Friend WithEvents Label4 As Label
350
+    Friend WithEvents 讀取料夾路徑_bt As Button
351
+    Friend WithEvents WebBrowser2 As WebBrowser
352
+    Friend WithEvents 流水號_tb As TextBox
353
+    Friend WithEvents 確認儲存_bt As Button
354
+    Friend WithEvents 檔案名稱_tb As TextBox
355
+    Friend WithEvents 型體號碼_tb As TextBox
356
+    Friend WithEvents 建立季節_tb As TextBox
357
+    Friend WithEvents 型體名稱_lb As Label
358
+    Friend WithEvents 客戶訂單號_lb As Label
359
+    Friend WithEvents 型體清單_dgv As DataGridView
360
+    Friend WithEvents WebBrowser1 As WebBrowser
361
+    Friend WithEvents Label7 As Label
362
+    Friend WithEvents 檔案名稱_lb As Label
363
+    Friend WithEvents FolderBrowserDialog1 As FolderBrowserDialog
364
+    Friend WithEvents 型體名稱_tb As TextBox
365
+    Friend WithEvents Label1 As Label
366
+End Class

+ 126
- 0
TENDEN-MES-SYS/圖片資料庫管理/包裝圖片系統/包裝資料圖片導入資料庫.resx Wyświetl plik

1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+  <metadata name="FolderBrowserDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121
+    <value>17, 5</value>
122
+  </metadata>
123
+  <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
124
+    <value>33</value>
125
+  </metadata>
126
+</root>

+ 130
- 0
TENDEN-MES-SYS/圖片資料庫管理/包裝圖片系統/包裝資料圖片導入資料庫.vb Wyświetl plik

1
+Option Strict Off
2
+Imports System.Net
3
+Public Class 包裝資料圖片導入資料庫
4
+    Public Property Credentials As ICredentials
5
+    ReadOnly ds As New DataSet
6
+    Private Sub Set_DGV1載入前設定()
7
+        型體清單_dgv.DataSource = Nothing : ds.Clear()
8
+        型體清單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
9
+        型體清單_dgv.ColumnHeadersHeight = 25 : 型體清單_dgv.AllowUserToAddRows = False
10
+    End Sub
11
+    Private Sub Set_DGV1載入後設定()
12
+        da.SelectCommand.CommandTimeout = 900 : da.Fill(ds) : 型體清單_dgv.DataSource = ds.Tables(0) : conn.Close()
13
+    End Sub
14
+    Private Sub Set_清單1()
15
+        Set_DGV1載入前設定() : SQL_形體清單() : Set_DGV1載入後設定()
16
+    End Sub
17
+    Private Sub Set_grid1()
18
+        型體清單_dgv.Columns(0).FillWeight = 100 : 型體清單_dgv.Columns(1).FillWeight = 100 : 型體清單_dgv.Columns(2).FillWeight = 250 : 型體清單_dgv.Columns(3).FillWeight = 100
19
+    End Sub
20
+    Private Sub 包裝資料圖片導入資料庫_Load(sender As Object, e As EventArgs) Handles MyBase.Load
21
+        Me.MdiParent = TENDEN_MES_SYS : Me.WindowState = 2 : Me.AutoScroll = True
22
+        Target1 = Target & AA(3) & "/" : WebBrowser1.Url = New Uri(Target1)
23
+        Set_清單1() : Set_grid1()
24
+        流水號_tb.Visible = False : TextBox7.Visible = False
25
+        If FolderBrowserDialog1.ShowDialog = DialogResult.OK Then : WebBrowser2.Navigate(FolderBrowserDialog1.SelectedPath) : End If
26
+        If TENDEN_MES_SYS.Size.Width > 1440 And TENDEN_MES_SYS.Size.Height > 900 Then : 字體_NUD.Value = 9
27
+        ElseIf TENDEN_MES_SYS.Size.Width <= 1440 And TENDEN_MES_SYS.Size.Height <= 900 Then : 字體_NUD.Value = 7.6 : End If
28
+    End Sub
29
+    Private Sub 驗貨報告圖片導入資料庫_SizeChanged(sender As Object, e As EventArgs) Handles MyBase.SizeChanged
30
+        If TENDEN_MES_SYS.Size.Width > 1440 And TENDEN_MES_SYS.Size.Height > 900 Then : 字體_NUD.Value = 9
31
+        ElseIf TENDEN_MES_SYS.Size.Width <= 1440 And TENDEN_MES_SYS.Size.Height <= 900 Then : 字體_NUD.Value = 7.6 : End If
32
+    End Sub
33
+    Private Sub 字體_NUD_ValueChanged(sender As Object, e As EventArgs) Handles 字體_NUD.ValueChanged
34
+        型體清單_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", 字體_NUD.Value)
35
+    End Sub
36
+    Private Sub 型體清單_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 型體清單_dgv.CellClick
37
+        If e.RowIndex = -1 Then : Else
38
+            建立季節_tb.Text = 型體清單_dgv("建立季節", e.RowIndex).Value.ToString : 型體號碼_tb.Text = 型體清單_dgv("Style", e.RowIndex).Value.ToString
39
+            型體名稱_tb.Text = 型體清單_dgv("ProductName", e.RowIndex).Value.ToString : 項目編號_tb.Text = 型體清單_dgv("ItemNumber", e.RowIndex).Value.ToString
40
+        End If
41
+    End Sub
42
+    Private Sub 查詢_bt_Click(sender As Object, e As EventArgs) Handles 查詢_bt.Click
43
+        PA = InputBox("請輸入要查詢的資料") : Set_DGV1載入前設定() : SQL_形體清單1() : Set_DGV1載入後設定() : Set_grid1() : PA = ""
44
+    End Sub
45
+    Private Sub 檔案名稱_tb_DragEnter(sender As Object, e As DragEventArgs) Handles 檔案名稱_tb.DragEnter
46
+        If e.Data.GetDataPresent(DataFormats.FileDrop) Then
47
+            Dim files As String()
48
+            Try
49
+                files = CType(e.Data.GetData(DataFormats.FileDrop), String())
50
+                檔案名稱_tb.Text = files(files.Length - 1)
51
+            Catch ex As Exception
52
+                MessageBox.Show(ex.Message)
53
+                Return
54
+            End Try
55
+        End If
56
+
57
+        Dim STR2 As Integer = 0
58
+        TextBox7.Text = 檔案名稱_tb.Text
59
+        If 檔案名稱_tb.Text = "" Then
60
+        Else
61
+            For i As Integer = 0 To 9999
62
+                Dim STR1 As Integer = Strings.Len(TextBox7.Text)
63
+                If Strings.Right((TextBox7.Text), 1) <> "\" Then
64
+                    STR1 -= 1 : STR2 += 1
65
+                    If STR1 = 0 Then
66
+                        TextBox7.Text = ""
67
+                        檔案名稱_tb.Text = ""
68
+                        i = 9999
69
+                    Else
70
+                        TextBox7.Text = Strings.Left((TextBox7.Text), STR1)
71
+                    End If
72
+                Else
73
+                    TextBox7.Text = Strings.Right((檔案名稱_tb.Text), STR2)
74
+                    檔案名稱_tb.Text = TextBox7.Text
75
+                    i = 9999
76
+                End If
77
+            Next
78
+        End If
79
+    End Sub
80
+    Private Sub 檔案名稱_tb_DragDrop(ByVal sender As Object, ByVal e As DragEventArgs) Handles 檔案名稱_tb.DragDrop
81
+        Dim files As Array = e.Data.GetData(DataFormats.FileDrop)
82
+        For Each file As String In files
83
+            檔案名稱_tb.AppendText(file + Environment.NewLine)
84
+        Next
85
+    End Sub
86
+    Private Sub 讀取料夾路徑_bt_Click(sender As Object, e As EventArgs) Handles 讀取料夾路徑_bt.Click
87
+        If FolderBrowserDialog1.ShowDialog = DialogResult.OK Then : WebBrowser2.Navigate(FolderBrowserDialog1.SelectedPath)
88
+        End If
89
+    End Sub
90
+    Private Sub 確認儲存_bt_Click(sender As Object, e As EventArgs) Handles 確認儲存_bt.Click
91
+        If 建立季節_tb.Text = "" Or 型體號碼_tb.Text = "" Or 型體名稱_tb.Text = "" Or 項目編號_tb.Text = "" Or 檔案名稱_tb.Text = "" Then
92
+            MsgBox("檔案名稱或資料不可空白")
93
+        Else
94
+            SQL_資料庫選擇() : If dr.Read() Then : PA1 = dr("圖片資料庫").ToString : PA20 = PA1 : End If
95
+            SQL_查詢最後一筆包裝資料編號()
96
+            If dr.Read() Then : 流水號_tb.Text = dr("流水號").ToString : Else : 流水號_tb.Text = "0" : End If
97
+            conn.Close()
98
+            Dim NUM1 As Integer
99
+            NUM1 = Double.Parse(Strings.Right(流水號_tb.Text, 8)) + 1
100
+            If NUM1 < 10 Then : 流水號_tb.Text = "PK" & "0000000" & NUM1
101
+            ElseIf NUM1 > 9 And NUM1 < 100 Then : 流水號_tb.Text = "PK" & "000000" & NUM1
102
+            ElseIf NUM1 > 99 And NUM1 < 1000 Then : 流水號_tb.Text = "PK" & "00000" & NUM1
103
+            ElseIf NUM1 > 999 And NUM1 < 10000 Then : 流水號_tb.Text = "PK" & "0000" & NUM1
104
+            ElseIf NUM1 > 9999 And NUM1 < 100000 Then : 流水號_tb.Text = "PK" & "000" & NUM1
105
+            ElseIf NUM1 > 99999 And NUM1 < 100000 Then : 流水號_tb.Text = "PK" & "00" & NUM1
106
+            ElseIf NUM1 > 999999 And NUM1 < 1000000 Then : 流水號_tb.Text = "PK" & "0" & NUM1
107
+            ElseIf NUM1 > 9999999 Then : 流水號_tb.Text = "PK" & NUM1
108
+            End If
109
+
110
+            If Strings.Left(Target1, 18) = "ftp://106.1.48.106" Then : SQL_新增包裝編號_測試()
111
+            Else : SQL_新增包裝編號_正式() : End If : conn.Close()
112
+
113
+            SQL_修改STYLELIST包裝圖號() : conn.Close()
114
+            '---FTP方式刪除檔案----------------------------------------------------------------------------------------------------------------------------------------------------------------------
115
+            Dim frq As FtpWebRequest, frp As FtpWebResponse, fcr As NetworkCredential
116
+            frq = CType(WebRequest.Create(New Uri(Target1 & 檔案名稱_tb.Text)), FtpWebRequest)
117
+            fcr = New NetworkCredential(FTP帳號, FTP密碼)
118
+            frq.Credentials = fcr
119
+            frq.Method = WebRequestMethods.Ftp.DeleteFile
120
+            frq.UseBinary = True
121
+            frp = CType(frq.GetResponse, FtpWebResponse)
122
+            frp.Close()
123
+            WebBrowser1.Refresh()
124
+            '----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
125
+            建立季節_tb.Text = "" : 型體號碼_tb.Text = "" : 型體名稱_tb.Text = "" : 項目編號_tb.Text = ""
126
+            Set_清單1() : Set_grid1()
127
+            MsgBox("新增完成")
128
+        End If
129
+    End Sub
130
+End Class

+ 227
- 0
TENDEN-MES-SYS/圖片資料庫管理/包裝圖片系統/包裝資料圖片資料庫.Designer.vb Wyświetl plik

1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
2
+Partial Class 包裝資料圖片資料庫
3
+    Inherits System.Windows.Forms.Form
4
+
5
+    'Form 覆寫 Dispose 以清除元件清單。
6
+    <System.Diagnostics.DebuggerNonUserCode()>
7
+    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
8
+        Try
9
+            If disposing AndAlso components IsNot Nothing Then
10
+                components.Dispose()
11
+            End If
12
+        Finally
13
+            MyBase.Dispose(disposing)
14
+        End Try
15
+    End Sub
16
+
17
+    '為 Windows Form 設計工具的必要項
18
+    Private components As System.ComponentModel.IContainer
19
+
20
+    '注意: 以下為 Windows Form 設計工具所需的程序
21
+    '可以使用 Windows Form 設計工具進行修改。
22
+    '請勿使用程式碼編輯器進行修改。
23
+    <System.Diagnostics.DebuggerStepThrough()>
24
+    Private Sub InitializeComponent()
25
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Me.Panel1 = New System.Windows.Forms.Panel()
28
+        Me.Label38 = New System.Windows.Forms.Label()
29
+        Me.圖片資料庫管理_dgv = New System.Windows.Forms.DataGridView()
30
+        Me.包裝資料圖庫_dgv = New System.Windows.Forms.DataGridView()
31
+        Me.順時鐘90度旋轉_bt = New System.Windows.Forms.Button()
32
+        Me.逆時鐘90度旋轉_bt = New System.Windows.Forms.Button()
33
+        Me.水平翻轉_bt = New System.Windows.Forms.Button()
34
+        Me.垂直翻轉_bt = New System.Windows.Forms.Button()
35
+        Me.放大_bt = New System.Windows.Forms.Button()
36
+        Me.復原_bt = New System.Windows.Forms.Button()
37
+        Me.包裝資料_pb = New System.Windows.Forms.PictureBox()
38
+        Me.FolderBrowserDialog1 = New System.Windows.Forms.FolderBrowserDialog()
39
+        Me.SaveFileDialog1 = New System.Windows.Forms.SaveFileDialog()
40
+        Me.Panel1.SuspendLayout()
41
+        CType(Me.圖片資料庫管理_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
42
+        CType(Me.包裝資料圖庫_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
43
+        CType(Me.包裝資料_pb, System.ComponentModel.ISupportInitialize).BeginInit()
44
+        Me.SuspendLayout()
45
+        '
46
+        'Panel1
47
+        '
48
+        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
49
+        Me.Panel1.Controls.Add(Me.Label38)
50
+        Me.Panel1.Controls.Add(Me.圖片資料庫管理_dgv)
51
+        Me.Panel1.Location = New System.Drawing.Point(539, 177)
52
+        Me.Panel1.Name = "Panel1"
53
+        Me.Panel1.Size = New System.Drawing.Size(205, 303)
54
+        Me.Panel1.TabIndex = 1645
55
+        '
56
+        'Label38
57
+        '
58
+        Me.Label38.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
59
+        Me.Label38.AutoSize = True
60
+        Me.Label38.ForeColor = System.Drawing.Color.Black
61
+        Me.Label38.Location = New System.Drawing.Point(11, 10)
62
+        Me.Label38.Name = "Label38"
63
+        Me.Label38.Size = New System.Drawing.Size(176, 16)
64
+        Me.Label38.TabIndex = 708
65
+        Me.Label38.Text = "起先選擇要開啟哪個圖片資料庫"
66
+        '
67
+        '圖片資料庫管理_dgv
68
+        '
69
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.White
70
+        Me.圖片資料庫管理_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
71
+        Me.圖片資料庫管理_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
72
+            Or System.Windows.Forms.AnchorStyles.Left) _
73
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
74
+        Me.圖片資料庫管理_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
75
+        Me.圖片資料庫管理_dgv.BackgroundColor = System.Drawing.Color.White
76
+        DataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
77
+        DataGridViewCellStyle4.BackColor = System.Drawing.Color.White
78
+        DataGridViewCellStyle4.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
79
+        DataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText
80
+        DataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight
81
+        DataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText
82
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
83
+        Me.圖片資料庫管理_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle4
84
+        Me.圖片資料庫管理_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
85
+        Me.圖片資料庫管理_dgv.Location = New System.Drawing.Point(3, 29)
86
+        Me.圖片資料庫管理_dgv.Name = "圖片資料庫管理_dgv"
87
+        Me.圖片資料庫管理_dgv.RowHeadersWidth = 5
88
+        Me.圖片資料庫管理_dgv.RowTemplate.Height = 24
89
+        Me.圖片資料庫管理_dgv.Size = New System.Drawing.Size(195, 269)
90
+        Me.圖片資料庫管理_dgv.TabIndex = 707
91
+        '
92
+        '包裝資料圖庫_dgv
93
+        '
94
+        Me.包裝資料圖庫_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
95
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
96
+        Me.包裝資料圖庫_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
97
+        Me.包裝資料圖庫_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
98
+        Me.包裝資料圖庫_dgv.Location = New System.Drawing.Point(3, 3)
99
+        Me.包裝資料圖庫_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
100
+        Me.包裝資料圖庫_dgv.Name = "包裝資料圖庫_dgv"
101
+        Me.包裝資料圖庫_dgv.RowHeadersWidth = 5
102
+        Me.包裝資料圖庫_dgv.RowTemplate.Height = 24
103
+        Me.包裝資料圖庫_dgv.Size = New System.Drawing.Size(556, 692)
104
+        Me.包裝資料圖庫_dgv.TabIndex = 1635
105
+        '
106
+        '順時鐘90度旋轉_bt
107
+        '
108
+        Me.順時鐘90度旋轉_bt.ForeColor = System.Drawing.Color.Blue
109
+        Me.順時鐘90度旋轉_bt.Location = New System.Drawing.Point(700, 3)
110
+        Me.順時鐘90度旋轉_bt.Name = "順時鐘90度旋轉_bt"
111
+        Me.順時鐘90度旋轉_bt.Size = New System.Drawing.Size(117, 25)
112
+        Me.順時鐘90度旋轉_bt.TabIndex = 1639
113
+        Me.順時鐘90度旋轉_bt.Text = "順時鐘90度旋轉"
114
+        Me.順時鐘90度旋轉_bt.UseVisualStyleBackColor = True
115
+        '
116
+        '逆時鐘90度旋轉_bt
117
+        '
118
+        Me.逆時鐘90度旋轉_bt.ForeColor = System.Drawing.Color.Blue
119
+        Me.逆時鐘90度旋轉_bt.Location = New System.Drawing.Point(817, 3)
120
+        Me.逆時鐘90度旋轉_bt.Name = "逆時鐘90度旋轉_bt"
121
+        Me.逆時鐘90度旋轉_bt.Size = New System.Drawing.Size(117, 25)
122
+        Me.逆時鐘90度旋轉_bt.TabIndex = 1640
123
+        Me.逆時鐘90度旋轉_bt.Text = "逆時鐘90度旋轉"
124
+        Me.逆時鐘90度旋轉_bt.UseVisualStyleBackColor = True
125
+        '
126
+        '水平翻轉_bt
127
+        '
128
+        Me.水平翻轉_bt.ForeColor = System.Drawing.Color.Blue
129
+        Me.水平翻轉_bt.Location = New System.Drawing.Point(564, 3)
130
+        Me.水平翻轉_bt.Name = "水平翻轉_bt"
131
+        Me.水平翻轉_bt.Size = New System.Drawing.Size(68, 25)
132
+        Me.水平翻轉_bt.TabIndex = 1641
133
+        Me.水平翻轉_bt.Text = "水平翻轉"
134
+        Me.水平翻轉_bt.UseVisualStyleBackColor = True
135
+        '
136
+        '垂直翻轉_bt
137
+        '
138
+        Me.垂直翻轉_bt.ForeColor = System.Drawing.Color.Blue
139
+        Me.垂直翻轉_bt.Location = New System.Drawing.Point(632, 3)
140
+        Me.垂直翻轉_bt.Name = "垂直翻轉_bt"
141
+        Me.垂直翻轉_bt.Size = New System.Drawing.Size(68, 25)
142
+        Me.垂直翻轉_bt.TabIndex = 1642
143
+        Me.垂直翻轉_bt.Text = "垂直翻轉"
144
+        Me.垂直翻轉_bt.UseVisualStyleBackColor = True
145
+        '
146
+        '放大_bt
147
+        '
148
+        Me.放大_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer))
149
+        Me.放大_bt.Location = New System.Drawing.Point(936, 3)
150
+        Me.放大_bt.Name = "放大_bt"
151
+        Me.放大_bt.Size = New System.Drawing.Size(48, 25)
152
+        Me.放大_bt.TabIndex = 1643
153
+        Me.放大_bt.Text = "放大"
154
+        Me.放大_bt.UseVisualStyleBackColor = True
155
+        '
156
+        '復原_bt
157
+        '
158
+        Me.復原_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer))
159
+        Me.復原_bt.Location = New System.Drawing.Point(985, 3)
160
+        Me.復原_bt.Name = "復原_bt"
161
+        Me.復原_bt.Size = New System.Drawing.Size(48, 25)
162
+        Me.復原_bt.TabIndex = 1644
163
+        Me.復原_bt.Text = "復原"
164
+        Me.復原_bt.UseVisualStyleBackColor = True
165
+        '
166
+        '包裝資料_pb
167
+        '
168
+        Me.包裝資料_pb.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
169
+            Or System.Windows.Forms.AnchorStyles.Left) _
170
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
171
+        Me.包裝資料_pb.BackgroundImage = Global.天盾國際管理系統.My.Resources.Resources._9572465
172
+        Me.包裝資料_pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
173
+        Me.包裝資料_pb.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
174
+        Me.包裝資料_pb.Location = New System.Drawing.Point(565, 31)
175
+        Me.包裝資料_pb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
176
+        Me.包裝資料_pb.Name = "包裝資料_pb"
177
+        Me.包裝資料_pb.Size = New System.Drawing.Size(782, 664)
178
+        Me.包裝資料_pb.TabIndex = 1636
179
+        Me.包裝資料_pb.TabStop = False
180
+        '
181
+        'SaveFileDialog1
182
+        '
183
+        Me.SaveFileDialog1.DefaultExt = "jpg"
184
+        Me.SaveFileDialog1.SupportMultiDottedExtensions = True
185
+        Me.SaveFileDialog1.Title = "指定檔案名稱與選擇檔案路徑"
186
+        '
187
+        '包裝資料圖片資料庫
188
+        '
189
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
190
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
191
+        Me.ClientSize = New System.Drawing.Size(1350, 701)
192
+        Me.Controls.Add(Me.Panel1)
193
+        Me.Controls.Add(Me.順時鐘90度旋轉_bt)
194
+        Me.Controls.Add(Me.逆時鐘90度旋轉_bt)
195
+        Me.Controls.Add(Me.水平翻轉_bt)
196
+        Me.Controls.Add(Me.垂直翻轉_bt)
197
+        Me.Controls.Add(Me.放大_bt)
198
+        Me.Controls.Add(Me.復原_bt)
199
+        Me.Controls.Add(Me.包裝資料_pb)
200
+        Me.Controls.Add(Me.包裝資料圖庫_dgv)
201
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
202
+        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
203
+        Me.Name = "包裝資料圖片資料庫"
204
+        Me.Text = "包裝資料圖片資料庫"
205
+        Me.Panel1.ResumeLayout(False)
206
+        Me.Panel1.PerformLayout()
207
+        CType(Me.圖片資料庫管理_dgv, System.ComponentModel.ISupportInitialize).EndInit()
208
+        CType(Me.包裝資料圖庫_dgv, System.ComponentModel.ISupportInitialize).EndInit()
209
+        CType(Me.包裝資料_pb, System.ComponentModel.ISupportInitialize).EndInit()
210
+        Me.ResumeLayout(False)
211
+
212
+    End Sub
213
+
214
+    Friend WithEvents Panel1 As Panel
215
+    Friend WithEvents Label38 As Label
216
+    Friend WithEvents 圖片資料庫管理_dgv As DataGridView
217
+    Friend WithEvents 包裝資料圖庫_dgv As DataGridView
218
+    Friend WithEvents 順時鐘90度旋轉_bt As Button
219
+    Friend WithEvents 逆時鐘90度旋轉_bt As Button
220
+    Friend WithEvents 水平翻轉_bt As Button
221
+    Friend WithEvents 垂直翻轉_bt As Button
222
+    Friend WithEvents 放大_bt As Button
223
+    Friend WithEvents 復原_bt As Button
224
+    Friend WithEvents 包裝資料_pb As PictureBox
225
+    Friend WithEvents FolderBrowserDialog1 As FolderBrowserDialog
226
+    Friend WithEvents SaveFileDialog1 As SaveFileDialog
227
+End Class

+ 129
- 0
TENDEN-MES-SYS/圖片資料庫管理/包裝圖片系統/包裝資料圖片資料庫.resx Wyświetl plik

1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+  <metadata name="FolderBrowserDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121
+    <value>18, 4</value>
122
+  </metadata>
123
+  <metadata name="SaveFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
124
+    <value>198, 4</value>
125
+  </metadata>
126
+  <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
127
+    <value>35</value>
128
+  </metadata>
129
+</root>

+ 115
- 0
TENDEN-MES-SYS/圖片資料庫管理/包裝圖片系統/包裝資料圖片資料庫.vb Wyświetl plik

1
+Option Strict Off
2
+Imports System.IO
3
+Imports System.Net
4
+Public Class 包裝資料圖片資料庫
5
+    Public Property Credentials As ICredentials
6
+    ReadOnly ds As New DataSet
7
+    Private m_Leftx As Integer = 152
8
+    Private m_Lefty As Integer = 0
9
+    Dim m_MousePosX As Integer
10
+    Dim m_MousePosY As Integer
11
+    Dim m_DeltaX As Integer
12
+    Dim m_DeltaY As Integer
13
+    Private Sub Set_工程圖片資料庫狀態()
14
+        Dim ds9 As New DataSet : 圖片資料庫管理_dgv.DataSource = Nothing : ds9.Clear()
15
+        圖片資料庫管理_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
16
+        圖片資料庫管理_dgv.ColumnHeadersHeight = 25
17
+        圖片資料庫管理_dgv.AllowUserToAddRows = False
18
+        SQL_圖片資料庫管理查詢()
19
+        da.Fill(ds9) : 圖片資料庫管理_dgv.DataSource = ds9.Tables(0) : conn.Close()
20
+        圖片資料庫管理_dgv.Columns(0).FillWeight = 100 : 圖片資料庫管理_dgv.Columns(1).Visible = False
21
+    End Sub
22
+    Private Sub Set_圖片清單()
23
+        包裝資料圖庫_dgv.DataSource = Nothing : ds.Clear()
24
+        包裝資料圖庫_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
25
+        包裝資料圖庫_dgv.ColumnHeadersHeight = 25 : 包裝資料圖庫_dgv.AllowUserToAddRows = False
26
+        SQL_包裝圖片清單()
27
+        da.SelectCommand.CommandTimeout = 900 : da.Fill(ds) : 包裝資料圖庫_dgv.DataSource = ds.Tables(0) : conn.Close()
28
+        包裝資料圖庫_dgv.Columns(0).Visible = False : 包裝資料圖庫_dgv.Columns(1).FillWeight = 100 : 包裝資料圖庫_dgv.Columns(2).FillWeight = 250
29
+    End Sub
30
+    Private Sub 包裝資料圖片資料庫_Load(sender As Object, e As EventArgs) Handles MyBase.Load
31
+        Me.MdiParent = TENDEN_MES_SYS : Me.WindowState = 2 : Me.AutoScroll = True
32
+        Set_工程圖片資料庫狀態()
33
+    End Sub
34
+    Private Sub 圖片資料庫管理_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 圖片資料庫管理_dgv.CellClick
35
+        If e.RowIndex = -1 Then : Else
36
+            PA20 = 圖片資料庫管理_dgv(0, e.RowIndex).Value.ToString : PA1 = PA20 : Set_圖片清單() : Panel1.Visible = False
37
+        End If
38
+    End Sub
39
+    Private Sub 驗貨報告圖庫_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 包裝資料圖庫_dgv.CellClick
40
+        Try
41
+            If e.RowIndex = -1 Then : Else
42
+                '------------驗貨報告讀取--------------------------------------------------------------------------------------------
43
+                PA1 = PA20 : PA2 = 包裝資料圖庫_dgv("流水號", e.RowIndex).Value.ToString
44
+                SQL_包裝圖片() : 包裝資料_pb.Image = Nothing
45
+                While dr.Read() = True
46
+                    Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
47
+                    Dim oStream As New MemoryStream(bytes) : 包裝資料_pb.Image = Bitmap.FromStream(oStream)
48
+                End While : conn.Close() : 包裝資料_pb.SizeMode = 4 : 圖片傳遞 = 包裝資料_pb.Image
49
+            End If
50
+        Catch ex As Exception
51
+            MsgBox(ex.Message)
52
+        End Try
53
+    End Sub
54
+    Private Sub 順時鐘90度旋轉_bt_Click(sender As Object, e As EventArgs) Handles 順時鐘90度旋轉_bt.Click
55
+        包裝資料_pb.Image.RotateFlip(RotateFlipType.Rotate90FlipNone) : 包裝資料_pb.Refresh() : 包裝資料_pb.SizeMode = 4
56
+    End Sub
57
+    Private Sub 逆時鐘90度旋轉_bt_Click(sender As Object, e As EventArgs) Handles 逆時鐘90度旋轉_bt.Click
58
+        包裝資料_pb.Image.RotateFlip(RotateFlipType.Rotate270FlipNone) : 包裝資料_pb.Refresh() : 包裝資料_pb.SizeMode = 4
59
+    End Sub
60
+    Private Sub 水平翻轉_bt_Click(sender As Object, e As EventArgs) Handles 水平翻轉_bt.Click
61
+        包裝資料_pb.Image.RotateFlip(RotateFlipType.Rotate180FlipY) : 包裝資料_pb.Refresh() : 包裝資料_pb.SizeMode = 4
62
+    End Sub
63
+    Private Sub 垂直翻轉_bt_Click(sender As Object, e As EventArgs) Handles 垂直翻轉_bt.Click
64
+        包裝資料_pb.Image.RotateFlip(RotateFlipType.Rotate180FlipX) : 包裝資料_pb.Refresh() : 包裝資料_pb.SizeMode = 4
65
+    End Sub
66
+    Private Sub 放大_bt_Click(sender As Object, e As EventArgs) Handles 放大_bt.Click
67
+        Try
68
+            Dim image = 包裝資料_pb.Image
69
+            Dim g As Graphics = 包裝資料_pb.CreateGraphics
70
+            g.DrawImage(image, New Rectangle(0, 0, image.Width * 1.01, image.Height * 1.01))
71
+        Catch ex As Exception
72
+            MsgBox(ex.Message)
73
+        End Try
74
+    End Sub
75
+    Private Sub 復原_bt_Click(sender As Object, e As EventArgs) Handles 復原_bt.Click
76
+        包裝資料_pb.Refresh()
77
+    End Sub
78
+    '@#处理鼠标按键抬起的事件,根据鼠标按下时保存的鼠标位置,和当前鼠标的位置, 
79
+    '计算鼠标移动偏移量,借此调用移动图片的函数,移动图片 
80
+    Private Sub 驗貨報告_pb_MouseUp(ByVal sender As Object, ByVal e As MouseEventArgs) Handles 包裝資料_pb.MouseUp
81
+        Try
82
+            m_DeltaX = m_MousePosX - e.X
83
+            m_DeltaY = m_MousePosY - e.Y
84
+            m_Leftx -= m_DeltaX
85
+            m_Lefty -= m_DeltaY
86
+            Picturemove(sender, e)
87
+            Me.Cursor = Cursors.Arrow
88
+        Catch ex As Exception
89
+            MsgBox(ex.Message)
90
+        End Try
91
+    End Sub
92
+    '@#当鼠标按下时,将鼠标变成手形,并且记录下当前鼠标的位置 
93
+    Private Sub 驗貨報告_pb_MouseDown(ByVal sender As Object, ByVal e As MouseEventArgs) Handles 包裝資料_pb.MouseDown
94
+        Try
95
+            Me.Cursor = Cursors.Hand
96
+            m_MousePosX = e.X
97
+            m_MousePosY = e.Y
98
+        Catch ex As Exception
99
+            MsgBox(ex.Message)
100
+        End Try
101
+    End Sub
102
+    '@#根据偏移量计算出的图片位置,重画图片 
103
+    Private Sub Picturemove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)
104
+        Try
105
+            Dim myBit As New Bitmap(包裝資料_pb.Image)
106
+            Dim myPicGrh As Graphics = Me.包裝資料_pb.CreateGraphics
107
+            myPicGrh.Clear(Me.包裝資料_pb.BackColor)
108
+            myPicGrh.DrawImageUnscaled(myBit, m_Leftx - 152, m_Lefty)
109
+            myBit.Dispose()
110
+            myPicGrh.Dispose()
111
+        Catch ex As Exception
112
+            MsgBox(ex.Message)
113
+        End Try
114
+    End Sub
115
+End Class

+ 295
- 295
TENDEN-MES-SYS/圖片資料庫管理/鞋型圖片系統/鞋型圖片導入資料庫.Designer.vb Wyświetl plik

22
     '請勿使用程式碼編輯器進行修改。
22
     '請勿使用程式碼編輯器進行修改。
23
     <System.Diagnostics.DebuggerStepThrough()>
23
     <System.Diagnostics.DebuggerStepThrough()>
24
     Private  Sub InitializeComponent()
24
     Private  Sub InitializeComponent()
25
-        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
-        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
-        Me.Label9 = New System.Windows.Forms.Label()
30
-        Me.檔案名稱_tb = New System.Windows.Forms.TextBox()
31
-        Me.WebBrowser1 = New System.Windows.Forms.WebBrowser()
32
-        Me.訂單控制表_dgv = New System.Windows.Forms.DataGridView()
33
-        Me.Label1 = New System.Windows.Forms.Label()
34
-        Me.訂單控制表顏色清單_dgv = New System.Windows.Forms.DataGridView()
35
-        Me.Label7 = New System.Windows.Forms.Label()
36
-        Me.訂單控制表TVW清單_dgv = New System.Windows.Forms.DataGridView()
37
-        Me.Label11 = New System.Windows.Forms.Label()
38
-        Me.WebBrowser2 = New System.Windows.Forms.WebBrowser()
39
-        Me.TextBox7 = New System.Windows.Forms.TextBox()
40
-        Me.Label13 = New System.Windows.Forms.Label()
41
-        Me.讀取料夾路徑_tb = New System.Windows.Forms.Button()
25
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
42
         Me.FolderBrowserDialog1 = New System.Windows.Forms.FolderBrowserDialog()
29
         Me.FolderBrowserDialog1 = New System.Windows.Forms.FolderBrowserDialog()
43
-        Me.Label6 = New System.Windows.Forms.Label()
30
+        Me.Label5 = New System.Windows.Forms.Label()
31
+        Me.Label9 = New System.Windows.Forms.Label()
44
         Me.Style新增清單_bt = New System.Windows.Forms.Button()
32
         Me.Style新增清單_bt = New System.Windows.Forms.Button()
45
         Me.Style查詢_bt = New System.Windows.Forms.Button()
33
         Me.Style查詢_bt = New System.Windows.Forms.Button()
46
         Me.Color新增清單_bt = New System.Windows.Forms.Button()
34
         Me.Color新增清單_bt = New System.Windows.Forms.Button()
47
         Me.Color查詢_bt = New System.Windows.Forms.Button()
35
         Me.Color查詢_bt = New System.Windows.Forms.Button()
36
+        Me.檔案名稱_tb = New System.Windows.Forms.TextBox()
48
         Me.Label2 = New System.Windows.Forms.Label()
37
         Me.Label2 = New System.Windows.Forms.Label()
49
         Me.Label3 = New System.Windows.Forms.Label()
38
         Me.Label3 = New System.Windows.Forms.Label()
50
         Me.Label4 = New System.Windows.Forms.Label()
39
         Me.Label4 = New System.Windows.Forms.Label()
51
         Me.Category_cb = New System.Windows.Forms.ComboBox()
40
         Me.Category_cb = New System.Windows.Forms.ComboBox()
52
-        Me.Label5 = New System.Windows.Forms.Label()
53
         Me.確認儲存_bt = New System.Windows.Forms.Button()
41
         Me.確認儲存_bt = New System.Windows.Forms.Button()
54
-        Me.TextBox1 = New System.Windows.Forms.TextBox()
55
         Me.中底或其他LOGO_ch = New System.Windows.Forms.CheckBox()
42
         Me.中底或其他LOGO_ch = New System.Windows.Forms.CheckBox()
56
         Me.中底_其他LOGO_tb = New System.Windows.Forms.TextBox()
43
         Me.中底_其他LOGO_tb = New System.Windows.Forms.TextBox()
44
+        Me.WebBrowser1 = New System.Windows.Forms.WebBrowser()
45
+        Me.訂單控制表_dgv = New System.Windows.Forms.DataGridView()
46
+        Me.Label1 = New System.Windows.Forms.Label()
57
         Me.Style_tb = New System.Windows.Forms.TextBox()
47
         Me.Style_tb = New System.Windows.Forms.TextBox()
58
         Me.Style刷新_bt = New System.Windows.Forms.Button()
48
         Me.Style刷新_bt = New System.Windows.Forms.Button()
59
         Me.TVW_tb = New System.Windows.Forms.TextBox()
49
         Me.TVW_tb = New System.Windows.Forms.TextBox()
50
+        Me.訂單控制表顏色清單_dgv = New System.Windows.Forms.DataGridView()
51
+        Me.Label7 = New System.Windows.Forms.Label()
60
         Me.Color刷新_bt = New System.Windows.Forms.Button()
52
         Me.Color刷新_bt = New System.Windows.Forms.Button()
61
         Me.Color_tb = New System.Windows.Forms.TextBox()
53
         Me.Color_tb = New System.Windows.Forms.TextBox()
62
         Me.Style清空_bt = New System.Windows.Forms.Button()
54
         Me.Style清空_bt = New System.Windows.Forms.Button()
63
         Me.Color清空_bt = New System.Windows.Forms.Button()
55
         Me.Color清空_bt = New System.Windows.Forms.Button()
64
-        Me.Button23 = New System.Windows.Forms.Button()
65
-        Me.Button8 = New System.Windows.Forms.Button()
66
-        Me.檔案刪除_bt = New System.Windows.Forms.Button()
56
+        Me.訂單控制表TVW清單_dgv = New System.Windows.Forms.DataGridView()
57
+        Me.Label11 = New System.Windows.Forms.Label()
67
         Me.TVW查詢_bt = New System.Windows.Forms.Button()
58
         Me.TVW查詢_bt = New System.Windows.Forms.Button()
68
         Me.TVW刷新_bt = New System.Windows.Forms.Button()
59
         Me.TVW刷新_bt = New System.Windows.Forms.Button()
69
         Me.TVW新增清單_bt = New System.Windows.Forms.Button()
60
         Me.TVW新增清單_bt = New System.Windows.Forms.Button()
70
-        Me.字體_NUD = New System.Windows.Forms.NumericUpDown()
61
+        Me.讀取料夾路徑_tb = New System.Windows.Forms.Button()
62
+        Me.Label13 = New System.Windows.Forms.Label()
63
+        Me.Label6 = New System.Windows.Forms.Label()
71
         Me.字體大小調整_lb = New System.Windows.Forms.Label()
64
         Me.字體大小調整_lb = New System.Windows.Forms.Label()
72
-        Me.Label8 = New System.Windows.Forms.Label()
65
+        Me.字體_NUD = New System.Windows.Forms.NumericUpDown()
73
         Me.季節_dgv = New System.Windows.Forms.DataGridView()
66
         Me.季節_dgv = New System.Windows.Forms.DataGridView()
67
+        Me.Label8 = New System.Windows.Forms.Label()
68
+        Me.檔案刪除_bt = New System.Windows.Forms.Button()
69
+        Me.TextBox1 = New System.Windows.Forms.TextBox()
70
+        Me.Button8 = New System.Windows.Forms.Button()
71
+        Me.Button23 = New System.Windows.Forms.Button()
72
+        Me.TextBox7 = New System.Windows.Forms.TextBox()
74
         Me.Panel1 = New System.Windows.Forms.Panel()
73
         Me.Panel1 = New System.Windows.Forms.Panel()
74
+        Me.WebBrowser2 = New System.Windows.Forms.WebBrowser()
75
         Me.Label10 = New System.Windows.Forms.Label()
75
         Me.Label10 = New System.Windows.Forms.Label()
76
         Me.季節_tb = New System.Windows.Forms.TextBox()
76
         Me.季節_tb = New System.Windows.Forms.TextBox()
77
-        Me.季節清空_bt = New System.Windows.Forms.Button()
78
-        Me.季節刷新_bt = New System.Windows.Forms.Button()
79
-        Me.季節查詢_bt = New System.Windows.Forms.Button()
80
         Me.季節新增清單_bt = New System.Windows.Forms.Button()
77
         Me.季節新增清單_bt = New System.Windows.Forms.Button()
78
+        Me.季節查詢_bt = New System.Windows.Forms.Button()
79
+        Me.季節刷新_bt = New System.Windows.Forms.Button()
80
+        Me.季節清空_bt = New System.Windows.Forms.Button()
81
         CType(Me.訂單控制表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
81
         CType(Me.訂單控制表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
82
         CType(Me.訂單控制表顏色清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
82
         CType(Me.訂單控制表顏色清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
83
         CType(Me.訂單控制表TVW清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
83
         CType(Me.訂單控制表TVW清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
86
         Me.Panel1.SuspendLayout()
86
         Me.Panel1.SuspendLayout()
87
         Me.SuspendLayout()
87
         Me.SuspendLayout()
88
         '
88
         '
89
+        'Label5
90
+        '
91
+        Me.Label5.AutoSize = True
92
+        Me.Label5.Location = New System.Drawing.Point(6, 101)
93
+        Me.Label5.Name = "Label5"
94
+        Me.Label5.Size = New System.Drawing.Size(63, 16)
95
+        Me.Label5.TabIndex = 509
96
+        Me.Label5.Text = "Category "
97
+        '
89
         'Label9
98
         'Label9
90
         '
99
         '
91
         Me.Label9.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
100
         Me.Label9.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
96
         Me.Label9.TabIndex = 504
105
         Me.Label9.TabIndex = 504
97
         Me.Label9.Text = "檔案名稱"
106
         Me.Label9.Text = "檔案名稱"
98
         '
107
         '
99
-        '檔案名稱_tb
100
-        '
101
-        Me.檔案名稱_tb.AllowDrop = True
102
-        Me.檔案名稱_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
103
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
104
-        Me.檔案名稱_tb.ForeColor = System.Drawing.Color.Black
105
-        Me.檔案名稱_tb.Location = New System.Drawing.Point(60, 515)
106
-        Me.檔案名稱_tb.Name = "檔案名稱_tb"
107
-        Me.檔案名稱_tb.Size = New System.Drawing.Size(654, 23)
108
-        Me.檔案名稱_tb.TabIndex = 503
109
-        '
110
-        'WebBrowser1
111
-        '
112
-        Me.WebBrowser1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
113
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
114
-        Me.WebBrowser1.Location = New System.Drawing.Point(5, 539)
115
-        Me.WebBrowser1.MinimumSize = New System.Drawing.Size(20, 20)
116
-        Me.WebBrowser1.Name = "WebBrowser1"
117
-        Me.WebBrowser1.Size = New System.Drawing.Size(709, 158)
118
-        Me.WebBrowser1.TabIndex = 520
119
-        Me.WebBrowser1.Url = New System.Uri("", System.UriKind.Relative)
120
-        '
121
-        '訂單控制表_dgv
122
-        '
123
-        DataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
124
-        Me.訂單控制表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
125
-        Me.訂單控制表_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
126
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
127
-        Me.訂單控制表_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
128
-        Me.訂單控制表_dgv.BackgroundColor = System.Drawing.Color.White
129
-        Me.訂單控制表_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
130
-        Me.訂單控制表_dgv.Location = New System.Drawing.Point(861, 20)
131
-        Me.訂單控制表_dgv.Name = "訂單控制表_dgv"
132
-        Me.訂單控制表_dgv.RowHeadersWidth = 5
133
-        Me.訂單控制表_dgv.RowTemplate.Height = 24
134
-        Me.訂單控制表_dgv.Size = New System.Drawing.Size(165, 677)
135
-        Me.訂單控制表_dgv.TabIndex = 521
136
-        '
137
-        'Label1
138
-        '
139
-        Me.Label1.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
140
-        Me.Label1.AutoSize = True
141
-        Me.Label1.Location = New System.Drawing.Point(862, 2)
142
-        Me.Label1.Name = "Label1"
143
-        Me.Label1.Size = New System.Drawing.Size(35, 16)
144
-        Me.Label1.TabIndex = 522
145
-        Me.Label1.Text = "Style"
146
-        '
147
-        '訂單控制表顏色清單_dgv
148
-        '
149
-        DataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
150
-        Me.訂單控制表顏色清單_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle6
151
-        Me.訂單控制表顏色清單_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
152
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
153
-        Me.訂單控制表顏色清單_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
154
-        Me.訂單控制表顏色清單_dgv.BackgroundColor = System.Drawing.Color.White
155
-        Me.訂單控制表顏色清單_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
156
-        Me.訂單控制表顏色清單_dgv.Location = New System.Drawing.Point(1173, 20)
157
-        Me.訂單控制表顏色清單_dgv.Name = "訂單控制表顏色清單_dgv"
158
-        Me.訂單控制表顏色清單_dgv.RowHeadersWidth = 5
159
-        Me.訂單控制表顏色清單_dgv.RowTemplate.Height = 24
160
-        Me.訂單控制表顏色清單_dgv.Size = New System.Drawing.Size(175, 677)
161
-        Me.訂單控制表顏色清單_dgv.TabIndex = 526
162
-        '
163
-        'Label7
164
-        '
165
-        Me.Label7.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
166
-        Me.Label7.AutoSize = True
167
-        Me.Label7.Location = New System.Drawing.Point(1172, 2)
168
-        Me.Label7.Name = "Label7"
169
-        Me.Label7.Size = New System.Drawing.Size(39, 16)
170
-        Me.Label7.TabIndex = 527
171
-        Me.Label7.Text = "Color"
172
-        '
173
-        '訂單控制表TVW清單_dgv
174
-        '
175
-        DataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
176
-        Me.訂單控制表TVW清單_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle7
177
-        Me.訂單控制表TVW清單_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
178
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
179
-        Me.訂單控制表TVW清單_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
180
-        Me.訂單控制表TVW清單_dgv.BackgroundColor = System.Drawing.Color.White
181
-        Me.訂單控制表TVW清單_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
182
-        Me.訂單控制表TVW清單_dgv.Location = New System.Drawing.Point(1027, 20)
183
-        Me.訂單控制表TVW清單_dgv.Name = "訂單控制表TVW清單_dgv"
184
-        Me.訂單控制表TVW清單_dgv.RowHeadersWidth = 5
185
-        Me.訂單控制表TVW清單_dgv.RowTemplate.Height = 24
186
-        Me.訂單控制表TVW清單_dgv.Size = New System.Drawing.Size(145, 677)
187
-        Me.訂單控制表TVW清單_dgv.TabIndex = 535
188
-        '
189
-        'Label11
190
-        '
191
-        Me.Label11.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
192
-        Me.Label11.AutoSize = True
193
-        Me.Label11.Location = New System.Drawing.Point(1029, 2)
194
-        Me.Label11.Name = "Label11"
195
-        Me.Label11.Size = New System.Drawing.Size(43, 16)
196
-        Me.Label11.TabIndex = 536
197
-        Me.Label11.Text = "TVW#"
198
-        '
199
-        'WebBrowser2
200
-        '
201
-        Me.WebBrowser2.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
202
-            Or System.Windows.Forms.AnchorStyles.Left) _
203
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
204
-        Me.WebBrowser2.Location = New System.Drawing.Point(5, 148)
205
-        Me.WebBrowser2.MinimumSize = New System.Drawing.Size(20, 20)
206
-        Me.WebBrowser2.Name = "WebBrowser2"
207
-        Me.WebBrowser2.Size = New System.Drawing.Size(709, 365)
208
-        Me.WebBrowser2.TabIndex = 540
209
-        Me.WebBrowser2.Url = New System.Uri("", System.UriKind.Relative)
210
-        '
211
-        'TextBox7
212
-        '
213
-        Me.TextBox7.AllowDrop = True
214
-        Me.TextBox7.ForeColor = System.Drawing.Color.Black
215
-        Me.TextBox7.Location = New System.Drawing.Point(3, 3)
216
-        Me.TextBox7.Multiline = True
217
-        Me.TextBox7.Name = "TextBox7"
218
-        Me.TextBox7.Size = New System.Drawing.Size(115, 23)
219
-        Me.TextBox7.TabIndex = 564
220
-        '
221
-        'Label13
222
-        '
223
-        Me.Label13.AutoSize = True
224
-        Me.Label13.Font = New System.Drawing.Font("微軟正黑體", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
225
-        Me.Label13.Location = New System.Drawing.Point(1, 122)
226
-        Me.Label13.Name = "Label13"
227
-        Me.Label13.Size = New System.Drawing.Size(86, 24)
228
-        Me.Label13.TabIndex = 562
229
-        Me.Label13.Text = "我的電腦"
230
-        '
231
-        '讀取料夾路徑_tb
232
-        '
233
-        Me.讀取料夾路徑_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
234
-        Me.讀取料夾路徑_tb.ForeColor = System.Drawing.Color.Blue
235
-        Me.讀取料夾路徑_tb.Location = New System.Drawing.Point(86, 122)
236
-        Me.讀取料夾路徑_tb.Name = "讀取料夾路徑_tb"
237
-        Me.讀取料夾路徑_tb.Size = New System.Drawing.Size(96, 24)
238
-        Me.讀取料夾路徑_tb.TabIndex = 561
239
-        Me.讀取料夾路徑_tb.Text = "讀取料夾路徑"
240
-        Me.讀取料夾路徑_tb.UseVisualStyleBackColor = True
241
-        '
242
-        'Label6
243
-        '
244
-        Me.Label6.AutoSize = True
245
-        Me.Label6.ForeColor = System.Drawing.Color.Red
246
-        Me.Label6.Location = New System.Drawing.Point(183, 125)
247
-        Me.Label6.Name = "Label6"
248
-        Me.Label6.Size = New System.Drawing.Size(424, 16)
249
-        Me.Label6.TabIndex = 570
250
-        Me.Label6.Text = "如檔案無法拖曳至伺服器FTP文件夾,請修改檔案名稱不要帶有中文字或是符號"
251
-        '
252
         'Style新增清單_bt
108
         'Style新增清單_bt
253
         '
109
         '
254
         Me.Style新增清單_bt.ForeColor = System.Drawing.Color.Olive
110
         Me.Style新增清單_bt.ForeColor = System.Drawing.Color.Olive
289
         Me.Color查詢_bt.Text = "查詢"
145
         Me.Color查詢_bt.Text = "查詢"
290
         Me.Color查詢_bt.UseVisualStyleBackColor = True
146
         Me.Color查詢_bt.UseVisualStyleBackColor = True
291
         '
147
         '
148
+        '檔案名稱_tb
149
+        '
150
+        Me.檔案名稱_tb.AllowDrop = True
151
+        Me.檔案名稱_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
152
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
153
+        Me.檔案名稱_tb.ForeColor = System.Drawing.Color.Black
154
+        Me.檔案名稱_tb.Location = New System.Drawing.Point(60, 515)
155
+        Me.檔案名稱_tb.Name = "檔案名稱_tb"
156
+        Me.檔案名稱_tb.Size = New System.Drawing.Size(654, 23)
157
+        Me.檔案名稱_tb.TabIndex = 503
158
+        '
292
         'Label2
159
         'Label2
293
         '
160
         '
294
         Me.Label2.AutoSize = True
161
         Me.Label2.AutoSize = True
326
         Me.Category_cb.Size = New System.Drawing.Size(149, 24)
193
         Me.Category_cb.Size = New System.Drawing.Size(149, 24)
327
         Me.Category_cb.TabIndex = 508
194
         Me.Category_cb.TabIndex = 508
328
         '
195
         '
329
-        'Label5
330
-        '
331
-        Me.Label5.AutoSize = True
332
-        Me.Label5.Location = New System.Drawing.Point(6, 101)
333
-        Me.Label5.Name = "Label5"
334
-        Me.Label5.Size = New System.Drawing.Size(63, 16)
335
-        Me.Label5.TabIndex = 509
336
-        Me.Label5.Text = "Category "
337
-        '
338
         '確認儲存_bt
196
         '確認儲存_bt
339
         '
197
         '
340
         Me.確認儲存_bt.Font = New System.Drawing.Font("微軟正黑體", 18.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
198
         Me.確認儲存_bt.Font = New System.Drawing.Font("微軟正黑體", 18.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
346
         Me.確認儲存_bt.Text = "確認儲存"
204
         Me.確認儲存_bt.Text = "確認儲存"
347
         Me.確認儲存_bt.UseVisualStyleBackColor = True
205
         Me.確認儲存_bt.UseVisualStyleBackColor = True
348
         '
206
         '
349
-        'TextBox1
350
-        '
351
-        Me.TextBox1.ForeColor = System.Drawing.Color.Black
352
-        Me.TextBox1.Location = New System.Drawing.Point(3, 32)
353
-        Me.TextBox1.Name = "TextBox1"
354
-        Me.TextBox1.Size = New System.Drawing.Size(82, 23)
355
-        Me.TextBox1.TabIndex = 513
356
-        '
357
         '中底或其他LOGO_ch
207
         '中底或其他LOGO_ch
358
         '
208
         '
359
         Me.中底或其他LOGO_ch.AutoSize = True
209
         Me.中底或其他LOGO_ch.AutoSize = True
372
         Me.中底_其他LOGO_tb.Size = New System.Drawing.Size(113, 23)
222
         Me.中底_其他LOGO_tb.Size = New System.Drawing.Size(113, 23)
373
         Me.中底_其他LOGO_tb.TabIndex = 515
223
         Me.中底_其他LOGO_tb.TabIndex = 515
374
         '
224
         '
225
+        'WebBrowser1
226
+        '
227
+        Me.WebBrowser1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
228
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
229
+        Me.WebBrowser1.Location = New System.Drawing.Point(5, 539)
230
+        Me.WebBrowser1.MinimumSize = New System.Drawing.Size(20, 20)
231
+        Me.WebBrowser1.Name = "WebBrowser1"
232
+        Me.WebBrowser1.Size = New System.Drawing.Size(709, 158)
233
+        Me.WebBrowser1.TabIndex = 520
234
+        Me.WebBrowser1.Url = New System.Uri("", System.UriKind.Relative)
235
+        '
236
+        '訂單控制表_dgv
237
+        '
238
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
239
+        Me.訂單控制表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
240
+        Me.訂單控制表_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
241
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
242
+        Me.訂單控制表_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
243
+        Me.訂單控制表_dgv.BackgroundColor = System.Drawing.Color.White
244
+        Me.訂單控制表_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
245
+        Me.訂單控制表_dgv.Location = New System.Drawing.Point(861, 20)
246
+        Me.訂單控制表_dgv.Name = "訂單控制表_dgv"
247
+        Me.訂單控制表_dgv.RowHeadersWidth = 5
248
+        Me.訂單控制表_dgv.RowTemplate.Height = 24
249
+        Me.訂單控制表_dgv.Size = New System.Drawing.Size(165, 677)
250
+        Me.訂單控制表_dgv.TabIndex = 521
251
+        '
252
+        'Label1
253
+        '
254
+        Me.Label1.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
255
+        Me.Label1.AutoSize = True
256
+        Me.Label1.Location = New System.Drawing.Point(862, 2)
257
+        Me.Label1.Name = "Label1"
258
+        Me.Label1.Size = New System.Drawing.Size(35, 16)
259
+        Me.Label1.TabIndex = 522
260
+        Me.Label1.Text = "Style"
261
+        '
375
         'Style_tb
262
         'Style_tb
376
         '
263
         '
377
         Me.Style_tb.ForeColor = System.Drawing.Color.Black
264
         Me.Style_tb.ForeColor = System.Drawing.Color.Black
398
         Me.TVW_tb.Size = New System.Drawing.Size(149, 23)
285
         Me.TVW_tb.Size = New System.Drawing.Size(149, 23)
399
         Me.TVW_tb.TabIndex = 525
286
         Me.TVW_tb.TabIndex = 525
400
         '
287
         '
288
+        '訂單控制表顏色清單_dgv
289
+        '
290
+        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
291
+        Me.訂單控制表顏色清單_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
292
+        Me.訂單控制表顏色清單_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
293
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
294
+        Me.訂單控制表顏色清單_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
295
+        Me.訂單控制表顏色清單_dgv.BackgroundColor = System.Drawing.Color.White
296
+        Me.訂單控制表顏色清單_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
297
+        Me.訂單控制表顏色清單_dgv.Location = New System.Drawing.Point(1173, 20)
298
+        Me.訂單控制表顏色清單_dgv.Name = "訂單控制表顏色清單_dgv"
299
+        Me.訂單控制表顏色清單_dgv.RowHeadersWidth = 5
300
+        Me.訂單控制表顏色清單_dgv.RowTemplate.Height = 24
301
+        Me.訂單控制表顏色清單_dgv.Size = New System.Drawing.Size(175, 677)
302
+        Me.訂單控制表顏色清單_dgv.TabIndex = 526
303
+        '
304
+        'Label7
305
+        '
306
+        Me.Label7.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
307
+        Me.Label7.AutoSize = True
308
+        Me.Label7.Location = New System.Drawing.Point(1172, 2)
309
+        Me.Label7.Name = "Label7"
310
+        Me.Label7.Size = New System.Drawing.Size(39, 16)
311
+        Me.Label7.TabIndex = 527
312
+        Me.Label7.Text = "Color"
313
+        '
401
         'Color刷新_bt
314
         'Color刷新_bt
402
         '
315
         '
403
         Me.Color刷新_bt.ForeColor = System.Drawing.Color.Red
316
         Me.Color刷新_bt.ForeColor = System.Drawing.Color.Red
436
         Me.Color清空_bt.Text = "清空"
349
         Me.Color清空_bt.Text = "清空"
437
         Me.Color清空_bt.UseVisualStyleBackColor = True
350
         Me.Color清空_bt.UseVisualStyleBackColor = True
438
         '
351
         '
439
-        'Button23
440
-        '
441
-        Me.Button23.ForeColor = System.Drawing.Color.Olive
442
-        Me.Button23.Location = New System.Drawing.Point(119, 3)
443
-        Me.Button23.Name = "Button23"
444
-        Me.Button23.Size = New System.Drawing.Size(25, 25)
445
-        Me.Button23.TabIndex = 532
446
-        Me.Button23.Text = "再"
447
-        Me.Button23.UseVisualStyleBackColor = True
448
-        '
449
-        'Button8
450
-        '
451
-        Me.Button8.ForeColor = System.Drawing.Color.Olive
452
-        Me.Button8.Location = New System.Drawing.Point(145, 3)
453
-        Me.Button8.Name = "Button8"
454
-        Me.Button8.Size = New System.Drawing.Size(25, 25)
455
-        Me.Button8.TabIndex = 533
456
-        Me.Button8.Text = "再"
457
-        Me.Button8.UseVisualStyleBackColor = True
352
+        '訂單控制表TVW清單_dgv
458
         '
353
         '
459
-        '檔案刪除_bt
354
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
355
+        Me.訂單控制表TVW清單_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
356
+        Me.訂單控制表TVW清單_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
357
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
358
+        Me.訂單控制表TVW清單_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
359
+        Me.訂單控制表TVW清單_dgv.BackgroundColor = System.Drawing.Color.White
360
+        Me.訂單控制表TVW清單_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
361
+        Me.訂單控制表TVW清單_dgv.Location = New System.Drawing.Point(1027, 20)
362
+        Me.訂單控制表TVW清單_dgv.Name = "訂單控制表TVW清單_dgv"
363
+        Me.訂單控制表TVW清單_dgv.RowHeadersWidth = 5
364
+        Me.訂單控制表TVW清單_dgv.RowTemplate.Height = 24
365
+        Me.訂單控制表TVW清單_dgv.Size = New System.Drawing.Size(145, 677)
366
+        Me.訂單控制表TVW清單_dgv.TabIndex = 535
460
         '
367
         '
461
-        Me.檔案刪除_bt.Location = New System.Drawing.Point(91, 30)
462
-        Me.檔案刪除_bt.Name = "檔案刪除_bt"
463
-        Me.檔案刪除_bt.Size = New System.Drawing.Size(79, 25)
464
-        Me.檔案刪除_bt.TabIndex = 534
465
-        Me.檔案刪除_bt.Text = "檔案刪除"
466
-        Me.檔案刪除_bt.UseVisualStyleBackColor = True
467
-        Me.檔案刪除_bt.Visible = False
368
+        'Label11
369
+        '
370
+        Me.Label11.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
371
+        Me.Label11.AutoSize = True
372
+        Me.Label11.Location = New System.Drawing.Point(1029, 2)
373
+        Me.Label11.Name = "Label11"
374
+        Me.Label11.Size = New System.Drawing.Size(43, 16)
375
+        Me.Label11.TabIndex = 536
376
+        Me.Label11.Text = "TVW#"
468
         '
377
         '
469
         'TVW查詢_bt
378
         'TVW查詢_bt
470
         '
379
         '
496
         Me.TVW新增清單_bt.Text = "新增清單"
405
         Me.TVW新增清單_bt.Text = "新增清單"
497
         Me.TVW新增清單_bt.UseVisualStyleBackColor = True
406
         Me.TVW新增清單_bt.UseVisualStyleBackColor = True
498
         '
407
         '
499
-        '字體_NUD
408
+        '讀取料夾路徑_tb
500
         '
409
         '
501
-        Me.字體_NUD.DecimalPlaces = 1
502
-        Me.字體_NUD.Increment = New Decimal(New Integer() {1, 0, 0, 65536})
503
-        Me.字體_NUD.Location = New System.Drawing.Point(674, 122)
504
-        Me.字體_NUD.Maximum = New Decimal(New Integer() {18, 0, 0, 0})
505
-        Me.字體_NUD.Minimum = New Decimal(New Integer() {6, 0, 0, 0})
506
-        Me.字體_NUD.Name = "字體_NUD"
507
-        Me.字體_NUD.Size = New System.Drawing.Size(38, 23)
508
-        Me.字體_NUD.TabIndex = 1634
509
-        Me.字體_NUD.Value = New Decimal(New Integer() {9, 0, 0, 0})
410
+        Me.讀取料夾路徑_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
411
+        Me.讀取料夾路徑_tb.ForeColor = System.Drawing.Color.Blue
412
+        Me.讀取料夾路徑_tb.Location = New System.Drawing.Point(86, 122)
413
+        Me.讀取料夾路徑_tb.Name = "讀取料夾路徑_tb"
414
+        Me.讀取料夾路徑_tb.Size = New System.Drawing.Size(96, 24)
415
+        Me.讀取料夾路徑_tb.TabIndex = 561
416
+        Me.讀取料夾路徑_tb.Text = "讀取料夾路徑"
417
+        Me.讀取料夾路徑_tb.UseVisualStyleBackColor = True
418
+        '
419
+        'Label13
420
+        '
421
+        Me.Label13.AutoSize = True
422
+        Me.Label13.Font = New System.Drawing.Font("微軟正黑體", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
423
+        Me.Label13.Location = New System.Drawing.Point(1, 122)
424
+        Me.Label13.Name = "Label13"
425
+        Me.Label13.Size = New System.Drawing.Size(86, 24)
426
+        Me.Label13.TabIndex = 562
427
+        Me.Label13.Text = "我的電腦"
428
+        '
429
+        'Label6
430
+        '
431
+        Me.Label6.AutoSize = True
432
+        Me.Label6.ForeColor = System.Drawing.Color.Red
433
+        Me.Label6.Location = New System.Drawing.Point(183, 125)
434
+        Me.Label6.Name = "Label6"
435
+        Me.Label6.Size = New System.Drawing.Size(424, 16)
436
+        Me.Label6.TabIndex = 570
437
+        Me.Label6.Text = "如檔案無法拖曳至伺服器FTP文件夾,請修改檔案名稱不要帶有中文字或是符號"
510
         '
438
         '
511
         '字體大小調整_lb
439
         '字體大小調整_lb
512
         '
440
         '
520
         Me.字體大小調整_lb.TabIndex = 1635
448
         Me.字體大小調整_lb.TabIndex = 1635
521
         Me.字體大小調整_lb.Text = "字體調整"
449
         Me.字體大小調整_lb.Text = "字體調整"
522
         '
450
         '
523
-        'Label8
451
+        '字體_NUD
524
         '
452
         '
525
-        Me.Label8.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
526
-        Me.Label8.AutoSize = True
527
-        Me.Label8.Location = New System.Drawing.Point(718, 2)
528
-        Me.Label8.Name = "Label8"
529
-        Me.Label8.Size = New System.Drawing.Size(49, 16)
530
-        Me.Label8.TabIndex = 1637
531
-        Me.Label8.Text = "Season"
453
+        Me.字體_NUD.DecimalPlaces = 1
454
+        Me.字體_NUD.Increment = New Decimal(New Integer() {1, 0, 0, 65536})
455
+        Me.字體_NUD.Location = New System.Drawing.Point(674, 122)
456
+        Me.字體_NUD.Maximum = New Decimal(New Integer() {18, 0, 0, 0})
457
+        Me.字體_NUD.Minimum = New Decimal(New Integer() {6, 0, 0, 0})
458
+        Me.字體_NUD.Name = "字體_NUD"
459
+        Me.字體_NUD.Size = New System.Drawing.Size(38, 23)
460
+        Me.字體_NUD.TabIndex = 1634
461
+        Me.字體_NUD.Value = New Decimal(New Integer() {9, 0, 0, 0})
532
         '
462
         '
533
         '季節_dgv
463
         '季節_dgv
534
         '
464
         '
535
-        DataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
536
-        Me.季節_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle8
465
+        DataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
466
+        Me.季節_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4
537
         Me.季節_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
467
         Me.季節_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
538
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
468
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
539
         Me.季節_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
469
         Me.季節_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
546
         Me.季節_dgv.Size = New System.Drawing.Size(143, 677)
476
         Me.季節_dgv.Size = New System.Drawing.Size(143, 677)
547
         Me.季節_dgv.TabIndex = 1636
477
         Me.季節_dgv.TabIndex = 1636
548
         '
478
         '
479
+        'Label8
480
+        '
481
+        Me.Label8.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
482
+        Me.Label8.AutoSize = True
483
+        Me.Label8.Location = New System.Drawing.Point(718, 2)
484
+        Me.Label8.Name = "Label8"
485
+        Me.Label8.Size = New System.Drawing.Size(49, 16)
486
+        Me.Label8.TabIndex = 1637
487
+        Me.Label8.Text = "Season"
488
+        '
489
+        '檔案刪除_bt
490
+        '
491
+        Me.檔案刪除_bt.Location = New System.Drawing.Point(91, 30)
492
+        Me.檔案刪除_bt.Name = "檔案刪除_bt"
493
+        Me.檔案刪除_bt.Size = New System.Drawing.Size(79, 25)
494
+        Me.檔案刪除_bt.TabIndex = 534
495
+        Me.檔案刪除_bt.Text = "檔案刪除"
496
+        Me.檔案刪除_bt.UseVisualStyleBackColor = True
497
+        Me.檔案刪除_bt.Visible = False
498
+        '
499
+        'TextBox1
500
+        '
501
+        Me.TextBox1.ForeColor = System.Drawing.Color.Black
502
+        Me.TextBox1.Location = New System.Drawing.Point(3, 32)
503
+        Me.TextBox1.Name = "TextBox1"
504
+        Me.TextBox1.Size = New System.Drawing.Size(82, 23)
505
+        Me.TextBox1.TabIndex = 513
506
+        '
507
+        'Button8
508
+        '
509
+        Me.Button8.ForeColor = System.Drawing.Color.Olive
510
+        Me.Button8.Location = New System.Drawing.Point(145, 3)
511
+        Me.Button8.Name = "Button8"
512
+        Me.Button8.Size = New System.Drawing.Size(25, 25)
513
+        Me.Button8.TabIndex = 533
514
+        Me.Button8.Text = "再"
515
+        Me.Button8.UseVisualStyleBackColor = True
516
+        '
517
+        'Button23
518
+        '
519
+        Me.Button23.ForeColor = System.Drawing.Color.Olive
520
+        Me.Button23.Location = New System.Drawing.Point(119, 3)
521
+        Me.Button23.Name = "Button23"
522
+        Me.Button23.Size = New System.Drawing.Size(25, 25)
523
+        Me.Button23.TabIndex = 532
524
+        Me.Button23.Text = "再"
525
+        Me.Button23.UseVisualStyleBackColor = True
526
+        '
527
+        'TextBox7
528
+        '
529
+        Me.TextBox7.AllowDrop = True
530
+        Me.TextBox7.ForeColor = System.Drawing.Color.Black
531
+        Me.TextBox7.Location = New System.Drawing.Point(3, 3)
532
+        Me.TextBox7.Multiline = True
533
+        Me.TextBox7.Name = "TextBox7"
534
+        Me.TextBox7.Size = New System.Drawing.Size(115, 23)
535
+        Me.TextBox7.TabIndex = 564
536
+        '
549
         'Panel1
537
         'Panel1
550
         '
538
         '
551
         Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
539
         Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
559
         Me.Panel1.Size = New System.Drawing.Size(188, 68)
547
         Me.Panel1.Size = New System.Drawing.Size(188, 68)
560
         Me.Panel1.TabIndex = 1638
548
         Me.Panel1.TabIndex = 1638
561
         '
549
         '
550
+        'WebBrowser2
551
+        '
552
+        Me.WebBrowser2.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
553
+            Or System.Windows.Forms.AnchorStyles.Left) _
554
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
555
+        Me.WebBrowser2.Location = New System.Drawing.Point(5, 148)
556
+        Me.WebBrowser2.MinimumSize = New System.Drawing.Size(20, 20)
557
+        Me.WebBrowser2.Name = "WebBrowser2"
558
+        Me.WebBrowser2.Size = New System.Drawing.Size(709, 365)
559
+        Me.WebBrowser2.TabIndex = 540
560
+        Me.WebBrowser2.Url = New System.Uri("", System.UriKind.Relative)
561
+        '
562
         'Label10
562
         'Label10
563
         '
563
         '
564
         Me.Label10.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
564
         Me.Label10.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
577
         Me.季節_tb.Size = New System.Drawing.Size(149, 23)
577
         Me.季節_tb.Size = New System.Drawing.Size(149, 23)
578
         Me.季節_tb.TabIndex = 1640
578
         Me.季節_tb.TabIndex = 1640
579
         '
579
         '
580
-        '季節清空_bt
581
-        '
582
-        Me.季節清空_bt.ForeColor = System.Drawing.Color.Blue
583
-        Me.季節清空_bt.Location = New System.Drawing.Point(217, 2)
584
-        Me.季節清空_bt.Name = "季節清空_bt"
585
-        Me.季節清空_bt.Size = New System.Drawing.Size(76, 24)
586
-        Me.季節清空_bt.TabIndex = 1644
587
-        Me.季節清空_bt.Text = "清空"
588
-        Me.季節清空_bt.UseVisualStyleBackColor = True
589
-        '
590
-        '季節刷新_bt
580
+        '季節新增清單_bt
591
         '
581
         '
592
-        Me.季節刷新_bt.ForeColor = System.Drawing.Color.Red
593
-        Me.季節刷新_bt.Location = New System.Drawing.Point(371, 2)
594
-        Me.季節新_bt.Name = "季節新_bt"
595
-        Me.季節新_bt.Size = New System.Drawing.Size(76, 24)
596
-        Me.季節刷新_bt.TabIndex = 1643
597
-        Me.季節新_bt.Text = "新"
598
-        Me.季節新_bt.UseVisualStyleBackColor = True
582
+        Me.季節新增清單_bt.ForeColor = System.Drawing.Color.Olive
583
+        Me.季節新增清單_bt.Location = New System.Drawing.Point(448, 2)
584
+        Me.季節新增清單_bt.Name = "季節新增清單_bt"
585
+        Me.季節新增清單_bt.Size = New System.Drawing.Size(76, 24)
586
+        Me.季節新增清單_bt.TabIndex = 1641
587
+        Me.季節新增清單_bt.Text = "新增清單"
588
+        Me.季節新增清單_bt.UseVisualStyleBackColor = True
599
         '
589
         '
600
         '季節查詢_bt
590
         '季節查詢_bt
601
         '
591
         '
607
         Me.季節查詢_bt.Text = "查詢"
597
         Me.季節查詢_bt.Text = "查詢"
608
         Me.季節查詢_bt.UseVisualStyleBackColor = True
598
         Me.季節查詢_bt.UseVisualStyleBackColor = True
609
         '
599
         '
610
-        '季節新增清單_bt
600
+        '季節新_bt
611
         '
601
         '
612
-        Me.季節新增清單_bt.ForeColor = System.Drawing.Color.Olive
613
-        Me.季節新增清單_bt.Location = New System.Drawing.Point(448, 2)
614
-        Me.季節新增清單_bt.Name = "季節新增清單_bt"
615
-        Me.季節新增清單_bt.Size = New System.Drawing.Size(76, 24)
616
-        Me.季節新增清單_bt.TabIndex = 1641
617
-        Me.季節新增清單_bt.Text = "新增清單"
618
-        Me.季節新增清單_bt.UseVisualStyleBackColor = True
602
+        Me.季節刷新_bt.ForeColor = System.Drawing.Color.Red
603
+        Me.季節刷新_bt.Location = New System.Drawing.Point(371, 2)
604
+        Me.季節刷新_bt.Name = "季節刷新_bt"
605
+        Me.季節刷新_bt.Size = New System.Drawing.Size(76, 24)
606
+        Me.季節刷新_bt.TabIndex = 1643
607
+        Me.季節刷新_bt.Text = "刷新"
608
+        Me.季節刷新_bt.UseVisualStyleBackColor = True
609
+        '
610
+        '季節清空_bt
611
+        '
612
+        Me.季節清空_bt.ForeColor = System.Drawing.Color.Blue
613
+        Me.季節清空_bt.Location = New System.Drawing.Point(217, 2)
614
+        Me.季節清空_bt.Name = "季節清空_bt"
615
+        Me.季節清空_bt.Size = New System.Drawing.Size(76, 24)
616
+        Me.季節清空_bt.TabIndex = 1644
617
+        Me.季節清空_bt.Text = "清空"
618
+        Me.季節清空_bt.UseVisualStyleBackColor = True
619
         '
619
         '
620
         '鞋型圖片導入資料庫
620
         '鞋型圖片導入資料庫
621
         '
621
         '
684
         Me.PerformLayout()
684
         Me.PerformLayout()
685
 
685
 
686
     End Sub
686
     End Sub
687
-    Friend WithEvents Label9 As Label
688
-    Friend WithEvents 檔案名稱_tb As TextBox
689
-    Friend WithEvents WebBrowser1 As WebBrowser
690
-    Friend WithEvents 訂單控制表_dgv As DataGridView
691
-    Friend WithEvents Label1 As Label
692
-    Friend WithEvents 訂單控制表顏色清單_dgv As DataGridView
693
-    Friend WithEvents Label7 As Label
694
-    Friend WithEvents 訂單控制表TVW清單_dgv As DataGridView
695
-    Friend WithEvents Label11 As Label
696
-    Friend WithEvents WebBrowser2 As WebBrowser
697
-    Friend WithEvents TextBox7 As TextBox
698
-    Friend WithEvents Label13 As Label
699
-    Friend WithEvents 讀取料夾路徑_tb As Button
700
     Friend WithEvents FolderBrowserDialog1 As FolderBrowserDialog
687
     Friend WithEvents FolderBrowserDialog1 As FolderBrowserDialog
701
-    Friend WithEvents Label6 As Label
688
+    Friend WithEvents Label5 As Label
689
+    Friend WithEvents Label9 As Label
702
     Friend WithEvents Style新增清單_bt As Button
690
     Friend WithEvents Style新增清單_bt As Button
703
     Friend WithEvents Style查詢_bt As Button
691
     Friend WithEvents Style查詢_bt As Button
704
     Friend WithEvents Color新增清單_bt As Button
692
     Friend WithEvents Color新增清單_bt As Button
705
     Friend WithEvents Color查詢_bt As Button
693
     Friend WithEvents Color查詢_bt As Button
694
+    Friend WithEvents 檔案名稱_tb As TextBox
706
     Friend WithEvents Label2 As Label
695
     Friend WithEvents Label2 As Label
707
     Friend WithEvents Label3 As Label
696
     Friend WithEvents Label3 As Label
708
     Friend WithEvents Label4 As Label
697
     Friend WithEvents Label4 As Label
709
     Friend WithEvents Category_cb As ComboBox
698
     Friend WithEvents Category_cb As ComboBox
710
-    Friend WithEvents Label5 As Label
711
     Friend WithEvents 確認儲存_bt As Button
699
     Friend WithEvents 確認儲存_bt As Button
712
-    Friend WithEvents TextBox1 As TextBox
713
     Friend WithEvents 中底或其他LOGO_ch As CheckBox
700
     Friend WithEvents 中底或其他LOGO_ch As CheckBox
714
     Friend WithEvents 中底_其他LOGO_tb As TextBox
701
     Friend WithEvents 中底_其他LOGO_tb As TextBox
702
+    Friend WithEvents WebBrowser1 As WebBrowser
703
+    Friend WithEvents 訂單控制表_dgv As DataGridView
704
+    Friend WithEvents Label1 As Label
715
     Friend WithEvents Style_tb As TextBox
705
     Friend WithEvents Style_tb As TextBox
716
     Friend WithEvents Style刷新_bt As Button
706
     Friend WithEvents Style刷新_bt As Button
717
     Friend WithEvents TVW_tb As TextBox
707
     Friend WithEvents TVW_tb As TextBox
708
+    Friend WithEvents 訂單控制表顏色清單_dgv As DataGridView
709
+    Friend WithEvents Label7 As Label
718
     Friend WithEvents Color刷新_bt As Button
710
     Friend WithEvents Color刷新_bt As Button
719
     Friend WithEvents Color_tb As TextBox
711
     Friend WithEvents Color_tb As TextBox
720
     Friend WithEvents Style清空_bt As Button
712
     Friend WithEvents Style清空_bt As Button
721
     Friend WithEvents Color清空_bt As Button
713
     Friend WithEvents Color清空_bt As Button
722
-    Friend WithEvents Button23 As Button
723
-    Friend WithEvents Button8 As Button
724
-    Friend WithEvents 檔案刪除_bt As Button
714
+    Friend WithEvents 訂單控制表TVW清單_dgv As DataGridView
715
+    Friend WithEvents Label11 As Label
725
     Friend WithEvents TVW查詢_bt As Button
716
     Friend WithEvents TVW查詢_bt As Button
726
     Friend WithEvents TVW刷新_bt As Button
717
     Friend WithEvents TVW刷新_bt As Button
727
     Friend WithEvents TVW新增清單_bt As Button
718
     Friend WithEvents TVW新增清單_bt As Button
728
-    Friend WithEvents 字體_NUD As NumericUpDown
719
+    Friend WithEvents 讀取料夾路徑_tb As Button
720
+    Friend WithEvents Label13 As Label
721
+    Friend WithEvents Label6 As Label
729
     Friend WithEvents 字體大小調整_lb As Label
722
     Friend WithEvents 字體大小調整_lb As Label
730
-    Friend WithEvents Label8 As Label
723
+    Friend WithEvents 字體_NUD As NumericUpDown
731
     Friend WithEvents 季節_dgv As DataGridView
724
     Friend WithEvents 季節_dgv As DataGridView
725
+    Friend WithEvents Label8 As Label
726
+    Friend WithEvents 檔案刪除_bt As Button
727
+    Friend WithEvents TextBox1 As TextBox
728
+    Friend WithEvents Button8 As Button
729
+    Friend WithEvents Button23 As Button
730
+    Friend WithEvents TextBox7 As TextBox
732
     Friend WithEvents Panel1 As Panel
731
     Friend WithEvents Panel1 As Panel
732
+    Friend WithEvents WebBrowser2 As WebBrowser
733
     Friend WithEvents Label10 As Label
733
     Friend WithEvents Label10 As Label
734
     Friend WithEvents 季節_tb As TextBox
734
     Friend WithEvents 季節_tb As TextBox
735
-    Friend WithEvents 季節清空_bt As Button
736
-    Friend WithEvents 季節刷新_bt As Button
737
-    Friend WithEvents 季節查詢_bt As Button
738
     Friend WithEvents 季節新增清單_bt As Button
735
     Friend WithEvents 季節新增清單_bt As Button
736
+    Friend WithEvents 季節查詢_bt As Button
737
+    Friend WithEvents 季節刷新_bt As Button
738
+    Friend WithEvents 季節清空_bt As Button
739
 End Class
739
 End Class
740
 
740
 
741
 
741
 

+ 9
- 0
TENDEN-MES-SYS/圖片資料庫管理/鞋型圖片系統/鞋型圖片導入資料庫.vb Wyświetl plik

228
             MsgBox(ex.Message)
228
             MsgBox(ex.Message)
229
         End Try
229
         End Try
230
     End Sub
230
     End Sub
231
+
232
+    Private Sub Button8_Click(sender As Object, e As EventArgs) Handles Button8.Click
233
+
234
+    End Sub
235
+
236
+    Private Sub Button23_Click(sender As Object, e As EventArgs) Handles Button23.Click
237
+
238
+    End Sub
239
+
231
     Private Sub 檔案名稱_tb_DragEnter(sender As Object, e As DragEventArgs) Handles 檔案名稱_tb.DragEnter
240
     Private Sub 檔案名稱_tb_DragEnter(sender As Object, e As DragEventArgs) Handles 檔案名稱_tb.DragEnter
232
         If e.Data.GetDataPresent(DataFormats.FileDrop) Then
241
         If e.Data.GetDataPresent(DataFormats.FileDrop) Then
233
             Dim files As String()
242
             Dim files As String()

+ 75
- 15
TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/保證書出貨統計資料.Designer.vb Wyświetl plik

22
     '請勿使用程式碼編輯器進行修改。
22
     '請勿使用程式碼編輯器進行修改。
23
     <System.Diagnostics.DebuggerStepThrough()>
23
     <System.Diagnostics.DebuggerStepThrough()>
24
     Private  Sub InitializeComponent()
24
     Private  Sub InitializeComponent()
25
+        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
25
         Me.驗貨報告圖庫_dgv = New System.Windows.Forms.DataGridView()
27
         Me.驗貨報告圖庫_dgv = New System.Windows.Forms.DataGridView()
26
         Me.出貨保證書大圖_bt = New System.Windows.Forms.Button()
28
         Me.出貨保證書大圖_bt = New System.Windows.Forms.Button()
27
         Me.垂直翻轉_bt = New System.Windows.Forms.Button()
29
         Me.垂直翻轉_bt = New System.Windows.Forms.Button()
80
         Me.Label37 = New System.Windows.Forms.Label()
82
         Me.Label37 = New System.Windows.Forms.Label()
81
         Me.字體大小調整_lb = New System.Windows.Forms.Label()
83
         Me.字體大小調整_lb = New System.Windows.Forms.Label()
82
         Me.字體_NUD = New System.Windows.Forms.NumericUpDown()
84
         Me.字體_NUD = New System.Windows.Forms.NumericUpDown()
83
-        Me.PictureBox1 = New System.Windows.Forms.PictureBox()
85
+        Me.驗貨報告_pb = New System.Windows.Forms.PictureBox()
86
+        Me.Panel1 = New System.Windows.Forms.Panel()
87
+        Me.Label38 = New System.Windows.Forms.Label()
88
+        Me.圖片資料庫管理_dgv = New System.Windows.Forms.DataGridView()
84
         CType(Me.驗貨報告圖庫_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
89
         CType(Me.驗貨報告圖庫_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
85
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).BeginInit()
90
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).BeginInit()
86
-        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
91
+        CType(Me.驗貨報告_pb, System.ComponentModel.ISupportInitialize).BeginInit()
92
+        Me.Panel1.SuspendLayout()
93
+        CType(Me.圖片資料庫管理_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
87
         Me.SuspendLayout()
94
         Me.SuspendLayout()
88
         '
95
         '
89
         '驗貨報告圖庫_dgv
96
         '驗貨報告圖庫_dgv
711
         Me.字體_NUD.TabIndex = 1630
718
         Me.字體_NUD.TabIndex = 1630
712
         Me.字體_NUD.Value = New Decimal(New Integer() {9, 0, 0, 0})
719
         Me.字體_NUD.Value = New Decimal(New Integer() {9, 0, 0, 0})
713
         '
720
         '
714
-        'PictureBox1
721
+        '驗貨報告_pb
715
         '
722
         '
716
-        Me.PictureBox1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
723
+        Me.驗貨報告_pb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
717
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
724
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
718
-        Me.PictureBox1.BackgroundImage = Global.天盾國際管理系統.My.Resources.Resources._9572466
719
-        Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
720
-        Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
721
-        Me.PictureBox1.Location = New System.Drawing.Point(5, 28)
722
-        Me.PictureBox1.Name = "PictureBox1"
723
-        Me.PictureBox1.Size = New System.Drawing.Size(271, 271)
724
-        Me.PictureBox1.TabIndex = 502
725
-        Me.PictureBox1.TabStop = False
725
+        Me.驗貨報告_pb.BackgroundImage = Global.天盾國際管理系統.My.Resources.Resources._9572466
726
+        Me.驗貨報告_pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
727
+        Me.驗貨報告_pb.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
728
+        Me.驗貨報告_pb.Location = New System.Drawing.Point(5, 28)
729
+        Me.驗貨報告_pb.Name = "驗貨報告_pb"
730
+        Me.驗貨報告_pb.Size = New System.Drawing.Size(271, 271)
731
+        Me.驗貨報告_pb.TabIndex = 502
732
+        Me.驗貨報告_pb.TabStop = False
733
+        '
734
+        'Panel1
735
+        '
736
+        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
737
+        Me.Panel1.Controls.Add(Me.Label38)
738
+        Me.Panel1.Controls.Add(Me.圖片資料庫管理_dgv)
739
+        Me.Panel1.Location = New System.Drawing.Point(657, 182)
740
+        Me.Panel1.Name = "Panel1"
741
+        Me.Panel1.Size = New System.Drawing.Size(205, 303)
742
+        Me.Panel1.TabIndex = 1632
743
+        '
744
+        'Label38
745
+        '
746
+        Me.Label38.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
747
+        Me.Label38.AutoSize = True
748
+        Me.Label38.ForeColor = System.Drawing.Color.Black
749
+        Me.Label38.Location = New System.Drawing.Point(11, 7)
750
+        Me.Label38.Name = "Label38"
751
+        Me.Label38.Size = New System.Drawing.Size(176, 16)
752
+        Me.Label38.TabIndex = 708
753
+        Me.Label38.Text = "起先選擇要開啟哪個圖片資料庫"
754
+        '
755
+        '圖片資料庫管理_dgv
756
+        '
757
+        DataGridViewCellStyle5.BackColor = System.Drawing.Color.White
758
+        Me.圖片資料庫管理_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
759
+        Me.圖片資料庫管理_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
760
+            Or System.Windows.Forms.AnchorStyles.Left) _
761
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
762
+        Me.圖片資料庫管理_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
763
+        Me.圖片資料庫管理_dgv.BackgroundColor = System.Drawing.Color.White
764
+        DataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
765
+        DataGridViewCellStyle6.BackColor = System.Drawing.Color.White
766
+        DataGridViewCellStyle6.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
767
+        DataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText
768
+        DataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight
769
+        DataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText
770
+        DataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
771
+        Me.圖片資料庫管理_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle6
772
+        Me.圖片資料庫管理_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
773
+        Me.圖片資料庫管理_dgv.Location = New System.Drawing.Point(3, 29)
774
+        Me.圖片資料庫管理_dgv.Name = "圖片資料庫管理_dgv"
775
+        Me.圖片資料庫管理_dgv.RowHeadersWidth = 5
776
+        Me.圖片資料庫管理_dgv.RowTemplate.Height = 24
777
+        Me.圖片資料庫管理_dgv.Size = New System.Drawing.Size(195, 269)
778
+        Me.圖片資料庫管理_dgv.TabIndex = 707
726
         '
779
         '
727
         '保證書出貨統計資料
780
         '保證書出貨統計資料
728
         '
781
         '
729
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
782
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
730
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
783
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
731
         Me.ClientSize = New System.Drawing.Size(1350, 701)
784
         Me.ClientSize = New System.Drawing.Size(1350, 701)
785
+        Me.Controls.Add(Me.Panel1)
732
         Me.Controls.Add(Me.字體_NUD)
786
         Me.Controls.Add(Me.字體_NUD)
733
         Me.Controls.Add(Me.Label37)
787
         Me.Controls.Add(Me.Label37)
734
         Me.Controls.Add(Me.Label36)
788
         Me.Controls.Add(Me.Label36)
785
         Me.Controls.Add(Me.逆時鐘90度旋轉_bt)
839
         Me.Controls.Add(Me.逆時鐘90度旋轉_bt)
786
         Me.Controls.Add(Me.順時鐘90度旋轉_bt)
840
         Me.Controls.Add(Me.順時鐘90度旋轉_bt)
787
         Me.Controls.Add(Me.出貨保證書大圖_bt)
841
         Me.Controls.Add(Me.出貨保證書大圖_bt)
788
-        Me.Controls.Add(Me.PictureBox1)
842
+        Me.Controls.Add(Me.驗貨報告_pb)
789
         Me.Controls.Add(Me.驗貨報告圖庫_dgv)
843
         Me.Controls.Add(Me.驗貨報告圖庫_dgv)
790
         Me.Controls.Add(Me.字體大小調整_lb)
844
         Me.Controls.Add(Me.字體大小調整_lb)
791
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
845
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
794
         Me.Text = "保證書出貨統計資料"
848
         Me.Text = "保證書出貨統計資料"
795
         CType(Me.驗貨報告圖庫_dgv, System.ComponentModel.ISupportInitialize).EndInit()
849
         CType(Me.驗貨報告圖庫_dgv, System.ComponentModel.ISupportInitialize).EndInit()
796
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).EndInit()
850
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).EndInit()
797
-        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
851
+        CType(Me.驗貨報告_pb, System.ComponentModel.ISupportInitialize).EndInit()
852
+        Me.Panel1.ResumeLayout(False)
853
+        Me.Panel1.PerformLayout()
854
+        CType(Me.圖片資料庫管理_dgv, System.ComponentModel.ISupportInitialize).EndInit()
798
         Me.ResumeLayout(False)
855
         Me.ResumeLayout(False)
799
         Me.PerformLayout()
856
         Me.PerformLayout()
800
 
857
 
801
     End Sub
858
     End Sub
802
 
859
 
803
     Friend WithEvents 驗貨報告圖庫_dgv As DataGridView
860
     Friend WithEvents 驗貨報告圖庫_dgv As DataGridView
804
-    Friend WithEvents PictureBox1 As PictureBox
861
+    Friend WithEvents 驗貨報告_pb As PictureBox
805
     Friend WithEvents 出貨保證書大圖_bt As Button
862
     Friend WithEvents 出貨保證書大圖_bt As Button
806
     Friend WithEvents 垂直翻轉_bt As Button
863
     Friend WithEvents 垂直翻轉_bt As Button
807
     Friend WithEvents 水平翻轉_bt As Button
864
     Friend WithEvents 水平翻轉_bt As Button
859
     Friend WithEvents Label37 As Label
916
     Friend WithEvents Label37 As Label
860
     Friend WithEvents 字體大小調整_lb As Label
917
     Friend WithEvents 字體大小調整_lb As Label
861
     Friend WithEvents 字體_NUD As NumericUpDown
918
     Friend WithEvents 字體_NUD As NumericUpDown
919
+    Friend WithEvents Panel1 As Panel
920
+    Friend WithEvents Label38 As Label
921
+    Friend WithEvents 圖片資料庫管理_dgv As DataGridView
862
 End Class
922
 End Class
863
 
923
 

+ 30
- 19
TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/保證書出貨統計資料.vb Wyświetl plik

2
 Imports System.IO
2
 Imports System.IO
3
 Public Class 保證書出貨統計資料
3
 Public Class 保證書出貨統計資料
4
     ReadOnly ds As New DataSet
4
     ReadOnly ds As New DataSet
5
+    Private Sub Set_工程圖片資料庫狀態()
6
+        Dim ds9 As New DataSet : 圖片資料庫管理_dgv.DataSource = Nothing : ds9.Clear()
7
+        圖片資料庫管理_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
8
+        圖片資料庫管理_dgv.ColumnHeadersHeight = 25
9
+        圖片資料庫管理_dgv.AllowUserToAddRows = False
10
+        SQL_圖片資料庫管理查詢()
11
+        da.Fill(ds9) : 圖片資料庫管理_dgv.DataSource = ds9.Tables(0) : conn.Close()
12
+        圖片資料庫管理_dgv.Columns(0).FillWeight = 100 : 圖片資料庫管理_dgv.Columns(1).Visible = False
13
+    End Sub
5
     Private Sub Set_保證書出貨清單清單()
14
     Private Sub Set_保證書出貨清單清單()
6
         Try
15
         Try
7
             驗貨報告圖庫_dgv.DataSource = Nothing : ds.Clear()
16
             驗貨報告圖庫_dgv.DataSource = Nothing : ds.Clear()
54
     Private Sub 保證書出貨統計資料_Load(sender As Object, e As EventArgs) Handles MyBase.Load
63
     Private Sub 保證書出貨統計資料_Load(sender As Object, e As EventArgs) Handles MyBase.Load
55
         Try
64
         Try
56
             Me.MdiParent = TENDEN_MES_SYS : Me.WindowState = 2 : Me.AutoScroll = True
65
             Me.MdiParent = TENDEN_MES_SYS : Me.WindowState = 2 : Me.AutoScroll = True
57
-            Set_保證書出貨清單清單()
58
-            Set_自動彙總()
66
+            Set_工程圖片資料庫狀態()
67
+
59
             If TENDEN_MES_SYS.Size.Width > 1440 And TENDEN_MES_SYS.Size.Height > 900 Then
68
             If TENDEN_MES_SYS.Size.Width > 1440 And TENDEN_MES_SYS.Size.Height > 900 Then
60
                 字體_NUD.Value = 9
69
                 字體_NUD.Value = 9
61
             ElseIf TENDEN_MES_SYS.Size.Width <= 1440 And TENDEN_MES_SYS.Size.Height <= 900 Then
70
             ElseIf TENDEN_MES_SYS.Size.Width <= 1440 And TENDEN_MES_SYS.Size.Height <= 900 Then
79
     Private Sub 字體_NUD_ValueChanged(sender As Object, e As EventArgs) Handles 字體_NUD.ValueChanged
88
     Private Sub 字體_NUD_ValueChanged(sender As Object, e As EventArgs) Handles 字體_NUD.ValueChanged
80
         驗貨報告圖庫_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", 字體_NUD.Value)
89
         驗貨報告圖庫_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", 字體_NUD.Value)
81
     End Sub
90
     End Sub
82
-    Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 驗貨報告圖庫_dgv.CellClick
91
+    Private Sub 圖片資料庫管理_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 圖片資料庫管理_dgv.CellClick
92
+        If e.RowIndex = -1 Then : Else
93
+            PA20 = 圖片資料庫管理_dgv(0, e.RowIndex).Value.ToString : Set_保證書出貨清單清單() : Set_自動彙總() : Panel1.Visible = False
94
+        End If
95
+    End Sub
96
+    Private Sub 驗貨報告圖庫_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 驗貨報告圖庫_dgv.CellClick
83
         Try
97
         Try
84
             If e.RowIndex = -1 Then : Else
98
             If e.RowIndex = -1 Then : Else
85
-                PictureBox1.Image = Nothing
86
-                PA = 驗貨報告圖庫_dgv(18, e.RowIndex).Value.ToString : SQL_驗貨報告()
87
-                PictureBox1.BackgroundImage = Nothing
88
-                While dr.Read() = True
89
-                    Dim unused As Byte() = New Byte(-1) {}
90
-                    Dim bytes As Byte() = DirectCast(dr.Item("驗貨報告"), Byte())
91
-                    Dim oStream As New MemoryStream(bytes)
92
-                    PictureBox1.Image = Bitmap.FromStream(oStream)
93
-                End While
94
-                conn.Close()
95
-                PictureBox1.SizeMode = 4
96
-                驗貨報告 = 驗貨報告圖庫_dgv(18, e.RowIndex).Value.ToString
99
+                '------------驗貨報告讀取--------------------------------------------------------------------------------------------
100
+                PA1 = PA20 : PA2 = 驗貨報告圖庫_dgv("驗貨報告圖片", e.RowIndex).Value.ToString
101
+                If 驗貨報告圖庫_dgv("驗貨報告圖片", e.RowIndex).Value.ToString = "" Then : 驗貨報告_pb.Image = Nothing : Else
102
+                    SQL_驗貨報告() : 驗貨報告_pb.Image = Nothing
103
+                    While dr.Read() = True
104
+                        Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("驗貨報告"), Byte())
105
+                        Dim oStream As New MemoryStream(bytes) : 驗貨報告_pb.Image = Bitmap.FromStream(oStream)
106
+                    End While : conn.Close() : 驗貨報告_pb.SizeMode = 4
107
+                End If : 圖片傳遞 = 驗貨報告_pb.Image
97
             End If
108
             End If
98
         Catch ex As Exception
109
         Catch ex As Exception
99
             MsgBox(ex.Message)
110
             MsgBox(ex.Message)
121
         驗貨報告大圖.ShowDialog()
132
         驗貨報告大圖.ShowDialog()
122
     End Sub
133
     End Sub
123
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles 順時鐘90度旋轉_bt.Click
134
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles 順時鐘90度旋轉_bt.Click
124
-        PictureBox1.Image.RotateFlip(RotateFlipType.Rotate90FlipNone) : PictureBox1.Refresh() : PictureBox1.SizeMode = 4
135
+        驗貨報告_pb.Image.RotateFlip(RotateFlipType.Rotate90FlipNone) : 驗貨報告_pb.Refresh() : 驗貨報告_pb.SizeMode = 4
125
     End Sub
136
     End Sub
126
     Private Sub Button2_Click(sender As Object, e As EventArgs) Handles 逆時鐘90度旋轉_bt.Click
137
     Private Sub Button2_Click(sender As Object, e As EventArgs) Handles 逆時鐘90度旋轉_bt.Click
127
-        PictureBox1.Image.RotateFlip(RotateFlipType.Rotate270FlipNone) : PictureBox1.Refresh() : PictureBox1.SizeMode = 4
138
+        驗貨報告_pb.Image.RotateFlip(RotateFlipType.Rotate270FlipNone) : 驗貨報告_pb.Refresh() : 驗貨報告_pb.SizeMode = 4
128
     End Sub
139
     End Sub
129
     Private Sub Button3_Click(sender As Object, e As EventArgs) Handles 水平翻轉_bt.Click
140
     Private Sub Button3_Click(sender As Object, e As EventArgs) Handles 水平翻轉_bt.Click
130
-        PictureBox1.Image.RotateFlip(RotateFlipType.Rotate180FlipY) : PictureBox1.Refresh() : PictureBox1.SizeMode = 4
141
+        驗貨報告_pb.Image.RotateFlip(RotateFlipType.Rotate180FlipY) : 驗貨報告_pb.Refresh() : 驗貨報告_pb.SizeMode = 4
131
     End Sub
142
     End Sub
132
     Private Sub Button4_Click(sender As Object, e As EventArgs) Handles 垂直翻轉_bt.Click
143
     Private Sub Button4_Click(sender As Object, e As EventArgs) Handles 垂直翻轉_bt.Click
133
-        PictureBox1.Image.RotateFlip(RotateFlipType.Rotate180FlipX) : PictureBox1.Refresh() : PictureBox1.SizeMode = 4
144
+        驗貨報告_pb.Image.RotateFlip(RotateFlipType.Rotate180FlipX) : 驗貨報告_pb.Refresh() : 驗貨報告_pb.SizeMode = 4
134
     End Sub
145
     End Sub
135
 End Class
146
 End Class

+ 30
- 75
TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/驗貨報告圖片導入資料庫.vb Wyświetl plik

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
     Private Sub Set_DGV1載入前設定()
6
     Private Sub Set_DGV1載入前設定()
7
-        Try
8
-            訂單清單_dgv.DataSource = Nothing : ds.Clear()
9
-            訂單清單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
10
-            訂單清單_dgv.ColumnHeadersHeight = 25
11
-            訂單清單_dgv.AllowUserToAddRows = False
12
-            ConnOpen()
13
-        Catch ex As Exception
14
-            MsgBox(ex.Message)
15
-        End Try
7
+        訂單清單_dgv.DataSource = Nothing : ds.Clear()
8
+        訂單清單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
9
+        訂單清單_dgv.ColumnHeadersHeight = 25
10
+        訂單清單_dgv.AllowUserToAddRows = False : ConnOpen()
16
     End Sub
11
     End Sub
17
     Private  Sub Set_DGV1載入後設定()
12
     Private  Sub Set_DGV1載入後設定()
18
         CmdSet_For_DGV() : da.SelectCommand.CommandTimeout = 900 : da.Fill(ds) : 訂單清單_dgv.DataSource = ds.Tables(0) : conn.Close()
13
         CmdSet_For_DGV() : da.SelectCommand.CommandTimeout = 900 : da.Fill(ds) : 訂單清單_dgv.DataSource = ds.Tables(0) : conn.Close()
19
     End Sub
14
     End Sub
20
     Private Sub Set_清單1()
15
     Private Sub Set_清單1()
21
-        Try
22
-            Set_DGV1載入前設定()
23
-            SQL_訂單清單()
24
-            Set_DGV1載入後設定()
25
-        Catch ex As Exception
26
-            MsgBox(ex.Message)
27
-        End Try
16
+        Set_DGV1載入前設定() : SQL_訂單清單() : Set_DGV1載入後設定()
28
     End Sub
17
     End Sub
29
     Private Sub Set_grid1()
18
     Private Sub Set_grid1()
30
-        Try
31
-            訂單清單_dgv.Columns(0).FillWeight = 80 : 訂單清單_dgv.Columns(1).FillWeight = 70 : 訂單清單_dgv.Columns(2).FillWeight = 120 : 訂單清單_dgv.Columns(3).FillWeight = 140
32
-            訂單清單_dgv.Columns(4).FillWeight = 100 : 訂單清單_dgv.Columns(5).FillWeight = 80 : 訂單清單_dgv.Columns(6).FillWeight = 100 : 訂單清單_dgv.Columns(7).FillWeight = 100
33
-            訂單清單_dgv.Columns(8).FillWeight = 100 : 訂單清單_dgv.Columns(9).Visible = False : 訂單清單_dgv.Columns(10).Visible = False
34
-        Catch ex As Exception
35
-            MsgBox(ex.Message)
36
-        End Try
19
+        訂單清單_dgv.Columns(0).FillWeight = 80 : 訂單清單_dgv.Columns(1).FillWeight = 70 : 訂單清單_dgv.Columns(2).FillWeight = 120 : 訂單清單_dgv.Columns(3).FillWeight = 140
20
+        訂單清單_dgv.Columns(4).FillWeight = 100 : 訂單清單_dgv.Columns(5).FillWeight = 80 : 訂單清單_dgv.Columns(6).FillWeight = 100 : 訂單清單_dgv.Columns(7).FillWeight = 100
21
+        訂單清單_dgv.Columns(8).FillWeight = 100 : 訂單清單_dgv.Columns(9).Visible = False : 訂單清單_dgv.Columns(10).Visible = False
37
     End Sub
22
     End Sub
38
     Private Sub 驗貨報告圖片導入資料庫_Load(sender As Object, e As EventArgs) Handles MyBase.Load
23
     Private Sub 驗貨報告圖片導入資料庫_Load(sender As Object, e As EventArgs) Handles MyBase.Load
39
-        Try
40
-            Me.MdiParent = TENDEN_MES_SYS : Me.WindowState = 2 : Me.AutoScroll = True
41
-            訂單資料庫選擇.ShowDialog()
42
-            Target1 = Target & AA(3) & "/"
43
-            WebBrowser1.Url = New Uri(Target1)
44
-            Set_清單1() : Set_grid1()
45
-            TextBox3.Visible = False : TextBox7.Visible = False
46
-            If FolderBrowserDialog1.ShowDialog = DialogResult.OK Then
47
-                WebBrowser2.Navigate(FolderBrowserDialog1.SelectedPath)
48
-            End If
49
-            If TENDEN_MES_SYS.Size.Width > 1440 And TENDEN_MES_SYS.Size.Height > 900 Then
50
-                字體_NUD.Value = 9
51
-            ElseIf TENDEN_MES_SYS.Size.Width <= 1440 And TENDEN_MES_SYS.Size.Height <= 900 Then
52
-                字體_NUD.Value = 7.6
53
-            End If
54
-        Catch ex As Exception
55
-            MsgBox(ex.Message)
56
-        End Try
24
+        Me.MdiParent = TENDEN_MES_SYS : Me.WindowState = 2 : Me.AutoScroll = True
25
+        訂單資料庫選擇.ShowDialog() : Target1 = Target & AA(3) & "/" : WebBrowser1.Url = New Uri(Target1)
26
+        Set_清單1() : Set_grid1()
27
+        TextBox3.Visible = False : TextBox7.Visible = False
28
+        If FolderBrowserDialog1.ShowDialog = DialogResult.OK Then : WebBrowser2.Navigate(FolderBrowserDialog1.SelectedPath) : End If
29
+        If TENDEN_MES_SYS.Size.Width > 1440 And TENDEN_MES_SYS.Size.Height > 900 Then : 字體_NUD.Value = 9
30
+        ElseIf TENDEN_MES_SYS.Size.Width <= 1440 And TENDEN_MES_SYS.Size.Height <= 900 Then : 字體_NUD.Value = 7.6 : End If
57
     End Sub
31
     End Sub
58
     Private Sub 驗貨報告圖片導入資料庫_SizeChanged(sender As Object, e As EventArgs) Handles MyBase.SizeChanged
32
     Private Sub 驗貨報告圖片導入資料庫_SizeChanged(sender As Object, e As EventArgs) Handles MyBase.SizeChanged
59
-        Try
60
-            If TENDEN_MES_SYS.Size.Width > 1440 And TENDEN_MES_SYS.Size.Height > 900 Then
61
-                字體_NUD.Value = 9
62
-            ElseIf TENDEN_MES_SYS.Size.Width <= 1440 And TENDEN_MES_SYS.Size.Height <= 900 Then
63
-                字體_NUD.Value = 7.6
64
-            End If
65
-        Catch ex As Exception
66
-            MsgBox(ex.Message)
67
-        End Try
33
+        If TENDEN_MES_SYS.Size.Width > 1440 And TENDEN_MES_SYS.Size.Height > 900 Then : 字體_NUD.Value = 9
34
+        ElseIf TENDEN_MES_SYS.Size.Width <= 1440 And TENDEN_MES_SYS.Size.Height <= 900 Then : 字體_NUD.Value = 7.6 : End If
68
     End Sub
35
     End Sub
69
     Private Sub 字體_NUD_ValueChanged(sender As Object, e As EventArgs) Handles 字體_NUD.ValueChanged
36
     Private Sub 字體_NUD_ValueChanged(sender As Object, e As EventArgs) Handles 字體_NUD.ValueChanged
70
         訂單清單_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", 字體_NUD.Value)
37
         訂單清單_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", 字體_NUD.Value)
71
     End Sub
38
     End Sub
72
-    Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 訂單清單_dgv.CellClick
73
-        Try
74
-            If e.RowIndex = -1 Then : Else
75
-                客戶訂單號_tb.Text = 訂單清單_dgv("客戶訂單號", e.RowIndex).Value.ToString : 型體名稱_tb.Text = 訂單清單_dgv("形體號", e.RowIndex).Value.ToString
76
-                天盾訂單號_tb.Text = 訂單清單_dgv("訂單流水號", e.RowIndex).Value.ToString
77
-            End If
78
-        Catch ex As Exception
79
-            MsgBox(ex.Message)
80
-        End Try
39
+    Private Sub 訂單清單_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 訂單清單_dgv.CellClick
40
+        If e.RowIndex = -1 Then : Else
41
+            客戶訂單號_tb.Text = 訂單清單_dgv("客戶訂單號", e.RowIndex).Value.ToString : 型體名稱_tb.Text = 訂單清單_dgv("形體號", e.RowIndex).Value.ToString
42
+            天盾訂單號_tb.Text = 訂單清單_dgv("訂單流水號", e.RowIndex).Value.ToString
43
+        End If
81
     End Sub
44
     End Sub
82
-    Private Sub Button31_Click(sender As Object, e As EventArgs) Handles 查詢_bt.Click
83
-        Try
84
-            PA = InputBox("請輸入要查詢的資料")
85
-            Set_DGV1載入前設定()
86
-            SQL_訂單清單查詢()
87
-            Set_DGV1載入後設定() : Set_grid1()
88
-            PA = ""
89
-        Catch ex As Exception
90
-            MsgBox(ex.Message)
91
-        End Try
45
+    Private Sub 查詢_bt_Click(sender As Object, e As EventArgs) Handles 查詢_bt.Click
46
+        PA = InputBox("請輸入要查詢的資料") : Set_DGV1載入前設定() : SQL_訂單清單查詢() : Set_DGV1載入後設定() : Set_grid1()
47
+        PA = ""
92
     End Sub
48
     End Sub
93
     Private  Sub Button11_Click(sender As Object, e As EventArgs) Handles 確認儲存_bt.Click
49
     Private  Sub Button11_Click(sender As Object, e As EventArgs) Handles 確認儲存_bt.Click
94
         If 客戶訂單號_tb.Text = "" Or 型體名稱_tb.Text = "" Or 檔案名稱_tb.Text = "" Then
50
         If 客戶訂單號_tb.Text = "" Or 型體名稱_tb.Text = "" Or 檔案名稱_tb.Text = "" Then
95
             MsgBox("檔案名稱或資料不可空白")
51
             MsgBox("檔案名稱或資料不可空白")
96
         Else
52
         Else
53
+            SQL_資料庫選擇() : If dr.Read() Then : PA1 = dr("圖片資料庫").ToString : PA20 = PA1 : End If
97
             SQL_查詢最後一筆驗貨報告編號()
54
             SQL_查詢最後一筆驗貨報告編號()
98
             If dr.Read() Then : TextBox3.Text = dr("驗貨報告編號").ToString : Else : TextBox3.Text = "0" : End If
55
             If dr.Read() Then : TextBox3.Text = dr("驗貨報告編號").ToString : Else : TextBox3.Text = "0" : End If
99
             conn.Close()
56
             conn.Close()
109
             ElseIf NUM1 > 9999999 Then : TextBox3.Text = "IR" & NUM1
66
             ElseIf NUM1 > 9999999 Then : TextBox3.Text = "IR" & NUM1
110
             End If
67
             End If
111
 
68
 
112
-
113
             If Strings.Left(Target1, 18) = "ftp://106.1.48.106" Then : SQL_新增驗貨報告編號_測試()
69
             If Strings.Left(Target1, 18) = "ftp://106.1.48.106" Then : SQL_新增驗貨報告編號_測試()
114
             Else : SQL_新增驗貨報告圖庫_正式() : End If : conn.Close()
70
             Else : SQL_新增驗貨報告圖庫_正式() : End If : conn.Close()
115
 
71
 
131
             MsgBox("新增完成")
87
             MsgBox("新增完成")
132
         End If
88
         End If
133
     End Sub
89
     End Sub
134
-    Private Sub TextBox4_DragEnter(sender As Object, e As DragEventArgs) Handles 檔案名稱_tb.DragEnter
90
+    Private Sub 檔案名稱_tb_DragEnter(sender As Object, e As DragEventArgs) Handles 檔案名稱_tb.DragEnter
135
         If e.Data.GetDataPresent(DataFormats.FileDrop) Then
91
         If e.Data.GetDataPresent(DataFormats.FileDrop) Then
136
             Dim files As String()
92
             Dim files As String()
137
             Try
93
             Try
166
             Next
122
             Next
167
         End If
123
         End If
168
     End Sub
124
     End Sub
169
-    Private  Sub TextBox4_DragDrop(ByVal sender As Object, ByVal e As DragEventArgs) Handles 檔案名稱_tb.DragDrop
125
+    Private Sub 檔案名稱_tb_DragDrop(ByVal sender As Object, ByVal e As DragEventArgs) Handles 檔案名稱_tb.DragDrop
170
         Dim files As Array = e.Data.GetData(DataFormats.FileDrop)
126
         Dim files As Array = e.Data.GetData(DataFormats.FileDrop)
171
         For Each file As String In files
127
         For Each file As String In files
172
             檔案名稱_tb.AppendText(file + Environment.NewLine)
128
             檔案名稱_tb.AppendText(file + Environment.NewLine)
173
         Next
129
         Next
174
     End Sub
130
     End Sub
175
-    Private Sub Button4_Click(sender As Object, e As EventArgs) Handles 讀取料夾路徑_bt.Click
176
-        If FolderBrowserDialog1.ShowDialog = DialogResult.OK Then
177
-            WebBrowser2.Navigate(FolderBrowserDialog1.SelectedPath)
131
+    Private Sub 讀取料夾路徑_bt_Click(sender As Object, e As EventArgs) Handles 讀取料夾路徑_bt.Click
132
+        If FolderBrowserDialog1.ShowDialog = DialogResult.OK Then : WebBrowser2.Navigate(FolderBrowserDialog1.SelectedPath)
178
         End If
133
         End If
179
     End Sub
134
     End Sub
180
     Private Sub 資料庫選擇1_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇1_bt.Click
135
     Private Sub 資料庫選擇1_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇1_bt.Click

+ 9
- 8
TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/驗貨報告大圖.vb Wyświetl plik

12
     Private Sub 驗貨報告大圖_Load(sender As Object, e As EventArgs) Handles MyBase.Load
12
     Private Sub 驗貨報告大圖_Load(sender As Object, e As EventArgs) Handles MyBase.Load
13
         Try
13
         Try
14
             FormBorderStyle = FormBorderStyle.SizableToolWindow  'ControlBox = False
14
             FormBorderStyle = FormBorderStyle.SizableToolWindow  'ControlBox = False
15
-            SQL_驗貨報告()
16
-            PictureBox1.Image = Nothing
17
-            While dr.Read() = True
18
-                Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("驗貨報告"), Byte())
19
-                Dim oStream As New MemoryStream(bytes)
20
-                PictureBox1.Image = Bitmap.FromStream(oStream)
21
-            End While
22
-            conn.Close() : PictureBox1.SizeMode = 4
15
+            PictureBox1.Image = 圖片傳遞 : PictureBox1.SizeMode = 4
16
+            'SQL_驗貨報告()
17
+            'PictureBox1.Image = Nothing
18
+            'While dr.Read() = True
19
+            '    Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("驗貨報告"), Byte())
20
+            '    Dim oStream As New MemoryStream(bytes)
21
+            '    PictureBox1.Image = Bitmap.FromStream(oStream)
22
+            'End While
23
+            'conn.Close() : PictureBox1.SizeMode = 4
23
         Catch ex As Exception
24
         Catch ex As Exception
24
             MsgBox(ex.Message)
25
             MsgBox(ex.Message)
25
         End Try
26
         End Try

+ 88
- 31
TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/驗貨報告資料庫.Designer.vb Wyświetl plik

22
     '請勿使用程式碼編輯器進行修改。
22
     '請勿使用程式碼編輯器進行修改。
23
     <System.Diagnostics.DebuggerStepThrough()>
23
     <System.Diagnostics.DebuggerStepThrough()>
24
     Private  Sub InitializeComponent()
24
     Private  Sub InitializeComponent()
25
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
25
         Me.驗貨報告圖庫_dgv = New System.Windows.Forms.DataGridView()
27
         Me.驗貨報告圖庫_dgv = New System.Windows.Forms.DataGridView()
26
-        Me.PictureBox1 = New System.Windows.Forms.PictureBox()
28
+        Me.驗貨報告_pb = New System.Windows.Forms.PictureBox()
27
         Me.驗貨報告編號_tb = New System.Windows.Forms.TextBox()
29
         Me.驗貨報告編號_tb = New System.Windows.Forms.TextBox()
28
         Me.下載圖片_bt = New System.Windows.Forms.Button()
30
         Me.下載圖片_bt = New System.Windows.Forms.Button()
29
         Me.查詢_bt = New System.Windows.Forms.Button()
31
         Me.查詢_bt = New System.Windows.Forms.Button()
58
         Me.TabPage2 = New System.Windows.Forms.TabPage()
60
         Me.TabPage2 = New System.Windows.Forms.TabPage()
59
         Me.字體_NUD = New System.Windows.Forms.NumericUpDown()
61
         Me.字體_NUD = New System.Windows.Forms.NumericUpDown()
60
         Me.字體大小調整_lb = New System.Windows.Forms.Label()
62
         Me.字體大小調整_lb = New System.Windows.Forms.Label()
63
+        Me.Panel1 = New System.Windows.Forms.Panel()
64
+        Me.Label38 = New System.Windows.Forms.Label()
65
+        Me.圖片資料庫管理_dgv = New System.Windows.Forms.DataGridView()
61
         CType(Me.驗貨報告圖庫_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
66
         CType(Me.驗貨報告圖庫_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
62
-        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
67
+        CType(Me.驗貨報告_pb, System.ComponentModel.ISupportInitialize).BeginInit()
63
         Me.TabControl1.SuspendLayout()
68
         Me.TabControl1.SuspendLayout()
64
         Me.TabPage1.SuspendLayout()
69
         Me.TabPage1.SuspendLayout()
65
         Me.TabPage2.SuspendLayout()
70
         Me.TabPage2.SuspendLayout()
66
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).BeginInit()
71
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).BeginInit()
72
+        Me.Panel1.SuspendLayout()
73
+        CType(Me.圖片資料庫管理_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
67
         Me.SuspendLayout()
74
         Me.SuspendLayout()
68
         '
75
         '
69
         '驗貨報告圖庫_dgv
76
         '驗貨報告圖庫_dgv
80
         Me.驗貨報告圖庫_dgv.Size = New System.Drawing.Size(615, 664)
87
         Me.驗貨報告圖庫_dgv.Size = New System.Drawing.Size(615, 664)
81
         Me.驗貨報告圖庫_dgv.TabIndex = 4
88
         Me.驗貨報告圖庫_dgv.TabIndex = 4
82
         '
89
         '
83
-        'PictureBox1
90
+        '驗貨報告_pb
84
         '
91
         '
85
-        Me.PictureBox1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
92
+        Me.驗貨報告_pb.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
86
             Or System.Windows.Forms.AnchorStyles.Left) _
93
             Or System.Windows.Forms.AnchorStyles.Left) _
87
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
94
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
88
-        Me.PictureBox1.BackgroundImage = Global.天盾國際管理系統.My.Resources.Resources._9572465
89
-        Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
90
-        Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
91
-        Me.PictureBox1.Location = New System.Drawing.Point(6, 52)
92
-        Me.PictureBox1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
93
-        Me.PictureBox1.Name = "PictureBox1"
94
-        Me.PictureBox1.Size = New System.Drawing.Size(782, 606)
95
-        Me.PictureBox1.TabIndex = 502
96
-        Me.PictureBox1.TabStop = False
95
+        Me.驗貨報告_pb.BackgroundImage = Global.天盾國際管理系統.My.Resources.Resources._9572465
96
+        Me.驗貨報告_pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
97
+        Me.驗貨報告_pb.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
98
+        Me.驗貨報告_pb.Location = New System.Drawing.Point(6, 52)
99
+        Me.驗貨報告_pb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
100
+        Me.驗貨報告_pb.Name = "驗貨報告_pb"
101
+        Me.驗貨報告_pb.Size = New System.Drawing.Size(782, 606)
102
+        Me.驗貨報告_pb.TabIndex = 502
103
+        Me.驗貨報告_pb.TabStop = False
97
         '
104
         '
98
         '驗貨報告編號_tb
105
         '驗貨報告編號_tb
99
         '
106
         '
246
         Me.Label6.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
253
         Me.Label6.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
247
         Me.Label6.AutoSize = True
254
         Me.Label6.AutoSize = True
248
         Me.Label6.Font = New System.Drawing.Font("微軟正黑體", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
255
         Me.Label6.Font = New System.Drawing.Font("微軟正黑體", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
249
-        Me.Label6.Location = New System.Drawing.Point(6, 727)
256
+        Me.Label6.Location = New System.Drawing.Point(1, 439)
250
         Me.Label6.Name = "Label6"
257
         Me.Label6.Name = "Label6"
251
         Me.Label6.Size = New System.Drawing.Size(156, 24)
258
         Me.Label6.Size = New System.Drawing.Size(156, 24)
252
         Me.Label6.TabIndex = 583
259
         Me.Label6.TabIndex = 583
257
         Me.TextBox7.AllowDrop = True
264
         Me.TextBox7.AllowDrop = True
258
         Me.TextBox7.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
265
         Me.TextBox7.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
259
         Me.TextBox7.ForeColor = System.Drawing.Color.Black
266
         Me.TextBox7.ForeColor = System.Drawing.Color.Black
260
-        Me.TextBox7.Location = New System.Drawing.Point(157, 778)
267
+        Me.TextBox7.Location = New System.Drawing.Point(485, 9)
261
         Me.TextBox7.Multiline = True
268
         Me.TextBox7.Multiline = True
262
         Me.TextBox7.Name = "TextBox7"
269
         Me.TextBox7.Name = "TextBox7"
263
         Me.TextBox7.Size = New System.Drawing.Size(73, 23)
270
         Me.TextBox7.Size = New System.Drawing.Size(73, 23)
289
         Me.WebBrowser2.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
296
         Me.WebBrowser2.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
290
             Or System.Windows.Forms.AnchorStyles.Left) _
297
             Or System.Windows.Forms.AnchorStyles.Left) _
291
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
298
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
292
-        Me.WebBrowser2.Location = New System.Drawing.Point(6, 37)
299
+        Me.WebBrowser2.Location = New System.Drawing.Point(3, 38)
293
         Me.WebBrowser2.MinimumSize = New System.Drawing.Size(20, 20)
300
         Me.WebBrowser2.MinimumSize = New System.Drawing.Size(20, 20)
294
         Me.WebBrowser2.Name = "WebBrowser2"
301
         Me.WebBrowser2.Name = "WebBrowser2"
295
-        Me.WebBrowser2.Size = New System.Drawing.Size(1269, 661)
302
+        Me.WebBrowser2.Size = New System.Drawing.Size(782, 372)
296
         Me.WebBrowser2.TabIndex = 579
303
         Me.WebBrowser2.TabIndex = 579
297
         Me.WebBrowser2.Url = New System.Uri("", System.UriKind.Relative)
304
         Me.WebBrowser2.Url = New System.Uri("", System.UriKind.Relative)
298
         '
305
         '
300
         '
307
         '
301
         Me.Label9.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
308
         Me.Label9.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
302
         Me.Label9.AutoSize = True
309
         Me.Label9.AutoSize = True
303
-        Me.Label9.Location = New System.Drawing.Point(1, 707)
310
+        Me.Label9.Location = New System.Drawing.Point(2, 417)
304
         Me.Label9.Name = "Label9"
311
         Me.Label9.Name = "Label9"
305
         Me.Label9.Size = New System.Drawing.Size(56, 16)
312
         Me.Label9.Size = New System.Drawing.Size(56, 16)
306
         Me.Label9.TabIndex = 577
313
         Me.Label9.TabIndex = 577
312
         Me.TextBox6.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
319
         Me.TextBox6.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
313
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
320
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
314
         Me.TextBox6.ForeColor = System.Drawing.Color.Black
321
         Me.TextBox6.ForeColor = System.Drawing.Color.Black
315
-        Me.TextBox6.Location = New System.Drawing.Point(57, 704)
322
+        Me.TextBox6.Location = New System.Drawing.Point(56, 414)
316
         Me.TextBox6.Name = "TextBox6"
323
         Me.TextBox6.Name = "TextBox6"
317
-        Me.TextBox6.Size = New System.Drawing.Size(1223, 23)
324
+        Me.TextBox6.Size = New System.Drawing.Size(732, 23)
318
         Me.TextBox6.TabIndex = 576
325
         Me.TextBox6.TabIndex = 576
319
         '
326
         '
320
         'WebBrowser1
327
         'WebBrowser1
321
         '
328
         '
322
         Me.WebBrowser1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
329
         Me.WebBrowser1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
323
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
330
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
324
-        Me.WebBrowser1.Location = New System.Drawing.Point(6, 754)
331
+        Me.WebBrowser1.Location = New System.Drawing.Point(3, 466)
325
         Me.WebBrowser1.MinimumSize = New System.Drawing.Size(20, 20)
332
         Me.WebBrowser1.MinimumSize = New System.Drawing.Size(20, 20)
326
         Me.WebBrowser1.Name = "WebBrowser1"
333
         Me.WebBrowser1.Name = "WebBrowser1"
327
-        Me.WebBrowser1.Size = New System.Drawing.Size(1269, 190)
334
+        Me.WebBrowser1.Size = New System.Drawing.Size(782, 190)
328
         Me.WebBrowser1.TabIndex = 575
335
         Me.WebBrowser1.TabIndex = 575
329
         Me.WebBrowser1.Url = New System.Uri("", System.UriKind.Relative)
336
         Me.WebBrowser1.Url = New System.Uri("", System.UriKind.Relative)
330
         '
337
         '
331
         'Button24
338
         'Button24
332
         '
339
         '
333
-        Me.Button24.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
334
-            Or System.Windows.Forms.AnchorStyles.Left) _
335
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
336
         Me.Button24.ForeColor = System.Drawing.Color.Green
340
         Me.Button24.ForeColor = System.Drawing.Color.Green
337
-        Me.Button24.Location = New System.Drawing.Point(1160, 728)
341
+        Me.Button24.Location = New System.Drawing.Point(564, 8)
338
         Me.Button24.Name = "Button24"
342
         Me.Button24.Name = "Button24"
339
         Me.Button24.Size = New System.Drawing.Size(120, 25)
343
         Me.Button24.Size = New System.Drawing.Size(120, 25)
340
         Me.Button24.TabIndex = 574
344
         Me.Button24.TabIndex = 574
347
         Me.Label7.AutoSize = True
351
         Me.Label7.AutoSize = True
348
         Me.Label7.Font = New System.Drawing.Font("微軟正黑體", 14.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
352
         Me.Label7.Font = New System.Drawing.Font("微軟正黑體", 14.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
349
         Me.Label7.ForeColor = System.Drawing.Color.Red
353
         Me.Label7.ForeColor = System.Drawing.Color.Red
350
-        Me.Label7.Location = New System.Drawing.Point(168, 728)
354
+        Me.Label7.Location = New System.Drawing.Point(151, 439)
351
         Me.Label7.Name = "Label7"
355
         Me.Label7.Name = "Label7"
352
         Me.Label7.Size = New System.Drawing.Size(29, 24)
356
         Me.Label7.Size = New System.Drawing.Size(29, 24)
353
         Me.Label7.TabIndex = 584
357
         Me.Label7.TabIndex = 584
401
         Me.TabPage1.Controls.Add(Me.垂直翻轉_bt)
405
         Me.TabPage1.Controls.Add(Me.垂直翻轉_bt)
402
         Me.TabPage1.Controls.Add(Me.放大_bt)
406
         Me.TabPage1.Controls.Add(Me.放大_bt)
403
         Me.TabPage1.Controls.Add(Me.復原_bt)
407
         Me.TabPage1.Controls.Add(Me.復原_bt)
404
-        Me.TabPage1.Controls.Add(Me.PictureBox1)
408
+        Me.TabPage1.Controls.Add(Me.驗貨報告_pb)
405
         Me.TabPage1.Location = New System.Drawing.Point(4, 28)
409
         Me.TabPage1.Location = New System.Drawing.Point(4, 28)
406
         Me.TabPage1.Name = "TabPage1"
410
         Me.TabPage1.Name = "TabPage1"
407
         Me.TabPage1.Padding = New System.Windows.Forms.Padding(3)
411
         Me.TabPage1.Padding = New System.Windows.Forms.Padding(3)
413
         'TabPage2
417
         'TabPage2
414
         '
418
         '
415
         Me.TabPage2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
419
         Me.TabPage2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
420
+        Me.TabPage2.Controls.Add(Me.Label6)
416
         Me.TabPage2.Controls.Add(Me.Label2)
421
         Me.TabPage2.Controls.Add(Me.Label2)
417
         Me.TabPage2.Controls.Add(Me.Label7)
422
         Me.TabPage2.Controls.Add(Me.Label7)
418
         Me.TabPage2.Controls.Add(Me.Button24)
423
         Me.TabPage2.Controls.Add(Me.Button24)
419
         Me.TabPage2.Controls.Add(Me.Label10)
424
         Me.TabPage2.Controls.Add(Me.Label10)
420
-        Me.TabPage2.Controls.Add(Me.Label6)
421
         Me.TabPage2.Controls.Add(Me.TextBox6)
425
         Me.TabPage2.Controls.Add(Me.TextBox6)
422
         Me.TabPage2.Controls.Add(Me.TextBox7)
426
         Me.TabPage2.Controls.Add(Me.TextBox7)
423
         Me.TabPage2.Controls.Add(Me.Label9)
427
         Me.TabPage2.Controls.Add(Me.Label9)
456
         Me.字體大小調整_lb.TabIndex = 1633
460
         Me.字體大小調整_lb.TabIndex = 1633
457
         Me.字體大小調整_lb.Text = "字體調整"
461
         Me.字體大小調整_lb.Text = "字體調整"
458
         '
462
         '
463
+        'Panel1
464
+        '
465
+        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
466
+        Me.Panel1.Controls.Add(Me.Label38)
467
+        Me.Panel1.Controls.Add(Me.圖片資料庫管理_dgv)
468
+        Me.Panel1.Location = New System.Drawing.Point(572, 164)
469
+        Me.Panel1.Name = "Panel1"
470
+        Me.Panel1.Size = New System.Drawing.Size(205, 303)
471
+        Me.Panel1.TabIndex = 1634
472
+        '
473
+        'Label38
474
+        '
475
+        Me.Label38.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
476
+        Me.Label38.AutoSize = True
477
+        Me.Label38.ForeColor = System.Drawing.Color.Black
478
+        Me.Label38.Location = New System.Drawing.Point(11, 10)
479
+        Me.Label38.Name = "Label38"
480
+        Me.Label38.Size = New System.Drawing.Size(176, 16)
481
+        Me.Label38.TabIndex = 708
482
+        Me.Label38.Text = "起先選擇要開啟哪個圖片資料庫"
483
+        '
484
+        '圖片資料庫管理_dgv
485
+        '
486
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.White
487
+        Me.圖片資料庫管理_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
488
+        Me.圖片資料庫管理_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
489
+            Or System.Windows.Forms.AnchorStyles.Left) _
490
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
491
+        Me.圖片資料庫管理_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
492
+        Me.圖片資料庫管理_dgv.BackgroundColor = System.Drawing.Color.White
493
+        DataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
494
+        DataGridViewCellStyle4.BackColor = System.Drawing.Color.White
495
+        DataGridViewCellStyle4.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
496
+        DataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText
497
+        DataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight
498
+        DataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText
499
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
500
+        Me.圖片資料庫管理_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle4
501
+        Me.圖片資料庫管理_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
502
+        Me.圖片資料庫管理_dgv.Location = New System.Drawing.Point(3, 29)
503
+        Me.圖片資料庫管理_dgv.Name = "圖片資料庫管理_dgv"
504
+        Me.圖片資料庫管理_dgv.RowHeadersWidth = 5
505
+        Me.圖片資料庫管理_dgv.RowTemplate.Height = 24
506
+        Me.圖片資料庫管理_dgv.Size = New System.Drawing.Size(195, 269)
507
+        Me.圖片資料庫管理_dgv.TabIndex = 707
508
+        '
459
         '驗貨報告資料庫
509
         '驗貨報告資料庫
460
         '
510
         '
461
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
511
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
462
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
512
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
463
         Me.ClientSize = New System.Drawing.Size(1422, 701)
513
         Me.ClientSize = New System.Drawing.Size(1422, 701)
514
+        Me.Controls.Add(Me.Panel1)
464
         Me.Controls.Add(Me.字體_NUD)
515
         Me.Controls.Add(Me.字體_NUD)
465
         Me.Controls.Add(Me.字體大小調整_lb)
516
         Me.Controls.Add(Me.字體大小調整_lb)
466
         Me.Controls.Add(Me.Label1)
517
         Me.Controls.Add(Me.Label1)
473
         Me.Name = "驗貨報告資料庫"
524
         Me.Name = "驗貨報告資料庫"
474
         Me.Text = "驗貨報告資料庫"
525
         Me.Text = "驗貨報告資料庫"
475
         CType(Me.驗貨報告圖庫_dgv, System.ComponentModel.ISupportInitialize).EndInit()
526
         CType(Me.驗貨報告圖庫_dgv, System.ComponentModel.ISupportInitialize).EndInit()
476
-        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
527
+        CType(Me.驗貨報告_pb, System.ComponentModel.ISupportInitialize).EndInit()
477
         Me.TabControl1.ResumeLayout(False)
528
         Me.TabControl1.ResumeLayout(False)
478
         Me.TabPage1.ResumeLayout(False)
529
         Me.TabPage1.ResumeLayout(False)
479
         Me.TabPage1.PerformLayout()
530
         Me.TabPage1.PerformLayout()
480
         Me.TabPage2.ResumeLayout(False)
531
         Me.TabPage2.ResumeLayout(False)
481
         Me.TabPage2.PerformLayout()
532
         Me.TabPage2.PerformLayout()
482
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).EndInit()
533
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).EndInit()
534
+        Me.Panel1.ResumeLayout(False)
535
+        Me.Panel1.PerformLayout()
536
+        CType(Me.圖片資料庫管理_dgv, System.ComponentModel.ISupportInitialize).EndInit()
483
         Me.ResumeLayout(False)
537
         Me.ResumeLayout(False)
484
         Me.PerformLayout()
538
         Me.PerformLayout()
485
 
539
 
486
     End Sub
540
     End Sub
487
 
541
 
488
     Friend WithEvents 驗貨報告圖庫_dgv As DataGridView
542
     Friend WithEvents 驗貨報告圖庫_dgv As DataGridView
489
-    Friend WithEvents PictureBox1 As PictureBox
543
+    Friend WithEvents 驗貨報告_pb As PictureBox
490
     Friend WithEvents 驗貨報告編號_tb As TextBox
544
     Friend WithEvents 驗貨報告編號_tb As TextBox
491
     Friend WithEvents 下載圖片_bt As Button
545
     Friend WithEvents 下載圖片_bt As Button
492
     Friend WithEvents 查詢_bt As Button
546
     Friend WithEvents 查詢_bt As Button
521
     Friend WithEvents TabPage2 As TabPage
575
     Friend WithEvents TabPage2 As TabPage
522
     Friend WithEvents 字體_NUD As NumericUpDown
576
     Friend WithEvents 字體_NUD As NumericUpDown
523
     Friend WithEvents 字體大小調整_lb As Label
577
     Friend WithEvents 字體大小調整_lb As Label
578
+    Friend WithEvents Panel1 As Panel
579
+    Friend WithEvents Label38 As Label
580
+    Friend WithEvents 圖片資料庫管理_dgv As DataGridView
524
 End Class
581
 End Class

+ 73
- 85
TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/驗貨報告資料庫.vb Wyświetl plik

13
     Dim m_DeltaY As Integer
13
     Dim m_DeltaY As Integer
14
     ReadOnly m_StrecthX As Double
14
     ReadOnly m_StrecthX As Double
15
     ReadOnly m_StrecthY As Double
15
     ReadOnly m_StrecthY As Double
16
+    Private Sub Set_工程圖片資料庫狀態()
17
+        Dim ds9 As New DataSet : 圖片資料庫管理_dgv.DataSource = Nothing : ds9.Clear()
18
+        圖片資料庫管理_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
19
+        圖片資料庫管理_dgv.ColumnHeadersHeight = 25
20
+        圖片資料庫管理_dgv.AllowUserToAddRows = False
21
+        SQL_圖片資料庫管理查詢()
22
+        da.Fill(ds9) : 圖片資料庫管理_dgv.DataSource = ds9.Tables(0) : conn.Close()
23
+        圖片資料庫管理_dgv.Columns(0).FillWeight = 100 : 圖片資料庫管理_dgv.Columns(1).Visible = False
24
+    End Sub
16
     Private Sub Set_DGV1載入前設定()
25
     Private Sub Set_DGV1載入前設定()
17
         Try
26
         Try
18
             驗貨報告圖庫_dgv.DataSource = Nothing : ds.Clear()
27
             驗貨報告圖庫_dgv.DataSource = Nothing : ds.Clear()
19
             驗貨報告圖庫_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
28
             驗貨報告圖庫_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
20
-            驗貨報告圖庫_dgv.ColumnHeadersHeight = 25
21
-            驗貨報告圖庫_dgv.AllowUserToAddRows = False
22
-            ConnOpen()
29
+            驗貨報告圖庫_dgv.ColumnHeadersHeight = 25 : 驗貨報告圖庫_dgv.AllowUserToAddRows = False : ConnOpen()
23
         Catch ex As Exception
30
         Catch ex As Exception
24
             MsgBox(ex.Message)
31
             MsgBox(ex.Message)
25
         End Try
32
         End Try
28
         CmdSet_For_DGV() : da.SelectCommand.CommandTimeout = 900 : da.Fill(ds) : 驗貨報告圖庫_dgv.DataSource = ds.Tables(0) : conn.Close()
35
         CmdSet_For_DGV() : da.SelectCommand.CommandTimeout = 900 : da.Fill(ds) : 驗貨報告圖庫_dgv.DataSource = ds.Tables(0) : conn.Close()
29
     End Sub
36
     End Sub
30
     Private Sub Set_圖片清單()
37
     Private Sub Set_圖片清單()
31
-        Set_DGV1載入前設定()
32
-        SQL_驗貨報告圖庫清單()
33
-        Set_DGV1載入後設定()
38
+        Set_DGV1載入前設定() : SQL_驗貨報告圖庫清單() : Set_DGV1載入後設定()
34
     End Sub
39
     End Sub
35
     Private Sub Set_grid()
40
     Private Sub Set_grid()
36
         Try
41
         Try
43
     Private Sub 驗貨報告資料庫_Load(sender As Object, e As EventArgs) Handles MyBase.Load
48
     Private Sub 驗貨報告資料庫_Load(sender As Object, e As EventArgs) Handles MyBase.Load
44
         Try
49
         Try
45
             Me.MdiParent = TENDEN_MES_SYS : Me.WindowState = 2 : Me.AutoScroll = True
50
             Me.MdiParent = TENDEN_MES_SYS : Me.WindowState = 2 : Me.AutoScroll = True
46
-            訂單資料庫選擇.ShowDialog()
47
-            Target1 = Target & AA(3) & "/"
48
-            WebBrowser1.Url = New Uri(Target1)
49
-            驗貨報告編號_tb.Enabled = False : 年份季度_tb.Enabled = False : 客戶訂單號_tb.Enabled = False : 型體名稱_tb.Enabled = False : TextBox5.Visible = False : TextBox7.Visible = False : Button24.Enabled = False
51
+            訂單資料庫選擇.ShowDialog() : Target1 = Target & AA(3) & "/" : WebBrowser1.Url = New Uri(Target1)
52
+            驗貨報告編號_tb.Enabled = False : 年份季度_tb.Enabled = False : 客戶訂單號_tb.Enabled = False : 型體名稱_tb.Enabled = False
53
+            TextBox5.Visible = False : TextBox7.Visible = False : Button24.Enabled = False
50
             If CC(92) = True Then : Button24.Enabled = True : End If
54
             If CC(92) = True Then : Button24.Enabled = True : End If
51
-            If FolderBrowserDialog1.ShowDialog = DialogResult.OK Then
52
-                WebBrowser2.Navigate(FolderBrowserDialog1.SelectedPath)
53
-            End If
54
-            Set_圖片清單() : Set_grid()
55
-            If TENDEN_MES_SYS.Size.Width > 1440 And TENDEN_MES_SYS.Size.Height > 900 Then
56
-                字體_NUD.Value = 9
57
-            ElseIf TENDEN_MES_SYS.Size.Width <= 1440 And TENDEN_MES_SYS.Size.Height <= 900 Then
58
-                字體_NUD.Value = 7.6
59
-            End If
55
+            If FolderBrowserDialog1.ShowDialog = DialogResult.OK Then : WebBrowser2.Navigate(FolderBrowserDialog1.SelectedPath) : End If
56
+            Set_工程圖片資料庫狀態()
57
+            If TENDEN_MES_SYS.Size.Width > 1440 And TENDEN_MES_SYS.Size.Height > 900 Then : 字體_NUD.Value = 9
58
+            ElseIf TENDEN_MES_SYS.Size.Width <= 1440 And TENDEN_MES_SYS.Size.Height <= 900 Then : 字體_NUD.Value = 7.6 : End If
60
         Catch ex As Exception
59
         Catch ex As Exception
61
             MsgBox(ex.Message)
60
             MsgBox(ex.Message)
62
         End Try
61
         End Try
63
     End Sub
62
     End Sub
64
     Private Sub 驗貨報告資料庫_SizeChanged(sender As Object, e As EventArgs) Handles MyBase.SizeChanged
63
     Private Sub 驗貨報告資料庫_SizeChanged(sender As Object, e As EventArgs) Handles MyBase.SizeChanged
65
         Try
64
         Try
66
-            If TENDEN_MES_SYS.Size.Width > 1440 And TENDEN_MES_SYS.Size.Height > 900 Then
67
-                字體_NUD.Value = 9
68
-            ElseIf TENDEN_MES_SYS.Size.Width <= 1440 And TENDEN_MES_SYS.Size.Height <= 900 Then
69
-                字體_NUD.Value = 7.6
70
-            End If
65
+            If TENDEN_MES_SYS.Size.Width > 1440 And TENDEN_MES_SYS.Size.Height > 900 Then : 字體_NUD.Value = 9
66
+            ElseIf TENDEN_MES_SYS.Size.Width <= 1440 And TENDEN_MES_SYS.Size.Height <= 900 Then : 字體_NUD.Value = 7.6 : End If
71
         Catch ex As Exception
67
         Catch ex As Exception
72
             MsgBox(ex.Message)
68
             MsgBox(ex.Message)
73
         End Try
69
         End Try
75
     Private Sub 字體_NUD_ValueChanged(sender As Object, e As EventArgs) Handles 字體_NUD.ValueChanged
71
     Private Sub 字體_NUD_ValueChanged(sender As Object, e As EventArgs) Handles 字體_NUD.ValueChanged
76
         驗貨報告圖庫_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", 字體_NUD.Value)
72
         驗貨報告圖庫_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", 字體_NUD.Value)
77
     End Sub
73
     End Sub
78
-    Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 驗貨報告圖庫_dgv.CellClick
74
+    Private Sub 圖片資料庫管理_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 圖片資料庫管理_dgv.CellClick
75
+        If e.RowIndex = -1 Then : Else
76
+            PA20 = 圖片資料庫管理_dgv(0, e.RowIndex).Value.ToString : Set_圖片清單() : Set_grid() : Panel1.Visible = False
77
+        End If
78
+    End Sub
79
+    Private Sub 驗貨報告圖庫_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 驗貨報告圖庫_dgv.CellClick
79
         Try
80
         Try
80
             If e.RowIndex = -1 Then : Else
81
             If e.RowIndex = -1 Then : Else
81
-                驗貨報告編號_tb.Text = 驗貨報告圖庫_dgv(5, e.RowIndex).Value.ToString
82
-                年份季度_tb.Text = 驗貨報告圖庫_dgv(1, e.RowIndex).Value.ToString
83
-                客戶訂單號_tb.Text = 驗貨報告圖庫_dgv(2, e.RowIndex).Value.ToString
84
-                型體名稱_tb.Text = 驗貨報告圖庫_dgv(3, e.RowIndex).Value.ToString
85
-                SQL_驗貨報告圖庫查詢()
86
-                PictureBox1.BackgroundImage = Nothing
87
-                While dr.Read() = True
88
-                    Dim unused As Byte() = New Byte(-1) {}
89
-                    Dim bytes As Byte() = DirectCast(dr.Item("驗貨報告"), Byte())
90
-                    Dim oStream As New MemoryStream(bytes)
91
-                    PictureBox1.Image = Bitmap.FromStream(oStream)
92
-                End While
93
-                conn.Close()
94
-                PictureBox1.SizeMode = 4
82
+                驗貨報告編號_tb.Text = 驗貨報告圖庫_dgv(5, e.RowIndex).Value.ToString : 年份季度_tb.Text = 驗貨報告圖庫_dgv(1, e.RowIndex).Value.ToString
83
+                客戶訂單號_tb.Text = 驗貨報告圖庫_dgv(2, e.RowIndex).Value.ToString : 型體名稱_tb.Text = 驗貨報告圖庫_dgv(3, e.RowIndex).Value.ToString
84
+                '------------驗貨報告讀取--------------------------------------------------------------------------------------------
85
+                PA1 = PA20 : PA2 = 驗貨報告圖庫_dgv("驗貨報告編號", e.RowIndex).Value.ToString
86
+                If 驗貨報告圖庫_dgv("驗貨報告編號", e.RowIndex).Value.ToString = "" Then : 驗貨報告_pb.Image = Nothing : Else
87
+                    SQL_驗貨報告() : 驗貨報告_pb.Image = Nothing
88
+                    While dr.Read() = True
89
+                        Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("驗貨報告"), Byte())
90
+                        Dim oStream As New MemoryStream(bytes) : 驗貨報告_pb.Image = Bitmap.FromStream(oStream)
91
+                    End While : conn.Close() : 驗貨報告_pb.SizeMode = 4
92
+                End If : 圖片傳遞 = 驗貨報告_pb.Image
95
             End If
93
             End If
96
         Catch ex As Exception
94
         Catch ex As Exception
97
             MsgBox(ex.Message)
95
             MsgBox(ex.Message)
98
         End Try
96
         End Try
99
     End Sub
97
     End Sub
100
-    Private Sub DataGridView1_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 驗貨報告圖庫_dgv.RowPostPaint
101
-        Try
102
-            Dim linePen As New Pen(Color.Blue, 2)
103
-            If e.RowIndex = 驗貨報告圖庫_dgv.Rows.Count - 1 Then
98
+    Private Sub 驗貨報告圖庫_dgv_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 驗貨報告圖庫_dgv.RowPostPaint
99
+        Dim linePen As New Pen(Color.Blue, 2)
100
+        If e.RowIndex = 驗貨報告圖庫_dgv.Rows.Count - 1 Then
101
+            Exit Sub
102
+        Else
103
+            If 驗貨報告圖庫_dgv(2, e.RowIndex).Value.ToString <> 驗貨報告圖庫_dgv(2, e.RowIndex + 1).Value.ToString Then
104
+                Dim startX As Integer = IIf(驗貨報告圖庫_dgv.RowHeadersVisible, 驗貨報告圖庫_dgv.RowHeadersWidth, 0)
105
+                Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
106
+                Dim endX As Integer = startX + 驗貨報告圖庫_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 驗貨報告圖庫_dgv.HorizontalScrollingOffset
107
+                e.Graphics.DrawLine(linePen, startX, startY, endX, startY)
104
                 Exit Sub
108
                 Exit Sub
105
-            Else
106
-                If 驗貨報告圖庫_dgv(2, e.RowIndex).Value.ToString <> 驗貨報告圖庫_dgv(2, e.RowIndex + 1).Value.ToString Then
107
-                    Dim startX As Integer = IIf(驗貨報告圖庫_dgv.RowHeadersVisible, 驗貨報告圖庫_dgv.RowHeadersWidth, 0)
108
-                    Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
109
-                    Dim endX As Integer = startX + 驗貨報告圖庫_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 驗貨報告圖庫_dgv.HorizontalScrollingOffset
110
-                    e.Graphics.DrawLine(linePen, startX, startY, endX, startY)
111
-                    Exit Sub
112
-                End If
113
             End If
109
             End If
114
-        Catch ex As Exception
115
-            MsgBox(ex.Message)
116
-        End Try
110
+        End If
117
     End Sub
111
     End Sub
118
-    Private Sub Button6_Click(sender As Object, e As EventArgs) Handles 查詢_bt.Click
112
+    Private Sub 查詢_bt_Click(sender As Object, e As EventArgs) Handles 查詢_bt.Click
119
         Try
113
         Try
120
-            PA = InputBox("請輸入關鍵字")
121
-            Set_DGV1載入前設定()
122
-            SQL_驗貨報告圖庫查詢1()
123
-            Set_DGV1載入後設定() : Set_grid()
124
-        Catch ex As Exception
125
-            MsgBox(ex.Message)
126
-        End Try
114
+            PA = InputBox("請輸入關鍵字") : Set_DGV1載入前設定() : SQL_驗貨報告圖庫查詢1() : Set_DGV1載入後設定() : Set_grid()
115
+        Catch ex As Exception : MsgBox(ex.Message) : End Try
127
     End Sub
116
     End Sub
128
     Private Sub Button3_Click(sender As Object, e As EventArgs) Handles 下載圖片_bt.Click
117
     Private Sub Button3_Click(sender As Object, e As EventArgs) Handles 下載圖片_bt.Click
129
         Try
118
         Try
135
 
124
 
136
                 SaveFileDialog1.FileName = TT & "-" & 年份季度_tb.Text & "-" & 客戶訂單號_tb.Text & "-" & 型體名稱_tb.Text & ".jpg"
125
                 SaveFileDialog1.FileName = TT & "-" & 年份季度_tb.Text & "-" & 客戶訂單號_tb.Text & "-" & 型體名稱_tb.Text & ".jpg"
137
 
126
 
138
-                SaveFileDialog1.ShowDialog() : TextBox5.Text = SaveFileDialog1.FileName
139
-                ds1.Clear()
140
-                SQL_驗貨報告圖庫3()
127
+                SaveFileDialog1.ShowDialog() : TextBox5.Text = SaveFileDialog1.FileName : ds1.Clear()
128
+                '------------驗貨報告讀取--------------------------------------------------------------------------------------------
129
+                PA1 = PA20 : SQL_驗貨報告圖庫3()
141
                 da.SelectCommand.CommandTimeout = 900 : da.Fill(ds1) : conn.Close()
130
                 da.SelectCommand.CommandTimeout = 900 : da.Fill(ds1) : conn.Close()
142
                 If ds1.Tables(0).Rows.Count > 0 Then
131
                 If ds1.Tables(0).Rows.Count > 0 Then
143
                     Dim imgData() As Byte
132
                     Dim imgData() As Byte
154
             MsgBox(ex.Message)
143
             MsgBox(ex.Message)
155
         End Try
144
         End Try
156
     End Sub
145
     End Sub
157
-    Private Sub Button8_Click(sender As Object, e As EventArgs) Handles 順時鐘90度旋轉_bt.Click
158
-        PictureBox1.Image.RotateFlip(RotateFlipType.Rotate90FlipNone) : PictureBox1.Refresh() : PictureBox1.SizeMode = 4
146
+    Private Sub 順時鐘90度旋轉_bt_Click(sender As Object, e As EventArgs) Handles 順時鐘90度旋轉_bt.Click
147
+        驗貨報告_pb.Image.RotateFlip(RotateFlipType.Rotate90FlipNone) : 驗貨報告_pb.Refresh() : 驗貨報告_pb.SizeMode = 4
159
     End Sub
148
     End Sub
160
-    Private Sub Button7_Click(sender As Object, e As EventArgs) Handles 逆時鐘90度旋轉_bt.Click
161
-        PictureBox1.Image.RotateFlip(RotateFlipType.Rotate270FlipNone) : PictureBox1.Refresh() : PictureBox1.SizeMode = 4
149
+    Private Sub 逆時鐘90度旋轉_bt_Click(sender As Object, e As EventArgs) Handles 逆時鐘90度旋轉_bt.Click
150
+        驗貨報告_pb.Image.RotateFlip(RotateFlipType.Rotate270FlipNone) : 驗貨報告_pb.Refresh() : 驗貨報告_pb.SizeMode = 4
162
     End Sub
151
     End Sub
163
-    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles 水平翻轉_bt.Click
164
-        PictureBox1.Image.RotateFlip(RotateFlipType.Rotate180FlipY) : PictureBox1.Refresh() : PictureBox1.SizeMode = 4
152
+    Private Sub 水平翻轉_bt_Click(sender As Object, e As EventArgs) Handles 水平翻轉_bt.Click
153
+        驗貨報告_pb.Image.RotateFlip(RotateFlipType.Rotate180FlipY) : 驗貨報告_pb.Refresh() : 驗貨報告_pb.SizeMode = 4
165
     End Sub
154
     End Sub
166
-    Private Sub Button4_Click(sender As Object, e As EventArgs) Handles 垂直翻轉_bt.Click
167
-        PictureBox1.Image.RotateFlip(RotateFlipType.Rotate180FlipX) : PictureBox1.Refresh() : PictureBox1.SizeMode = 4
155
+    Private Sub 垂直翻轉_bt_Click(sender As Object, e As EventArgs) Handles 垂直翻轉_bt.Click
156
+        驗貨報告_pb.Image.RotateFlip(RotateFlipType.Rotate180FlipX) : 驗貨報告_pb.Refresh() : 驗貨報告_pb.SizeMode = 4
168
     End Sub
157
     End Sub
169
-    Private Sub Button5_Click(sender As Object, e As EventArgs) Handles 放大_bt.Click
158
+    Private Sub 放大_bt_Click(sender As Object, e As EventArgs) Handles 放大_bt.Click
170
         Try
159
         Try
171
-            Dim image = PictureBox1.Image
172
-            Dim g As Graphics = PictureBox1.CreateGraphics
160
+            Dim image = 驗貨報告_pb.Image
161
+            Dim g As Graphics = 驗貨報告_pb.CreateGraphics
173
             g.DrawImage(image, New Rectangle(0, 0, image.Width * 1.01, image.Height * 1.01))
162
             g.DrawImage(image, New Rectangle(0, 0, image.Width * 1.01, image.Height * 1.01))
174
         Catch ex As Exception
163
         Catch ex As Exception
175
             MsgBox(ex.Message)
164
             MsgBox(ex.Message)
176
         End Try
165
         End Try
177
     End Sub
166
     End Sub
178
-    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles 復原_bt.Click
179
-        PictureBox1.Refresh()
167
+    Private Sub 復原_bt_Click(sender As Object, e As EventArgs) Handles 復原_bt.Click
168
+        驗貨報告_pb.Refresh()
180
     End Sub
169
     End Sub
181
     '@#处理鼠标按键抬起的事件,根据鼠标按下时保存的鼠标位置,和当前鼠标的位置, 
170
     '@#处理鼠标按键抬起的事件,根据鼠标按下时保存的鼠标位置,和当前鼠标的位置, 
182
     '计算鼠标移动偏移量,借此调用移动图片的函数,移动图片 
171
     '计算鼠标移动偏移量,借此调用移动图片的函数,移动图片 
183
-    Private Sub PictureBox1_MouseUp(ByVal sender As Object, ByVal e As MouseEventArgs) Handles PictureBox1.MouseUp
172
+    Private Sub 驗貨報告_pb_MouseUp(ByVal sender As Object, ByVal e As MouseEventArgs) Handles 驗貨報告_pb.MouseUp
184
         Try
173
         Try
185
             m_DeltaX = m_MousePosX - e.X
174
             m_DeltaX = m_MousePosX - e.X
186
             m_DeltaY = m_MousePosY - e.Y
175
             m_DeltaY = m_MousePosY - e.Y
193
         End Try
182
         End Try
194
     End Sub
183
     End Sub
195
     '@#当鼠标按下时,将鼠标变成手形,并且记录下当前鼠标的位置 
184
     '@#当鼠标按下时,将鼠标变成手形,并且记录下当前鼠标的位置 
196
-    Private Sub PictureBox1_MouseDown(ByVal sender As Object, ByVal e As MouseEventArgs) Handles PictureBox1.MouseDown
185
+    Private Sub 驗貨報告_pb_MouseDown(ByVal sender As Object, ByVal e As MouseEventArgs) Handles 驗貨報告_pb.MouseDown
197
         Try
186
         Try
198
             Me.Cursor = Cursors.Hand
187
             Me.Cursor = Cursors.Hand
199
             m_MousePosX = e.X
188
             m_MousePosX = e.X
205
     '@#根据偏移量计算出的图片位置,重画图片 
194
     '@#根据偏移量计算出的图片位置,重画图片 
206
     Private Sub Picturemove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)
195
     Private Sub Picturemove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)
207
         Try
196
         Try
208
-            Dim myBit As New Bitmap(PictureBox1.Image)
209
-            Dim myPicGrh As Graphics = Me.PictureBox1.CreateGraphics
210
-            myPicGrh.Clear(Me.PictureBox1.BackColor)
197
+            Dim myBit As New Bitmap(驗貨報告_pb.Image)
198
+            Dim myPicGrh As Graphics = Me.驗貨報告_pb.CreateGraphics
199
+            myPicGrh.Clear(Me.驗貨報告_pb.BackColor)
211
             myPicGrh.DrawImageUnscaled(myBit, m_Leftx - 152, m_Lefty)
200
             myPicGrh.DrawImageUnscaled(myBit, m_Leftx - 152, m_Lefty)
212
             myBit.Dispose()
201
             myBit.Dispose()
213
             myPicGrh.Dispose()
202
             myPicGrh.Dispose()
282
                 If TextBox6.Text = "" Then
271
                 If TextBox6.Text = "" Then
283
                     MsgBox("請確認圖片已準備完畢")
272
                     MsgBox("請確認圖片已準備完畢")
284
                 Else
273
                 Else
285
-                    If Strings.Left(Target1, 18) = "ftp://106.1.48.106" Then : SQL_修改驗貨報告圖庫1_測試()
286
-                    Else : SQL_修改驗貨報告圖庫1_正式() : End If : conn.Close()
274
+                    PA1 = PA20 : If Strings.Left(Target1, 18) = "ftp://106.1.48.106" Then : SQL_修改驗貨報告圖庫1_測試() : Else : SQL_修改驗貨報告圖庫1_正式() : End If : conn.Close()
287
                     '---FTP方式刪除檔案----------------------------------------------------------------------------------------------------------------------------------------------------------------------
275
                     '---FTP方式刪除檔案----------------------------------------------------------------------------------------------------------------------------------------------------------------------
288
                     Dim frq As FtpWebRequest, frp As FtpWebResponse, fcr As NetworkCredential
276
                     Dim frq As FtpWebRequest, frp As FtpWebResponse, fcr As NetworkCredential
289
                     frq = CType(WebRequest.Create(New Uri(Target1 & TextBox6.Text)), FtpWebRequest)
277
                     frq = CType(WebRequest.Create(New Uri(Target1 & TextBox6.Text)), FtpWebRequest)

+ 102
- 6
TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/驗貨報告資料庫修正.Designer.vb Wyświetl plik

24
     Private Sub InitializeComponent()
24
     Private Sub InitializeComponent()
25
         Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
25
         Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
         Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
         Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
         Me.驗貨報告圖庫_dgv = New System.Windows.Forms.DataGridView()
29
         Me.驗貨報告圖庫_dgv = New System.Windows.Forms.DataGridView()
28
         Me.客戶訂單號_tb = New System.Windows.Forms.TextBox()
30
         Me.客戶訂單號_tb = New System.Windows.Forms.TextBox()
29
         Me.客戶訂單號_lb = New System.Windows.Forms.Label()
31
         Me.客戶訂單號_lb = New System.Windows.Forms.Label()
33
         Me.驗貨報告編號_tb = New System.Windows.Forms.TextBox()
35
         Me.驗貨報告編號_tb = New System.Windows.Forms.TextBox()
34
         Me.驗貨報告編號_lb = New System.Windows.Forms.Label()
36
         Me.驗貨報告編號_lb = New System.Windows.Forms.Label()
35
         Me.重新配對_bt = New System.Windows.Forms.Button()
37
         Me.重新配對_bt = New System.Windows.Forms.Button()
38
+        Me.資料庫選擇2_bt = New System.Windows.Forms.Button()
39
+        Me.資料庫選擇1_bt = New System.Windows.Forms.Button()
40
+        Me.Panel1 = New System.Windows.Forms.Panel()
41
+        Me.Label38 = New System.Windows.Forms.Label()
42
+        Me.圖片資料庫管理_dgv = New System.Windows.Forms.DataGridView()
43
+        Me.重選資料庫_bt = New System.Windows.Forms.Button()
36
         CType(Me.驗貨報告圖庫_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
44
         CType(Me.驗貨報告圖庫_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
37
         CType(Me.訂單控制表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
45
         CType(Me.訂單控制表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
46
+        Me.Panel1.SuspendLayout()
47
+        CType(Me.圖片資料庫管理_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
38
         Me.SuspendLayout()
48
         Me.SuspendLayout()
39
         '
49
         '
40
         '驗貨報告圖庫_dgv
50
         '驗貨報告圖庫_dgv
55
         '客戶訂單號_tb
65
         '客戶訂單號_tb
56
         '
66
         '
57
         Me.客戶訂單號_tb.ForeColor = System.Drawing.Color.Black
67
         Me.客戶訂單號_tb.ForeColor = System.Drawing.Color.Black
58
-        Me.客戶訂單號_tb.Location = New System.Drawing.Point(78, 6)
68
+        Me.客戶訂單號_tb.Location = New System.Drawing.Point(258, 6)
59
         Me.客戶訂單號_tb.Name = "客戶訂單號_tb"
69
         Me.客戶訂單號_tb.Name = "客戶訂單號_tb"
60
         Me.客戶訂單號_tb.Size = New System.Drawing.Size(149, 23)
70
         Me.客戶訂單號_tb.Size = New System.Drawing.Size(149, 23)
61
         Me.客戶訂單號_tb.TabIndex = 532
71
         Me.客戶訂單號_tb.TabIndex = 532
63
         '客戶訂單號_lb
73
         '客戶訂單號_lb
64
         '
74
         '
65
         Me.客戶訂單號_lb.AutoSize = True
75
         Me.客戶訂單號_lb.AutoSize = True
66
-        Me.客戶訂單號_lb.Location = New System.Drawing.Point(4, 9)
76
+        Me.客戶訂單號_lb.Location = New System.Drawing.Point(184, 9)
67
         Me.客戶訂單號_lb.Name = "客戶訂單號_lb"
77
         Me.客戶訂單號_lb.Name = "客戶訂單號_lb"
68
         Me.客戶訂單號_lb.Size = New System.Drawing.Size(68, 16)
78
         Me.客戶訂單號_lb.Size = New System.Drawing.Size(68, 16)
69
         Me.客戶訂單號_lb.TabIndex = 531
79
         Me.客戶訂單號_lb.TabIndex = 531
72
         '型體名稱_tb
82
         '型體名稱_tb
73
         '
83
         '
74
         Me.型體名稱_tb.ForeColor = System.Drawing.Color.Black
84
         Me.型體名稱_tb.ForeColor = System.Drawing.Color.Black
75
-        Me.型體名稱_tb.Location = New System.Drawing.Point(295, 6)
85
+        Me.型體名稱_tb.Location = New System.Drawing.Point(475, 6)
76
         Me.型體名稱_tb.Name = "型體名稱_tb"
86
         Me.型體名稱_tb.Name = "型體名稱_tb"
77
         Me.型體名稱_tb.Size = New System.Drawing.Size(149, 23)
87
         Me.型體名稱_tb.Size = New System.Drawing.Size(149, 23)
78
         Me.型體名稱_tb.TabIndex = 534
88
         Me.型體名稱_tb.TabIndex = 534
80
         '型體名稱_lb
90
         '型體名稱_lb
81
         '
91
         '
82
         Me.型體名稱_lb.AutoSize = True
92
         Me.型體名稱_lb.AutoSize = True
83
-        Me.型體名稱_lb.Location = New System.Drawing.Point(233, 9)
93
+        Me.型體名稱_lb.Location = New System.Drawing.Point(413, 9)
84
         Me.型體名稱_lb.Name = "型體名稱_lb"
94
         Me.型體名稱_lb.Name = "型體名稱_lb"
85
         Me.型體名稱_lb.Size = New System.Drawing.Size(56, 16)
95
         Me.型體名稱_lb.Size = New System.Drawing.Size(56, 16)
86
         Me.型體名稱_lb.TabIndex = 533
96
         Me.型體名稱_lb.TabIndex = 533
104
         '驗貨報告編號_tb
114
         '驗貨報告編號_tb
105
         '
115
         '
106
         Me.驗貨報告編號_tb.ForeColor = System.Drawing.Color.Black
116
         Me.驗貨報告編號_tb.ForeColor = System.Drawing.Color.Black
107
-        Me.驗貨報告編號_tb.Location = New System.Drawing.Point(536, 6)
117
+        Me.驗貨報告編號_tb.Location = New System.Drawing.Point(716, 6)
108
         Me.驗貨報告編號_tb.Name = "驗貨報告編號_tb"
118
         Me.驗貨報告編號_tb.Name = "驗貨報告編號_tb"
109
         Me.驗貨報告編號_tb.Size = New System.Drawing.Size(149, 23)
119
         Me.驗貨報告編號_tb.Size = New System.Drawing.Size(149, 23)
110
         Me.驗貨報告編號_tb.TabIndex = 537
120
         Me.驗貨報告編號_tb.TabIndex = 537
112
         '驗貨報告編號_lb
122
         '驗貨報告編號_lb
113
         '
123
         '
114
         Me.驗貨報告編號_lb.AutoSize = True
124
         Me.驗貨報告編號_lb.AutoSize = True
115
-        Me.驗貨報告編號_lb.Location = New System.Drawing.Point(450, 9)
125
+        Me.驗貨報告編號_lb.Location = New System.Drawing.Point(630, 9)
116
         Me.驗貨報告編號_lb.Name = "驗貨報告編號_lb"
126
         Me.驗貨報告編號_lb.Name = "驗貨報告編號_lb"
117
         Me.驗貨報告編號_lb.Size = New System.Drawing.Size(80, 16)
127
         Me.驗貨報告編號_lb.Size = New System.Drawing.Size(80, 16)
118
         Me.驗貨報告編號_lb.TabIndex = 536
128
         Me.驗貨報告編號_lb.TabIndex = 536
127
         Me.重新配對_bt.Text = "重新配對"
137
         Me.重新配對_bt.Text = "重新配對"
128
         Me.重新配對_bt.UseVisualStyleBackColor = True
138
         Me.重新配對_bt.UseVisualStyleBackColor = True
129
         '
139
         '
140
+        '資料庫選擇2_bt
141
+        '
142
+        Me.資料庫選擇2_bt.Location = New System.Drawing.Point(82, 4)
143
+        Me.資料庫選擇2_bt.Name = "資料庫選擇2_bt"
144
+        Me.資料庫選擇2_bt.Size = New System.Drawing.Size(75, 26)
145
+        Me.資料庫選擇2_bt.TabIndex = 589
146
+        Me.資料庫選擇2_bt.Text = "DRS/ LIF"
147
+        Me.資料庫選擇2_bt.UseVisualStyleBackColor = True
148
+        '
149
+        '資料庫選擇1_bt
150
+        '
151
+        Me.資料庫選擇1_bt.Location = New System.Drawing.Point(7, 4)
152
+        Me.資料庫選擇1_bt.Name = "資料庫選擇1_bt"
153
+        Me.資料庫選擇1_bt.Size = New System.Drawing.Size(75, 26)
154
+        Me.資料庫選擇1_bt.TabIndex = 588
155
+        Me.資料庫選擇1_bt.Text = "VIONIC"
156
+        Me.資料庫選擇1_bt.UseVisualStyleBackColor = True
157
+        '
158
+        'Panel1
159
+        '
160
+        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
161
+        Me.Panel1.Controls.Add(Me.Label38)
162
+        Me.Panel1.Controls.Add(Me.圖片資料庫管理_dgv)
163
+        Me.Panel1.Location = New System.Drawing.Point(525, 122)
164
+        Me.Panel1.Name = "Panel1"
165
+        Me.Panel1.Size = New System.Drawing.Size(205, 303)
166
+        Me.Panel1.TabIndex = 1635
167
+        '
168
+        'Label38
169
+        '
170
+        Me.Label38.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
171
+        Me.Label38.AutoSize = True
172
+        Me.Label38.ForeColor = System.Drawing.Color.Black
173
+        Me.Label38.Location = New System.Drawing.Point(11, 10)
174
+        Me.Label38.Name = "Label38"
175
+        Me.Label38.Size = New System.Drawing.Size(176, 16)
176
+        Me.Label38.TabIndex = 708
177
+        Me.Label38.Text = "起先選擇要開啟哪個圖片資料庫"
178
+        '
179
+        '圖片資料庫管理_dgv
180
+        '
181
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.White
182
+        Me.圖片資料庫管理_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
183
+        Me.圖片資料庫管理_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
184
+            Or System.Windows.Forms.AnchorStyles.Left) _
185
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
186
+        Me.圖片資料庫管理_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
187
+        Me.圖片資料庫管理_dgv.BackgroundColor = System.Drawing.Color.White
188
+        DataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
189
+        DataGridViewCellStyle4.BackColor = System.Drawing.Color.White
190
+        DataGridViewCellStyle4.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
191
+        DataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText
192
+        DataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight
193
+        DataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText
194
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
195
+        Me.圖片資料庫管理_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle4
196
+        Me.圖片資料庫管理_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
197
+        Me.圖片資料庫管理_dgv.Location = New System.Drawing.Point(3, 29)
198
+        Me.圖片資料庫管理_dgv.Name = "圖片資料庫管理_dgv"
199
+        Me.圖片資料庫管理_dgv.RowHeadersWidth = 5
200
+        Me.圖片資料庫管理_dgv.RowTemplate.Height = 24
201
+        Me.圖片資料庫管理_dgv.Size = New System.Drawing.Size(195, 269)
202
+        Me.圖片資料庫管理_dgv.TabIndex = 707
203
+        '
204
+        '重選資料庫_bt
205
+        '
206
+        Me.重選資料庫_bt.Location = New System.Drawing.Point(871, 4)
207
+        Me.重選資料庫_bt.Name = "重選資料庫_bt"
208
+        Me.重選資料庫_bt.Size = New System.Drawing.Size(85, 26)
209
+        Me.重選資料庫_bt.TabIndex = 1636
210
+        Me.重選資料庫_bt.Text = "重選資料庫"
211
+        Me.重選資料庫_bt.UseVisualStyleBackColor = True
212
+        '
130
         '驗貨報告資料庫修正
213
         '驗貨報告資料庫修正
131
         '
214
         '
132
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
215
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
133
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
216
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
134
         Me.ClientSize = New System.Drawing.Size(1254, 547)
217
         Me.ClientSize = New System.Drawing.Size(1254, 547)
218
+        Me.Controls.Add(Me.重選資料庫_bt)
219
+        Me.Controls.Add(Me.Panel1)
220
+        Me.Controls.Add(Me.資料庫選擇2_bt)
221
+        Me.Controls.Add(Me.資料庫選擇1_bt)
135
         Me.Controls.Add(Me.重新配對_bt)
222
         Me.Controls.Add(Me.重新配對_bt)
136
         Me.Controls.Add(Me.驗貨報告編號_tb)
223
         Me.Controls.Add(Me.驗貨報告編號_tb)
137
         Me.Controls.Add(Me.驗貨報告編號_lb)
224
         Me.Controls.Add(Me.驗貨報告編號_lb)
148
         Me.Text = "驗貨報告資料庫修正"
235
         Me.Text = "驗貨報告資料庫修正"
149
         CType(Me.驗貨報告圖庫_dgv, System.ComponentModel.ISupportInitialize).EndInit()
236
         CType(Me.驗貨報告圖庫_dgv, System.ComponentModel.ISupportInitialize).EndInit()
150
         CType(Me.訂單控制表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
237
         CType(Me.訂單控制表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
238
+        Me.Panel1.ResumeLayout(False)
239
+        Me.Panel1.PerformLayout()
240
+        CType(Me.圖片資料庫管理_dgv, System.ComponentModel.ISupportInitialize).EndInit()
151
         Me.ResumeLayout(False)
241
         Me.ResumeLayout(False)
152
         Me.PerformLayout()
242
         Me.PerformLayout()
153
 
243
 
162
     Friend WithEvents 驗貨報告編號_tb As TextBox
252
     Friend WithEvents 驗貨報告編號_tb As TextBox
163
     Friend WithEvents 驗貨報告編號_lb As Label
253
     Friend WithEvents 驗貨報告編號_lb As Label
164
     Friend WithEvents 重新配對_bt As Button
254
     Friend WithEvents 重新配對_bt As Button
255
+    Friend WithEvents 資料庫選擇2_bt As Button
256
+    Friend WithEvents 資料庫選擇1_bt As Button
257
+    Friend WithEvents Panel1 As Panel
258
+    Friend WithEvents Label38 As Label
259
+    Friend WithEvents 圖片資料庫管理_dgv As DataGridView
260
+    Friend WithEvents 重選資料庫_bt As Button
165
 End Class
261
 End Class

+ 29
- 6
TENDEN-MES-SYS/圖片資料庫管理/驗貨報告系統/驗貨報告資料庫修正.vb Wyświetl plik

1
 Option Strict Off
1
 Option Strict Off
2
 Public Class 驗貨報告資料庫修正
2
 Public Class 驗貨報告資料庫修正
3
     ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet
3
     ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet
4
+    Private Sub Set_工程圖片資料庫狀態()
5
+        Dim ds9 As New DataSet : 圖片資料庫管理_dgv.DataSource = Nothing : ds9.Clear()
6
+        圖片資料庫管理_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
7
+        圖片資料庫管理_dgv.ColumnHeadersHeight = 25
8
+        圖片資料庫管理_dgv.AllowUserToAddRows = False
9
+        SQL_圖片資料庫管理查詢()
10
+        da.Fill(ds9) : 圖片資料庫管理_dgv.DataSource = ds9.Tables(0) : conn.Close()
11
+        圖片資料庫管理_dgv.Columns(0).FillWeight = 100 : 圖片資料庫管理_dgv.Columns(1).Visible = False
12
+    End Sub
4
     Private Sub Set_清單1()
13
     Private Sub Set_清單1()
5
         Try
14
         Try
6
             驗貨報告圖庫_dgv.DataSource = Nothing : ds.Clear()
15
             驗貨報告圖庫_dgv.DataSource = Nothing : ds.Clear()
27
         End Try
36
         End Try
28
     End Sub
37
     End Sub
29
     Private Sub 驗貨報告資料庫修正_Load(sender As Object, e As EventArgs) Handles MyBase.Load
38
     Private Sub 驗貨報告資料庫修正_Load(sender As Object, e As EventArgs) Handles MyBase.Load
30
-        Set_清單1()
39
+        Set_工程圖片資料庫狀態() : SQL_訂單資料表選擇_VIONIC()
40
+    End Sub
41
+    Private Sub 圖片資料庫管理_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 圖片資料庫管理_dgv.CellClick
42
+        If e.RowIndex = -1 Then : Else
43
+            PA1 = 圖片資料庫管理_dgv(0, e.RowIndex).Value.ToString : Set_清單1() : Panel1.Visible = False
44
+        End If
31
     End Sub
45
     End Sub
32
-    Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 驗貨報告圖庫_dgv.CellClick
46
+    Private Sub 驗貨報告圖庫_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 驗貨報告圖庫_dgv.CellClick
33
         Try
47
         Try
34
             If e.RowIndex = -1 Then : Else
48
             If e.RowIndex = -1 Then : Else
35
-                型體名稱_tb.Text = 驗貨報告圖庫_dgv(1, e.RowIndex).Value.ToString
36
-                驗貨報告編號_tb.Text = 驗貨報告圖庫_dgv(2, e.RowIndex).Value.ToString
49
+                型體名稱_tb.Text = 驗貨報告圖庫_dgv(1, e.RowIndex).Value.ToString : 驗貨報告編號_tb.Text = 驗貨報告圖庫_dgv(2, e.RowIndex).Value.ToString
37
                 客戶訂單號_tb.Text = 驗貨報告圖庫_dgv(0, e.RowIndex).Value.ToString
50
                 客戶訂單號_tb.Text = 驗貨報告圖庫_dgv(0, e.RowIndex).Value.ToString
38
                 Set_清單2()
51
                 Set_清單2()
39
             End If
52
             End If
41
             MsgBox(ex.Message)
54
             MsgBox(ex.Message)
42
         End Try
55
         End Try
43
     End Sub
56
     End Sub
44
-    Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles 客戶訂單號_tb.TextChanged
57
+    Private Sub 客戶訂單號_tb_TextChanged(sender As Object, e As EventArgs) Handles 客戶訂單號_tb.TextChanged
45
         Set_清單1()
58
         Set_清單1()
46
     End Sub
59
     End Sub
47
-    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles 重新配對_bt.Click
60
+    Private Sub 重新配對_bt_Click(sender As Object, e As EventArgs) Handles 重新配對_bt.Click
48
         Try
61
         Try
49
             For i As Integer = 0 To 訂單控制表_dgv.Rows.Count - 1
62
             For i As Integer = 0 To 訂單控制表_dgv.Rows.Count - 1
50
                 PA = 訂單控制表_dgv.Rows(i).Cells("客戶訂單號").Value : PA1 = 訂單控制表_dgv.Rows(i).Cells("形體號").Value
63
                 PA = 訂單控制表_dgv.Rows(i).Cells("客戶訂單號").Value : PA1 = 訂單控制表_dgv.Rows(i).Cells("形體號").Value
55
             MsgBox(ex.Message)
68
             MsgBox(ex.Message)
56
         End Try
69
         End Try
57
     End Sub
70
     End Sub
71
+    Private Sub 資料庫選擇1_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇1_bt.Click
72
+        SQL_訂單資料表選擇_VIONIC() : Set_清單2()
73
+    End Sub
74
+
75
+    Private Sub 資料庫選擇2_bt_Click(sender As Object, e As EventArgs) Handles 資料庫選擇2_bt.Click
76
+        SQL_訂單資料表選擇_非VIONIC() : Set_清單2()
77
+    End Sub
78
+    Private Sub 重選資料庫_bt_Click(sender As Object, e As EventArgs) Handles 重選資料庫_bt.Click
79
+        Panel1.Visible = True
80
+    End Sub
58
 End Class
81
 End Class

+ 29
- 0
TENDEN-MES-SYS/天盾系統.vbproj Wyświetl plik

99
     <Import Include="System.Threading.Tasks" />
99
     <Import Include="System.Threading.Tasks" />
100
   </ItemGroup>
100
   </ItemGroup>
101
   <ItemGroup>
101
   <ItemGroup>
102
+    <Compile Include="Module\DGV進度條.vb" />
102
     <Compile Include="Module\SQL_Module.vb" />
103
     <Compile Include="Module\SQL_Module.vb" />
103
     <Compile Include="Module\SQL_人事系統管理.vb" />
104
     <Compile Include="Module\SQL_人事系統管理.vb" />
104
     <Compile Include="Module\SQL_成本系統管理.vb" />
105
     <Compile Include="Module\SQL_成本系統管理.vb" />
105
     <Compile Include="Module\SQL_資料庫系統管理.vb" />
106
     <Compile Include="Module\SQL_資料庫系統管理.vb" />
107
+    <Compile Include="Module\SQL_連線字串.vb" />
106
     <Compile Include="Module\SQL_連線狀態模組.vb" />
108
     <Compile Include="Module\SQL_連線狀態模組.vb" />
107
     <Compile Include="Module\SQL_量產訂單資料庫切換.vb" />
109
     <Compile Include="Module\SQL_量產訂單資料庫切換.vb" />
108
     <Compile Include="Module\SQL_圖片資料庫管理.vb" />
110
     <Compile Include="Module\SQL_圖片資料庫管理.vb" />
112
     <Compile Include="Module\SQL_財務系統管理.vb" />
114
     <Compile Include="Module\SQL_財務系統管理.vb" />
113
     <Compile Include="Module\SQL_量產樣品單系統.vb" />
115
     <Compile Include="Module\SQL_量產樣品單系統.vb" />
114
     <Compile Include="Module\SQL_量產訂單系統.vb" />
116
     <Compile Include="Module\SQL_量產訂單系統.vb" />
117
+    <Compile Include="圖片資料庫管理\包裝圖片系統\包裝資料圖片導入資料庫.Designer.vb">
118
+      <DependentUpon>包裝資料圖片導入資料庫.vb</DependentUpon>
119
+    </Compile>
120
+    <Compile Include="圖片資料庫管理\包裝圖片系統\包裝資料圖片導入資料庫.vb">
121
+      <SubType>Form</SubType>
122
+    </Compile>
123
+    <Compile Include="圖片資料庫管理\包裝圖片系統\包裝資料圖片資料庫.Designer.vb">
124
+      <DependentUpon>包裝資料圖片資料庫.vb</DependentUpon>
125
+    </Compile>
126
+    <Compile Include="圖片資料庫管理\包裝圖片系統\包裝資料圖片資料庫.vb">
127
+      <SubType>Form</SubType>
128
+    </Compile>
115
     <Compile Include="彙總報表管理\特殊工具\力威發票明細轉換工具.Designer.vb">
129
     <Compile Include="彙總報表管理\特殊工具\力威發票明細轉換工具.Designer.vb">
116
       <DependentUpon>力威發票明細轉換工具.vb</DependentUpon>
130
       <DependentUpon>力威發票明細轉換工具.vb</DependentUpon>
117
     </Compile>
131
     </Compile>
142
     <Compile Include="資料庫系統管理\下拉清單_1.vb">
156
     <Compile Include="資料庫系統管理\下拉清單_1.vb">
143
       <SubType>Form</SubType>
157
       <SubType>Form</SubType>
144
     </Compile>
158
     </Compile>
159
+    <Compile Include="資料庫系統管理\系統編碼原則.Designer.vb">
160
+      <DependentUpon>系統編碼原則.vb</DependentUpon>
161
+    </Compile>
162
+    <Compile Include="資料庫系統管理\系統編碼原則.vb">
163
+      <SubType>Form</SubType>
164
+    </Compile>
145
     <Compile Include="量產訂單管理\資料庫管理\業務資料日期除錯.Designer.vb">
165
     <Compile Include="量產訂單管理\資料庫管理\業務資料日期除錯.Designer.vb">
146
       <DependentUpon>業務資料日期除錯.vb</DependentUpon>
166
       <DependentUpon>業務資料日期除錯.vb</DependentUpon>
147
     </Compile>
167
     </Compile>
755
     </Compile>
775
     </Compile>
756
   </ItemGroup>
776
   </ItemGroup>
757
   <ItemGroup>
777
   <ItemGroup>
778
+    <EmbeddedResource Include="圖片資料庫管理\包裝圖片系統\包裝資料圖片導入資料庫.resx">
779
+      <DependentUpon>包裝資料圖片導入資料庫.vb</DependentUpon>
780
+    </EmbeddedResource>
781
+    <EmbeddedResource Include="圖片資料庫管理\包裝圖片系統\包裝資料圖片資料庫.resx">
782
+      <DependentUpon>包裝資料圖片資料庫.vb</DependentUpon>
783
+    </EmbeddedResource>
758
     <EmbeddedResource Include="彙總報表管理\特殊工具\力威發票明細轉換工具.resx">
784
     <EmbeddedResource Include="彙總報表管理\特殊工具\力威發票明細轉換工具.resx">
759
       <DependentUpon>力威發票明細轉換工具.vb</DependentUpon>
785
       <DependentUpon>力威發票明細轉換工具.vb</DependentUpon>
760
     </EmbeddedResource>
786
     </EmbeddedResource>
770
     <EmbeddedResource Include="資料庫系統管理\下拉清單_1.resx">
796
     <EmbeddedResource Include="資料庫系統管理\下拉清單_1.resx">
771
       <DependentUpon>下拉清單_1.vb</DependentUpon>
797
       <DependentUpon>下拉清單_1.vb</DependentUpon>
772
     </EmbeddedResource>
798
     </EmbeddedResource>
799
+    <EmbeddedResource Include="資料庫系統管理\系統編碼原則.resx">
800
+      <DependentUpon>系統編碼原則.vb</DependentUpon>
801
+    </EmbeddedResource>
773
     <EmbeddedResource Include="量產訂單管理\資料庫管理\業務資料日期除錯.resx">
802
     <EmbeddedResource Include="量產訂單管理\資料庫管理\業務資料日期除錯.resx">
774
       <DependentUpon>業務資料日期除錯.vb</DependentUpon>
803
       <DependentUpon>業務資料日期除錯.vb</DependentUpon>
775
     </EmbeddedResource>
804
     </EmbeddedResource>

+ 371
- 172
TENDEN-MES-SYS/樣品訂單管理/中文樣品單系統/中文樣品單.Designer.vb
Plik diff jest za duży
Wyświetl plik


+ 258
- 565
TENDEN-MES-SYS/樣品訂單管理/中文樣品單系統/中文樣品單.vb
Plik diff jest za duży
Wyświetl plik


+ 94
- 9
TENDEN-MES-SYS/製鞋技術資料管理/STYLE_資料管理.Designer.vb Wyświetl plik

79
         Me.Label16 = New System.Windows.Forms.Label()
79
         Me.Label16 = New System.Windows.Forms.Label()
80
         Me.PictureBox1 = New System.Windows.Forms.PictureBox()
80
         Me.PictureBox1 = New System.Windows.Forms.PictureBox()
81
         Me.PictureBox2 = New System.Windows.Forms.PictureBox()
81
         Me.PictureBox2 = New System.Windows.Forms.PictureBox()
82
+        Me.包裝資訊_bt = New System.Windows.Forms.Button()
83
+        Me.Panel2 = New System.Windows.Forms.Panel()
84
+        Me.Label18 = New System.Windows.Forms.Label()
85
+        Me.Panel3 = New System.Windows.Forms.Panel()
86
+        Me.包裝資料_pb = New System.Windows.Forms.PictureBox()
87
+        Me.CanceL3_bt = New System.Windows.Forms.Button()
82
         CType(Me.STYLE_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
88
         CType(Me.STYLE_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
83
         CType(Me.项目编号清单_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
89
         CType(Me.项目编号清单_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
84
         CType(Me.订单形體號清单_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
90
         CType(Me.订单形體號清单_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
88
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).BeginInit()
94
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).BeginInit()
89
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
95
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
90
         CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).BeginInit()
96
         CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).BeginInit()
97
+        Me.Panel2.SuspendLayout()
98
+        Me.Panel3.SuspendLayout()
99
+        CType(Me.包裝資料_pb, System.ComponentModel.ISupportInitialize).BeginInit()
91
         Me.SuspendLayout()
100
         Me.SuspendLayout()
92
         '
101
         '
93
         'STYLE_dgv
102
         'STYLE_dgv
171
         '
180
         '
172
         Me.新增_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
181
         Me.新增_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
173
         Me.新增_bt.ForeColor = System.Drawing.Color.Blue
182
         Me.新增_bt.ForeColor = System.Drawing.Color.Blue
174
-        Me.新增_bt.Location = New System.Drawing.Point(603, 53)
183
+        Me.新增_bt.Location = New System.Drawing.Point(599, 53)
175
         Me.新增_bt.Name = "新增_bt"
184
         Me.新增_bt.Name = "新增_bt"
176
         Me.新增_bt.Size = New System.Drawing.Size(105, 48)
185
         Me.新增_bt.Size = New System.Drawing.Size(105, 48)
177
         Me.新增_bt.TabIndex = 339
186
         Me.新增_bt.TabIndex = 339
182
         '
191
         '
183
         Me.修改_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
192
         Me.修改_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
184
         Me.修改_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer))
193
         Me.修改_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer))
185
-        Me.修改_bt.Location = New System.Drawing.Point(709, 53)
194
+        Me.修改_bt.Location = New System.Drawing.Point(703, 53)
186
         Me.修改_bt.Name = "修改_bt"
195
         Me.修改_bt.Name = "修改_bt"
187
         Me.修改_bt.Size = New System.Drawing.Size(105, 48)
196
         Me.修改_bt.Size = New System.Drawing.Size(105, 48)
188
         Me.修改_bt.TabIndex = 340
197
         Me.修改_bt.TabIndex = 340
193
         '
202
         '
194
         Me.刪除_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
203
         Me.刪除_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
195
         Me.刪除_bt.ForeColor = System.Drawing.Color.Red
204
         Me.刪除_bt.ForeColor = System.Drawing.Color.Red
196
-        Me.刪除_bt.Location = New System.Drawing.Point(815, 53)
205
+        Me.刪除_bt.Location = New System.Drawing.Point(730, 2)
197
         Me.刪除_bt.Name = "刪除_bt"
206
         Me.刪除_bt.Name = "刪除_bt"
198
-        Me.刪除_bt.Size = New System.Drawing.Size(105, 48)
207
+        Me.刪除_bt.Size = New System.Drawing.Size(182, 48)
199
         Me.刪除_bt.TabIndex = 341
208
         Me.刪除_bt.TabIndex = 341
200
         Me.刪除_bt.Text = "刪除"
209
         Me.刪除_bt.Text = "刪除"
201
         Me.刪除_bt.UseVisualStyleBackColor = True
210
         Me.刪除_bt.UseVisualStyleBackColor = True
204
         '
213
         '
205
         Me.查詢_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
214
         Me.查詢_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
206
         Me.查詢_bt.ForeColor = System.Drawing.Color.Black
215
         Me.查詢_bt.ForeColor = System.Drawing.Color.Black
207
-        Me.查詢_bt.Location = New System.Drawing.Point(497, 53)
216
+        Me.查詢_bt.Location = New System.Drawing.Point(495, 53)
208
         Me.查詢_bt.Name = "查詢_bt"
217
         Me.查詢_bt.Name = "查詢_bt"
209
         Me.查詢_bt.Size = New System.Drawing.Size(105, 48)
218
         Me.查詢_bt.Size = New System.Drawing.Size(105, 48)
210
         Me.查詢_bt.TabIndex = 343
219
         Me.查詢_bt.TabIndex = 343
276
         '
285
         '
277
         Me.更新分析資料_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
286
         Me.更新分析資料_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
278
         Me.更新分析資料_bt.ForeColor = System.Drawing.Color.Blue
287
         Me.更新分析資料_bt.ForeColor = System.Drawing.Color.Blue
279
-        Me.更新分析資料_bt.Location = New System.Drawing.Point(732, 4)
288
+        Me.更新分析資料_bt.Location = New System.Drawing.Point(1240, 1)
280
         Me.更新分析資料_bt.Name = "更新分析資料_bt"
289
         Me.更新分析資料_bt.Name = "更新分析資料_bt"
281
         Me.更新分析資料_bt.RightToLeft = System.Windows.Forms.RightToLeft.No
290
         Me.更新分析資料_bt.RightToLeft = System.Windows.Forms.RightToLeft.No
282
-        Me.更新分析資料_bt.Size = New System.Drawing.Size(188, 48)
291
+        Me.更新分析資料_bt.Size = New System.Drawing.Size(60, 100)
283
         Me.更新分析資料_bt.TabIndex = 376
292
         Me.更新分析資料_bt.TabIndex = 376
284
         Me.更新分析資料_bt.Text = "更新分析資料"
293
         Me.更新分析資料_bt.Text = "更新分析資料"
285
         Me.更新分析資料_bt.UseVisualStyleBackColor = True
294
         Me.更新分析資料_bt.UseVisualStyleBackColor = True
605
         '
614
         '
606
         Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
615
         Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
607
         Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
616
         Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
608
-        Me.PictureBox1.Location = New System.Drawing.Point(921, 2)
617
+        Me.PictureBox1.Location = New System.Drawing.Point(914, 2)
609
         Me.PictureBox1.Name = "PictureBox1"
618
         Me.PictureBox1.Name = "PictureBox1"
610
         Me.PictureBox1.Size = New System.Drawing.Size(160, 99)
619
         Me.PictureBox1.Size = New System.Drawing.Size(160, 99)
611
         Me.PictureBox1.TabIndex = 1659
620
         Me.PictureBox1.TabIndex = 1659
615
         '
624
         '
616
         Me.PictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
625
         Me.PictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
617
         Me.PictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
626
         Me.PictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
618
-        Me.PictureBox2.Location = New System.Drawing.Point(1084, 2)
627
+        Me.PictureBox2.Location = New System.Drawing.Point(1077, 2)
619
         Me.PictureBox2.Name = "PictureBox2"
628
         Me.PictureBox2.Name = "PictureBox2"
620
         Me.PictureBox2.Size = New System.Drawing.Size(160, 99)
629
         Me.PictureBox2.Size = New System.Drawing.Size(160, 99)
621
         Me.PictureBox2.TabIndex = 1660
630
         Me.PictureBox2.TabIndex = 1660
622
         Me.PictureBox2.TabStop = False
631
         Me.PictureBox2.TabStop = False
623
         '
632
         '
633
+        '包裝資訊_bt
634
+        '
635
+        Me.包裝資訊_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
636
+        Me.包裝資訊_bt.ForeColor = System.Drawing.Color.Black
637
+        Me.包裝資訊_bt.Location = New System.Drawing.Point(807, 53)
638
+        Me.包裝資訊_bt.Name = "包裝資訊_bt"
639
+        Me.包裝資訊_bt.Size = New System.Drawing.Size(105, 48)
640
+        Me.包裝資訊_bt.TabIndex = 1661
641
+        Me.包裝資訊_bt.Text = "讀取包裝" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "資訊圖片"
642
+        Me.包裝資訊_bt.UseVisualStyleBackColor = True
643
+        '
644
+        'Panel2
645
+        '
646
+        Me.Panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
647
+        Me.Panel2.Controls.Add(Me.Label18)
648
+        Me.Panel2.Controls.Add(Me.Panel3)
649
+        Me.Panel2.Controls.Add(Me.CanceL3_bt)
650
+        Me.Panel2.Location = New System.Drawing.Point(80, 161)
651
+        Me.Panel2.Name = "Panel2"
652
+        Me.Panel2.Size = New System.Drawing.Size(1188, 399)
653
+        Me.Panel2.TabIndex = 1662
654
+        '
655
+        'Label18
656
+        '
657
+        Me.Label18.AutoSize = True
658
+        Me.Label18.Location = New System.Drawing.Point(7, 8)
659
+        Me.Label18.Name = "Label18"
660
+        Me.Label18.Size = New System.Drawing.Size(80, 16)
661
+        Me.Label18.TabIndex = 1377
662
+        Me.Label18.Text = "包裝資訊圖片"
663
+        '
664
+        'Panel3
665
+        '
666
+        Me.Panel3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
667
+        Me.Panel3.Controls.Add(Me.包裝資料_pb)
668
+        Me.Panel3.Location = New System.Drawing.Point(3, 31)
669
+        Me.Panel3.Name = "Panel3"
670
+        Me.Panel3.Size = New System.Drawing.Size(1180, 363)
671
+        Me.Panel3.TabIndex = 1376
672
+        '
673
+        '包裝資料_pb
674
+        '
675
+        Me.包裝資料_pb.BackColor = System.Drawing.Color.White
676
+        Me.包裝資料_pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
677
+        Me.包裝資料_pb.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
678
+        Me.包裝資料_pb.Location = New System.Drawing.Point(-1, -1)
679
+        Me.包裝資料_pb.Name = "包裝資料_pb"
680
+        Me.包裝資料_pb.Size = New System.Drawing.Size(1179, 362)
681
+        Me.包裝資料_pb.TabIndex = 1660
682
+        Me.包裝資料_pb.TabStop = False
683
+        '
684
+        'CanceL3_bt
685
+        '
686
+        Me.CanceL3_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
687
+        Me.CanceL3_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(128, Byte), Integer), CType(CType(128, Byte), Integer))
688
+        Me.CanceL3_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
689
+        Me.CanceL3_bt.ForeColor = System.Drawing.Color.Black
690
+        Me.CanceL3_bt.Location = New System.Drawing.Point(1157, 3)
691
+        Me.CanceL3_bt.Name = "CanceL3_bt"
692
+        Me.CanceL3_bt.Size = New System.Drawing.Size(26, 26)
693
+        Me.CanceL3_bt.TabIndex = 1375
694
+        Me.CanceL3_bt.Text = "X"
695
+        Me.CanceL3_bt.UseVisualStyleBackColor = False
696
+        '
624
         'STYLE_資料管理
697
         'STYLE_資料管理
625
         '
698
         '
626
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
699
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
627
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
700
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
628
         Me.ClientSize = New System.Drawing.Size(1485, 701)
701
         Me.ClientSize = New System.Drawing.Size(1485, 701)
702
+        Me.Controls.Add(Me.Panel2)
703
+        Me.Controls.Add(Me.包裝資訊_bt)
629
         Me.Controls.Add(Me.PictureBox2)
704
         Me.Controls.Add(Me.PictureBox2)
630
         Me.Controls.Add(Me.PictureBox1)
705
         Me.Controls.Add(Me.PictureBox1)
631
         Me.Controls.Add(Me.WT清空_bt)
706
         Me.Controls.Add(Me.WT清空_bt)
680
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).EndInit()
755
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).EndInit()
681
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
756
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
682
         CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).EndInit()
757
         CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).EndInit()
758
+        Me.Panel2.ResumeLayout(False)
759
+        Me.Panel2.PerformLayout()
760
+        Me.Panel3.ResumeLayout(False)
761
+        CType(Me.包裝資料_pb, System.ComponentModel.ISupportInitialize).EndInit()
683
         Me.ResumeLayout(False)
762
         Me.ResumeLayout(False)
684
         Me.PerformLayout()
763
         Me.PerformLayout()
685
 
764
 
737
     Friend WithEvents Label16 As Label
816
     Friend WithEvents Label16 As Label
738
     Friend WithEvents PictureBox1 As PictureBox
817
     Friend WithEvents PictureBox1 As PictureBox
739
     Friend WithEvents PictureBox2 As PictureBox
818
     Friend WithEvents PictureBox2 As PictureBox
819
+    Friend WithEvents 包裝資訊_bt As Button
820
+    Friend WithEvents Panel2 As Panel
821
+    Friend WithEvents Label18 As Label
822
+    Friend WithEvents Panel3 As Panel
823
+    Friend WithEvents CanceL3_bt As Button
824
+    Friend WithEvents 包裝資料_pb As PictureBox
740
 End Class
825
 End Class
741
 
826
 

+ 19
- 3
TENDEN-MES-SYS/製鞋技術資料管理/STYLE_資料管理.vb Wyświetl plik

31
         Try
31
         Try
32
             STYLE_dgv.Columns(0).FillWeight = 70 : STYLE_dgv.Columns(1).Visible = False : STYLE_dgv.Columns(2).FillWeight = 180 : STYLE_dgv.Columns(3).FillWeight = 80
32
             STYLE_dgv.Columns(0).FillWeight = 70 : STYLE_dgv.Columns(1).Visible = False : STYLE_dgv.Columns(2).FillWeight = 180 : STYLE_dgv.Columns(3).FillWeight = 80
33
             STYLE_dgv.Columns(4).FillWeight = 80 : STYLE_dgv.Columns(5).FillWeight = 220 : STYLE_dgv.Columns(6).Visible = False : STYLE_dgv.Columns(7).FillWeight = 60
33
             STYLE_dgv.Columns(4).FillWeight = 80 : STYLE_dgv.Columns(5).FillWeight = 220 : STYLE_dgv.Columns(6).Visible = False : STYLE_dgv.Columns(7).FillWeight = 60
34
-            STYLE_dgv.Columns(8).FillWeight = 60 : STYLE_dgv.Columns(9).FillWeight = 90
34
+            STYLE_dgv.Columns(8).FillWeight = 60 : STYLE_dgv.Columns(9).FillWeight = 90 : STYLE_dgv.Columns("包裝圖號").Visible = False : STYLE_dgv.Columns("包裝圖庫").Visible = False
35
             STYLE_dgv.Columns(7).DefaultCellStyle.Format = "#,##0" : STYLE_dgv.Columns(8).DefaultCellStyle.Format = "#,##0"
35
             STYLE_dgv.Columns(7).DefaultCellStyle.Format = "#,##0" : STYLE_dgv.Columns(8).DefaultCellStyle.Format = "#,##0"
36
             STYLE_dgv.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
36
             STYLE_dgv.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
37
             STYLE_dgv.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
37
             STYLE_dgv.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
159
     Private Sub TENDENZA_STYLE_資料管理_Load(sender As Object, e As EventArgs) Handles MyBase.Load
159
     Private Sub TENDENZA_STYLE_資料管理_Load(sender As Object, e As EventArgs) Handles MyBase.Load
160
         Try
160
         Try
161
             Me.MdiParent = TENDEN_MES_SYS : Me.WindowState = 2 : Me.AutoScroll = True
161
             Me.MdiParent = TENDEN_MES_SYS : Me.WindowState = 2 : Me.AutoScroll = True
162
-            日期_dtp.Visible = False
162
+            日期_dtp.Visible = False : Panel2.Visible = False
163
             Set_TENDENZASTYLE清單() : Set_grid1()
163
             Set_TENDENZASTYLE清單() : Set_grid1()
164
             Set_清單1() : Set_grid3() : Set_清單2() : Set_grid4() : Set_清單3() : Set_grid5()
164
             Set_清單1() : Set_grid3() : Set_清單2() : Set_grid4() : Set_清單3() : Set_grid5()
165
             型體數1_tb.Text = 订单形體號清单_dgv.Rows.Count : 型體數2_tb.Text = 订单形體號清单1_dgv.Rows.Count : 型體數3_tb.Text = 订单形體號清单2_dgv.Rows.Count
165
             型體數1_tb.Text = 订单形體號清单_dgv.Rows.Count : 型體數2_tb.Text = 订单形體號清单1_dgv.Rows.Count : 型體數3_tb.Text = 订单形體號清单2_dgv.Rows.Count
247
         Try
247
         Try
248
             形體名稱_tb.Text = STYLE_dgv(1, e.RowIndex).Value.ToString : 项目编号_tb.Text = STYLE_dgv(3, e.RowIndex).Value.ToString
248
             形體名稱_tb.Text = STYLE_dgv(1, e.RowIndex).Value.ToString : 项目编号_tb.Text = STYLE_dgv(3, e.RowIndex).Value.ToString
249
             形體號_bt.Text = STYLE_dgv(4, e.RowIndex).Value.ToString : 描述_tb.Text = STYLE_dgv(5, e.RowIndex).Value.ToString
249
             形體號_bt.Text = STYLE_dgv(4, e.RowIndex).Value.ToString : 描述_tb.Text = STYLE_dgv(5, e.RowIndex).Value.ToString
250
-            季節_bt.Text = STYLE_dgv(0, e.RowIndex).Value.ToString
250
+            季節_bt.Text = STYLE_dgv(0, e.RowIndex).Value.ToString : PA20 = STYLE_dgv("包裝圖庫", e.RowIndex).Value.ToString
251
+            PA2 = STYLE_dgv("包裝圖號", e.RowIndex).Value.ToString
251
             If STYLE_dgv("T1", e.RowIndex).Value.ToString = "" Or STYLE_dgv("T1", e.RowIndex).Value.ToString = " " Then
252
             If STYLE_dgv("T1", e.RowIndex).Value.ToString = "" Or STYLE_dgv("T1", e.RowIndex).Value.ToString = " " Then
252
                 T1_dtp.Format = DateTimePickerFormat.Custom : T1_dtp.CustomFormat = " "
253
                 T1_dtp.Format = DateTimePickerFormat.Custom : T1_dtp.CustomFormat = " "
253
             Else : T1_dtp.Format = DateTimePickerFormat.Short : T1_dtp.Value = STYLE_dgv("T1", e.RowIndex).Value.ToString : End If
254
             Else : T1_dtp.Format = DateTimePickerFormat.Short : T1_dtp.Value = STYLE_dgv("T1", e.RowIndex).Value.ToString : End If
557
     Private Sub T4_dtp_ValueChanged(sender As Object, e As EventArgs) Handles T4_dtp.MouseDown
558
     Private Sub T4_dtp_ValueChanged(sender As Object, e As EventArgs) Handles T4_dtp.MouseDown
558
         T4_dtp.Format = DateTimePickerFormat.Short
559
         T4_dtp.Format = DateTimePickerFormat.Short
559
     End Sub
560
     End Sub
561
+    Private Sub CanceL3_bt_Click(sender As Object, e As EventArgs) Handles CanceL3_bt.Click
562
+        Panel2.Visible = False
563
+    End Sub
564
+    Private Sub 包裝資訊_bt_Click(sender As Object, e As EventArgs) Handles 包裝資訊_bt.Click
565
+        If PA20 = "" Or PA2 = "" Then
566
+            MsgBox("沒有包裝資訊圖!!!")
567
+        Else
568
+            Panel2.Visible = True : PA1 = PA20
569
+            SQL_包裝圖片() : 包裝資料_pb.Image = Nothing
570
+            While dr.Read() = True
571
+                Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
572
+                Dim oStream As New MemoryStream(bytes) : 包裝資料_pb.Image = Bitmap.FromStream(oStream)
573
+            End While : conn.Close() : 包裝資料_pb.SizeMode = 4 : 圖片傳遞 = 包裝資料_pb.Image
574
+        End If
575
+    End Sub
560
 End Class
576
 End Class

+ 246
- 0
TENDEN-MES-SYS/資料庫系統管理/系統編碼原則.Designer.vb Wyświetl plik

1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
+Partial Class 系統編碼原則
3
+    Inherits System.Windows.Forms.Form
4
+
5
+    'Form 覆寫 Dispose 以清除元件清單。
6
+    <System.Diagnostics.DebuggerNonUserCode()> _
7
+    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
8
+        Try
9
+            If disposing AndAlso components IsNot Nothing Then
10
+                components.Dispose()
11
+            End If
12
+        Finally
13
+            MyBase.Dispose(disposing)
14
+        End Try
15
+    End Sub
16
+
17
+    '為 Windows Form 設計工具的必要項
18
+    Private components As System.ComponentModel.IContainer
19
+
20
+    '注意: 以下為 Windows Form 設計工具所需的程序
21
+    '可以使用 Windows Form 設計工具進行修改。
22
+    '請勿使用程式碼編輯器進行修改。
23
+    <System.Diagnostics.DebuggerStepThrough()> _
24
+    Private Sub InitializeComponent()
25
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
+        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
+        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
+        Me.圖片資料庫管理修改_bt = New System.Windows.Forms.Button()
32
+        Me.圖片資料庫名稱_lb = New System.Windows.Forms.Label()
33
+        Me.圖片資料庫名稱_tb = New System.Windows.Forms.TextBox()
34
+        Me.圖片資料庫管理_dgv = New System.Windows.Forms.DataGridView()
35
+        Me.重新讀取_bt = New System.Windows.Forms.Button()
36
+        Me.伺服器_lb = New System.Windows.Forms.Label()
37
+        Me.MAX_nud = New System.Windows.Forms.NumericUpDown()
38
+        Me.伺服器狀態_dgv = New System.Windows.Forms.DataGridView()
39
+        Me.是否可用_ch = New System.Windows.Forms.CheckBox()
40
+        Me.LOG檔截斷3_bt = New System.Windows.Forms.Button()
41
+        Me.Label3 = New System.Windows.Forms.Label()
42
+        Me.資料庫清單1_dgv = New System.Windows.Forms.DataGridView()
43
+        CType(Me.圖片資料庫管理_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
44
+        CType(Me.MAX_nud, System.ComponentModel.ISupportInitialize).BeginInit()
45
+        CType(Me.伺服器狀態_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
46
+        CType(Me.資料庫清單1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
47
+        Me.SuspendLayout()
48
+        '
49
+        '圖片資料庫管理修改_bt
50
+        '
51
+        Me.圖片資料庫管理修改_bt.Location = New System.Drawing.Point(935, 297)
52
+        Me.圖片資料庫管理修改_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
53
+        Me.圖片資料庫管理修改_bt.Name = "圖片資料庫管理修改_bt"
54
+        Me.圖片資料庫管理修改_bt.Size = New System.Drawing.Size(386, 31)
55
+        Me.圖片資料庫管理修改_bt.TabIndex = 710
56
+        Me.圖片資料庫管理修改_bt.Text = "修改"
57
+        '
58
+        '圖片資料庫名稱_lb
59
+        '
60
+        Me.圖片資料庫名稱_lb.AutoSize = True
61
+        Me.圖片資料庫名稱_lb.BackColor = System.Drawing.SystemColors.Control
62
+        Me.圖片資料庫名稱_lb.Location = New System.Drawing.Point(934, 5)
63
+        Me.圖片資料庫名稱_lb.Name = "圖片資料庫名稱_lb"
64
+        Me.圖片資料庫名稱_lb.Size = New System.Drawing.Size(92, 16)
65
+        Me.圖片資料庫名稱_lb.TabIndex = 708
66
+        Me.圖片資料庫名稱_lb.Text = "圖片資料庫名稱"
67
+        '
68
+        '圖片資料庫名稱_tb
69
+        '
70
+        Me.圖片資料庫名稱_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
71
+        Me.圖片資料庫名稱_tb.Location = New System.Drawing.Point(1026, 2)
72
+        Me.圖片資料庫名稱_tb.Margin = New System.Windows.Forms.Padding(5)
73
+        Me.圖片資料庫名稱_tb.Name = "圖片資料庫名稱_tb"
74
+        Me.圖片資料庫名稱_tb.Size = New System.Drawing.Size(212, 23)
75
+        Me.圖片資料庫名稱_tb.TabIndex = 707
76
+        '
77
+        '圖片資料庫管理_dgv
78
+        '
79
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.White
80
+        Me.圖片資料庫管理_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
81
+        Me.圖片資料庫管理_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
82
+        Me.圖片資料庫管理_dgv.BackgroundColor = System.Drawing.Color.White
83
+        DataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
84
+        DataGridViewCellStyle2.BackColor = System.Drawing.Color.White
85
+        DataGridViewCellStyle2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
86
+        DataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText
87
+        DataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight
88
+        DataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText
89
+        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
90
+        Me.圖片資料庫管理_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle2
91
+        Me.圖片資料庫管理_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
92
+        Me.圖片資料庫管理_dgv.Location = New System.Drawing.Point(936, 27)
93
+        Me.圖片資料庫管理_dgv.Name = "圖片資料庫管理_dgv"
94
+        Me.圖片資料庫管理_dgv.RowHeadersWidth = 5
95
+        Me.圖片資料庫管理_dgv.RowTemplate.Height = 24
96
+        Me.圖片資料庫管理_dgv.Size = New System.Drawing.Size(385, 269)
97
+        Me.圖片資料庫管理_dgv.TabIndex = 706
98
+        '
99
+        '重新讀取_bt
100
+        '
101
+        Me.重新讀取_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
102
+        Me.重新讀取_bt.Location = New System.Drawing.Point(856, 3)
103
+        Me.重新讀取_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
104
+        Me.重新讀取_bt.Name = "重新讀取_bt"
105
+        Me.重新讀取_bt.Size = New System.Drawing.Size(72, 23)
106
+        Me.重新讀取_bt.TabIndex = 705
107
+        Me.重新讀取_bt.Text = "重新讀取"
108
+        '
109
+        '伺服器_lb
110
+        '
111
+        Me.伺服器_lb.AutoSize = True
112
+        Me.伺服器_lb.BackColor = System.Drawing.SystemColors.Control
113
+        Me.伺服器_lb.Location = New System.Drawing.Point(536, 6)
114
+        Me.伺服器_lb.Name = "伺服器_lb"
115
+        Me.伺服器_lb.Size = New System.Drawing.Size(230, 16)
116
+        Me.伺服器_lb.TabIndex = 704
117
+        Me.伺服器_lb.Text = "伺服器中資料庫極限容量監控設定值 (MB)"
118
+        '
119
+        'MAX_nud
120
+        '
121
+        Me.MAX_nud.Location = New System.Drawing.Point(772, 3)
122
+        Me.MAX_nud.Maximum = New Decimal(New Integer() {100000000, 0, 0, 0})
123
+        Me.MAX_nud.Name = "MAX_nud"
124
+        Me.MAX_nud.Size = New System.Drawing.Size(83, 23)
125
+        Me.MAX_nud.TabIndex = 703
126
+        Me.MAX_nud.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
127
+        Me.MAX_nud.ThousandsSeparator = True
128
+        Me.MAX_nud.Value = New Decimal(New Integer() {5000, 0, 0, 0})
129
+        '
130
+        '伺服器狀態_dgv
131
+        '
132
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.White
133
+        Me.伺服器狀態_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
134
+        Me.伺服器狀態_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
135
+        Me.伺服器狀態_dgv.BackgroundColor = System.Drawing.Color.White
136
+        DataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
137
+        DataGridViewCellStyle4.BackColor = System.Drawing.Color.White
138
+        DataGridViewCellStyle4.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
139
+        DataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText
140
+        DataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight
141
+        DataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText
142
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
143
+        Me.伺服器狀態_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle4
144
+        Me.伺服器狀態_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
145
+        Me.伺服器狀態_dgv.Location = New System.Drawing.Point(6, 27)
146
+        Me.伺服器狀態_dgv.Name = "伺服器狀態_dgv"
147
+        Me.伺服器狀態_dgv.RowHeadersWidth = 5
148
+        Me.伺服器狀態_dgv.RowTemplate.Height = 24
149
+        Me.伺服器狀態_dgv.Size = New System.Drawing.Size(924, 301)
150
+        Me.伺服器狀態_dgv.TabIndex = 688
151
+        '
152
+        '是否可用_ch
153
+        '
154
+        Me.是否可用_ch.AutoSize = True
155
+        Me.是否可用_ch.Location = New System.Drawing.Point(1246, 6)
156
+        Me.是否可用_ch.Name = "是否可用_ch"
157
+        Me.是否可用_ch.Size = New System.Drawing.Size(75, 20)
158
+        Me.是否可用_ch.TabIndex = 709
159
+        Me.是否可用_ch.Text = "是否鎖定"
160
+        Me.是否可用_ch.UseVisualStyleBackColor = True
161
+        '
162
+        'LOG檔截斷3_bt
163
+        '
164
+        Me.LOG檔截斷3_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
165
+        Me.LOG檔截斷3_bt.Location = New System.Drawing.Point(67, 332)
166
+        Me.LOG檔截斷3_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
167
+        Me.LOG檔截斷3_bt.Name = "LOG檔截斷3_bt"
168
+        Me.LOG檔截斷3_bt.Size = New System.Drawing.Size(123, 23)
169
+        Me.LOG檔截斷3_bt.TabIndex = 1505
170
+        Me.LOG檔截斷3_bt.Text = "LOG檔截斷"
171
+        '
172
+        'Label3
173
+        '
174
+        Me.Label3.AutoSize = True
175
+        Me.Label3.BackColor = System.Drawing.SystemColors.Control
176
+        Me.Label3.Location = New System.Drawing.Point(9, 335)
177
+        Me.Label3.Name = "Label3"
178
+        Me.Label3.Size = New System.Drawing.Size(56, 16)
179
+        Me.Label3.TabIndex = 1504
180
+        Me.Label3.Text = "主伺服器"
181
+        '
182
+        '資料庫清單1_dgv
183
+        '
184
+        DataGridViewCellStyle5.BackColor = System.Drawing.Color.White
185
+        Me.資料庫清單1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
186
+        Me.資料庫清單1_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
187
+        Me.資料庫清單1_dgv.BackgroundColor = System.Drawing.Color.White
188
+        DataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
189
+        DataGridViewCellStyle6.BackColor = System.Drawing.Color.White
190
+        DataGridViewCellStyle6.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
191
+        DataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText
192
+        DataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight
193
+        DataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText
194
+        DataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
195
+        Me.資料庫清單1_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle6
196
+        Me.資料庫清單1_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
197
+        Me.資料庫清單1_dgv.Location = New System.Drawing.Point(6, 357)
198
+        Me.資料庫清單1_dgv.Name = "資料庫清單1_dgv"
199
+        Me.資料庫清單1_dgv.RowHeadersWidth = 5
200
+        Me.資料庫清單1_dgv.RowTemplate.Height = 24
201
+        Me.資料庫清單1_dgv.Size = New System.Drawing.Size(184, 198)
202
+        Me.資料庫清單1_dgv.TabIndex = 1506
203
+        '
204
+        '系統編碼原則
205
+        '
206
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
207
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
208
+        Me.ClientSize = New System.Drawing.Size(1333, 706)
209
+        Me.Controls.Add(Me.資料庫清單1_dgv)
210
+        Me.Controls.Add(Me.LOG檔截斷3_bt)
211
+        Me.Controls.Add(Me.Label3)
212
+        Me.Controls.Add(Me.伺服器狀態_dgv)
213
+        Me.Controls.Add(Me.圖片資料庫管理修改_bt)
214
+        Me.Controls.Add(Me.圖片資料庫名稱_lb)
215
+        Me.Controls.Add(Me.圖片資料庫名稱_tb)
216
+        Me.Controls.Add(Me.圖片資料庫管理_dgv)
217
+        Me.Controls.Add(Me.重新讀取_bt)
218
+        Me.Controls.Add(Me.伺服器_lb)
219
+        Me.Controls.Add(Me.MAX_nud)
220
+        Me.Controls.Add(Me.是否可用_ch)
221
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
222
+        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
223
+        Me.Name = "系統編碼原則"
224
+        Me.Text = "系統編碼原則"
225
+        CType(Me.圖片資料庫管理_dgv, System.ComponentModel.ISupportInitialize).EndInit()
226
+        CType(Me.MAX_nud, System.ComponentModel.ISupportInitialize).EndInit()
227
+        CType(Me.伺服器狀態_dgv, System.ComponentModel.ISupportInitialize).EndInit()
228
+        CType(Me.資料庫清單1_dgv, System.ComponentModel.ISupportInitialize).EndInit()
229
+        Me.ResumeLayout(False)
230
+        Me.PerformLayout()
231
+
232
+    End Sub
233
+
234
+    Friend WithEvents 圖片資料庫管理修改_bt As Button
235
+    Friend WithEvents 圖片資料庫名稱_lb As Label
236
+    Friend WithEvents 圖片資料庫名稱_tb As TextBox
237
+    Friend WithEvents 圖片資料庫管理_dgv As DataGridView
238
+    Friend WithEvents 重新讀取_bt As Button
239
+    Friend WithEvents 伺服器_lb As Label
240
+    Friend WithEvents MAX_nud As NumericUpDown
241
+    Friend WithEvents 伺服器狀態_dgv As DataGridView
242
+    Friend WithEvents 是否可用_ch As CheckBox
243
+    Friend WithEvents LOG檔截斷3_bt As Button
244
+    Friend WithEvents Label3 As Label
245
+    Friend WithEvents 資料庫清單1_dgv As DataGridView
246
+End Class

+ 120
- 0
TENDEN-MES-SYS/資料庫系統管理/系統編碼原則.resx Wyświetl plik

1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 96
- 0
TENDEN-MES-SYS/資料庫系統管理/系統編碼原則.vb Wyświetl plik

1
+Public Class 系統編碼原則
2
+    Private Sub Set_工程圖片資料庫狀態()
3
+        Dim ds9 As New DataSet : 圖片資料庫管理_dgv.DataSource = Nothing : ds9.Clear()
4
+        圖片資料庫管理_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
5
+        圖片資料庫管理_dgv.ColumnHeadersHeight = 25
6
+        圖片資料庫管理_dgv.AllowUserToAddRows = False
7
+        SQL_圖片資料庫管理查詢()
8
+        da.Fill(ds9) : 圖片資料庫管理_dgv.DataSource = ds9.Tables(0) : conn.Close()
9
+        圖片資料庫管理_dgv.Columns(0).FillWeight = 100 : 圖片資料庫管理_dgv.Columns(1).FillWeight = 30
10
+    End Sub
11
+    Private Sub Set_伺服器1清單()
12
+        Try
13
+            Dim ds8 As New DataSet : 資料庫清單1_dgv.DataSource = Nothing : ds8.Clear()
14
+            資料庫清單1_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
15
+            資料庫清單1_dgv.ColumnHeadersHeight = 25
16
+            資料庫清單1_dgv.AllowUserToAddRows = False
17
+            SQL_伺服器1清單()
18
+            da.Fill(ds8) : 資料庫清單1_dgv.DataSource = ds8.Tables(0) : conn.Close()
19
+        Catch ex As Exception
20
+            MsgBox(ex.Message)
21
+        End Try
22
+    End Sub
23
+    Private Sub Set_伺服器狀態()
24
+        Dim ds8 As New DataSet : 伺服器狀態_dgv.DataSource = Nothing : ds8.Clear()
25
+        伺服器狀態_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
26
+        伺服器狀態_dgv.ColumnHeadersHeight = 25
27
+        伺服器狀態_dgv.AllowUserToAddRows = False
28
+        SQL_資料庫狀態()
29
+        da.Fill(ds8) : 伺服器狀態_dgv.DataSource = ds8.Tables(0) : conn.Close()
30
+        Set_進度條顯示()
31
+        伺服器狀態_dgv.Columns(4).DefaultCellStyle.Format = "#,##0.000"
32
+        伺服器狀態_dgv.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
33
+        伺服器狀態_dgv.Columns(5).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
34
+        伺服器狀態_dgv.Columns(0).FillWeight = 120 : 伺服器狀態_dgv.Columns(1).FillWeight = 180
35
+        伺服器狀態_dgv.Columns(2).FillWeight = 55 : 伺服器狀態_dgv.Columns(3).FillWeight = 70
36
+        伺服器狀態_dgv.Columns(4).Visible = False
37
+    End Sub
38
+    Private Sub Set_進度條顯示()
39
+        Dim Col As New DataGridViewProgressColumn With {
40
+            .FillWeight = 100,
41
+            .DataPropertyName = "容量"
42
+        }
43
+        Col.HeaderText = "使用容量" : Col.Name = "容量" : Col.DataPropertyName = "使用容量"
44
+        伺服器狀態_dgv.Columns.Insert(5, Col)
45
+    End Sub
46
+    Private Sub 系統編碼原則_Load(sender As Object, e As EventArgs) Handles MyBase.Load
47
+        分母 = MAX_nud.Value : 分段1 = 0.2 : 分段2 = 0.19 : 分段3 = 0.8 : 分段4 = 0.79 : 進度條後墜 = " MB"
48
+        Me.MdiParent = TENDEN_MES_SYS : Me.WindowState = 2 : Me.AutoScroll = True
49
+        SQL_系統預設值()
50
+        If dr.Read() Then
51
+            MAX_nud.Value = dr("圖片伺服器上限") : 分母 = dr("圖片伺服器上限")
52
+        End If
53
+        Set_伺服器狀態() : Set_工程圖片資料庫狀態() : Set_伺服器1清單()
54
+    End Sub
55
+    Private Sub 伺服器狀態_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 伺服器狀態_dgv.CellClick
56
+        If e.RowIndex = -1 Then : Else
57
+            圖片資料庫名稱_tb.Text = 伺服器狀態_dgv(0, e.RowIndex).Value.ToString : 是否可用_ch.Checked = False
58
+        End If
59
+    End Sub
60
+    Private Sub 圖片資料庫管理_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 圖片資料庫管理_dgv.CellClick
61
+        If e.RowIndex = -1 Then : Else
62
+            圖片資料庫名稱_tb.Text = 圖片資料庫管理_dgv(0, e.RowIndex).Value.ToString : 是否可用_ch.Checked = 圖片資料庫管理_dgv(1, e.RowIndex).Value
63
+        End If
64
+    End Sub
65
+    Private Sub 伺服器狀態_dgv_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 伺服器狀態_dgv.RowPostPaint
66
+        Dim linePen As New Pen(Color.Blue, 2)
67
+        If e.RowIndex = 伺服器狀態_dgv.Rows.Count - 1 Then
68
+            Exit Sub
69
+        Else
70
+            If 伺服器狀態_dgv(0, e.RowIndex).Value.ToString <> 伺服器狀態_dgv(0, e.RowIndex + 1).Value.ToString Then
71
+                Dim startX As Integer = IIf(伺服器狀態_dgv.RowHeadersVisible, 伺服器狀態_dgv.RowHeadersWidth, 0)
72
+                Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
73
+                Dim endX As Integer = startX + 伺服器狀態_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 伺服器狀態_dgv.HorizontalScrollingOffset
74
+                e.Graphics.DrawLine(linePen, startX, startY, endX, startY)
75
+                Exit Sub
76
+            End If
77
+        End If
78
+    End Sub
79
+    Private Sub 重新讀取_bt_Click(sender As Object, e As EventArgs) Handles 重新讀取_bt.Click
80
+        SQL_系統預測值修改() : 分母 = MAX_nud.Value : 圖庫限制 = MAX_nud.Value : Set_伺服器狀態()
81
+    End Sub
82
+    Private Sub 圖片資料庫管理修改_bt_Click(sender As Object, e As EventArgs) Handles 圖片資料庫管理修改_bt.Click
83
+        SQL_圖片資料庫管理查詢1()
84
+        If dr.Read() Then
85
+            SQL_工程圖片資料庫管理查詢修改()
86
+        Else
87
+            SQL_工程圖片資料庫管理查詢新增()
88
+        End If : Set_工程圖片資料庫狀態() : MsgBox("修改完成!!!")
89
+    End Sub
90
+    Private Sub LOG檔截斷3_bt_Click(sender As Object, e As EventArgs) Handles LOG檔截斷3_bt.Click
91
+        For I As Integer = 0 To 資料庫清單1_dgv.Rows.Count - 1
92
+            PA = 資料庫清單1_dgv(0, I).Value.ToString : SQL_主資料庫LOG檔案截斷()
93
+        Next
94
+        重新讀取_bt.PerformClick()
95
+    End Sub
96
+End Class

+ 17
- 30
TENDEN-MES-SYS/量產訂單管理/量產管理報表/出貨明細表.vb Wyświetl plik

9
             訂單明細表_dgv.ColumnHeadersHeight = 25
9
             訂單明細表_dgv.ColumnHeadersHeight = 25
10
             訂單明細表_dgv.AllowUserToAddRows = False
10
             訂單明細表_dgv.AllowUserToAddRows = False
11
             ConnOpen()
11
             ConnOpen()
12
-            If PA = "" Then
13
-                SQL_出貨明細表()
14
-            Else
15
-                SQL_出貨明細表1()
16
-            End If
12
+            If PA = "" Then : SQL_出貨明細表() : Else : SQL_出貨明細表1() : End If
17
             列印用SQL = SQL1
13
             列印用SQL = SQL1
18
             CmdSet_For_DGV()
14
             CmdSet_For_DGV()
19
-            da.SelectCommand.CommandTimeout = 900 : da.Fill(ds) : 訂單明細表_dgv.DataSource = ds.Tables(0) : conn.Close() : Set_grid()
20
-        Catch ex As Exception
21
-            MsgBox(ex.Message)
22
-        End Try
23
-    End Sub
24
-    Private Sub Set_grid()
25
-        Try
15
+            da.SelectCommand.CommandTimeout = 900 : da.Fill(ds) : 訂單明細表_dgv.DataSource = ds.Tables(0) : conn.Close()
16
+
26
             訂單明細表_dgv.Columns(0).Visible = False : 訂單明細表_dgv.Columns(1).FillWeight = 75 : 訂單明細表_dgv.Columns(2).FillWeight = 60 : 訂單明細表_dgv.Columns(3).FillWeight = 120
17
             訂單明細表_dgv.Columns(0).Visible = False : 訂單明細表_dgv.Columns(1).FillWeight = 75 : 訂單明細表_dgv.Columns(2).FillWeight = 60 : 訂單明細表_dgv.Columns(3).FillWeight = 120
27
             訂單明細表_dgv.Columns(4).FillWeight = 150 : 訂單明細表_dgv.Columns(5).FillWeight = 130 : 訂單明細表_dgv.Columns(6).FillWeight = 60
18
             訂單明細表_dgv.Columns(4).FillWeight = 150 : 訂單明細表_dgv.Columns(5).FillWeight = 130 : 訂單明細表_dgv.Columns(6).FillWeight = 60
28
 
19
 
36
 
27
 
37
             訂單明細表_dgv.Columns(9).Visible = False : 訂單明細表_dgv.Columns(10).FillWeight = 80 : 訂單明細表_dgv.Columns(11).FillWeight = 80 : 訂單明細表_dgv.Columns(12).FillWeight = 80
28
             訂單明細表_dgv.Columns(9).Visible = False : 訂單明細表_dgv.Columns(10).FillWeight = 80 : 訂單明細表_dgv.Columns(11).FillWeight = 80 : 訂單明細表_dgv.Columns(12).FillWeight = 80
38
             訂單明細表_dgv.Columns(13).FillWeight = 80 : 訂單明細表_dgv.Columns(14).FillWeight = 80 : 訂單明細表_dgv.Columns(15).Visible = False
29
             訂單明細表_dgv.Columns(13).FillWeight = 80 : 訂單明細表_dgv.Columns(14).FillWeight = 80 : 訂單明細表_dgv.Columns(15).Visible = False
39
-            訂單明細表_dgv.Columns(16).Visible = False : 訂單明細表_dgv.Columns(17).Visible = False
30
+            訂單明細表_dgv.Columns(16).Visible = False : 訂單明細表_dgv.Columns(17).Visible = False : 訂單明細表_dgv.Columns(18).Visible = False
40
         Catch ex As Exception
31
         Catch ex As Exception
41
             MsgBox(ex.Message)
32
             MsgBox(ex.Message)
42
         End Try
33
         End Try
131
     Private Sub DataGridView1_CellClick(ByVal sender As Object, ByVal e As DataGridViewCellEventArgs) Handles 訂單明細表_dgv.CellClick
122
     Private Sub DataGridView1_CellClick(ByVal sender As Object, ByVal e As DataGridViewCellEventArgs) Handles 訂單明細表_dgv.CellClick
132
         Try
123
         Try
133
             If e.RowIndex = -1 Then : Else
124
             If e.RowIndex = -1 Then : Else
134
-                驗貨報告編號_tb.Text = 訂單明細表_dgv(1, e.RowIndex).Value.ToString
135
-                明細是否建檔_cb.Checked = 訂單明細表_dgv(15, e.RowIndex).Value.ToString
136
-                天盾訂單號_tb.Text = 訂單明細表_dgv("訂單流水號", e.RowIndex).Value.ToString
137
-                客戶訂單號_tb.Text = 訂單明細表_dgv("客戶訂單號", e.RowIndex).Value.ToString
125
+                驗貨報告編號_tb.Text = 訂單明細表_dgv(1, e.RowIndex).Value.ToString : 明細是否建檔_cb.Checked = 訂單明細表_dgv(15, e.RowIndex).Value.ToString
126
+                天盾訂單號_tb.Text = 訂單明細表_dgv("訂單流水號", e.RowIndex).Value.ToString : 客戶訂單號_tb.Text = 訂單明細表_dgv("客戶訂單號", e.RowIndex).Value.ToString
127
+
138
                 If 明細是否建檔_cb.Checked = False Then : 開啟訂單明細表_bt.Enabled = False : Else : 開啟訂單明細表_bt.Enabled = True : End If
128
                 If 明細是否建檔_cb.Checked = False Then : 開啟訂單明細表_bt.Enabled = False : Else : 開啟訂單明細表_bt.Enabled = True : End If
139
-                PA = 訂單明細表_dgv("TVW", e.RowIndex).Value.ToString : PA1 = 訂單明細表_dgv(16, e.RowIndex).Value.ToString
140
-                PA2 = 訂單明細表_dgv(5, e.RowIndex).Value.ToString
129
+                PA = 訂單明細表_dgv("TVW", e.RowIndex).Value.ToString : PA1 = 訂單明細表_dgv(16, e.RowIndex).Value.ToString : PA2 = 訂單明細表_dgv(5, e.RowIndex).Value.ToString
141
                 If 訂單明細表_dgv(5, e.RowIndex).Value = "" Then
130
                 If 訂單明細表_dgv(5, e.RowIndex).Value = "" Then
142
-                    SQL_讀取訂單明細表圖片()
143
-                    驗貨報告_pb.Image = Nothing
131
+                    SQL_讀取訂單明細表圖片() : 驗貨報告_pb.Image = Nothing
144
                     While dr.Read() = True
132
                     While dr.Read() = True
145
                         Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
133
                         Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
146
                         Dim oStream As New MemoryStream(bytes) : 驗貨報告_pb.Image = Bitmap.FromStream(oStream)
134
                         Dim oStream As New MemoryStream(bytes) : 驗貨報告_pb.Image = Bitmap.FromStream(oStream)
148
                 Else
136
                 Else
149
                     SQL_讀取訂單明細表圖片1()
137
                     SQL_讀取訂單明細表圖片1()
150
                     If dr.Read() Then
138
                     If dr.Read() Then
151
-                        SQL_讀取訂單明細表圖片1()
152
-                        驗貨報告_pb.Image = Nothing
139
+                        SQL_讀取訂單明細表圖片1() : 驗貨報告_pb.Image = Nothing
153
                         While dr.Read() = True
140
                         While dr.Read() = True
154
                             Dim unused2 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
141
                             Dim unused2 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
155
                             Dim oStream As New MemoryStream(bytes) : 驗貨報告_pb.Image = Bitmap.FromStream(oStream)
142
                             Dim oStream As New MemoryStream(bytes) : 驗貨報告_pb.Image = Bitmap.FromStream(oStream)
156
                         End While
143
                         End While
157
                     Else
144
                     Else
158
-                        SQL_讀取訂單明細表圖片()
159
-                        驗貨報告_pb.Image = Nothing
145
+                        SQL_讀取訂單明細表圖片() : 驗貨報告_pb.Image = Nothing
160
                         While dr.Read() = True
146
                         While dr.Read() = True
161
                             Dim unused1 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
147
                             Dim unused1 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
162
                             Dim oStream As New MemoryStream(bytes) : 驗貨報告_pb.Image = Bitmap.FromStream(oStream)
148
                             Dim oStream As New MemoryStream(bytes) : 驗貨報告_pb.Image = Bitmap.FromStream(oStream)
164
                     End If
150
                     End If
165
                 End If
151
                 End If
166
                 conn.Close() : 驗貨報告_pb.SizeMode = 4
152
                 conn.Close() : 驗貨報告_pb.SizeMode = 4
167
-                SQL_讀取訂單明細表圖片2()
168
-                驗貨報告圖庫_pb.Image = Nothing
153
+                '------------驗貨報告讀取--------------------------------------------------------------------------------------------
154
+
155
+                PA1 = 訂單明細表_dgv("驗報圖庫", e.RowIndex).Value.ToString : PA2 = 訂單明細表_dgv("驗貨報告圖片", e.RowIndex).Value.ToString
156
+                SQL_讀取訂單明細表圖片2() : 驗貨報告圖庫_pb.Image = Nothing
169
                 While dr.Read() = True
157
                 While dr.Read() = True
170
                     Dim unused3 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("驗貨報告"), Byte())
158
                     Dim unused3 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("驗貨報告"), Byte())
171
                     Dim oStream As New MemoryStream(bytes) : 驗貨報告圖庫_pb.Image = Bitmap.FromStream(oStream)
159
                     Dim oStream As New MemoryStream(bytes) : 驗貨報告圖庫_pb.Image = Bitmap.FromStream(oStream)
172
                 End While
160
                 End While
173
-                conn.Close() : 驗貨報告圖庫_pb.SizeMode = 4
161
+                conn.Close() : 驗貨報告圖庫_pb.SizeMode = 4 : 圖片傳遞 = 驗貨報告圖庫_pb.Image
174
 
162
 
175
-                驗貨報告 = 訂單明細表_dgv(16, e.RowIndex).Value.ToString
176
-                Set_訂單明細()
163
+                驗貨報告 = 訂單明細表_dgv(16, e.RowIndex).Value.ToString : Set_訂單明細()
177
             End If
164
             End If
178
         Catch ex As Exception
165
         Catch ex As Exception
179
             MsgBox(ex.Message)
166
             MsgBox(ex.Message)

+ 18
- 30
TENDEN-MES-SYS/量產訂單管理/量產管理報表/周進度表.vb Wyświetl plik

12
             訂單種類_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
12
             訂單種類_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
13
             訂單種類_dgv.ColumnHeadersHeight = 25
13
             訂單種類_dgv.ColumnHeadersHeight = 25
14
             訂單種類_dgv.AllowUserToAddRows = False
14
             訂單種類_dgv.AllowUserToAddRows = False
15
-
16
-            ConnOpen()
17
-            If PA = "" Then
18
-                SQL_讀取周進度表()
19
-            Else
20
-                SQL_讀取周進度表1()
21
-            End If
22
-            CmdSet_For_DGV()
15
+            ConnOpen() : If PA = "" Then : SQL_讀取周進度表() : Else : SQL_讀取周進度表1() : End If : CmdSet_For_DGV()
23
             da.SelectCommand.CommandTimeout = 900 : da.Fill(ds) : 訂單種類_dgv.DataSource = ds.Tables(0) : conn.Close()
16
             da.SelectCommand.CommandTimeout = 900 : da.Fill(ds) : 訂單種類_dgv.DataSource = ds.Tables(0) : conn.Close()
24
         Catch ex As Exception
17
         Catch ex As Exception
25
             MsgBox(ex.Message)
18
             MsgBox(ex.Message)
31
             訂單種類_dgv.Columns(4).FillWeight = 200 : 訂單種類_dgv.Columns(5).FillWeight = 130 : 訂單種類_dgv.Columns(6).FillWeight = 55 : 訂單種類_dgv.Columns(7).FillWeight = 55
24
             訂單種類_dgv.Columns(4).FillWeight = 200 : 訂單種類_dgv.Columns(5).FillWeight = 130 : 訂單種類_dgv.Columns(6).FillWeight = 55 : 訂單種類_dgv.Columns(7).FillWeight = 55
32
             訂單種類_dgv.Columns(8).FillWeight = 90 : 訂單種類_dgv.Columns(9).FillWeight = 80 : 訂單種類_dgv.Columns(10).FillWeight = 80 : 訂單種類_dgv.Columns(11).FillWeight = 75
25
             訂單種類_dgv.Columns(8).FillWeight = 90 : 訂單種類_dgv.Columns(9).FillWeight = 80 : 訂單種類_dgv.Columns(10).FillWeight = 80 : 訂單種類_dgv.Columns(11).FillWeight = 75
33
             訂單種類_dgv.Columns(12).FillWeight = 75 : 訂單種類_dgv.Columns(13).FillWeight = 75 : 訂單種類_dgv.Columns(14).FillWeight = 150 : 訂單種類_dgv.Columns(15).FillWeight = 152
26
             訂單種類_dgv.Columns(12).FillWeight = 75 : 訂單種類_dgv.Columns(13).FillWeight = 75 : 訂單種類_dgv.Columns(14).FillWeight = 150 : 訂單種類_dgv.Columns(15).FillWeight = 152
34
-            訂單種類_dgv.Columns(16).Visible = False : 訂單種類_dgv.Columns(19).Visible = False
35
-            訂單種類_dgv.Columns(17).Visible = False
27
+            訂單種類_dgv.Columns(16).Visible = False : 訂單種類_dgv.Columns(19).Visible = False : 訂單種類_dgv.Columns(17).Visible = False : 訂單種類_dgv.Columns(20).Visible = False
36
             訂單種類_dgv.Columns(7).DefaultCellStyle.Format = "#,##0"
28
             訂單種類_dgv.Columns(7).DefaultCellStyle.Format = "#,##0"
37
             訂單種類_dgv.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
29
             訂單種類_dgv.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
38
             訂單種類_dgv.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
30
             訂單種類_dgv.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
39
-            訂單種類_dgv.Columns(1).DefaultCellStyle.BackColor = Color.MistyRose
40
-            訂單種類_dgv.Columns(8).DefaultCellStyle.BackColor = Color.MistyRose
41
-            訂單種類_dgv.Columns(9).DefaultCellStyle.BackColor = Color.MistyRose
42
-            訂單種類_dgv.Columns(10).DefaultCellStyle.BackColor = Color.MistyRose
43
-            訂單種類_dgv.Columns(14).DefaultCellStyle.BackColor = Color.MistyRose
44
-            訂單種類_dgv.Columns(15).DefaultCellStyle.BackColor = Color.MistyRose
31
+            訂單種類_dgv.Columns(1).DefaultCellStyle.BackColor = Color.MistyRose : 訂單種類_dgv.Columns(8).DefaultCellStyle.BackColor = Color.MistyRose
32
+            訂單種類_dgv.Columns(9).DefaultCellStyle.BackColor = Color.MistyRose : 訂單種類_dgv.Columns(10).DefaultCellStyle.BackColor = Color.MistyRose
33
+            訂單種類_dgv.Columns(14).DefaultCellStyle.BackColor = Color.MistyRose : 訂單種類_dgv.Columns(15).DefaultCellStyle.BackColor = Color.MistyRose
45
             訂單種類_dgv.EditMode = DataGridViewEditMode.EditOnEnter
34
             訂單種類_dgv.EditMode = DataGridViewEditMode.EditOnEnter
46
         Catch ex As Exception
35
         Catch ex As Exception
47
             MsgBox(ex.Message)
36
             MsgBox(ex.Message)
117
             If e.RowIndex = -1 Then : Else
106
             If e.RowIndex = -1 Then : Else
118
                 If 訂單種類_dgv(5, e.RowIndex).Value = "" Then
107
                 If 訂單種類_dgv(5, e.RowIndex).Value = "" Then
119
                     PA = 訂單種類_dgv(4, e.RowIndex).Value.ToString
108
                     PA = 訂單種類_dgv(4, e.RowIndex).Value.ToString
120
-                    SQL_讀取訂單種類圖片()
121
-                    圖片_pb.Image = Nothing
109
+                    SQL_讀取訂單種類圖片() : 圖片_pb.Image = Nothing
122
                     While dr.Read() = True
110
                     While dr.Read() = True
123
                         Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
111
                         Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
124
                         Dim oStream As New MemoryStream(bytes) : 圖片_pb.Image = Bitmap.FromStream(oStream)
112
                         Dim oStream As New MemoryStream(bytes) : 圖片_pb.Image = Bitmap.FromStream(oStream)
128
                     SQL_讀取訂單種類圖片1()
116
                     SQL_讀取訂單種類圖片1()
129
                     If dr.Read() Then
117
                     If dr.Read() Then
130
                         PA1 = 訂單種類_dgv("TVW", e.RowIndex).Value.ToString : PA = 訂單種類_dgv(5, e.RowIndex).Value.ToString
118
                         PA1 = 訂單種類_dgv("TVW", e.RowIndex).Value.ToString : PA = 訂單種類_dgv(5, e.RowIndex).Value.ToString
131
-                        SQL_讀取訂單種類圖片1()
132
-                        圖片_pb.Image = Nothing
119
+                        SQL_讀取訂單種類圖片1() : 圖片_pb.Image = Nothing
133
                         While dr.Read() = True
120
                         While dr.Read() = True
134
                             Dim unused3 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
121
                             Dim unused3 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
135
                             Dim oStream As New MemoryStream(bytes) : 圖片_pb.Image = Bitmap.FromStream(oStream)
122
                             Dim oStream As New MemoryStream(bytes) : 圖片_pb.Image = Bitmap.FromStream(oStream)
136
                         End While
123
                         End While
137
                     Else
124
                     Else
138
                         PA1 = 訂單種類_dgv("TVW", e.RowIndex).Value.ToString
125
                         PA1 = 訂單種類_dgv("TVW", e.RowIndex).Value.ToString
139
-                        SQL_讀取訂單種類圖片2()
140
-                        圖片_pb.Image = Nothing
126
+                        SQL_讀取訂單種類圖片2() : 圖片_pb.Image = Nothing
141
                         While dr.Read() = True
127
                         While dr.Read() = True
142
                             Dim unused1 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
128
                             Dim unused1 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
143
                             Dim oStream As New MemoryStream(bytes) : 圖片_pb.Image = Bitmap.FromStream(oStream)
129
                             Dim oStream As New MemoryStream(bytes) : 圖片_pb.Image = Bitmap.FromStream(oStream)
145
                     End If
131
                     End If
146
                 End If
132
                 End If
147
                 conn.Close() : 圖片_pb.SizeMode = 4
133
                 conn.Close() : 圖片_pb.SizeMode = 4
148
-                PA3 = 訂單種類_dgv(17, e.RowIndex).Value.ToString
149
-                SQL_讀取訂單種類圖片3()
150
-                驗貨報告圖片_pb.Image = Nothing
151
-                While dr.Read() = True
152
-                    Dim unused2 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("驗貨報告"), Byte())
153
-                    Dim oStream As New MemoryStream(bytes) : 驗貨報告圖片_pb.Image = Bitmap.FromStream(oStream)
154
-                End While
155
-                conn.Close() : 驗貨報告圖片_pb.SizeMode = 4
156
 
134
 
135
+                '------------驗貨報告讀取--------------------------------------------------------------------------------------------
136
+                PA1 = 訂單種類_dgv("驗報圖庫", e.RowIndex).Value.ToString : PA2 = 訂單種類_dgv("驗貨報告圖片", e.RowIndex).Value.ToString
137
+                If 訂單種類_dgv("驗報圖庫", e.RowIndex).Value.ToString = "" Then : 驗貨報告圖片_pb.Image = Nothing : Else
138
+                    SQL_讀取訂單種類圖片3() : 驗貨報告圖片_pb.Image = Nothing
139
+                    While dr.Read() = True
140
+                        Dim unused2 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("驗貨報告"), Byte())
141
+                        Dim oStream As New MemoryStream(bytes) : 驗貨報告圖片_pb.Image = Bitmap.FromStream(oStream)
142
+                    End While
143
+                    conn.Close() : 驗貨報告圖片_pb.SizeMode = 4
144
+                End If : 圖片傳遞 = 驗貨報告圖片_pb.Image
157
                 驗貨報告 = 訂單種類_dgv(17, e.RowIndex).Value.ToString
145
                 驗貨報告 = 訂單種類_dgv(17, e.RowIndex).Value.ToString
158
             End If
146
             End If
159
         Catch ex As Exception
147
         Catch ex As Exception

+ 22
- 46
TENDEN-MES-SYS/量產訂單管理/量產管理報表/周進度表T1_T4.vb Wyświetl plik

9
             訂單清單_dgv.ColumnHeadersHeight = 25
9
             訂單清單_dgv.ColumnHeadersHeight = 25
10
             訂單清單_dgv.AllowUserToAddRows = False
10
             訂單清單_dgv.AllowUserToAddRows = False
11
             ConnOpen()
11
             ConnOpen()
12
-            If PA = "" Then
13
-                SQL_讀取周進度表T1_T4()
14
-            Else
15
-                SQL_讀取周進度表T1_T4_1()
16
-            End If
12
+            If PA = "" Then : SQL_讀取周進度表T1_T4() : Else : SQL_讀取周進度表T1_T4_1() : End If
17
             CmdSet_For_DGV()
13
             CmdSet_For_DGV()
18
             da.SelectCommand.CommandTimeout = 900 : da.Fill(ds) : 訂單清單_dgv.DataSource = ds.Tables(0) : conn.Close()
14
             da.SelectCommand.CommandTimeout = 900 : da.Fill(ds) : 訂單清單_dgv.DataSource = ds.Tables(0) : conn.Close()
19
         Catch ex As Exception
15
         Catch ex As Exception
27
             訂單清單_dgv.Columns(8).FillWeight = 55 : 訂單清單_dgv.Columns(9).Visible = False : 訂單清單_dgv.Columns(10).FillWeight = 75 : 訂單清單_dgv.Columns(11).Visible = False
23
             訂單清單_dgv.Columns(8).FillWeight = 55 : 訂單清單_dgv.Columns(9).Visible = False : 訂單清單_dgv.Columns(10).FillWeight = 75 : 訂單清單_dgv.Columns(11).Visible = False
28
             訂單清單_dgv.Columns(12).FillWeight = 75 : 訂單清單_dgv.Columns(13).FillWeight = 75 : 訂單清單_dgv.Columns(14).FillWeight = 75 : 訂單清單_dgv.Columns(15).FillWeight = 75
24
             訂單清單_dgv.Columns(12).FillWeight = 75 : 訂單清單_dgv.Columns(13).FillWeight = 75 : 訂單清單_dgv.Columns(14).FillWeight = 75 : 訂單清單_dgv.Columns(15).FillWeight = 75
29
             訂單清單_dgv.Columns(16).FillWeight = 75 : 訂單清單_dgv.Columns(17).FillWeight = 75 : 訂單清單_dgv.Columns(18).FillWeight = 120 : 訂單清單_dgv.Columns(19).FillWeight = 93
25
             訂單清單_dgv.Columns(16).FillWeight = 75 : 訂單清單_dgv.Columns(17).FillWeight = 75 : 訂單清單_dgv.Columns(18).FillWeight = 120 : 訂單清單_dgv.Columns(19).FillWeight = 93
30
-            訂單清單_dgv.Columns(20).Visible = False : 訂單清單_dgv.Columns(21).Visible = False : 訂單清單_dgv.Columns(23).Visible = False
26
+            訂單清單_dgv.Columns(20).Visible = False : 訂單清單_dgv.Columns(21).Visible = False : 訂單清單_dgv.Columns(24).Visible = False
31
             訂單清單_dgv.Columns(8).DefaultCellStyle.Format = "#,##0"
27
             訂單清單_dgv.Columns(8).DefaultCellStyle.Format = "#,##0"
32
             訂單清單_dgv.Columns(8).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 訂單清單_dgv.Columns(8).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
28
             訂單清單_dgv.Columns(8).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 訂單清單_dgv.Columns(8).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
33
             訂單清單_dgv.Columns(2).DefaultCellStyle.BackColor = Color.MistyRose : 訂單清單_dgv.Columns(9).DefaultCellStyle.BackColor = Color.MistyRose
29
             訂單清單_dgv.Columns(2).DefaultCellStyle.BackColor = Color.MistyRose : 訂單清單_dgv.Columns(9).DefaultCellStyle.BackColor = Color.MistyRose
73
             If e.RowIndex = -1 Then : Else
69
             If e.RowIndex = -1 Then : Else
74
                 If 訂單清單_dgv(6, e.RowIndex).Value = "" Then
70
                 If 訂單清單_dgv(6, e.RowIndex).Value = "" Then
75
                     PA = 訂單清單_dgv("TVW", e.RowIndex).Value.ToString
71
                     PA = 訂單清單_dgv("TVW", e.RowIndex).Value.ToString
76
-                    SQL_讀取周進度表圖片()
77
-                    圖片庫一_pb.Image = Nothing
72
+                    SQL_讀取周進度表圖片() : 圖片庫一_pb.Image = Nothing
78
                     While dr.Read() = True
73
                     While dr.Read() = True
79
                         Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
74
                         Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
80
                         Dim oStream As New MemoryStream(bytes) : 圖片庫一_pb.Image = Bitmap.FromStream(oStream)
75
                         Dim oStream As New MemoryStream(bytes) : 圖片庫一_pb.Image = Bitmap.FromStream(oStream)
84
                     SQL_讀取周進度表圖片1()
79
                     SQL_讀取周進度表圖片1()
85
                     If dr.Read() Then
80
                     If dr.Read() Then
86
                         PA = 訂單清單_dgv("TVW", e.RowIndex).Value.ToString : PA1 = 訂單清單_dgv(6, e.RowIndex).Value.ToString
81
                         PA = 訂單清單_dgv("TVW", e.RowIndex).Value.ToString : PA1 = 訂單清單_dgv(6, e.RowIndex).Value.ToString
87
-                        SQL_讀取周進度表圖片1()
88
-                        圖片庫一_pb.Image = Nothing
82
+                        SQL_讀取周進度表圖片1() : 圖片庫一_pb.Image = Nothing
89
                         While dr.Read() = True
83
                         While dr.Read() = True
90
                             Dim unused2 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
84
                             Dim unused2 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
91
                             Dim oStream As New MemoryStream(bytes) : 圖片庫一_pb.Image = Bitmap.FromStream(oStream)
85
                             Dim oStream As New MemoryStream(bytes) : 圖片庫一_pb.Image = Bitmap.FromStream(oStream)
92
                         End While
86
                         End While
93
                     Else
87
                     Else
94
                         PA = 訂單清單_dgv("TVW", e.RowIndex).Value.ToString
88
                         PA = 訂單清單_dgv("TVW", e.RowIndex).Value.ToString
95
-                        SQL_讀取周進度表圖片()
96
-                        圖片庫一_pb.Image = Nothing
89
+                        SQL_讀取周進度表圖片() : 圖片庫一_pb.Image = Nothing
97
                         While dr.Read() = True
90
                         While dr.Read() = True
98
                             Dim unused3 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
91
                             Dim unused3 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
99
                             Dim oStream As New MemoryStream(bytes) : 圖片庫一_pb.Image = Bitmap.FromStream(oStream)
92
                             Dim oStream As New MemoryStream(bytes) : 圖片庫一_pb.Image = Bitmap.FromStream(oStream)
101
                     End If
94
                     End If
102
                 End If
95
                 End If
103
                 conn.Close() : 圖片庫一_pb.SizeMode = 4
96
                 conn.Close() : 圖片庫一_pb.SizeMode = 4
104
-                PA3 = 訂單清單_dgv(21, e.RowIndex).Value.ToString
105
-                SQL_讀取周進度表圖片2()
106
-                驗貨報告圖片_pb.Image = Nothing
107
-                While dr.Read() = True
108
-                    Dim unused1 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("驗貨報告"), Byte())
109
-                    Dim oStream As New MemoryStream(bytes) : 驗貨報告圖片_pb.Image = Bitmap.FromStream(oStream)
110
-                End While
111
-                conn.Close() : 驗貨報告圖片_pb.SizeMode = 4
112
-
113
-                驗貨報告 = 訂單清單_dgv(21, e.RowIndex).Value.ToString
97
+                '------------驗貨報告讀取--------------------------------------------------------------------------------------------
98
+                PA1 = 訂單清單_dgv("驗報圖庫", e.RowIndex).Value.ToString : PA2 = 訂單清單_dgv("驗貨報告圖片", e.RowIndex).Value.ToString
99
+                If 訂單清單_dgv("驗報圖庫", e.RowIndex).Value.ToString = "" Then : 驗貨報告圖片_pb.Image = Nothing : Else
100
+                    SQL_讀取周進度表圖片2() : 驗貨報告圖片_pb.Image = Nothing
101
+                    While dr.Read() = True
102
+                        Dim unused1 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("驗貨報告"), Byte())
103
+                        Dim oStream As New MemoryStream(bytes) : 驗貨報告圖片_pb.Image = Bitmap.FromStream(oStream)
104
+                    End While
105
+                    conn.Close() : 驗貨報告圖片_pb.SizeMode = 4 : 圖片傳遞 = 驗貨報告圖片_pb.Image
106
+                    驗貨報告 = 訂單清單_dgv(21, e.RowIndex).Value.ToString
107
+                End If : 圖片傳遞 = 驗貨報告圖片_pb.Image
114
             End If
108
             End If
115
         Catch ex As Exception
109
         Catch ex As Exception
116
             MsgBox(ex.Message)
110
             MsgBox(ex.Message)
137
     Private Sub DataGridView1_CellEndEdit(ByVal sender As Object, ByVal e As DataGridViewCellEventArgs) Handles 訂單清單_dgv.CellEndEdit
131
     Private Sub DataGridView1_CellEndEdit(ByVal sender As Object, ByVal e As DataGridViewCellEventArgs) Handles 訂單清單_dgv.CellEndEdit
138
         Try
132
         Try
139
             Dim EU(3) As String
133
             Dim EU(3) As String
140
-            EU(0) = 訂單清單_dgv(2, e.RowIndex).Value.ToString
141
-            EU(1) = 訂單清單_dgv(9, e.RowIndex).Value.ToString
142
-            EU(2) = 訂單清單_dgv(10, e.RowIndex).Value.ToString
143
-            EU(3) = 訂單清單_dgv(11, e.RowIndex).Value.ToString
144
-            If EU(0) = "" Then
145
-            Else
146
-                日期1_dtp.Text = EU(0)
147
-                訂單清單_dgv.Rows(e.RowIndex).Cells(2).Value = Format(日期1_dtp.Value, "yyyy/MM/dd")
148
-            End If
149
-            If EU(1) = "" Then
150
-            Else
151
-                日期2_dtp.Text = EU(1)
152
-                訂單清單_dgv.Rows(e.RowIndex).Cells(9).Value = Format(日期2_dtp.Value, "yyyy/MM/dd")
153
-            End If
154
-            If EU(2) = "" Then
155
-            Else
156
-                日期3_dtp.Text = EU(2)
157
-                訂單清單_dgv.Rows(e.RowIndex).Cells(10).Value = Format(日期3_dtp.Value, "yyyy/MM/dd")
158
-            End If
159
-            If EU(3) = "" Then
160
-            Else
161
-                日期4_dtp.Text = EU(3)
162
-                訂單清單_dgv.Rows(e.RowIndex).Cells(11).Value = Format(日期4_dtp.Value, "yyyy/MM/dd")
163
-            End If
134
+            EU(0) = 訂單清單_dgv(2, e.RowIndex).Value.ToString : EU(1) = 訂單清單_dgv(9, e.RowIndex).Value.ToString
135
+            EU(2) = 訂單清單_dgv(10, e.RowIndex).Value.ToString : EU(3) = 訂單清單_dgv(11, e.RowIndex).Value.ToString
136
+            If EU(0) = "" Then : Else : 日期1_dtp.Text = EU(0) : 訂單清單_dgv.Rows(e.RowIndex).Cells(2).Value = Format(日期1_dtp.Value, "yyyy/MM/dd") : End If
137
+            If EU(1) = "" Then : Else : 日期2_dtp.Text = EU(1) : 訂單清單_dgv.Rows(e.RowIndex).Cells(9).Value = Format(日期2_dtp.Value, "yyyy/MM/dd") : End If
138
+            If EU(2) = "" Then : Else : 日期3_dtp.Text = EU(2) : 訂單清單_dgv.Rows(e.RowIndex).Cells(10).Value = Format(日期3_dtp.Value, "yyyy/MM/dd") : End If
139
+            If EU(3) = "" Then : Else : 日期4_dtp.Text = EU(3) : 訂單清單_dgv.Rows(e.RowIndex).Cells(11).Value = Format(日期4_dtp.Value, "yyyy/MM/dd") : End If
164
         Catch ex As Exception
140
         Catch ex As Exception
165
             MsgBox(ex.Message)
141
             MsgBox(ex.Message)
166
         End Try
142
         End Try

+ 13
- 13
TENDEN-MES-SYS/量產訂單管理/量產管理報表/生產進度表.Designer.vb Wyświetl plik

35
         Me.全套SIZE45天_bt = New System.Windows.Forms.Button()
35
         Me.全套SIZE45天_bt = New System.Windows.Forms.Button()
36
         Me.樣品SIZE60天_bt = New System.Windows.Forms.Button()
36
         Me.樣品SIZE60天_bt = New System.Windows.Forms.Button()
37
         Me.關鍵字查詢_bt = New System.Windows.Forms.Button()
37
         Me.關鍵字查詢_bt = New System.Windows.Forms.Button()
38
-        Me.驗貨報告_pb = New System.Windows.Forms.PictureBox()
38
+        Me.鞋圖_pb = New System.Windows.Forms.PictureBox()
39
         Me.生產進度表_lb = New System.Windows.Forms.Label()
39
         Me.生產進度表_lb = New System.Windows.Forms.Label()
40
         Me.备注_lb = New System.Windows.Forms.Label()
40
         Me.备注_lb = New System.Windows.Forms.Label()
41
         Me.驗貨報告大圖_bt = New System.Windows.Forms.Button()
41
         Me.驗貨報告大圖_bt = New System.Windows.Forms.Button()
49
         Me.字體_NUD = New System.Windows.Forms.NumericUpDown()
49
         Me.字體_NUD = New System.Windows.Forms.NumericUpDown()
50
         Me.字體大小調整_lb = New System.Windows.Forms.Label()
50
         Me.字體大小調整_lb = New System.Windows.Forms.Label()
51
         CType(Me.訂單清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
51
         CType(Me.訂單清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
52
-        CType(Me.驗貨報告_pb, System.ComponentModel.ISupportInitialize).BeginInit()
52
+        CType(Me.鞋圖_pb, System.ComponentModel.ISupportInitialize).BeginInit()
53
         CType(Me.驗貨報告圖庫_pb, System.ComponentModel.ISupportInitialize).BeginInit()
53
         CType(Me.驗貨報告圖庫_pb, System.ComponentModel.ISupportInitialize).BeginInit()
54
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).BeginInit()
54
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).BeginInit()
55
         Me.SuspendLayout()
55
         Me.SuspendLayout()
169
         Me.關鍵字查詢_bt.Text = "關鍵字查詢"
169
         Me.關鍵字查詢_bt.Text = "關鍵字查詢"
170
         Me.關鍵字查詢_bt.UseVisualStyleBackColor = True
170
         Me.關鍵字查詢_bt.UseVisualStyleBackColor = True
171
         '
171
         '
172
-        '驗貨報告_pb
172
+        '鞋圖_pb
173
         '
173
         '
174
-        Me.驗貨報告_pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
175
-        Me.驗貨報告_pb.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
176
-        Me.驗貨報告_pb.Location = New System.Drawing.Point(368, 3)
177
-        Me.驗貨報告_pb.Name = "驗貨報告_pb"
178
-        Me.驗貨報告_pb.Size = New System.Drawing.Size(103, 88)
179
-        Me.驗貨報告_pb.TabIndex = 500
180
-        Me.驗貨報告_pb.TabStop = False
174
+        Me.鞋圖_pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
175
+        Me.鞋圖_pb.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
176
+        Me.鞋圖_pb.Location = New System.Drawing.Point(368, 3)
177
+        Me.鞋圖_pb.Name = "鞋圖_pb"
178
+        Me.鞋圖_pb.Size = New System.Drawing.Size(103, 88)
179
+        Me.鞋圖_pb.TabIndex = 500
180
+        Me.鞋圖_pb.TabStop = False
181
         '
181
         '
182
         '生產進度表_lb
182
         '生產進度表_lb
183
         '
183
         '
318
         Me.Controls.Add(Me.驗貨報告圖庫_pb)
318
         Me.Controls.Add(Me.驗貨報告圖庫_pb)
319
         Me.Controls.Add(Me.备注_lb)
319
         Me.Controls.Add(Me.备注_lb)
320
         Me.Controls.Add(Me.生產進度表_lb)
320
         Me.Controls.Add(Me.生產進度表_lb)
321
-        Me.Controls.Add(Me.驗貨報告_pb)
321
+        Me.Controls.Add(Me.鞋圖_pb)
322
         Me.Controls.Add(Me.關鍵字查詢_bt)
322
         Me.Controls.Add(Me.關鍵字查詢_bt)
323
         Me.Controls.Add(Me.PRODUCTION30天分頁二_bt)
323
         Me.Controls.Add(Me.PRODUCTION30天分頁二_bt)
324
         Me.Controls.Add(Me.PRODUCTION30天分頁一_bt)
324
         Me.Controls.Add(Me.PRODUCTION30天分頁一_bt)
336
         Me.Name = "生產進度表"
336
         Me.Name = "生產進度表"
337
         Me.Text = "生產進度表"
337
         Me.Text = "生產進度表"
338
         CType(Me.訂單清單_dgv, System.ComponentModel.ISupportInitialize).EndInit()
338
         CType(Me.訂單清單_dgv, System.ComponentModel.ISupportInitialize).EndInit()
339
-        CType(Me.驗貨報告_pb, System.ComponentModel.ISupportInitialize).EndInit()
339
+        CType(Me.鞋圖_pb, System.ComponentModel.ISupportInitialize).EndInit()
340
         CType(Me.驗貨報告圖庫_pb, System.ComponentModel.ISupportInitialize).EndInit()
340
         CType(Me.驗貨報告圖庫_pb, System.ComponentModel.ISupportInitialize).EndInit()
341
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).EndInit()
341
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).EndInit()
342
         Me.ResumeLayout(False)
342
         Me.ResumeLayout(False)
357
     Friend WithEvents 全套SIZE45天_bt As Button
357
     Friend WithEvents 全套SIZE45天_bt As Button
358
     Friend WithEvents 樣品SIZE60天_bt As Button
358
     Friend WithEvents 樣品SIZE60天_bt As Button
359
     Friend WithEvents 關鍵字查詢_bt As Button
359
     Friend WithEvents 關鍵字查詢_bt As Button
360
-    Friend WithEvents 驗貨報告_pb As PictureBox
360
+    Friend WithEvents 鞋圖_pb As PictureBox
361
     Friend WithEvents 生產進度表_lb As Label
361
     Friend WithEvents 生產進度表_lb As Label
362
     Friend WithEvents 备注_lb As Label
362
     Friend WithEvents 备注_lb As Label
363
     Friend WithEvents 驗貨報告大圖_bt As Button
363
     Friend WithEvents 驗貨報告大圖_bt As Button

+ 21
- 24
TENDEN-MES-SYS/量產訂單管理/量產管理報表/生產進度表.vb Wyświetl plik

35
             訂單清單_dgv.Columns(20).FillWeight = 71 : 訂單清單_dgv.Columns(21).FillWeight = 71 : 訂單清單_dgv.Columns(22).FillWeight = 71 : 訂單清單_dgv.Columns(23).FillWeight = 71
35
             訂單清單_dgv.Columns(20).FillWeight = 71 : 訂單清單_dgv.Columns(21).FillWeight = 71 : 訂單清單_dgv.Columns(22).FillWeight = 71 : 訂單清單_dgv.Columns(23).FillWeight = 71
36
             訂單清單_dgv.Columns(24).FillWeight = 71 : 訂單清單_dgv.Columns(25).FillWeight = 71 : 訂單清單_dgv.Columns(26).FillWeight = 70 : 訂單清單_dgv.Columns(27).FillWeight = 70
36
             訂單清單_dgv.Columns(24).FillWeight = 71 : 訂單清單_dgv.Columns(25).FillWeight = 71 : 訂單清單_dgv.Columns(26).FillWeight = 70 : 訂單清單_dgv.Columns(27).FillWeight = 70
37
             訂單清單_dgv.Columns(28).FillWeight = 70 : 訂單清單_dgv.Columns(29).FillWeight = 70 : 訂單清單_dgv.Columns(30).FillWeight = 120 : 訂單清單_dgv.Columns(31).FillWeight = 250
37
             訂單清單_dgv.Columns(28).FillWeight = 70 : 訂單清單_dgv.Columns(29).FillWeight = 70 : 訂單清單_dgv.Columns(30).FillWeight = 120 : 訂單清單_dgv.Columns(31).FillWeight = 250
38
-            訂單清單_dgv.Columns(32).FillWeight = 335 : 訂單清單_dgv.Columns(33).Visible = True
38
+            訂單清單_dgv.Columns(32).FillWeight = 335 : 訂單清單_dgv.Columns(33).Visible = True : 訂單清單_dgv.Columns(34).Visible = False
39
             訂單清單_dgv.Columns(10).DefaultCellStyle.Format = "#,##0"
39
             訂單清單_dgv.Columns(10).DefaultCellStyle.Format = "#,##0"
40
             訂單清單_dgv.Columns(10).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
40
             訂單清單_dgv.Columns(10).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
41
             訂單清單_dgv.Columns(10).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
41
             訂單清單_dgv.Columns(10).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
155
     End Sub
155
     End Sub
156
     Private Sub DataGridView1_CellClick(ByVal sender As Object, ByVal e As DataGridViewCellEventArgs) Handles 訂單清單_dgv.CellClick
156
     Private Sub DataGridView1_CellClick(ByVal sender As Object, ByVal e As DataGridViewCellEventArgs) Handles 訂單清單_dgv.CellClick
157
         Try
157
         Try
158
-            PA = 訂單清單_dgv("TVW", e.RowIndex).Value.ToString : PA1 = 訂單清單_dgv(9, e.RowIndex).Value.ToString
159
-            PA2 = 訂單清單_dgv(33, e.RowIndex).Value.ToString
158
+            PA = 訂單清單_dgv("TVW", e.RowIndex).Value.ToString : PA1 = 訂單清單_dgv(9, e.RowIndex).Value.ToString : PA2 = 訂單清單_dgv(33, e.RowIndex).Value.ToString
160
             If e.RowIndex = -1 Then : Else
159
             If e.RowIndex = -1 Then : Else
161
                 If 訂單清單_dgv(9, e.RowIndex).Value = "" Then
160
                 If 訂單清單_dgv(9, e.RowIndex).Value = "" Then
162
-                    SQL_讀取生產進度表圖片()
163
-                    驗貨報告_pb.Image = Nothing
161
+                    SQL_讀取生產進度表圖片() : 鞋圖_pb.Image = Nothing
164
                     While dr.Read() = True
162
                     While dr.Read() = True
165
                         Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
163
                         Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
166
-                        Dim oStream As New MemoryStream(bytes) : 驗貨報告_pb.Image = Bitmap.FromStream(oStream)
164
+                        Dim oStream As New MemoryStream(bytes) : 鞋圖_pb.Image = Bitmap.FromStream(oStream)
167
                     End While
165
                     End While
168
                 Else
166
                 Else
169
                     SQL_讀取生產進度表圖片1()
167
                     SQL_讀取生產進度表圖片1()
170
                     If dr.Read() Then
168
                     If dr.Read() Then
171
-                        conn.Close()
172
-                        SQL_讀取生產進度表圖片1()
173
-                        驗貨報告_pb.Image = Nothing
169
+                        SQL_讀取生產進度表圖片1() : 鞋圖_pb.Image = Nothing
174
                         While dr.Read() = True
170
                         While dr.Read() = True
175
                             Dim unused3 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
171
                             Dim unused3 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
176
-                            Dim oStream As New MemoryStream(bytes) : 驗貨報告_pb.Image = Bitmap.FromStream(oStream)
172
+                            Dim oStream As New MemoryStream(bytes) : 鞋圖_pb.Image = Bitmap.FromStream(oStream)
177
                         End While
173
                         End While
178
                     Else
174
                     Else
179
-                        SQL_讀取生產進度表圖片()
180
-                        驗貨報告_pb.Image = Nothing
175
+                        SQL_讀取生產進度表圖片() : 鞋圖_pb.Image = Nothing
181
                         While dr.Read() = True
176
                         While dr.Read() = True
182
                             Dim unused2 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
177
                             Dim unused2 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
183
-                            Dim oStream As New MemoryStream(bytes) : 驗貨報告_pb.Image = Bitmap.FromStream(oStream)
178
+                            Dim oStream As New MemoryStream(bytes) : 鞋圖_pb.Image = Bitmap.FromStream(oStream)
184
                         End While
179
                         End While
185
                     End If
180
                     End If
186
                 End If
181
                 End If
187
-                conn.Close() : 驗貨報告_pb.SizeMode = 4
188
-
189
-                SQL_讀取生產進度表圖片2()
190
-                驗貨報告圖庫_pb.Image = Nothing
191
-                While dr.Read() = True
192
-                    Dim unused1 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("驗貨報告"), Byte())
193
-                    Dim oStream As New MemoryStream(bytes) : 驗貨報告圖庫_pb.Image = Bitmap.FromStream(oStream)
194
-                End While
195
-                conn.Close() : 驗貨報告圖庫_pb.SizeMode = 4
196
-
197
-                驗貨報告 = 訂單清單_dgv(33, e.RowIndex).Value.ToString
182
+                conn.Close() : 鞋圖_pb.SizeMode = 4
183
+                '------------驗貨報告讀取--------------------------------------------------------------------------------------------
184
+                PA1 = 訂單清單_dgv("驗報圖庫", e.RowIndex).Value.ToString : PA2 = 訂單清單_dgv("驗貨報告圖片", e.RowIndex).Value.ToString
185
+                If 訂單清單_dgv("驗報圖庫", e.RowIndex).Value.ToString = "" Then : 驗貨報告圖庫_pb.Image = Nothing : Else
186
+                    SQL_讀取生產進度表圖片2()
187
+                    驗貨報告圖庫_pb.Image = Nothing
188
+                    While dr.Read() = True
189
+                        Dim unused1 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("驗貨報告"), Byte())
190
+                        Dim oStream As New MemoryStream(bytes) : 驗貨報告圖庫_pb.Image = Bitmap.FromStream(oStream)
191
+                    End While
192
+                    conn.Close() : 驗貨報告圖庫_pb.SizeMode = 4
193
+                End If
194
+                驗貨報告 = 訂單清單_dgv(33, e.RowIndex).Value.ToString : 圖片傳遞 = 驗貨報告圖庫_pb.Image
198
             End If
195
             End If
199
         Catch ex As Exception
196
         Catch ex As Exception
200
             MsgBox(ex.Message)
197
             MsgBox(ex.Message)

+ 138
- 41
TENDEN-MES-SYS/量產訂單管理/量產訂單系統/訂單控制表.Designer.vb Wyświetl plik

22
     '請勿使用程式碼編輯器進行修改。
22
     '請勿使用程式碼編輯器進行修改。
23
     <System.Diagnostics.DebuggerStepThrough()>
23
     <System.Diagnostics.DebuggerStepThrough()>
24
     Private  Sub InitializeComponent()
24
     Private  Sub InitializeComponent()
25
-        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
-        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
25
+        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
         Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(訂單控制表))
27
         Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(訂單控制表))
28
-        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
-        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
-        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
-        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle9 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
+        Dim DataGridViewCellStyle10 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
+        Dim DataGridViewCellStyle11 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
+        Dim DataGridViewCellStyle12 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32
         Me.控制表_dgv = New System.Windows.Forms.DataGridView()
32
         Me.控制表_dgv = New System.Windows.Forms.DataGridView()
33
         Me.Label5 = New System.Windows.Forms.Label()
33
         Me.Label5 = New System.Windows.Forms.Label()
34
         Me.客戶訂單號_tb = New System.Windows.Forms.TextBox()
34
         Me.客戶訂單號_tb = New System.Windows.Forms.TextBox()
147
         Me.第九頁_bt = New System.Windows.Forms.Button()
147
         Me.第九頁_bt = New System.Windows.Forms.Button()
148
         Me.第十頁_bt = New System.Windows.Forms.Button()
148
         Me.第十頁_bt = New System.Windows.Forms.Button()
149
         Me.列印明細_bt = New System.Windows.Forms.Button()
149
         Me.列印明細_bt = New System.Windows.Forms.Button()
150
-        Me.PictureBox2 = New System.Windows.Forms.PictureBox()
150
+        Me.驗貨報告_pb = New System.Windows.Forms.PictureBox()
151
         Me.PictureBox1 = New System.Windows.Forms.PictureBox()
151
         Me.PictureBox1 = New System.Windows.Forms.PictureBox()
152
         Me.資料庫選擇2_bt = New System.Windows.Forms.Button()
152
         Me.資料庫選擇2_bt = New System.Windows.Forms.Button()
153
         Me.資料庫選擇1_bt = New System.Windows.Forms.Button()
153
         Me.資料庫選擇1_bt = New System.Windows.Forms.Button()
249
         Me.ProgressBar1 = New System.Windows.Forms.ProgressBar()
249
         Me.ProgressBar1 = New System.Windows.Forms.ProgressBar()
250
         Me.清單全選_bt = New System.Windows.Forms.Button()
250
         Me.清單全選_bt = New System.Windows.Forms.Button()
251
         Me.指定拆單_bt = New System.Windows.Forms.Button()
251
         Me.指定拆單_bt = New System.Windows.Forms.Button()
252
+        Me.包裝資訊_bt = New System.Windows.Forms.Button()
253
+        Me.Panel2 = New System.Windows.Forms.Panel()
254
+        Me.Label51 = New System.Windows.Forms.Label()
255
+        Me.Panel3 = New System.Windows.Forms.Panel()
256
+        Me.包裝資料_pb = New System.Windows.Forms.PictureBox()
257
+        Me.CanceL3_bt = New System.Windows.Forms.Button()
258
+        Me.TVW_tb = New System.Windows.Forms.TextBox()
252
         CType(Me.控制表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
259
         CType(Me.控制表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
253
         Me.GroupBox1.SuspendLayout()
260
         Me.GroupBox1.SuspendLayout()
254
         Me.GroupBox2.SuspendLayout()
261
         Me.GroupBox2.SuspendLayout()
255
         CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).BeginInit()
262
         CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).BeginInit()
256
-        CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).BeginInit()
263
+        CType(Me.驗貨報告_pb, System.ComponentModel.ISupportInitialize).BeginInit()
257
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
264
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
258
         CType(Me.SplitContainer1, System.ComponentModel.ISupportInitialize).BeginInit()
265
         CType(Me.SplitContainer1, System.ComponentModel.ISupportInitialize).BeginInit()
259
         Me.SplitContainer1.Panel1.SuspendLayout()
266
         Me.SplitContainer1.Panel1.SuspendLayout()
264
         CType(Me.裝箱明細_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
271
         CType(Me.裝箱明細_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
265
         Me.資訊_gb.SuspendLayout()
272
         Me.資訊_gb.SuspendLayout()
266
         CType(Me.明細表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
273
         CType(Me.明細表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
274
+        Me.Panel2.SuspendLayout()
275
+        Me.Panel3.SuspendLayout()
276
+        CType(Me.包裝資料_pb, System.ComponentModel.ISupportInitialize).BeginInit()
267
         Me.SuspendLayout()
277
         Me.SuspendLayout()
268
         '
278
         '
269
         '控制表_dgv
279
         '控制表_dgv
270
         '
280
         '
271
-        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
272
-        Me.控制表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
281
+        DataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
282
+        Me.控制表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle7
273
         Me.控制表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
283
         Me.控制表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
274
             Or System.Windows.Forms.AnchorStyles.Left) _
284
             Or System.Windows.Forms.AnchorStyles.Left) _
275
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
285
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1284
         '
1294
         '
1285
         'DataGridView2
1295
         'DataGridView2
1286
         '
1296
         '
1287
-        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
1288
-        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
1297
+        DataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
1298
+        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle8
1289
         Me.DataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
1299
         Me.DataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
1290
         Me.DataGridView2.Location = New System.Drawing.Point(91, 146)
1300
         Me.DataGridView2.Location = New System.Drawing.Point(91, 146)
1291
         Me.DataGridView2.Name = "DataGridView2"
1301
         Me.DataGridView2.Name = "DataGridView2"
1390
         Me.列印明細_bt.Text = "列印明細"
1400
         Me.列印明細_bt.Text = "列印明細"
1391
         Me.列印明細_bt.UseVisualStyleBackColor = True
1401
         Me.列印明細_bt.UseVisualStyleBackColor = True
1392
         '
1402
         '
1393
-        'PictureBox2
1403
+        '驗貨報告_pb
1394
         '
1404
         '
1395
-        Me.PictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
1396
-        Me.PictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
1397
-        Me.PictureBox2.Location = New System.Drawing.Point(1712, 35)
1398
-        Me.PictureBox2.Name = "PictureBox2"
1399
-        Me.PictureBox2.Size = New System.Drawing.Size(190, 208)
1400
-        Me.PictureBox2.TabIndex = 501
1401
-        Me.PictureBox2.TabStop = False
1405
+        Me.驗貨報告_pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
1406
+        Me.驗貨報告_pb.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
1407
+        Me.驗貨報告_pb.Location = New System.Drawing.Point(1712, 35)
1408
+        Me.驗貨報告_pb.Name = "驗貨報告_pb"
1409
+        Me.驗貨報告_pb.Size = New System.Drawing.Size(190, 208)
1410
+        Me.驗貨報告_pb.TabIndex = 501
1411
+        Me.驗貨報告_pb.TabStop = False
1402
         '
1412
         '
1403
         'PictureBox1
1413
         'PictureBox1
1404
         '
1414
         '
1742
         '
1752
         '
1743
         '除錯_dgv
1753
         '除錯_dgv
1744
         '
1754
         '
1745
-        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
1746
-        Me.除錯_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
1755
+        DataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
1756
+        Me.除錯_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle9
1747
         Me.除錯_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
1757
         Me.除錯_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
1748
         Me.除錯_dgv.Location = New System.Drawing.Point(48, 36)
1758
         Me.除錯_dgv.Location = New System.Drawing.Point(48, 36)
1749
         Me.除錯_dgv.Name = "除錯_dgv"
1759
         Me.除錯_dgv.Name = "除錯_dgv"
1755
         '
1765
         '
1756
         '裝箱控制表_dgv
1766
         '裝箱控制表_dgv
1757
         '
1767
         '
1758
-        DataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1759
-        Me.裝箱控制表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4
1768
+        DataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1769
+        Me.裝箱控制表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle10
1760
         Me.裝箱控制表_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1770
         Me.裝箱控制表_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1761
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1771
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1762
         Me.裝箱控制表_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
1772
         Me.裝箱控制表_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
1770
         '
1780
         '
1771
         '裝箱明細_dgv
1781
         '裝箱明細_dgv
1772
         '
1782
         '
1773
-        DataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
1774
-        Me.裝箱明細_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
1783
+        DataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
1784
+        Me.裝箱明細_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle11
1775
         Me.裝箱明細_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1785
         Me.裝箱明細_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1776
             Or System.Windows.Forms.AnchorStyles.Left) _
1786
             Or System.Windows.Forms.AnchorStyles.Left) _
1777
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1787
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2314
         '
2324
         '
2315
         '明細表_dgv
2325
         '明細表_dgv
2316
         '
2326
         '
2317
-        DataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
2318
-        Me.明細表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle6
2327
+        DataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
2328
+        Me.明細表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle12
2319
         Me.明細表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2329
         Me.明細表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2320
             Or System.Windows.Forms.AnchorStyles.Left) _
2330
             Or System.Windows.Forms.AnchorStyles.Left) _
2321
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2331
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2332
         '
2342
         '
2333
         Me.訂單明細_bt.Enabled = False
2343
         Me.訂單明細_bt.Enabled = False
2334
         Me.訂單明細_bt.ForeColor = System.Drawing.Color.Red
2344
         Me.訂單明細_bt.ForeColor = System.Drawing.Color.Red
2335
-        Me.訂單明細_bt.Location = New System.Drawing.Point(1624, 173)
2345
+        Me.訂單明細_bt.Location = New System.Drawing.Point(1624, 197)
2336
         Me.訂單明細_bt.Name = "訂單明細_bt"
2346
         Me.訂單明細_bt.Name = "訂單明細_bt"
2337
-        Me.訂單明細_bt.Size = New System.Drawing.Size(85, 35)
2347
+        Me.訂單明細_bt.Size = New System.Drawing.Size(85, 30)
2338
         Me.訂單明細_bt.TabIndex = 754
2348
         Me.訂單明細_bt.TabIndex = 754
2339
         Me.訂單明細_bt.Text = "訂單明細"
2349
         Me.訂單明細_bt.Text = "訂單明細"
2340
         Me.訂單明細_bt.UseVisualStyleBackColor = True
2350
         Me.訂單明細_bt.UseVisualStyleBackColor = True
2342
         '裝箱明細_bt
2352
         '裝箱明細_bt
2343
         '
2353
         '
2344
         Me.裝箱明細_bt.ForeColor = System.Drawing.Color.Red
2354
         Me.裝箱明細_bt.ForeColor = System.Drawing.Color.Red
2345
-        Me.裝箱明細_bt.Location = New System.Drawing.Point(1624, 243)
2355
+        Me.裝箱明細_bt.Location = New System.Drawing.Point(1624, 255)
2346
         Me.裝箱明細_bt.Name = "裝箱明細_bt"
2356
         Me.裝箱明細_bt.Name = "裝箱明細_bt"
2347
-        Me.裝箱明細_bt.Size = New System.Drawing.Size(85, 35)
2357
+        Me.裝箱明細_bt.Size = New System.Drawing.Size(85, 30)
2348
         Me.裝箱明細_bt.TabIndex = 755
2358
         Me.裝箱明細_bt.TabIndex = 755
2349
         Me.裝箱明細_bt.Text = "裝箱明細"
2359
         Me.裝箱明細_bt.Text = "裝箱明細"
2350
         Me.裝箱明細_bt.UseVisualStyleBackColor = True
2360
         Me.裝箱明細_bt.UseVisualStyleBackColor = True
2352
         '裝箱資訊_bt
2362
         '裝箱資訊_bt
2353
         '
2363
         '
2354
         Me.裝箱資訊_bt.ForeColor = System.Drawing.Color.Red
2364
         Me.裝箱資訊_bt.ForeColor = System.Drawing.Color.Red
2355
-        Me.裝箱資訊_bt.Location = New System.Drawing.Point(1624, 208)
2365
+        Me.裝箱資訊_bt.Location = New System.Drawing.Point(1624, 226)
2356
         Me.裝箱資訊_bt.Name = "裝箱資訊_bt"
2366
         Me.裝箱資訊_bt.Name = "裝箱資訊_bt"
2357
-        Me.裝箱資訊_bt.Size = New System.Drawing.Size(85, 35)
2367
+        Me.裝箱資訊_bt.Size = New System.Drawing.Size(85, 30)
2358
         Me.裝箱資訊_bt.TabIndex = 756
2368
         Me.裝箱資訊_bt.TabIndex = 756
2359
         Me.裝箱資訊_bt.Text = "裝箱資訊"
2369
         Me.裝箱資訊_bt.Text = "裝箱資訊"
2360
         Me.裝箱資訊_bt.UseVisualStyleBackColor = True
2370
         Me.裝箱資訊_bt.UseVisualStyleBackColor = True
2364
         Me.ProgressBar1.Location = New System.Drawing.Point(1109, 149)
2374
         Me.ProgressBar1.Location = New System.Drawing.Point(1109, 149)
2365
         Me.ProgressBar1.Maximum = 10000
2375
         Me.ProgressBar1.Maximum = 10000
2366
         Me.ProgressBar1.Name = "ProgressBar1"
2376
         Me.ProgressBar1.Name = "ProgressBar1"
2367
-        Me.ProgressBar1.Size = New System.Drawing.Size(294, 20)
2377
+        Me.ProgressBar1.Size = New System.Drawing.Size(197, 20)
2368
         Me.ProgressBar1.TabIndex = 757
2378
         Me.ProgressBar1.TabIndex = 757
2369
         '
2379
         '
2370
         '清單全選_bt
2380
         '清單全選_bt
2380
         '指定拆單_bt
2390
         '指定拆單_bt
2381
         '
2391
         '
2382
         Me.指定拆單_bt.ForeColor = System.Drawing.Color.Purple
2392
         Me.指定拆單_bt.ForeColor = System.Drawing.Color.Purple
2383
-        Me.指定拆單_bt.Location = New System.Drawing.Point(1624, 279)
2393
+        Me.指定拆單_bt.Location = New System.Drawing.Point(1624, 284)
2384
         Me.指定拆單_bt.Name = "指定拆單_bt"
2394
         Me.指定拆單_bt.Name = "指定拆單_bt"
2385
-        Me.指定拆單_bt.Size = New System.Drawing.Size(85, 33)
2395
+        Me.指定拆單_bt.Size = New System.Drawing.Size(85, 28)
2386
         Me.指定拆單_bt.TabIndex = 759
2396
         Me.指定拆單_bt.TabIndex = 759
2387
         Me.指定拆單_bt.Text = "指定拆單"
2397
         Me.指定拆單_bt.Text = "指定拆單"
2388
         Me.指定拆單_bt.UseVisualStyleBackColor = True
2398
         Me.指定拆單_bt.UseVisualStyleBackColor = True
2389
         '
2399
         '
2400
+        '包裝資訊_bt
2401
+        '
2402
+        Me.包裝資訊_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
2403
+        Me.包裝資訊_bt.ForeColor = System.Drawing.Color.Black
2404
+        Me.包裝資訊_bt.Location = New System.Drawing.Point(1307, 148)
2405
+        Me.包裝資訊_bt.Name = "包裝資訊_bt"
2406
+        Me.包裝資訊_bt.Size = New System.Drawing.Size(98, 22)
2407
+        Me.包裝資訊_bt.TabIndex = 1662
2408
+        Me.包裝資訊_bt.Text = "讀取包裝資訊"
2409
+        Me.包裝資訊_bt.UseVisualStyleBackColor = True
2410
+        '
2411
+        'Panel2
2412
+        '
2413
+        Me.Panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
2414
+        Me.Panel2.Controls.Add(Me.Label51)
2415
+        Me.Panel2.Controls.Add(Me.Panel3)
2416
+        Me.Panel2.Controls.Add(Me.CanceL3_bt)
2417
+        Me.Panel2.Location = New System.Drawing.Point(376, 226)
2418
+        Me.Panel2.Name = "Panel2"
2419
+        Me.Panel2.Size = New System.Drawing.Size(1188, 399)
2420
+        Me.Panel2.TabIndex = 1663
2421
+        '
2422
+        'Label51
2423
+        '
2424
+        Me.Label51.AutoSize = True
2425
+        Me.Label51.Location = New System.Drawing.Point(7, 8)
2426
+        Me.Label51.Name = "Label51"
2427
+        Me.Label51.Size = New System.Drawing.Size(73, 15)
2428
+        Me.Label51.TabIndex = 1377
2429
+        Me.Label51.Text = "包裝資訊圖片"
2430
+        '
2431
+        'Panel3
2432
+        '
2433
+        Me.Panel3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
2434
+        Me.Panel3.Controls.Add(Me.包裝資料_pb)
2435
+        Me.Panel3.Location = New System.Drawing.Point(3, 31)
2436
+        Me.Panel3.Name = "Panel3"
2437
+        Me.Panel3.Size = New System.Drawing.Size(1180, 363)
2438
+        Me.Panel3.TabIndex = 1376
2439
+        '
2440
+        '包裝資料_pb
2441
+        '
2442
+        Me.包裝資料_pb.BackColor = System.Drawing.Color.White
2443
+        Me.包裝資料_pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
2444
+        Me.包裝資料_pb.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
2445
+        Me.包裝資料_pb.Location = New System.Drawing.Point(-1, -1)
2446
+        Me.包裝資料_pb.Name = "包裝資料_pb"
2447
+        Me.包裝資料_pb.Size = New System.Drawing.Size(1179, 362)
2448
+        Me.包裝資料_pb.TabIndex = 1660
2449
+        Me.包裝資料_pb.TabStop = False
2450
+        '
2451
+        'CanceL3_bt
2452
+        '
2453
+        Me.CanceL3_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2454
+        Me.CanceL3_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(128, Byte), Integer), CType(CType(128, Byte), Integer))
2455
+        Me.CanceL3_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
2456
+        Me.CanceL3_bt.ForeColor = System.Drawing.Color.Black
2457
+        Me.CanceL3_bt.Location = New System.Drawing.Point(1157, 3)
2458
+        Me.CanceL3_bt.Name = "CanceL3_bt"
2459
+        Me.CanceL3_bt.Size = New System.Drawing.Size(26, 26)
2460
+        Me.CanceL3_bt.TabIndex = 1375
2461
+        Me.CanceL3_bt.Text = "X"
2462
+        Me.CanceL3_bt.UseVisualStyleBackColor = False
2463
+        '
2464
+        'TVW_tb
2465
+        '
2466
+        Me.TVW_tb.ForeColor = System.Drawing.Color.Red
2467
+        Me.TVW_tb.Location = New System.Drawing.Point(1626, 174)
2468
+        Me.TVW_tb.Name = "TVW_tb"
2469
+        Me.TVW_tb.Size = New System.Drawing.Size(79, 22)
2470
+        Me.TVW_tb.TabIndex = 1664
2471
+        Me.TVW_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
2472
+        '
2390
         '訂單控制表
2473
         '訂單控制表
2391
         '
2474
         '
2392
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 15.0!)
2475
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 15.0!)
2393
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
2476
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
2394
         Me.AutoScroll = True
2477
         Me.AutoScroll = True
2395
         Me.ClientSize = New System.Drawing.Size(1914, 966)
2478
         Me.ClientSize = New System.Drawing.Size(1914, 966)
2479
+        Me.Controls.Add(Me.Panel2)
2480
+        Me.Controls.Add(Me.TVW_tb)
2481
+        Me.Controls.Add(Me.包裝資訊_bt)
2396
         Me.Controls.Add(Me.指定拆單_bt)
2482
         Me.Controls.Add(Me.指定拆單_bt)
2397
         Me.Controls.Add(Me.清單全選_bt)
2483
         Me.Controls.Add(Me.清單全選_bt)
2398
         Me.Controls.Add(Me.ProgressBar1)
2484
         Me.Controls.Add(Me.ProgressBar1)
2433
         Me.Controls.Add(Me.AA10_lb)
2519
         Me.Controls.Add(Me.AA10_lb)
2434
         Me.Controls.Add(Me.地址二_tb)
2520
         Me.Controls.Add(Me.地址二_tb)
2435
         Me.Controls.Add(Me.AA11_lb)
2521
         Me.Controls.Add(Me.AA11_lb)
2436
-        Me.Controls.Add(Me.地址1_tb)
2437
         Me.Controls.Add(Me.AA8_lb)
2522
         Me.Controls.Add(Me.AA8_lb)
2438
         Me.Controls.Add(Me.資料庫選擇2_bt)
2523
         Me.Controls.Add(Me.資料庫選擇2_bt)
2439
         Me.Controls.Add(Me.資料庫選擇1_bt)
2524
         Me.Controls.Add(Me.資料庫選擇1_bt)
2446
         Me.Controls.Add(Me.逆時鐘90度旋轉_tb)
2531
         Me.Controls.Add(Me.逆時鐘90度旋轉_tb)
2447
         Me.Controls.Add(Me.順時鐘90度旋轉_bt)
2532
         Me.Controls.Add(Me.順時鐘90度旋轉_bt)
2448
         Me.Controls.Add(Me.驗貨報告大圖_bt)
2533
         Me.Controls.Add(Me.驗貨報告大圖_bt)
2449
-        Me.Controls.Add(Me.PictureBox2)
2534
+        Me.Controls.Add(Me.驗貨報告_pb)
2450
         Me.Controls.Add(Me.PictureBox1)
2535
         Me.Controls.Add(Me.PictureBox1)
2451
         Me.Controls.Add(Me.DataGridView2)
2536
         Me.Controls.Add(Me.DataGridView2)
2452
         Me.Controls.Add(Me.第八頁_bt)
2537
         Me.Controls.Add(Me.第八頁_bt)
2539
         Me.Controls.Add(Me.Label16)
2624
         Me.Controls.Add(Me.Label16)
2540
         Me.Controls.Add(Me.DateTimePicker1)
2625
         Me.Controls.Add(Me.DateTimePicker1)
2541
         Me.Controls.Add(Me.AA4_lb)
2626
         Me.Controls.Add(Me.AA4_lb)
2627
+        Me.Controls.Add(Me.地址1_tb)
2542
         Me.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
2628
         Me.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
2543
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
2629
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
2544
         Me.Name = "訂單控制表"
2630
         Me.Name = "訂單控制表"
2549
         Me.GroupBox2.ResumeLayout(False)
2635
         Me.GroupBox2.ResumeLayout(False)
2550
         Me.GroupBox2.PerformLayout()
2636
         Me.GroupBox2.PerformLayout()
2551
         CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).EndInit()
2637
         CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).EndInit()
2552
-        CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).EndInit()
2638
+        CType(Me.驗貨報告_pb, System.ComponentModel.ISupportInitialize).EndInit()
2553
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
2639
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
2554
         Me.SplitContainer1.Panel1.ResumeLayout(False)
2640
         Me.SplitContainer1.Panel1.ResumeLayout(False)
2555
         Me.SplitContainer1.Panel2.ResumeLayout(False)
2641
         Me.SplitContainer1.Panel2.ResumeLayout(False)
2561
         Me.資訊_gb.ResumeLayout(False)
2647
         Me.資訊_gb.ResumeLayout(False)
2562
         Me.資訊_gb.PerformLayout()
2648
         Me.資訊_gb.PerformLayout()
2563
         CType(Me.明細表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2649
         CType(Me.明細表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2650
+        Me.Panel2.ResumeLayout(False)
2651
+        Me.Panel2.PerformLayout()
2652
+        Me.Panel3.ResumeLayout(False)
2653
+        CType(Me.包裝資料_pb, System.ComponentModel.ISupportInitialize).EndInit()
2564
         Me.ResumeLayout(False)
2654
         Me.ResumeLayout(False)
2565
         Me.PerformLayout()
2655
         Me.PerformLayout()
2566
 
2656
 
2672
     Friend WithEvents 第八頁_bt As Button
2762
     Friend WithEvents 第八頁_bt As Button
2673
     Friend WithEvents 第七頁_bt As Button
2763
     Friend WithEvents 第七頁_bt As Button
2674
     Friend WithEvents PictureBox1 As PictureBox
2764
     Friend WithEvents PictureBox1 As PictureBox
2675
-    Friend WithEvents PictureBox2 As PictureBox
2765
+    Friend WithEvents 驗貨報告_pb As PictureBox
2676
     Friend WithEvents 驗貨報告大圖_bt As Button
2766
     Friend WithEvents 驗貨報告大圖_bt As Button
2677
     Friend WithEvents 垂直翻轉_bt As Button
2767
     Friend WithEvents 垂直翻轉_bt As Button
2678
     Friend WithEvents 水平翻轉_bt As Button
2768
     Friend WithEvents 水平翻轉_bt As Button
2786
     Friend WithEvents ProgressBar1 As ProgressBar
2876
     Friend WithEvents ProgressBar1 As ProgressBar
2787
     Friend WithEvents 清單全選_bt As Button
2877
     Friend WithEvents 清單全選_bt As Button
2788
     Friend WithEvents 指定拆單_bt As Button
2878
     Friend WithEvents 指定拆單_bt As Button
2879
+    Friend WithEvents 包裝資訊_bt As Button
2880
+    Friend WithEvents Panel2 As Panel
2881
+    Friend WithEvents Label51 As Label
2882
+    Friend WithEvents Panel3 As Panel
2883
+    Friend WithEvents 包裝資料_pb As PictureBox
2884
+    Friend WithEvents CanceL3_bt As Button
2885
+    Friend WithEvents TVW_tb As TextBox
2789
 End Class
2886
 End Class
2790
 
2887
 

+ 69
- 107
TENDEN-MES-SYS/量產訂單管理/量產訂單系統/訂單控制表.vb Wyświetl plik

40
     Private ReadOnly BB(9) As Boolean
40
     Private ReadOnly BB(9) As Boolean
41
     Dim aa As MsgBoxResult
41
     Dim aa As MsgBoxResult
42
     Private Sub SQL宣告()
42
     Private Sub SQL宣告()
43
-        SQL字串1 = "SELECT                訂單流水號,               年份季度,               力威訂單號,            形體號,             顏色,                  楦型,                 訂單數量, " &
44
-                                           "客戶交期,                   單價,                   總金額,              備註,         生產工廠,              訂單種類,             工廠回復交期, " &
45
-                                            "CFMSPEC,              CFMSAMPLE,                   TRIAL1,            TRIAL2,           TRIAL3,                TRIAL4,             包裝確認時間, " &
46
-                                           "貼標時間,               裁斷時間,                 針車時間,          成型時間,         驗貨時間,            實際離廠日,               資料流水號, " &
47
-                                           "明細建檔,                GOODBOX,                  LEATHER,          LEA_Note,         出貨數量,   PO_S_Date AS 接單日, Requested_XF AS 需求日期, " &
48
-                             "Confirm_XF AS 確認日期, Revised_XF AS 修訂日期, 工廠回復交期 AS 工廠交期, Special_Packaging,          Remarks,                出貨地,                      TVW, " &
49
-                                             "楦頭號,                   材質,                 七號模具,      TRIAL1 AS T1,     TRIAL2 AS T2, 長期試穿 AS WEAR_TEST,         CFMSAMPLE AS CFM, " &
50
-                                       "TRIAL3 AS T3,           TRIAL4 AS T4,          CFMSPEC AS TEST,              面料,             副料,                  中底,                     鞋墊, " &
51
-                                               "大底,                     跟,     包裝確認時間 AS 包裝,  裁斷時間 AS 裁斷, 針車時間 AS 針車,      成型時間 AS 成型,         驗貨時間 AS 驗貨, " &
52
-                                    "工廠進度表備註1,        工廠進度表備註2,             客戶包裝確認,      東莞業務備註,     驗貨報告圖片,              工廠確認,                 利威確認, 
53
-                                              結關日,                SMS簽回,                  FRS簽回,     MASTER_SWATCH,       客戶訂單號,             ProductID,                      UoM
43
+        SQL字串1 = "SELECT                訂單流水號,               年份季度,               力威訂單號,            形體號,             顏色,                  楦型,                 訂單數量, 
44
+                                            客戶交期,                   單價,                   總金額,              備註,         生產工廠,              訂單種類,             工廠回復交期, 
45
+                                             CFMSPEC,              CFMSAMPLE,                   TRIAL1,            TRIAL2,           TRIAL3,                TRIAL4,             包裝確認時間, 
46
+                                            貼標時間,               裁斷時間,                 針車時間,          成型時間,         驗貨時間,            實際離廠日,               資料流水號, 
47
+                                            明細建檔,                GOODBOX,                  LEATHER,          LEA_Note,         出貨數量,   PO_S_Date AS 接單日, Requested_XF AS 需求日期, 
48
+                              Confirm_XF AS 確認日期, Revised_XF AS 修訂日期, 工廠回復交期 AS 工廠交期, Special_Packaging,          Remarks,                出貨地,                      TVW, 
49
+                                              楦頭號,                   材質,                 七號模具,      TRIAL1 AS T1,     TRIAL2 AS T2, 長期試穿 AS WEAR_TEST,         CFMSAMPLE AS CFM, 
50
+                                        TRIAL3 AS T3,           TRIAL4 AS T4,          CFMSPEC AS TEST,              面料,             副料,                  中底,                     鞋墊, 
51
+                                                大底,                     跟,     包裝確認時間 AS 包裝,  裁斷時間 AS 裁斷, 針車時間 AS 針車,      成型時間 AS 成型,         驗貨時間 AS 驗貨, 
52
+                                     工廠進度表備註1,        工廠進度表備註2,             客戶包裝確認,      東莞業務備註,     驗貨報告圖片,              工廠確認,                 利威確認, 
53
+                                              結關日,                SMS簽回,                  FRS簽回,     MASTER_SWATCH,       客戶訂單號,             ProductID,                      UoM,
54
+                                            驗報圖庫
54
                     FROM " & 訂單資料表(1) & ""
55
                     FROM " & 訂單資料表(1) & ""
55
     End Sub
56
     End Sub
56
     Private Sub Set_控制表_dgv_插入勾選控件清單()
57
     Private Sub Set_控制表_dgv_插入勾選控件清單()
63
     End Sub
64
     End Sub
64
     Private Sub Set_grid()
65
     Private Sub Set_grid()
65
         '--變動格攔框總和  685
66
         '--變動格攔框總和  685
66
-        If 控制表_dgv.Columns.Count.ToString > 77 Then
67
+        If 控制表_dgv.Columns.Count.ToString > 78 Then
67
             控制表_dgv.Columns.Remove("選擇")
68
             控制表_dgv.Columns.Remove("選擇")
68
         End If
69
         End If
69
         Set_控制表_dgv_插入勾選控件清單()
70
         Set_控制表_dgv_插入勾選控件清單()
115
 
116
 
116
             For i As Integer = 14 To 28 : 控制表_dgv.Columns(i).Visible = False : Next
117
             For i As Integer = 14 To 28 : 控制表_dgv.Columns(i).Visible = False : Next
117
 
118
 
118
-            控制表_dgv.Columns(29).Visible = True
119
+            控制表_dgv.Columns(29).Visible = True : 控制表_dgv.Columns(78).Visible = False
119
 
120
 
120
             For i As Integer = 30 To 63 : 控制表_dgv.Columns(i).Visible = False : Next
121
             For i As Integer = 30 To 63 : 控制表_dgv.Columns(i).Visible = False : Next
121
             For i As Integer = 68 To 77 : 控制表_dgv.Columns(i).Visible = False : Next
122
             For i As Integer = 68 To 77 : 控制表_dgv.Columns(i).Visible = False : Next
942
         AA6_lb.Text = "Version" : AA7_lb.Text = "Vendor" : AA8_lb.Text = "Company Code" : AA9_lb.Text = "Shipping Method" : AA10_lb.Text = "Ship To"
943
         AA6_lb.Text = "Version" : AA7_lb.Text = "Vendor" : AA8_lb.Text = "Company Code" : AA9_lb.Text = "Shipping Method" : AA10_lb.Text = "Ship To"
943
         AA11_lb.Text = "Factory No" : AA12_lb.Text = "Final Customer Ship To"
944
         AA11_lb.Text = "Factory No" : AA12_lb.Text = "Final Customer Ship To"
944
         明細表_dgv.Visible = True : 裝箱明細_dgv.Visible = False : 資訊_gb.Visible = False : 開啟訂單明細表_bt.Visible = False : 批量出貨_bt.Enabled = False
945
         明細表_dgv.Visible = True : 裝箱明細_dgv.Visible = False : 資訊_gb.Visible = False : 開啟訂單明細表_bt.Visible = False : 批量出貨_bt.Enabled = False
945
-
946
+        Panel2.Visible = False
946
         訂單資料庫選擇.ShowDialog()
947
         訂單資料庫選擇.ShowDialog()
947
 
948
 
948
         SQL宣告()
949
         SQL宣告()
1020
             TT23_lb.Text = 裝箱控制表_dgv("FinalCustomerShipTo", e.RowIndex).Value.ToString : TT24_lb.Text = 裝箱控制表_dgv("ProductDescription", e.RowIndex).Value.ToString
1021
             TT23_lb.Text = 裝箱控制表_dgv("FinalCustomerShipTo", e.RowIndex).Value.ToString : TT24_lb.Text = 裝箱控制表_dgv("ProductDescription", e.RowIndex).Value.ToString
1021
         End If
1022
         End If
1022
     End Sub
1023
     End Sub
1023
-    Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 控制表_dgv.CellClick
1024
+    Private Sub 控制表_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 控制表_dgv.CellClick
1024
         If 啟用批量出貨_ch.Checked = True Then
1025
         If 啟用批量出貨_ch.Checked = True Then
1025
             控制表_dgv("選擇", e.RowIndex).Value = True
1026
             控制表_dgv("選擇", e.RowIndex).Value = True
1026
         Else
1027
         Else
1035
                 客戶訂單號_tb.Text = 控制表_dgv("客戶訂單號", e.RowIndex).Value.ToString : 風格_cb.Text = 控制表_dgv("形體號", e.RowIndex).Value.ToString
1036
                 客戶訂單號_tb.Text = 控制表_dgv("客戶訂單號", e.RowIndex).Value.ToString : 風格_cb.Text = 控制表_dgv("形體號", e.RowIndex).Value.ToString
1036
                 顏色_cb.Text = 控制表_dgv("顏色", e.RowIndex).Value.ToString : DM_cb.Text = 控制表_dgv("楦型", e.RowIndex).Value.ToString
1037
                 顏色_cb.Text = 控制表_dgv("顏色", e.RowIndex).Value.ToString : DM_cb.Text = 控制表_dgv("楦型", e.RowIndex).Value.ToString
1037
                 訂單數量 = 控制表_dgv("訂單數量", e.RowIndex).Value.ToString : PRS_tb.Text = Format(Val(訂單數量), "#,##0")
1038
                 訂單數量 = 控制表_dgv("訂單數量", e.RowIndex).Value.ToString : PRS_tb.Text = Format(Val(訂單數量), "#,##0")
1038
-
1039
+                TVW_tb.Text = 控制表_dgv("TVW", e.RowIndex).Value.ToString
1039
                 整單出貨可出貨數量_tb.Text = 控制表_dgv.Rows(e.RowIndex).Cells("訂單數量").Value - 控制表_dgv.Rows(e.RowIndex).Cells("出貨數量").Value
1040
                 整單出貨可出貨數量_tb.Text = 控制表_dgv.Rows(e.RowIndex).Cells("訂單數量").Value - 控制表_dgv.Rows(e.RowIndex).Cells("出貨數量").Value
1040
                 整單出貨可出貨數量_tb.Text = Format(Val(整單出貨可出貨數量_tb.Text), "###0")
1041
                 整單出貨可出貨數量_tb.Text = Format(Val(整單出貨可出貨數量_tb.Text), "###0")
1041
 
1042
 
1097
                 ConnOpen()
1098
                 ConnOpen()
1098
                 SQL1 = "SELECT Style FROM STYLELIST WHERE (ProductName LIKE '" & 風格_cb.Text & "')"
1099
                 SQL1 = "SELECT Style FROM STYLELIST WHERE (ProductName LIKE '" & 風格_cb.Text & "')"
1099
                 CmdSet_For_dr()
1100
                 CmdSet_For_dr()
1100
-                If dr.Read() Then
1101
-                    Tendenzat_Style_tb.Text = dr("Style").ToString
1102
-                Else
1103
-                    Tendenzat_Style_tb.Text = ""
1104
-                End If
1105
-                conn.Close()
1101
+                If dr.Read() Then : Tendenzat_Style_tb.Text = dr("Style").ToString : Else : Tendenzat_Style_tb.Text = "" : End If : conn.Close()
1106
 
1102
 
1107
                 If 控制表_dgv("顏色", e.RowIndex).Value = "" Then
1103
                 If 控制表_dgv("顏色", e.RowIndex).Value = "" Then
1108
                     ConnOpen()
1104
                     ConnOpen()
1120
                             顏色 LIKE '" & 控制表_dgv("顏色", e.RowIndex).Value.ToString & "' AND (類型 NOT LIKE '確認-產地標') AND (類型 NOT LIKE '%LOGO') ORDER BY 類型 DESC"
1116
                             顏色 LIKE '" & 控制表_dgv("顏色", e.RowIndex).Value.ToString & "' AND (類型 NOT LIKE '確認-產地標') AND (類型 NOT LIKE '%LOGO') ORDER BY 類型 DESC"
1121
                     CmdSet_For_dr()
1117
                     CmdSet_For_dr()
1122
                     If dr.Read() Then
1118
                     If dr.Read() Then
1123
-                        conn.Close()
1124
                         ConnOpen()
1119
                         ConnOpen()
1125
                         SQL1 = "SELECT TOP(1) 圖片 FROM 圖片庫一 WHERE 形體號 LIKE '" & 控制表_dgv("TVW", e.RowIndex).Value.ToString & "' AND 
1120
                         SQL1 = "SELECT TOP(1) 圖片 FROM 圖片庫一 WHERE 形體號 LIKE '" & 控制表_dgv("TVW", e.RowIndex).Value.ToString & "' AND 
1126
                                 顏色 LIKE '" & 控制表_dgv("顏色", e.RowIndex).Value.ToString & "' AND (類型 NOT LIKE '確認-產地標') AND (類型 NOT LIKE '%LOGO') ORDER BY 類型 DESC"
1121
                                 顏色 LIKE '" & 控制表_dgv("顏色", e.RowIndex).Value.ToString & "' AND (類型 NOT LIKE '確認-產地標') AND (類型 NOT LIKE '%LOGO') ORDER BY 類型 DESC"
1131
                             Dim oStream As New MemoryStream(bytes) : PictureBox1.Image = Bitmap.FromStream(oStream)
1126
                             Dim oStream As New MemoryStream(bytes) : PictureBox1.Image = Bitmap.FromStream(oStream)
1132
                         End While
1127
                         End While
1133
                     Else
1128
                     Else
1134
-                        conn.Close()
1135
                         ConnOpen()
1129
                         ConnOpen()
1136
                         SQL1 = "SELECT TOP(1) 圖片 FROM 圖片庫一 
1130
                         SQL1 = "SELECT TOP(1) 圖片 FROM 圖片庫一 
1137
                                 WHERE 形體號 LIKE '" & 控制表_dgv("TVW", e.RowIndex).Value.ToString & "' AND (類型 NOT LIKE '確認-產地標') AND (類型 NOT LIKE '%LOGO') ORDER BY 類型 DESC"
1131
                                 WHERE 形體號 LIKE '" & 控制表_dgv("TVW", e.RowIndex).Value.ToString & "' AND (類型 NOT LIKE '確認-產地標') AND (類型 NOT LIKE '%LOGO') ORDER BY 類型 DESC"
1144
                     End If
1138
                     End If
1145
                 End If
1139
                 End If
1146
                 conn.Close() : PictureBox1.SizeMode = 4
1140
                 conn.Close() : PictureBox1.SizeMode = 4
1147
-
1148
-                ConnOpen()
1149
-                SQL1 = "SELECT TOP(1) 驗貨報告 FROM 驗貨報告圖庫 WHERE 驗貨報告編號 LIKE '" & 控制表_dgv("驗貨報告圖片", e.RowIndex).Value.ToString & "'"
1150
-                CmdSet_For_dr()
1151
-                PictureBox2.Image = Nothing
1152
-                While dr.Read() = True
1153
-                    Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("驗貨報告"), Byte())
1154
-                    Dim oStream As New MemoryStream(bytes) : PictureBox2.Image = Bitmap.FromStream(oStream)
1155
-                End While
1156
-                conn.Close() : PictureBox2.SizeMode = 4
1157
-
1158
-                驗貨報告 = 控制表_dgv("驗貨報告圖片", e.RowIndex).Value.ToString
1159
-
1160
-                PB(0) = 控制表_dgv("訂單流水號", e.RowIndex).Value.ToString
1161
-                PB(1) = 控制表_dgv("年份季度", e.RowIndex).Value.ToString
1162
-                PB(2) = 控制表_dgv("客戶訂單號", e.RowIndex).Value.ToString
1163
-                PB(4) = 控制表_dgv("形體號", e.RowIndex).Value.ToString
1164
-                PB(5) = 控制表_dgv("顏色", e.RowIndex).Value.ToString
1165
-                PB(6) = 控制表_dgv("楦型", e.RowIndex).Value.ToString
1166
-                DN(0) = 控制表_dgv("訂單數量", e.RowIndex).Value.ToString
1167
-                PB(7) = 控制表_dgv("客戶交期", e.RowIndex).Value.ToString
1168
-                DN(1) = 控制表_dgv("單價", e.RowIndex).Value.ToString
1169
-                DN(2) = 控制表_dgv("總金額", e.RowIndex).Value.ToString
1170
-                PB(8) = 控制表_dgv("備註", e.RowIndex).Value.ToString
1171
-                PB(9) = 控制表_dgv("生產工廠", e.RowIndex).Value.ToString
1172
-                PB(10) = 控制表_dgv("訂單種類", e.RowIndex).Value.ToString
1173
-                PB(11) = 控制表_dgv("工廠回復交期", e.RowIndex).Value.ToString
1174
-                PB(12) = 控制表_dgv("CFMSPEC", e.RowIndex).Value.ToString
1175
-                PB(13) = 控制表_dgv("CFMSAMPLE", e.RowIndex).Value.ToString
1176
-                PB(14) = 控制表_dgv("TRIAL1", e.RowIndex).Value.ToString
1177
-                PB(15) = 控制表_dgv("TRIAL2", e.RowIndex).Value.ToString
1178
-                PB(16) = 控制表_dgv("TRIAL3", e.RowIndex).Value.ToString
1179
-                PB(17) = 控制表_dgv("TRIAL4", e.RowIndex).Value.ToString
1180
-                PB(18) = 控制表_dgv("包裝確認時間", e.RowIndex).Value.ToString
1181
-                PB(19) = 控制表_dgv("貼標時間", e.RowIndex).Value.ToString
1182
-                PB(20) = 控制表_dgv("裁斷時間", e.RowIndex).Value.ToString
1183
-                PB(21) = 控制表_dgv("針車時間", e.RowIndex).Value.ToString
1184
-                PB(22) = 控制表_dgv("成型時間", e.RowIndex).Value.ToString
1185
-                PB(23) = 控制表_dgv("驗貨時間", e.RowIndex).Value.ToString
1186
-                PB(24) = 控制表_dgv("實際離廠日", e.RowIndex).Value.ToString
1187
-                PB(25) = 控制表_dgv("資料流水號", e.RowIndex).Value.ToString
1188
-                BL(0) = 控制表_dgv("明細建檔", e.RowIndex).Value
1189
-                PB(26) = 控制表_dgv("GOODBOX", e.RowIndex).Value.ToString
1190
-                PB(27) = 控制表_dgv("LEATHER", e.RowIndex).Value.ToString
1191
-                PB(28) = 控制表_dgv("LEA_Note", e.RowIndex).Value.ToString
1192
-                DN(3) = 控制表_dgv("出貨數量", e.RowIndex).Value.ToString
1193
-                PB(29) = 控制表_dgv("接單日", e.RowIndex).Value.ToString
1194
-                PB(30) = 控制表_dgv("需求日期", e.RowIndex).Value.ToString
1195
-                PB(31) = 控制表_dgv("確認日期", e.RowIndex).Value.ToString
1196
-                PB(32) = 控制表_dgv("修訂日期", e.RowIndex).Value.ToString
1197
-                PB(33) = 控制表_dgv("Special_Packaging", e.RowIndex).Value.ToString
1198
-                PB(34) = 控制表_dgv("Remarks", e.RowIndex).Value.ToString
1199
-                PB(35) = 控制表_dgv("出貨地", e.RowIndex).Value.ToString
1200
-                PB(36) = 控制表_dgv("TVW", e.RowIndex).Value.ToString
1201
-                PB(37) = 控制表_dgv("楦頭號", e.RowIndex).Value.ToString
1202
-                PB(38) = 控制表_dgv("材質", e.RowIndex).Value.ToString
1203
-                PB(39) = 控制表_dgv("WEAR_TEST", e.RowIndex).Value.ToString
1204
-                PB(40) = 控制表_dgv("面料", e.RowIndex).Value.ToString
1205
-                PB(41) = 控制表_dgv("副料", e.RowIndex).Value.ToString
1206
-                PB(42) = 控制表_dgv("中底", e.RowIndex).Value.ToString
1207
-                PB(43) = 控制表_dgv("鞋墊", e.RowIndex).Value.ToString
1208
-                PB(44) = 控制表_dgv("大底", e.RowIndex).Value.ToString
1209
-                PB(45) = 控制表_dgv("跟", e.RowIndex).Value.ToString
1210
-                PB(46) = 控制表_dgv("工廠進度表備註1", e.RowIndex).Value.ToString
1211
-                PB(47) = 控制表_dgv("七號模具", e.RowIndex).Value.ToString
1212
-                PB(48) = 控制表_dgv("工廠進度表備註2", e.RowIndex).Value.ToString
1213
-                BL(1) = 0
1214
-                PB(49) = 控制表_dgv("客戶包裝確認", e.RowIndex).Value.ToString
1215
-                PB(50) = 控制表_dgv("東莞業務備註", e.RowIndex).Value.ToString
1216
-                PB(51) = 控制表_dgv("驗貨報告圖片", e.RowIndex).Value.ToString
1217
-                PB(52) = 控制表_dgv("工廠確認", e.RowIndex).Value.ToString
1218
-                PB(53) = 控制表_dgv("利威確認", e.RowIndex).Value.ToString
1219
-                PB(54) = 控制表_dgv("結關日", e.RowIndex).Value.ToString
1220
-                PB(55) = 控制表_dgv("SMS簽回", e.RowIndex).Value.ToString
1221
-                PB(56) = 控制表_dgv("FRS簽回", e.RowIndex).Value.ToString
1222
-                PB(57) = 控制表_dgv("MASTER_SWATCH", e.RowIndex).Value.ToString
1223
-                PB(58) = 控制表_dgv("力威訂單號", e.RowIndex).Value.ToString
1224
-                PB(59) = 控制表_dgv("ProductID", e.RowIndex).Value.ToString
1225
-                PB(60) = 控制表_dgv("UoM", e.RowIndex).Value.ToString
1141
+                '------------驗貨報告讀取--------------------------------------------------------------------------------------------
1142
+                PA1 = 控制表_dgv("驗報圖庫", e.RowIndex).Value.ToString : PA2 = 控制表_dgv("驗貨報告圖片", e.RowIndex).Value.ToString
1143
+                If 控制表_dgv("驗報圖庫", e.RowIndex).Value.ToString = "" Then : 驗貨報告_pb.Image = Nothing : Else
1144
+                    SQL_訂單驗貨報告圖片讀取() : 驗貨報告_pb.Image = Nothing
1145
+                    While dr.Read() = True
1146
+                        Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("驗貨報告"), Byte())
1147
+                        Dim oStream As New MemoryStream(bytes) : 驗貨報告_pb.Image = Bitmap.FromStream(oStream)
1148
+                    End While : conn.Close() : 驗貨報告_pb.SizeMode = 4
1149
+                End If : 圖片傳遞 = 驗貨報告_pb.Image
1150
+                驗貨報告 = 控制表_dgv("驗貨報告圖片", e.RowIndex).Value.ToString : PB(0) = 控制表_dgv("訂單流水號", e.RowIndex).Value.ToString
1151
+                PB(1) = 控制表_dgv("年份季度", e.RowIndex).Value.ToString : PB(2) = 控制表_dgv("客戶訂單號", e.RowIndex).Value.ToString : PB(4) = 控制表_dgv("形體號", e.RowIndex).Value.ToString
1152
+                PB(5) = 控制表_dgv("顏色", e.RowIndex).Value.ToString : PB(6) = 控制表_dgv("楦型", e.RowIndex).Value.ToString : DN(0) = 控制表_dgv("訂單數量", e.RowIndex).Value.ToString
1153
+                PB(7) = 控制表_dgv("客戶交期", e.RowIndex).Value.ToString : DN(1) = 控制表_dgv("單價", e.RowIndex).Value.ToString : DN(2) = 控制表_dgv("總金額", e.RowIndex).Value.ToString
1154
+                PB(8) = 控制表_dgv("備註", e.RowIndex).Value.ToString : PB(9) = 控制表_dgv("生產工廠", e.RowIndex).Value.ToString : PB(10) = 控制表_dgv("訂單種類", e.RowIndex).Value.ToString
1155
+                PB(11) = 控制表_dgv("工廠回復交期", e.RowIndex).Value.ToString : PB(12) = 控制表_dgv("CFMSPEC", e.RowIndex).Value.ToString : PB(13) = 控制表_dgv("CFMSAMPLE", e.RowIndex).Value.ToString
1156
+                PB(14) = 控制表_dgv("TRIAL1", e.RowIndex).Value.ToString : PB(15) = 控制表_dgv("TRIAL2", e.RowIndex).Value.ToString : PB(16) = 控制表_dgv("TRIAL3", e.RowIndex).Value.ToString
1157
+                PB(17) = 控制表_dgv("TRIAL4", e.RowIndex).Value.ToString : PB(18) = 控制表_dgv("包裝確認時間", e.RowIndex).Value.ToString : PB(19) = 控制表_dgv("貼標時間", e.RowIndex).Value.ToString
1158
+                PB(20) = 控制表_dgv("裁斷時間", e.RowIndex).Value.ToString : PB(21) = 控制表_dgv("針車時間", e.RowIndex).Value.ToString : PB(22) = 控制表_dgv("成型時間", e.RowIndex).Value.ToString
1159
+                PB(23) = 控制表_dgv("驗貨時間", e.RowIndex).Value.ToString : PB(24) = 控制表_dgv("實際離廠日", e.RowIndex).Value.ToString : PB(25) = 控制表_dgv("資料流水號", e.RowIndex).Value.ToString
1160
+                BL(0) = 控制表_dgv("明細建檔", e.RowIndex).Value : PB(26) = 控制表_dgv("GOODBOX", e.RowIndex).Value.ToString : PB(27) = 控制表_dgv("LEATHER", e.RowIndex).Value.ToString
1161
+                PB(28) = 控制表_dgv("LEA_Note", e.RowIndex).Value.ToString : DN(3) = 控制表_dgv("出貨數量", e.RowIndex).Value.ToString : PB(29) = 控制表_dgv("接單日", e.RowIndex).Value.ToString
1162
+                PB(30) = 控制表_dgv("需求日期", e.RowIndex).Value.ToString : PB(31) = 控制表_dgv("確認日期", e.RowIndex).Value.ToString : PB(32) = 控制表_dgv("修訂日期", e.RowIndex).Value.ToString
1163
+                PB(33) = 控制表_dgv("Special_Packaging", e.RowIndex).Value.ToString : PB(34) = 控制表_dgv("Remarks", e.RowIndex).Value.ToString : PB(35) = 控制表_dgv("出貨地", e.RowIndex).Value.ToString
1164
+                PB(36) = 控制表_dgv("TVW", e.RowIndex).Value.ToString : PB(37) = 控制表_dgv("楦頭號", e.RowIndex).Value.ToString : PB(38) = 控制表_dgv("材質", e.RowIndex).Value.ToString
1165
+                PB(39) = 控制表_dgv("WEAR_TEST", e.RowIndex).Value.ToString : PB(40) = 控制表_dgv("面料", e.RowIndex).Value.ToString : PB(41) = 控制表_dgv("副料", e.RowIndex).Value.ToString
1166
+                PB(42) = 控制表_dgv("中底", e.RowIndex).Value.ToString : PB(43) = 控制表_dgv("鞋墊", e.RowIndex).Value.ToString : PB(44) = 控制表_dgv("大底", e.RowIndex).Value.ToString
1167
+                PB(45) = 控制表_dgv("跟", e.RowIndex).Value.ToString : PB(46) = 控制表_dgv("工廠進度表備註1", e.RowIndex).Value.ToString : PB(47) = 控制表_dgv("七號模具", e.RowIndex).Value.ToString
1168
+                PB(48) = 控制表_dgv("工廠進度表備註2", e.RowIndex).Value.ToString : BL(1) = 0 : PB(49) = 控制表_dgv("客戶包裝確認", e.RowIndex).Value.ToString
1169
+                PB(50) = 控制表_dgv("東莞業務備註", e.RowIndex).Value.ToString : PB(51) = 控制表_dgv("驗貨報告圖片", e.RowIndex).Value.ToString : PB(52) = 控制表_dgv("工廠確認", e.RowIndex).Value.ToString
1170
+                PB(53) = 控制表_dgv("利威確認", e.RowIndex).Value.ToString : PB(54) = 控制表_dgv("結關日", e.RowIndex).Value.ToString : PB(55) = 控制表_dgv("SMS簽回", e.RowIndex).Value.ToString
1171
+                PB(56) = 控制表_dgv("FRS簽回", e.RowIndex).Value.ToString : PB(57) = 控制表_dgv("MASTER_SWATCH", e.RowIndex).Value.ToString : PB(58) = 控制表_dgv("力威訂單號", e.RowIndex).Value.ToString
1172
+                PB(59) = 控制表_dgv("ProductID", e.RowIndex).Value.ToString : PB(60) = 控制表_dgv("UoM", e.RowIndex).Value.ToString
1226
             End If
1173
             End If
1227
         End If
1174
         End If
1228
     End Sub
1175
     End Sub
1820
         驗貨報告大圖.ShowDialog()
1767
         驗貨報告大圖.ShowDialog()
1821
     End Sub
1768
     End Sub
1822
     Private Sub Button25_Click(sender As Object, e As EventArgs) Handles 順時鐘90度旋轉_bt.Click
1769
     Private Sub Button25_Click(sender As Object, e As EventArgs) Handles 順時鐘90度旋轉_bt.Click
1823
-        PictureBox2.Image.RotateFlip(RotateFlipType.Rotate90FlipNone) : PictureBox2.Refresh() : PictureBox2.SizeMode = 4
1770
+        驗貨報告_pb.Image.RotateFlip(RotateFlipType.Rotate90FlipNone) : 驗貨報告_pb.Refresh() : 驗貨報告_pb.SizeMode = 4
1824
     End Sub
1771
     End Sub
1825
     Private Sub Button24_Click(sender As Object, e As EventArgs) Handles 逆時鐘90度旋轉_tb.Click
1772
     Private Sub Button24_Click(sender As Object, e As EventArgs) Handles 逆時鐘90度旋轉_tb.Click
1826
-        PictureBox2.Image.RotateFlip(RotateFlipType.Rotate270FlipNone) : PictureBox2.Refresh() : PictureBox2.SizeMode = 4
1773
+        驗貨報告_pb.Image.RotateFlip(RotateFlipType.Rotate270FlipNone) : 驗貨報告_pb.Refresh() : 驗貨報告_pb.SizeMode = 4
1827
     End Sub
1774
     End Sub
1828
     Private Sub Button23_Click(sender As Object, e As EventArgs) Handles 水平翻轉_bt.Click
1775
     Private Sub Button23_Click(sender As Object, e As EventArgs) Handles 水平翻轉_bt.Click
1829
-        PictureBox2.Image.RotateFlip(RotateFlipType.Rotate180FlipY) : PictureBox2.Refresh() : PictureBox2.SizeMode = 4
1776
+        驗貨報告_pb.Image.RotateFlip(RotateFlipType.Rotate180FlipY) : 驗貨報告_pb.Refresh() : 驗貨報告_pb.SizeMode = 4
1830
     End Sub
1777
     End Sub
1831
     Private Sub Button21_Click(sender As Object, e As EventArgs) Handles 垂直翻轉_bt.Click
1778
     Private Sub Button21_Click(sender As Object, e As EventArgs) Handles 垂直翻轉_bt.Click
1832
-        PictureBox2.Image.RotateFlip(RotateFlipType.Rotate180FlipX) : PictureBox2.Refresh() : PictureBox2.SizeMode = 4
1779
+        驗貨報告_pb.Image.RotateFlip(RotateFlipType.Rotate180FlipX) : 驗貨報告_pb.Refresh() : 驗貨報告_pb.SizeMode = 4
1833
     End Sub
1780
     End Sub
1834
     Private Sub TextBox12_TextChanged(sender As Object, e As EventArgs) Handles 拆單出貨出貨數量_tb.TextChanged
1781
     Private Sub TextBox12_TextChanged(sender As Object, e As EventArgs) Handles 拆單出貨出貨數量_tb.TextChanged
1835
         If Val(拆單出貨出貨數量_tb.Text) > Val(整單出貨可出貨數量_tb.Text) Then
1782
         If Val(拆單出貨出貨數量_tb.Text) > Val(整單出貨可出貨數量_tb.Text) Then
1976
         End If
1923
         End If
1977
 
1924
 
1978
     End Sub
1925
     End Sub
1926
+    Private Sub CanceL3_bt_Click(sender As Object, e As EventArgs) Handles CanceL3_bt.Click
1927
+        Panel2.Visible = False
1928
+    End Sub
1929
+    Private Sub 包裝資訊_bt_Click(sender As Object, e As EventArgs) Handles 包裝資訊_bt.Click
1930
+        SQL_包裝資訊圖片連結查詢()
1931
+        If dr.Read() Then : PA20 = dr("包裝圖庫").ToString : PA2 = dr("包裝圖號").ToString : Else : PA20 = "" : PA2 = "" : End If
1932
+        If PA20 = "" Or PA2 = "" Then : MsgBox("沒有包裝資訊圖!!!") : Else
1933
+            Panel2.Visible = True : PA1 = PA20
1934
+            SQL_包裝圖片() : 包裝資料_pb.Image = Nothing
1935
+            While dr.Read() = True
1936
+                Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
1937
+                Dim oStream As New MemoryStream(bytes) : 包裝資料_pb.Image = Bitmap.FromStream(oStream)
1938
+            End While : conn.Close() : 包裝資料_pb.SizeMode = 4 : 圖片傳遞 = 包裝資料_pb.Image
1939
+        End If
1940
+    End Sub
1979
 End Class
1941
 End Class

Ładowanie…
Anuluj
Zapisz