B70340 2 jaren geleden
bovenliggende
commit
93c50be85c

BIN
.vs/TENDEN-MES-SYS/FileContentIndex/26646de7-0851-4c8f-b394-749cd967e807.vsidx Bestand weergeven


BIN
.vs/TENDEN-MES-SYS/FileContentIndex/70d92dcb-6aa5-4d26-80cf-0d9db313000c.vsidx Bestand weergeven


BIN
.vs/TENDEN-MES-SYS/FileContentIndex/96f59ee1-78ba-4abe-b71e-28a537cf7c8a.vsidx Bestand weergeven


BIN
.vs/TENDEN-MES-SYS/FileContentIndex/9e82087e-14a2-47a1-a9ff-fcddf3db67a3.vsidx Bestand weergeven


BIN
.vs/TENDEN-MES-SYS/FileContentIndex/d713b9f2-5564-476d-bd84-ffe5d6c7b0ba.vsidx Bestand weergeven


BIN
.vs/TENDEN-MES-SYS/FileContentIndex/f13a5075-5870-4a20-9888-c15e58473797.vsidx Bestand weergeven


BIN
.vs/TENDEN-MES-SYS/v17/.suo Bestand weergeven


BIN
.vs/TENDEN-MES-SYS/v17/nzft11pz.mrl Bestand weergeven


BIN
.vs/TENDEN-MES-SYS/v17/rw1rj1zq.jsb Bestand weergeven


BIN
.vs/TENDEN-MES-SYS/v17/trjtcrqx.pmr Bestand weergeven


BIN
.vs/TENDEN-MES-SYS/v17/vmgluncc.s0s Bestand weergeven


BIN
.vs/TENDEN-MES-SYS/v17/x4d0xor5.1bh Bestand weergeven


+ 1
- 1
TENDEN-MES-SYS/Module/全域變數.vb Bestand weergeven

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

BIN
TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.exe Bestand weergeven


BIN
TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.pdb Bestand weergeven


BIN
TENDEN-MES-SYS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache Bestand weergeven


BIN
TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.exe Bestand weergeven


BIN
TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.pdb Bestand weergeven


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


+ 30
- 4
TENDEN-MES-SYS/資料庫系統管理/下拉清單_1.Designer.vb Bestand weergeven

@@ -29,6 +29,8 @@ Partial Class 下拉清單_1
29 29
         Me.ListBox4 = New System.Windows.Forms.ListBox()
30 30
         Me.上一頁_bt = New System.Windows.Forms.Button()
31 31
         Me.下一頁_bt = New System.Windows.Forms.Button()
32
+        Me.最末頁_bt = New System.Windows.Forms.Button()
33
+        Me.最前頁_bt = New System.Windows.Forms.Button()
32 34
         Me.SuspendLayout()
33 35
         '
34 36
         'ListBox1
@@ -70,9 +72,9 @@ Partial Class 下拉清單_1
70 72
         '上一頁_bt
71 73
         '
72 74
         Me.上一頁_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
73
-        Me.上一頁_bt.Location = New System.Drawing.Point(4, 407)
75
+        Me.上一頁_bt.Location = New System.Drawing.Point(105, 407)
74 76
         Me.上一頁_bt.Name = "上一頁_bt"
75
-        Me.上一頁_bt.Size = New System.Drawing.Size(160, 25)
77
+        Me.上一頁_bt.Size = New System.Drawing.Size(101, 25)
76 78
         Me.上一頁_bt.TabIndex = 1523
77 79
         Me.上一頁_bt.Text = "上一頁"
78 80
         Me.上一頁_bt.UseVisualStyleBackColor = True
@@ -80,18 +82,40 @@ Partial Class 下拉清單_1
80 82
         '下一頁_bt
81 83
         '
82 84
         Me.下一頁_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
83
-        Me.下一頁_bt.Location = New System.Drawing.Point(697, 407)
85
+        Me.下一頁_bt.Location = New System.Drawing.Point(656, 407)
84 86
         Me.下一頁_bt.Name = "下一頁_bt"
85
-        Me.下一頁_bt.Size = New System.Drawing.Size(160, 25)
87
+        Me.下一頁_bt.Size = New System.Drawing.Size(101, 25)
86 88
         Me.下一頁_bt.TabIndex = 1524
87 89
         Me.下一頁_bt.Text = "下一頁"
88 90
         Me.下一頁_bt.UseVisualStyleBackColor = True
89 91
         '
