Quellcode durchsuchen

版本號 : 2020072801

更新內容 : 新增客戶品牌ESSEGI 楦頭代號ES

Signed-off-by: B70340 <b70340@gmail.com>
B70340 vor 5 Jahren
Ursprung
Commit
268b2d4a7d

BIN
.vs/WINPROFIT-ERP-SYS/v16/.suo Datei anzeigen


+ 1
- 1
SHENKANG-MES-SYS/MyModule/全域變數.vb Datei anzeigen

@@ -9,7 +9,7 @@
9 9
                                  CC51, CC52, CC53, CC54, CC55, CC56, CC57, CC58, CC59, CC60, CC61, CC62, CC63, CC64, CC65, CC66, CC67, CC68, CC69, CC70, CC71, CC72, CC73, CC74, CC75, CC76, CC77, CC78, 
10 10
                                  CC79, CC80, CC81, CC82, CC83, CC84, CC85, CC86, CC87, CC88, CC89, CC90, CC91, CC92, CC93, CC94, CC95 FROM"
11 11
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
12
-    Public 版本 As String = "2020072201"
12
+    Public 版本 As String = "2020072801"
13 13
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
14 14
     Public PA As String = "" : Public PA1 As String = "" : Public PA2 As String = "" : Public PA3 As String = "" : Public PA4 As String = "" : Public PA5 As String = "" : Public PA6 As String = ""
15 15
     Public PA7 As String = "" : Public PA8 As String = "" : Public PA9 As String = "" : Public PA10 As String = "" : Public PA11 As String = "" : Public PA12 As String = "" : Public PA13 As String = ""

+ 1
- 1
SHENKANG-MES-SYS/bin/Debug/WINPROFIT-ERP-SYS.application Datei anzeigen

@@ -14,7 +14,7 @@
14 14
           <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
15 15
         </dsig:Transforms>
16 16
         <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
17
-        <dsig:DigestValue>iG9uqrG26rbd7WcHjUEQxxnl+ENKzjvczZxe+tS3DOY=</dsig:DigestValue>
17
+        <dsig:DigestValue>zcNXyhhclkrgzbVg1ptEu51Fl8xARQS2WdILd6Y6CDY=</dsig:DigestValue>
18 18
       </hash>
19 19
     </dependentAssembly>
20 20
   </dependency>

BIN
SHENKANG-MES-SYS/bin/Debug/WINPROFIT-ERP-SYS.exe Datei anzeigen


+ 2
- 2
SHENKANG-MES-SYS/bin/Debug/WINPROFIT-ERP-SYS.exe.manifest Datei anzeigen

@@ -43,14 +43,14 @@
43 43
     </dependentAssembly>
44 44
   </dependency>
45 45
   <dependency>
46
-    <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="WINPROFIT-ERP-SYS.exe" size="5374904">
46
+    <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="WINPROFIT-ERP-SYS.exe" size="5432248">
47 47
       <assemblyIdentity name="WINPROFIT-ERP-SYS" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
48 48
       <hash>
49 49
         <dsig:Transforms>
50 50
           <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
51 51
         </dsig:Transforms>
52 52
         <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
53
-        <dsig:DigestValue>YrO0pC4m3tjz/kzUdyfsDbajTTjFR/g6q7J5Jg8bV6Q=</dsig:DigestValue>
53
+        <dsig:DigestValue>bolivNGcSqs/CRX/AxTyekNv0HMXQJv/wi7CJLhK0Tg=</dsig:DigestValue>
54 54
       </hash>
55 55
     </dependentAssembly>
56 56
   </dependency>

BIN
SHENKANG-MES-SYS/bin/Debug/WINPROFIT-ERP-SYS.pdb Datei anzeigen


BIN
SHENKANG-MES-SYS/bin/Debug/app.publish/WINPROFIT-ERP-SYS.exe Datei anzeigen


BIN
SHENKANG-MES-SYS/obj/Debug/DesignTimeResolveAssemblyReferences.cache Datei anzeigen


+ 1
- 1
SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.application Datei anzeigen

@@ -14,7 +14,7 @@
14 14
           <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
15 15
         </dsig:Transforms>
16 16
         <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
17
-        <dsig:DigestValue>iG9uqrG26rbd7WcHjUEQxxnl+ENKzjvczZxe+tS3DOY=</dsig:DigestValue>
17
+        <dsig:DigestValue>zcNXyhhclkrgzbVg1ptEu51Fl8xARQS2WdILd6Y6CDY=</dsig:DigestValue>
18 18
       </hash>
19 19
     </dependentAssembly>
20 20
   </dependency>

BIN
SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.exe Datei anzeigen


+ 2
- 2
SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.exe.manifest Datei anzeigen

@@ -43,14 +43,14 @@
43 43
     </dependentAssembly>
44 44
   </dependency>
45 45
   <dependency>
46
-    <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="WINPROFIT-ERP-SYS.exe" size="5374904">
46
+    <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="WINPROFIT-ERP-SYS.exe" size="5432248">
47 47
       <assemblyIdentity name="WINPROFIT-ERP-SYS" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
48 48
       <hash>
49 49
         <dsig:Transforms>
50 50
           <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
51 51
         </dsig:Transforms>
52 52
         <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
53
-        <dsig:DigestValue>YrO0pC4m3tjz/kzUdyfsDbajTTjFR/g6q7J5Jg8bV6Q=</dsig:DigestValue>
53
+        <dsig:DigestValue>bolivNGcSqs/CRX/AxTyekNv0HMXQJv/wi7CJLhK0Tg=</dsig:DigestValue>
54 54
       </hash>
55 55
     </dependentAssembly>
56 56
   </dependency>

BIN
SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.pdb Datei anzeigen


BIN
SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.vbproj.GenerateResource.cache Datei anzeigen


BIN
SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.vbprojAssemblyReference.cache Datei anzeigen


+ 14
- 8
SHENKANG-MES-SYS/製鞋技術管理系統/楦頭規格表.vb Datei anzeigen

@@ -160,6 +160,13 @@ Public Class 楦頭規格表
160 160
         conn.Close()
161 161
         PA = ""
162 162
     End Sub
