瀏覽代碼

20200912備份

Signed-off-by: B70340 <b70340@gmail.com>
B70340 4 年之前
父節點
當前提交
4fffa3e4d6
共有 40 個檔案被更改,包括 1602 行新增359 行删除
  1. 二進制
      .vs/WINPROFIT-ERP-SYS/v16/.suo
  2. 2
    1
      SHENKANG-MES-SYS/MyModule/全域變數.vb
  3. 24
    23
      SHENKANG-MES-SYS/WINPROFIT-ERP-SYS.Designer.vb
  4. 1
    1
      SHENKANG-MES-SYS/WINPROFIT-ERP-SYS.vb
  5. 5
    5
      SHENKANG-MES-SYS/WINPROFIT-ERP-SYS.vbproj
  6. 1
    1
      SHENKANG-MES-SYS/bin/Debug/WINPROFIT-ERP-SYS.application
  7. 二進制
      SHENKANG-MES-SYS/bin/Debug/WINPROFIT-ERP-SYS.exe
  8. 2
    2
      SHENKANG-MES-SYS/bin/Debug/WINPROFIT-ERP-SYS.exe.manifest
  9. 二進制
      SHENKANG-MES-SYS/bin/Debug/WINPROFIT-ERP-SYS.pdb
  10. 二進制
      SHENKANG-MES-SYS/bin/Debug/app.publish/WINPROFIT-ERP-SYS.exe
  11. 二進制
      SHENKANG-MES-SYS/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  12. 1
    1
      SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.application
  13. 二進制
      SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.exe
  14. 2
    2
      SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.exe.manifest
  15. 二進制
      SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.pdb
  16. 1
    1
      SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.vbproj.CoreCompileInputs.cache
  17. 1
    1
      SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.vbproj.FileListAbsolute.txt
  18. 二進制
      SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.vbproj.GenerateResource.cache
  19. 二進制
      SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.vbprojAssemblyReference.cache
  20. 0
    0
      SHENKANG-MES-SYS/obj/Debug/WINPROFIT_ERP_SYS.製鞋技術資料庫狀態.resources
  21. 5
    4
      SHENKANG-MES-SYS/品保管理系統/驗貨報告資料庫.vb
  22. 10
    0
      SHENKANG-MES-SYS/基本資料管理系統/清單修改.vb
  23. 1
    1
      SHENKANG-MES-SYS/樣品訂單管理系統/列印_樣品單_NEW.Designer.vb
  24. 16
    37
      SHENKANG-MES-SYS/樣品訂單管理系統/列印_樣品單_NEW.vb
  25. 98
    49
      SHENKANG-MES-SYS/樣品訂單管理系統/樣品單控制表.Designer.vb
  26. 86
    63
      SHENKANG-MES-SYS/樣品訂單管理系統/樣品單控制表.vb
  27. 20
    8
      SHENKANG-MES-SYS/製鞋技術管理系統/楦頭規格表.Designer.vb
  28. 3
    0
      SHENKANG-MES-SYS/製鞋技術管理系統/楦頭規格表.vb
  29. 29
    7
      SHENKANG-MES-SYS/製鞋技術管理系統/模具開發控制表.Designer.vb
  30. 28
    27
      SHENKANG-MES-SYS/製鞋技術管理系統/模具開發控制表.vb
  31. 765
    0
      SHENKANG-MES-SYS/製鞋技術管理系統/製鞋技術資料庫狀態.Designer.vb
  32. 0
    0
      SHENKANG-MES-SYS/製鞋技術管理系統/製鞋技術資料庫狀態.resx
  33. 402
    0
      SHENKANG-MES-SYS/製鞋技術管理系統/製鞋技術資料庫狀態.vb
  34. 0
    59
      SHENKANG-MES-SYS/製鞋技術管理系統/製鞋技術資料庫除錯.Designer.vb
  35. 0
    34
      SHENKANG-MES-SYS/製鞋技術管理系統/製鞋技術資料庫除錯.vb
  36. 2
    2
      SHENKANG-MES-SYS/製鞋技術管理系統/鞋樣素描控制表.vb
  37. 32
    5
      SHENKANG-MES-SYS/請採購館洗系統/供應商管理(製鞋樣品).Designer.vb
  38. 23
    17
      SHENKANG-MES-SYS/請採購館洗系統/供應商管理(製鞋樣品).vb
  39. 29
    5
      SHENKANG-MES-SYS/請採購館洗系統/樣品物料調料單申請.Designer.vb
  40. 13
    3
      SHENKANG-MES-SYS/請採購館洗系統/樣品物料調料單申請.vb

二進制
.vs/WINPROFIT-ERP-SYS/v16/.suo 查看文件


+ 2
- 1
SHENKANG-MES-SYS/MyModule/全域變數.vb 查看文件

@@ -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 = "2020072801"
12
+    Public 版本 As String = "2020090201"
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 = ""
@@ -25,6 +25,7 @@
25 25
     Public 部門清單修改 As Boolean : Public 職稱清單修改 As Boolean : Public 客戶清單修改 As Boolean : Public 工廠清單修改 As Boolean : Public 顏色清單修改 As Boolean : Public 港口清單修改 As Boolean
26 26
     Public 季節清單修改 As Boolean : Public 供應商清單修改 As Boolean : Public 國家清單修改 As Boolean : Public PURPOSE清單修改 As Boolean : Public 部件清單修改 As Boolean : Public 交貨條件修改 As Boolean
27 27
     Public 到港清單修改 As Boolean : Public 交貨管道修改 As Boolean : Public 模具用結構 As Boolean : Public 模具用材質 As Boolean : Public 行政物料 As Boolean : Public 訂單顏色修改 As Boolean
28
+    Public 楦頭編碼修改 As Boolean : Public 廠商類別修改 As Boolean
28 29
     '----清單修改2----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
29 30
     Public INVOICE用客戶資料 As Boolean
30 31
     Public Class MyModule1

+ 24
- 23
SHENKANG-MES-SYS/WINPROFIT-ERP-SYS.Designer.vb 查看文件

@@ -130,6 +130,7 @@ Partial Class WINPROFIT_ERP_SYS
130 130
         Me.量產訂單管理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
131 131
         Me.量產訂單輸入ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
132 132
         Me.量產訂單控制表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
133
+        Me.ToolStripSeparator23 = New System.Windows.Forms.ToolStripSeparator()
133 134
         Me.量產進度表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
134 135
         Me.ToolStripSeparator12 = New System.Windows.Forms.ToolStripSeparator()
135 136
         Me.量產CXL訂單紀錄表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
@@ -137,7 +138,6 @@ Partial Class WINPROFIT_ERP_SYS
137 138
         Me.ToolStripSeparator13 = New System.Windows.Forms.ToolStripSeparator()
138 139
         Me.FACTORY資料管理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
139 140
         Me.DELIVERYADDRESS資料管理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
140
-        Me.ToolStripSeparator23 = New System.Windows.Forms.ToolStripSeparator()
141 141
         Me.預告訂單控制表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
142 142
         Me.預告訂單轉量產訂單ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
143 143
         Me.品保系統管理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
@@ -196,7 +196,7 @@ Partial Class WINPROFIT_ERP_SYS
196 196
         Me.MenuStrip.Location = New System.Drawing.Point(0, 0)
197 197
         Me.MenuStrip.MdiWindowListItem = Me.WindowsMenu
198 198
         Me.MenuStrip.Name = "MenuStrip"
199
-        Me.MenuStrip.Size = New System.Drawing.Size(1924, 24)
199
+        Me.MenuStrip.Size = New System.Drawing.Size(1472, 24)
200 200
         Me.MenuStrip.TabIndex = 5
201 201
         Me.MenuStrip.Text = "MenuStrip"
202 202
         '
@@ -608,66 +608,66 @@ Partial Class WINPROFIT_ERP_SYS
608 608
         '
609 609
         Me.製鞋技術資料庫除錯1ToolStripMenuItem.ForeColor = System.Drawing.Color.Goldenrod
610 610
         Me.製鞋技術資料庫除錯1ToolStripMenuItem.Name = "製鞋技術資料庫除錯1ToolStripMenuItem"
611
-        Me.製鞋技術資料庫除錯1ToolStripMenuItem.Size = New System.Drawing.Size(194, 22)
612
-        Me.製鞋技術資料庫除錯1ToolStripMenuItem.Text = "製鞋技術資料庫除錯_1"
611
+        Me.製鞋技術資料庫除錯1ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
612
+        Me.製鞋技術資料庫除錯1ToolStripMenuItem.Text = "製鞋技術資料庫狀態"
613 613
         '
614 614
         'ToolStripSeparator22
615 615
         '
616 616
         Me.ToolStripSeparator22.Name = "ToolStripSeparator22"
617
-        Me.ToolStripSeparator22.Size = New System.Drawing.Size(191, 6)
617
+        Me.ToolStripSeparator22.Size = New System.Drawing.Size(190, 6)
618 618
         '
619 619
         '楦頭規格表ToolStripMenuItem
620 620
         '
621 621
         Me.楦頭規格表ToolStripMenuItem.ForeColor = System.Drawing.Color.Goldenrod
622 622
         Me.楦頭規格表ToolStripMenuItem.Name = "楦頭規格表ToolStripMenuItem"
623
-        Me.楦頭規格表ToolStripMenuItem.Size = New System.Drawing.Size(194, 22)
623
+        Me.楦頭規格表ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
624 624
         Me.楦頭規格表ToolStripMenuItem.Text = "楦頭規格表"
625 625
         '
626 626
         '模具開發控制表ToolStripMenuItem
627 627
         '
628 628
         Me.模具開發控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Goldenrod
629 629
         Me.模具開發控制表ToolStripMenuItem.Name = "模具開發控制表ToolStripMenuItem"
630
-        Me.模具開發控制表ToolStripMenuItem.Size = New System.Drawing.Size(194, 22)
630
+        Me.模具開發控制表ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
631 631
         Me.模具開發控制表ToolStripMenuItem.Text = "模具開發控制表"
632 632
         '
633 633
         '鞋樣素描控制表ToolStripMenuItem
634 634
         '
635 635
         Me.鞋樣素描控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Goldenrod
636 636
         Me.鞋樣素描控制表ToolStripMenuItem.Name = "鞋樣素描控制表ToolStripMenuItem"
637
-        Me.鞋樣素描控制表ToolStripMenuItem.Size = New System.Drawing.Size(194, 22)
637
+        Me.鞋樣素描控制表ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
638 638
         Me.鞋樣素描控制表ToolStripMenuItem.Text = "鞋樣素描控制表"
639 639
         '
640 640
         '形體總表MINIWALLToolStripMenuItem
641 641
         '
642 642
         Me.形體總表MINIWALLToolStripMenuItem.ForeColor = System.Drawing.Color.Goldenrod
643 643
         Me.形體總表MINIWALLToolStripMenuItem.Name = "形體總表MINIWALLToolStripMenuItem"
644
-        Me.形體總表MINIWALLToolStripMenuItem.Size = New System.Drawing.Size(194, 22)
644
+        Me.形體總表MINIWALLToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
645 645
         Me.形體總表MINIWALLToolStripMenuItem.Text = "形體總表(MINI WALL)"
646 646
         '
647 647
         'ToolStripSeparator1
648 648
         '
649 649
         Me.ToolStripSeparator1.Name = "ToolStripSeparator1"
650
-        Me.ToolStripSeparator1.Size = New System.Drawing.Size(191, 6)
650
+        Me.ToolStripSeparator1.Size = New System.Drawing.Size(190, 6)
651 651
         '
652 652
         '型體控制表ToolStripMenuItem1
653 653
         '
654 654
         Me.型體控制表ToolStripMenuItem1.ForeColor = System.Drawing.Color.Goldenrod
655 655
         Me.型體控制表ToolStripMenuItem1.Name = "型體控制表ToolStripMenuItem1"
656
-        Me.型體控制表ToolStripMenuItem1.Size = New System.Drawing.Size(194, 22)
656
+        Me.型體控制表ToolStripMenuItem1.Size = New System.Drawing.Size(193, 22)
657 657
         Me.型體控制表ToolStripMenuItem1.Text = "型體控制表"
658 658
         '
659 659
         '部件清單控制表ToolStripMenuItem1
660 660
         '
661 661
         Me.部件清單控制表ToolStripMenuItem1.ForeColor = System.Drawing.Color.Goldenrod
662 662
         Me.部件清單控制表ToolStripMenuItem1.Name = "部件清單控制表ToolStripMenuItem1"
663
-        Me.部件清單控制表ToolStripMenuItem1.Size = New System.Drawing.Size(194, 22)
663
+        Me.部件清單控制表ToolStripMenuItem1.Size = New System.Drawing.Size(193, 22)
664 664
         Me.部件清單控制表ToolStripMenuItem1.Text = "部件清單控制表"
665 665
         '
666 666
         '底台中皮結構ToolStripMenuItem
667 667
         '
668 668
         Me.底台中皮結構ToolStripMenuItem.ForeColor = System.Drawing.Color.Goldenrod
669 669
         Me.底台中皮結構ToolStripMenuItem.Name = "底台中皮結構ToolStripMenuItem"
670
-        Me.底台中皮結構ToolStripMenuItem.Size = New System.Drawing.Size(194, 22)
670
+        Me.底台中皮結構ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
671 671
         Me.底台中皮結構ToolStripMenuItem.Text = "中皮結構、中底作法"
672 672
         '
673 673
         '樣品訂單管理ToolStripMenuItem
@@ -905,6 +905,11 @@ Partial Class WINPROFIT_ERP_SYS
905 905
         Me.量產訂單控制表ToolStripMenuItem.Size = New System.Drawing.Size(247, 22)
906 906
         Me.量產訂單控制表ToolStripMenuItem.Text = "量產訂單控制表"
907 907
         '
908
+        'ToolStripSeparator23
909
+        '
910
+        Me.ToolStripSeparator23.Name = "ToolStripSeparator23"
911
+        Me.ToolStripSeparator23.Size = New System.Drawing.Size(244, 6)
912
+        '
908 913
         '量產進度表ToolStripMenuItem
909 914
         '
910 915
         Me.量產進度表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
@@ -950,11 +955,6 @@ Partial Class WINPROFIT_ERP_SYS
950 955
         Me.DELIVERYADDRESS資料管理ToolStripMenuItem.Size = New System.Drawing.Size(247, 22)
951 956
         Me.DELIVERYADDRESS資料管理ToolStripMenuItem.Text = "DELIVERY_ADDRESS__資料管理"
952 957
         '
953
-        'ToolStripSeparator23
954
-        '
955
-        Me.ToolStripSeparator23.Name = "ToolStripSeparator23"
956
-        Me.ToolStripSeparator23.Size = New System.Drawing.Size(244, 6)
957
-        '
958 958
         '預告訂單控制表ToolStripMenuItem
959 959
         '
960 960
         Me.預告訂單控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
@@ -1206,9 +1206,10 @@ Partial Class WINPROFIT_ERP_SYS
1206 1206
         '
1207 1207
         'ComboBox3
1208 1208
         '
1209
+        Me.ComboBox3.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1209 1210
         Me.ComboBox3.FormattingEnabled = True
1210 1211
         Me.ComboBox3.Items.AddRange(New Object() {"主畫面"})
1211
-        Me.ComboBox3.Location = New System.Drawing.Point(1698, 2)
1212
+        Me.ComboBox3.Location = New System.Drawing.Point(1246, 2)
1212 1213
         Me.ComboBox3.Name = "ComboBox3"
1213 1214
         Me.ComboBox3.Size = New System.Drawing.Size(121, 20)
1214 1215
         Me.ComboBox3.TabIndex = 7
@@ -1244,9 +1245,9 @@ Partial Class WINPROFIT_ERP_SYS
1244 1245
         'StatusStrip1
1245 1246
         '
1246 1247
         Me.StatusStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ToolStripStatusLabel1, Me.ToolStripStatusLabel2, Me.ToolStripProgressBar1})
1247
-        Me.StatusStrip1.Location = New System.Drawing.Point(0, 1019)
1248
+        Me.StatusStrip1.Location = New System.Drawing.Point(0, 728)
1248 1249
         Me.StatusStrip1.Name = "StatusStrip1"
1249
-        Me.StatusStrip1.Size = New System.Drawing.Size(1924, 22)
1250
+        Me.StatusStrip1.Size = New System.Drawing.Size(1472, 22)
1250 1251
         Me.StatusStrip1.TabIndex = 9
1251 1252
         Me.StatusStrip1.Text = "StatusStrip1"
1252 1253
         '
@@ -1273,7 +1274,7 @@ Partial Class WINPROFIT_ERP_SYS
1273 1274
         'Button1
1274 1275
         '
1275 1276
         Me.Button1.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1276
-        Me.Button1.Location = New System.Drawing.Point(1620, 1)
1277
+        Me.Button1.Location = New System.Drawing.Point(1168, 1)
1277 1278
         Me.Button1.Name = "Button1"
1278 1279
         Me.Button1.Size = New System.Drawing.Size(75, 23)
1279 1280
         Me.Button1.TabIndex = 11
@@ -1284,7 +1285,7 @@ Partial Class WINPROFIT_ERP_SYS
1284 1285
         '
1285 1286
         Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!)
1286 1287
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
1287
-        Me.ClientSize = New System.Drawing.Size(1924, 1041)
1288
+        Me.ClientSize = New System.Drawing.Size(1472, 750)
1288 1289
         Me.Controls.Add(Me.Button1)
1289 1290
         Me.Controls.Add(Me.StatusStrip1)
1290 1291
         Me.Controls.Add(Me.ComboBox3)

+ 1
- 1
SHENKANG-MES-SYS/WINPROFIT-ERP-SYS.vb 查看文件

@@ -408,7 +408,7 @@ Public Class WINPROFIT_ERP_SYS
408 408
         PA = "" : 中皮結構_中底作法.ShowDialog()
409 409
     End Sub
410 410
     Private Sub 製鞋技術資料庫除錯1ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 製鞋技術資料庫除錯1ToolStripMenuItem.Click
411
-        PA = "" : 製鞋技術資料庫除錯.Show() : 製鞋技術資料庫除錯.BringToFront()
411
+        PA = "" : 製鞋技術資料庫狀態.Show() : 製鞋技術資料庫狀態.BringToFront()
412 412
     End Sub
413 413
     Private Sub 量產訂單輸入ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 量產訂單輸入ToolStripMenuItem.Click
414 414
         PA = "" : 量產訂單輸入.Show() : 量產訂單輸入.BringToFront()

+ 5
- 5
SHENKANG-MES-SYS/WINPROFIT-ERP-SYS.vbproj 查看文件

@@ -164,10 +164,10 @@
164 164
     <Compile Include="基本資料管理系統\清單修改2.vb">
165 165
       <SubType>Form</SubType>
166 166
     </Compile>
167
-    <Compile Include="製鞋技術管理系統\製鞋技術資料庫除錯.Designer.vb">
168
-      <DependentUpon>製鞋技術資料庫除錯.vb</DependentUpon>
167
+    <Compile Include="製鞋技術管理系統\製鞋技術資料庫狀態.Designer.vb">
168
+      <DependentUpon>製鞋技術資料庫狀態.vb</DependentUpon>
169 169
     </Compile>
170
-    <Compile Include="製鞋技術管理系統\製鞋技術資料庫除錯.vb">
170
+    <Compile Include="製鞋技術管理系統\製鞋技術資料庫狀態.vb">
171 171
       <SubType>Form</SubType>
172 172
     </Compile>
173 173
     <Compile Include="成本管理系統\訂單價格利潤明細表.Designer.vb">
@@ -770,8 +770,8 @@
770 770
     <EmbeddedResource Include="基本資料管理系統\清單修改2.resx">
771 771
       <DependentUpon>清單修改2.vb</DependentUpon>
772 772
     </EmbeddedResource>
773
-    <EmbeddedResource Include="製鞋技術管理系統\製鞋技術資料庫除錯.resx">
774
-      <DependentUpon>製鞋技術資料庫除錯.vb</DependentUpon>
773
+    <EmbeddedResource Include="製鞋技術管理系統\製鞋技術資料庫狀態.resx">
774
+      <DependentUpon>製鞋技術資料庫狀態.vb</DependentUpon>
775 775
     </EmbeddedResource>
776 776
     <EmbeddedResource Include="成本管理系統\訂單價格利潤明細表.resx">
777 777
       <DependentUpon>訂單價格利潤明細表.vb</DependentUpon>

+ 1
- 1
SHENKANG-MES-SYS/bin/Debug/WINPROFIT-ERP-SYS.application 查看文件

@@ -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>zcNXyhhclkrgzbVg1ptEu51Fl8xARQS2WdILd6Y6CDY=</dsig:DigestValue>
17
+        <dsig:DigestValue>4fvAWkAODyrjyTX8cxXaWzssjj2fKrQbM6Do6prMQ90=</dsig:DigestValue>
18 18
       </hash>
19 19
     </dependentAssembly>
20 20
   </dependency>

二進制
SHENKANG-MES-SYS/bin/Debug/WINPROFIT-ERP-SYS.exe 查看文件


+ 2
- 2
SHENKANG-MES-SYS/bin/Debug/WINPROFIT-ERP-SYS.exe.manifest 查看文件

@@ -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="5432248">
46
+    <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="WINPROFIT-ERP-SYS.exe" size="5476792">
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>bolivNGcSqs/CRX/AxTyekNv0HMXQJv/wi7CJLhK0Tg=</dsig:DigestValue>
53
+        <dsig:DigestValue>KkU2WsIVbD2nK2Tr1BiqafZceZ/JCK4+P/SNIfM0STw=</dsig:DigestValue>
54 54
       </hash>
55 55
     </dependentAssembly>
56 56
   </dependency>

二進制
SHENKANG-MES-SYS/bin/Debug/WINPROFIT-ERP-SYS.pdb 查看文件


二進制
SHENKANG-MES-SYS/bin/Debug/app.publish/WINPROFIT-ERP-SYS.exe 查看文件


二進制
SHENKANG-MES-SYS/obj/Debug/DesignTimeResolveAssemblyReferences.cache 查看文件


+ 1
- 1
SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.application 查看文件

@@ -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>zcNXyhhclkrgzbVg1ptEu51Fl8xARQS2WdILd6Y6CDY=</dsig:DigestValue>
17
+        <dsig:DigestValue>4fvAWkAODyrjyTX8cxXaWzssjj2fKrQbM6Do6prMQ90=</dsig:DigestValue>
18 18
       </hash>
19 19
     </dependentAssembly>
20 20
   </dependency>

二進制
SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.exe 查看文件


+ 2
- 2
SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.exe.manifest 查看文件

@@ -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="5432248">
46
+    <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="WINPROFIT-ERP-SYS.exe" size="5476792">
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>bolivNGcSqs/CRX/AxTyekNv0HMXQJv/wi7CJLhK0Tg=</dsig:DigestValue>
53
+        <dsig:DigestValue>KkU2WsIVbD2nK2Tr1BiqafZceZ/JCK4+P/SNIfM0STw=</dsig:DigestValue>
54 54
       </hash>
55 55
     </dependentAssembly>
56 56
   </dependency>

二進制
SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.pdb 查看文件


+ 1
- 1
SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.vbproj.CoreCompileInputs.cache 查看文件

@@ -1 +1 @@
1
-fc118b45a263188a9c2608194efcbeb61646589b
1
+f2e24cb61eaaee716d4e5bb265ba35777b0dfe57

+ 1
- 1
SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.vbproj.FileListAbsolute.txt 查看文件

@@ -639,8 +639,8 @@ G:\WINPROFIT-ERP-SYS\SHENKANG-MES-SYS\obj\Debug\WINPROFIT_ERP_SYS.成本資料
639 639
 G:\WINPROFIT-ERP-SYS\SHENKANG-MES-SYS\obj\Debug\WINPROFIT_ERP_SYS.網段.resources
640 640
 G:\WINPROFIT-ERP-SYS\SHENKANG-MES-SYS\obj\Debug\WINPROFIT_ERP_SYS.中皮結構_中底作法.resources
641 641
 G:\WINPROFIT-ERP-SYS\SHENKANG-MES-SYS\obj\Debug\WINPROFIT_ERP_SYS.樣品標籤批量列印.resources
642
-G:\WINPROFIT-ERP-SYS\SHENKANG-MES-SYS\obj\Debug\WINPROFIT_ERP_SYS.製鞋技術資料庫除錯.resources
643 642
 G:\WINPROFIT-ERP-SYS\SHENKANG-MES-SYS\obj\Debug\WINPROFIT_ERP_SYS.訂單價格利潤明細表.resources
644 643
 G:\WINPROFIT-ERP-SYS\SHENKANG-MES-SYS\obj\Debug\WINPROFIT_ERP_SYS.計算機.resources
645 644
 G:\WINPROFIT-ERP-SYS\SHENKANG-MES-SYS\obj\Debug\WINPROFIT_ERP_SYS.量產出貨明細表.resources
646 645
 G:\WINPROFIT-ERP-SYS\SHENKANG-MES-SYS\obj\Debug\WINPROFIT_ERP_SYS.量產訂單輸入.resources
646
+G:\WINPROFIT-ERP-SYS\SHENKANG-MES-SYS\obj\Debug\WINPROFIT_ERP_SYS.製鞋技術資料庫狀態.resources

二進制
SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.vbproj.GenerateResource.cache 查看文件


二進制
SHENKANG-MES-SYS/obj/Debug/WINPROFIT-ERP-SYS.vbprojAssemblyReference.cache 查看文件


SHENKANG-MES-SYS/obj/Debug/WINPROFIT_ERP_SYS.製鞋技術資料庫除錯.resources → SHENKANG-MES-SYS/obj/Debug/WINPROFIT_ERP_SYS.製鞋技術資料庫狀態.resources 查看文件


+ 5
- 4
SHENKANG-MES-SYS/品保管理系統/驗貨報告資料庫.vb 查看文件

@@ -87,10 +87,11 @@ Public Class 驗貨報告資料庫
87 87
     Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
88 88
         PA = InputBox("請輸入關鍵字")
89 89
         Set_DGV1載入前設定()
90
-        SQL1 = "SELECT 訂單控制表.訂單流水號, 訂單控制表.年份季度, 驗貨報告圖庫.客戶訂單號, 驗貨報告圖庫.型體名稱, 訂單控制表.顏色,  驗貨報告圖庫.驗貨報告編號 " &
91
-               "FROM 驗貨報告圖庫 LEFT OUTER JOIN 訂單控制表 ON 驗貨報告圖庫.客戶訂單號 = 訂單控制表.客戶訂單號 WHERE 訂單控制表.訂單流水號 LIKE '%" & PA & "%' OR " &
92
-               "訂單控制表.年份季度 LIKE '%" & PA & "%' OR 驗貨報告圖庫.客戶訂單號 LIKE '%" & PA & "%' OR 驗貨報告圖庫.型體名稱 LIKE '%" & PA & "%' GROUP BY 訂單控制表.訂單流水號, 訂單控制表.年份季度, " &
93
-               "驗貨報告圖庫.客戶訂單號, 驗貨報告圖庫.型體名稱, 訂單控制表.顏色, 驗貨報告圖庫.驗貨報告編號 ORDER BY 驗貨報告圖庫.客戶訂單號, 驗貨報告圖庫.型體名稱"
90
+        SQL1 = "SELECT 訂單控制表.訂單流水號, 訂單控制表.年份季度, 驗貨報告圖庫.客戶訂單號, 驗貨報告圖庫.型體名稱, 訂單控制表.APMA確認 AS 顏色,  驗貨報告圖庫.驗貨報告編號 
91
+                FROM 驗貨報告圖庫 LEFT OUTER JOIN 訂單控制表 ON 驗貨報告圖庫.客戶訂單號 = 訂單控制表.客戶訂單號 
92
+                WHERE 訂單控制表.訂單流水號 LIKE '%" & PA & "%' OR 訂單控制表.年份季度 LIKE '%" & PA & "%' OR 驗貨報告圖庫.客戶訂單號 LIKE '%" & PA & "%' OR 驗貨報告圖庫.型體名稱 LIKE '%" & PA & "%'
93
+                GROUP BY   訂單控制表.訂單流水號, 訂單控制表.年份季度, 驗貨報告圖庫.客戶訂單號, 驗貨報告圖庫.型體名稱, 訂單控制表.APMA確認, 驗貨報告圖庫.驗貨報告編號 
94
+                ORDER BY 驗貨報告圖庫.客戶訂單號, 驗貨報告圖庫.型體名稱"
94 95
         Set_DGV1載入後設定() : Set_grid()
95 96
     End Sub
96 97
     Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click

+ 10
- 0
SHENKANG-MES-SYS/基本資料管理系統/清單修改.vb 查看文件

@@ -36,6 +36,8 @@ Public Class 清單修改
36 36
         ElseIf 模具用材質 = True Then : SQL1 = "SELECT  材質 FROM 模具開發用材質清單"
37 37
         ElseIf 行政物料 = True Then : SQL1 = "SELECT 行政物料 FROM 人員行政物料表"
38 38
         ElseIf 訂單顏色修改 = True Then : SQL1 = "SELECT 顏色 FROM 訂單顏色清單 ORDER BY 顏色"
39
+        ElseIf 楦頭編碼修改 = True Then : SQL1 = "SELECT 縮寫 FROM 楦頭縮寫管理 ORDER BY 縮寫"
40
+        ElseIf 廠商類別修改 = True Then : SQL1 = "SELECT 廠商類別 FROM 廠商類別 ORDER BY 廠商類別"
39 41
         End If
40 42
         Set_DGV1載入後設定()
41 43
     End Sub
@@ -74,6 +76,8 @@ Public Class 清單修改
74 76
             ElseIf 模具用材質 = True Then : SQL1 = "SELECT 材質 FROM 模具開發用材質清單 WHERE 材質 LIKE N'" & TextBox1.Text & "'"
75 77
             ElseIf 行政物料 = True Then : SQL1 = "SELECT 行政物料 FROM 人員行政物料表 WHERE 行政物料 LIKE N'" & TextBox1.Text & "'"
