Browse Source

20201014備份

Signed-off-by: B70340 <b70340@gmail.com>
B70340 4 years ago
parent
commit
f7d07d32ba

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


+ 1
- 1
TENDEN-MES-SYS/Module/Module1.vb View File

@@ -4,7 +4,7 @@
4 4
     Public Target As String : Public Target1 As String : Public Target2 As String : Public FTP帳號 As String : Public FTP密碼 As String : Public 登入人IP As String
5 5
     Public CC(99) As Boolean : Public AA(99) As String : Public 登入判斷 As Boolean
6 6
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7
-    Public 版本 As String = "2020092901"
7
+    Public 版本 As String = "2020100801"
8 8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9 9
     Public SQL1 As String
10 10
     Public 匯率 As Double

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


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


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


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


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


+ 15
- 11
TENDEN-MES-SYS/樣品訂單管理/中文樣品單.vb View File

@@ -122,18 +122,18 @@ Public Class 中文樣品單
122 122
         DataGridView4.AllowUserToAddRows = False
123 123
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
124 124
     End Sub
125
-    Private  Sub Set_DGV4載入後設定()
125
+    Private Sub Set_DGV4載入後設定()
126 126
         cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.SelectCommand.CommandTimeout = 900 : da.Fill(ds3) : DataGridView4.DataSource = ds3.Tables(0) : conn.Close()
127 127
     End Sub
128 128
     Private  Sub Set_顏色清單()
129 129
         Set_DGV4載入前設定()
130 130
         If 暫存模式 = False Then
131
-            SQL1 = "SELECT 樣品流水號, 樣品流水號一, 顏色, 訂單顏色, 數量, 面料, 內裏, 底部, 飾物, 備註, FINISH, Upper_Material, CFM_SPEC, ETD, Ship_Date, AWB, Approved_Date, " &
131
+            SQL1 = "SELECT 樣品流水號, 樣品流水號一, 顏色, 訂單顏色, 數量1 AS 數量, 面料, 內裏, 底部, 飾物, 備註, FINISH, Upper_Material, CFM_SPEC, ETD, Ship_Date, AWB, Approved_Date, " &
132 132
                    "Comments, 一ST_XFD, PO, Column1, Column2, DATE, SIZE, FROMS, FACTORY, 確認結果1, 確認結果2, 確認結果3, 注意, 確認通知單鞋圖, 掛牌Date, 掛牌Color, Material_Article, " &
133 133
                    "Construc_Name, Insole, Footbed, 掛牌Size, Gender, Width, D_C_S, Stage, 掛牌Comments FROM 確認樣品單控制表 " &
134 134
                    "WHERE (樣品流水號 LIKE '" & TextBox3.Text & "') ORDER BY   顏色, 訂單顏色"
135 135
         Else
136
-            SQL1 = "SELECT 樣品流水號, 樣品流水號一, 顏色, 訂單顏色, 數量, 面料, 內裏, 底部, 飾物, 備註, FINISH, Upper_Material, CFM_SPEC, ETD, Ship_Date, AWB, Approved_Date, " &
136
+            SQL1 = "SELECT 樣品流水號, 樣品流水號一, 顏色, 訂單顏色, 數量1 AS 數量, 面料, 內裏, 底部, 飾物, 備註, FINISH, Upper_Material, CFM_SPEC, ETD, Ship_Date, AWB, Approved_Date, " &
137 137
                    "Comments, 一ST_XFD, PO, Column1, Column2, DATE, SIZE, FROMS, FACTORY, 確認結果1, 確認結果2, 確認結果3, 注意, 確認通知單鞋圖, 掛牌Date, 掛牌Color, Material_Article, " &
138 138
                    "Construc_Name, Insole, Footbed, 掛牌Size, Gender, Width, D_C_S, Stage, 掛牌Comments FROM 確認樣品單控制表暫存檔 " &
139 139
                    "WHERE (樣品流水號 LIKE '" & TextBox3.Text & "') ORDER BY   顏色, 訂單顏色"
@@ -266,6 +266,10 @@ Public Class 中文樣品單
266 266
         DataGridView4.Columns(42).Visible = False
267 267
         DataGridView4.Columns(43).FillWeight = 160
268 268
         DataGridView4.EditMode = DataGridViewEditMode.EditOnEnter
269
+
270
+        DataGridView4.Columns(5).DefaultCellStyle.Format = "#,##0.0"
271
+        DataGridView4.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
272
+        DataGridView4.Columns(5).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
269 273
     End Sub