163
+    Private Sub ComboBox5下拉表單資料載入()
164
+        conn.Close()
165
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
166
+        SQL1 = "SELECT 縮寫 FROM 楦頭縮寫管理"
167
+        cmd.CommandText = SQL1 : cmd.Connection = conn : dr = cmd.ExecuteReader
168
+        ComboBox5.Items.Clear() : While (dr.Read()) : ComboBox5.Items.Add(dr("縮寫")) : End While : conn.Close() : PA = ""
169
+    End Sub
163 170
     Private Sub Set_日期格式轉換()
164 171
         DTP = Format(DateTimePicker1.Value, "yyyy/MM/dd")
165 172
     End Sub
@@ -167,8 +174,7 @@ Public Class 楦頭規格表
167 174
         Me.MdiParent = WINPROFIT_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
168 175
         PA = "" : GroupBox2.Visible = False : TextBox40.Enabled = False
169 176
         Set_楦頭規格表清單()
170
-        ComboBox1下拉表單資料載入()
171
-        ComboBox2下拉表單資料載入()
177
+        ComboBox1下拉表單資料載入() : ComboBox2下拉表單資料載入() : ComboBox5下拉表單資料載入()
172 178
         格式設定()
173 179
     End Sub
174 180
     Private Sub 楦頭規格表_Unload(sender As Object, e As EventArgs) Handles MyBase.Closing
@@ -438,12 +444,12 @@ Public Class 楦頭規格表
438 444
         TextBox39.Text = ""
439 445
         DateTimePicker1.Text = Today() : RadioButton1.Checked = False : RadioButton2.Checked = False : PictureBox1.Image = Nothing : PictureBox2.Image = Nothing
440 446
 
441
-        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
442
-        SQL1 = "SELECT TOP (1) 楦頭編號 FROM 楦頭規格控制表 ORDER BY 資料流水號 DESC"
443
-        cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
444
-        If dr.Read() Then : TextBox40.Text = Strings.Mid(dr("楦頭編號"), 3, 4).ToString : Else : TextBox40.Text = "2000" : End If
445
-        conn.Close()
446
-        TextBox40.Text = Val(TextBox40.Text) + 1
447
+        'If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
448
+        'SQL1 = "SELECT TOP (1) 楦頭編號 FROM 楦頭規格控制表 ORDER BY 資料流水號 DESC"
449
+        'cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
450
+        'If dr.Read() Then : TextBox40.Text = Strings.Mid(dr("楦頭編號"), 3, 4).ToString : Else : TextBox40.Text = "2000" : End If
451
+        'conn.Close()
452
+        'TextBox40.Text = Val(TextBox40.Text) + 1
447 453
 
448 454
         GroupBox2.Visible = True
449 455
         Button8.Enabled = False : Button9.Enabled = False : Button12.Enabled = False

+ 303
- 0
SHENKANG-MES-SYS/資料庫管理系統/系統編碼規則_1.Designer.vb Datei anzeigen

@@ -32,6 +32,9 @@ Partial Class 系統編碼規則_1
32 32
         Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33 33
         Dim DataGridViewCellStyle9 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34 34
         Dim DataGridViewCellStyle10 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
35
+        Dim DataGridViewCellStyle11 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
36
+        Dim DataGridViewCellStyle12 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
37
+        Dim DataGridViewCellStyle13 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
35 38
         Me.Label3 = New System.Windows.Forms.Label()
36 39
         Me.GroupBox3 = New System.Windows.Forms.GroupBox()
37 40
         Me.部件大項_dgv = New System.Windows.Forms.DataGridView()
@@ -105,6 +108,27 @@ Partial Class 系統編碼規則_1
105 108
         Me.帳本_新增_bt = New System.Windows.Forms.Button()
106 109
         Me.帳本_修改_bt = New System.Windows.Forms.Button()
107 110
         Me.帳本_dgv = New System.Windows.Forms.DataGridView()
111
+        Me.GroupBox11 = New System.Windows.Forms.GroupBox()
112
+        Me.縮寫_dgv = New System.Windows.Forms.DataGridView()
113
+        Me.Button28 = New System.Windows.Forms.Button()
114
+        Me.Label13 = New System.Windows.Forms.Label()
115
+        Me.Button29 = New System.Windows.Forms.Button()
116
+        Me.Button30 = New System.Windows.Forms.Button()
117
+        Me.TextBox10 = New System.Windows.Forms.TextBox()
118
+        Me.GroupBox12 = New System.Windows.Forms.GroupBox()
119
+        Me.客戶_dgv = New System.Windows.Forms.DataGridView()
120
+        Me.Button31 = New System.Windows.Forms.Button()
121
+        Me.Label14 = New System.Windows.Forms.Label()
122
+        Me.Button32 = New System.Windows.Forms.Button()
123
+        Me.Button33 = New System.Windows.Forms.Button()
124
+        Me.TextBox11 = New System.Windows.Forms.TextBox()
125
+        Me.GroupBox13 = New System.Windows.Forms.GroupBox()
126
+        Me.品牌_dgv = New System.Windows.Forms.DataGridView()
127
+        Me.Button34 = New System.Windows.Forms.Button()
128
+        Me.Label15 = New System.Windows.Forms.Label()
129
+        Me.Button35 = New System.Windows.Forms.Button()
130
+        Me.Button36 = New System.Windows.Forms.Button()
131
+        Me.TextBox12 = New System.Windows.Forms.TextBox()
108 132
         Me.GroupBox3.SuspendLayout()