76 78
             ElseIf 訂單顏色修改 = True Then : SQL1 = "SELECT 顏色 FROM 訂單顏色清單 WHERE 顏色 LIKE N'" & TextBox1.Text & "'"
79
+            ElseIf 楦頭編碼修改 = True Then : SQL1 = "SELECT 縮寫 FROM 楦頭縮寫管理 WHERE 縮寫 LIKE N'" & TextBox1.Text & "'"
80
+            ElseIf 廠商類別修改 = True Then : SQL1 = "SELECT 廠商類別 FROM 廠商類別 WHERE 廠商類別 LIKE N'" & TextBox1.Text & "'"
77 81
             End If
78 82
             cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
79 83
             If dr.Read() Then
@@ -100,6 +104,8 @@ Public Class 清單修改
100 104
                 ElseIf 模具用材質 = True Then : SQL1 = "INSERT INTO 模具開發用材質清單 (材質) VALUES (N'" & TextBox1.Text & "')"
101 105
                 ElseIf 行政物料 = True Then : SQL1 = "INSERT INTO 人員行政物料表 (行政物料) VALUES (N'" & TextBox1.Text & "')"
102 106
                 ElseIf 訂單顏色修改 = True Then : SQL1 = "INSERT INTO 訂單顏色清單 (顏色) VALUES (N'" & TextBox1.Text & "')"
107
+                ElseIf 楦頭編碼修改 = True Then : SQL1 = "INSERT INTO 楦頭縮寫管理 (縮寫) VALUES (N'" & TextBox1.Text & "')"
108
+                ElseIf 廠商類別修改 = True Then : SQL1 = "INSERT INTO 廠商類別 (廠商類別) VALUES (N'" & TextBox1.Text & "')"
103 109
                 End If
104 110
                 cmd.Connection = conn : cmd.CommandText = SQL1 : cmd.ExecuteNonQuery()
105 111
                 MsgBox("新增完成")
@@ -131,6 +137,8 @@ Public Class 清單修改
131 137
             ElseIf 模具用材質 = True Then : SQL1 = "UPDATE 模具開發用材質清單 SET 材質 = N'" & TextBox1.Text & "' WHERE 材質 LIKE N'" & TextBox2.Text & "'"
132 138
             ElseIf 行政物料 = True Then : SQL1 = "UPDATE 人員行政物料表 SET 行政物料 = N'" & TextBox1.Text & "' WHERE 行政物料 LIKE N'" & TextBox2.Text & "'"
133 139
             ElseIf 訂單顏色修改 = True Then : SQL1 = "UPDATE 訂單顏色清單 SET 顏色 = N'" & TextBox1.Text & "' WHERE 顏色 LIKE N'" & TextBox2.Text & "'"
140
+            ElseIf 楦頭編碼修改 = True Then : SQL1 = "UPDATE 楦頭縮寫管理 SET 縮寫 = N'" & TextBox1.Text & "' WHERE 縮寫 LIKE N'" & TextBox2.Text & "'"
141
+            ElseIf 廠商類別修改 = True Then : SQL1 = "UPDATE 廠商類別 SET 廠商類別 = N'" & TextBox1.Text & "' WHERE 廠商類別 LIKE N'" & TextBox2.Text & "'"
134 142
             End If
135 143
             cmd.CommandText = SQL1 : cmd.ExecuteNonQuery()
136 144
             MsgBox("修改完成")
@@ -157,6 +165,8 @@ Public Class 清單修改
157 165
         ElseIf 模具用材質 = True Then : SQL1 = "DELETE FROM 模具開發用材質清單 WHERE (材質 = N'" & TextBox1.Text & "')"
158 166
         ElseIf 行政物料 = True Then : SQL1 = "DELETE FROM 人員行政物料表 WHERE (行政物料 = N'" & TextBox1.Text & "')"
159 167
         ElseIf 訂單顏色修改 = True Then : SQL1 = "DELETE FROM 訂單顏色清單 WHERE (顏色 = N'" & TextBox1.Text & "')"
168
+        ElseIf 楦頭編碼修改 = True Then : SQL1 = "DELETE FROM 楦頭縮寫管理 WHERE (縮寫 = N'" & TextBox1.Text & "')"
169
+        ElseIf 廠商類別修改 = True Then : SQL1 = "DELETE FROM 廠商類別 WHERE (廠商類別 = N'" & TextBox1.Text & "')"
160 170
         End If
161 171
         cmd.CommandText = SQL1 : cmd.Connection = conn
162 172
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If

+ 1
- 1
SHENKANG-MES-SYS/樣品訂單管理系統/列印_樣品單_NEW.Designer.vb 查看文件

@@ -139,7 +139,7 @@ Partial Class 列印_樣品單_NEW
139 139
         '
140 140
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
141 141
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
142
-        Me.ClientSize = New System.Drawing.Size(251, 69)
142
+        Me.ClientSize = New System.Drawing.Size(252, 69)
143 143
         Me.Controls.Add(Me.DataGridView5)
144 144
         Me.Controls.Add(Me.DataGridView4)
145 145
         Me.Controls.Add(Me.PictureBox1)

+ 16
- 37
SHENKANG-MES-SYS/樣品訂單管理系統/列印_樣品單_NEW.vb 查看文件

@@ -1,5 +1,4 @@
1 1
 Option Strict Off
2
-Imports System.Data.SqlClient
3 2
 Imports System.IO
4 3
 Imports Microsoft.Office.Interop.Excel.XlUnderlineStyle
5 4
 Imports Microsoft.Office.Interop.Excel.Constants
@@ -12,15 +11,9 @@ Imports Microsoft.Office.Interop.Excel.XlWindowState
12 11
 Imports System.Threading
13 12
 Imports Microsoft.Office.Interop.Excel
14 13
 Public Class 列印_樣品單_NEW
15
-    ReadOnly conn As New SqlConnection
16
-    ReadOnly da As New SqlDataAdapter
17
-    ReadOnly cmd As New SqlCommand
18 14
     ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet : ReadOnly ds3 As New DataSet : ReadOnly ds5 As New DataSet
19
-    Dim dr As SqlDataReader
20 15
     Dim N1 As Integer : Dim N2 As Integer : Dim N3 As Integer : Dim N4 As Integer : Dim N5 As Integer
21
-    Dim xlApp As Microsoft.Office.Interop.Excel.Application
22
-    Dim xlBook As Microsoft.Office.Interop.Excel.Workbook
23
-    Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
16
+    Dim xlApp As Application : Dim xlBook As Workbook : Dim xlSheet As Worksheet
24 17
     Dim Q1 As Integer : Dim AAA1 As String : Dim AAA2 As String
25 18
     Private Sub Set_清單()
26 19
         DataGridView1.DataSource = Nothing : ds.Clear()
@@ -30,13 +23,18 @@ Public Class 列印_樣品單_NEW
30 23
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
31 24
         SQL1 = "SELECT      樣品訂單控制表.SO, 樣品訂單控制表.季節, 樣品訂單控制表.客戶, 樣品訂單控制表.型體號碼, 
32 25
                             樣品訂單控制表.型體名稱, 樣品訂單控制表.國家, 樣品訂單控制表.狀態, 樣品訂單控制表.ISS_DATE, 
33
-                            樣品訂單控制表.ETA, 樣品訂單控制表.數量, 樣品訂單控制表.制單人, 
34
-                            LEFT(樣品訂單控制表.制單時間, 10) AS 制單時間, 樣品訂單控制表.版次, 樣品訂單控制表.工廠, 
35
-                            樣品訂單控制表.REQ, 樣品訂單控制表.C_N, 樣品訂單控制表.中底, 樣品訂單控制表.楦頭編號, 
36
-                            楦頭規格控制表.楦頭名
37
-                FROM        樣品訂單控制表 LEFT OUTER JOIN
26
+                            樣品訂單控制表.ETA, 樣品訂單控制表.數量, 樣品訂單控制表.制單人, LEFT(樣品訂單控制表.制單時間, 10) 
27
+                            AS 制單時間, 樣品訂單控制表.版次, 樣品訂單控制表.工廠, 樣品訂單控制表.REQ, 樣品訂單控制表.C_N, 
28
+                            樣品訂單控制表.中底, 樣品訂單控制表.楦頭編號, 楦頭規格控制表.楦頭名, 模具開發控制表.模具編號, 
29
+                            模具開發控制表.CN
30
+                FROM        樣品訂單控制表 LEFT OUTER JOIN 模具開發控制表 ON 樣品訂單控制表.模具編號 = 模具開發控制表.模具編號 LEFT OUTER JOIN
38 31
                             楦頭規格控制表 ON 樣品訂單控制表.楦頭編號 = 楦頭規格控制表.楦頭編號
39 32
                 WHERE      (樣品訂單控制表.SO LIKE N'" & 列印用SQL & "') AND (樣品訂單控制表.版次 LIKE N'" & 列印用SQL2 & "')
33
+                GROUP BY    樣品訂單控制表.SO, 樣品訂單控制表.季節, 樣品訂單控制表.客戶, 樣品訂單控制表.型體號碼, 
34
+                            樣品訂單控制表.型體名稱, 樣品訂單控制表.國家, 樣品訂單控制表.狀態, 樣品訂單控制表.ISS_DATE, 
35
+                            樣品訂單控制表.ETA, 樣品訂單控制表.數量, 樣品訂單控制表.制單人, LEFT(樣品訂單控制表.制單時間, 10), 
36
+                            樣品訂單控制表.版次, 樣品訂單控制表.工廠, 樣品訂單控制表.REQ, 樣品訂單控制表.C_N, 樣品訂單控制表.中底, 
37
+                            樣品訂單控制表.楦頭編號, 楦頭規格控制表.楦頭名, 模具開發控制表.模具編號, 模具開發控制表.CN
40 38
                 ORDER BY    樣品訂單控制表.SO DESC, 樣品訂單控制表.版次 DESC"
41 39
         cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds) : DataGridView1.DataSource = ds.Tables(0) : conn.Close()
42 40
     End Sub
@@ -85,7 +83,6 @@ Public Class 列印_樣品單_NEW
85 83
         列印用SQL = "" : 列印用SQL2 = "" : Me.Close()
86 84
     End Sub
87 85
     Private Sub 列印1()
88
-
89 86
         xlSheet.Cells(1, 1) = "森康鞋業有限公司  SenKang Footwear Ltd."
90 87
         If DataGridView1.Rows(0).Cells("狀態").Value.ToString = "DEVELOPMENT" Then
91 88
             xlSheet.Cells(1, 4) = "DEVELOPMENT SAMPLE ORDER (開發樣品單)"
@@ -102,18 +99,18 @@ Public Class 列印_樣品單_NEW
102 99
         xlSheet.Cells(3, 4) = "PRINT DATE :" : xlSheet.Cells(3, 5) = "=TODAY()"
103 100
 
104 101
         xlSheet.Cells(5, 1) = "S/O # (單號) :" : xlSheet.Cells(6, 1) = "CUST (客戶) :" : xlSheet.Cells(7, 1) = "FACTORY (工廠) :" : xlSheet.Cells(8, 1) = "STYLE # (型體號) :"
105
-        xlSheet.Cells(9, 1) = "STY.NAME (型體名) :" : xlSheet.Cells(10, 1) = "COUNTRY (國家) :" : xlSheet.Cells(11, 1) = "PURPOSE (目的) :" : xlSheet.Cells(12, 1) = "楦頭編號 :"
102
+        xlSheet.Cells(9, 1) = "STY.NAME (型體名) :" : xlSheet.Cells(10, 1) = "COUNTRY (國家) :" : xlSheet.Cells(11, 1) = "PURPOSE (目的) :" : xlSheet.Cells(12, 1) = "楦頭編號/模具編號 :"
106 103
         xlSheet.Cells(5, 2) = DataGridView1.Rows(0).Cells("SO").Value : xlSheet.Cells(6, 2) = DataGridView1.Rows(0).Cells("客戶").Value
107 104
         xlSheet.Cells(7, 2) = DataGridView1.Rows(0).Cells("工廠").Value : xlSheet.Cells(8, 2) = DataGridView1.Rows(0).Cells("型體號碼").Value
108 105
         xlSheet.Cells(9, 2) = DataGridView1.Rows(0).Cells("型體名稱").Value : xlSheet.Cells(10, 2) = DataGridView1.Rows(0).Cells("國家").Value
109
-        xlSheet.Cells(11, 2) = DataGridView1.Rows(0).Cells("狀態").Value : xlSheet.Cells(12, 2) = DataGridView1.Rows(0).Cells("楦頭編號").Value
106
+        xlSheet.Cells(11, 2) = DataGridView1.Rows(0).Cells("狀態").Value : xlSheet.Cells(12, 2) = DataGridView1.Rows(0).Cells("楦頭編號").Value & "/" & DataGridView1.Rows(0).Cells("模具編號").Value
110 107
 
111 108
         xlSheet.Cells(5, 3) = "EDITION (版次) :" : xlSheet.Cells(6, 3) = "SEASON (季節) :" : xlSheet.Cells(7, 3) = "ISS. DATE (制單日期) :" : xlSheet.Cells(8, 3) = "ETD (預計寄出日期) :"
112 109
         xlSheet.Cells(9, 3) = "REQ. BY :" : xlSheet.Cells(10, 3) = "INVOICE :" : xlSheet.Cells(11, 3) = "TOTAL (總數) :" : xlSheet.Cells(12, 3) = "Construction Name :"
113 110
         xlSheet.Cells(5, 4) = DataGridView1.Rows(0).Cells("版次").Value : xlSheet.Cells(6, 4) = DataGridView1.Rows(0).Cells("季節").Value
114 111
         xlSheet.Cells(7, 4) = DataGridView1.Rows(0).Cells("ISS_DATE").Value : xlSheet.Cells(8, 4) = DataGridView1.Rows(0).Cells("ETA").Value
115 112
         xlSheet.Cells(9, 4) = DataGridView1.Rows(0).Cells("REQ").Value : xlSheet.Cells(10, 4) = ""
116
-        xlSheet.Cells(11, 4) = DataGridView1.Rows(0).Cells("數量").Value : xlSheet.Cells(12, 4) = DataGridView1.Rows(0).Cells("楦頭名").Value
113
+        xlSheet.Cells(11, 4) = DataGridView1.Rows(0).Cells("數量").Value : xlSheet.Cells(12, 4) = DataGridView1.Rows(0).Cells("CN").Value
117 114
 
118 115
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
119 116
         SQL1 = "SELECT 中皮, 結構 FROM 中皮結構 WHERE 底台 LIKE N'" & DataGridView1.Rows(0).Cells("C_N").Value & "'"
@@ -362,24 +359,6 @@ Public Class 列印_樣品單_NEW
362 359
         xlApp.Application.WindowState = xlMaximized
363 360
         N2 = 0
364 361
         For i As Integer = 0 To DataGridView2.Rows.Count - 1
365
-            '四色一頁
366
-            'If i = 0 Then
367
-            '    xlSheet = NewMethod(xlBook)
368
-            '    xlApp.Sheets(1).Name = DataGridView1.Rows(0).Cells("型體名稱").Value & "第一頁" : N2 = 3
369
-            '    xlBook.Activate() : xlSheet.Activate() : 列印1() : Q1 = 0
370
-            'ElseIf i = 4 Then
371
-            '    xlSheet = NewMethod(xlBook)
372
-            '    xlApp.Sheets(1).Name = DataGridView1.Rows(0).Cells("型體名稱").Value & "第二頁" : N2 = 7
373
-            '    xlBook.Activate() : xlSheet.Activate() : 列印1() : Q1 = 0
374
-            'ElseIf i = 8 Then
375
-            '    xlSheet = NewMethod(xlBook)
376
-            '    xlApp.Sheets(1).Name = DataGridView1.Rows(0).Cells("型體名稱").Value & "第三頁" : N2 = 11
377
-            '    xlBook.Activate() : xlSheet.Activate() : 列印1() : Q1 = 0
378
-            'ElseIf i = 12 Then
379
-            '    xlSheet = NewMethod(xlBook)
380
-            '    xlApp.Sheets(1).Name = DataGridView1.Rows(0).Cells("型體名稱").Value & "第四頁" : N2 = 15
381
-            '    xlBook.Activate() : xlSheet.Activate() : 列印1() : Q1 = 0
382
-            'End If
383 362
             If i = 0 Then : xlSheet = NewMethod(xlBook) : xlApp.Sheets(1).Name = "第一頁" : N2 = 3 : xlBook.Activate() : xlSheet.Activate() : 列印1() : Q1 = 0
384 363
             ElseIf i = 4 Then : xlSheet = NewMethod(xlBook) : xlApp.Sheets(1).Name = "第二頁" : N2 = 7 : xlBook.Activate() : xlSheet.Activate() : 列印1() : Q1 = 0
385 364
             ElseIf i = 8 Then : xlSheet = NewMethod(xlBook) : xlApp.Sheets(1).Name = "第三頁" : N2 = 11 : xlBook.Activate() : xlSheet.Activate() : 列印1() : Q1 = 0
@@ -394,8 +373,8 @@ Public Class 列印_樣品單_NEW
394 373
         MsgBox("列印完成")
395 374
         Me.Close()
396 375
     End Sub
397
-    Private Shared Function NewMethod(xlBook As Microsoft.Office.Interop.Excel.Workbook) As Microsoft.Office.Interop.Excel.Worksheet
398
-        Return CType(xlBook.Worksheets.Add, Microsoft.Office.Interop.Excel.Worksheet)
376
+    Private Shared Function NewMethod(xlBook As Workbook) As Worksheet
377
+        Return CType(xlBook.Worksheets.Add, Worksheet)
399 378
     End Function
400 379
     Private Sub AA(ByVal myExcel As Application, ByVal xlSheet As Worksheet)
401 380
         Clipboard.SetDataObject(PictureBox1.Image)

+ 98
- 49
SHENKANG-MES-SYS/樣品訂單管理系統/樣品單控制表.Designer.vb 查看文件

@@ -23,11 +23,11 @@ Partial Class 樣品單控制表
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25 25
         Me.components = New System.ComponentModel.Container()
26
-        Dim DataGridViewCellStyle10 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle11 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle12 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29 29
         Me.Label26 = New System.Windows.Forms.Label()
30
-        Me.DataGridView1 = New System.Windows.Forms.DataGridView()
30
+        Me.樣品單_dgv = New System.Windows.Forms.DataGridView()
31 31
         Me.Button9 = New System.Windows.Forms.Button()
32 32
         Me.Button32 = New System.Windows.Forms.Button()
33 33
         Me.Label2 = New System.Windows.Forms.Label()
@@ -136,7 +136,11 @@ Partial Class 樣品單控制表
136 136
         Me.TextBox12 = New System.Windows.Forms.TextBox()
137 137
         Me.ComboBox17 = New System.Windows.Forms.ComboBox()
138 138
         Me.Label32 = New System.Windows.Forms.Label()
139
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
139
+        Me.ComboBox18 = New System.Windows.Forms.ComboBox()
140
+        Me.Label33 = New System.Windows.Forms.Label()
141
+        Me.ComboBox19 = New System.Windows.Forms.ComboBox()
142
+        Me.Label34 = New System.Windows.Forms.Label()
143
+        CType(Me.樣品單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
140 144
         CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).BeginInit()
141 145
         CType(Me.DataGridView3, System.ComponentModel.ISupportInitialize).BeginInit()
142 146
         CType(Me.DataGridView4, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -155,18 +159,18 @@ Partial Class 樣品單控制表
155 159
         Me.Label26.TabIndex = 677
156 160
         Me.Label26.Text = "樣品訂單清單"
157 161
         '
158
-        'DataGridView1
162
+        '樣品單_dgv
159 163
         '
160
-        Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
161
-        Me.DataGridView1.Location = New System.Drawing.Point(12, 39)
162
-        Me.DataGridView1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
163
-        Me.DataGridView1.Name = "DataGridView1"
164
-        Me.DataGridView1.RowHeadersWidth = 5
165
-        DataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
166
-        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle10
167
-        Me.DataGridView1.RowTemplate.Height = 24
168
-        Me.DataGridView1.Size = New System.Drawing.Size(475, 924)
169
-        Me.DataGridView1.TabIndex = 676
164
+        Me.樣品單_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
165
+        Me.樣品單_dgv.Location = New System.Drawing.Point(12, 39)
166
+        Me.樣品單_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
167
+        Me.樣品單_dgv.Name = "樣品單_dgv"
168
+        Me.樣品單_dgv.RowHeadersWidth = 5
169
+        DataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
170
+        Me.樣品單_dgv.RowsDefaultCellStyle = DataGridViewCellStyle1
171
+        Me.樣品單_dgv.RowTemplate.Height = 24
172
+        Me.樣品單_dgv.Size = New System.Drawing.Size(475, 924)
173
+        Me.樣品單_dgv.TabIndex = 676
170 174
         '
171 175
         'Button9
172 176
         '
@@ -231,16 +235,16 @@ Partial Class 樣品單控制表
231 235
         '
232 236
         Me.ComboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
233 237
         Me.ComboBox2.FormattingEnabled = True
234
-        Me.ComboBox2.Location = New System.Drawing.Point(1315, 186)
238
+        Me.ComboBox2.Location = New System.Drawing.Point(549, 238)
235 239
         Me.ComboBox2.Name = "ComboBox2"
236
-        Me.ComboBox2.Size = New System.Drawing.Size(236, 24)
240
+        Me.ComboBox2.Size = New System.Drawing.Size(280, 24)
237 241
         Me.ComboBox2.TabIndex = 684
238 242
         '
239 243
         'Label3
240 244
         '
241 245
         Me.Label3.AutoSize = True
242 246
         Me.Label3.ForeColor = System.Drawing.Color.Red
243
-        Me.Label3.Location = New System.Drawing.Point(1274, 189)
247
+        Me.Label3.Location = New System.Drawing.Point(508, 241)
244 248
         Me.Label3.Name = "Label3"
245 249
         Me.Label3.Size = New System.Drawing.Size(39, 16)
246 250
         Me.Label3.TabIndex = 685
@@ -465,15 +469,15 @@ Partial Class 樣品單控制表
465 469
         '
466 470
         'DataGridView2
467 471
         '
468
-        DataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
469
-        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle11
472
+        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
473
+        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
470 474
         Me.DataGridView2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
471 475
         Me.DataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
472
-        Me.DataGridView2.Location = New System.Drawing.Point(1182, 33)
476
+        Me.DataGridView2.Location = New System.Drawing.Point(1182, 32)
473 477
         Me.DataGridView2.Name = "DataGridView2"
474 478
         Me.DataGridView2.RowHeadersWidth = 5
475 479
         Me.DataGridView2.RowTemplate.Height = 24
476
-        Me.DataGridView2.Size = New System.Drawing.Size(511, 151)
480
+        Me.DataGridView2.Size = New System.Drawing.Size(511, 126)
477 481
         Me.DataGridView2.TabIndex = 708
478 482
         '
479 483
         'Button13
@@ -558,7 +562,7 @@ Partial Class 樣品單控制表
558 562
         'Label28
559 563
         '
560 564
         Me.Label28.AutoSize = True
561
-        Me.Label28.Location = New System.Drawing.Point(1471, 269)
565
+        Me.Label28.Location = New System.Drawing.Point(1469, 269)
562 566
         Me.Label28.Name = "Label28"
563 567
         Me.Label28.Size = New System.Drawing.Size(44, 16)
564 568
         Me.Label28.TabIndex = 723
@@ -567,7 +571,7 @@ Partial Class 樣品單控制表
567 571
         'Label27
568 572
         '
569 573
         Me.Label27.AutoSize = True
570
-        Me.Label27.Location = New System.Drawing.Point(1245, 269)
574
+        Me.Label27.Location = New System.Drawing.Point(1243, 269)
571 575
         Me.Label27.Name = "Label27"
572 576
         Me.Label27.Size = New System.Drawing.Size(32, 16)
573 577
         Me.Label27.TabIndex = 722
@@ -575,7 +579,7 @@ Partial Class 樣品單控制表
575 579
         '
576 580
         'TextBox17
577 581
         '
578
-        Me.TextBox17.Location = New System.Drawing.Point(1276, 266)
582
+        Me.TextBox17.Location = New System.Drawing.Point(1274, 266)
579 583
         Me.TextBox17.Name = "TextBox17"
580 584
         Me.TextBox17.Size = New System.Drawing.Size(196, 23)
581 585
         Me.TextBox17.TabIndex = 721
@@ -583,7 +587,7 @@ Partial Class 樣品單控制表
583 587
         'Button15
584 588
         '
585 589
         Me.Button15.ForeColor = System.Drawing.Color.Red
586
-        Me.Button15.Location = New System.Drawing.Point(1181, 266)
590
+        Me.Button15.Location = New System.Drawing.Point(1179, 266)
587 591
         Me.Button15.Name = "Button15"
588 592
         Me.Button15.Size = New System.Drawing.Size(63, 23)
589 593
         Me.Button15.TabIndex = 720
@@ -731,8 +735,8 @@ Partial Class 樣品單控制表
731 735
         '
732 736
         'DataGridView5
733 737
         '
734
-        DataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
735
-        Me.DataGridView5.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle12
738
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
739
+        Me.DataGridView5.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
736 740
         Me.DataGridView5.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
737 741
         Me.DataGridView5.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
738 742
         Me.DataGridView5.Location = New System.Drawing.Point(493, 823)
@@ -768,9 +772,9 @@ Partial Class 樣品單控制表
768 772
         '
769 773
         Me.Button21.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
770 774
         Me.Button21.ForeColor = System.Drawing.Color.Black
771
-        Me.Button21.Location = New System.Drawing.Point(1854, 211)
775
+        Me.Button21.Location = New System.Drawing.Point(1831, 211)
772 776
         Me.Button21.Name = "Button21"
773
-        Me.Button21.Size = New System.Drawing.Size(47, 51)
777
+        Me.Button21.Size = New System.Drawing.Size(70, 51)
774 778
         Me.Button21.TabIndex = 740
775 779
         Me.Button21.Text = "重新" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "排序"
776 780
         Me.Button21.UseVisualStyleBackColor = True
@@ -986,9 +990,9 @@ Partial Class 樣品單控制表
986 990
         '
987 991
         Me.Button28.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
988 992
         Me.Button28.ForeColor = System.Drawing.Color.Olive
989
-        Me.Button28.Location = New System.Drawing.Point(1557, 185)
993
+        Me.Button28.Location = New System.Drawing.Point(1699, 211)
990 994
         Me.Button28.Name = "Button28"
991
-        Me.Button28.Size = New System.Drawing.Size(137, 25)
995
+        Me.Button28.Size = New System.Drawing.Size(130, 25)
992 996
         Me.Button28.TabIndex = 751
993 997
         Me.Button28.Text = "新增客戶清單"
994 998
         Me.Button28.UseVisualStyleBackColor = True
@@ -1017,9 +1021,9 @@ Partial Class 樣品單控制表
1017 1021
         '
1018 1022
         Me.Button30.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1019 1023
         Me.Button30.ForeColor = System.Drawing.Color.Blue
1020
-        Me.Button30.Location = New System.Drawing.Point(1750, 238)
1024
+        Me.Button30.Location = New System.Drawing.Point(1739, 237)
1021 1025
         Me.Button30.Name = "Button30"
1022
-        Me.Button30.Size = New System.Drawing.Size(103, 24)
1026
+        Me.Button30.Size = New System.Drawing.Size(90, 26)
1023 1027
         Me.Button30.TabIndex = 754
1024 1028
         Me.Button30.Text = "指定資料寫入"
1025 1029
         Me.Button30.UseVisualStyleBackColor = True
@@ -1079,7 +1083,7 @@ Partial Class 樣品單控制表
1079 1083
         'Label24
1080 1084
         '
1081 1085
         Me.Label24.AutoSize = True
1082
-        Me.Label24.Location = New System.Drawing.Point(981, 242)
1086
+        Me.Label24.Location = New System.Drawing.Point(985, 242)
1083 1087
         Me.Label24.Name = "Label24"
1084 1088
         Me.Label24.Size = New System.Drawing.Size(44, 16)
1085 1089
         Me.Label24.TabIndex = 762
@@ -1089,7 +1093,7 @@ Partial Class 樣品單控制表
1089 1093
         '
1090 1094
         Me.ComboBox13.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1091 1095
         Me.ComboBox13.FormattingEnabled = True
1092
-        Me.ComboBox13.Location = New System.Drawing.Point(1183, 238)
1096
+        Me.ComboBox13.Location = New System.Drawing.Point(1180, 238)
1093 1097
         Me.ComboBox13.Name = "ComboBox13"
1094 1098
         Me.ComboBox13.Size = New System.Drawing.Size(377, 24)
1095 1099
         Me.ComboBox13.TabIndex = 763
@@ -1098,7 +1102,7 @@ Partial Class 樣品單控制表
1098 1102
         '
1099 1103
         Me.ComboBox14.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1100 1104
         Me.ComboBox14.FormattingEnabled = True
1101
-        Me.ComboBox14.Location = New System.Drawing.Point(1566, 238)
1105
+        Me.ComboBox14.Location = New System.Drawing.Point(1559, 238)
1102 1106
         Me.ComboBox14.Name = "ComboBox14"
1103 1107
         Me.ComboBox14.Size = New System.Drawing.Size(178, 24)
1104 1108
         Me.ComboBox14.TabIndex = 764
@@ -1137,11 +1141,11 @@ Partial Class 樣品單控制表
1137 1141
         'TextBox10
1138 1142
         '
1139 1143
         Me.TextBox10.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
1140
-        Me.TextBox10.Location = New System.Drawing.Point(1182, 212)
1144
+        Me.TextBox10.Location = New System.Drawing.Point(1180, 212)
1141 1145
         Me.TextBox10.Multiline = True
1142 1146
         Me.TextBox10.Name = "TextBox10"
1143 1147
         Me.TextBox10.ScrollBars = System.Windows.Forms.ScrollBars.Both
1144
-        Me.TextBox10.Size = New System.Drawing.Size(671, 24)
1148
+        Me.TextBox10.Size = New System.Drawing.Size(517, 24)
1145 1149
         Me.TextBox10.TabIndex = 768
1146 1150
         '
1147 1151
         'ComboBox16
@@ -1172,13 +1176,13 @@ Partial Class 樣品單控制表
1172 1176
         Me.TextBox11.Multiline = True
1173 1177
         Me.TextBox11.Name = "TextBox11"
1174 1178
         Me.TextBox11.ScrollBars = System.Windows.Forms.ScrollBars.Both
1175
-        Me.TextBox11.Size = New System.Drawing.Size(511, 24)
1179
+        Me.TextBox11.Size = New System.Drawing.Size(452, 24)
1176 1180
         Me.TextBox11.TabIndex = 771
1177 1181
         '
1178 1182
         'Label31
1179 1183
         '
1180 1184
         Me.Label31.AutoSize = True
1181
-        Me.Label31.Location = New System.Drawing.Point(718, 241)
1185
+        Me.Label31.Location = New System.Drawing.Point(1414, 190)
1182 1186
         Me.Label31.Name = "Label31"
1183 1187
         Me.Label31.Size = New System.Drawing.Size(117, 16)
1184 1188
         Me.Label31.TabIndex = 775
@@ -1186,16 +1190,16 @@ Partial Class 樣品單控制表
1186 1190
         '
1187 1191
         'TextBox12
1188 1192
         '
1189
-        Me.TextBox12.Location = New System.Drawing.Point(832, 238)
1193
+        Me.TextBox12.Location = New System.Drawing.Point(1533, 187)
1190 1194
         Me.TextBox12.Name = "TextBox12"
1191
-        Me.TextBox12.Size = New System.Drawing.Size(132, 23)
1195
+        Me.TextBox12.Size = New System.Drawing.Size(164, 23)
1192 1196
         Me.TextBox12.TabIndex = 774
1193 1197
         '
1194 1198
         'ComboBox17
1195 1199
         '
1196 1200
         Me.ComboBox17.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1197 1201
         Me.ComboBox17.FormattingEnabled = True
1198
-        Me.ComboBox17.Location = New System.Drawing.Point(549, 238)
1202
+        Me.ComboBox17.Location = New System.Drawing.Point(1239, 160)
1199 1203
         Me.ComboBox17.Name = "ComboBox17"
1200 1204
         Me.ComboBox17.Size = New System.Drawing.Size(169, 24)
1201 1205
         Me.ComboBox17.TabIndex = 772
@@ -1204,17 +1208,57 @@ Partial Class 樣品單控制表
1204 1208
         '
1205 1209
         Me.Label32.AutoSize = True
1206 1210
         Me.Label32.ForeColor = System.Drawing.Color.Red
1207
-        Me.Label32.Location = New System.Drawing.Point(492, 241)
1211
+        Me.Label32.Location = New System.Drawing.Point(1182, 163)
1208 1212
         Me.Label32.Name = "Label32"
1209 1213
         Me.Label32.Size = New System.Drawing.Size(56, 16)
1210 1214
         Me.Label32.TabIndex = 773
1211 1215
         Me.Label32.Text = "楦頭編號"
1212 1216
         '
1217
+        'ComboBox18
1218
+        '
1219
+        Me.ComboBox18.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1220
+        Me.ComboBox18.FormattingEnabled = True
1221
+        Me.ComboBox18.Location = New System.Drawing.Point(888, 238)
1222
+        Me.ComboBox18.Name = "ComboBox18"
1223
+        Me.ComboBox18.Size = New System.Drawing.Size(97, 24)
1224
+        Me.ComboBox18.TabIndex = 776
1225
+        '
1226
+        'Label33
1227
+        '
1228
+        Me.Label33.AutoSize = True
1229
+        Me.Label33.Location = New System.Drawing.Point(831, 242)
1230
+        Me.Label33.Name = "Label33"
1231
+        Me.Label33.Size = New System.Drawing.Size(56, 16)
1232
+        Me.Label33.TabIndex = 777
1233
+        Me.Label33.Text = "廠商類別"
1234
+        '
1235
+        'ComboBox19
1236
+        '
1237
+        Me.ComboBox19.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1238
+        Me.ComboBox19.FormattingEnabled = True
1239
+        Me.ComboBox19.Location = New System.Drawing.Point(1239, 186)
1240
+        Me.ComboBox19.Name = "ComboBox19"
1241
+        Me.ComboBox19.Size = New System.Drawing.Size(169, 24)
1242
+        Me.ComboBox19.TabIndex = 778
1243
+        '
1244
+        'Label34
1245
+        '
1246
+        Me.Label34.AutoSize = True
1247
+        Me.Label34.ForeColor = System.Drawing.Color.Red
1248
+        Me.Label34.Location = New System.Drawing.Point(1182, 189)
1249
+        Me.Label34.Name = "Label34"
1250
+        Me.Label34.Size = New System.Drawing.Size(56, 16)
1251
+        Me.Label34.TabIndex = 779
1252
+        Me.Label34.Text = "模具編號"
1253
+        '
1213 1254
         '樣品單控制表
1214 1255
         '
1215 1256
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
1216 1257
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
1217 1258
         Me.ClientSize = New System.Drawing.Size(1914, 971)
1259
+        Me.Controls.Add(Me.ComboBox19)
1260
+        Me.Controls.Add(Me.Label34)
1261
+        Me.Controls.Add(Me.ComboBox18)
1218 1262
         Me.Controls.Add(Me.TextBox12)
1219 1263
         Me.Controls.Add(Me.ComboBox17)
1220 1264
         Me.Controls.Add(Me.Label32)
@@ -1238,7 +1282,7 @@ Partial Class 樣品單控制表
1238 1282
         Me.Controls.Add(Me.ComboBox10)
1239 1283
         Me.Controls.Add(Me.Button28)
1240 1284
         Me.Controls.Add(Me.DataGridView6)
1241
-        Me.Controls.Add(Me.DataGridView1)
1285
+        Me.Controls.Add(Me.樣品單_dgv)
1242 1286
         Me.Controls.Add(Me.CheckBox1)
1243 1287
         Me.Controls.Add(Me.GroupBox1)
1244 1288
         Me.Controls.Add(Me.Button23)
@@ -1314,11 +1358,12 @@ Partial Class 樣品單控制表
1314 1358
         Me.Controls.Add(Me.Label27)
1315 1359
         Me.Controls.Add(Me.DataGridView2)
1316 1360
         Me.Controls.Add(Me.Label31)
1361
+        Me.Controls.Add(Me.Label33)
1317 1362
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1318 1363
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
1319 1364
         Me.Name = "樣品單控制表"
1320 1365
         Me.Text = "樣品單控制"
1321
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
1366
+        CType(Me.樣品單_dgv, System.ComponentModel.ISupportInitialize).EndInit()
1322 1367
         CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).EndInit()
