Browse Source

版本號 : 2021041801

更新內容如下
1、新增力威力威SIZE RUN比對功能。
B70340 4 years ago
parent
commit
be248379f7

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


+ 4
- 2
TENDEN-MES-SYS/Module/全域變數.vb View File

@@ -4,14 +4,16 @@
4 4
     Public Target As String : Public Target1 As String : Public Target2 As String : Public FTP帳號 As String : Public FTP密碼 As String : Public 登入人IP As String
5 5
     Public CC(99) As Boolean : Public AA(99) As String : Public 登入判斷 As Boolean
6 6
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7
-    Public 版本 As String = "2021041201"
7
+    Public 版本 As String = "2021041801"
8 8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9 9
     Public 匯率 As Double
10 10
 
11 11
     Public 開發部門 As Boolean = False : Public 確認部門 As Boolean = False : Public frmOpenFlag As Boolean = False : Public 匯入列表開啟 As Boolean : Public 力威匯入列表 As Boolean
12 12
     Public 財務列印(3) As Boolean : Public 修改清單(16) As Boolean : Public 中文樣品單開啟修改 As Boolean : Public 量產樣品匯入列表開啟 As Boolean
13 13
 
14
-    Public PA As String = "" : Public QA As String = "" : Public PP1 As String = "" : Public PP2 As String = "" : Public PP3 As String = ""
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 = ""
15
+    Public PA6 As String = ""
16
+    Public QA As String = "" : Public PP1 As String = "" : Public PP2 As String = "" : Public PP3 As String = ""
15 17
     Public 訂單資料表(10) As String : Public OD(42) As String : Public 列印用SQL As String = "" : Public 驗貨報告 As String = "" : Public 訂單紀錄流水號 As String
16 18
     Public Class MyModule
17 19
 

+ 28
- 18
TENDEN-MES-SYS/TENDEN_MES_SYS.Designer.vb View File

@@ -54,6 +54,7 @@ Partial Class TENDEN_MES_SYS
54 54
         Me.楦頭圖片資料庫_tsm = New System.Windows.Forms.ToolStripMenuItem()
55 55
         Me.製鞋技術資料管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
56 56
         Me.楦頭規格表_tsm = New System.Windows.Forms.ToolStripMenuItem()
57
+        Me.模具控制表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
57 58
         Me.ToolStripSeparator21 = New System.Windows.Forms.ToolStripSeparator()
58 59
         Me.TENDENZASTYLE資料管理1_tsm = New System.Windows.Forms.ToolStripMenuItem()
59 60
         Me.TENDENZASTYLE資料管理2_tsm = New System.Windows.Forms.ToolStripMenuItem()
@@ -139,7 +140,7 @@ Partial Class TENDEN_MES_SYS
139 140
         Me.FTP資料夾管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
140 141
         Me.系統執行檔版本管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
141 142
         Me.ToolStripSeparator23 = New System.Windows.Forms.ToolStripSeparator()
142
-        Me.模具控制表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
143
+        Me.POReportDataReconciliation力威ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
143 144
         Me.MenuStrip.SuspendLayout()
144 145
         Me.SuspendLayout()
145 146
         '
@@ -340,6 +341,14 @@ Partial Class TENDEN_MES_SYS
340 341
         Me.楦頭規格表_tsm.Size = New System.Drawing.Size(288, 22)
341 342
         Me.楦頭規格表_tsm.Text = "楦頭規格表"
342 343
         '
344
+        '模具控制表ToolStripMenuItem
345
+        '
346
+        Me.模具控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(128, Byte), Integer), CType(CType(0, Byte), Integer))
347
+        Me.模具控制表ToolStripMenuItem.Image = Global.天盾國際管理系統.My.Resources.Resources.pen
348
+        Me.模具控制表ToolStripMenuItem.Name = "模具控制表ToolStripMenuItem"
349
+        Me.模具控制表ToolStripMenuItem.Size = New System.Drawing.Size(288, 22)
350
+        Me.模具控制表ToolStripMenuItem.Text = "模具控制表"
351
+        '
343 352
         'ToolStripSeparator21