92
+        '最末頁_bt
93
+        '
94
+        Me.最末頁_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
95
+        Me.最末頁_bt.Location = New System.Drawing.Point(756, 407)
96
+        Me.最末頁_bt.Name = "最末頁_bt"
97
+        Me.最末頁_bt.Size = New System.Drawing.Size(101, 25)
98
+        Me.最末頁_bt.TabIndex = 1525
99
+        Me.最末頁_bt.Text = "最末頁"
100
+        Me.最末頁_bt.UseVisualStyleBackColor = True
101
+        '
102
+        '最前頁_bt
103
+        '
104
+        Me.最前頁_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
105
+        Me.最前頁_bt.Location = New System.Drawing.Point(4, 407)
106
+        Me.最前頁_bt.Name = "最前頁_bt"
107
+        Me.最前頁_bt.Size = New System.Drawing.Size(101, 25)
108
+        Me.最前頁_bt.TabIndex = 1526
109
+        Me.最前頁_bt.Text = "最前頁"
110
+        Me.最前頁_bt.UseVisualStyleBackColor = True
111
+        '
90 112
         '下拉清單_1
91 113
         '
92 114
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
93 115
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
94 116
         Me.ClientSize = New System.Drawing.Size(861, 432)
117
+        Me.Controls.Add(Me.最前頁_bt)
118
+        Me.Controls.Add(Me.最末頁_bt)
95 119
         Me.Controls.Add(Me.下一頁_bt)
96 120
         Me.Controls.Add(Me.上一頁_bt)
97 121
         Me.Controls.Add(Me.ListBox4)
@@ -115,4 +139,6 @@ Partial Class 下拉清單_1
115 139
     Friend WithEvents ListBox4 As ListBox
116 140
     Friend WithEvents 上一頁_bt As Button
117 141
     Friend WithEvents 下一頁_bt As Button
142
+    Friend WithEvents 最末頁_bt As Button
143
+    Friend WithEvents 最前頁_bt As Button
118 144
 End Class

+ 32
- 5
TENDEN-MES-SYS/資料庫系統管理/下拉清單_1.vb Bestand weergeven

@@ -10,7 +10,8 @@
10 10
     Private Sub 下拉清單_1_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
11 11
         有選擇 = False
12 12
         總頁數 = NN1 / 99 + 1 : 頁數 = 1 : F1 = 0 : F2 = 24 : F3 = 25 : F4 = 49 : F5 = 50 : F6 = 74 : F7 = 75 : F8 = 99
13
-        If NN1 < 99 Then : 上一頁_bt.Enabled = False : 下一頁_bt.Enabled = False : Else : 上一頁_bt.Enabled = False : 下一頁_bt.Enabled = True : End If
13
+        If NN1 < 99 Then : 上一頁_bt.Enabled = False : 下一頁_bt.Enabled = False : 最前頁_bt.Enabled = False : 最末頁_bt.Enabled = False
14
+        Else : 上一頁_bt.Enabled = False : 下一頁_bt.Enabled = True : 最前頁_bt.Enabled = False : 最末頁_bt.Enabled = True : End If
14 15
 
15 16
         ListBox1.Items.Clear() : ListBox2.Items.Clear() : ListBox3.Items.Clear() : ListBox4.Items.Clear()
16 17
         If NN1 <= 24 Then
@@ -25,13 +26,39 @@
25 26
             For I As Integer = F5 To F6 : ListBox3.Items.Add(PPBB(I)) : Next : For I As Integer = F7 To F8 : ListBox4.Items.Add(PPBB(I)) : Next
26 27
         End If
27 28
     End Sub