1323 1368
         CType(Me.DataGridView3, System.ComponentModel.ISupportInitialize).EndInit()
1324 1369
         CType(Me.DataGridView4, System.ComponentModel.ISupportInitialize).EndInit()
@@ -1333,7 +1378,7 @@ Partial Class 樣品單控制表
1333 1378
     End Sub
1334 1379
 
1335 1380
     Friend WithEvents Label26 As Label
1336
-    Friend WithEvents DataGridView1 As DataGridView
1381
+    Friend WithEvents 樣品單_dgv As DataGridView
1337 1382
     Friend WithEvents Button9 As Button
1338 1383
     Friend WithEvents Button32 As Button
1339 1384
     Friend WithEvents Label2 As Label
@@ -1442,4 +1487,8 @@ Partial Class 樣品單控制表
1442 1487
     Friend WithEvents TextBox12 As TextBox
1443 1488
     Friend WithEvents ComboBox17 As ComboBox
1444 1489
     Friend WithEvents Label32 As Label
1490
+    Friend WithEvents ComboBox18 As ComboBox
1491
+    Friend WithEvents Label33 As Label
1492
+    Friend WithEvents ComboBox19 As ComboBox
1493
+    Friend WithEvents Label34 As Label
1445 1494
 End Class

+ 86
- 63
SHENKANG-MES-SYS/樣品訂單管理系統/樣品單控制表.vb 查看文件

@@ -12,36 +12,39 @@ Public Class 樣品單控制表
12 12
     Dim NUM1 As Integer
13 13
     Dim 新增文件 As Boolean
14 14
     Private Sub Set_清單()
15
-        DataGridView1.DataSource = Nothing : ds.Clear()
16
-        DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
17
-        DataGridView1.ColumnHeadersHeight = 25
18
-        DataGridView1.AllowUserToAddRows = False
19
-        DataGridView1.RowTemplate.Height = 50
15
+        樣品單_dgv.DataSource = Nothing : ds.Clear()
16
+        樣品單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
17
+        樣品單_dgv.ColumnHeadersHeight = 25
18
+        樣品單_dgv.AllowUserToAddRows = False
19
+        樣品單_dgv.RowTemplate.Height = 50
20 20
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
21 21
         If PA = "" Then
22
-            SQL1 = "SELECT SO, 季節, 客戶, 型體號碼, 型體名稱, 國家, 狀態, ISS_DATE, ETA, 數量, 制單人, LEFT(制單時間, 10) AS 制單時間, 版次, 工廠, REQ, C_N, 中底, 楦頭編號 FROM 樣品訂單控制表 
23
-                    WHERE 狀態 LIKE N'" & 樣品進度表分類3 & "' ORDER BY SO DESC, 版次 DESC"
22
+            SQL1 = "SELECT   SO, 季節, 客戶, 型體號碼, 型體名稱, 國家, 狀態, ISS_DATE, ETA, 數量, 制單人, LEFT(制單時間, 10) AS 制單時間, 版次, 工廠, REQ, C_N, 中底, 楦頭編號, 模具編號 
23
+                    FROM     樣品訂單控制表 
24
+                    WHERE    狀態 LIKE N'" & 樣品進度表分類3 & "' 
25
+                    ORDER BY SO DESC, 版次 DESC"
24 26
         Else
25
-            SQL1 = "SELECT SO, 季節, 客戶, 型體號碼, 型體名稱, 國家, 狀態, ISS_DATE, ETA, 數量, 制單人, LEFT(制單時間, 10) AS 制單時間, 版次, 工廠, REQ, C_N, 中底, 楦頭編號 FROM 樣品訂單控制表 
26
-                    WHERE ((SO LIKE N'%" & PA & "%') OR (季節 LIKE N'%" & PA & "%') OR (客戶 LIKE N'%" & PA & "%') OR (型體號碼 LIKE N'%" & PA & "%') 
27
-                    OR (型體名稱 LIKE N'%" & PA & "%') OR (國家 LIKE N'%" & PA & "%') OR (狀態 LIKE N'%" & PA & "%') OR (ISS_DATE LIKE N'%" & PA & "%') OR (ETA LIKE N'%" & PA & "%')) 
28
-                    ORDER BY   SO DESC, 版次 DESC"
27
+            SQL1 = "SELECT   SO, 季節, 客戶, 型體號碼, 型體名稱, 國家, 狀態, ISS_DATE, ETA, 數量, 制單人, LEFT(制單時間, 10) AS 制單時間, 版次, 工廠, REQ, C_N, 中底, 楦頭編號, 模具編號 
28
+                    FROM     樣品訂單控制表 
29
+                    WHERE  ((SO LIKE N'%" & PA & "%') OR (季節 LIKE N'%" & PA & "%') OR (客戶 LIKE N'%" & PA & "%') OR (型體號碼 LIKE N'%" & PA & "%') 
30
+                             OR (型體名稱 LIKE N'%" & PA & "%') OR (國家 LIKE N'%" & PA & "%') OR (狀態 LIKE N'%" & PA & "%') OR (ISS_DATE LIKE N'%" & PA & "%') OR (ETA LIKE N'%" & PA & "%')) 
31
+                    ORDER BY SO DESC, 版次 DESC"
29 32
         End If
30
-        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds) : DataGridView1.DataSource = ds.Tables(0) : conn.Close() : Set_grid()
33
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds) : 樣品單_dgv.DataSource = ds.Tables(0) : conn.Close() : Set_grid()
31 34
     End Sub
32 35
     Private Sub Set_grid()
33 36
         If CheckBox1.Checked = False Then
34
-            DataGridView1.Size = New Size(475, 924)
35
-            DataGridView1.Columns(0).Width = 55 : DataGridView1.Columns(1).Width = 65 : DataGridView1.Columns(2).Width = 125 : DataGridView1.Columns(3).Width = 80 : DataGridView1.Columns(4).Width = 80
37
+            樣品單_dgv.Size = New Size(475, 924)
38
+            樣品單_dgv.Columns(0).Width = 55 : 樣品單_dgv.Columns(1).Width = 65 : 樣品單_dgv.Columns(2).Width = 125 : 樣品單_dgv.Columns(3).Width = 80 : 樣品單_dgv.Columns(4).Width = 80
36 39
         Else
37
-            DataGridView1.Size = New Size(660, 924)
38
-            DataGridView1.Columns(0).Width = 55 : DataGridView1.Columns(1).Width = 65 : DataGridView1.Columns(2).Width = 170 : DataGridView1.Columns(3).Width = 150 : DataGridView1.Columns(4).Width = 150
40
+            樣品單_dgv.Size = New Size(660, 924)
41
+            樣品單_dgv.Columns(0).Width = 55 : 樣品單_dgv.Columns(1).Width = 65 : 樣品單_dgv.Columns(2).Width = 170 : 樣品單_dgv.Columns(3).Width = 150 : 樣品單_dgv.Columns(4).Width = 150
39 42
         End If
40 43
 
41
-        DataGridView1.Columns(5).Visible = False : DataGridView1.Columns(6).Visible = False : DataGridView1.Columns(7).Visible = False : DataGridView1.Columns(8).Visible = False
42
-        DataGridView1.Columns(9).Visible = False : DataGridView1.Columns(10).Visible = False : DataGridView1.Columns(11).Visible = False : DataGridView1.Columns(12).Width = 45
43
-        DataGridView1.Columns(13).Visible = False : DataGridView1.Columns(14).Visible = False : DataGridView1.Columns(15).Visible = False : DataGridView1.Columns(16).Visible = False
44
-        DataGridView1.Columns(17).Visible = False
44
+        樣品單_dgv.Columns(5).Visible = False : 樣品單_dgv.Columns(6).Visible = False : 樣品單_dgv.Columns(7).Visible = False : 樣品單_dgv.Columns(8).Visible = False
45
+        樣品單_dgv.Columns(9).Visible = False : 樣品單_dgv.Columns(10).Visible = False : 樣品單_dgv.Columns(11).Visible = False : 樣品單_dgv.Columns(12).Width = 45
46
+        樣品單_dgv.Columns(13).Visible = False : 樣品單_dgv.Columns(14).Visible = False : 樣品單_dgv.Columns(15).Visible = False : 樣品單_dgv.Columns(16).Visible = False
47
+        樣品單_dgv.Columns(17).Visible = False : 樣品單_dgv.Columns(18).Visible = False
45 48
     End Sub
46 49
     Private Sub Set_清單1()
47 50
         DataGridView2.DataSource = Nothing : ds1.Clear()
@@ -69,13 +72,14 @@ Public Class 樣品單控制表
69 72
         SQL1 = "SELECT 樣品訂單清單.項次, 樣品訂單部件表.部件, 樣品訂單部件表.材料名稱, 樣品訂單部件表.材料說明 AS 顏色, 樣品訂單部件表.廠商, 樣品訂單部件表.備註, " &
70 73
                "樣品訂單部件表.版次, 樣品訂單部件表.流水號, 樣品訂單部件表.項次 AS 排列 " &
71 74
                "FROM 樣品訂單部件表 INNER JOIN 樣品訂單清單 ON 樣品訂單部件表.流水號 = 樣品訂單清單.流水號 " &
72
-               "WHERE (樣品訂單部件表.SO LIKE N'" & TextBox1.Text & "') AND (樣品訂單部件表.版次 LIKE N'" & TextBox3.Text & "') ORDER BY   樣品訂單部件表.流水號, 樣品訂單部件表.項次, 樣品訂單部件表.部件"
75
+               "WHERE (樣品訂單部件表.SO LIKE N'" & TextBox1.Text & "') AND (樣品訂單部件表.版次 LIKE N'" & TextBox3.Text & "') 
76
+                ORDER BY   樣品訂單部件表.流水號, 樣品訂單部件表.項次, 樣品訂單部件表.部件"
73 77
         cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds2) : DataGridView3.DataSource = ds2.Tables(0) : conn.Close()
74 78
         Set_DGV2下拉式清單3()
75 79
 
76
-        DataGridView3.Columns(0).Width = 40 : DataGridView3.Columns(1).Width = 200 : DataGridView3.Columns(2).Width = 300 : DataGridView3.Columns(3).Width = 171 : DataGridView3.Columns(4).Visible = False
77
-        DataGridView3.Columns(5).Width = 100 : DataGridView3.Columns(6).Width = 532 : DataGridView3.Columns(7).Visible = False : DataGridView3.Columns(8).Visible = False
78
-        DataGridView3.Columns(9).Width = 40
80
+        DataGridView3.Columns(0).Width = 40 : DataGridView3.Columns(1).Width = 200 : DataGridView3.Columns(2).Width = 300 : DataGridView3.Columns(3).Width = 171
81
+        DataGridView3.Columns(4).Visible = False : DataGridView3.Columns(5).Width = 100 : DataGridView3.Columns(6).Width = 532 : DataGridView3.Columns(7).Visible = False
82
+        DataGridView3.Columns(8).Visible = False : DataGridView3.Columns(9).Width = 40
79 83
         DataGridView3.EditMode = DataGridViewEditMode.EditOnEnter
80 84
         TextBox9.Text = DataGridView3.Rows.Count
81 85
     End Sub
@@ -166,7 +170,7 @@ Public Class 樣品單控制表
166 170
     Private Sub ComboBox12下拉表單資料載入()
167 171
         conn.Close()
168 172
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
169
-        SQL1 = "SELECT 廠商 FROM 供應商清單 ORDER BY 廠商"
173
+        SQL1 = "SELECT 廠商 FROM 供應商清單 WHERE 公司傳真3 LIKE '" & ComboBox18.Text & "' AND 停用 = 0 ORDER BY 廠商"
170 174
         cmd.CommandText = SQL1 : cmd.Connection = conn : dr = cmd.ExecuteReader
171 175
         ComboBox12.Items.Clear() : While (dr.Read()) : ComboBox12.Items.Add(dr("廠商")) : End While : conn.Close()
172 176
     End Sub
@@ -211,15 +215,30 @@ Public Class 樣品單控制表
211 215
         cmd.CommandText = SQL1 : cmd.Connection = conn : dr = cmd.ExecuteReader
212 216
         ComboBox17.Items.Clear() : While (dr.Read()) : ComboBox17.Items.Add(dr("楦頭編號")) : End While : conn.Close()
213 217
     End Sub
214
-    Private Sub ComboBox17_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox17.TextChanged
218
+    Private Sub ComboBox19下拉表單資料載入()
219
+        conn.Close()
220
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
221
+        SQL1 = "SELECT CN, 模具編號 FROM 模具開發控制表 GROUP BY CN, 模具編號 ORDER BY 模具編號, CN"
222
+        cmd.CommandText = SQL1 : cmd.Connection = conn : dr = cmd.ExecuteReader
223
+        ComboBox19.Items.Clear() : While (dr.Read()) : ComboBox19.Items.Add(dr("模具編號")) : End While : conn.Close()
224
+    End Sub
225
+    Private Sub ComboBox18下拉表單資料載入()
215 226
         conn.Close()
216 227
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
217
-        SQL1 = "SELECT 楦頭名 FROM 楦頭規格控制表 WHERE 楦頭編號 LIKE N'" & ComboBox17.Text & "'"
228
+        SQL1 = "SELECT 公司傳真3 AS 類別 FROM 供應商清單 GROUP BY 公司傳真3 ORDER BY 公司傳真3"
229
+        cmd.CommandText = SQL1 : cmd.Connection = conn : dr = cmd.ExecuteReader
230
+        ComboBox18.Items.Clear() : While (dr.Read()) : ComboBox18.Items.Add(dr("類別")) : End While : conn.Close()
231
+    End Sub
232
+    Private Sub ComboBox19_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox19.TextChanged
233
+        conn.Close()
234
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
235
+        SQL1 = "SELECT CN FROM 模具開發控制表 WHERE 模具編號 LIKE N'" & ComboBox19.Text & "'"
218 236
         cmd.CommandText = SQL1 : cmd.Connection = conn : dr = cmd.ExecuteReader
219 237
         If dr.Read() Then
220
-            TextBox12.Text = dr("楦頭名")
238
+            TextBox12.Text = dr("CN")
221 239
         End If : conn.Close()
222 240
     End Sub
241
+
223 242
     Private Sub Set_DGV2下拉式清單1()
224 243
         If DataGridView2.Columns.Count.ToString = 32 Then
225 244
             DataGridView2.Columns.Remove("顏色")
@@ -265,7 +284,7 @@ Public Class 樣品單控制表
265 284
     Private Sub 樣品單控制表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
266 285
         Me.MdiParent = WINPROFIT_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
267 286
         ComboBox1下拉表單資料載入() : ComboBox2下拉表單資料載入() : ComboBox3下拉表單資料載入() : ComboBox6下拉表單資料載入() : ComboBox16下拉表單資料載入() : ComboBox17下拉表單資料載入()
268
-        ComboBox7下拉表單資料載入() : ComboBox8下拉表單資料載入() : ComboBox9下拉表單資料載入() : ComboBox12下拉表單資料載入() : ComboBox15下拉表單資料載入()
287
+        ComboBox7下拉表單資料載入() : ComboBox8下拉表單資料載入() : ComboBox9下拉表單資料載入() : ComboBox15下拉表單資料載入() : ComboBox18下拉表單資料載入() : ComboBox19下拉表單資料載入()
269 288
         DateTimePicker1.Format = DateTimePickerFormat.Custom : DateTimePicker1.CustomFormat = " " : DateTimePicker2.Format = DateTimePickerFormat.Custom : DateTimePicker2.CustomFormat = " "
270 289
         TextBox1.Enabled = False : TextBox3.Enabled = False : TextBox2.Enabled = False : TextBox4.Enabled = False : TextBox17.Enabled = False : TextBox5.Visible = False
271 290
         Button11.Enabled = False : Button6.Enabled = False : Button7.Enabled = False : Button8.Enabled = False : Button15.Enabled = False : Label62.Visible = False
@@ -292,15 +311,15 @@ Public Class 樣品單控制表
292 311
     Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
293 312
         If Label62.Visible = True Then : Label62.Visible = False : Else : Label62.Visible = True : End If
294 313
     End Sub
295
-    Private Sub DataGridView1_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles DataGridView1.RowPostPaint
314
+    Private Sub DataGridView1_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 樣品單_dgv.RowPostPaint
296 315
         Dim linePen As New Pen(Color.Blue, 2)
297
-        If e.RowIndex = DataGridView1.Rows.Count - 1 Then
316
+        If e.RowIndex = 樣品單_dgv.Rows.Count - 1 Then
298 317
             Exit Sub
299 318
         Else
300
-            If DataGridView1(0, e.RowIndex).Value.ToString <> DataGridView1(0, e.RowIndex + 1).Value.ToString Then
301
-                Dim startX As Integer = IIf(DataGridView1.RowHeadersVisible, DataGridView1.RowHeadersWidth, 0)
319
+            If 樣品單_dgv(0, e.RowIndex).Value.ToString <> 樣品單_dgv(0, e.RowIndex + 1).Value.ToString Then
320
+                Dim startX As Integer = IIf(樣品單_dgv.RowHeadersVisible, 樣品單_dgv.RowHeadersWidth, 0)
302 321
                 Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
303
-                Dim endX As Integer = startX + DataGridView1.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - DataGridView1.HorizontalScrollingOffset
322
+                Dim endX As Integer = startX + 樣品單_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 樣品單_dgv.HorizontalScrollingOffset
304 323
                 e.Graphics.DrawLine(linePen, startX, startY, endX, startY)
305 324
                 Exit Sub
306 325
             End If
@@ -320,23 +339,23 @@ Public Class 樣品單控制表
320 339
             End If
321 340
         End If
322 341
     End Sub
323
-    Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView1.CellClick
342
+    Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 樣品單_dgv.CellClick
324 343
         If e.RowIndex = -1 Then : Else
325 344
             If Button11.Enabled = False Then
326
-                TextBox7.Text = "" : TextBox10.Text = "" : TextBox11.Text = ""
345
+                TextBox7.Text = "" : TextBox10.Text = "" : TextBox11.Text = "" : TextBox12.Text = ""
327 346
                 ComboBox1下拉表單資料載入() : ComboBox2下拉表單資料載入() : ComboBox3下拉表單資料載入() : ComboBox7下拉表單資料載入()
328
-                ComboBox8下拉表單資料載入() : ComboBox15下拉表單資料載入() : ComboBox16下拉表單資料載入() : ComboBox17下拉表單資料載入()
329
-                TextBox1.Text = DataGridView1(0, e.RowIndex).Value.ToString : ComboBox7.Text = DataGridView1(1, e.RowIndex).Value.ToString : ComboBox2.Text = DataGridView1(2, e.RowIndex).Value.ToString
330
-                ComboBox4.Text = DataGridView1(3, e.RowIndex).Value.ToString : ComboBox5.Text = DataGridView1(4, e.RowIndex).Value.ToString : ComboBox1.Text = DataGridView1(5, e.RowIndex).Value.ToString
331
-                ComboBox3.Text = DataGridView1(6, e.RowIndex).Value.ToString : TextBox16.Text = DataGridView1(9, e.RowIndex).Value.ToString : TextBox2.Text = DataGridView1(10, e.RowIndex).Value.ToString
332
-                DateTimePicker3.Value = DataGridView1(11, e.RowIndex).Value.ToString : TextBox3.Text = DataGridView1(12, e.RowIndex).Value.ToString
333
-                ComboBox8.Text = DataGridView1(13, e.RowIndex).Value.ToString : TextBox6.Text = DataGridView1(14, e.RowIndex).Value.ToString : ComboBox17.Text = DataGridView1(17, e.RowIndex).Value.ToString
334
-                ComboBox15.Text = DataGridView1(15, e.RowIndex).Value.ToString : ComboBox16.Text = DataGridView1(16, e.RowIndex).Value.ToString
335
-                DTP1 = DataGridView1(7, e.RowIndex).Value.ToString
347
+                ComboBox8下拉表單資料載入() : ComboBox15下拉表單資料載入() : ComboBox16下拉表單資料載入() : ComboBox17下拉表單資料載入() : ComboBox19下拉表單資料載入()
348
+                TextBox1.Text = 樣品單_dgv(0, e.RowIndex).Value.ToString : ComboBox7.Text = 樣品單_dgv(1, e.RowIndex).Value.ToString : ComboBox2.Text = 樣品單_dgv(2, e.RowIndex).Value.ToString
349
+                ComboBox4.Text = 樣品單_dgv(3, e.RowIndex).Value.ToString : ComboBox5.Text = 樣品單_dgv(4, e.RowIndex).Value.ToString : ComboBox1.Text = 樣品單_dgv(5, e.RowIndex).Value.ToString
350
+                ComboBox3.Text = 樣品單_dgv(6, e.RowIndex).Value.ToString : TextBox16.Text = 樣品單_dgv(9, e.RowIndex).Value.ToString : TextBox2.Text = 樣品單_dgv(10, e.RowIndex).Value.ToString
351
+                DateTimePicker3.Value = 樣品單_dgv(11, e.RowIndex).Value.ToString : TextBox3.Text = 樣品單_dgv(12, e.RowIndex).Value.ToString
352
+                ComboBox8.Text = 樣品單_dgv(13, e.RowIndex).Value.ToString : TextBox6.Text = 樣品單_dgv(14, e.RowIndex).Value.ToString : ComboBox17.Text = 樣品單_dgv(17, e.RowIndex).Value.ToString
353
+                ComboBox15.Text = 樣品單_dgv(15, e.RowIndex).Value.ToString : ComboBox16.Text = 樣品單_dgv(16, e.RowIndex).Value.ToString : ComboBox19.Text = 樣品單_dgv(18, e.RowIndex).Value.ToString
354
+                DTP1 = 樣品單_dgv(7, e.RowIndex).Value.ToString
336 355
                 If DTP1 = "" Then : DateTimePicker2.Format = DateTimePickerFormat.Custom : DateTimePicker2.CustomFormat = " "
337 356
                 Else : DateTimePicker2.Format = DateTimePickerFormat.Short : DateTimePicker2.Text = DTP1 : End If
338 357
 
339
-                DTP2 = DataGridView1(8, e.RowIndex).Value.ToString
358
+                DTP2 = 樣品單_dgv(8, e.RowIndex).Value.ToString
340 359
                 If DTP2 = "" Then : DateTimePicker1.Format = DateTimePickerFormat.Custom : DateTimePicker1.CustomFormat = " "
341 360
                 Else : DateTimePicker1.Format = DateTimePickerFormat.Short : DateTimePicker1.Text = DTP2 : End If
342 361
 
@@ -344,15 +363,15 @@ Public Class 樣品單控制表
344 363
                 PictureBox1.Image = Nothing : conn.Close()
345 364
                 If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
346 365
                 SQL1 = "SELECT TOP(1) 圖片 FROM 鞋型圖片資料庫 " &
347
-                               "WHERE 客戶 LIKE N'" & DataGridView1.Rows(e.RowIndex).Cells("客戶").Value & "' AND 形體號 LIKE N'" & DataGridView1.Rows(e.RowIndex).Cells("型體號碼").Value &
348
-                               "' AND 形體名 LIKE N'" & DataGridView1.Rows(e.RowIndex).Cells("型體名稱").Value & "' AND 類別 LIKE N'設計圖'"
366
+                               "WHERE 客戶 LIKE N'" & 樣品單_dgv.Rows(e.RowIndex).Cells("客戶").Value & "' AND 形體號 LIKE N'" & 樣品單_dgv.Rows(e.RowIndex).Cells("型體號碼").Value &
367
+                               "' AND 形體名 LIKE N'" & 樣品單_dgv.Rows(e.RowIndex).Cells("型體名稱").Value & "' AND 類別 LIKE N'設計圖'"
349 368
                 cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