109 133
         CType(Me.部件大項_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
110 134
         Me.GroupBox2.SuspendLayout()
@@ -125,6 +149,12 @@ Partial Class 系統編碼規則_1
125 149
         CType(Me.模具材料_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
126 150
         Me.GroupBox10.SuspendLayout()
127 151
         CType(Me.帳本_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
152
+        Me.GroupBox11.SuspendLayout()
153
+        CType(Me.縮寫_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
154
+        Me.GroupBox12.SuspendLayout()
155
+        CType(Me.客戶_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
156
+        Me.GroupBox13.SuspendLayout()
157
+        CType(Me.品牌_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
128 158
         Me.SuspendLayout()
129 159
         '
130 160
         'Label3
@@ -157,6 +187,7 @@ Partial Class 系統編碼規則_1
157 187
         '
158 188
         DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
159 189
         Me.部件大項_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
190
+        Me.部件大項_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
160 191
         Me.部件大項_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
161 192
         Me.部件大項_dgv.Location = New System.Drawing.Point(6, 141)
162 193
         Me.部件大項_dgv.Name = "部件大項_dgv"
@@ -233,6 +264,7 @@ Partial Class 系統編碼規則_1
233 264
         '
234 265
         DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
235 266
         Me.貼標大項_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
267
+        Me.貼標大項_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
236 268
         Me.貼標大項_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
237 269
         Me.貼標大項_dgv.Location = New System.Drawing.Point(6, 141)
238 270
         Me.貼標大項_dgv.Name = "貼標大項_dgv"
@@ -309,6 +341,7 @@ Partial Class 系統編碼規則_1
309 341
         '
310 342
         DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
311 343
         Me.DataGridView7.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
344
+        Me.DataGridView7.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
312 345
         Me.DataGridView7.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
313 346
         Me.DataGridView7.Location = New System.Drawing.Point(6, 141)
314 347
         Me.DataGridView7.Name = "DataGridView7"
@@ -385,6 +418,7 @@ Partial Class 系統編碼規則_1
385 418
         '
386 419
         DataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
387 420
         Me.部門_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4
421
+        Me.部門_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
388 422
         Me.部門_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
389 423
         Me.部門_dgv.Location = New System.Drawing.Point(6, 141)
390 424
         Me.部門_dgv.Name = "部門_dgv"
@@ -461,6 +495,7 @@ Partial Class 系統編碼規則_1
461 495
         '
462 496
         DataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
463 497
         Me.職稱_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
498
+        Me.職稱_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
464 499
         Me.職稱_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
465 500
         Me.職稱_dgv.Location = New System.Drawing.Point(6, 141)
466 501
         Me.職稱_dgv.Name = "職稱_dgv"
@@ -537,6 +572,7 @@ Partial Class 系統編碼規則_1
537 572
         '
538 573
         DataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
539 574
         Me.請假類別_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle6
575
+        Me.請假類別_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
540 576
         Me.請假類別_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
541 577
         Me.請假類別_dgv.Location = New System.Drawing.Point(6, 141)
542 578
         Me.請假類別_dgv.Name = "請假類別_dgv"
@@ -613,6 +649,7 @@ Partial Class 系統編碼規則_1
613 649
         '
614 650
         DataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
615 651
         Me.DataGridView6.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle7
652
+        Me.DataGridView6.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
616 653
         Me.DataGridView6.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
617 654
         Me.DataGridView6.Location = New System.Drawing.Point(6, 141)
618 655
         Me.DataGridView6.Name = "DataGridView6"
@@ -689,6 +726,7 @@ Partial Class 系統編碼規則_1
689 726
         '
690 727
         DataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
691 728
         Me.模具結構_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle8
729
+        Me.模具結構_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
692 730
         Me.模具結構_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
693 731
         Me.模具結構_dgv.Location = New System.Drawing.Point(6, 141)
694 732
         Me.模具結構_dgv.Name = "模具結構_dgv"
@@ -765,6 +803,7 @@ Partial Class 系統編碼規則_1
765 803
         '
766 804
         DataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
767 805
         Me.模具材料_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle9
806
+        Me.模具材料_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
768 807
         Me.模具材料_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
769 808
         Me.模具材料_dgv.Location = New System.Drawing.Point(6, 141)
770 809
         Me.模具材料_dgv.Name = "模具材料_dgv"
@@ -917,11 +956,245 @@ Partial Class 系統編碼規則_1
917 956
         Me.帳本_dgv.Size = New System.Drawing.Size(224, 376)
918 957
         Me.帳本_dgv.TabIndex = 663
919 958
         '
959
+        'GroupBox11
960
+        '
961
+        Me.GroupBox11.Controls.Add(Me.縮寫_dgv)
962
+        Me.GroupBox11.Controls.Add(Me.Button28)
963
+        Me.GroupBox11.Controls.Add(Me.Label13)
964
+        Me.GroupBox11.Controls.Add(Me.Button29)
965
+        Me.GroupBox11.Controls.Add(Me.Button30)
966
+        Me.GroupBox11.Controls.Add(Me.TextBox10)
967
+        Me.GroupBox11.Location = New System.Drawing.Point(612, 507)
968
+        Me.GroupBox11.Name = "GroupBox11"
969
+        Me.GroupBox11.Size = New System.Drawing.Size(144, 462)
970
+        Me.GroupBox11.TabIndex = 255
971
+        Me.GroupBox11.TabStop = False
972
+        Me.GroupBox11.Text = "楦頭縮寫管理"
973
+        '
974
+        '縮寫_dgv
975
+        '
976
+        DataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
977
+        Me.縮寫_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle11
978
+        Me.縮寫_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
979
+        Me.縮寫_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
980
+        Me.縮寫_dgv.Location = New System.Drawing.Point(6, 141)
981
+        Me.縮寫_dgv.Name = "縮寫_dgv"
982
+        Me.縮寫_dgv.RowHeadersWidth = 5
983
+        Me.縮寫_dgv.RowTemplate.Height = 24
984
+        Me.縮寫_dgv.Size = New System.Drawing.Size(125, 311)
985
+        Me.縮寫_dgv.TabIndex = 222
986
+        '
987
+        'Button28
988
+        '
989
+        Me.Button28.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
990
+        Me.Button28.ForeColor = System.Drawing.Color.DarkGreen
991
+        Me.Button28.Location = New System.Drawing.Point(9, 79)
992
+        Me.Button28.Name = "Button28"
993
+        Me.Button28.Size = New System.Drawing.Size(122, 25)
994
+        Me.Button28.TabIndex = 224
995
+        Me.Button28.Text = "修改"
996
+        Me.Button28.UseVisualStyleBackColor = True
997
+        '
998
+        'Label13
999
+        '
1000
+        Me.Label13.AutoSize = True
1001
+        Me.Label13.Location = New System.Drawing.Point(6, 22)
1002
+        Me.Label13.Name = "Label13"
1003
+        Me.Label13.Size = New System.Drawing.Size(32, 16)
1004
+        Me.Label13.TabIndex = 229
1005
+        Me.Label13.Text = "縮寫"
1006
+        '
1007
+        'Button29
1008
+        '
1009
+        Me.Button29.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1010
+        Me.Button29.ForeColor = System.Drawing.Color.Blue
1011
+        Me.Button29.Location = New System.Drawing.Point(9, 48)
1012
+        Me.Button29.Name = "Button29"
1013
+        Me.Button29.Size = New System.Drawing.Size(122, 25)
1014
+        Me.Button29.TabIndex = 223
1015
+        Me.Button29.Text = "新增"
1016
+        Me.Button29.UseVisualStyleBackColor = True
1017
+        '
1018
+        'Button30
1019
+        '
1020
+        Me.Button30.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1021
+        Me.Button30.ForeColor = System.Drawing.Color.Red
1022
+        Me.Button30.Location = New System.Drawing.Point(9, 110)
1023
+        Me.Button30.Name = "Button30"
1024
+        Me.Button30.Size = New System.Drawing.Size(122, 25)
1025
+        Me.Button30.TabIndex = 225
1026
+        Me.Button30.Text = "刪除"
1027
+        Me.Button30.UseVisualStyleBackColor = True
1028
+        '
1029
+        'TextBox10
1030
+        '
1031
+        Me.TextBox10.Location = New System.Drawing.Point(44, 19)
1032
+        Me.TextBox10.Name = "TextBox10"
1033
+        Me.TextBox10.Size = New System.Drawing.Size(87, 23)
1034
+        Me.TextBox10.TabIndex = 227
1035
+        '
1036
+        'GroupBox12
1037
+        '
1038
+        Me.GroupBox12.Controls.Add(Me.客戶_dgv)
1039
+        Me.GroupBox12.Controls.Add(Me.Button31)
1040
+        Me.GroupBox12.Controls.Add(Me.Label14)
1041
+        Me.GroupBox12.Controls.Add(Me.Button32)
1042
+        Me.GroupBox12.Controls.Add(Me.Button33)
1043
+        Me.GroupBox12.Controls.Add(Me.TextBox11)
1044
+        Me.GroupBox12.Location = New System.Drawing.Point(1006, 39)
1045
+        Me.GroupBox12.Name = "GroupBox12"
1046
+        Me.GroupBox12.Size = New System.Drawing.Size(238, 462)
1047
+        Me.GroupBox12.TabIndex = 256
1048
+        Me.GroupBox12.TabStop = False
1049
+        Me.GroupBox12.Text = "客戶清單"
1050
+        '
1051
+        '客戶_dgv
1052
+        '
1053
+        DataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
1054
+        Me.客戶_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle12
1055
+        Me.客戶_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
1056
+        Me.客戶_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
1057
+        Me.客戶_dgv.Location = New System.Drawing.Point(6, 141)
1058
+        Me.客戶_dgv.Name = "客戶_dgv"
1059
+        Me.客戶_dgv.RowHeadersWidth = 5
1060
+        Me.客戶_dgv.RowTemplate.Height = 24
1061
+        Me.客戶_dgv.Size = New System.Drawing.Size(226, 311)
1062
+        Me.客戶_dgv.TabIndex = 222
1063
+        '
1064
+        'Button31
1065
+        '
1066
+        Me.Button31.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1067
+        Me.Button31.ForeColor = System.Drawing.Color.DarkGreen
1068
+        Me.Button31.Location = New System.Drawing.Point(9, 79)
1069
+        Me.Button31.Name = "Button31"
1070
+        Me.Button31.Size = New System.Drawing.Size(223, 25)
1071
+        Me.Button31.TabIndex = 224
1072
+        Me.Button31.Text = "修改"
1073
+        Me.Button31.UseVisualStyleBackColor = True
1074
+        '
1075
+        'Label14
1076
+        '
1077
+        Me.Label14.AutoSize = True
1078
+        Me.Label14.Location = New System.Drawing.Point(6, 22)
1079
+        Me.Label14.Name = "Label14"
1080
+        Me.Label14.Size = New System.Drawing.Size(32, 16)
1081
+        Me.Label14.TabIndex = 229
1082
+        Me.Label14.Text = "客戶"
1083
+        '
1084
+        'Button32
1085
+        '
1086
+        Me.Button32.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1087
+        Me.Button32.ForeColor = System.Drawing.Color.Blue
1088
+        Me.Button32.Location = New System.Drawing.Point(9, 48)
1089
+        Me.Button32.Name = "Button32"
1090
+        Me.Button32.Size = New System.Drawing.Size(223, 25)
1091
+        Me.Button32.TabIndex = 223
1092
+        Me.Button32.Text = "新增"
1093
+        Me.Button32.UseVisualStyleBackColor = True
1094
+        '
1095
+        'Button33
1096
+        '
1097
+        Me.Button33.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1098
+        Me.Button33.ForeColor = System.Drawing.Color.Red
1099
+        Me.Button33.Location = New System.Drawing.Point(9, 110)
1100
+        Me.Button33.Name = "Button33"
1101
+        Me.Button33.Size = New System.Drawing.Size(223, 25)
1102
+        Me.Button33.TabIndex = 225
1103
+        Me.Button33.Text = "刪除"
1104
+        Me.Button33.UseVisualStyleBackColor = True
1105
+        '
1106
+        'TextBox11
1107
+        '
1108
+        Me.TextBox11.Location = New System.Drawing.Point(44, 19)
1109
+        Me.TextBox11.Name = "TextBox11"
1110
+        Me.TextBox11.Size = New System.Drawing.Size(188, 23)
1111
+        Me.TextBox11.TabIndex = 227
1112
+        '
1113
+        'GroupBox13
1114
+        '
1115
+        Me.GroupBox13.Controls.Add(Me.品牌_dgv)
1116
+        Me.GroupBox13.Controls.Add(Me.Button34)
1117
+        Me.GroupBox13.Controls.Add(Me.Label15)
1118
+        Me.GroupBox13.Controls.Add(Me.Button35)
1119
+        Me.GroupBox13.Controls.Add(Me.Button36)
1120
+        Me.GroupBox13.Controls.Add(Me.TextBox12)
1121
+        Me.GroupBox13.Location = New System.Drawing.Point(1250, 39)
1122
+        Me.GroupBox13.Name = "GroupBox13"
1123
+        Me.GroupBox13.Size = New System.Drawing.Size(238, 462)
1124
+        Me.GroupBox13.TabIndex = 257
1125
+        Me.GroupBox13.TabStop = False
1126
+        Me.GroupBox13.Text = "品牌"
1127
+        '
1128
+        '品牌_dgv
1129
+        '
1130
+        DataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
1131
+        Me.品牌_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle13
1132
+        Me.品牌_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
1133
+        Me.品牌_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
1134
+        Me.品牌_dgv.Location = New System.Drawing.Point(6, 141)
1135
+        Me.品牌_dgv.Name = "品牌_dgv"
1136
+        Me.品牌_dgv.RowHeadersWidth = 5
1137
+        Me.品牌_dgv.RowTemplate.Height = 24
1138
+        Me.品牌_dgv.Size = New System.Drawing.Size(226, 311)
1139
+        Me.品牌_dgv.TabIndex = 222
1140
+        '
1141
+        'Button34
1142
+        '
1143
+        Me.Button34.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1144
+        Me.Button34.ForeColor = System.Drawing.Color.DarkGreen
1145
+        Me.Button34.Location = New System.Drawing.Point(9, 79)
1146
+        Me.Button34.Name = "Button34"
1147
+        Me.Button34.Size = New System.Drawing.Size(223, 25)
1148
+        Me.Button34.TabIndex = 224
1149
+        Me.Button34.Text = "修改"
1150
+        Me.Button34.UseVisualStyleBackColor = True
1151
+        '
1152
+        'Label15
1153
+        '
1154
+        Me.Label15.AutoSize = True
1155
+        Me.Label15.Location = New System.Drawing.Point(6, 22)
1156
+        Me.Label15.Name = "Label15"
1157
+        Me.Label15.Size = New System.Drawing.Size(56, 16)
1158
+        Me.Label15.TabIndex = 229
1159
+        Me.Label15.Text = "品牌清單"
1160
+        '
1161
+        'Button35
1162
+        '
1163
+        Me.Button35.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1164
+        Me.Button35.ForeColor = System.Drawing.Color.Blue
1165
+        Me.Button35.Location = New System.Drawing.Point(9, 48)
1166
+        Me.Button35.Name = "Button35"
1167
+        Me.Button35.Size = New System.Drawing.Size(223, 25)
1168
+        Me.Button35.TabIndex = 223
1169
+        Me.Button35.Text = "新增"
1170
+        Me.Button35.UseVisualStyleBackColor = True
1171
+        '
1172
+        'Button36
1173
+        '
1174
+        Me.Button36.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1175
+        Me.Button36.ForeColor = System.Drawing.Color.Red
1176
+        Me.Button36.Location = New System.Drawing.Point(9, 110)
1177
+        Me.Button36.Name = "Button36"
1178
+        Me.Button36.Size = New System.Drawing.Size(223, 25)
1179
+        Me.Button36.TabIndex = 225
1180
+        Me.Button36.Text = "刪除"
1181
+        Me.Button36.UseVisualStyleBackColor = True
1182
+        '
1183
+        'TextBox12
1184
+        '
1185
+        Me.TextBox12.Location = New System.Drawing.Point(62, 19)
1186
+        Me.TextBox12.Name = "TextBox12"
1187
+        Me.TextBox12.Size = New System.Drawing.Size(170, 23)
1188
+        Me.TextBox12.TabIndex = 227
1189
+        '
920 1190
         '系統編碼規則_1
921 1191
         '
922 1192
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
923 1193
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
924 1194
         Me.ClientSize = New System.Drawing.Size(1914, 971)
1195
+        Me.Controls.Add(Me.GroupBox13)
1196
+        Me.Controls.Add(Me.GroupBox12)
1197
+        Me.Controls.Add(Me.GroupBox11)
925 1198
         Me.Controls.Add(Me.GroupBox10)
926 1199
         Me.Controls.Add(Me.GroupBox9)
927 1200
         Me.Controls.Add(Me.GroupBox8)
@@ -967,6 +1240,15 @@ Partial Class 系統編碼規則_1
967 1240
         Me.GroupBox10.ResumeLayout(False)
968 1241
         Me.GroupBox10.PerformLayout()
969 1242
         CType(Me.帳本_dgv, System.ComponentModel.ISupportInitialize).EndInit()
1243
+        Me.GroupBox11.ResumeLayout(False)
1244
+        Me.GroupBox11.PerformLayout()
1245
+        CType(Me.縮寫_dgv, System.ComponentModel.ISupportInitialize).EndInit()
1246
+        Me.GroupBox12.ResumeLayout(False)
1247
+        Me.GroupBox12.PerformLayout()
1248
+        CType(Me.客戶_dgv, System.ComponentModel.ISupportInitialize).EndInit()
1249
+        Me.GroupBox13.ResumeLayout(False)
1250
+        Me.GroupBox13.PerformLayout()
1251
+        CType(Me.品牌_dgv, System.ComponentModel.ISupportInitialize).EndInit()
970 1252
         Me.ResumeLayout(False)
971 1253
         Me.PerformLayout()
972 1254
 
@@ -1045,4 +1327,25 @@ Partial Class 系統編碼規則_1
1045 1327
     Friend WithEvents 帳本_新增_bt As Button
1046 1328
     Friend WithEvents 帳本_修改_bt As Button
1047 1329
     Friend WithEvents 帳本_dgv As DataGridView
1330
+    Friend WithEvents GroupBox11 As GroupBox
1331
+    Friend WithEvents 縮寫_dgv As DataGridView
1332
+    Friend WithEvents Button28 As Button
1333
+    Friend WithEvents Label13 As Label
1334
+    Friend WithEvents Button29 As Button
1335
+    Friend WithEvents Button30 As Button
1336
+    Friend WithEvents TextBox10 As TextBox
1337
+    Friend WithEvents GroupBox12 As GroupBox
1338
+    Friend WithEvents 客戶_dgv As DataGridView
1339
+    Friend WithEvents Button31 As Button
1340
+    Friend WithEvents Label14 As Label
1341
+    Friend WithEvents Button32 As Button
1342
+    Friend WithEvents Button33 As Button
1343
+    Friend WithEvents TextBox11 As TextBox
1344
+    Friend WithEvents GroupBox13 As GroupBox
1345
+    Friend WithEvents 品牌_dgv As DataGridView
1346
+    Friend WithEvents Button34 As Button
1347
+    Friend WithEvents Label15 As Label
1348
+    Friend WithEvents Button35 As Button
1349
+    Friend WithEvents Button36 As Button
1350
+    Friend WithEvents TextBox12 As TextBox
1048 1351
 End Class

+ 143
- 14
SHENKANG-MES-SYS/資料庫管理系統/系統編碼規則_1.vb Datei anzeigen

@@ -1,9 +1,39 @@
1 1
 Option Strict Off
2
-Imports System.Data.SqlClient
3 2
 Public Class 系統編碼規則_1
4 3
     ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet : ReadOnly ds3 As New DataSet : ReadOnly ds4 As New DataSet : ReadOnly ds5 As New DataSet
5
-    ReadOnly ds6 As New DataSet : ReadOnly ds7 As New DataSet : ReadOnly ds8 As New DataSet : ReadOnly ds9 As New DataSet
4
+    ReadOnly ds6 As New DataSet : ReadOnly ds7 As New DataSet : ReadOnly ds8 As New DataSet : ReadOnly ds9 As New DataSet : ReadOnly ds10 As New DataSet : ReadOnly ds11 As New DataSet
5
+    ReadOnly ds12 As New DataSet
6 6
     Dim EDR As Integer = 0 : Dim ESTR As String
7
+    Private Sub Set_客戶清單()
8
+        客戶_dgv.DataSource = Nothing : ds11.Clear()
9
+        客戶_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
10
+        客戶_dgv.ColumnHeadersHeight = 25
11
+        客戶_dgv.AllowUserToAddRows = False
12
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
13
+        SQL1 = "SELECT 客戶簡稱 FROM 客戶控制表 ORDER BY 客戶簡稱"
14
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds11) : 客戶_dgv.DataSource = ds11.Tables(0) : conn.Close()
15
+        客戶_dgv.Columns(0).FillWeight = 100
16
+    End Sub
17
+    Private Sub Set_品牌清單()
18
+        品牌_dgv.DataSource = Nothing : ds12.Clear()
19
+        品牌_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
20
+        品牌_dgv.ColumnHeadersHeight = 25
21
+        品牌_dgv.AllowUserToAddRows = False
22
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
23
+        SQL1 = "SELECT CUST FROM MTTOOCUST清單 ORDER BY CUST "
24
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds12) : 品牌_dgv.DataSource = ds12.Tables(0) : conn.Close()
25
+        品牌_dgv.Columns(0).FillWeight = 100
26
+    End Sub
27
+    Private Sub Set_縮寫清單()
28
+        縮寫_dgv.DataSource = Nothing : ds10.Clear()
29
+        縮寫_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
30
+        縮寫_dgv.ColumnHeadersHeight = 25
31
+        縮寫_dgv.AllowUserToAddRows = False
32
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
33
+        SQL1 = "SELECT 縮寫 FROM 楦頭縮寫管理"
34
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds10) : 縮寫_dgv.DataSource = ds10.Tables(0) : conn.Close()
35
+        縮寫_dgv.Columns(0).FillWeight = 100
36
+    End Sub
7 37
     Private Sub Set_帳本清單()
8 38
         帳本_dgv.DataSource = Nothing : ds9.Clear()
9 39
         帳本_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
@@ -12,7 +42,7 @@ Public Class 系統編碼規則_1
12 42
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
13 43
         SQL1 = "SELECT 編號, 帳本名稱 FROM 財務帳本編號 ORDER BY 編號"
14 44
         cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds9) : 帳本_dgv.DataSource = ds9.Tables(0) : conn.Close()
15
-        帳本_dgv.Columns(0).Width = 100 : 帳本_dgv.Columns(1).Width = 100
45
+        帳本_dgv.Columns(0).FillWeight = 100 : 帳本_dgv.Columns(1).FillWeight = 100
16 46
     End Sub
17 47
     Private Sub Set_部門清單()
18 48
         部門_dgv.DataSource = Nothing : ds.Clear()
@@ -22,7 +52,7 @@ Public Class 系統編碼規則_1
22 52
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
23 53
         SQL1 = "SELECT 部門 FROM METOO部門清單"
24 54
         cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds) : 部門_dgv.DataSource = ds.Tables(0) : conn.Close()
25
-        部門_dgv.Columns(0).Width = 100
55
+        部門_dgv.Columns(0).FillWeight = 100
26 56
     End Sub
27 57
     Private Sub Set_清單2()
28 58
         貼標大項_dgv.DataSource = Nothing : ds1.Clear()
@@ -32,7 +62,7 @@ Public Class 系統編碼規則_1
32 62
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
33 63
         SQL1 = "SELECT 貼標對應名稱 FROM 貼標對應名稱清單"
34 64
         cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds1) : 貼標大項_dgv.DataSource = ds1.Tables(0) : conn.Close()