270 274
     Private  Sub Set_grid4()
271 275
         DataGridView5.Columns(0).FillWeight = 150 : DataGridView5.Columns(5).FillWeight = 934
@@ -1085,7 +1089,7 @@ Public Class 中文樣品單
1085 1089
             For i As Integer = 1 To PA
1086 1090
                 Set_樣品單流水編號設定2_1()
1087 1091
                 If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
1088
-                SQL1 = "INSERT INTO 確認樣品單控制表暫存檔 (樣品流水號, 樣品流水號一, 顏色, 訂單顏色, 數量, 面料, 內裏, 底部, 飾物, 備註, FINISH, Upper_Material, CFM_SPEC, ETD, Ship_Date, AWB, " &
1092
+                SQL1 = "INSERT INTO 確認樣品單控制表暫存檔 (樣品流水號, 樣品流水號一, 顏色, 訂單顏色, 數量1, 面料, 內裏, 底部, 飾物, 備註, FINISH, Upper_Material, CFM_SPEC, ETD, Ship_Date, AWB, " &
1089 1093
                        "Approved_Date, Comments, 一ST_XFD, PO, Column1, Column2, DATE, SIZE, FROMS, FACTORY, 確認結果1, 確認結果2, 確認結果3, 注意, 確認通知單鞋圖, 掛牌Date, 掛牌Color, Material_Article, " &
1090 1094
                    "Construc_Name, Insole, Footbed, 掛牌Size, Gender, Width, D_C_S, Stage, 掛牌Comments) " &
1091 1095
                        "VALUES ('" & 樣品單流水號變數1 & "','" & 樣品單流水號變數2 & "','','','','" & 樣品單流水號變數2 & "1" & "','" & 樣品單流水號變數2 & "2" & "','" & 樣品單流水號變數2 & "3" &
@@ -1105,7 +1109,7 @@ Public Class 中文樣品單
1105 1109
                 For i As Integer = 0 To DataGridView4.Rows.Count - 1
1106 1110
                     Set_樣品單流水編號設定2_1()
1107 1111
                     If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
1108
-                    SQL1 = "INSERT INTO 確認樣品單控制表暫存檔 (樣品流水號, 樣品流水號一, 顏色, 訂單顏色, 數量, 面料, 內裏, 底部, 飾物, 備註, FINISH, Upper_Material, CFM_SPEC, ETD, Ship_Date, AWB, " &
1112
+                    SQL1 = "INSERT INTO 確認樣品單控制表暫存檔 (樣品流水號, 樣品流水號一, 顏色, 訂單顏色, 數量1, 面料, 內裏, 底部, 飾物, 備註, FINISH, Upper_Material, CFM_SPEC, ETD, Ship_Date, AWB, " &
1109 1113
                            "Approved_Date, Comments, 一ST_XFD, PO, Column1, Column2, DATE, SIZE, FROMS, FACTORY, 確認結果1, 確認結果2, 確認結果3, 注意, 確認通知單鞋圖, 掛牌Date, 掛牌Color, Material_Article, " &
1110 1114
                    "Construc_Name, Insole, Footbed, 掛牌Size, Gender, Width, D_C_S, Stage, 掛牌Comments) " &
1111 1115
                            "VALUES ('" & 樣品單流水號變數1 & "','" & 樣品單流水號變數2 & "',N'" & DataGridView4.Rows(i).Cells("顏色").Value & "','" & DataGridView4.Rows(i).Cells("訂單顏色").Value &
@@ -1439,7 +1443,7 @@ Public Class 中文樣品單
1439 1443
         For i = 0 To DataGridView4.Rows.Count - 1
1440 1444
             If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
1441 1445
             SQL1 = "UPDATE 確認樣品單控制表暫存檔 SET 顏色 = N'" & DataGridView4.Rows(i).Cells("顏色").Value & "', 訂單顏色 = '" & DataGridView4.Rows(i).Cells("Color_Code").Value & "', " &
1442
-                   "數量 = '" & DataGridView4.Rows(i).Cells("數量").Value & "', 面料 = '" & DataGridView4.Rows(i).Cells("面料").Value & "', 內裏 = '" & DataGridView4.Rows(i).Cells("內裏").Value & "', " &
1446
+                   "數量1 = '" & DataGridView4.Rows(i).Cells("數量").Value & "', 面料 = '" & DataGridView4.Rows(i).Cells("面料").Value & "', 內裏 = '" & DataGridView4.Rows(i).Cells("內裏").Value & "', " &
1443 1447
                    "底部 = '" & DataGridView4.Rows(i).Cells("底部").Value & "', 飾物 = '" & DataGridView4.Rows(i).Cells("飾物").Value & "', 備註 = N'" & DataGridView4.Rows(i).Cells("備註").Value & "', " &