350 369
                 If dr.Read() Then
351 370
                     PictureBox1.Image = Nothing : conn.Close()
352 371
                     If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
353 372
                     SQL1 = "SELECT TOP(1) 圖片 FROM 鞋型圖片資料庫 " &
354
-                                   "WHERE 客戶 LIKE N'" & DataGridView1.Rows(e.RowIndex).Cells("客戶").Value & "' AND 形體號 LIKE N'" & DataGridView1.Rows(e.RowIndex).Cells("型體號碼").Value &
355
-                                   "' AND 形體名 LIKE N'" & DataGridView1.Rows(e.RowIndex).Cells("型體名稱").Value & "' AND 類別 LIKE N'設計圖'"
373
+                                   "WHERE 客戶 LIKE N'" & 樣品單_dgv.Rows(e.RowIndex).Cells("客戶").Value & "' AND 形體號 LIKE N'" & 樣品單_dgv.Rows(e.RowIndex).Cells("型體號碼").Value &
374
+                                   "' AND 形體名 LIKE N'" & 樣品單_dgv.Rows(e.RowIndex).Cells("型體名稱").Value & "' AND 類別 LIKE N'設計圖'"
356 375
                     cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
357 376
                     While dr.Read() = True
358 377
                         Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
@@ -363,13 +382,13 @@ Public Class 樣品單控制表
363 382
                     PictureBox1.Image = Nothing : conn.Close()
364 383
                     If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
365 384
                     SQL1 = "SELECT TOP(1) 圖片 FROM 鞋型圖片資料庫 " &
366
-                               "WHERE 客戶 LIKE N'" & DataGridView1.Rows(e.RowIndex).Cells("客戶").Value & "' AND 形體號 LIKE N'" & DataGridView1.Rows(e.RowIndex).Cells("型體號碼").Value & "'"
385
+                               "WHERE 客戶 LIKE N'" & 樣品單_dgv.Rows(e.RowIndex).Cells("客戶").Value & "' AND 形體號 LIKE N'" & 樣品單_dgv.Rows(e.RowIndex).Cells("型體號碼").Value & "'"
367 386
                     cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
368 387
                     If dr.Read() Then
369 388
                         PictureBox1.Image = Nothing : conn.Close()
370 389
                         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
371 390
                         SQL1 = "SELECT TOP(1) 圖片 FROM 鞋型圖片資料庫 " &
372
-                                    "WHERE 客戶 LIKE N'" & DataGridView1.Rows(e.RowIndex).Cells("客戶").Value & "' AND 形體號 LIKE N'" & DataGridView1.Rows(e.RowIndex).Cells("型體號碼").Value & "'"
391
+                                    "WHERE 客戶 LIKE N'" & 樣品單_dgv.Rows(e.RowIndex).Cells("客戶").Value & "' AND 形體號 LIKE N'" & 樣品單_dgv.Rows(e.RowIndex).Cells("型體號碼").Value & "'"
373 392
                         cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
374 393
                         While dr.Read() = True
375 394
                             Dim unused1 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
@@ -379,12 +398,12 @@ Public Class 樣品單控制表
379 398
                     Else
380 399
                         PictureBox1.Image = Nothing : conn.Close()
381 400
                         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
382
-                        SQL1 = "SELECT 圖片 FROM 鞋樣素描圖控制表 WHERE 型體編號 LIKE N'" & DataGridView1.Rows(e.RowIndex).Cells("型體號碼").Value & "'"
401
+                        SQL1 = "SELECT 圖片 FROM 鞋樣素描圖控制表 WHERE 型體編號 LIKE N'" & 樣品單_dgv.Rows(e.RowIndex).Cells("型體號碼").Value & "'"
383 402
                         cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
384 403
                         If dr.Read() Then
385 404
                             PictureBox1.Image = Nothing : conn.Close()
386 405
                             If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
387
-                            SQL1 = "SELECT 圖片 FROM 鞋樣素描圖控制表 WHERE 型體編號 LIKE N'" & DataGridView1.Rows(e.RowIndex).Cells("型體號碼").Value & "'"
406
+                            SQL1 = "SELECT 圖片 FROM 鞋樣素描圖控制表 WHERE 型體編號 LIKE N'" & 樣品單_dgv.Rows(e.RowIndex).Cells("型體號碼").Value & "'"
388 407
                             cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
389 408
                             While dr.Read() = True
390 409
                                 Dim unused2 As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
@@ -615,10 +634,10 @@ Public Class 樣品單控制表
615 634
     End Sub
616 635
     Private Sub 新增準備2()
617 636
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
618
-        SQL1 = "INSERT INTO 樣品訂單控制表 (SO, 季節, 客戶, 型體號碼, 型體名稱, 國家, 狀態, ISS_DATE, ETA, 數量, 制單人, 制單時間, 版次, 工廠, REQ, C_N, 中底, 楦頭編號) " &
637
+        SQL1 = "INSERT INTO 樣品訂單控制表 (SO, 季節, 客戶, 型體號碼, 型體名稱, 國家, 狀態, ISS_DATE, ETA, 數量, 制單人, 制單時間, 版次, 工廠, REQ, C_N, 中底, 楦頭編號, 模具編號) " &
619 638
                "VALUES (N'" & TextBox1.Text & "', N'" & ComboBox7.Text & "', N'" & ComboBox2.Text & "', N'" & ComboBox4.Text & "', N'" & ComboBox5.Text & "', N'" & ComboBox1.Text &
620 639
                "', N'" & ComboBox3.Text & "', N'" & DTP1 & "', N'" & DTP2 & "', N'" & TextBox16.Text & "', N'" & gUserName & "', N'" & DTP3 & "', N'V01', N'" & ComboBox8.Text &
621
-               "', N'" & TextBox6.Text & "', N'" & ComboBox15.Text & "', N'" & ComboBox16.Text & "', N'" & ComboBox17.Text & "')"
640
+               "', N'" & TextBox6.Text & "', N'" & ComboBox15.Text & "', N'" & ComboBox16.Text & "', N'" & ComboBox17.Text & "', N'" & ComboBox19.Text & "')"
622 641
         cmd.Connection = conn : cmd.CommandText = SQL1 : cmd.ExecuteNonQuery() : conn.Close()
623 642
 
624 643
         新流水號2()
@@ -639,7 +658,7 @@ Public Class 樣品單控制表
639 658
             TextBox3.Text = "V01"
640 659
             新增準備1()
641 660
             DateTimePicker1.Format = DateTimePickerFormat.Custom : DateTimePicker1.CustomFormat = " " : DateTimePicker2.Format = DateTimePickerFormat.Custom : DateTimePicker2.CustomFormat = " "
642
-            ComboBox1下拉表單資料載入() : ComboBox2下拉表單資料載入() : ComboBox3下拉表單資料載入() : ComboBox4下拉表單資料載入()
661
+            ComboBox1下拉表單資料載入() : ComboBox2下拉表單資料載入() : ComboBox3下拉表單資料載入() : ComboBox4下拉表單資料載入() : ComboBox19下拉表單資料載入()
643 662
             ComboBox5下拉表單資料載入() : ComboBox6下拉表單資料載入() : ComboBox7下拉表單資料載入() : ComboBox8下拉表單資料載入() : ComboBox15下拉表單資料載入()
644 663
             TextBox2.Text = gUserName : TextBox4.Text = "" : TextBox5.Text = "" : TextBox16.Text = "0" : TextBox17.Text = "" : TextBox7.Text = "" : TextBox10.Text = ""
645 664
             DataGridView2.DataSource = Nothing : ds1.Clear() : DataGridView3.DataSource = Nothing : ds2.Clear() : DataGridView4.DataSource = Nothing : ds4.Clear()
@@ -649,10 +668,10 @@ Public Class 樣品單控制表
649 668
     End Sub
650 669
     Private Sub 新增準備6()
651 670
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
652
-        SQL1 = "INSERT INTO 樣品訂單控制表 (SO, 季節, 客戶, 型體號碼, 型體名稱, 國家, 狀態, ISS_DATE, ETA, 數量, 制單人, 制單時間, 版次, 工廠, REQ, C_N, 中底, 楦頭編號) " &
671
+        SQL1 = "INSERT INTO 樣品訂單控制表 (SO, 季節, 客戶, 型體號碼, 型體名稱, 國家, 狀態, ISS_DATE, ETA, 數量, 制單人, 制單時間, 版次, 工廠, REQ, C_N, 中底, 楦頭編號, 模具編號) " &
653 672
                "VALUES (N'" & TextBox1.Text & "', N'" & ComboBox7.Text & "', N'" & ComboBox2.Text & "', N'" & ComboBox4.Text & "', N'" & ComboBox5.Text & "', N'" & ComboBox1.Text &
654 673
                "', N'" & ComboBox3.Text & "', N'" & DTP1 & "', N'" & DTP2 & "', N'" & TextBox16.Text & "', N'" & gUserName & "', N'" & DTP3 & "', N'" & TextBox3.Text & "', N'" & ComboBox8.Text &
655
-               "', N'" & TextBox6.Text & "', N'" & ComboBox15.Text & "', N'" & ComboBox16.Text & "', N'" & ComboBox17.Text & "')"
674
+               "', N'" & TextBox6.Text & "', N'" & ComboBox15.Text & "', N'" & ComboBox16.Text & "', N'" & ComboBox17.Text & "', N'" & ComboBox19.Text & "')"
656 675
         cmd.Connection = conn : cmd.CommandText = SQL1 : cmd.ExecuteNonQuery() : conn.Close()
657 676
 
658 677
         For i As Integer = 0 To DataGridView2.Rows.Count - 1
@@ -752,7 +771,8 @@ Public Class 樣品單控制表
752 771
             If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
753 772
             SQL1 = "UPDATE 樣品訂單控制表 SET 季節 = N'" & ComboBox7.Text & "', 客戶 = N'" & ComboBox2.Text & "', 型體號碼 = N'" & ComboBox4.Text & "', 型體名稱 = N'" & ComboBox5.Text &
754 773
                    "', 國家 = N'" & ComboBox1.Text & "', 狀態 = N'" & ComboBox3.Text & "', ISS_DATE = N'" & DTP1 & "', ETA = N'" & DTP2 & "', 數量 = N'" & TextBox16.Text &
755
-                   "', 工廠 = N'" & ComboBox8.Text & "', REQ = N'" & TextBox6.Text & "', C_N = N'" & ComboBox15.Text & "', 中底 = N'" & ComboBox16.Text & "' , 楦頭編號 = N'" & ComboBox17.Text & "' 
774
+                   "', 工廠 = N'" & ComboBox8.Text & "', REQ = N'" & TextBox6.Text & "', C_N = N'" & ComboBox15.Text & "', 中底 = N'" & ComboBox16.Text & "' , 楦頭編號 = N'" & ComboBox17.Text & "' , 
775
+                   模具編號 = N'" & ComboBox19.Text & "' 
756 776
                    WHERE SO LIKE N'" & TextBox1.Text & "' AND 版次  LIKE N'" & TextBox3.Text & "'"
757 777
             cmd.Connection = conn : cmd.CommandText = SQL1 : cmd.ExecuteNonQuery() : conn.Close()
758 778
 
@@ -878,10 +898,10 @@ Public Class 樣品單控制表
878 898
                             If DataGridView6.Rows(ii).Cells("項次").Value = DataGridView2.Rows(i).Cells("項次").Value Then
879 899
                                 PA = DataGridView6.Rows(ii).Cells("流水號").Value
880 900
                                 If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
881
-                                SQL1 = "INSERT INTO  預告訂單部件表 (PAO, 項次, 部件, 材料名稱, 材料說明, 備註, 廠商, 版次, 流水號) VALUES (N'" & 新流水號4 &
882
-                                       "',N'', N'" & DataGridView3.Rows(t).Cells("部件").Value &
883
-                                       "', N'" & DataGridView3.Rows(t).Cells("材料名稱").Value & "', N'" & DataGridView3.Rows(t).Cells("顏色").Value & "', N'" & DataGridView3.Rows(t).Cells("備註").Value &
884
-                                       "', N'" & DataGridView3.Rows(t).Cells("廠商").Value & "', N'V01', N'" & PA & "')"
901
+                                SQL1 = "INSERT INTO  預告訂單部件表 (PAO, 項次, 部件, 材料名稱, 材料說明, 備註, 廠商, 版次, 流水號) VALUES (N'" & 新流水號4 & "',
902
+                                        N'', N'" & DataGridView3.Rows(t).Cells("部件").Value & "', N'" & DataGridView3.Rows(t).Cells("材料名稱").Value & "', 
903
+                                        N'" & DataGridView3.Rows(t).Cells("顏色").Value & "', N'" & DataGridView3.Rows(t).Cells("備註").Value & "', 
904
+                                        N'" & DataGridView3.Rows(t).Cells("廠商").Value & "', N'V01', N'" & PA & "')"
885 905
                                 cmd.Connection = conn : cmd.CommandText = SQL1 : cmd.ExecuteNonQuery() : conn.Close()
886 906
                             End If
887 907
                         Next
@@ -933,4 +953,7 @@ Public Class 樣品單控制表
933 953
         cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
934 954
         If dr.Read() Then : TextBox11.Text = dr("做法") : End If : conn.Close()
935 955
     End Sub
956
+    Private Sub ComboBox18_SelectedIndexChanged_1(sender As Object, e As EventArgs) Handles ComboBox18.SelectedIndexChanged
957
+        ComboBox12下拉表單資料載入()
958
+    End Sub
936 959
 End Class

+ 20
- 8
SHENKANG-MES-SYS/製鞋技術管理系統/楦頭規格表.Designer.vb 查看文件

@@ -167,6 +167,7 @@ Partial Class 楦頭規格表
167 167
         Me.Label39 = New System.Windows.Forms.Label()
168 168
         Me.Label38 = New System.Windows.Forms.Label()
169 169
         Me.ComboBox5 = New System.Windows.Forms.ComboBox()
170
+        Me.Button6 = New System.Windows.Forms.Button()
170 171
         Me.GroupBox1.SuspendLayout()
171 172
         CType(Me.PictureBox5, System.ComponentModel.ISupportInitialize).BeginInit()