35
-        貼標大項_dgv.Columns(0).Width = 100
65
+        貼標大項_dgv.Columns(0).FillWeight = 100
36 66
     End Sub
37 67
     Private Sub Set_清單1()
38 68
         部件大項_dgv.DataSource = Nothing : ds2.Clear()
@@ -42,7 +72,7 @@ Public Class 系統編碼規則_1
42 72
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
43 73
         SQL1 = "SELECT 部件類別 FROM 部件大項分類 ORDER BY   部件類別"
44 74
         cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds2) : 部件大項_dgv.DataSource = ds2.Tables(0) : conn.Close()
45
-        部件大項_dgv.Columns(0).Width = 100
75
+        部件大項_dgv.Columns(0).FillWeight = 100
46 76
     End Sub
47 77
     Private Sub Set_職稱清單()
48 78
         職稱_dgv.DataSource = Nothing : ds3.Clear()
@@ -52,7 +82,7 @@ Public Class 系統編碼規則_1
52 82
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
53 83
         SQL1 = "SELECT 職稱 FROM METOO職稱清單 ORDER BY 職稱"
54 84
         cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds3) : 職稱_dgv.DataSource = ds3.Tables(0) : conn.Close()
55
-        職稱_dgv.Columns(0).Width = 100
85
+        職稱_dgv.Columns(0).FillWeight = 100
56 86
     End Sub