1444 1448
                    "FINISH = N'" & DataGridView4.Rows(i).Cells("FINISH").Value & "', 掛牌Date = '" & DataGridView4.Rows(i).Cells("掛牌Date").Value & "', " &
1445 1449
                    "掛牌Color = '" & DataGridView4.Rows(i).Cells("掛牌Color").Value & "', Material_Article = '" & DataGridView4.Rows(i).Cells("Material_Article").Value & "', " &
@@ -1577,7 +1581,7 @@ Public Class 中文樣品單
1577 1581
         cmd.Connection = conn : cmd.CommandText = SQL1 : cmd.ExecuteNonQuery() : conn.Close()
1578 1582
         For i As Integer = 0 To DataGridView4.Rows.Count - 1
1579 1583
             If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
1580
-            SQL1 = "INSERT INTO 確認樣品單控制表 (樣品流水號, 樣品流水號一, 顏色, 訂單顏色, 數量, 面料, 內裏, 底部, 飾物, 備註, FINISH, Upper_Material, CFM_SPEC, ETD, Ship_Date, AWB, " &
1584
+            SQL1 = "INSERT INTO 確認樣品單控制表 (樣品流水號, 樣品流水號一, 顏色, 訂單顏色, 數量1, 面料, 內裏, 底部, 飾物, 備註, FINISH, Upper_Material, CFM_SPEC, ETD, Ship_Date, AWB, " &
1581 1585
                    "Approved_Date, Comments, 一ST_XFD, PO, Column1, Column2, DATE, SIZE, FROMS, FACTORY, 確認結果1, 確認結果2, 確認結果3, 注意, 確認通知單鞋圖, 掛牌Date, 掛牌Color, Material_Article, " &
1582 1586
                    "Construc_Name, Insole, Footbed, 掛牌Size, Gender, Width, D_C_S, Stage, 掛牌Comments) " &
1583 1587
                    "VALUES ('" & DataGridView4.Rows(i).Cells("樣品流水號").Value &
@@ -1698,7 +1702,7 @@ Public Class 中文樣品單
1698 1702
             For i = 0 To DataGridView4.Rows.Count - 1
1699 1703
                 If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
1700 1704
                 SQL1 = "UPDATE 確認樣品單控制表 SET 顏色 = N'" & DataGridView4.Rows(i).Cells("顏色").Value & "', 訂單顏色 = '" & DataGridView4.Rows(i).Cells("Color_Code").Value & "', " &
1701
-                       "數量 = '" & DataGridView4.Rows(i).Cells("數量").Value & "', 面料 = '" & DataGridView4.Rows(i).Cells("面料").Value & "', 內裏 = '" & DataGridView4.Rows(i).Cells("內裏").Value & "', " &
1705
+                       "數量1 = '" & DataGridView4.Rows(i).Cells("數量").Value & "', 面料 = '" & DataGridView4.Rows(i).Cells("面料").Value & "', 內裏 = '" & DataGridView4.Rows(i).Cells("內裏").Value & "', " &
1702 1706
                        "底部 = '" & DataGridView4.Rows(i).Cells("底部").Value & "', 飾物 = '" & DataGridView4.Rows(i).Cells("飾物").Value & "', 備註 = N'" & DataGridView4.Rows(i).Cells("備註").Value & "', " &
1703 1707
                        "FINISH = N'" & DataGridView4.Rows(i).Cells("FINISH").Value & "', 掛牌Date = '" & DataGridView4.Rows(i).Cells("掛牌Date").Value & "', " &
1704 1708
                        "掛牌Color = '" & DataGridView4.Rows(i).Cells("掛牌Color").Value & "', Material_Article = '" & DataGridView4.Rows(i).Cells("Material_Article").Value & "', " &
@@ -1811,7 +1815,7 @@ Public Class 中文樣品單
1811 1815
             For i As Integer = 1 To PA
1812 1816
                 Set_樣品單流水編號設定2_2()
1813 1817
                 If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