172 173
         CType(Me.PictureBox4, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -1465,6 +1466,7 @@ Partial Class 楦頭規格表
1465 1466
         '
1466 1467
         'GroupBox2
1467 1468
         '
1469
+        Me.GroupBox2.Controls.Add(Me.Button6)
1468 1470
         Me.GroupBox2.Controls.Add(Me.Button5)
1469 1471
         Me.GroupBox2.Controls.Add(Me.CheckBox23)
1470 1472
         Me.GroupBox2.Controls.Add(Me.Button4)
@@ -1496,7 +1498,7 @@ Partial Class 楦頭規格表
1496 1498
         '
1497 1499
         Me.CheckBox23.AutoSize = True
1498 1500
         Me.CheckBox23.ForeColor = System.Drawing.Color.Red
1499
-        Me.CheckBox23.Location = New System.Drawing.Point(13, 85)
1501
+        Me.CheckBox23.Location = New System.Drawing.Point(13, 102)
1500 1502
         Me.CheckBox23.Name = "CheckBox23"
1501 1503
         Me.CheckBox23.Size = New System.Drawing.Size(203, 20)
1502 1504
         Me.CheckBox23.TabIndex = 630
@@ -1505,7 +1507,7 @@ Partial Class 楦頭規格表
1505 1507
         '
1506 1508
         'Button4
1507 1509
         '
1508
-        Me.Button4.Location = New System.Drawing.Point(6, 196)
1510
+        Me.Button4.Location = New System.Drawing.Point(6, 200)
1509 1511
         Me.Button4.Name = "Button4"
1510 1512
         Me.Button4.Size = New System.Drawing.Size(195, 38)
1511 1513
         Me.Button4.TabIndex = 629
@@ -1514,7 +1516,7 @@ Partial Class 楦頭規格表
1514 1516
         '
1515 1517
         'TextBox41
1516 1518
         '
1517
-        Me.TextBox41.Location = New System.Drawing.Point(92, 144)
1519
+        Me.TextBox41.Location = New System.Drawing.Point(92, 151)
1518 1520
         Me.TextBox41.Multiline = True
1519 1521
         Me.TextBox41.Name = "TextBox41"
1520 1522
         Me.TextBox41.Size = New System.Drawing.Size(109, 48)
@@ -1523,7 +1525,7 @@ Partial Class 楦頭規格表
1523 1525
         'Label41
1524 1526
         '
1525 1527
         Me.Label41.AutoSize = True
1526
-        Me.Label41.Location = New System.Drawing.Point(10, 147)
1528
+        Me.Label41.Location = New System.Drawing.Point(10, 154)
1527 1529
         Me.Label41.Name = "Label41"
1528 1530
         Me.Label41.Size = New System.Drawing.Size(68, 16)
1529 1531
         Me.Label41.TabIndex = 617
@@ -1532,7 +1534,7 @@ Partial Class 楦頭規格表
1532 1534
         'Label40
1533 1535
         '
1534 1536
         Me.Label40.AutoSize = True
1535
-        Me.Label40.Location = New System.Drawing.Point(10, 118)
1537
+        Me.Label40.Location = New System.Drawing.Point(10, 129)
1536 1538
         Me.Label40.Name = "Label40"
1537 1539
         Me.Label40.Size = New System.Drawing.Size(68, 16)
1538 1540
         Me.Label40.TabIndex = 616
@@ -1543,14 +1545,14 @@ Partial Class 楦頭規格表
1543 1545
         Me.ComboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1544 1546
         Me.ComboBox6.FormattingEnabled = True
1545 1547
         Me.ComboBox6.Items.AddRange(New Object() {"A", "B", "H", "HA", "HB", "M", "S", "L", "W", " "})
1546
-        Me.ComboBox6.Location = New System.Drawing.Point(92, 114)
1548
+        Me.ComboBox6.Location = New System.Drawing.Point(92, 125)
1547 1549
         Me.ComboBox6.Name = "ComboBox6"
1548 1550
         Me.ComboBox6.Size = New System.Drawing.Size(109, 24)
1549 1551
         Me.ComboBox6.TabIndex = 615
1550 1552
         '
1551 1553
         'TextBox40
1552 1554
         '
1553
-        Me.TextBox40.Location = New System.Drawing.Point(92, 55)
1555
+        Me.TextBox40.Location = New System.Drawing.Point(92, 77)
1554 1556
         Me.TextBox40.Name = "TextBox40"
1555 1557
         Me.TextBox40.Size = New System.Drawing.Size(109, 23)
1556 1558
         Me.TextBox40.TabIndex = 614
@@ -1558,7 +1560,7 @@ Partial Class 楦頭規格表
1558 1560
         'Label39
1559 1561
         '
1560 1562
         Me.Label39.AutoSize = True
1561
-        Me.Label39.Location = New System.Drawing.Point(8, 58)
1563
+        Me.Label39.Location = New System.Drawing.Point(8, 80)
1562 1564
         Me.Label39.Name = "Label39"
1563 1565
         Me.Label39.Size = New System.Drawing.Size(68, 16)
1564 1566
         Me.Label39.TabIndex = 613
@@ -1583,6 +1585,15 @@ Partial Class 楦頭規格表
1583 1585
         Me.ComboBox5.Size = New System.Drawing.Size(109, 24)
1584 1586
         Me.ComboBox5.TabIndex = 611
1585 1587
         '
1588
+        'Button6
1589
+        '
1590
+        Me.Button6.Location = New System.Drawing.Point(92, 52)
1591
+        Me.Button6.Name = "Button6"
1592
+        Me.Button6.Size = New System.Drawing.Size(109, 23)
1593
+        Me.Button6.TabIndex = 632
1594
+        Me.Button6.Text = "編號新增"
1595
+        Me.Button6.UseVisualStyleBackColor = True
1596
+        '
1586 1597
         '楦頭規格表
1587 1598
         '
1588 1599
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
@@ -1849,4 +1860,5 @@ Partial Class 楦頭規格表
1849 1860
     Friend WithEvents ComboBox5 As ComboBox
1850 1861
     Friend WithEvents CheckBox23 As CheckBox
1851 1862
     Friend WithEvents Button5 As Button
1863
+    Friend WithEvents Button6 As Button
1852 1864
 End Class

+ 3
- 0
SHENKANG-MES-SYS/製鞋技術管理系統/楦頭規格表.vb 查看文件

@@ -767,4 +767,7 @@ Public Class 楦頭規格表
767 767
         Button10.Enabled = False : Button17.Enabled = False : Button32.Enabled = False : GroupBox1.Visible = False
768 768
         DataGridView1.Enabled = True : Button8.Enabled = True : Button9.Enabled = True : Button12.Enabled = True
769 769
     End Sub
770
+    Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
771
+        清單修改.Close() : 楦頭編碼修改 = True : 清單修改.ShowDialog() : ComboBox5下拉表單資料載入() : 楦頭編碼修改 = False
772
+    End Sub
770 773
 End Class

+ 29
- 7
SHENKANG-MES-SYS/製鞋技術管理系統/模具開發控制表.Designer.vb 查看文件

@@ -22,7 +22,7 @@ Partial Class 模具開發控制表
22 22
     '請勿使用程式碼編輯器進行修改。
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25
-        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
25
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26 26
         Me.Label1 = New System.Windows.Forms.Label()
27 27
         Me.Label2 = New System.Windows.Forms.Label()
28 28
         Me.ComboBox1 = New System.Windows.Forms.ComboBox()
@@ -75,6 +75,8 @@ Partial Class 模具開發控制表
75 75
         Me.Button13 = New System.Windows.Forms.Button()
76 76
         Me.TextBox8 = New System.Windows.Forms.TextBox()
77 77
         Me.TextBox9 = New System.Windows.Forms.TextBox()
78
+        Me.Label18 = New System.Windows.Forms.Label()
79
+        Me.TextBox10 = New System.Windows.Forms.TextBox()
78 80
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
79 81
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
80 82
         Me.SuspendLayout()
@@ -283,10 +285,10 @@ Partial Class 模具開發控制表
283 285
         '
284 286
         Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
285 287
         Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
286
-        Me.PictureBox1.Location = New System.Drawing.Point(330, 170)
288
+        Me.PictureBox1.Location = New System.Drawing.Point(330, 194)
287 289
         Me.PictureBox1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
288 290
         Me.PictureBox1.Name = "PictureBox1"
289
-        Me.PictureBox1.Size = New System.Drawing.Size(1103, 792)
291
+        Me.PictureBox1.Size = New System.Drawing.Size(1103, 768)
290 292
         Me.PictureBox1.TabIndex = 626
291 293
         Me.PictureBox1.TabStop = False
292 294
         '
@@ -391,8 +393,8 @@ Partial Class 模具開發控制表
391 393
         '
392 394
         'DataGridView1
393 395
         '
394
-        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
395
-        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
396
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
397
+        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
396 398
         Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
397 399
         Me.DataGridView1.Location = New System.Drawing.Point(12, 32)
398 400
         Me.DataGridView1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
@@ -556,23 +558,41 @@ Partial Class 模具開發控制表
556 558
         '
557 559
         'TextBox8
558 560
         '
559
-        Me.TextBox8.Location = New System.Drawing.Point(505, 194)
561
+        Me.TextBox8.Location = New System.Drawing.Point(561, 268)
560 562
         Me.TextBox8.Name = "TextBox8"
561 563
         Me.TextBox8.Size = New System.Drawing.Size(157, 23)
562 564
         Me.TextBox8.TabIndex = 743
563 565
         '
564 566
         'TextBox9
565 567
         '
566
-        Me.TextBox9.Location = New System.Drawing.Point(342, 194)
568
+        Me.TextBox9.Location = New System.Drawing.Point(398, 268)
567 569
         Me.TextBox9.Name = "TextBox9"
568 570
         Me.TextBox9.Size = New System.Drawing.Size(157, 23)
569 571
         Me.TextBox9.TabIndex = 744
570 572
         '
573
+        'Label18
574
+        '
575
+        Me.Label18.AutoSize = True
576
+        Me.Label18.Location = New System.Drawing.Point(329, 170)
577
+        Me.Label18.Name = "Label18"
578
+        Me.Label18.Size = New System.Drawing.Size(45, 16)
579
+        Me.Label18.TabIndex = 745
580
+        Me.Label18.Text = "C_N_ : "
581
+        '
582
+        'TextBox10
583
+        '
584
+        Me.TextBox10.Location = New System.Drawing.Point(398, 167)
585
+        Me.TextBox10.Name = "TextBox10"
586
+        Me.TextBox10.Size = New System.Drawing.Size(321, 23)
587
+        Me.TextBox10.TabIndex = 746
588
+        '
571 589
         '模具開發控制表
572 590
         '
573 591
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
574 592
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
575 593
         Me.ClientSize = New System.Drawing.Size(1914, 971)
594
+        Me.Controls.Add(Me.TextBox10)
595
+        Me.Controls.Add(Me.Label18)
576 596
         Me.Controls.Add(Me.TextBox9)
577 597
         Me.Controls.Add(Me.TextBox8)
578 598
         Me.Controls.Add(Me.Button13)
@@ -687,4 +707,6 @@ Partial Class 模具開發控制表
687 707
     Friend WithEvents Button13 As Button
688 708
     Friend WithEvents TextBox8 As TextBox
689 709
     Friend WithEvents TextBox9 As TextBox
710
+    Friend WithEvents Label18 As Label
711
+    Friend WithEvents TextBox10 As TextBox
690 712
 End Class

+ 28
- 27
SHENKANG-MES-SYS/製鞋技術管理系統/模具開發控制表.vb 查看文件

@@ -13,16 +13,9 @@ Imports Microsoft.Office.Interop.Excel.XlWindowState
13 13
 Imports Microsoft.Office.Interop.Excel
14 14
 Public Class 模具開發控制表
15 15
     Public Property Credentials As ICredentials
16
-    ReadOnly conn As New SqlConnection
17
-    ReadOnly da As New SqlDataAdapter
18
-    ReadOnly cmd As New SqlCommand
19 16
     ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet : ReadOnly ds3 As New DataSet
20
-    Dim dr As SqlDataReader
21 17
     Dim DTP As String
22
-    Dim xlApp As Microsoft.Office.Interop.Excel.Application
23
-    Dim xlBook As Microsoft.Office.Interop.Excel.Workbook
24
-    Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
25
-
18
+    Dim xlApp As Application : Dim xlBook As Workbook : Dim xlSheet As Worksheet
26 19
     Private Sub Set_DGV1載入前設定()
27 20
         DataGridView1.DataSource = Nothing : ds.Clear()
28 21
         DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
@@ -36,12 +29,16 @@ Public Class 模具開發控制表
36 29
     Private Sub Set_楦頭規格表清單()
37 30
         Set_DGV1載入前設定()
38 31
         If PA = "" Then
39
-            SQL1 = "SELECT 模具開發單號, 結構, 材質, 楦頭編號, 模具編號, 參考原樣鞋編號, 品牌, 大底廠, 尺寸, 季節, 備註1 AS 備註, 制表, 制表日期, 模具廠
40
-                    FROM 模具開發控制表"
32
+            SQL1 = "SELECT   模具開發單號, 結構, 材質, 楦頭編號, 模具編號, 參考原樣鞋編號, 品牌, 大底廠, 尺寸, 季節, 備註1 AS 備註, 制表, 制表日期, 模具廠, CN
33
+                    FROM     模具開發控制表 
34
+                    ORDER BY 楦頭編號"
41 35
         Else
42
-            SQL1 = "SELECT 模具開發單號, 結構, 材質, 楦頭編號, 模具編號, 參考原樣鞋編號, 品牌, 大底廠, 尺寸, 季節, 備註1 AS 備註, 制表, 制表日期, 模具廠
43
-                    FROM 模具開發控制表 WHERE 模具開發單號 LIKE N'%" & PA & "%' OR 結構 LIKE N'%" & PA & "%' OR 材質 LIKE N'%" & PA & "%' OR 楦頭編號 LIKE N'%" & PA & "%' OR 模具編號 LIKE N'%" & PA & "%' OR 
44
-                         參考原樣鞋編號 LIKE N'%" & PA & "%' OR 品牌 LIKE N'%" & PA & "%' OR 大底廠 LIKE N'%" & PA & "%' OR 尺寸 LIKE N'%" & PA & "%' OR 季節 LIKE N'%" & PA & "%'"
36
+            SQL1 = "SELECT   模具開發單號, 結構, 材質, 楦頭編號, 模具編號, 參考原樣鞋編號, 品牌, 大底廠, 尺寸, 季節, 備註1 AS 備註, 制表, 制表日期, 模具廠, CN
37
+                    FROM     模具開發控制表 
38
+                    WHERE    模具開發單號 LIKE N'%" & PA & "%' OR 結構 LIKE N'%" & PA & "%' OR 材質 LIKE N'%" & PA & "%' OR 楦頭編號 LIKE N'%" & PA & "%' OR 
39
+                             模具編號 LIKE N'%" & PA & "%' OR 參考原樣鞋編號 LIKE N'%" & PA & "%' OR 品牌 LIKE N'%" & PA & "%' OR 大底廠 LIKE N'%" & PA & "%' OR 
40
+                             尺寸 LIKE N'%" & PA & "%' OR 季節 LIKE N'%" & PA & "%'
41
+                    ORDER BY 楦頭編號"
45 42
         End If
46 43
         Set_DGV1載入後設定() : Set_grid()
47 44
     End Sub
@@ -49,7 +46,7 @@ Public Class 模具開發控制表
49 46
         DataGridView1.Columns(0).Width = 142 : DataGridView1.Columns(1).Visible = False : DataGridView1.Columns(2).Visible = False : DataGridView1.Columns(3).Visible = False
50 47
         DataGridView1.Columns(4).Width = 142 : DataGridView1.Columns(5).Visible = False : DataGridView1.Columns(6).Visible = False : DataGridView1.Columns(7).Visible = False
51 48
         DataGridView1.Columns(8).Visible = False : DataGridView1.Columns(9).Visible = False : DataGridView1.Columns(10).Visible = False : DataGridView1.Columns(11).Visible = False
52
-        DataGridView1.Columns(12).Visible = False : DataGridView1.Columns(13).Visible = False
49
+        DataGridView1.Columns(12).Visible = False : DataGridView1.Columns(13).Visible = False : DataGridView1.Columns(14).Visible = False
53 50
     End Sub
54 51
     Private Sub ComboBox1下拉表單資料載入()
55 52
         conn.Close()
@@ -138,6 +135,7 @@ Public Class 模具開發控制表
138 135
                 ComboBox6.Text = DataGridView1.Rows(e.RowIndex).Cells("大底廠").Value : TextBox2.Text = DataGridView1.Rows(e.RowIndex).Cells("尺寸").Value
139 136
                 ComboBox7.Text = DataGridView1.Rows(e.RowIndex).Cells("季節").Value : TextBox3.Text = DataGridView1.Rows(e.RowIndex).Cells("備註").Value
140 137
                 TextBox8.Text = DataGridView1.Rows(e.RowIndex).Cells("制表").Value : TextBox9.Text = DataGridView1.Rows(e.RowIndex).Cells("制表日期").Value
138
+                TextBox10.Text = DataGridView1.Rows(e.RowIndex).Cells("CN").Value
141 139
                 圖片導入()
142 140
             End If
143 141
         End If
@@ -208,18 +206,20 @@ Public Class 模具開發控制表
208 206
                     End If
209 207
 
210 208
                     If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
211
-                    SQL1 = "INSERT INTO 模具開發控制表 (模具開發單號, 模具廠, 結構, 材質, 楦頭編號, 模具編號, 參考原樣鞋編號, 品牌, 大底廠, 尺寸, 季節, 備註1, 制表, 制表日期, 圖片) SELECT N'" & TextBox4.Text &
212
-                       "',N'" & ComboBox1.Text & "',N'" & ComboBox2.Text & "',N'" & ComboBox3.Text & "',N'" & ComboBox4.Text & "',N'" & TextBox6.Text & "',N'" & TextBox1.Text & "',N'" & ComboBox5.Text &
213
-                       "',N'" & ComboBox6.Text & "',N'" & TextBox2.Text & "',N'" & ComboBox7.Text & "',N'" & TextBox3.Text & "',N'" & gUserName & "',N'" & DTP & "', " &
214
-                       "BULKCOLUMN FROM OPENROWSET ( BULK '" & FTP實體位置 & AA(13) & "\" & TextBox5.Text & "', SINGLE_BLOB) AS EMPLOYEEPICTURE"
209
+                    SQL1 = "INSERT INTO 模具開發控制表 (模具開發單號, 模具廠, 結構, 材質, 楦頭編號, 模具編號, 參考原樣鞋編號, 品牌, 大底廠, 尺寸, 季節, 備註1, 制表, 制表日期, CN, 圖片) 
210
+                            SELECT N'" & TextBox4.Text & "',N'" & ComboBox1.Text & "',N'" & ComboBox2.Text & "',N'" & ComboBox3.Text & "',N'" & ComboBox4.Text & "',N'" & TextBox6.Text & "',
211
+                                   N'" & TextBox1.Text & "',N'" & ComboBox5.Text & "',N'" & ComboBox6.Text & "',N'" & TextBox2.Text & "',N'" & ComboBox7.Text & "',N'" & TextBox3.Text & "',
212
+                                   N'" & gUserName & "',N'" & DTP & "', N'" & TextBox10.Text & "', 
213
+                                   BULKCOLUMN FROM OPENROWSET ( BULK '" & FTP實體位置 & AA(13) & "\" & TextBox5.Text & "', SINGLE_BLOB) AS EMPLOYEEPICTURE"
215 214
                     cmd.Connection = conn : cmd.CommandText = SQL1 : cmd.ExecuteNonQuery() : conn.Close()
216 215
                 Else
217 216
                     conn.Close()
218 217
                     If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
219
-                    SQL1 = "INSERT INTO 模具開發控制表 (模具開發單號, 模具廠, 結構, 材質, 楦頭編號, 模具編號, 參考原樣鞋編號, 品牌, 大底廠, 尺寸, 季節, 備註1, 制表, 制表日期, 圖片) SELECT N'" & TextBox4.Text &
220
-                   "',N'" & ComboBox1.Text & "',N'" & ComboBox2.Text & "',N'" & ComboBox3.Text & "',N'" & ComboBox4.Text & "',N'" & TextBox6.Text & "',N'" & TextBox1.Text & "',N'" & ComboBox5.Text &
221
-                   "',N'" & ComboBox6.Text & "',N'" & TextBox2.Text & "',N'" & ComboBox7.Text & "',N'" & TextBox3.Text & "',N'" & gUserName & "',N'" & DTP & "', " &
222
-                   "BULKCOLUMN FROM OPENROWSET ( BULK '" & FTP實體位置 & AA(13) & "\" & TextBox5.Text & "', SINGLE_BLOB) AS EMPLOYEEPICTURE"
218
+                    SQL1 = "INSERT INTO 模具開發控制表 (模具開發單號, 模具廠, 結構, 材質, 楦頭編號, 模具編號, 參考原樣鞋編號, 品牌, 大底廠, 尺寸, 季節, 備註1, 制表, 制表日期, CN, 圖片) 
219
+                            SELECT N'" & TextBox4.Text & "',N'" & ComboBox1.Text & "',N'" & ComboBox2.Text & "',N'" & ComboBox3.Text & "',N'" & ComboBox4.Text & "',N'" & TextBox6.Text & "',
220
+                                   N'" & TextBox1.Text & "',N'" & ComboBox5.Text & "',N'" & ComboBox6.Text & "',N'" & TextBox2.Text & "',N'" & ComboBox7.Text & "',N'" & TextBox3.Text & "',
221
+                                   N'" & gUserName & "', N'" & DTP & "',N'" & TextBox10.Text & "', 
222
+                                   BULKCOLUMN FROM OPENROWSET ( BULK '" & FTP實體位置 & AA(13) & "\" & TextBox5.Text & "', SINGLE_BLOB) AS EMPLOYEEPICTURE"
223 223
                     cmd.Connection = conn : cmd.CommandText = SQL1 : cmd.ExecuteNonQuery() : conn.Close()
224 224
                 End If
225 225
                 conn.Close()
@@ -236,9 +236,9 @@ Public Class 模具開發控制表
236 236
                 WebBrowser1.Refresh()
237 237
                 '----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
238 238
                 圖片導入() : Set_楦頭規格表清單() : MsgBox("新增完成")
239
-                ComboBox1.Enabled = False : ComboBox2.Enabled = False : ComboBox3.Enabled = False : ComboBox4.Enabled = False : ComboBox5.Enabled = False : ComboBox6.Enabled = False : ComboBox7.Enabled = False
240
-                TextBox6.Enabled = False : TextBox1.Enabled = False : TextBox2.Enabled = False : TextBox3.Enabled = False : Button3.Enabled = False : Button6.Enabled = False
241
-                Button2.Enabled = True : Button5.Enabled = True : TextBox5.Text = ""
239
+                ComboBox1.Enabled = False : ComboBox2.Enabled = False : ComboBox3.Enabled = False : ComboBox4.Enabled = False : ComboBox5.Enabled = False : ComboBox6.Enabled = False
240
+                ComboBox7.Enabled = False : TextBox6.Enabled = False : TextBox1.Enabled = False : TextBox2.Enabled = False : TextBox3.Enabled = False : Button3.Enabled = False
241
+                Button6.Enabled = False : Button2.Enabled = True : Button5.Enabled = True : TextBox5.Text = ""
242 242
             End If
243 243
         End If
244 244
     End Sub
@@ -252,7 +252,7 @@ Public Class 模具開發控制表
252 252
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
253 253
         SQL1 = "UPDATE 模具開發控制表 SET 模具廠 = N'" & ComboBox1.Text & "', 結構 = N'" & ComboBox2.Text & "', 材質 = N'" & ComboBox3.Text & "', 楦頭編號 = N'" & ComboBox4.Text &
254 254
                "', 模具編號 = N'" & TextBox6.Text & "', 參考原樣鞋編號 = N'" & TextBox1.Text & "', 品牌 = N'" & ComboBox5.Text & "', 大底廠 = N'" & ComboBox6.Text & "', 尺寸 = N'" & TextBox2.Text &
255
-               "', 季節 = N'" & ComboBox7.Text & "', 備註1 = N'" & TextBox3.Text & "', 制表 = N'" & gUserName & "', 制表日期 = N'" & DTP & "' 
255
+               "', 季節 = N'" & ComboBox7.Text & "', 備註1 = N'" & TextBox3.Text & "', 制表 = N'" & gUserName & "', 制表日期 = N'" & DTP & "', CN = N'" & TextBox10.Text & "' 
256 256
                WHERE 模具開發單號 LIKE N'" & TextBox4.Text & "'"
257 257
         cmd.Connection = conn : cmd.CommandText = SQL1 : cmd.ExecuteNonQuery() : conn.Close()
258 258
         Set_楦頭規格表清單()
@@ -313,7 +313,8 @@ Public Class 模具開發控制表
313 313
         Else
314 314
             conn.Close() : Set_日期格式轉換()
315 315
             If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
316
-            SQL1 = "UPDATE 模具開發控制表 SET 制表 = N'" & gUserName & "', 制表日期 = N'" & DTP & "', 圖片 = BULKCOLUMN FROM OPENROWSET ( BULK '" & FTP實體位置 & AA(13) & "\" & TextBox5.Text & "', SINGLE_BLOB) AS 
316
+            SQL1 = "UPDATE 模具開發控制表 SET 制表 = N'" & gUserName & "', 制表日期 = N'" & DTP & "', 
317
+                           圖片 = BULKCOLUMN FROM OPENROWSET ( BULK '" & FTP實體位置 & AA(13) & "\" & TextBox5.Text & "', SINGLE_BLOB) AS 
317 318
                     EMPLOYEEPICTURE WHERE (模具開發單號 = '" & TextBox4.Text & "')"
318 319
             cmd.CommandText = SQL1 : cmd.ExecuteNonQuery() : conn.Close()
319 320
             '---FTP方式刪除檔案----------------------------------------------------------------------------------------------------------------------------------------------------------------------

+ 765
- 0
SHENKANG-MES-SYS/製鞋技術管理系統/製鞋技術資料庫狀態.Designer.vb 查看文件

@@ -0,0 +1,765 @@
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 DataGridViewCellStyle12 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle13 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle14 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle15 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
+        Dim DataGridViewCellStyle16 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
+        Dim DataGridViewCellStyle17 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
+        Dim DataGridViewCellStyle18 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32
+        Dim DataGridViewCellStyle19 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
+        Dim DataGridViewCellStyle20 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34
+        Dim DataGridViewCellStyle21 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
35
+        Dim DataGridViewCellStyle22 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
36
+        Me.楦頭規格_dgv = New System.Windows.Forms.DataGridView()
37
+        Me.模具開發_dgv = New System.Windows.Forms.DataGridView()
38
+        Me.鞋樣素描_dgv = New System.Windows.Forms.DataGridView()
39
+        Me.楦頭編號_tb = New System.Windows.Forms.TextBox()
40
+        Me.Label1 = New System.Windows.Forms.Label()
41
+        Me.Label2 = New System.Windows.Forms.Label()
42
+        Me.Label3 = New System.Windows.Forms.Label()
43
+        Me.TabControl1 = New System.Windows.Forms.TabControl()
44
+        Me.TabPage1 = New System.Windows.Forms.TabPage()
45
+        Me.Label8 = New System.Windows.Forms.Label()
46
+        Me.Label7 = New System.Windows.Forms.Label()
47
+        Me.筆數1_tb = New System.Windows.Forms.TextBox()
48
+        Me.Label5 = New System.Windows.Forms.Label()
49
+        Me.樣品訂單_dgv = New System.Windows.Forms.DataGridView()
50
+        Me.Label4 = New System.Windows.Forms.Label()
51
+        Me.MINI_WAL_dgv = New System.Windows.Forms.DataGridView()
52
+        Me.TabPage2 = New System.Windows.Forms.TabPage()
53
+        Me.名稱_tb = New System.Windows.Forms.TextBox()
54
+        Me.編號_tb = New System.Windows.Forms.TextBox()
55
+        Me.客戶_tb = New System.Windows.Forms.TextBox()
56
+        Me.Label19 = New System.Windows.Forms.Label()
57
+        Me.量產明細_dgv = New System.Windows.Forms.DataGridView()
58
+        Me.Label20 = New System.Windows.Forms.Label()
59
+        Me.出貨明細_dgv = New System.Windows.Forms.DataGridView()
60
+        Me.Label15 = New System.Windows.Forms.Label()
61
+        Me.鞋型圖片_dgv = New System.Windows.Forms.DataGridView()
62
+        Me.Label16 = New System.Windows.Forms.Label()
63
+        Me.量產控制_dgv = New System.Windows.Forms.DataGridView()
64
+        Me.Label17 = New System.Windows.Forms.Label()
65
+        Me.Label18 = New System.Windows.Forms.Label()
66
+        Me.鞋樣素描2_dgv = New System.Windows.Forms.DataGridView()
67
+        Me.樣品訂單1_dgv = New System.Windows.Forms.DataGridView()
68
+        Me.Label13 = New System.Windows.Forms.Label()
69
+        Me.Label14 = New System.Windows.Forms.Label()
70
+        Me.筆數3_tb = New System.Windows.Forms.TextBox()
71
+        Me.Label12 = New System.Windows.Forms.Label()
72
+        Me.型體資訊_dgv = New System.Windows.Forms.DataGridView()
73
+        Me.TabPage3 = New System.Windows.Forms.TabPage()
74
+        Me.Label11 = New System.Windows.Forms.Label()
75
+        Me.鞋樣素描1_dgv = New System.Windows.Forms.DataGridView()
76
+        Me.Label9 = New System.Windows.Forms.Label()
77
+        Me.Label10 = New System.Windows.Forms.Label()
78
+        Me.筆數2_tb = New System.Windows.Forms.TextBox()
79
+        Me.Label6 = New System.Windows.Forms.Label()
80
+        Me.模具規格_dgv = New System.Windows.Forms.DataGridView()
81
+        Me.模具規格_tb = New System.Windows.Forms.TextBox()
82
+        Me.TabPage4 = New System.Windows.Forms.TabPage()
83
+        Me.自動比對_bt = New System.Windows.Forms.Button()
84
+        Me.楦模轉換_dgv = New System.Windows.Forms.DataGridView()
85
+        Me.存檔_bt = New System.Windows.Forms.Button()
86
+        CType(Me.楦頭規格_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
87
+        CType(Me.模具開發_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
88
+        CType(Me.鞋樣素描_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
89
+        Me.TabControl1.SuspendLayout()
90
+        Me.TabPage1.SuspendLayout()
91
+        CType(Me.樣品訂單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
92
+        CType(Me.MINI_WAL_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
93
+        Me.TabPage2.SuspendLayout()
94
+        CType(Me.量產明細_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
95
+        CType(Me.出貨明細_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
96
+        CType(Me.鞋型圖片_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
97
+        CType(Me.量產控制_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
98
+        CType(Me.鞋樣素描2_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
99
+        CType(Me.樣品訂單1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
100
+        CType(Me.型體資訊_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
101
+        Me.TabPage3.SuspendLayout()
102
+        CType(Me.鞋樣素描1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
103
+        CType(Me.模具規格_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
104
+        Me.TabPage4.SuspendLayout()
105
+        CType(Me.楦模轉換_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
106
+        Me.SuspendLayout()
107
+        '
108
+        '楦頭規格_dgv
109
+        '
110
+        Me.楦頭規格_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
111
+        Me.楦頭規格_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
112
+        Me.楦頭規格_dgv.Location = New System.Drawing.Point(6, 30)
113
+        Me.楦頭規格_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
114
+        Me.楦頭規格_dgv.Name = "楦頭規格_dgv"
115
+        Me.楦頭規格_dgv.RowHeadersWidth = 5
116
+        Me.楦頭規格_dgv.RowTemplate.Height = 24
117
+        Me.楦頭規格_dgv.Size = New System.Drawing.Size(718, 893)
118
+        Me.楦頭規格_dgv.TabIndex = 648
119
+        '
120
+        '模具開發_dgv
121
+        '
122
+        DataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
123
+        Me.模具開發_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle12
124
+        Me.模具開發_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
125
+        Me.模具開發_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
126
+        Me.模具開發_dgv.Location = New System.Drawing.Point(727, 30)
127
+        Me.模具開發_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
128
+        Me.模具開發_dgv.Name = "模具開發_dgv"
129
+        Me.模具開發_dgv.RowHeadersWidth = 5
130
+        Me.模具開發_dgv.RowTemplate.Height = 24
131
+        Me.模具開發_dgv.Size = New System.Drawing.Size(576, 435)
132
+        Me.模具開發_dgv.TabIndex = 649
133
+        '
134
+        '鞋樣素描_dgv
135
+        '
136
+        DataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
137
+        Me.鞋樣素描_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle13
138
+        Me.鞋樣素描_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
139
+        Me.鞋樣素描_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
140
+        Me.鞋樣素描_dgv.Location = New System.Drawing.Point(727, 488)
141
+        Me.鞋樣素描_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
142
+        Me.鞋樣素描_dgv.Name = "鞋樣素描_dgv"
143
+        Me.鞋樣素描_dgv.RowHeadersWidth = 5
144
+        Me.鞋樣素描_dgv.RowTemplate.Height = 24
145
+        Me.鞋樣素描_dgv.Size = New System.Drawing.Size(576, 435)
146
+        Me.鞋樣素描_dgv.TabIndex = 650
147
+        '
148
+        '楦頭編號_tb
149
+        '
150
+        Me.楦頭編號_tb.Location = New System.Drawing.Point(68, 3)
151
+        Me.楦頭編號_tb.Name = "楦頭編號_tb"
152
+        Me.楦頭編號_tb.Size = New System.Drawing.Size(166, 23)
153
+        Me.楦頭編號_tb.TabIndex = 651
154
+        '
155
+        'Label1
156
+        '
157
+        Me.Label1.AutoSize = True
158
+        Me.Label1.Location = New System.Drawing.Point(6, 6)
159
+        Me.Label1.Name = "Label1"
160
+        Me.Label1.Size = New System.Drawing.Size(56, 16)
161
+        Me.Label1.TabIndex = 652
162
+        Me.Label1.Text = "楦頭規格"
163
+        '
164
+        'Label2
165
+        '
166
+        Me.Label2.AutoSize = True
167
+        Me.Label2.Location = New System.Drawing.Point(727, 10)
168
+        Me.Label2.Name = "Label2"
169
+        Me.Label2.Size = New System.Drawing.Size(126, 16)
170
+        Me.Label2.TabIndex = 653
171
+        Me.Label2.Text = "楦頭規格  --  模具開發"
172
+        '
173
+        'Label3
174
+        '
175
+        Me.Label3.AutoSize = True
176
+        Me.Label3.Location = New System.Drawing.Point(727, 468)
177
+        Me.Label3.Name = "Label3"
178
+        Me.Label3.Size = New System.Drawing.Size(126, 16)
179
+        Me.Label3.TabIndex = 654
180
+        Me.Label3.Text = "楦頭規格  --  鞋樣素描"
181
+        '
182
+        'TabControl1
183
+        '
184
+        Me.TabControl1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
185
+            Or System.Windows.Forms.AnchorStyles.Left) _
186
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
187
+        Me.TabControl1.Controls.Add(Me.TabPage1)
188
+        Me.TabControl1.Controls.Add(Me.TabPage2)
189
+        Me.TabControl1.Controls.Add(Me.TabPage3)
190
+        Me.TabControl1.Controls.Add(Me.TabPage4)
191
+        Me.TabControl1.Location = New System.Drawing.Point(5, 4)
192
+        Me.TabControl1.Name = "TabControl1"
193
+        Me.TabControl1.SelectedIndex = 0
194
+        Me.TabControl1.Size = New System.Drawing.Size(1904, 963)
195
+        Me.TabControl1.TabIndex = 655
196
+        '
197
+        'TabPage1
198
+        '
199
+        Me.TabPage1.AutoScroll = True
200
+        Me.TabPage1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
201
+        Me.TabPage1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
202
+        Me.TabPage1.Controls.Add(Me.Label8)
203
+        Me.TabPage1.Controls.Add(Me.Label7)
204
+        Me.TabPage1.Controls.Add(Me.筆數1_tb)
205
+        Me.TabPage1.Controls.Add(Me.Label5)
206
+        Me.TabPage1.Controls.Add(Me.樣品訂單_dgv)
207
+        Me.TabPage1.Controls.Add(Me.Label4)
208
+        Me.TabPage1.Controls.Add(Me.MINI_WAL_dgv)
209
+        Me.TabPage1.Controls.Add(Me.Label1)
210
+        Me.TabPage1.Controls.Add(Me.Label3)
211
+        Me.TabPage1.Controls.Add(Me.楦頭規格_dgv)
212
+        Me.TabPage1.Controls.Add(Me.Label2)
213
+        Me.TabPage1.Controls.Add(Me.模具開發_dgv)
214
+        Me.TabPage1.Controls.Add(Me.鞋樣素描_dgv)
215
+        Me.TabPage1.Controls.Add(Me.楦頭編號_tb)
216
+        Me.TabPage1.Location = New System.Drawing.Point(4, 25)
217
+        Me.TabPage1.Name = "TabPage1"
218
+        Me.TabPage1.Padding = New System.Windows.Forms.Padding(3)
219
+        Me.TabPage1.Size = New System.Drawing.Size(1896, 934)
220
+        Me.TabPage1.TabIndex = 0
221
+        Me.TabPage1.Text = "楦頭規格資訊串聯關係"
222
+        Me.TabPage1.UseVisualStyleBackColor = True
223
+        '
224
+        'Label8
225
+        '
226
+        Me.Label8.AutoSize = True
227
+        Me.Label8.Location = New System.Drawing.Point(657, 10)
228
+        Me.Label8.Name = "Label8"
229
+        Me.Label8.Size = New System.Drawing.Size(44, 16)
230
+        Me.Label8.TabIndex = 661
231
+        Me.Label8.Text = "筆資料"
232
+        '
233
+        'Label7
234
+        '
235
+        Me.Label7.AutoSize = True
236
+        Me.Label7.Location = New System.Drawing.Point(550, 10)
237
+        Me.Label7.Name = "Label7"
238
+        Me.Label7.Size = New System.Drawing.Size(20, 16)
239
+        Me.Label7.TabIndex = 660
240
+        Me.Label7.Text = "共"
241
+        '
242
+        '筆數1_tb
243
+        '
244
+        Me.筆數1_tb.ForeColor = System.Drawing.Color.Red
245
+        Me.筆數1_tb.Location = New System.Drawing.Point(573, 5)
246
+        Me.筆數1_tb.Name = "筆數1_tb"
247
+        Me.筆數1_tb.Size = New System.Drawing.Size(82, 23)
248
+        Me.筆數1_tb.TabIndex = 659
249
+        Me.筆數1_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
250
+        '
251
+        'Label5
252
+        '
253
+        Me.Label5.AutoSize = True
254
+        Me.Label5.Location = New System.Drawing.Point(1305, 10)
255
+        Me.Label5.Name = "Label5"
256
+        Me.Label5.Size = New System.Drawing.Size(126, 16)
257
+        Me.Label5.TabIndex = 658
258
+        Me.Label5.Text = "楦頭規格  --  樣品訂單"
259
+        '
260
+        '樣品訂單_dgv
261
+        '
262
+        DataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
263
+        Me.樣品訂單_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle14
264
+        Me.樣品訂單_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
265
+        Me.樣品訂單_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
266
+        Me.樣品訂單_dgv.Location = New System.Drawing.Point(1305, 30)
267
+        Me.樣品訂單_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
268
+        Me.樣品訂單_dgv.Name = "樣品訂單_dgv"
269
+        Me.樣品訂單_dgv.RowHeadersWidth = 5
270
+        Me.樣品訂單_dgv.RowTemplate.Height = 24
271
+        Me.樣品訂單_dgv.Size = New System.Drawing.Size(576, 435)
272
+        Me.樣品訂單_dgv.TabIndex = 657
273
+        '
274
+        'Label4
275
+        '
276
+        Me.Label4.AutoSize = True
277
+        Me.Label4.Location = New System.Drawing.Point(1305, 468)
278
+        Me.Label4.Name = "Label4"
279
+        Me.Label4.Size = New System.Drawing.Size(137, 16)
280
+        Me.Label4.TabIndex = 656
281
+        Me.Label4.Text = "楦頭規格  --  MINI_WAL"
282
+        '
283
+        'MINI_WAL_dgv
284
+        '
285
+        DataGridViewCellStyle15.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
286
+        Me.MINI_WAL_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle15
287
+        Me.MINI_WAL_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
288
+        Me.MINI_WAL_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
289
+        Me.MINI_WAL_dgv.Location = New System.Drawing.Point(1305, 488)
290
+        Me.MINI_WAL_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
291
+        Me.MINI_WAL_dgv.Name = "MINI_WAL_dgv"
292
+        Me.MINI_WAL_dgv.RowHeadersWidth = 5
293
+        Me.MINI_WAL_dgv.RowTemplate.Height = 24
294
+        Me.MINI_WAL_dgv.Size = New System.Drawing.Size(576, 435)
295
+        Me.MINI_WAL_dgv.TabIndex = 655
296
+        '
297
+        'TabPage2
298
+        '
299
+        Me.TabPage2.AutoScroll = True
300
+        Me.TabPage2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
301
+        Me.TabPage2.Controls.Add(Me.名稱_tb)
302
+        Me.TabPage2.Controls.Add(Me.編號_tb)
303
+        Me.TabPage2.Controls.Add(Me.客戶_tb)
304
+        Me.TabPage2.Controls.Add(Me.Label19)
305
+        Me.TabPage2.Controls.Add(Me.量產明細_dgv)
306
+        Me.TabPage2.Controls.Add(Me.Label20)
307
+        Me.TabPage2.Controls.Add(Me.出貨明細_dgv)
308
+        Me.TabPage2.Controls.Add(Me.Label15)
309
+        Me.TabPage2.Controls.Add(Me.鞋型圖片_dgv)
310
+        Me.TabPage2.Controls.Add(Me.Label16)
311
+        Me.TabPage2.Controls.Add(Me.量產控制_dgv)
312
+        Me.TabPage2.Controls.Add(Me.Label17)
313
+        Me.TabPage2.Controls.Add(Me.Label18)
314
+        Me.TabPage2.Controls.Add(Me.鞋樣素描2_dgv)
315
+        Me.TabPage2.Controls.Add(Me.樣品訂單1_dgv)
316
+        Me.TabPage2.Controls.Add(Me.Label13)
317
+        Me.TabPage2.Controls.Add(Me.Label14)
318
+        Me.TabPage2.Controls.Add(Me.筆數3_tb)
319
+        Me.TabPage2.Controls.Add(Me.Label12)
320
+        Me.TabPage2.Controls.Add(Me.型體資訊_dgv)
321
+        Me.TabPage2.Location = New System.Drawing.Point(4, 25)
322
+        Me.TabPage2.Name = "TabPage2"
323
+        Me.TabPage2.Padding = New System.Windows.Forms.Padding(3)
324
+        Me.TabPage2.Size = New System.Drawing.Size(1896, 934)
325
+        Me.TabPage2.TabIndex = 1
326
+        Me.TabPage2.Text = "型體資訊串聯關係"
327
+        Me.TabPage2.UseVisualStyleBackColor = True
328
+        '
329
+        '名稱_tb
330
+        '
331
+        Me.名稱_tb.Location = New System.Drawing.Point(404, 4)
332
+        Me.名稱_tb.Name = "名稱_tb"
333
+        Me.名稱_tb.Size = New System.Drawing.Size(166, 23)
334
+        Me.名稱_tb.TabIndex = 679
335
+        '
336
+        '編號_tb
337
+        '
338
+        Me.編號_tb.Location = New System.Drawing.Point(236, 4)
339
+        Me.編號_tb.Name = "編號_tb"
340
+        Me.編號_tb.Size = New System.Drawing.Size(166, 23)
341
+        Me.編號_tb.TabIndex = 678
342
+        '
343
+        '客戶_tb
344
+        '
345
+        Me.客戶_tb.Location = New System.Drawing.Point(68, 4)
346
+        Me.客戶_tb.Name = "客戶_tb"
347
+        Me.客戶_tb.Size = New System.Drawing.Size(166, 23)
348
+        Me.客戶_tb.TabIndex = 677
349
+        '
350
+        'Label19
351
+        '
352
+        Me.Label19.AutoSize = True
353
+        Me.Label19.Location = New System.Drawing.Point(1307, 617)
354
+        Me.Label19.Name = "Label19"
355
+        Me.Label19.Size = New System.Drawing.Size(126, 16)
356
+        Me.Label19.TabIndex = 676
357
+        Me.Label19.Text = "型體資訊  --  量產明細"
358
+        '
359
+        '量產明細_dgv
360
+        '
361
+        DataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
362
+        Me.量產明細_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle16
363
+        Me.量產明細_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
364
+        Me.量產明細_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
365
+        Me.量產明細_dgv.Location = New System.Drawing.Point(1307, 637)
366
+        Me.量產明細_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
367
+        Me.量產明細_dgv.Name = "量產明細_dgv"
368
+        Me.量產明細_dgv.RowHeadersWidth = 5
369
+        Me.量產明細_dgv.RowTemplate.Height = 24
370
+        Me.量產明細_dgv.Size = New System.Drawing.Size(576, 280)
371
+        Me.量產明細_dgv.TabIndex = 675
372
+        '
373
+        'Label20
374
+        '
375
+        Me.Label20.AutoSize = True
376
+        Me.Label20.Location = New System.Drawing.Point(730, 617)
377
+        Me.Label20.Name = "Label20"
378
+        Me.Label20.Size = New System.Drawing.Size(126, 16)
379
+        Me.Label20.TabIndex = 674
380
+        Me.Label20.Text = "型體資訊  --  出貨明細"
381
+        '
382
+        '出貨明細_dgv
383
+        '
384
+        DataGridViewCellStyle17.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
385
+        Me.出貨明細_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle17
386
+        Me.出貨明細_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
387
+        Me.出貨明細_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
388
+        Me.出貨明細_dgv.Location = New System.Drawing.Point(728, 637)
389
+        Me.出貨明細_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
390
+        Me.出貨明細_dgv.Name = "出貨明細_dgv"
391
+        Me.出貨明細_dgv.RowHeadersWidth = 5
392
+        Me.出貨明細_dgv.RowTemplate.Height = 24
393
+        Me.出貨明細_dgv.Size = New System.Drawing.Size(576, 280)
394
+        Me.出貨明細_dgv.TabIndex = 673
395
+        '
396
+        'Label15
397
+        '
398
+        Me.Label15.AutoSize = True
399
+        Me.Label15.Location = New System.Drawing.Point(730, 313)
400
+        Me.Label15.Name = "Label15"
401
+        Me.Label15.Size = New System.Drawing.Size(126, 16)
402
+        Me.Label15.TabIndex = 672
403
+        Me.Label15.Text = "型體資訊  --  樣品訂單"
404
+        '
405
+        '鞋型圖片_dgv
406
+        '
407
+        DataGridViewCellStyle18.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
408
+        Me.鞋型圖片_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle18
409
+        Me.鞋型圖片_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
410
+        Me.鞋型圖片_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
411
+        Me.鞋型圖片_dgv.Location = New System.Drawing.Point(1306, 29)
412
+        Me.鞋型圖片_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
413
+        Me.鞋型圖片_dgv.Name = "鞋型圖片_dgv"
414
+        Me.鞋型圖片_dgv.RowHeadersWidth = 5
415
+        Me.鞋型圖片_dgv.RowTemplate.Height = 24
416
+        Me.鞋型圖片_dgv.Size = New System.Drawing.Size(576, 280)
417
+        Me.鞋型圖片_dgv.TabIndex = 671
418
+        '
419
+        'Label16
420
+        '
421
+        Me.Label16.AutoSize = True
422
+        Me.Label16.Location = New System.Drawing.Point(1307, 313)
423
+        Me.Label16.Name = "Label16"
424
+        Me.Label16.Size = New System.Drawing.Size(138, 16)
425
+        Me.Label16.TabIndex = 670
426
+        Me.Label16.Text = "型體資訊  --  量產控制表"
427
+        '
428
+        '量產控制_dgv
429
+        '
430
+        DataGridViewCellStyle19.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
431
+        Me.量產控制_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle19
432
+        Me.量產控制_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
433
+        Me.量產控制_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
434
+        Me.量產控制_dgv.Location = New System.Drawing.Point(1307, 333)
435
+        Me.量產控制_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
436
+        Me.量產控制_dgv.Name = "量產控制_dgv"
437
+        Me.量產控制_dgv.RowHeadersWidth = 5
438
+        Me.量產控制_dgv.RowTemplate.Height = 24
439
+        Me.量產控制_dgv.Size = New System.Drawing.Size(576, 280)
440
+        Me.量產控制_dgv.TabIndex = 669
441
+        '
442
+        'Label17
443
+        '
444
+        Me.Label17.AutoSize = True
445
+        Me.Label17.Location = New System.Drawing.Point(731, 9)
446
+        Me.Label17.Name = "Label17"
447
+        Me.Label17.Size = New System.Drawing.Size(126, 16)
448
+        Me.Label17.TabIndex = 668
449
+        Me.Label17.Text = "型體資訊  --  鞋樣素描"
450
+        '
451
+        'Label18
452
+        '
453
+        Me.Label18.AutoSize = True
454
+        Me.Label18.Location = New System.Drawing.Point(1309, 9)
455
+        Me.Label18.Name = "Label18"
456
+        Me.Label18.Size = New System.Drawing.Size(126, 16)
457
+        Me.Label18.TabIndex = 667
458
+        Me.Label18.Text = "型體資訊  --  鞋型圖片"
459
+        '
460
+        '鞋樣素描2_dgv
461
+        '
462
+        DataGridViewCellStyle20.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
463
+        Me.鞋樣素描2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle20
464
+        Me.鞋樣素描2_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
465
+        Me.鞋樣素描2_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
466
+        Me.鞋樣素描2_dgv.Location = New System.Drawing.Point(728, 29)
467
+        Me.鞋樣素描2_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
468
+        Me.鞋樣素描2_dgv.Name = "鞋樣素描2_dgv"
469
+        Me.鞋樣素描2_dgv.RowHeadersWidth = 5
470
+        Me.鞋樣素描2_dgv.RowTemplate.Height = 24
471
+        Me.鞋樣素描2_dgv.Size = New System.Drawing.Size(576, 280)
472
+        Me.鞋樣素描2_dgv.TabIndex = 665
473
+        '
474
+        '樣品訂單1_dgv
475
+        '
476
+        DataGridViewCellStyle21.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
477
+        Me.樣品訂單1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle21
478
+        Me.樣品訂單1_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
479
+        Me.樣品訂單1_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
480
+        Me.樣品訂單1_dgv.Location = New System.Drawing.Point(728, 333)
481
+        Me.樣品訂單1_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
482
+        Me.樣品訂單1_dgv.Name = "樣品訂單1_dgv"
483
+        Me.樣品訂單1_dgv.RowHeadersWidth = 5
484
+        Me.樣品訂單1_dgv.RowTemplate.Height = 24
485
+        Me.樣品訂單1_dgv.Size = New System.Drawing.Size(576, 280)
486
+        Me.樣品訂單1_dgv.TabIndex = 666
487
+        '
488
+        'Label13
489
+        '
490
+        Me.Label13.AutoSize = True
491
+        Me.Label13.Location = New System.Drawing.Point(682, 9)
492
+        Me.Label13.Name = "Label13"
493
+        Me.Label13.Size = New System.Drawing.Size(44, 16)
494
+        Me.Label13.TabIndex = 664
495
+        Me.Label13.Text = "筆資料"
496
+        '
497
+        'Label14
498
+        '
499
+        Me.Label14.AutoSize = True
500
+        Me.Label14.Location = New System.Drawing.Point(575, 9)
501
+        Me.Label14.Name = "Label14"
502
+        Me.Label14.Size = New System.Drawing.Size(20, 16)
503
+        Me.Label14.TabIndex = 663
504
+        Me.Label14.Text = "共"
505
+        '
506
+        '筆數3_tb
507
+        '
508
+        Me.筆數3_tb.ForeColor = System.Drawing.Color.Red
509
+        Me.筆數3_tb.Location = New System.Drawing.Point(598, 4)
510
+        Me.筆數3_tb.Name = "筆數3_tb"
511
+        Me.筆數3_tb.Size = New System.Drawing.Size(82, 23)
512
+        Me.筆數3_tb.TabIndex = 662
513
+        Me.筆數3_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
514
+        '
515
+        'Label12
516
+        '
517
+        Me.Label12.AutoSize = True
518
+        Me.Label12.Location = New System.Drawing.Point(6, 5)
519
+        Me.Label12.Name = "Label12"
520
+        Me.Label12.Size = New System.Drawing.Size(56, 16)
521
+        Me.Label12.TabIndex = 654
522
+        Me.Label12.Text = "型體資訊"
523
+        '
524
+        '型體資訊_dgv
525
+        '
526
+        Me.型體資訊_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
527
+        Me.型體資訊_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
528
+        Me.型體資訊_dgv.Location = New System.Drawing.Point(6, 29)
529
+        Me.型體資訊_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
530
+        Me.型體資訊_dgv.Name = "型體資訊_dgv"
531
+        Me.型體資訊_dgv.RowHeadersWidth = 5
532
+        Me.型體資訊_dgv.RowTemplate.Height = 24
533
+        Me.型體資訊_dgv.Size = New System.Drawing.Size(720, 888)
534
+        Me.型體資訊_dgv.TabIndex = 653
535
+        '
536
+        'TabPage3
537
+        '
538
+        Me.TabPage3.AutoScroll = True
539
+        Me.TabPage3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
540
+        Me.TabPage3.Controls.Add(Me.Label11)
541
+        Me.TabPage3.Controls.Add(Me.鞋樣素描1_dgv)
542
+        Me.TabPage3.Controls.Add(Me.Label9)
543
+        Me.TabPage3.Controls.Add(Me.Label10)
544
+        Me.TabPage3.Controls.Add(Me.筆數2_tb)
545
+        Me.TabPage3.Controls.Add(Me.Label6)
546
+        Me.TabPage3.Controls.Add(Me.模具規格_dgv)
547
+        Me.TabPage3.Controls.Add(Me.模具規格_tb)
548
+        Me.TabPage3.Location = New System.Drawing.Point(4, 25)
549
+        Me.TabPage3.Name = "TabPage3"
550
+        Me.TabPage3.Padding = New System.Windows.Forms.Padding(3)
551
+        Me.TabPage3.Size = New System.Drawing.Size(1896, 934)
552
+        Me.TabPage3.TabIndex = 2
553
+        Me.TabPage3.Text = "模具資訊串聯關係"
554
+        Me.TabPage3.UseVisualStyleBackColor = True
555
+        '
556
+        'Label11
557
+        '
558
+        Me.Label11.AutoSize = True
559
+        Me.Label11.Location = New System.Drawing.Point(1307, 9)
560
+        Me.Label11.Name = "Label11"
561
+        Me.Label11.Size = New System.Drawing.Size(126, 16)
562
+        Me.Label11.TabIndex = 666
563
+        Me.Label11.Text = "模具規格  --  鞋樣素描"
564
+        '
565
+        '鞋樣素描1_dgv
566
+        '
567
+        DataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
568
+        Me.鞋樣素描1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle22
569
+        Me.鞋樣素描1_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
570
+        Me.鞋樣素描1_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
571
+        Me.鞋樣素描1_dgv.Location = New System.Drawing.Point(1307, 29)
572
+        Me.鞋樣素描1_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
573
+        Me.鞋樣素描1_dgv.Name = "鞋樣素描1_dgv"
574
+        Me.鞋樣素描1_dgv.RowHeadersWidth = 5
575
+        Me.鞋樣素描1_dgv.RowTemplate.Height = 24
576
+        Me.鞋樣素描1_dgv.Size = New System.Drawing.Size(576, 894)
577
+        Me.鞋樣素描1_dgv.TabIndex = 665
578
+        '
579
+        'Label9
580
+        '
581
+        Me.Label9.AutoSize = True
582
+        Me.Label9.Location = New System.Drawing.Point(1206, 9)
583
+        Me.Label9.Name = "Label9"
584
+        Me.Label9.Size = New System.Drawing.Size(44, 16)
585
+        Me.Label9.TabIndex = 664
586
+        Me.Label9.Text = "筆資料"
587
+        '
588
+        'Label10
589
+        '
590
+        Me.Label10.AutoSize = True
591
+        Me.Label10.Location = New System.Drawing.Point(1099, 9)
592
+        Me.Label10.Name = "Label10"
593
+        Me.Label10.Size = New System.Drawing.Size(20, 16)
594
+        Me.Label10.TabIndex = 663
595
+        Me.Label10.Text = "共"
596
+        '
597
+        '筆數2_tb
598
+        '
599
+        Me.筆數2_tb.ForeColor = System.Drawing.Color.Red
600
+        Me.筆數2_tb.Location = New System.Drawing.Point(1122, 4)
601
+        Me.筆數2_tb.Name = "筆數2_tb"
602
+        Me.筆數2_tb.Size = New System.Drawing.Size(82, 23)
603
+        Me.筆數2_tb.TabIndex = 662
604
+        Me.筆數2_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
605
+        '
606
+        'Label6
607
+        '
608
+        Me.Label6.AutoSize = True
609
+        Me.Label6.Location = New System.Drawing.Point(6, 5)
610
+        Me.Label6.Name = "Label6"
611
+        Me.Label6.Size = New System.Drawing.Size(56, 16)
612
+        Me.Label6.TabIndex = 655
613
+        Me.Label6.Text = "模具規格"
614
+        '
615
+        '模具規格_dgv
616
+        '
617
+        Me.模具規格_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
618
+        Me.模具規格_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
619
+        Me.模具規格_dgv.Location = New System.Drawing.Point(6, 29)
620
+        Me.模具規格_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
621
+        Me.模具規格_dgv.Name = "模具規格_dgv"
622
+        Me.模具規格_dgv.RowHeadersWidth = 5
623
+        Me.模具規格_dgv.RowTemplate.Height = 24
624
+        Me.模具規格_dgv.Size = New System.Drawing.Size(1298, 894)
625
+        Me.模具規格_dgv.TabIndex = 653
626
+        '
627
+        '模具規格_tb
628
+        '
629
+        Me.模具規格_tb.Location = New System.Drawing.Point(68, 2)
630
+        Me.模具規格_tb.Name = "模具規格_tb"
631
+        Me.模具規格_tb.Size = New System.Drawing.Size(166, 23)
632
+        Me.模具規格_tb.TabIndex = 654
633
+        '
634
+        'TabPage4
635
+        '
636
+        Me.TabPage4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
637
+        Me.TabPage4.Controls.Add(Me.存檔_bt)
638
+        Me.TabPage4.Controls.Add(Me.自動比對_bt)
639
+        Me.TabPage4.Controls.Add(Me.楦模轉換_dgv)
640
+        Me.TabPage4.Location = New System.Drawing.Point(4, 25)
641
+        Me.TabPage4.Name = "TabPage4"
642
+        Me.TabPage4.Padding = New System.Windows.Forms.Padding(3)
643
+        Me.TabPage4.Size = New System.Drawing.Size(1896, 934)
644
+        Me.TabPage4.TabIndex = 3
645
+        Me.TabPage4.Text = "楦頭CN轉到模具CN"
646
+        Me.TabPage4.UseVisualStyleBackColor = True
647
+        '
648
+        '自動比對_bt
649
+        '
650
+        Me.自動比對_bt.Location = New System.Drawing.Point(1310, 7)
651
+        Me.自動比對_bt.Name = "自動比對_bt"
652
+        Me.自動比對_bt.Size = New System.Drawing.Size(136, 69)
653
+        Me.自動比對_bt.TabIndex = 655
654
+        Me.自動比對_bt.Text = "自動比對"
655
+        Me.自動比對_bt.UseVisualStyleBackColor = True
656
+        '
657
+        '楦模轉換_dgv
658
+        '
659
+        Me.楦模轉換_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
660
+        Me.楦模轉換_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
661
+        Me.楦模轉換_dgv.Location = New System.Drawing.Point(6, 7)
662
+        Me.楦模轉換_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
663
+        Me.楦模轉換_dgv.Name = "楦模轉換_dgv"
664
+        Me.楦模轉換_dgv.RowHeadersWidth = 5
665
+        Me.楦模轉換_dgv.RowTemplate.Height = 24
666
+        Me.楦模轉換_dgv.Size = New System.Drawing.Size(1298, 916)
667
+        Me.楦模轉換_dgv.TabIndex = 654
668
+        '
669
+        '存檔_bt
670
+        '
671
+        Me.存檔_bt.Location = New System.Drawing.Point(1310, 82)
672
+        Me.存檔_bt.Name = "存檔_bt"
673
+        Me.存檔_bt.Size = New System.Drawing.Size(136, 69)
674
+        Me.存檔_bt.TabIndex = 656
675
+        Me.存檔_bt.Text = "存檔"
676
+        Me.存檔_bt.UseVisualStyleBackColor = True
677
+        '
678
+        '製鞋技術資料庫狀態
679
+        '
680
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
681
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
682
+        Me.ClientSize = New System.Drawing.Size(1914, 971)
683
+        Me.Controls.Add(Me.TabControl1)
684
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
685
+        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
686
+        Me.Name = "製鞋技術資料庫狀態"
687
+        Me.Text = "製鞋技術資料庫狀態"
688
+        CType(Me.楦頭規格_dgv, System.ComponentModel.ISupportInitialize).EndInit()
689
+        CType(Me.模具開發_dgv, System.ComponentModel.ISupportInitialize).EndInit()
690
+        CType(Me.鞋樣素描_dgv, System.ComponentModel.ISupportInitialize).EndInit()
691
+        Me.TabControl1.ResumeLayout(False)
692
+        Me.TabPage1.ResumeLayout(False)
693
+        Me.TabPage1.PerformLayout()
694
+        CType(Me.樣品訂單_dgv, System.ComponentModel.ISupportInitialize).EndInit()
695
+        CType(Me.MINI_WAL_dgv, System.ComponentModel.ISupportInitialize).EndInit()
696
+        Me.TabPage2.ResumeLayout(False)
697
+        Me.TabPage2.PerformLayout()
698
+        CType(Me.量產明細_dgv, System.ComponentModel.ISupportInitialize).EndInit()
699
+        CType(Me.出貨明細_dgv, System.ComponentModel.ISupportInitialize).EndInit()
700
+        CType(Me.鞋型圖片_dgv, System.ComponentModel.ISupportInitialize).EndInit()
701
+        CType(Me.量產控制_dgv, System.ComponentModel.ISupportInitialize).EndInit()
702
+        CType(Me.鞋樣素描2_dgv, System.ComponentModel.ISupportInitialize).EndInit()
703
+        CType(Me.樣品訂單1_dgv, System.ComponentModel.ISupportInitialize).EndInit()
704
+        CType(Me.型體資訊_dgv, System.ComponentModel.ISupportInitialize).EndInit()
705
+        Me.TabPage3.ResumeLayout(False)
706
+        Me.TabPage3.PerformLayout()
707
+        CType(Me.鞋樣素描1_dgv, System.ComponentModel.ISupportInitialize).EndInit()
708
+        CType(Me.模具規格_dgv, System.ComponentModel.ISupportInitialize).EndInit()
709
+        Me.TabPage4.ResumeLayout(False)
710
+        CType(Me.楦模轉換_dgv, System.ComponentModel.ISupportInitialize).EndInit()
711
+        Me.ResumeLayout(False)
712
+
713
+    End Sub
714
+
715
+    Friend WithEvents 楦頭規格_dgv As DataGridView
716
+    Friend WithEvents 模具開發_dgv As DataGridView
717
+    Friend WithEvents 鞋樣素描_dgv As DataGridView
718
+    Friend WithEvents 楦頭編號_tb As TextBox
719
+    Friend WithEvents Label1 As Label
720
+    Friend WithEvents Label2 As Label
721
+    Friend WithEvents Label3 As Label
722
+    Friend WithEvents TabControl1 As TabControl
723
+    Friend WithEvents TabPage1 As TabPage
724
+    Friend WithEvents Label4 As Label
725
+    Friend WithEvents MINI_WAL_dgv As DataGridView
726
+    Friend WithEvents TabPage2 As TabPage
727
+    Friend WithEvents Label5 As Label
728
+    Friend WithEvents 樣品訂單_dgv As DataGridView
729
+    Friend WithEvents TabPage3 As TabPage
730
+    Friend WithEvents Label6 As Label
731
+    Friend WithEvents 模具規格_dgv As DataGridView
732
+    Friend WithEvents 模具規格_tb As TextBox
733
+    Friend WithEvents Label8 As Label
734
+    Friend WithEvents Label7 As Label
735
+    Friend WithEvents 筆數1_tb As TextBox
736
+    Friend WithEvents Label9 As Label
737
+    Friend WithEvents Label10 As Label
738
+    Friend WithEvents 筆數2_tb As TextBox
739
+    Friend WithEvents Label11 As Label
740
+    Friend WithEvents 鞋樣素描1_dgv As DataGridView
741
+    Friend WithEvents Label12 As Label
742
+    Friend WithEvents 型體資訊_dgv As DataGridView
743
+    Friend WithEvents Label13 As Label
744
+    Friend WithEvents Label14 As Label
745
+    Friend WithEvents 筆數3_tb As TextBox
746
+    Friend WithEvents Label19 As Label
747
+    Friend WithEvents 量產明細_dgv As DataGridView
748
+    Friend WithEvents Label20 As Label
749
+    Friend WithEvents 出貨明細_dgv As DataGridView
750
+    Friend WithEvents Label15 As Label
751
+    Friend WithEvents 鞋型圖片_dgv As DataGridView
752
+    Friend WithEvents Label16 As Label
753
+    Friend WithEvents 量產控制_dgv As DataGridView
754
+    Friend WithEvents Label17 As Label
755
+    Friend WithEvents Label18 As Label
756
+    Friend WithEvents 鞋樣素描2_dgv As DataGridView
757
+    Friend WithEvents 樣品訂單1_dgv As DataGridView
758
+    Friend WithEvents 名稱_tb As TextBox
759
+    Friend WithEvents 編號_tb As TextBox
760
+    Friend WithEvents 客戶_tb As TextBox
761
+    Friend WithEvents TabPage4 As TabPage
762
+    Friend WithEvents 楦模轉換_dgv As DataGridView
763
+    Friend WithEvents 自動比對_bt As Button
764
+    Friend WithEvents 存檔_bt As Button
765
+End Class

SHENKANG-MES-SYS/製鞋技術管理系統/製鞋技術資料庫除錯.resx → SHENKANG-MES-SYS/製鞋技術管理系統/製鞋技術資料庫狀態.resx 查看文件


+ 402
- 0
SHENKANG-MES-SYS/製鞋技術管理系統/製鞋技術資料庫狀態.vb 查看文件

@@ -0,0 +1,402 @@
1
+Option Strict Off
2
+Public Class 製鞋技術資料庫狀態
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
4
+    ReadOnly ds5 As New DataSet : ReadOnly ds6 As New DataSet : ReadOnly ds7 As New DataSet : ReadOnly ds8 As New DataSet : ReadOnly ds9 As New DataSet
5
+    ReadOnly ds10 As New DataSet : ReadOnly ds11 As New DataSet : ReadOnly ds12 As New DataSet : ReadOnly ds13 As New DataSet : ReadOnly ds14 As New DataSet
6
+    Private Sub Set_清單()
7
+        楦頭規格_dgv.DataSource = Nothing : ds.Clear()
8
+        楦頭規格_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
9
+        楦頭規格_dgv.ColumnHeadersHeight = 40
10
+        楦頭規格_dgv.AllowUserToAddRows = False
11
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
12
+        SQL1 = "SELECT 資料流水號, 楦頭編號, 楦頭圖號碼, 鞋圖號碼, 楦頭名, 楦頭名 AS 模具資料, 楦頭名 AS 素描圖片, 楦頭名 AS [MINI WALL], 楦頭名 AS 樣品單 FROM 楦頭規格控制表 ORDER BY 楦頭編號"
13
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds) : 楦頭規格_dgv.DataSource = ds.Tables(0) : conn.Close()
14
+
15
+        楦頭規格_dgv.Columns(0).FillWeight = 100 : 楦頭規格_dgv.Columns(1).FillWeight = 100 : 楦頭規格_dgv.Columns(2).FillWeight = 100 : 楦頭規格_dgv.Columns(3).FillWeight = 100
16
+        楦頭規格_dgv.Columns(4).FillWeight = 150 : 楦頭規格_dgv.Columns(5).FillWeight = 60 : 楦頭規格_dgv.Columns(6).FillWeight = 60 : 楦頭規格_dgv.Columns(7).FillWeight = 60
17
+        楦頭規格_dgv.Columns(8).FillWeight = 60
18
+
19
+        楦頭編號_tb.Text = "%%"
20
+        Set_清單1() : Set_清單2() : Set_清單3() : Set_清單4()
21
+        For i As Integer = 0 To 楦頭規格_dgv.Rows.Count - 1
22
+            楦頭規格_dgv("模具資料", i).Value = 0 : 楦頭規格_dgv("素描圖片", i).Value = 0 : 楦頭規格_dgv("MINI WALL", i).Value = 0 : 楦頭規格_dgv("樣品單", i).Value = 0
23
+        Next
24
+
25
+        For i As Integer = 0 To 楦頭規格_dgv.Rows.Count - 1
26
+            資料數 = 楦頭規格_dgv.Rows.Count : MyModule1.進度條()
27
+            For ii As Integer = 0 To 模具開發_dgv.Rows.Count - 1
28
+                If 楦頭規格_dgv("楦頭編號", i).Value.ToString = 模具開發_dgv("楦頭編號", ii).Value.ToString Then
29
+                    楦頭規格_dgv("模具資料", i).Value = Val(楦頭規格_dgv("模具資料", i).Value.ToString) + 1
30
+                End If
31
+            Next
32
+            For ii As Integer = 0 To 鞋樣素描_dgv.Rows.Count - 1
33
+                If 楦頭規格_dgv("楦頭編號", i).Value.ToString = 鞋樣素描_dgv("楦頭編號", ii).Value.ToString Then
34
+                    楦頭規格_dgv("素描圖片", i).Value = Val(楦頭規格_dgv("素描圖片", i).Value.ToString) + 1
35
+                End If
36
+            Next
37
+            For ii As Integer = 0 To MINI_WAL_dgv.Rows.Count - 1
38
+                If 楦頭規格_dgv("楦頭編號", i).Value.ToString = MINI_WAL_dgv("楦頭編號", ii).Value.ToString Then
39
+                    楦頭規格_dgv("MINI WALL", i).Value = Val(楦頭規格_dgv("MINI WALL", i).Value.ToString) + 1
40
+                End If
41
+            Next
42
+            For ii As Integer = 0 To 樣品訂單_dgv.Rows.Count - 1
43
+                If 楦頭規格_dgv("楦頭編號", i).Value.ToString = 樣品訂單_dgv("楦頭編號", ii).Value.ToString Then
44
+                    楦頭規格_dgv("樣品單", i).Value = Val(楦頭規格_dgv("樣品單", i).Value.ToString) + 1
45
+                End If
46
+            Next
47
+        Next : WINPROFIT_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
48
+        模具開發_dgv.DataSource = Nothing : ds1.Clear() : 鞋樣素描_dgv.DataSource = Nothing : ds2.Clear()
49
+        MINI_WAL_dgv.DataSource = Nothing : ds3.Clear() : 樣品訂單_dgv.DataSource = Nothing : ds4.Clear()
50
+        楦頭編號_tb.Text = ""
51
+        筆數1_tb.Text = 楦頭規格_dgv.Rows.Count
52
+    End Sub
53
+    Private Sub Set_清單1()
54
+        模具開發_dgv.DataSource = Nothing : ds1.Clear()
55
+        模具開發_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
56
+        模具開發_dgv.ColumnHeadersHeight = 25
57
+        模具開發_dgv.AllowUserToAddRows = False
58
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
59
+        SQL1 = "SELECT 楦頭編號, 模具開發單號, 結構, 材質, 模具編號, 品牌 FROM 模具開發控制表 WHERE (楦頭編號 LIKE '" & 楦頭編號_tb.Text & "')"
60
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds1) : 模具開發_dgv.DataSource = ds1.Tables(0) : conn.Close()
61
+        模具開發_dgv.Columns(0).Visible = False
62
+    End Sub
63
+    Private Sub Set_清單2()
64
+        鞋樣素描_dgv.DataSource = Nothing : ds2.Clear()
65
+        鞋樣素描_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
66
+        鞋樣素描_dgv.ColumnHeadersHeight = 25
67
+        鞋樣素描_dgv.AllowUserToAddRows = False
68
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
69
+        SQL1 = "SELECT 楦頭編號, 鞋樣素描圖編號,模具編號,型體編號,型體名稱,品牌 FROM 鞋樣素描圖控制表 WHERE (楦頭編號 LIKE '" & 楦頭編號_tb.Text & "')"
70
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds2) : 鞋樣素描_dgv.DataSource = ds2.Tables(0) : conn.Close()
71
+        鞋樣素描_dgv.Columns(0).Visible = False
72
+    End Sub
73
+    Private Sub Set_清單3()
74
+        MINI_WAL_dgv.DataSource = Nothing : ds3.Clear()
75
+        MINI_WAL_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
76
+        MINI_WAL_dgv.ColumnHeadersHeight = 25
77
+        MINI_WAL_dgv.AllowUserToAddRows = False
78
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
79
+        SQL1 = "SELECT      MINI_WALL_明細表.楦頭編號, MINI_WALL_明細表.MW編號, MINI_WALL_明細表.製造, MINI_WALL_控制表.季節, MINI_WALL_控制表.品牌, MINI_WALL_明細表.楦頭編號
80
+                FROM        MINI_WALL_明細表 LEFT OUTER JOIN MINI_WALL_控制表 ON MINI_WALL_明細表.MW編號 = MINI_WALL_控制表.MW編號
81
+                WHERE      (MINI_WALL_明細表.楦頭編號 LIKE '" & 楦頭編號_tb.Text & "')
82
+                GROUP BY    MINI_WALL_明細表.MW編號, MINI_WALL_明細表.製造, MINI_WALL_控制表.季節, MINI_WALL_控制表.品牌, MINI_WALL_明細表.楦頭編號
83
+                ORDER BY    MINI_WALL_明細表.MW編號"
84
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds3) : MINI_WAL_dgv.DataSource = ds3.Tables(0) : conn.Close()
85
+        MINI_WAL_dgv.Columns(0).Visible = False
86
+    End Sub
87
+    Private Sub Set_清單4()
88
+        樣品訂單_dgv.DataSource = Nothing : ds4.Clear()
89
+        樣品訂單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
90
+        樣品訂單_dgv.ColumnHeadersHeight = 25
91
+        樣品訂單_dgv.AllowUserToAddRows = False
92
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
93
+        SQL1 = "SELECT 楦頭編號, SO, 季節, 客戶, 型體號碼, 型體名稱 FROM 樣品訂單控制表 WHERE (楦頭編號 LIKE '" & 楦頭編號_tb.Text & "') ORDER BY SO"
94
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds4) : 樣品訂單_dgv.DataSource = ds4.Tables(0) : conn.Close()
95
+        樣品訂單_dgv.Columns(0).Visible = False
96
+    End Sub
97
+    Private Sub Set_清單5()
98
+        模具規格_dgv.DataSource = Nothing : ds5.Clear()
99
+        模具規格_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
100
+        模具規格_dgv.ColumnHeadersHeight = 40
101
+        模具規格_dgv.AllowUserToAddRows = False
102
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
103
+        SQL1 = "SELECT 模具開發單號, 結構, 材質, 楦頭編號, 模具編號, 品牌, 大底廠, 尺寸, 季節, 制表, 制表日期, 模具廠, 模具廠 AS 鞋樣素描 FROM 模具開發控制表 ORDER BY 模具編號"
104
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds5) : 模具規格_dgv.DataSource = ds5.Tables(0) : conn.Close()
105
+
106
+        模具規格_dgv.Columns(0).FillWeight = 100 : 模具規格_dgv.Columns(1).FillWeight = 100 : 模具規格_dgv.Columns(2).FillWeight = 100 : 模具規格_dgv.Columns(3).FillWeight = 100
107
+        模具規格_dgv.Columns(4).FillWeight = 100 : 模具規格_dgv.Columns(5).FillWeight = 100 : 模具規格_dgv.Columns(6).FillWeight = 100 : 模具規格_dgv.Columns(7).FillWeight = 50
108
+        模具規格_dgv.Columns(8).FillWeight = 100 : 模具規格_dgv.Columns(9).FillWeight = 80 : 模具規格_dgv.Columns(10).FillWeight = 90 : 模具規格_dgv.Columns(11).FillWeight = 60
109
+        模具規格_dgv.Columns(12).FillWeight = 60
110
+
111
+        For i As Integer = 0 To 模具規格_dgv.Rows.Count - 1
112
+            資料數 = 模具規格_dgv.Rows.Count : MyModule1.進度條()
113
+            模具規格_tb.Text = 模具規格_dgv("模具編號", i).Value.ToString
114
+            Set_清單6()
115
+            模具規格_dgv("鞋樣素描", i).Value = 鞋樣素描1_dgv.Rows.Count
116
+        Next : WINPROFIT_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
117
+        模具規格_tb.Text = ""
118
+        筆數2_tb.Text = 模具規格_dgv.Rows.Count
119
+    End Sub
120
+    Private Sub Set_清單6()
121
+        鞋樣素描1_dgv.DataSource = Nothing : ds6.Clear()
122
+        鞋樣素描1_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
123
+        鞋樣素描1_dgv.ColumnHeadersHeight = 25
124
+        鞋樣素描1_dgv.AllowUserToAddRows = False
125
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
126
+        SQL1 = "SELECT 鞋樣素描圖編號, 型體編號, 型體名稱, 品牌 FROM 鞋樣素描圖控制表 WHERE (模具編號 LIKE '" & 模具規格_tb.Text & "')"
127
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds6) : 鞋樣素描1_dgv.DataSource = ds6.Tables(0) : conn.Close()
128
+    End Sub
129
+    Private Sub Set_清單7()
130
+        型體資訊_dgv.DataSource = Nothing : ds7.Clear()
131
+        型體資訊_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
132
+        型體資訊_dgv.ColumnHeadersHeight = 40
133
+        型體資訊_dgv.AllowUserToAddRows = False
134
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
135
+        SQL1 = "SELECT 客戶簡稱, 型體號碼, 型體名稱, 型體名稱 AS 鞋樣素描, 型體名稱 AS 鞋型圖片, 型體名稱 AS 樣品訂單, 型體名稱 AS 量產控制, 型體名稱 AS 量產明細, 型體名稱 AS 出貨明細
136
+                FROM 型體控制表 ORDER BY 客戶簡稱, 型體號碼, 型體名稱"
137
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds7) : 型體資訊_dgv.DataSource = ds7.Tables(0) : conn.Close()
138
+
139
+        型體資訊_dgv.Columns(0).FillWeight = 100 : 型體資訊_dgv.Columns(1).FillWeight = 100 : 型體資訊_dgv.Columns(2).FillWeight = 100 : 型體資訊_dgv.Columns(3).FillWeight = 60
140
+        型體資訊_dgv.Columns(4).FillWeight = 60 : 型體資訊_dgv.Columns(5).FillWeight = 60 : 型體資訊_dgv.Columns(6).FillWeight = 60 : 型體資訊_dgv.Columns(7).FillWeight = 60
141
+        型體資訊_dgv.Columns(8).FillWeight = 60
142
+
143
+        客戶_tb.Text = "%%" : 編號_tb.Text = "%%" : 名稱_tb.Text = "%%"
144
+        For i As Integer = 0 To 型體資訊_dgv.Rows.Count - 1
145
+            型體資訊_dgv("鞋樣素描", i).Value = 0 : 型體資訊_dgv("鞋型圖片", i).Value = 0 : 型體資訊_dgv("樣品訂單", i).Value = 0
146
+            型體資訊_dgv("量產控制", i).Value = 0 : 型體資訊_dgv("量產明細", i).Value = 0 : 型體資訊_dgv("出貨明細", i).Value = 0
147
+        Next
148
+
149
+        Set_清單8() : Set_清單9() : Set_清單10() : Set_清單11() : Set_清單12() : Set_清單13()
150
+        For i As Integer = 0 To 型體資訊_dgv.Rows.Count - 1
151
+            資料數 = 型體資訊_dgv.Rows.Count : MyModule1.進度條()
152
+            For ii As Integer = 0 To 鞋樣素描2_dgv.Rows.Count - 1
153
+                If 型體資訊_dgv("型體號碼", i).Value.ToString = 鞋樣素描2_dgv("型體編號", ii).Value.ToString And
154
+                    型體資訊_dgv("型體名稱", i).Value.ToString = 鞋樣素描2_dgv("型體名稱", ii).Value.ToString Then
155
+                    型體資訊_dgv("鞋樣素描", i).Value = Val(型體資訊_dgv("鞋樣素描", i).Value.ToString) + 1
156
+                End If
157
+            Next
158
+            For ii As Integer = 0 To 鞋型圖片_dgv.Rows.Count - 1
159
+                If 型體資訊_dgv("客戶簡稱", i).Value.ToString = 鞋型圖片_dgv("客戶", ii).Value.ToString And
160
+                    型體資訊_dgv("型體號碼", i).Value.ToString = 鞋型圖片_dgv("形體號", ii).Value.ToString And
161
+                    型體資訊_dgv("型體名稱", i).Value.ToString = 鞋型圖片_dgv("形體名", ii).Value.ToString Then
162
+                    型體資訊_dgv("鞋型圖片", i).Value = Val(型體資訊_dgv("鞋型圖片", i).Value.ToString) + 1
163
+                End If
164
+            Next
165
+            For ii As Integer = 0 To 樣品訂單1_dgv.Rows.Count - 1
166
+                If 型體資訊_dgv("型體號碼", i).Value.ToString = 樣品訂單1_dgv("型體號碼", ii).Value.ToString And
167
+                    型體資訊_dgv("型體名稱", i).Value.ToString = 樣品訂單1_dgv("型體名稱", ii).Value.ToString Then
168
+                    型體資訊_dgv("樣品訂單", i).Value = Val(型體資訊_dgv("樣品訂單", i).Value.ToString) + 1
169
+                End If
170
+            Next
171
+            For ii As Integer = 0 To 量產控制_dgv.Rows.Count - 1
172
+                If 型體資訊_dgv("型體號碼", i).Value.ToString = 量產控制_dgv("型體號碼", ii).Value.ToString And
173
+                    型體資訊_dgv("型體名稱", i).Value.ToString = 量產控制_dgv("GOODBOX", ii).Value.ToString Then
174
+                    型體資訊_dgv("量產控制", i).Value = Val(型體資訊_dgv("量產控制", i).Value.ToString) + 1
175
+                End If
176
+            Next
177
+            For ii As Integer = 0 To 量產明細_dgv.Rows.Count - 1
178
+                If 型體資訊_dgv("型體號碼", i).Value.ToString = 量產明細_dgv("ItemNumber", ii).Value.ToString And
179
+                    型體資訊_dgv("型體名稱", i).Value.ToString = 量產明細_dgv("ProductName", ii).Value.ToString Then
180
+                    型體資訊_dgv("量產明細", i).Value = Val(型體資訊_dgv("量產明細", i).Value.ToString) + 1
181
+                End If
182
+            Next
183
+            For ii As Integer = 0 To 出貨明細_dgv.Rows.Count - 1
184
+                If 型體資訊_dgv("型體名稱", i).Value.ToString = 出貨明細_dgv("形體號", ii).Value.ToString Then
185
+                    型體資訊_dgv("出貨明細", i).Value = Val(型體資訊_dgv("出貨明細", i).Value.ToString) + 1
186
+                End If
187
+            Next
188
+        Next : WINPROFIT_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
189
+        鞋樣素描2_dgv.DataSource = Nothing : ds8.Clear() : 鞋型圖片_dgv.DataSource = Nothing : ds9.Clear()
190
+        樣品訂單1_dgv.DataSource = Nothing : ds10.Clear() : 量產控制_dgv.DataSource = Nothing : ds11.Clear()
191
+        量產明細_dgv.DataSource = Nothing : ds12.Clear() : 出貨明細_dgv.DataSource = Nothing : ds13.Clear()
192
+        客戶_tb.Text = "" : 編號_tb.Text = "" : 名稱_tb.Text = ""
193
+        筆數3_tb.Text = 型體資訊_dgv.Rows.Count
194
+    End Sub
195
+    Private Sub Set_清單8()
196
+        鞋樣素描2_dgv.DataSource = Nothing : ds8.Clear()
197
+        鞋樣素描2_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
198
+        鞋樣素描2_dgv.ColumnHeadersHeight = 25
199
+        鞋樣素描2_dgv.AllowUserToAddRows = False
200
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
201
+        SQL1 = "SELECT 型體名稱, 型體編號, 鞋樣素描圖編號, 楦頭編號, 模具編號, 品牌 FROM 鞋樣素描圖控制表 WHERE 型體編號 LIKE '" & 編號_tb.Text & "' AND 型體名稱 LIKE '" & 名稱_tb.Text & "'"
202
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds8) : 鞋樣素描2_dgv.DataSource = ds8.Tables(0) : conn.Close()
203
+        鞋樣素描2_dgv.Columns(0).Visible = False : 鞋樣素描2_dgv.Columns(1).Visible = False
204
+    End Sub
205
+    Private Sub Set_清單9()
206
+        鞋型圖片_dgv.DataSource = Nothing : ds9.Clear()
207
+        鞋型圖片_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
208
+        鞋型圖片_dgv.ColumnHeadersHeight = 25
209
+        鞋型圖片_dgv.AllowUserToAddRows = False
210
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
211
+        SQL1 = "SELECT 客戶, 形體號, 形體名, 顏色, 類別, 入圖者, 圖片編號 FROM 鞋型圖片資料庫 
212
+                WHERE 客戶 LIKE '" & 客戶_tb.Text & "' AND 形體號 LIKE '" & 編號_tb.Text & "' AND 形體名 LIKE '" & 名稱_tb.Text & "'"
213
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds9) : 鞋型圖片_dgv.DataSource = ds9.Tables(0) : conn.Close()
214
+        鞋型圖片_dgv.Columns(0).Visible = False : 鞋型圖片_dgv.Columns(1).Visible = False : 鞋型圖片_dgv.Columns(2).Visible = False
215
+    End Sub
216
+    Private Sub Set_清單10()
217
+        樣品訂單1_dgv.DataSource = Nothing : ds10.Clear()
218
+        樣品訂單1_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
219
+        樣品訂單1_dgv.ColumnHeadersHeight = 25
220
+        樣品訂單1_dgv.AllowUserToAddRows = False
221
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
222
+        SQL1 = "SELECT 型體號碼, 型體名稱, SO, 季節, 型體號碼, 型體名稱, 制單人, 版次 FROM  樣品訂單控制表 
223
+                WHERE  型體號碼 LIKE '" & 編號_tb.Text & "' AND 型體名稱 LIKE '" & 名稱_tb.Text & "'"
224
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds10) : 樣品訂單1_dgv.DataSource = ds10.Tables(0) : conn.Close()
225
+        樣品訂單1_dgv.Columns(0).Visible = False : 樣品訂單1_dgv.Columns(1).Visible = False
226
+    End Sub
227
+    Private Sub Set_清單11()
228
+        量產控制_dgv.DataSource = Nothing : ds11.Clear()
229
+        量產控制_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
230
+        量產控制_dgv.ColumnHeadersHeight = 25
231
+        量產控制_dgv.AllowUserToAddRows = False
232
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
233
+        SQL1 = "SELECT 型體號碼, GOODBOX, 訂單流水號, 年份季度, 客戶訂單號, 型體號碼, GOODBOX AS 形體名稱, APMA確認 AS 顏色 FROM 訂單控制表
234
+                WHERE (型體號碼 LIKE '" & 編號_tb.Text & "') AND (GOODBOX LIKE '" & 名稱_tb.Text & "')"
235
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds11) : 量產控制_dgv.DataSource = ds11.Tables(0) : conn.Close()
236
+        量產控制_dgv.Columns(0).Visible = False : 量產控制_dgv.Columns(1).Visible = False
237
+    End Sub
238
+    Private Sub Set_清單12()
239
+        量產明細_dgv.DataSource = Nothing : ds12.Clear()
240
+        量產明細_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
241
+        量產明細_dgv.ColumnHeadersHeight = 25
242
+        量產明細_dgv.AllowUserToAddRows = False
243
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
244
+        SQL1 = "SELECT ItemNumber, ProductName, 訂單流水號, 客戶訂單號, Color AS 顏色, 資料流水號 FROM 訂單明細表 
245
+                WHERE  ItemNumber LIKE '" & 編號_tb.Text & "' AND ProductName LIKE '" & 名稱_tb.Text & "'"
246
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds12) : 量產明細_dgv.DataSource = ds12.Tables(0) : conn.Close()
247
+        量產明細_dgv.Columns(0).Visible = False : 量產明細_dgv.Columns(1).Visible = False
248
+    End Sub
249
+    Private Sub Set_清單13()
250
+        出貨明細_dgv.DataSource = Nothing : ds13.Clear()
251
+        出貨明細_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
252
+        出貨明細_dgv.ColumnHeadersHeight = 25
253
+        出貨明細_dgv.AllowUserToAddRows = False
254
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
255
+        SQL1 = "SELECT 形體號, 貨款流水號, 資料流水號, 訂單流水號, 年份季度, 客戶訂單號 FROM 貨款匯入出款明細表 WHERE 形體號 LIKE '" & 名稱_tb.Text & "'"
256
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds13) : 出貨明細_dgv.DataSource = ds13.Tables(0) : conn.Close()
257
+        出貨明細_dgv.Columns(0).Visible = False
258
+    End Sub
259
+    Private Sub Set_清單14()
260
+        楦模轉換_dgv.DataSource = Nothing : ds14.Clear()
261
+        楦模轉換_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
262
+        楦模轉換_dgv.ColumnHeadersHeight = 25
263
+        楦模轉換_dgv.AllowUserToAddRows = False
264
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
265
+        SQL1 = "SELECT   模具開發控制表.模具開發單號, 模具開發控制表.模具編號, 模具開發控制表.楦頭編號 AS 模具對應楦頭, 模具開發控制表.CN AS NCN, 楦頭規格控制表.楦頭編號, 
266
+                         楦頭規格控制表.楦頭名 AS OCN, 楦頭規格控制表.資料流水號, METOO選擇按鈕.選擇
267
+                FROM     模具開發控制表 LEFT OUTER JOIN METOO選擇按鈕 ON 模具開發控制表.楦頭編號 = METOO選擇按鈕.對應 FULL OUTER JOIN 楦頭規格控制表 ON 模具開發控制表.楦頭編號 = 
268
+                         楦頭規格控制表.楦頭編號
269
+                ORDER BY 模具開發控制表.模具編號 DESC"
270
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds14) : 楦模轉換_dgv.DataSource = ds14.Tables(0) : conn.Close()
271
+        For i As Integer = 0 To 楦模轉換_dgv.Rows.Count - 1
272
+            楦模轉換_dgv("選擇", i).Value = False
273
+        Next
274
+    End Sub
275
+    Private Sub 製鞋技術資料庫除錯_Load(sender As Object, e As EventArgs) Handles MyBase.Load
276
+        Me.MdiParent = WINPROFIT_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
277
+        Set_清單() : Set_清單5() : Set_清單7() : Set_清單14()
278
+    End Sub
279
+    Private Sub 楦模轉換_dgv_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 楦模轉換_dgv.RowPostPaint
280
+        Dim linePen As New Pen(Color.Blue, 2)
281
+        If e.RowIndex = 楦模轉換_dgv.Rows.Count - 1 Then : Exit Sub : Else
282
+            If 楦模轉換_dgv("模具編號", e.RowIndex).Value.ToString <> 楦模轉換_dgv("模具編號", e.RowIndex + 1).Value.ToString Then
283
+                Dim startX As Integer = IIf(楦模轉換_dgv.RowHeadersVisible, 楦模轉換_dgv.RowHeadersWidth, 0) : Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
284
+                Dim endX As Integer = startX + 楦模轉換_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 楦模轉換_dgv.HorizontalScrollingOffset
285
+                e.Graphics.DrawLine(linePen, startX, startY, endX, startY) : Exit Sub
286
+            End If
287
+            For i As Integer = 0 To 楦模轉換_dgv.Rows.Count - 1
288
+                If 楦模轉換_dgv("選擇", i).Value = True Then
289
+                    楦模轉換_dgv.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
290
+                End If
291
+            Next
292
+        End If
293
+    End Sub
294
+    Private Sub 型體資訊_dgv_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 型體資訊_dgv.RowPostPaint
295
+        Dim linePen As New Pen(Color.Blue, 2)
296
+        If e.RowIndex = 型體資訊_dgv.Rows.Count - 1 Then : Exit Sub : Else
297
+            If 型體資訊_dgv("客戶簡稱", e.RowIndex).Value.ToString <> 型體資訊_dgv("客戶簡稱", e.RowIndex + 1).Value.ToString Then
298
+                Dim startX As Integer = IIf(型體資訊_dgv.RowHeadersVisible, 型體資訊_dgv.RowHeadersWidth, 0) : Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
299
+                Dim endX As Integer = startX + 型體資訊_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 型體資訊_dgv.HorizontalScrollingOffset
300
+                e.Graphics.DrawLine(linePen, startX, startY, endX, startY) : Exit Sub
301
+            End If
302
+            For i As Integer = 0 To 型體資訊_dgv.Rows.Count - 1
303
+                If 型體資訊_dgv("鞋樣素描", i).Value.ToString = "0" And 型體資訊_dgv("鞋型圖片", i).Value.ToString = "0" And
304
+                型體資訊_dgv("樣品訂單", i).Value.ToString = "0" And 型體資訊_dgv("量產控制", i).Value.ToString = "0" And
305
+                型體資訊_dgv("量產明細", i).Value.ToString = "0" And 型體資訊_dgv("出貨明細", i).Value.ToString = "0" Then
306
+                    型體資訊_dgv.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
307
+                End If
308
+                If 型體資訊_dgv("鞋樣素描", i).Value.ToString <> "0" And 型體資訊_dgv("鞋型圖片", i).Value.ToString <> "0" And
309
+                型體資訊_dgv("樣品訂單", i).Value.ToString <> "0" And 型體資訊_dgv("量產控制", i).Value.ToString <> "0" And
310
+                型體資訊_dgv("量產明細", i).Value.ToString <> "0" And 型體資訊_dgv("出貨明細", i).Value.ToString <> "0" Then
311
+                    型體資訊_dgv.Rows(i).DefaultCellStyle.BackColor = Color.LightBlue
312
+                End If
313
+            Next
314
+        End If
315
+    End Sub
316
+    Private Sub 物料清單_dgv_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 模具規格_dgv.RowPostPaint
317
+        Dim linePen As New Pen(Color.Blue, 2)
318
+        If e.RowIndex = 模具規格_dgv.Rows.Count - 1 Then : Exit Sub : Else
319
+            If 模具規格_dgv("模具編號", e.RowIndex).Value.ToString <> 模具規格_dgv("模具編號", e.RowIndex + 1).Value.ToString Then
320
+                Dim startX As Integer = IIf(模具規格_dgv.RowHeadersVisible, 模具規格_dgv.RowHeadersWidth, 0) : Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
321
+                Dim endX As Integer = startX + 模具規格_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 模具規格_dgv.HorizontalScrollingOffset
322
+                e.Graphics.DrawLine(linePen, startX, startY, endX, startY) : Exit Sub
323
+            End If
324
+            For i As Integer = 0 To 模具規格_dgv.Rows.Count - 1
325
+                If 模具規格_dgv("鞋樣素描", i).Value.ToString = "0" Then : 模具規格_dgv.Rows(i).DefaultCellStyle.BackColor = Color.LightPink : End If
326
+                If 模具規格_dgv("鞋樣素描", i).Value.ToString <> "0" Then : 模具規格_dgv.Rows(i).DefaultCellStyle.BackColor = Color.LightBlue : End If
327
+            Next
328
+        End If
329
+    End Sub
330
+    Private Sub 楦頭規格_dgv_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 楦頭規格_dgv.RowPostPaint
331
+        If e.RowIndex = 楦頭規格_dgv.Rows.Count - 1 Then : Exit Sub : Else
332
+            For i As Integer = 0 To 楦頭規格_dgv.Rows.Count - 1
333
+                If 楦頭規格_dgv("模具資料", i).Value.ToString = "0" And 楦頭規格_dgv("素描圖片", i).Value.ToString = "0" And
334
+                楦頭規格_dgv("MINI WALL", i).Value.ToString = "0" And 楦頭規格_dgv("樣品單", i).Value.ToString = "0" Then
335
+                    楦頭規格_dgv.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
336
+                End If
337
+                If 楦頭規格_dgv("模具資料", i).Value.ToString <> "0" And 楦頭規格_dgv("素描圖片", i).Value.ToString <> "0" And
338
+                楦頭規格_dgv("MINI WALL", i).Value.ToString <> "0" And 楦頭規格_dgv("樣品單", i).Value.ToString <> "0" Then
339
+                    楦頭規格_dgv.Rows(i).DefaultCellStyle.BackColor = Color.LightBlue
340
+                End If
341
+            Next
342
+        End If
343
+    End Sub
344
+    Private Sub 楦模轉換_dgv_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 楦模轉換_dgv.CellClick
345
+        If 楦模轉換_dgv("模具開發單號", e.RowIndex).Value.ToString = "" Then
346
+            楦模轉換_dgv("選擇", e.RowIndex).Value = False
347
+        Else
348
+            If 楦模轉換_dgv("資料流水號", e.RowIndex).Value.ToString = "" Then
349
+                楦模轉換_dgv("選擇", e.RowIndex).Value = False
350
+            Else
351
+                If 楦模轉換_dgv("OCN", e.RowIndex).Value.ToString = "" Then
352
+                    楦模轉換_dgv("選擇", e.RowIndex).Value = False
353
+                Else
354
+                    楦模轉換_dgv("選擇", e.RowIndex).Value = True
355
+                    楦模轉換_dgv("NCN", e.RowIndex).Value = 楦模轉換_dgv("OCN", e.RowIndex).Value.ToString
356
+                End If
357
+            End If
358
+        End If
359
+    End Sub
360
+    Private Sub 型體資訊_dgv_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 型體資訊_dgv.CellClick
361
+        客戶_tb.Text = 型體資訊_dgv("客戶簡稱", e.RowIndex).Value.ToString : 編號_tb.Text = 型體資訊_dgv("型體號碼", e.RowIndex).Value.ToString
362
+        名稱_tb.Text = 型體資訊_dgv("型體名稱", e.RowIndex).Value.ToString
363
+        Set_清單8() : Set_清單9() : Set_清單10() : Set_清單11() : Set_清單12() : Set_清單13()
364
+    End Sub
365
+    Private Sub 模具規格_dgv_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 模具規格_dgv.CellClick
366
+        模具規格_tb.Text = 模具規格_dgv("模具編號", e.RowIndex).Value.ToString
367
+        Set_清單6()
368
+    End Sub
369
+    Private Sub 楦頭規格_dgv_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 楦頭規格_dgv.CellClick
370
+        楦頭編號_tb.Text = 楦頭規格_dgv("楦頭編號", e.RowIndex).Value.ToString
371
+        Set_清單1() : Set_清單2() : Set_清單3() : Set_清單4()
372
+    End Sub
373
+    Private Sub 自動比對_bt_Click(sender As Object, e As EventArgs) Handles 自動比對_bt.Click
374
+        For i As Integer = 0 To 楦模轉換_dgv.Rows.Count - 1
375
+            If 楦模轉換_dgv("模具開發單號", i).Value.ToString = "" Then
376
+                楦模轉換_dgv("選擇", i).Value = False
377
+            Else
378
+                If 楦模轉換_dgv("資料流水號", i).Value.ToString = "" Then
379
+                    楦模轉換_dgv("選擇", i).Value = False
380
+                Else
381
+                    If 楦模轉換_dgv("OCN", i).Value.ToString = "" Then
382
+                        楦模轉換_dgv("選擇", i).Value = False
383
+                    Else
384
+                        楦模轉換_dgv("選擇", i).Value = True
385
+                        楦模轉換_dgv("NCN", i).Value = 楦模轉換_dgv("OCN", i).Value.ToString
386
+                    End If
387
+                End If
388
+            End If
389
+        Next
390
+    End Sub
391
+    Private Sub 存檔_bt_Click(sender As Object, e As EventArgs) Handles 存檔_bt.Click
392
+        For i As Integer = 0 To 楦模轉換_dgv.Rows.Count - 1
393
+            資料數 = 楦模轉換_dgv.Rows.Count : MyModule1.進度條()
394
+            If 楦模轉換_dgv("模具開發單號", i).Value.ToString = "" Then : Else
395
+                If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
396
+                SQL1 = "UPDATE 模具開發控制表 SET CN = N'" & 楦模轉換_dgv("NCN", i).Value.ToString & "' WHERE 模具開發單號 LIKE N'" & 楦模轉換_dgv("模具開發單號", i).Value.ToString & "'"
397
+                cmd.Connection = conn : cmd.CommandText = SQL1 : cmd.ExecuteNonQuery() : conn.Close()
398
+            End If
399
+        Next : WINPROFIT_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
400
+        Set_清單14()
401
+    End Sub
402
+End Class