29
+    Private Sub 最前頁_bt_Click(sender As Object, e As EventArgs) Handles 最前頁_bt.Click
30
+        ListBox1.Items.Clear() : ListBox2.Items.Clear() : ListBox3.Items.Clear() : ListBox4.Items.Clear()
31
+        F1 -= (100 * (頁數 - 1)) : F2 -= (100 * (頁數 - 1)) : F3 -= (100 * (頁數 - 1)) : F4 -= (100 * (頁數 - 1)) : F5 -= (100 * (頁數 - 1))
32
+        F6 -= (100 * (頁數 - 1)) : F7 -= (100 * (頁數 - 1)) : F8 -= (100 * (頁數 - 1))
33
+        上一頁_bt.Enabled = False : 下一頁_bt.Enabled = True : 最前頁_bt.Enabled = False : 最末頁_bt.Enabled = True
34
+        For I As Integer = F1 To F2 : ListBox1.Items.Add(PPBB(I)) : Next : For I As Integer = F3 To F4 : ListBox2.Items.Add(PPBB(I)) : Next
35
+        For I As Integer = F5 To F6 : ListBox3.Items.Add(PPBB(I)) : Next : For I As Integer = F7 To F8 : ListBox4.Items.Add(PPBB(I)) : Next
36
+        頁數 = 1
37
+    End Sub
38
+    Private Sub 最末頁_bt_Click(sender As Object, e As EventArgs) Handles 最末頁_bt.Click
39
+        ListBox1.Items.Clear() : ListBox2.Items.Clear() : ListBox3.Items.Clear() : ListBox4.Items.Clear()
40
+        F1 += (100 * (總頁數 - 頁數)) : F2 += (100 * (總頁數 - 頁數)) : F3 += (100 * (總頁數 - 頁數)) : F4 += (100 * (總頁數 - 頁數)) : F5 += (100 * (總頁數 - 頁數))
41
+        F6 += (100 * (總頁數 - 頁數)) : F7 += (100 * (總頁數 - 頁數)) : F8 += (100 * (總頁數 - 頁數))
42
+        上一頁_bt.Enabled = True : 下一頁_bt.Enabled = False : 最前頁_bt.Enabled = True : 最末頁_bt.Enabled = False
43
+        If NN1 <= F2 Then
44
+            For I As Integer = F1 To NN1 : ListBox1.Items.Add(PPBB(I)) : Next
45
+        ElseIf NN1 <= F4 Then
46
+            For I As Integer = F1 To F2 : ListBox1.Items.Add(PPBB(I)) : Next : For I As Integer = F3 To NN1 : ListBox2.Items.Add(PPBB(I)) : Next
47
+        ElseIf NN1 <= F6 Then
48
+            For I As Integer = F1 To F2 : ListBox1.Items.Add(PPBB(I)) : Next : For I As Integer = F3 To F4 : ListBox2.Items.Add(PPBB(I)) : Next
49
+            For I As Integer = F5 To NN1 : ListBox3.Items.Add(PPBB(I)) : Next
50
+        ElseIf NN1 <= F8 Then
51
+            For I As Integer = F1 To F2 : ListBox1.Items.Add(PPBB(I)) : Next : For I As Integer = F3 To F4 : ListBox2.Items.Add(PPBB(I)) : Next
52
+            For I As Integer = F5 To F6 : ListBox3.Items.Add(PPBB(I)) : Next : For I As Integer = F7 To NN1 : ListBox4.Items.Add(PPBB(I)) : Next
53
+        End If : 頁數 = 總頁數
54
+    End Sub
28 55
     Private Sub 上一頁_bt_Click(sender As Object, e As EventArgs) Handles 上一頁_bt.Click
29 56
         頁數 -= 1 : ListBox1.Items.Clear() : ListBox2.Items.Clear() : ListBox3.Items.Clear() : ListBox4.Items.Clear()
30 57
         F1 -= 100 : F2 -= 100 : F3 -= 100 : F4 -= 100 : F5 -= 100 : F6 -= 100 : F7 -= 100 : F8 -= 100
31 58
         If 頁數 = 1 Then
32
-            上一頁_bt.Enabled = False : 下一頁_bt.Enabled = True
59
+            上一頁_bt.Enabled = False : 下一頁_bt.Enabled = True : 最前頁_bt.Enabled = False : 最末頁_bt.Enabled = True
33 60
         ElseIf 頁數 > 1 Then
34
-            上一頁_bt.Enabled = True : 下一頁_bt.Enabled = True
61
+            上一頁_bt.Enabled = True : 下一頁_bt.Enabled = True : 最前頁_bt.Enabled = True : 最末頁_bt.Enabled = True
35 62
         End If
36 63
         For I As Integer = F1 To F2 : ListBox1.Items.Add(PPBB(I)) : Next : For I As Integer = F3 To F4 : ListBox2.Items.Add(PPBB(I)) : Next
37 64
         For I As Integer = F5 To F6 : ListBox3.Items.Add(PPBB(I)) : Next : For I As Integer = F7 To F8 : ListBox4.Items.Add(PPBB(I)) : Next
@@ -40,11 +67,11 @@
40 67
         頁數 += 1 : ListBox1.Items.Clear() : ListBox2.Items.Clear() : ListBox3.Items.Clear() : ListBox4.Items.Clear()