344 353
         '
345 354
         Me.ToolStripSeparator21.Name = "ToolStripSeparator21"
@@ -796,7 +805,7 @@ Partial Class TENDEN_MES_SYS
796 805
         '
797 806
         'Report_tsm
798 807
         '
799
-        Me.Report_tsm.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.Report1_tsm, Me.ProductSalesProfitAnalysisTable_tsm, Me.ToolStripSeparator12, Me.NewUnitComparison_tsm, Me.Report2_tsm, Me.Report3_tsm, Me.ToolStripSeparator18, Me.DeadlineReport_tsm, Me.POReportDataReconciliation_tsm})
808
+        Me.Report_tsm.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.Report1_tsm, Me.ProductSalesProfitAnalysisTable_tsm, Me.ToolStripSeparator12, Me.NewUnitComparison_tsm, Me.Report2_tsm, Me.Report3_tsm, Me.ToolStripSeparator18, Me.DeadlineReport_tsm, Me.POReportDataReconciliation_tsm, Me.POReportDataReconciliation力威ToolStripMenuItem})
800 809
         Me.Report_tsm.ForeColor = System.Drawing.Color.Green
801 810
         Me.Report_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.Report
802 811
         Me.Report_tsm.Name = "Report_tsm"
@@ -809,7 +818,7 @@ Partial Class TENDEN_MES_SYS
809 818
         Me.Report1_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.Report
810 819
         Me.Report1_tsm.Name = "Report1_tsm"
811 820
         Me.Report1_tsm.RightToLeftAutoMirrorImage = True
812
-        Me.Report1_tsm.Size = New System.Drawing.Size(260, 22)
821
+        Me.Report1_tsm.Size = New System.Drawing.Size(286, 22)
813 822
         Me.Report1_tsm.Text = "Overall Analysis Report"
814 823
         '
815 824
         'ProductSalesProfitAnalysisTable_tsm
@@ -817,20 +826,20 @@ Partial Class TENDEN_MES_SYS
817 826
         Me.ProductSalesProfitAnalysisTable_tsm.ForeColor = System.Drawing.Color.Green
818 827
         Me.ProductSalesProfitAnalysisTable_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.Report
819 828
         Me.ProductSalesProfitAnalysisTable_tsm.Name = "ProductSalesProfitAnalysisTable_tsm"
820
-        Me.ProductSalesProfitAnalysisTable_tsm.Size = New System.Drawing.Size(260, 22)
829
+        Me.ProductSalesProfitAnalysisTable_tsm.Size = New System.Drawing.Size(286, 22)
821 830
         Me.ProductSalesProfitAnalysisTable_tsm.Text = "Product sales profit analysis table"
822 831
         '
823 832
         'ToolStripSeparator12
824 833
         '
825 834
         Me.ToolStripSeparator12.Name = "ToolStripSeparator12"
826
-        Me.ToolStripSeparator12.Size = New System.Drawing.Size(257, 6)
835
+        Me.ToolStripSeparator12.Size = New System.Drawing.Size(283, 6)
827 836
         '
828 837
         'NewUnitComparison_tsm
829 838
         '
830 839
         Me.NewUnitComparison_tsm.ForeColor = System.Drawing.Color.Green
831 840
         Me.NewUnitComparison_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.Report
832 841
         Me.NewUnitComparison_tsm.Name = "NewUnitComparison_tsm"
833
-        Me.NewUnitComparison_tsm.Size = New System.Drawing.Size(260, 22)
842
+        Me.NewUnitComparison_tsm.Size = New System.Drawing.Size(286, 22)
834 843
         Me.NewUnitComparison_tsm.Text = "New Unit Comparison"
835 844
         '
836 845
         'Report2_tsm
@@ -838,7 +847,7 @@ Partial Class TENDEN_MES_SYS
838 847
         Me.Report2_tsm.ForeColor = System.Drawing.Color.Green