+ 0
- 59
SHENKANG-MES-SYS/製鞋技術管理系統/製鞋技術資料庫除錯.Designer.vb 查看文件

@@ -1,59 +0,0 @@
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
-        Me.DataGridView1 = New System.Windows.Forms.DataGridView()
27
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
28
-        Me.SuspendLayout()
29
-        '
30
-        'DataGridView1
31
-        '
32
-        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
33
-        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
34
-        Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
35
-        Me.DataGridView1.Location = New System.Drawing.Point(12, 58)
36
-        Me.DataGridView1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
37
-        Me.DataGridView1.Name = "DataGridView1"
38
-        Me.DataGridView1.RowHeadersWidth = 5
39
-        Me.DataGridView1.RowTemplate.Height = 24
40
-        Me.DataGridView1.Size = New System.Drawing.Size(1890, 900)
41
-        Me.DataGridView1.TabIndex = 648
42
-        '
43
-        '製鞋技術資料庫除錯
44
-        '
45
-        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
46
-        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
47
-        Me.ClientSize = New System.Drawing.Size(1914, 971)
48
-        Me.Controls.Add(Me.DataGridView1)
49
-        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
50
-        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
51
-        Me.Name = "製鞋技術資料庫除錯"
52
-        Me.Text = "製鞋技術資料庫除錯"
53
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
54
-        Me.ResumeLayout(False)
55
-
56
-    End Sub
57
-
58
-    Friend WithEvents DataGridView1 As DataGridView
59
-End Class