41 68
         F1 += 100 : F2 += 100 : F3 += 100 : F4 += 100 : F5 += 100 : F6 += 100 : F7 += 100 : F8 += 100
42 69
         If 頁數 < 總頁數 Then
43
-            上一頁_bt.Enabled = True : 下一頁_bt.Enabled = True
70
+            上一頁_bt.Enabled = True : 下一頁_bt.Enabled = True : 最前頁_bt.Enabled = True : 最末頁_bt.Enabled = True
44 71
             For I As Integer = F1 To F2 : ListBox1.Items.Add(PPBB(I)) : Next : For I As Integer = F3 To F4 : ListBox2.Items.Add(PPBB(I)) : Next
45 72
             For I As Integer = F5 To F6 : ListBox3.Items.Add(PPBB(I)) : Next : For I As Integer = F7 To F8 : ListBox4.Items.Add(PPBB(I)) : Next
46 73
         ElseIf 頁數 = 總頁數 Then
47
-            上一頁_bt.Enabled = True : 下一頁_bt.Enabled = False
74
+            上一頁_bt.Enabled = True : 下一頁_bt.Enabled = False : 最前頁_bt.Enabled = True : 最末頁_bt.Enabled = False
48 75
             If NN1 <= F2 Then
49 76
                 For I As Integer = F1 To NN1 : ListBox1.Items.Add(PPBB(I)) : Next
50 77
             ElseIf NN1 <= F4 Then

+ 3
- 3
TENDEN-MES-SYS/量產訂單管理/量產訂單系統/訂單資料匯入_力威.vb Bestand weergeven

@@ -840,11 +840,11 @@ Public Class 訂單資料匯入_力威
840 840
                 Set_日期格式轉換()
841 841
 
842 842
                 ConnOpen()
843
-                SQL1 = "SELECT 客戶名稱 FROM 客戶資料 WHERE 客戶名稱 LIKE N'" & Brand_cb.Text & "'"
843
+                SQL1 = "SELECT 客戶名稱 FROM 客戶資料 WHERE 客戶名稱 LIKE N'" & Brand_cb.Text.Replace("'", "") & "'"
844 844
                 CmdSet_For_dr()
845 845
                 If dr.Read() Then : Else
846 846
                     ConnOpen()
847
-                    SQL1 = "INSERT INTO 客戶資料 (客戶名稱) VALUES (N'" & Brand_cb.Text & "')"
847
+                    SQL1 = "INSERT INTO 客戶資料 (客戶名稱) VALUES (N'" & Brand_cb.Text.Replace("'", "") & "')"
848 848
                     CmdSet_For_dr() : conn.Close()
849 849
                 End If : conn.Close()
850 850
                 '-------訂單抬頭--------------------------------------------------------------------------------------------------------------------------------------------------------------------
@@ -854,7 +854,7 @@ Public Class 訂單資料匯入_力威
854 854
                                                     代理編號, 訂貨代理, 總雙數, 總案件數, 公司, 工廠簡稱, 最終運送, 入單型態) 
855 855
                          VALUES ('" & 客戶訂單號_tb.Text & "','" & Number_tb.Text & "','" & 訂單類別_tb.Text & "','" & 英科條款_tb.Text & "','" & DTP & "','','','','" & 供應商編號_tb.Text & "',
856 856
                                  '" & 版本_tb.Text & "','" & 公司編號_tb.Text & "','" & DTP & "','" & 郵寄方式_tb.Text & "','" & 地址二_tb.Text & "','" & DTP & "','" & DTP & "','" & DTP & "',
857
-                                 '" & DTP1 & "','" & Brand_cb.Text & "','" & 力威訂單號_tb.Text & "','" & 工廠編號_tb.Text & "','" & 地址1_tb.Text & "','" & 代理編號_cb.Text & "',
857
+                                 '" & DTP1 & "','" & Brand_cb.Text.Replace("'", "") & "','" & 力威訂單號_tb.Text & "','" & 工廠編號_tb.Text & "','" & 地址1_tb.Text & "','" & 代理編號_cb.Text & "',
858 858
                                  '" & 訂貨代理_tb.Text & "','" & 總雙數_tb.Text & "','" & 總案件_tb.Text & "','" & 服務_tb.Text & "','" & FTY_cb.Text & "','" & 最終運送_tb.Text & "', '2')"
859 859
                 CmdSet_For_dr() : conn.Close()
860 860
                 '-------訂單控制表------------------------------------------------------------------------------------------------------------------------------------------------------------------

Laden…
Annuleren
Opslaan