839 848
         Me.Report2_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.Report
840 849
         Me.Report2_tsm.Name = "Report2_tsm"
841
-        Me.Report2_tsm.Size = New System.Drawing.Size(260, 22)
850
+        Me.Report2_tsm.Size = New System.Drawing.Size(286, 22)
842 851
         Me.Report2_tsm.Text = "Old Unit Comparison"
843 852
         '
844 853
         'Report3_tsm
@@ -846,20 +855,20 @@ Partial Class TENDEN_MES_SYS
846 855
         Me.Report3_tsm.ForeColor = System.Drawing.Color.Green
847 856
         Me.Report3_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.Report
848 857
         Me.Report3_tsm.Name = "Report3_tsm"
849
-        Me.Report3_tsm.Size = New System.Drawing.Size(260, 22)
858
+        Me.Report3_tsm.Size = New System.Drawing.Size(286, 22)
850 859
         Me.Report3_tsm.Text = "Order Type Analysis"
851 860
         '
852 861
         'ToolStripSeparator18
853 862
         '
854 863
         Me.ToolStripSeparator18.Name = "ToolStripSeparator18"
855
-        Me.ToolStripSeparator18.Size = New System.Drawing.Size(257, 6)
864
+        Me.ToolStripSeparator18.Size = New System.Drawing.Size(283, 6)
856 865
         '
857 866
         'DeadlineReport_tsm
858 867
         '
859 868
         Me.DeadlineReport_tsm.ForeColor = System.Drawing.Color.Green
860 869
         Me.DeadlineReport_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.Report
861 870
         Me.DeadlineReport_tsm.Name = "DeadlineReport_tsm"
862
-        Me.DeadlineReport_tsm.Size = New System.Drawing.Size(260, 22)
871
+        Me.DeadlineReport_tsm.Size = New System.Drawing.Size(286, 22)
863 872
         Me.DeadlineReport_tsm.Text = "Deadline Report"
864 873
         '
865 874
         'POReportDataReconciliation_tsm
@@ -867,8 +876,8 @@ Partial Class TENDEN_MES_SYS
867 876
         Me.POReportDataReconciliation_tsm.ForeColor = System.Drawing.Color.Green
868 877
         Me.POReportDataReconciliation_tsm.Image = Global.天盾國際管理系統.My.Resources.Resources.Report
869 878
         Me.POReportDataReconciliation_tsm.Name = "POReportDataReconciliation_tsm"
870
-        Me.POReportDataReconciliation_tsm.Size = New System.Drawing.Size(260, 22)
871
-        Me.POReportDataReconciliation_tsm.Text = "PO Report Data Reconciliation"
879
+        Me.POReportDataReconciliation_tsm.Size = New System.Drawing.Size(286, 22)
880
+        Me.POReportDataReconciliation_tsm.Text = "PO Report Data Reconciliation-Vionic"
872 881
         '
873 882
         '帳務管理_tsm
874 883
         '
@@ -964,13 +973,13 @@ Partial Class TENDEN_MES_SYS
964 973
         Me.ToolStripSeparator23.Name = "ToolStripSeparator23"
965 974
         Me.ToolStripSeparator23.Size = New System.Drawing.Size(179, 6)
966 975
         '
967
-        '模具控制表ToolStripMenuItem
976
+        'POReportDataReconciliation力威ToolStripMenuItem
968 977
         '
969
-        Me.模具控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(128, Byte), Integer), CType(CType(0, Byte), Integer))
970
-        Me.模具控制表ToolStripMenuItem.Image = Global.天盾國際管理系統.My.Resources.Resources.pen
971
-        Me.模具控制表ToolStripMenuItem.Name = "模具控制表ToolStripMenuItem"
972
-        Me.模具控制表ToolStripMenuItem.Size = New System.Drawing.Size(288, 22)
973
-        Me.模具控制表ToolStripMenuItem.Text = "模具控制表"
978
+        Me.POReportDataReconciliation力威ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
979
+        Me.POReportDataReconciliation力威ToolStripMenuItem.Image = Global.天盾國際管理系統.My.Resources.Resources.Report
980
+        Me.POReportDataReconciliation力威ToolStripMenuItem.Name = "POReportDataReconciliation力威ToolStripMenuItem"
981
+        Me.POReportDataReconciliation力威ToolStripMenuItem.Size = New System.Drawing.Size(286, 22)
982
+        Me.POReportDataReconciliation力威ToolStripMenuItem.Text = "PO Report Data Reconciliation-力威"
974 983
         '