1814
-                SQL1 = "INSERT INTO 確認樣品單控制表 (樣品流水號, 樣品流水號一, 顏色, 訂單顏色, 數量, 面料, 內裏, 底部, 飾物, 備註, FINISH, Upper_Material, CFM_SPEC, ETD, Ship_Date, AWB, " &
1818
+                SQL1 = "INSERT INTO 確認樣品單控制表 (樣品流水號, 樣品流水號一, 顏色, 訂單顏色, 數量1, 面料, 內裏, 底部, 飾物, 備註, FINISH, Upper_Material, CFM_SPEC, ETD, Ship_Date, AWB, " &
1815 1819
                        "Approved_Date, Comments, 一ST_XFD, PO, Column1, Column2, DATE, SIZE, FROMS, FACTORY, 確認結果1, 確認結果2, 確認結果3, 注意, 確認通知單鞋圖, 掛牌Date, 掛牌Color, Material_Article, " &
1816 1820
                    "Construc_Name, Insole, Footbed, 掛牌Size, Gender, Width, D_C_S, Stage, 掛牌Comments) " &
1817 1821
                        "VALUES ('" & TextBox3.Text & "','" & 樣品單流水號變數2 & "','','','','" & 樣品單流水號變數2 & "1" & "','" & 樣品單流水號變數2 & "2" & "','" & 樣品單流水號變數2 & "3" &
@@ -1900,7 +1904,7 @@ Public Class 中文樣品單
1900 1904
             For i As Integer = 1 To PA
1901 1905
                 Set_樣品單流水編號設定2_1()
1902 1906
                 If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
1903
-                SQL1 = "INSERT INTO 確認樣品單控制表暫存檔 (樣品流水號, 樣品流水號一, 顏色, 訂單顏色, 數量, 面料, 內裏, 底部, 飾物, 備註, FINISH, Upper_Material, CFM_SPEC, ETD, Ship_Date, AWB, " &
1907
+                SQL1 = "INSERT INTO 確認樣品單控制表暫存檔 (樣品流水號, 樣品流水號一, 顏色, 訂單顏色, 數量1, 面料, 內裏, 底部, 飾物, 備註, FINISH, Upper_Material, CFM_SPEC, ETD, Ship_Date, AWB, " &
1904 1908
                        "Approved_Date, Comments, 一ST_XFD, PO, Column1, Column2, DATE, SIZE, FROMS, FACTORY, 確認結果1, 確認結果2, 確認結果3, 注意, 確認通知單鞋圖, 掛牌Date, 掛牌Color, Material_Article, " &
1905 1909
                    "Construc_Name, Insole, Footbed, 掛牌Size, Gender, Width, D_C_S, Stage, 掛牌Comments) " &
1906 1910
                        "VALUES ('" & 樣品單流水號變數1 & "','" & 樣品單流水號變數2 & "','','','','" & 樣品單流水號變數2 & "1" & "','" & 樣品單流水號變數2 & "2" & "','" & 樣品單流水號變數2 & "3" &
@@ -1990,7 +1994,7 @@ Public Class 中文樣品單
1990 1994
             For i = 0 To DataGridView4.Rows.Count - 1
1991 1995
                 If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
1992 1996
                 SQL1 = "UPDATE 確認樣品單控制表 SET 顏色 = N'" & DataGridView4.Rows(i).Cells("顏色").Value & "', 訂單顏色 = '" & DataGridView4.Rows(i).Cells("Color_Code").Value & "', " &
1993
-                           "數量 = '" & DataGridView4.Rows(i).Cells("數量").Value & "', 面料 = '" & DataGridView4.Rows(i).Cells("面料").Value & "', 內裏 = '" & DataGridView4.Rows(i).Cells("內裏").Value & "', " &
1997
+                           "數量1 = '" & DataGridView4.Rows(i).Cells("數量").Value & "', 面料 = '" & DataGridView4.Rows(i).Cells("面料").Value & "', 內裏 = '" & DataGridView4.Rows(i).Cells("內裏").Value & "', " &
1994 1998
                            "底部 = '" & DataGridView4.Rows(i).Cells("底部").Value & "', 飾物 = '" & DataGridView4.Rows(i).Cells("飾物").Value & "', 備註 = N'" & DataGridView4.Rows(i).Cells("備註").Value & "', " &
1995 1999
                            "FINISH = N'" & DataGridView4.Rows(i).Cells("FINISH").Value & "', 掛牌Date = '" & DataGridView4.Rows(i).Cells("掛牌Date").Value & "', " &
1996 2000
                            "掛牌Color = '" & DataGridView4.Rows(i).Cells("掛牌Color").Value & "', Material_Article = '" & DataGridView4.Rows(i).Cells("Material_Article").Value & "', " &

Loading…
Cancel
Save