57 87
     Private Sub Set_請假類別清單()
58 88
         請假類別_dgv.DataSource = Nothing : ds4.Clear()
@@ -62,7 +92,7 @@ Public Class 系統編碼規則_1
62 92
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
63 93
         SQL1 = "SELECT 請假類別 FROM METOO請假類別 ORDER BY 請假類別"
64 94
         cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds4) : 請假類別_dgv.DataSource = ds4.Tables(0) : conn.Close()
65
-        請假類別_dgv.Columns(0).Width = 100
95
+        請假類別_dgv.Columns(0).FillWeight = 100
66 96
     End Sub
67 97
     Private Sub Set_廠商類別()
68 98
         DataGridView6.DataSource = Nothing : ds5.Clear()
@@ -72,7 +102,7 @@ Public Class 系統編碼規則_1
72 102
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
73 103
         SQL1 = "SELECT 廠商類別 FROM 廠商類別 ORDER BY 廠商類別"
74 104
         cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds5) : DataGridView6.DataSource = ds5.Tables(0) : conn.Close()
75
-        DataGridView6.Columns(0).Width = 100
105
+        DataGridView6.Columns(0).FillWeight = 100
76 106
     End Sub
77 107
     Private Sub Set_年度清單()
78 108
         DataGridView7.DataSource = Nothing : ds6.Clear()