975 984
         'TENDEN_MES_SYS
976 985
         '
@@ -1110,4 +1119,5 @@ Partial Class TENDEN_MES_SYS
1110 1119
     Friend WithEvents 訂單資料匯入力威_tsm As ToolStripMenuItem
1111 1120
     Friend WithEvents 訂單資料比對與修改力威_tsm As ToolStripMenuItem
1112 1121
     Friend WithEvents 模具控制表ToolStripMenuItem As ToolStripMenuItem
1122
+    Friend WithEvents POReportDataReconciliation力威ToolStripMenuItem As ToolStripMenuItem
1113 1123
 End Class

+ 3
- 0
TENDEN-MES-SYS/TENDEN_MES_SYS.vb View File

@@ -298,4 +298,7 @@
298 298
     Private Sub 模具控制表ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 模具控制表ToolStripMenuItem.Click
299 299
         PA = "" : 模具控制表.Show()
300 300
     End Sub
301
+    Private Sub POReportDataReconciliation力威ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles POReportDataReconciliation力威ToolStripMenuItem.Click
302
+        PA = "" : 訂單分析報表八.Show() : 訂單分析報表八.BringToFront()
303
+    End Sub
301 304
 End Class

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


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


BIN
TENDEN-MES-SYS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache View File


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


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


BIN
TENDEN-MES-SYS/obj/Debug/天盾國際管理系統.訂單分析報表八.resources View File


+ 1
- 1
TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.CoreCompileInputs.cache View File

@@ -1 +1 @@
1
-8261c6879be3422cac9d93fb4fc75ade5e7e9235
1
+61831da5311c64a978057401c0a33c5e9ff3208e

+ 1
- 0
TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.FileListAbsolute.txt View File

@@ -579,3 +579,4 @@ D:\tenden-erp-sys-team\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.exe
579 579
 D:\tenden-erp-sys-team\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.xml
580 580
 D:\tenden-erp-sys-team\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.pdb
581 581
 D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.模具控制表.resources
582
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.訂單分析報表八.resources

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


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


+ 9
- 0
TENDEN-MES-SYS/天盾系統.vbproj View File

@@ -101,6 +101,12 @@
101 101
   <ItemGroup>
102 102
     <Compile Include="Module\SQL_Module.vb" />
103 103
     <Compile Include="Module\SQL_量產訂單資料庫切換.vb" />
104
+    <Compile Include="彙總報表管理\訂單分析報表八.Designer.vb">
105
+      <DependentUpon>訂單分析報表八.vb</DependentUpon>
106
+    </Compile>
107
+    <Compile Include="彙總報表管理\訂單分析報表八.vb">
108
+      <SubType>Form</SubType>
109
+    </Compile>
104 110
     <Compile Include="製鞋技術資料管理\模具控制表.Designer.vb">
105 111
       <DependentUpon>模具控制表.vb</DependentUpon>
106 112
     </Compile>
@@ -720,6 +726,9 @@
720 726
     </Compile>
721 727
   </ItemGroup>
722 728
   <ItemGroup>
729
+    <EmbeddedResource Include="彙總報表管理\訂單分析報表八.resx">
730
+      <DependentUpon>訂單分析報表八.vb</DependentUpon>
731
+    </EmbeddedResource>
723 732
     <EmbeddedResource Include="製鞋技術資料管理\模具控制表.resx">
724 733
       <DependentUpon>模具控制表.vb</DependentUpon>
725 734
     </EmbeddedResource>