+ 0
- 34
SHENKANG-MES-SYS/製鞋技術管理系統/製鞋技術資料庫除錯.vb 查看文件

@@ -1,34 +0,0 @@
1
-Option Strict Off
2
-Imports System.Data.SqlClient
3
-Imports System.Net
4
-Public Class 製鞋技術資料庫除錯
5
-    Public Property Credentials As ICredentials
6
-    ReadOnly conn As New SqlConnection
7
-    ReadOnly da As New SqlDataAdapter
8
-    ReadOnly cmd As New SqlCommand
9
-    ReadOnly ds As New DataSet
10
-    Private Sub Set_清單()
11
-        DataGridView1.DataSource = Nothing : ds.Clear()
12
-        DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
13
-        DataGridView1.ColumnHeadersHeight = 25
14
-        DataGridView1.AllowUserToAddRows = False
15
-        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
16
-        SQL1 = "SELECT  楦頭規格控制表.資料流水號, 楦頭規格控制表.楦頭編號, 楦頭規格控制表.楦頭圖號碼, 楦頭規格控制表.鞋圖號碼, 
17
-                        楦頭規格控制表.楦頭名, 楦頭圖片庫.楦頭圖片編號, 楦頭圖片庫.楦頭編號 AS 楦圖用_楦頭編號, 
18
-                        模具開發控制表.模具開發單號, 模具開發控制表.楦頭編號 AS 模具用_楦頭編號, 模具開發控制表.模具編號, 
19
-                        鞋樣素描圖控制表.鞋樣素描圖編號, 鞋樣素描圖控制表.楦頭編號 AS 鞋樣用_楦頭編號, 
20
-                        鞋樣素描圖控制表.模具編號 AS 鞋樣用_模具編號, 鞋樣素描圖控制表.型體編號, 鞋樣素描圖控制表.型體名稱
21
-                FROM    楦頭規格控制表 FULL OUTER JOIN
22
-                        鞋樣素描圖控制表 ON 楦頭規格控制表.楦頭編號 = 鞋樣素描圖控制表.楦頭編號 FULL OUTER JOIN
23
-                        模具開發控制表 ON 楦頭規格控制表.楦頭編號 = 模具開發控制表.楦頭編號 FULL OUTER JOIN
24
-                        楦頭圖片庫 ON 楦頭規格控制表.楦頭編號 = 楦頭圖片庫.楦頭編號
25
-                WHERE  (楦頭圖片庫.楦頭編號 NOT LIKE 'WL%') AND (楦頭圖片庫.楦頭編號 NOT LIKE 'ML%')
26
-                ORDER BY   楦頭規格控制表.楦頭編號"
27
-        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds) : DataGridView1.DataSource = ds.Tables(0) : conn.Close()
28
-        DataGridView1.Columns(0).Width = 100 : DataGridView1.Columns(1).Width = 100
29
-    End Sub
30
-    Private Sub 製鞋技術資料庫除錯_Load(sender As Object, e As EventArgs) Handles MyBase.Load
31
-        Me.MdiParent = WINPROFIT_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
32
-        Set_清單()
33
-    End Sub
34
-End Class