@@ -82,7 +112,7 @@ Public Class 系統編碼規則_1
82 112
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
83 113
         SQL1 = "SELECT  年份 FROM 年份清單 ORDER BY 年份 DESC"
84 114
         cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds6) : DataGridView7.DataSource = ds6.Tables(0) : conn.Close()
85
-        DataGridView7.Columns(0).Width = 100
115
+        DataGridView7.Columns(0).FillWeight = 100
86 116
     End Sub
87 117
     Private Sub Set_模具開發用結構清單()
88 118
         模具結構_dgv.DataSource = Nothing : ds7.Clear()
@@ -92,7 +122,7 @@ Public Class 系統編碼規則_1
92 122
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
93 123
         SQL1 = "SELECT  結構 FROM 模具開發用結構清單 ORDER BY 結構"
94 124
         cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds7) : 模具結構_dgv.DataSource = ds7.Tables(0) : conn.Close()
95
-        模具結構_dgv.Columns(0).Width = 100
125
+        模具結構_dgv.Columns(0).FillWeight = 100
96 126
     End Sub
97 127
     Private Sub Set_模具開發用材質清單()
98 128
         模具材料_dgv.DataSource = Nothing : ds8.Clear()
@@ -102,12 +132,27 @@ Public Class 系統編碼規則_1
102 132
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
103 133
         SQL1 = "SELECT  材質 FROM 模具開發用材質清單 ORDER BY 材質"