+ 160
- 0
TENDEN-MES-SYS/彙總報表管理/訂單分析報表八.Designer.vb View File

@@ -0,0 +1,160 @@
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
+        Me.導入Excel_bt = New System.Windows.Forms.Button()
26
+        Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog()
27
+        Me.ProgressBar1 = New System.Windows.Forms.ProgressBar()
28
+        Me.ProgressBar2 = New System.Windows.Forms.ProgressBar()
29
+        Me.Label1 = New System.Windows.Forms.Label()
30
+        Me.Label2 = New System.Windows.Forms.Label()
31
+        Me.TextBox1 = New System.Windows.Forms.TextBox()
32
+        Me.Label3 = New System.Windows.Forms.Label()
33
+        Me.Label4 = New System.Windows.Forms.Label()
34
+        Me.TextBox2 = New System.Windows.Forms.TextBox()
35
+        Me.SuspendLayout()
36
+        '
37
+        '導入Excel_bt
38
+        '
39
+        Me.導入Excel_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
40
+        Me.導入Excel_bt.ForeColor = System.Drawing.Color.Black
41
+        Me.導入Excel_bt.Location = New System.Drawing.Point(13, 138)
42
+        Me.導入Excel_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
43
+        Me.導入Excel_bt.Name = "導入Excel_bt"
44
+        Me.導入Excel_bt.Size = New System.Drawing.Size(333, 45)
45
+        Me.導入Excel_bt.TabIndex = 327
46
+        Me.導入Excel_bt.Text = "打開Excel   開始比對"
47
+        Me.導入Excel_bt.UseVisualStyleBackColor = True
48
+        '
49
+        'OpenFileDialog1
50
+        '
51
+        Me.OpenFileDialog1.FileName = "OpenFileDialog1"
52
+        '
53
+        'ProgressBar1
54
+        '
55
+        Me.ProgressBar1.Location = New System.Drawing.Point(13, 108)
56
+        Me.ProgressBar1.MarqueeAnimationSpeed = 500
57
+        Me.ProgressBar1.Maximum = 10000
58
+        Me.ProgressBar1.Name = "ProgressBar1"
59
+        Me.ProgressBar1.Size = New System.Drawing.Size(333, 23)
60
+        Me.ProgressBar1.Step = 1
61
+        Me.ProgressBar1.TabIndex = 328
62
+        '
63
+        'ProgressBar2
64
+        '
65
+        Me.ProgressBar2.Location = New System.Drawing.Point(13, 61)
66
+        Me.ProgressBar2.MarqueeAnimationSpeed = 500
67
+        Me.ProgressBar2.Maximum = 10000
68
+        Me.ProgressBar2.Name = "ProgressBar2"
69
+        Me.ProgressBar2.Size = New System.Drawing.Size(333, 23)
70
+        Me.ProgressBar2.Step = 1
71
+        Me.ProgressBar2.TabIndex = 329
72
+        '
73
+        'Label1
74
+        '
75
+        Me.Label1.AutoSize = True
76
+        Me.Label1.Location = New System.Drawing.Point(13, 42)
77
+        Me.Label1.Name = "Label1"
78
+        Me.Label1.Size = New System.Drawing.Size(104, 16)
79
+        Me.Label1.TabIndex = 330
80
+        Me.Label1.Text = "EXCEL資料準備中"
81
+        '
82
+        'Label2
83
+        '
84
+        Me.Label2.AutoSize = True
85
+        Me.Label2.Location = New System.Drawing.Point(13, 89)
86
+        Me.Label2.Name = "Label2"
87
+        Me.Label2.Size = New System.Drawing.Size(104, 16)
88
+        Me.Label2.TabIndex = 331
89
+        Me.Label2.Text = "EXCEL資料比對中"
90
+        '
91
+        'TextBox1
92
+        '
93
+        Me.TextBox1.BackColor = System.Drawing.Color.Green
94
+        Me.TextBox1.Location = New System.Drawing.Point(16, 12)
95
+        Me.TextBox1.Name = "TextBox1"
96
+        Me.TextBox1.Size = New System.Drawing.Size(100, 23)
97
+        Me.TextBox1.TabIndex = 332
98
+        '
99
+        'Label3
100
+        '
101
+        Me.Label3.AutoSize = True
102
+        Me.Label3.Location = New System.Drawing.Point(122, 15)
103
+        Me.Label3.Name = "Label3"
104
+        Me.Label3.Size = New System.Drawing.Size(56, 16)
105
+        Me.Label3.TabIndex = 333
106
+        Me.Label3.Text = "數量不對"
107
+        '
108
+        'Label4
109
+        '
110
+        Me.Label4.AutoSize = True
111
+        Me.Label4.Location = New System.Drawing.Point(290, 15)
112
+        Me.Label4.Name = "Label4"
113
+        Me.Label4.Size = New System.Drawing.Size(56, 16)
114
+        Me.Label4.TabIndex = 335
115
+        Me.Label4.Text = "條件不對"
116
+        '
117
+        'TextBox2
118
+        '
119
+        Me.TextBox2.BackColor = System.Drawing.Color.Red
120
+        Me.TextBox2.ForeColor = System.Drawing.Color.Red
121
+        Me.TextBox2.Location = New System.Drawing.Point(184, 12)
122
+        Me.TextBox2.Name = "TextBox2"
123
+        Me.TextBox2.Size = New System.Drawing.Size(100, 23)
124
+        Me.TextBox2.TabIndex = 334
125
+        '
126
+        '訂單分析報表八
127
+        '
128
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
129
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
130
+        Me.ClientSize = New System.Drawing.Size(359, 194)
131
+        Me.Controls.Add(Me.Label4)
132
+        Me.Controls.Add(Me.TextBox2)
133
+        Me.Controls.Add(Me.Label3)
134
+        Me.Controls.Add(Me.TextBox1)
135
+        Me.Controls.Add(Me.Label2)
136
+        Me.Controls.Add(Me.Label1)
137
+        Me.Controls.Add(Me.ProgressBar2)
138
+        Me.Controls.Add(Me.ProgressBar1)
139
+        Me.Controls.Add(Me.導入Excel_bt)
140
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
141
+        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
142
+        Me.Name = "訂單分析報表八"
143
+        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
144
+        Me.Text = "訂單分析報表八"
145
+        Me.ResumeLayout(False)
146
+        Me.PerformLayout()
147
+
148
+    End Sub
149
+
150
+    Friend WithEvents 導入Excel_bt As Button
151
+    Friend WithEvents OpenFileDialog1 As OpenFileDialog
152
+    Friend WithEvents ProgressBar1 As ProgressBar
153
+    Friend WithEvents ProgressBar2 As ProgressBar
154
+    Friend WithEvents Label1 As Label
155
+    Friend WithEvents Label2 As Label
156
+    Friend WithEvents TextBox1 As TextBox
157
+    Friend WithEvents Label3 As Label
158
+    Friend WithEvents Label4 As Label
159
+    Friend WithEvents TextBox2 As TextBox
160
+End Class