+ 2
- 2
SHENKANG-MES-SYS/製鞋技術管理系統/鞋樣素描控制表.vb 查看文件

@@ -22,9 +22,9 @@ Public Class 鞋樣素描控制表
22 22
     Private Sub Set_楦頭規格表清單()
23 23
         Set_DGV1載入前設定()
24 24
         If PA = "" Then
25
-            SQL1 = "SELECT 楦頭編號, 楦頭名 AS 結構名稱 FROM 楦頭規格控制表 ORDER BY 楦頭編號"
25
+            SQL1 = "SELECT 楦頭編號, 楦頭名 FROM 楦頭規格控制表 ORDER BY 楦頭編號"
26 26
         Else
27
-            SQL1 = "SELECT 楦頭編號, 楦頭名 AS 結構名稱 FROM 楦頭規格控制表 WHERE 楦頭編號 LIKE N'%" & PA & "%' ORDER BY 楦頭編號"
27
+            SQL1 = "SELECT 楦頭編號, 楦頭名 FROM 楦頭規格控制表 WHERE 楦頭編號 LIKE N'%" & PA & "%' ORDER BY 楦頭編號"
28 28
         End If
29 29
         Set_DGV1載入後設定() : Set_grid()
30 30
     End Sub

+ 32
- 5
SHENKANG-MES-SYS/請採購館洗系統/供應商管理(製鞋樣品).Designer.vb 查看文件

@@ -76,13 +76,15 @@ Partial Class 供應商管理_製鞋樣品
76 76
         Me.TextBox1 = New System.Windows.Forms.TextBox()
77 77
         Me.Button7 = New System.Windows.Forms.Button()
78 78
         Me.ComboBox1 = New System.Windows.Forms.ComboBox()
79
+        Me.Button8 = New System.Windows.Forms.Button()
80
+        Me.停用_ch = New System.Windows.Forms.CheckBox()
79 81
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
80 82
         Me.SuspendLayout()
81 83
         '
82 84
         'Button6
83 85
         '
84 86
         Me.Button6.ForeColor = System.Drawing.Color.Purple
85
-        Me.Button6.Location = New System.Drawing.Point(1734, 2)
87
+        Me.Button6.Location = New System.Drawing.Point(1734, 5)
86 88
         Me.Button6.Name = "Button6"
87 89
         Me.Button6.Size = New System.Drawing.Size(156, 25)
88 90
         Me.Button6.TabIndex = 184
@@ -106,7 +108,7 @@ Partial Class 供應商管理_製鞋樣品
106 108
         '
107 109
         Me.Label23.AutoSize = True
108 110
         Me.Label23.ForeColor = System.Drawing.Color.Red
109
-        Me.Label23.Location = New System.Drawing.Point(1382, 9)
111
+        Me.Label23.Location = New System.Drawing.Point(1378, 9)
110 112
         Me.Label23.Name = "Label23"
111 113
         Me.Label23.Size = New System.Drawing.Size(116, 16)
112 114
         Me.Label23.TabIndex = 182
@@ -118,14 +120,14 @@ Partial Class 供應商管理_製鞋樣品
118 120
         Me.Button5.ForeColor = System.Drawing.Color.Blue
119 121
         Me.Button5.Location = New System.Drawing.Point(1653, 33)
120 122
         Me.Button5.Name = "Button5"
121
-        Me.Button5.Size = New System.Drawing.Size(75, 83)
123
+        Me.Button5.Size = New System.Drawing.Size(75, 54)
122 124
         Me.Button5.TabIndex = 181
123 125
         Me.Button5.Text = "確認新增"
124 126
         Me.Button5.UseVisualStyleBackColor = True
125 127
         '
126 128
         'Button4
127 129
         '
128
-        Me.Button4.Location = New System.Drawing.Point(1572, 2)
130
+        Me.Button4.Location = New System.Drawing.Point(1572, 5)
129 131
         Me.Button4.Name = "Button4"
130 132
         Me.Button4.Size = New System.Drawing.Size(156, 25)
131 133
         Me.Button4.TabIndex = 180
@@ -203,7 +205,7 @@ Partial Class 供應商管理_製鞋樣品
203 205
         Me.Button1.ForeColor = System.Drawing.Color.Blue
204 206
         Me.Button1.Location = New System.Drawing.Point(1572, 33)
205 207
         Me.Button1.Name = "Button1"
206
-        Me.Button1.Size = New System.Drawing.Size(75, 83)
208
+        Me.Button1.Size = New System.Drawing.Size(75, 54)
207 209
         Me.Button1.TabIndex = 171
208 210
         Me.Button1.Text = "新增"
209 211
         Me.Button1.UseVisualStyleBackColor = True
@@ -575,11 +577,34 @@ Partial Class 供應商管理_製鞋樣品
575 577
         Me.ComboBox1.Size = New System.Drawing.Size(150, 24)
576 578
         Me.ComboBox1.TabIndex = 763
577 579
         '
580
+        'Button8
581
+        '
582
+        Me.Button8.ForeColor = System.Drawing.Color.Olive
583
+        Me.Button8.Location = New System.Drawing.Point(1572, 91)
584
+        Me.Button8.Name = "Button8"
585
+        Me.Button8.Size = New System.Drawing.Size(156, 25)
586
+        Me.Button8.TabIndex = 764
587
+        Me.Button8.Text = "新增供應商類別"
588
+        Me.Button8.UseVisualStyleBackColor = True
589
+        '
590
+        '停用_ch
591
+        '
592
+        Me.停用_ch.AutoSize = True
593
+        Me.停用_ch.ForeColor = System.Drawing.Color.Red
594
+        Me.停用_ch.Location = New System.Drawing.Point(1515, 8)
595
+        Me.停用_ch.Name = "停用_ch"
596
+        Me.停用_ch.Size = New System.Drawing.Size(51, 20)
597
+        Me.停用_ch.TabIndex = 765
598
+        Me.停用_ch.Text = "停用"
599
+        Me.停用_ch.UseVisualStyleBackColor = True
600
+        '
578 601
         '供應商管理_製鞋樣品
579 602
         '
580 603
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
581 604
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
582 605
         Me.ClientSize = New System.Drawing.Size(1914, 971)
606
+        Me.Controls.Add(Me.停用_ch)
607
+        Me.Controls.Add(Me.Button8)
583 608
         Me.Controls.Add(Me.ComboBox1)
584 609
         Me.Controls.Add(Me.Button7)
585 610
         Me.Controls.Add(Me.Button6)
@@ -696,4 +721,6 @@ Partial Class 供應商管理_製鞋樣品
696 721
     Friend WithEvents TextBox1 As TextBox
697 722
     Friend WithEvents Button7 As Button
698 723
     Friend WithEvents ComboBox1 As ComboBox
724
+    Friend WithEvents Button8 As Button
725
+    Friend WithEvents 停用_ch As CheckBox
699 726
 End Class

+ 23
- 17
SHENKANG-MES-SYS/請採購館洗系統/供應商管理(製鞋樣品).vb 查看文件

@@ -15,10 +15,10 @@ Public Class 供應商管理_製鞋樣品
15 15
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
16 16
         If PA = "" Then
17 17
             SQL1 = "SELECT 供應商編碼, 廠商, 公司名, 公司地址, 公司電話1, 公司電話2, 公司電話3, 公司傳真1, 公司傳真2, 公司傳真3 AS 廠商類別, 聯繫人1, 聯繫人2, 聯繫人3, 聯繫人1職稱, " &
18
-                   "聯繫人2職稱, 聯繫人3職稱, 聯繫人1電話, 聯繫人2電話, 聯繫人3電話, 聯繫人1郵箱, 聯繫人2郵箱, 聯繫人3郵箱 FROM 供應商清單 ORDER BY 供應商編碼"
18
+                   "聯繫人2職稱, 聯繫人3職稱, 聯繫人1電話, 聯繫人2電話, 聯繫人3電話, 聯繫人1郵箱, 聯繫人2郵箱, 聯繫人3郵箱, 停用 FROM 供應商清單 ORDER BY 供應商編碼"
19 19
         Else
20 20
             SQL1 = "SELECT 供應商編碼, 廠商, 公司名, 公司地址, 公司電話1, 公司電話2, 公司電話3, 公司傳真1, 公司傳真2, 公司傳真3, 聯繫人1, 聯繫人2, 聯繫人3, 聯繫人1職稱, " &
21
-                   "聯繫人2職稱, 聯繫人3職稱, 聯繫人1電話, 聯繫人2電話, 聯繫人3電話, 聯繫人1郵箱, 聯繫人2郵箱, 聯繫人3郵箱 FROM 供應商清單 " &
21
+                   "聯繫人2職稱, 聯繫人3職稱, 聯繫人1電話, 聯繫人2電話, 聯繫人3電話, 聯繫人1郵箱, 聯繫人2郵箱, 聯繫人3郵箱, 停用 FROM 供應商清單 " &
22 22
                    "WHERE 供應商編碼 LIKE N'%" & PA & "%' OR 廠商 LIKE N'%" & PA & "%' OR 公司名 LIKE N'%" & PA & "%' OR 公司地址 LIKE N'%" & PA & "%' OR " &
23 23
                    "聯繫人1 LIKE N'%" & PA & "%' OR 聯繫人2 LIKE N'%" & PA & "%' OR 聯繫人3 LIKE N'%" & PA & "%' ORDER BY 供應商編碼"
24 24
         End If
@@ -28,9 +28,9 @@ Public Class 供應商管理_製鞋樣品
28 28
     Private Sub Set_grid()
29 29
         DataGridView1.Columns(0).Width = 80 : DataGridView1.Columns(1).Width = 90 : DataGridView1.Columns(2).Width = 200
30 30
         DataGridView1.Columns(3).Width = 400 : DataGridView1.Columns(4).Width = 120 : DataGridView1.Columns(5).Width = 120
31
-        DataGridView1.Columns(6).Width = 120 : DataGridView1.Columns(7).Width = 120 : DataGridView1.Columns(8).Width = 120
32
-        DataGridView1.Columns(9).Width = 120 : DataGridView1.Columns(10).Width = 120 : DataGridView1.Columns(11).Width = 120
33
-        DataGridView1.Columns(12).Width = 120
31
+        DataGridView1.Columns(6).Width = 120 : DataGridView1.Columns(7).Width = 120 : DataGridView1.Columns(8).Width = 110
32
+        DataGridView1.Columns(9).Width = 110 : DataGridView1.Columns(10).Width = 110 : DataGridView1.Columns(11).Width = 110
33
+        DataGridView1.Columns(12).Width = 110 : DataGridView1.Columns(22).Width = 50
34 34
         DataGridView1.Columns(13).Visible = False : DataGridView1.Columns(14).Visible = False : DataGridView1.Columns(15).Visible = False
35 35
         DataGridView1.Columns(16).Visible = False : DataGridView1.Columns(17).Visible = False : DataGridView1.Columns(18).Visible = False
36 36
         DataGridView1.Columns(19).Visible = False : DataGridView1.Columns(20).Visible = False : DataGridView1.Columns(21).Visible = False
@@ -73,6 +73,7 @@ Public Class 供應商管理_製鞋樣品
73 73
             TextBox17.Text = DataGridView1(16, e.RowIndex).Value.ToString : TextBox18.Text = DataGridView1(17, e.RowIndex).Value.ToString
74 74
             TextBox19.Text = DataGridView1(18, e.RowIndex).Value.ToString : TextBox21.Text = DataGridView1(19, e.RowIndex).Value.ToString
75 75
             TextBox22.Text = DataGridView1(20, e.RowIndex).Value.ToString : TextBox23.Text = DataGridView1(21, e.RowIndex).Value.ToString
76
+            停用_ch.Checked = DataGridView1(22, e.RowIndex).Value
76 77
         End If
77 78
     End Sub
78 79
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
@@ -104,19 +105,20 @@ Public Class 供應商管理_製鞋樣品
104 105
         Else
105 106
             If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
106 107
             SQL1 = "INSERT INTO 供應商清單 (供應商編碼, 廠商, 公司名, 公司地址, 公司電話1, 公司電話2, 公司電話3, 公司傳真1, 公司傳真2, 公司傳真3, 聯繫人1, 聯繫人2, 聯繫人3, " &
107
-                  "聯繫人1職稱, 聯繫人2職稱, 聯繫人3職稱, 聯繫人1電話, 聯繫人2電話, 聯繫人3電話, 聯繫人1郵箱, 聯繫人2郵箱, 聯繫人3郵箱) VALUES (N'" & TextBox1.Text & "',N'" & TextBox2.Text &
108
-                      "',N'" & TextBox3.Text & "',N'" & TextBox4.Text & "',N'" & TextBox5.Text & "',N'" & TextBox6.Text & "',N'" & TextBox7.Text & "',N'" & TextBox8.Text &
109
-                      "',N'" & TextBox9.Text & "',N'" & ComboBox1.Text & "',N'" & TextBox11.Text & "',N'" & TextBox12.Text & "',N'" & TextBox13.Text & "',N'" & TextBox14.Text &
110
-                      "',N'" & TextBox15.Text & "',N'" & TextBox16.Text & "',N'" & TextBox17.Text & "',N'" & TextBox18.Text & "',N'" & TextBox19.Text & "',N'" & TextBox21.Text &
111
-                      "',N'" & TextBox22.Text & "',N'" & TextBox23.Text & "')"
108
+                  "聯繫人1職稱, 聯繫人2職稱, 聯繫人3職稱, 聯繫人1電話, 聯繫人2電話, 聯繫人3電話, 聯繫人1郵箱, 聯繫人2郵箱, 聯繫人3郵箱, 停用) VALUES (N'" & TextBox1.Text &
109
+                      "',N'" & TextBox2.Text & "',N'" & TextBox3.Text & "',N'" & TextBox4.Text & "',N'" & TextBox5.Text & "',N'" & TextBox6.Text & "',N'" & TextBox7.Text &
110
+                      "',N'" & TextBox8.Text & "',N'" & TextBox9.Text & "',N'" & ComboBox1.Text & "',N'" & TextBox11.Text & "',N'" & TextBox12.Text & "',N'" & TextBox13.Text &
111
+                      "',N'" & TextBox14.Text & "',N'" & TextBox15.Text & "',N'" & TextBox16.Text & "',N'" & TextBox17.Text & "',N'" & TextBox18.Text & "',N'" & TextBox19.Text &
112
+                      "',N'" & TextBox21.Text & "',N'" & TextBox22.Text & "',N'" & TextBox23.Text & "', N'0')"
112 113
             cmd.Connection = conn : cmd.CommandText = SQL1 : cmd.ExecuteNonQuery()
113 114
             conn.Close()
114 115
             MsgBox("新增完成")
115 116
             格式設定1()
116 117
             讀取供應商料表() : Set_grid()
117
-            TextBox2.Enabled = False : TextBox3.Enabled = False : TextBox4.Enabled = False : TextBox5.Enabled = False : TextBox6.Enabled = False : TextBox7.Enabled = False : TextBox8.Enabled = False
118
-            TextBox9.Enabled = False : ComboBox1.Enabled = False : TextBox11.Enabled = False : TextBox12.Enabled = False : TextBox13.Enabled = False : TextBox14.Enabled = False : TextBox15.Enabled = False
119
-            TextBox16.Enabled = False : TextBox17.Enabled = False : TextBox18.Enabled = False : TextBox19.Enabled = False : TextBox21.Enabled = False : TextBox22.Enabled = False : TextBox23.Enabled = False
118
+            TextBox2.Enabled = False : TextBox3.Enabled = False : TextBox4.Enabled = False : TextBox5.Enabled = False : TextBox6.Enabled = False : TextBox7.Enabled = False
119
+            TextBox8.Enabled = False : TextBox9.Enabled = False : ComboBox1.Enabled = False : TextBox11.Enabled = False : TextBox12.Enabled = False : TextBox13.Enabled = False
120
+            TextBox14.Enabled = False : TextBox15.Enabled = False : TextBox16.Enabled = False : TextBox17.Enabled = False : TextBox18.Enabled = False : TextBox19.Enabled = False
121
+            TextBox21.Enabled = False : TextBox22.Enabled = False : TextBox23.Enabled = False
120 122
             DataGridView1.Enabled = True
121 123
         End If
122 124
     End Sub
@@ -127,15 +129,16 @@ Public Class 供應商管理_製鞋樣品
127 129
                "', 公司傳真2 = N'" & TextBox9.Text & "', 公司傳真3 = N'" & ComboBox1.Text & "', 聯繫人1 = N'" & TextBox11.Text & "', 聯繫人2 = N'" & TextBox12.Text &
128 130
                "', 聯繫人3 = N'" & TextBox13.Text & "', 聯繫人1職稱 = N'" & TextBox14.Text & "', 聯繫人2職稱 = N'" & TextBox15.Text & "', 聯繫人3職稱 = N'" & TextBox16.Text &
129 131
                "', 聯繫人1電話 = N'" & TextBox17.Text & "', 聯繫人2電話 = N'" & TextBox18.Text & "', 聯繫人3電話 = N'" & TextBox19.Text & "', 聯繫人1郵箱 = N'" & TextBox21.Text &
130
-               "', 聯繫人2郵箱 = N'" & TextBox22.Text & "', 聯繫人3郵箱 = N'" & TextBox23.Text & "' WHERE (供應商編碼 = '" & TextBox1.Text & "')"
132
+               "', 聯繫人2郵箱 = N'" & TextBox22.Text & "', 聯繫人3郵箱 = N'" & TextBox23.Text & "', 停用 = '" & 停用_ch.Checked & "' WHERE (供應商編碼 = '" & TextBox1.Text & "')"
131 133
         cmd.CommandText = SQL1 : cmd.ExecuteNonQuery()
132 134
         conn.Close()
133 135
         Set_日期格式轉換() : 格式設定1()
134 136
         MsgBox("修改完成")
135 137
         讀取供應商料表() : Set_grid()
136
-        TextBox2.Enabled = False : TextBox3.Enabled = False : TextBox4.Enabled = False : TextBox5.Enabled = False : TextBox6.Enabled = False : TextBox7.Enabled = False : TextBox8.Enabled = False
137
-        TextBox9.Enabled = False : ComboBox1.Enabled = False : TextBox11.Enabled = False : TextBox12.Enabled = False : TextBox13.Enabled = False : TextBox14.Enabled = False : TextBox15.Enabled = False
138
-        TextBox16.Enabled = False : TextBox17.Enabled = False : TextBox18.Enabled = False : TextBox19.Enabled = False : TextBox21.Enabled = False : TextBox22.Enabled = False : TextBox23.Enabled = False
138
+        TextBox2.Enabled = False : TextBox3.Enabled = False : TextBox4.Enabled = False : TextBox5.Enabled = False : TextBox6.Enabled = False : TextBox7.Enabled = False
139
+        TextBox8.Enabled = False : TextBox9.Enabled = False : ComboBox1.Enabled = False : TextBox11.Enabled = False : TextBox12.Enabled = False : TextBox13.Enabled = False
140
+        TextBox14.Enabled = False : TextBox15.Enabled = False : TextBox16.Enabled = False : TextBox17.Enabled = False : TextBox18.Enabled = False : TextBox19.Enabled = False
141
+        TextBox21.Enabled = False : TextBox22.Enabled = False : TextBox23.Enabled = False
139 142
     End Sub
140 143
     Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
141 144
         SQL1 = "DELETE FROM 供應商清單 WHERE (供應商編碼 = '" & TextBox1.Text & "')"
@@ -162,4 +165,7 @@ Public Class 供應商管理_製鞋樣品
162 165
         TextBox9.Enabled = True : ComboBox1.Enabled = True : TextBox11.Enabled = True : TextBox12.Enabled = True : TextBox13.Enabled = True : TextBox14.Enabled = True : TextBox15.Enabled = True
163 166
         TextBox16.Enabled = True : TextBox17.Enabled = True : TextBox18.Enabled = True : TextBox19.Enabled = True : TextBox21.Enabled = True : TextBox22.Enabled = True : TextBox23.Enabled = True
164 167
     End Sub
168
+    Private Sub Button8_Click(sender As Object, e As EventArgs) Handles Button8.Click
169
+        清單修改.Close() : 廠商類別修改 = True : 清單修改.ShowDialog() : ComboBox1下拉表單資料載入() : 廠商類別修改 = False
170
+    End Sub
165 171
 End Class

+ 29
- 5
SHENKANG-MES-SYS/請採購館洗系統/樣品物料調料單申請.Designer.vb 查看文件

@@ -68,6 +68,8 @@ Partial Class 樣品物料調料單申請
68 68
         Me.TextBox7 = New System.Windows.Forms.TextBox()
69 69
         Me.Label13 = New System.Windows.Forms.Label()
70 70
         Me.Button7 = New System.Windows.Forms.Button()
71
+        Me.ComboBox18 = New System.Windows.Forms.ComboBox()
72
+        Me.Label33 = New System.Windows.Forms.Label()
71 73
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
72 74
         CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).BeginInit()
73 75
         Me.SuspendLayout()
@@ -97,7 +99,7 @@ Partial Class 樣品物料調料單申請
97 99
         '
98 100
         Me.ComboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
99 101
         Me.ComboBox1.FormattingEnabled = True
100
-        Me.ComboBox1.Location = New System.Drawing.Point(675, 41)
102
+        Me.ComboBox1.Location = New System.Drawing.Point(788, 41)
101 103
         Me.ComboBox1.Name = "ComboBox1"
102 104
         Me.ComboBox1.Size = New System.Drawing.Size(186, 24)
103 105
         Me.ComboBox1.TabIndex = 762
@@ -121,7 +123,7 @@ Partial Class 樣品物料調料單申請
121 123
         'Label2
122 124
         '
123 125
         Me.Label2.AutoSize = True
124
-        Me.Label2.Location = New System.Drawing.Point(553, 44)
126
+        Me.Label2.Location = New System.Drawing.Point(738, 43)
125 127
         Me.Label2.Name = "Label2"
126 128
         Me.Label2.Size = New System.Drawing.Size(44, 16)
127 129
         Me.Label2.TabIndex = 782
@@ -130,7 +132,7 @@ Partial Class 樣品物料調料單申請
130 132
         'Label3
131 133
         '
132 134
         Me.Label3.AutoSize = True
133
-        Me.Label3.Location = New System.Drawing.Point(874, 43)
135
+        Me.Label3.Location = New System.Drawing.Point(976, 44)
134 136
         Me.Label3.Name = "Label3"
135 137
         Me.Label3.Size = New System.Drawing.Size(68, 16)
136 138
         Me.Label3.TabIndex = 784
@@ -147,9 +149,9 @@ Partial Class 樣品物料調料單申請
147 149
         '
148 150
         Me.ComboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
149 151
         Me.ComboBox2.FormattingEnabled = True
150
-        Me.ComboBox2.Location = New System.Drawing.Point(972, 41)
152
+        Me.ComboBox2.Location = New System.Drawing.Point(1050, 41)
151 153
         Me.ComboBox2.Name = "ComboBox2"
152
-        Me.ComboBox2.Size = New System.Drawing.Size(181, 24)
154
+        Me.ComboBox2.Size = New System.Drawing.Size(103, 24)
153 155
         Me.ComboBox2.TabIndex = 785
154 156
         '
155 157
         'Label4
@@ -462,11 +464,31 @@ Partial Class 樣品物料調料單申請
462 464
         Me.Button7.Text = "列印"
463 465
         Me.Button7.UseVisualStyleBackColor = True
464 466
         '
467
+        'ComboBox18
468
+        '
469
+        Me.ComboBox18.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
470
+        Me.ComboBox18.FormattingEnabled = True
471
+        Me.ComboBox18.Location = New System.Drawing.Point(615, 40)
472
+        Me.ComboBox18.Name = "ComboBox18"
473
+        Me.ComboBox18.Size = New System.Drawing.Size(114, 24)
474
+        Me.ComboBox18.TabIndex = 893
475
+        '
476
+        'Label33
477
+        '
478
+        Me.Label33.AutoSize = True
479
+        Me.Label33.Location = New System.Drawing.Point(553, 44)
480
+        Me.Label33.Name = "Label33"
481
+        Me.Label33.Size = New System.Drawing.Size(56, 16)
482
+        Me.Label33.TabIndex = 894
483
+        Me.Label33.Text = "廠商類別"
484
+        '
465 485
         '樣品物料調料單申請
466 486
         '
467 487
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
468 488
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
469 489
         Me.ClientSize = New System.Drawing.Size(1914, 971)
490
+        Me.Controls.Add(Me.ComboBox18)
491
+        Me.Controls.Add(Me.Label33)
470 492
         Me.Controls.Add(Me.Button7)
471 493
         Me.Controls.Add(Me.TextBox7)
472 494
         Me.Controls.Add(Me.Label13)
@@ -563,4 +585,6 @@ Partial Class 樣品物料調料單申請
563 585
     Friend WithEvents TextBox7 As TextBox
564 586
     Friend WithEvents Label13 As Label
565 587
     Friend WithEvents Button7 As Button
588
+    Friend WithEvents ComboBox18 As ComboBox
589
+    Friend WithEvents Label33 As Label
566 590
 End Class

+ 13
- 3
SHENKANG-MES-SYS/請採購館洗系統/樣品物料調料單申請.vb 查看文件

@@ -88,7 +88,7 @@ Public Class 樣品物料調料單申請
88 88
     Private Sub ComboBox1下拉表單資料載入()
89 89
         conn.Close()
90 90
         If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
91
-        SQL1 = "SELECT 廠商, 供應商編碼 FROM 供應商清單 ORDER BY 廠商"
91
+        SQL1 = "SELECT 廠商, 供應商編碼 FROM 供應商清單 WHERE 公司傳真3 LIKE '" & ComboBox18.Text & "' AND 停用 = 0 ORDER BY 廠商"
92 92
         cmd.CommandText = SQL1 : cmd.Connection = conn : dr = cmd.ExecuteReader
93 93
         ComboBox1.Items.Clear() : ComboBox2.Items.Clear()
94 94
         While (dr.Read()) : ComboBox1.Items.Add(dr("廠商")) : ComboBox2.Items.Add(dr("供應商編碼")) : End While : conn.Close()
@@ -115,12 +115,19 @@ Public Class 樣品物料調料單申請
115 115
         cmd.CommandText = SQL1 : cmd.Connection = conn : dr = cmd.ExecuteReader
116 116
         ComboBox7.Items.Clear() : While (dr.Read()) : ComboBox7.Items.Add(dr("客戶簡稱")) : End While : conn.Close()
117 117
     End Sub
118
+    Private Sub ComboBox18下拉表單資料載入()
119
+        conn.Close()
120
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
121
+        SQL1 = "SELECT 公司傳真3 AS 類別 FROM 供應商清單 GROUP BY 公司傳真3 ORDER BY 公司傳真3"
122
+        cmd.CommandText = SQL1 : cmd.Connection = conn : dr = cmd.ExecuteReader
123
+        ComboBox18.Items.Clear() : While (dr.Read()) : ComboBox18.Items.Add(dr("類別")) : End While : conn.Close()
124
+    End Sub
118 125
     Private Sub Set_日期格式轉換()
119 126
         DTP = Strings.Format(DateTimePicker1.Value, "yyyy/MM/dd") : DTP1 = Strings.Format(Today(), "yyyyMMdd")
120 127
     End Sub
121 128
     Private Sub 樣品物料調料單_Load(sender As Object, e As EventArgs) Handles MyBase.Load
122 129
         Me.MdiParent = WINPROFIT_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
123
-        Set_清單() : ComboBox1下拉表單資料載入() : ComboBox3下拉表單資料載入() : ComboBox5下拉表單資料載入() : ComboBox7下拉表單資料載入()
130
+        Set_清單() : ComboBox18下拉表單資料載入() : ComboBox3下拉表單資料載入() : ComboBox5下拉表單資料載入() : ComboBox7下拉表單資料載入()
124 131
         Button2.Enabled = False : Button6.Enabled = False : Button15.Enabled = False : Button3.Enabled = False : Button4.Enabled = False : Button5.Enabled = False
125 132
         TextBox1.Enabled = False : TextBox6.Enabled = False
126 133
     End Sub
@@ -172,6 +179,9 @@ Public Class 樣品物料調料單申請
172 179
         If dr.Read() Then : TextBox2.Text = dr("公司名") : TextBox3.Text = dr("聯繫人1") : TextBox4.Text = dr("公司電話1") : End If
173 180
         conn.Close()
174 181
     End Sub
182
+    Private Sub ComboBox18_SelectedIndexChanged_1(sender As Object, e As EventArgs) Handles ComboBox18.SelectedIndexChanged
183
+        ComboBox1下拉表單資料載入()
184
+    End Sub
175 185
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
176 186
         Timer1.Enabled = True : DataGridView1.Enabled = False
177 187
         Button1.Enabled = False : Button2.Enabled = True : Button6.Enabled = True : Button15.Enabled = True
@@ -211,7 +221,7 @@ Public Class 樣品物料調料單申請
211 221
             SQL1 = "DELETE FROM 樣品物料調料單明細 WHERE (調料單號 LIKE N'" & TextBox1.Text & "')"
212 222
             cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : conn.Close()
213 223
             TextBox1.Text = "" : TextBox2.Text = "" : TextBox3.Text = "" : TextBox4.Text = ""
214
-            ComboBox1下拉表單資料載入() : ComboBox3下拉表單資料載入() : ComboBox5下拉表單資料載入() : ComboBox7下拉表單資料載入()
224
+            ComboBox18下拉表單資料載入() : ComboBox3下拉表單資料載入() : ComboBox5下拉表單資料載入() : ComboBox7下拉表單資料載入()
215 225
             DataGridView2.DataSource = Nothing : ds1.Clear()
216 226
             Set_清單()
217 227
         End If

Loading…
取消
儲存