104 134
         cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds8) : 模具材料_dgv.DataSource = ds8.Tables(0) : conn.Close()
105
-        模具材料_dgv.Columns(0).Width = 100
135
+        模具材料_dgv.Columns(0).FillWeight = 100
106 136
     End Sub
107 137
     Private Sub 系統編碼規則_1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
108 138
         Me.MdiParent = WINPROFIT_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
109 139
         Set_清單1() : Set_清單2() : Set_年度清單() : Set_部門清單() : Set_職稱清單() : Set_請假類別清單() : Set_廠商類別()
110
-        Set_模具開發用結構清單() : Set_模具開發用材質清單() : Set_帳本清單()
140
+        Set_模具開發用結構清單() : Set_模具開發用材質清單() : Set_帳本清單() : Set_縮寫清單() : Set_客戶清單() : Set_品牌清單()
141
+    End Sub
142
+    Private Sub 客戶_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 客戶_dgv.CellClick
143
+        If e.RowIndex = -1 Then : Else
144
+            TextBox11.Text = 客戶_dgv(0, e.RowIndex).Value.ToString
145
+        End If
146
+    End Sub
147
+    Private Sub 品牌_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 品牌_dgv.CellClick
148
+        If e.RowIndex = -1 Then : Else
149
+            TextBox12.Text = 品牌_dgv(0, e.RowIndex).Value.ToString
150
+        End If
151
+    End Sub
152
+    Private Sub 縮寫_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 縮寫_dgv.CellClick
153
+        If e.RowIndex = -1 Then : Else
154
+            TextBox10.Text = 縮寫_dgv(0, e.RowIndex).Value.ToString
155
+        End If
111 156
     End Sub
112 157
     Private Sub 帳本_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 帳本_dgv.CellClick
113 158
         If e.RowIndex = -1 Then : Else
@@ -180,7 +225,7 @@ Public Class 系統編碼規則_1
180 225
     End Sub
181 226
     Private Sub 式共用1()
182 227
         Set_清單1() : Set_清單2() : Set_年度清單() : Set_部門清單() : Set_職稱清單() : Set_請假類別清單() : Set_廠商類別()
183
-        Set_帳本清單() : Set_模具開發用結構清單() : Set_模具開發用材質清單() : PA = ""
228
+        Set_帳本清單() : Set_模具開發用結構清單() : Set_模具開發用材質清單() : Set_縮寫清單() : Set_客戶清單() : Set_品牌清單() : PA = ""
184 229
     End Sub
185 230
     Private Sub 式共用2()
186 231
         conn.Close() : dr.Close()