+ 123
- 0
TENDEN-MES-SYS/彙總報表管理/訂單分析報表八.resx View File

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

+ 128
- 0
TENDEN-MES-SYS/彙總報表管理/訂單分析報表八.vb View File

@@ -0,0 +1,128 @@
1
+Imports Microsoft.Office.Interop.Excel.Constants
2
+Public Class 訂單分析報表八
3
+    Dim xlApp As Microsoft.Office.Interop.Excel.Application
4
+    ReadOnly xlBook As Microsoft.Office.Interop.Excel.Workbook
5
+    Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
6
+    Dim file_name As String = "" : Public 平均數 As Integer : Public 最終數 As Integer = 0 : Public 資料數 As Integer = 0 : Public N1 As Integer
7
+    Private Sub 訂單分析報表八_Load(sender As Object, e As EventArgs) Handles MyBase.Load
8
+
9
+    End Sub
10
+    Private Sub 進度條1()
11
+        平均數 = 10000 / 資料數
12
+        最終數 += 平均數
13
+        If 最終數 > 10000 Then : 最終數 = 10000 : End If
14
+        ProgressBar2.Value = 最終數
15
+    End Sub
16
+    Private Sub 進度條2()
17
+        平均數 = 10000 / 資料數
18
+        最終數 += 平均數
19
+        If 最終數 > 10000 Then : 最終數 = 10000 : End If
20
+        ProgressBar1.Value = 最終數
21
+    End Sub
22
+    Private Sub 導入Excel_bt_Click(sender As Object, e As EventArgs) Handles 導入Excel_bt.Click
23
+        If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
24
+            file_name = OpenFileDialog1.FileName
25
+        End If
26
+        xlApp = CreateObject("Excel.Application")
27
+        xlApp.DisplayAlerts = True
28
+        xlApp.Visible = True
29
+        xlApp.Workbooks.Open(file_name)
30
+        xlSheet = xlApp.Worksheets(1) : xlSheet.Activate()
31
+        最終數 = 0
32
+        PA = "0" : PA1 = xlSheet.Cells(1, 94).value : PA2 = xlSheet.Cells(1, 95).value : PA3 = xlSheet.Cells(1, 96).value : PA4 = xlSheet.Cells(1, 97).value : PA5 = xlSheet.Cells(1, 98).value
33
+        If PA1 = "" And PA2 = "" And PA3 = "" And PA4 = "" And PA5 = "" Then
34
+            For i As Integer = 1 To 99999 : 資料數 = 10000 : 進度條1()
35
+                If xlSheet.Cells(i, 1).value = "" Then : Exit For : End If : PA = i
36
+            Next
37
+
38
+            BB(xlApp, xlSheet) : ProgressBar2.Maximum = Val(PA) : ProgressBar1.Maximum = Val(PA) : 最終數 = 0
39
+            For i As Integer = 2 To Val(PA)
40
+                資料數 = 10000 : 進度條2()
41
+                If xlSheet.Cells(i, 81).value = "" Then : Else
42
+                    N1 = i
43
+                    xlSheet.Cells(i, 4).value = Val(Strings.Left(xlSheet.Cells(i, 81).value, 3))
44
+                    xlSheet.Cells(i, 3).value = Strings.Right(xlSheet.Cells(i, 81).value, 1)
45
+                    PA2 = xlSheet.Cells(i, 15).value
46
+                    For ii As Integer = 1 To 50
47
+                        If ii = 1 Then
48
+                            PA1 = Strings.Left(PA2, 1)
49
+                        Else
50
+                            If Strings.Mid(PA2, ii, 1) = "," Or Strings.Mid(PA2, ii, 1) = "" Then
51
+                                Exit For
52
+                            End If
53
+                            PA1 = PA1 & Strings.Mid(PA2, ii, 1)
54
+                        End If
55
+                    Next
56
+                    xlSheet.Cells(i, 2).value = PA1
57
+                    PA3 = xlSheet.Cells(i, 4).value
58
+                    PA4 = xlSheet.Cells(i, 1).value
59
+                    PA5 = xlSheet.Cells(i, 3).value
60
+                    PA6 = xlSheet.Cells(i, 5).value
61
+                    ConnOpen()
62
+                    SQL1 = "SELECT   訂單明細表.[" & PA3 & "] AS 數量
63
+                            FROM     訂單明細表 INNER JOIN 訂單控制表 ON 訂單明細表.天盾流水號 = 訂單控制表.訂單流水號 AND 
64
+                                     訂單明細表.客戶訂單號 = 訂單控制表.客戶訂單號 AND 訂單明細表.Color = 訂單控制表.顏色 AND 
65
+                                     訂單明細表.DM = 訂單控制表.楦型
66
+                            WHERE  ((訂單明細表.客戶訂單號 LIKE '" & PA4 & "') AND (訂單明細表.ProductName LIKE '" & PA1 & "') AND (LEFT(訂單明細表.DM,1) LIKE '" & PA5 & "')) OR
67
+                                   ((訂單明細表.ProductName LIKE '" & PA1 & "') AND (LEFT(訂單明細表.DM,1) LIKE '" & PA5 & "') AND (訂單控制表.力威訂單號 LIKE '" & PA4 & "'))"
68
+                    CmdSet_For_dr()
69
+                    If dr.Read() Then
70
+                        If PA6 = dr("數量").ToString Then : Else : CC(xlApp, xlSheet) : End If
71
+                    Else : CC(xlApp, xlSheet) : End If
72
+                    conn.Close()
73
+                End If
74
+            Next
75
+            MsgBox("資料導入完成,請手動存檔EXCEL!!!")
76
+            xlApp.Visible = True : ProgressBar2.Value = 0 : 最終數 = 0 : ProgressBar1.Value = 0 : 最終數 = 0
77
+        Else
78
+            MsgBox("格式有誤,請確認檔案是原始狀態,或是聯繫系統開發人員!!!")
79
+            xlApp.Visible = True : xlApp.Quit() : xlApp = Nothing
80
+        End If
81
+    End Sub
82
+    Private Sub BB(ByVal myExcel As Microsoft.Office.Interop.Excel.Application, ByVal xlSheet As Microsoft.Office.Interop.Excel.Worksheet)
83
+        xlSheet.Columns("A:A").Select
84
+        myExcel.Selection.Insert
85
+        xlSheet.Range("A1").Select()
86
+        myExcel.Application.CutCopyMode = False
87
+        myExcel.ActiveCell.FormulaR1C1 = "=RC[1]"
88
+        xlSheet.Range("A1").Select()
89
+        myExcel.Selection.AutoFill(Destination:=xlSheet.Range("A1:A" & PA))
90
+
91
+        xlSheet.Columns("B:B").Select
92
+        myExcel.Selection.Insert
93
+        xlSheet.Range("B1").Select()
94
+        myExcel.Application.CutCopyMode = False
95
+        myExcel.ActiveCell.FormulaR1C1 = "=RC[79]"
96
+        xlSheet.Range("B1").Select()
97
+        myExcel.Selection.AutoFill(Destination:=xlSheet.Range("B1:B" & PA))
98
+
99
+        xlSheet.Columns("B:B").Select
100
+        myExcel.Selection.Insert : myExcel.Selection.Insert : myExcel.Selection.Insert
101
+        xlSheet.Range("A1:E1").Select()
102
+
103
+        With myExcel.Selection
104
+            .HorizontalAlignment = xlGeneral : .VerticalAlignment = xlTop : .WrapText = True : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0 : .ShrinkToFit = False
105
+            .ReadingOrder = xlContext : .MergeCells = False
106
+        End With
107
+    End Sub
108
+    Private Sub CC(ByVal myExcel As Microsoft.Office.Interop.Excel.Application, ByVal xlSheet As Microsoft.Office.Interop.Excel.Worksheet)
109
+        xlSheet.Range("A" & N1 & ":CT" & N1).Select()
110
+        With myExcel.Selection.Interior
111
+            .Pattern = xlSolid
112
+            .PatternColorIndex = xlAutomatic
113
+            .Color = 5287936
114
+            .TintAndShade = 0
115
+            .PatternTintAndShade = 0
116
+        End With
117
+    End Sub
118
+    Private Sub DD(ByVal myExcel As Microsoft.Office.Interop.Excel.Application, ByVal xlSheet As Microsoft.Office.Interop.Excel.Worksheet)
119
+        xlSheet.Range("A" & N1 & ":CT" & N1).Select()
120
+        With myExcel.Selection.Interior
121
+            .Pattern = xlSolid
122
+            .PatternColorIndex = xlAutomatic
123
+            .Color = 255
124
+            .TintAndShade = 0
125
+            .PatternTintAndShade = 0
126
+        End With
127
+    End Sub
128
+End Class

Loading…
Cancel
Save