@@ -484,4 +529,88 @@ Public Class 系統編碼規則_1
484 529
     Private Sub 帳本_刪除_bt_Click(sender As Object, e As EventArgs) Handles 帳本_刪除_bt.Click
485 530
         SQL_帳本刪除() : SET_刪除按鈕程式共用1()
486 531
     End Sub
532
+    '------------------------------------------------------------------------------------------------------------------------------------
533
+    Private Sub Button29_Click(sender As Object, e As EventArgs) Handles Button29.Click
534
+        If TextBox10.Text = "" Then
535
+            MsgBox("資料有缺或有誤,請重新檢查")
536
+        Else
537
+            式共用3() : SQL1 = "SELECT 縮寫 FROM 楦頭縮寫管理 WHERE 縮寫 LIKE '" & TextBox10.Text & "'" : cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
538
+            If dr.Read() Then
539
+                MsgBox("資料重複,請從新輸入或檢查") : conn.Close() : dr.Close()
540
+            Else
541
+                式共用2() : SQL1 = "INSERT INTO 楦頭縮寫管理 (縮寫) VALUES (N'" & TextBox10.Text & "')" : SET_新增按鈕程式共用2()
542
+            End If
543
+        End If : 式共用1()
544
+    End Sub
545
+    Private Sub Button28_Click(sender As Object, e As EventArgs) Handles Button28.Click
546
+        If TextBox10.Text = "" Then
547
+            MsgBox("資料有缺或有誤,請重新檢查")
548
+        Else
549
+            PA = InputBox("請輸入要修改的內容")
550
+            If PA = "" Then
551
+                MsgBox("沒有輸入修改內容")
552
+            Else
553
+                式共用3() : SQL1 = "UPDATE 楦頭縮寫管理 SET 縮寫 = N'" & PA & "' WHERE 縮寫 LIKE N'" & TextBox10.Text & "'" : SET_修改按鈕程式共用1()
554
+            End If
555
+        End If : 式共用1()
556
+    End Sub
557
+    Private Sub Button30_Click(sender As Object, e As EventArgs) Handles Button30.Click
558
+        SQL1 = "DELETE FROM 楦頭縮寫管理 WHERE (縮寫 = N'" & TextBox10.Text & "')" : SET_刪除按鈕程式共用1()
559
+    End Sub
560
+    '------------------------------------------------------------------------------------------------------------------------------------
561
+    Private Sub Button32_Click(sender As Object, e As EventArgs) Handles Button32.Click
562
+        If TextBox11.Text = "" Then
563
+            MsgBox("資料有缺或有誤,請重新檢查")
564
+        Else
565
+            式共用3() : SQL1 = "SELECT 客戶簡稱 FROM 客戶控制表 WHERE 客戶簡稱 LIKE '" & TextBox11.Text & "'" : cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
566
+            If dr.Read() Then
567
+                MsgBox("資料重複,請從新輸入或檢查") : conn.Close() : dr.Close()
568
+            Else
569
+                式共用2() : SQL1 = "INSERT INTO 客戶控制表 (客戶簡稱) VALUES (N'" & TextBox11.Text & "')" : SET_新增按鈕程式共用2()
570
+            End If
571
+        End If : 式共用1()
572
+    End Sub
573
+    Private Sub Button31_Click(sender As Object, e As EventArgs) Handles Button31.Click
574
+        If TextBox11.Text = "" Then
575
+            MsgBox("資料有缺或有誤,請重新檢查")
576
+        Else
577
+            PA = InputBox("請輸入要修改的內容")
578
+            If PA = "" Then
579
+                MsgBox("沒有輸入修改內容")
580
+            Else
581
+                式共用3() : SQL1 = "UPDATE 客戶控制表 SET 客戶簡稱 = N'" & PA & "' WHERE 客戶簡稱 LIKE N'" & TextBox11.Text & "'" : SET_修改按鈕程式共用1()
582
+            End If
583
+        End If : 式共用1()
584
+    End Sub
585
+    Private Sub Button33_Click(sender As Object, e As EventArgs) Handles Button33.Click
586
+        SQL1 = "DELETE FROM 客戶控制表 WHERE (客戶簡稱 = N'" & TextBox11.Text & "')" : SET_刪除按鈕程式共用1()
587
+    End Sub
588
+    '------------------------------------------------------------------------------------------------------------------------------------
589
+    Private Sub Button35_Click(sender As Object, e As EventArgs) Handles Button35.Click
590
+        If TextBox12.Text = "" Then
591
+            MsgBox("資料有缺或有誤,請重新檢查")
592
+        Else
593
+            式共用3() : SQL1 = "SELECT CUST FROM MTTOOCUST清單 WHERE CUST LIKE '" & TextBox12.Text & "'" : cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
594
+            If dr.Read() Then
595
+                MsgBox("資料重複,請從新輸入或檢查") : conn.Close() : dr.Close()
596
+            Else
597
+                式共用2() : SQL1 = "INSERT INTO MTTOOCUST清單 (CUST) VALUES (N'" & TextBox12.Text & "')" : SET_新增按鈕程式共用2()
598
+            End If
599
+        End If : 式共用1()
600
+    End Sub
601
+    Private Sub Button34_Click(sender As Object, e As EventArgs) Handles Button34.Click
602
+        If TextBox12.Text = "" Then
603
+            MsgBox("資料有缺或有誤,請重新檢查")
604
+        Else
605
+            PA = InputBox("請輸入要修改的內容")
606
+            If PA = "" Then
607
+                MsgBox("沒有輸入修改內容")
608
+            Else
609
+                式共用3() : SQL1 = "UPDATE MTTOOCUST清單 SET CUST = N'" & PA & "' WHERE CUST LIKE N'" & TextBox12.Text & "'" : SET_修改按鈕程式共用1()
610
+            End If
611
+        End If : 式共用1()
612
+    End Sub
613
+    Private Sub Button36_Click(sender As Object, e As EventArgs) Handles Button36.Click
614
+        SQL1 = "DELETE FROM MTTOOCUST清單 WHERE (CUST = N'" & TextBox12.Text & "')" : SET_刪除按鈕程式共用1()
615
+    End Sub
487 616
 End Class

Laden…
Abbrechen
Speichern