Selaa lähdekoodia

版本號 : 2021030801

更新內容如下
1、訂單執行輸入,優化客戶交期與接單日修改功能
2、新增日期BUG修正功能
B70340 4 vuotta sitten
vanhempi
commit
cf8029aa5a
24 muutettua tiedostoa jossa 463 lisäystä ja 88 poistoa
  1. BIN
      .vs/TENDEN-MES-SYS/v16/.suo
  2. 1
    1
      TENDEN-MES-SYS/Module/全域變數.vb
  3. BIN
      TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS - 2021022402.exe
  4. BIN
      TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.exe
  5. BIN
      TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.pdb
  6. BIN
      TENDEN-MES-SYS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  7. BIN
      TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.exe
  8. BIN
      TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.pdb
  9. BIN
      TENDEN-MES-SYS/obj/Debug/天盾國際管理系統.業務資料日期除錯.resources
  10. 1
    1
      TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.CoreCompileInputs.cache
  11. 1
    0
      TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.FileListAbsolute.txt
  12. BIN
      TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.GenerateResource.cache
  13. BIN
      TENDEN-MES-SYS/obj/Debug/天盾系統.vbprojAssemblyReference.cache
  14. 9
    0
      TENDEN-MES-SYS/天盾系統.vbproj
  15. 33
    33
      TENDEN-MES-SYS/量產訂單管理/周進度表.Designer.vb
  16. 3
    3
      TENDEN-MES-SYS/量產訂單管理/周進度表.vb
  17. 36
    24
      TENDEN-MES-SYS/量產訂單管理/業務資料庫管理.Designer.vb
  18. 4
    0
      TENDEN-MES-SYS/量產訂單管理/業務資料庫管理.vb
  19. 144
    0
      TENDEN-MES-SYS/量產訂單管理/業務資料日期除錯.Designer.vb
  20. 120
    0
      TENDEN-MES-SYS/量產訂單管理/業務資料日期除錯.resx
  21. 72
    0
      TENDEN-MES-SYS/量產訂單管理/業務資料日期除錯.vb
  22. 19
    6
      TENDEN-MES-SYS/量產訂單管理/訂單執行資訊輸入.Designer.vb
  23. 1
    1
      TENDEN-MES-SYS/量產訂單管理/訂單執行資訊輸入.vb
  24. 19
    19
      TENDEN-MES-SYS/量產訂單管理/訂單控制表.vb

BIN
.vs/TENDEN-MES-SYS/v16/.suo Näytä tiedosto


+ 1
- 1
TENDEN-MES-SYS/Module/全域變數.vb Näytä tiedosto

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

BIN
TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS - 2021022402.exe Näytä tiedosto


BIN
TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.exe Näytä tiedosto


BIN
TENDEN-MES-SYS/bin/Debug/TENDEN-ERP-SYS.pdb Näytä tiedosto


BIN
TENDEN-MES-SYS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache Näytä tiedosto


BIN
TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.exe Näytä tiedosto


BIN
TENDEN-MES-SYS/obj/Debug/TENDEN-ERP-SYS.pdb Näytä tiedosto


BIN
TENDEN-MES-SYS/obj/Debug/天盾國際管理系統.業務資料日期除錯.resources Näytä tiedosto


+ 1
- 1
TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.CoreCompileInputs.cache Näytä tiedosto

@@ -1 +1 @@
1
-6d0fdce5cb2e0b53964df67f907ecf468459564a
1
+419f880514de2839daa27484b25eee5ec80131db

+ 1
- 0
TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.FileListAbsolute.txt Näytä tiedosto

@@ -342,3 +342,4 @@ D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾系統.vbproj.CopyCom
342 342
 D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.exe
343 343
 D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.xml
344 344
 D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\TENDEN-ERP-SYS.pdb
345
+D:\工巧明\TENDEN-MES-SYS\TENDEN-MES-SYS\obj\Debug\天盾國際管理系統.業務資料日期除錯.resources

BIN
TENDEN-MES-SYS/obj/Debug/天盾系統.vbproj.GenerateResource.cache Näytä tiedosto


BIN
TENDEN-MES-SYS/obj/Debug/天盾系統.vbprojAssemblyReference.cache Näytä tiedosto


+ 9
- 0
TENDEN-MES-SYS/天盾系統.vbproj Näytä tiedosto

@@ -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>
@@ -708,6 +714,9 @@
708 714
     </Compile>
709 715
   </ItemGroup>
710 716
   <ItemGroup>
717
+    <EmbeddedResource Include="量產訂單管理\業務資料日期除錯.resx">
718
+      <DependentUpon>業務資料日期除錯.vb</DependentUpon>
719
+    </EmbeddedResource>
711 720
     <EmbeddedResource Include="量產訂單管理\訂單資料匯入-力威.resx">
712 721
       <DependentUpon>訂單資料匯入-力威.vb</DependentUpon>
713 722
     </EmbeddedResource>

+ 33
- 33
TENDEN-MES-SYS/量產訂單管理/周進度表.Designer.vb Näytä tiedosto

@@ -28,7 +28,7 @@ Partial Class 周進度表
28 28
         Me.導入Excel_bt = New System.Windows.Forms.Button()
29 29
         Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog()
30 30
         Me.生產工廠_tb = New System.Windows.Forms.TextBox()
31
-        Me.客戶訂單號_tb = New System.Windows.Forms.TextBox()
31
+        Me.接單日期_tb = New System.Windows.Forms.TextBox()
32 32
         Me.形體號_tb = New System.Windows.Forms.TextBox()
33 33
         Me.顏色_tb = New System.Windows.Forms.TextBox()
34 34
         Me.Revised_XF_tb = New System.Windows.Forms.TextBox()
@@ -43,11 +43,9 @@ Partial Class 周進度表
43 43
         Me.日期存檔_bt = New System.Windows.Forms.Button()
44 44
         Me.存檔_bt = New System.Windows.Forms.Button()
45 45
         Me.Revised_XF1_tb = New System.Windows.Forms.TextBox()
46
-        Me.圖片_pb = New System.Windows.Forms.PictureBox()
47 46
         Me.Label1 = New System.Windows.Forms.Label()
48 47
         Me.Label2 = New System.Windows.Forms.Label()
49 48
         Me.Button20 = New System.Windows.Forms.Button()
50
-        Me.驗貨報告圖片_pb = New System.Windows.Forms.PictureBox()
51 49
         Me.Button5 = New System.Windows.Forms.Button()
52 50
         Me.Button6 = New System.Windows.Forms.Button()
53 51
         Me.Button7 = New System.Windows.Forms.Button()
@@ -57,9 +55,11 @@ Partial Class 周進度表
57 55
         Me.Label20 = New System.Windows.Forms.Label()
58 56
         Me.日期格式修正_bt = New System.Windows.Forms.Button()
59 57
         Me.ProgressBar1 = New System.Windows.Forms.ProgressBar()
58
+        Me.驗貨報告圖片_pb = New System.Windows.Forms.PictureBox()
59
+        Me.圖片_pb = New System.Windows.Forms.PictureBox()
60 60
         CType(Me.訂單種類_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
61
-        CType(Me.圖片_pb, System.ComponentModel.ISupportInitialize).BeginInit()
62 61
         CType(Me.驗貨報告圖片_pb, System.ComponentModel.ISupportInitialize).BeginInit()
62
+        CType(Me.圖片_pb, System.ComponentModel.ISupportInitialize).BeginInit()
63 63
         Me.SuspendLayout()
64 64
         '
65 65
         '訂單種類_dgv
@@ -104,12 +104,12 @@ Partial Class 周進度表
104 104
         Me.生產工廠_tb.Size = New System.Drawing.Size(129, 23)
105 105
         Me.生產工廠_tb.TabIndex = 327
106 106
         '
107
-        '客戶訂單號_tb
107
+        '接單日期_tb
108 108
         '
109
-        Me.客戶訂單號_tb.Location = New System.Drawing.Point(147, 413)
110
-        Me.客戶訂單號_tb.Name = "客戶訂單號_tb"
111
-        Me.客戶訂單號_tb.Size = New System.Drawing.Size(84, 23)
112
-        Me.客戶訂單號_tb.TabIndex = 328
109
+        Me.接單日期_tb.Location = New System.Drawing.Point(147, 413)
110
+        Me.接單日期_tb.Name = "接單日期_tb"
111
+        Me.接單日期_tb.Size = New System.Drawing.Size(84, 23)
112
+        Me.接單日期_tb.TabIndex = 328
113 113
         '
114 114
         '形體號_tb
115 115
         '
@@ -227,16 +227,6 @@ Partial Class 周進度表
227 227
         Me.Revised_XF1_tb.Size = New System.Drawing.Size(52, 23)
228 228
         Me.Revised_XF1_tb.TabIndex = 464
229 229
         '
230
-        '圖片_pb
231
-        '
232
-        Me.圖片_pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
233
-        Me.圖片_pb.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
234
-        Me.圖片_pb.Location = New System.Drawing.Point(12, 127)
235
-        Me.圖片_pb.Name = "圖片_pb"
236
-        Me.圖片_pb.Size = New System.Drawing.Size(321, 231)
237
-        Me.圖片_pb.TabIndex = 501
238
-        Me.圖片_pb.TabStop = False
239
-        '
240 230
         'Label1
241 231
         '
242 232
         Me.Label1.AutoSize = True
@@ -270,16 +260,6 @@ Partial Class 周進度表
270 260
         Me.Button20.Text = "驗貨報告大圖"
271 261
         Me.Button20.UseVisualStyleBackColor = True
272 262
         '
273
-        '驗貨報告圖片_pb
274
-        '
275
-        Me.驗貨報告圖片_pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
276
-        Me.驗貨報告圖片_pb.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
277
-        Me.驗貨報告圖片_pb.Location = New System.Drawing.Point(12, 474)
278
-        Me.驗貨報告圖片_pb.Name = "驗貨報告圖片_pb"
279
-        Me.驗貨報告圖片_pb.Size = New System.Drawing.Size(321, 434)
280
-        Me.驗貨報告圖片_pb.TabIndex = 509
281
-        Me.驗貨報告圖片_pb.TabStop = False
282
-        '
283 263
         'Button5
284 264
         '
285 265
         Me.Button5.Location = New System.Drawing.Point(175, 961)
@@ -361,17 +341,37 @@ Partial Class 周進度表
361 341
         Me.ProgressBar1.Size = New System.Drawing.Size(120, 30)
362 342
         Me.ProgressBar1.TabIndex = 565
363 343
         '
344
+        '驗貨報告圖片_pb
345
+        '
346
+        Me.驗貨報告圖片_pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
347
+        Me.驗貨報告圖片_pb.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
348
+        Me.驗貨報告圖片_pb.Location = New System.Drawing.Point(12, 474)
349
+        Me.驗貨報告圖片_pb.Name = "驗貨報告圖片_pb"
350
+        Me.驗貨報告圖片_pb.Size = New System.Drawing.Size(321, 434)
351
+        Me.驗貨報告圖片_pb.TabIndex = 509
352
+        Me.驗貨報告圖片_pb.TabStop = False
353
+        '
354
+        '圖片_pb
355
+        '
356
+        Me.圖片_pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
357
+        Me.圖片_pb.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
358
+        Me.圖片_pb.Location = New System.Drawing.Point(12, 127)
359
+        Me.圖片_pb.Name = "圖片_pb"
360
+        Me.圖片_pb.Size = New System.Drawing.Size(321, 231)
361
+        Me.圖片_pb.TabIndex = 501
362
+        Me.圖片_pb.TabStop = False
363
+        '
364 364
         '周進度表
365 365
         '
366 366
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
367 367
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
368 368
         Me.ClientSize = New System.Drawing.Size(1914, 991)
369
+        Me.Controls.Add(Me.驗貨報告圖片_pb)
369 370
         Me.Controls.Add(Me.ProgressBar1)
370 371
         Me.Controls.Add(Me.日期格式修正_bt)
371 372
         Me.Controls.Add(Me.資料庫選擇2_bt)
372 373
         Me.Controls.Add(Me.資料庫選擇1_bt)
373 374
         Me.Controls.Add(Me.Label20)
374
-        Me.Controls.Add(Me.驗貨報告圖片_pb)
375 375
         Me.Controls.Add(Me.Button5)
376 376
         Me.Controls.Add(Me.Button6)
377 377
         Me.Controls.Add(Me.Button7)
@@ -393,7 +393,7 @@ Partial Class 周進度表
393 393
         Me.Controls.Add(Me.Revised_XF_tb)
394 394
         Me.Controls.Add(Me.顏色_tb)
395 395
         Me.Controls.Add(Me.形體號_tb)
396
-        Me.Controls.Add(Me.客戶訂單號_tb)
396
+        Me.Controls.Add(Me.接單日期_tb)
397 397
         Me.Controls.Add(Me.生產工廠_tb)
398 398
         Me.Controls.Add(Me.導入Excel_bt)
399 399
         Me.Controls.Add(Me.列印_bt)
@@ -403,8 +403,8 @@ Partial Class 周進度表
403 403
         Me.Name = "周進度表"
404 404
         Me.Text = "周進度表"
405 405
         CType(Me.訂單種類_dgv, System.ComponentModel.ISupportInitialize).EndInit()
406
-        CType(Me.圖片_pb, System.ComponentModel.ISupportInitialize).EndInit()
407 406
         CType(Me.驗貨報告圖片_pb, System.ComponentModel.ISupportInitialize).EndInit()
407
+        CType(Me.圖片_pb, System.ComponentModel.ISupportInitialize).EndInit()
408 408
         Me.ResumeLayout(False)
409 409
         Me.PerformLayout()
410 410
 
@@ -415,7 +415,7 @@ Partial Class 周進度表
415 415
     Friend WithEvents 導入Excel_bt As Button
416 416
     Friend WithEvents OpenFileDialog1 As OpenFileDialog
417 417
     Friend WithEvents 生產工廠_tb As TextBox
418
-    Friend WithEvents 客戶訂單號_tb As TextBox
418
+    Friend WithEvents 接單日期_tb As TextBox
419 419
     Friend WithEvents 形體號_tb As TextBox
420 420
     Friend WithEvents 顏色_tb As TextBox
421 421
     Friend WithEvents Revised_XF_tb As TextBox

+ 3
- 3
TENDEN-MES-SYS/量產訂單管理/周進度表.vb Näytä tiedosto

@@ -57,14 +57,14 @@ Public Class 周進度表
57 57
     Private Sub Set_excel導入()
58 58
         For i As Integer = 4 To 99999
59 59
             生產工廠_tb.Text = xlSheet.Cells(i, 4).value
60
-            客戶訂單號_tb.Text = xlSheet.Cells(i, 2).value : If 客戶訂單號_tb.Text = "" Then : Else : 客戶訂單號_tb.Text = Format(xlSheet.Cells(i, 2).value, "yyyy/MM/dd") : End If
60
+            接單日期_tb.Text = xlSheet.Cells(i, 2).value : If 接單日期_tb.Text = "" Then : Else : 接單日期_tb.Text = Format(xlSheet.Cells(i, 2).value, "yyyy/MM/dd") : End If
61 61
             形體號_tb.Text = xlSheet.Cells(i, 9).value : If 形體號_tb.Text = "" Then : Else : 形體號_tb.Text = Format(xlSheet.Cells(i, 9).value, "yyyy/MM/dd") : End If
62 62
             顏色_tb.Text = xlSheet.Cells(i, 10).value : If 顏色_tb.Text = "" Then : Else : 顏色_tb.Text = Format(xlSheet.Cells(i, 10).value, "yyyy/MM/dd") : End If
63 63
             Revised_XF_tb.Text = xlSheet.Cells(i, 11).value : If Revised_XF_tb.Text = "" Then : Else : Revised_XF_tb.Text = Format(xlSheet.Cells(i, 11).value, "yyyy/MM/dd") : End If
64 64
             If 生產工廠_tb.Text <> "" Then
65 65
                 If gUserName = "李協叡" Then
66 66
                     ConnOpen()
67
-                    SQL1 = "UPDATE " & 訂單資料表(1) & " SET PO_S_Date = '" & 客戶訂單號_tb.Text & "', Requested_XF = '" & 形體號_tb.Text & "', Confirm_XF = '" & 顏色_tb.Text & "', 
67
+                    SQL1 = "UPDATE " & 訂單資料表(1) & " SET PO_S_Date = '" & 接單日期_tb.Text & "', Requested_XF = '" & 形體號_tb.Text & "', Confirm_XF = '" & 顏色_tb.Text & "', 
68 68
                             Revised_XF = '" & Revised_XF_tb.Text & "'," &
69 69
                            "裁斷時間 = '" & xlSheet.Cells(i, 12).value & "', 針車時間 = '" & xlSheet.Cells(i, 13).value & "', " &
70 70
                            "成型時間 = '" & xlSheet.Cells(i, 14).value & "', Special_Packaging = '" & xlSheet.Cells(i, 15).value & "', Remarks = '" & xlSheet.Cells(i, 16).value & "' " &
@@ -90,7 +90,7 @@ Public Class 周進度表
90 90
         Me.MdiParent = TENDEN_MES_SYS : Me.WindowState = 2 : Me.AutoScroll = True
91 91
         訂單資料庫選擇.ShowDialog()
92 92
 
93
-        生產工廠_tb.Enabled = False : 客戶訂單號_tb.Enabled = False : 形體號_tb.Enabled = False : 顏色_tb.Enabled = False : Revised_XF_tb.Enabled = False : 楦型_tb.Enabled = False
93
+        生產工廠_tb.Enabled = False : 接單日期_tb.Enabled = False : 形體號_tb.Enabled = False : 顏色_tb.Enabled = False : Revised_XF_tb.Enabled = False : 楦型_tb.Enabled = False
94 94
         日期1_dtp.Visible = False : 日期2_dtp.Visible = False : 日期3_dtp.Visible = False : 日期4_dtp.Visible = False
95 95
         日期存檔_bt.Enabled = False : 存檔_bt.Enabled = False
96 96
         If CC(36) = True Then : 導入Excel_bt.Enabled = True : Else : 導入Excel_bt.Enabled = False : End If

+ 36
- 24
TENDEN-MES-SYS/量產訂單管理/業務資料庫管理.Designer.vb Näytä tiedosto

@@ -22,14 +22,14 @@ Partial Class 業務資料庫管理
22 22
     '請勿使用程式碼編輯器進行修改。
23 23
     <System.Diagnostics.DebuggerStepThrough()>
24 24
     Private  Sub InitializeComponent()
25
-        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
-        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
-        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
-        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
-        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32
-        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
25
+        Dim DataGridViewCellStyle9 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
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()
29
+        Dim DataGridViewCellStyle13 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
+        Dim DataGridViewCellStyle14 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
+        Dim DataGridViewCellStyle15 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32
+        Dim DataGridViewCellStyle16 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33 33
         Me.訂單控制表暫存檔_dgv = New System.Windows.Forms.DataGridView()
34 34
         Me.訂單明細表暫存檔_dgv = New System.Windows.Forms.DataGridView()
35 35
         Me.訂單流水號暫存檔1_dgv = New System.Windows.Forms.DataGridView()
@@ -73,6 +73,7 @@ Partial Class 業務資料庫管理
73 73
         Me.修改_bt = New System.Windows.Forms.Button()
74 74
         Me.Label18 = New System.Windows.Forms.Label()
75 75
         Me.訂單流水號暫存檔2_dgv = New System.Windows.Forms.DataGridView()
76
+        Me.Button1 = New System.Windows.Forms.Button()
76 77
         CType(Me.訂單控制表暫存檔_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
77 78
         CType(Me.訂單明細表暫存檔_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
78 79
         CType(Me.訂單流水號暫存檔1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -85,8 +86,8 @@ Partial Class 業務資料庫管理
85 86
         '
86 87
         '訂單控制表暫存檔_dgv
87 88
         '
88
-        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
89
-        Me.訂單控制表暫存檔_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
89
+        DataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
90
+        Me.訂單控制表暫存檔_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle9
90 91
         Me.訂單控制表暫存檔_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
91 92
         Me.訂單控制表暫存檔_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
92 93
         Me.訂單控制表暫存檔_dgv.Location = New System.Drawing.Point(155, 197)
@@ -98,8 +99,8 @@ Partial Class 業務資料庫管理
98 99
         '
99 100
         '訂單明細表暫存檔_dgv
100 101
         '
101
-        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
102
-        Me.訂單明細表暫存檔_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
102
+        DataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
103
+        Me.訂單明細表暫存檔_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle10
103 104
         Me.訂單明細表暫存檔_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
104 105
         Me.訂單明細表暫存檔_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
105 106
         Me.訂單明細表暫存檔_dgv.Location = New System.Drawing.Point(155, 607)
@@ -111,8 +112,8 @@ Partial Class 業務資料庫管理
111 112
         '
112 113
         '訂單流水號暫存檔1_dgv
113 114
         '
114
-        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
115
-        Me.訂單流水號暫存檔1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
115
+        DataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
116
+        Me.訂單流水號暫存檔1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle11
116 117
         Me.訂單流水號暫存檔1_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
117 118
         Me.訂單流水號暫存檔1_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
118 119
         Me.訂單流水號暫存檔1_dgv.Location = New System.Drawing.Point(4, 22)
@@ -124,8 +125,8 @@ Partial Class 業務資料庫管理
124 125
         '
125 126
         '訂單控制表比對訂單明細表差異資料_dgv
126 127
         '
127
-        DataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
128
-        Me.訂單控制表比對訂單明細表差異資料_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4
128
+        DataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
129
+        Me.訂單控制表比對訂單明細表差異資料_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle12
129 130
         Me.訂單控制表比對訂單明細表差異資料_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
130 131
         Me.訂單控制表比對訂單明細表差異資料_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
131 132
         Me.訂單控制表比對訂單明細表差異資料_dgv.Location = New System.Drawing.Point(385, 25)
@@ -137,8 +138,8 @@ Partial Class 業務資料庫管理
137 138
         '
138 139
         '已使用的天盾流水號_dgv
139 140
         '
140
-        DataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
141
-        Me.已使用的天盾流水號_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
141
+        DataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
142
+        Me.已使用的天盾流水號_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle13
142 143
         Me.已使用的天盾流水號_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
143 144
         Me.已使用的天盾流水號_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
144 145
         Me.已使用的天盾流水號_dgv.Location = New System.Drawing.Point(4, 227)
@@ -348,8 +349,8 @@ Partial Class 業務資料庫管理
348 349
         '
349 350
         '訂單明細表修改紀錄_dgv
350 351
         '
351
-        DataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
352
-        Me.訂單明細表修改紀錄_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle6
352
+        DataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
353
+        Me.訂單明細表修改紀錄_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle14
353 354
         Me.訂單明細表修改紀錄_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
354 355
         Me.訂單明細表修改紀錄_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
355 356
         Me.訂單明細表修改紀錄_dgv.Location = New System.Drawing.Point(1612, 31)
@@ -413,8 +414,8 @@ Partial Class 業務資料庫管理
413 414
         '
414 415
         '訂單控制表修改紀錄_dgv
415 416
         '
416
-        DataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
417
-        Me.訂單控制表修改紀錄_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle7
417
+        DataGridViewCellStyle15.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
418
+        Me.訂單控制表修改紀錄_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle15
418 419
         Me.訂單控制表修改紀錄_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
419 420
         Me.訂單控制表修改紀錄_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
420 421
         Me.訂單控制表修改紀錄_dgv.Location = New System.Drawing.Point(1316, 31)
@@ -478,8 +479,8 @@ Partial Class 業務資料庫管理
478 479
         '
479 480
         '訂單流水號暫存檔2_dgv
480 481
         '
481
-        DataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
482
-        Me.訂單流水號暫存檔2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle8
482
+        DataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
483
+        Me.訂單流水號暫存檔2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle16
483 484
         Me.訂單流水號暫存檔2_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
484 485
         Me.訂單流水號暫存檔2_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
485 486
         Me.訂單流水號暫存檔2_dgv.Location = New System.Drawing.Point(155, 22)
@@ -489,11 +490,21 @@ Partial Class 業務資料庫管理
489 490
         Me.訂單流水號暫存檔2_dgv.Size = New System.Drawing.Size(145, 127)
490 491
         Me.訂單流水號暫存檔2_dgv.TabIndex = 110
491 492
         '
493
+        'Button1
494
+        '
495
+        Me.Button1.Location = New System.Drawing.Point(306, 22)
496
+        Me.Button1.Name = "Button1"
497
+        Me.Button1.Size = New System.Drawing.Size(73, 50)
498
+        Me.Button1.TabIndex = 112
499
+        Me.Button1.Text = "日期除錯"
500
+        Me.Button1.UseVisualStyleBackColor = True
501
+        '
492 502
         '業務資料庫管理
493 503
         '
494 504
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
495 505
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
496 506
         Me.ClientSize = New System.Drawing.Size(1914, 991)
507
+        Me.Controls.Add(Me.Button1)
497 508
         Me.Controls.Add(Me.Label18)
498 509
         Me.Controls.Add(Me.訂單流水號暫存檔2_dgv)
499 510
         Me.Controls.Add(Me.修改_bt)
@@ -597,5 +608,6 @@ Partial Class 業務資料庫管理
597 608
     Friend WithEvents 訂單明細表修改紀錄查詢_bt As Button
598 609
     Friend WithEvents Label18 As Label
599 610
     Friend WithEvents 訂單流水號暫存檔2_dgv As DataGridView
611
+    Friend WithEvents Button1 As Button
600 612
 End Class
601 613
 

+ 4
- 0
TENDEN-MES-SYS/量產訂單管理/業務資料庫管理.vb Näytä tiedosto

@@ -289,4 +289,8 @@ Public Class 業務資料庫管理
289 289
         End If : conn.Close()
290 290
         MsgBox("修改完成")
291 291
     End Sub
292
+
293
+    Private Sub Button1_Click_1(sender As Object, e As EventArgs) Handles Button1.Click
294
+        業務資料日期除錯.ShowDialog()
295
+    End Sub
292 296
 End Class

+ 144
- 0
TENDEN-MES-SYS/量產訂單管理/業務資料日期除錯.Designer.vb Näytä tiedosto

@@ -0,0 +1,144 @@
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.除錯_dgv = New System.Windows.Forms.DataGridView()
27
+        Me.日期1_dtp = New System.Windows.Forms.DateTimePicker()
28
+        Me.日期4_dtp = New System.Windows.Forms.DateTimePicker()
29
+        Me.日期3_dtp = New System.Windows.Forms.DateTimePicker()
30
+        Me.日期2_dtp = New System.Windows.Forms.DateTimePicker()
31
+        Me.日期5_dtp = New System.Windows.Forms.DateTimePicker()
32
+        Me.Button1 = New System.Windows.Forms.Button()
33
+        Me.ProgressBar1 = New System.Windows.Forms.ProgressBar()
34
+        CType(Me.除錯_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
35
+        Me.SuspendLayout()
36
+        '
37
+        '除錯_dgv
38
+        '
39
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
40
+        Me.除錯_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
41
+        Me.除錯_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
42
+        Me.除錯_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
43
+        Me.除錯_dgv.Location = New System.Drawing.Point(14, 16)
44
+        Me.除錯_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
45
+        Me.除錯_dgv.Name = "除錯_dgv"
46
+        Me.除錯_dgv.RowHeadersWidth = 5
47
+        Me.除錯_dgv.RowTemplate.Height = 24
48
+        Me.除錯_dgv.Size = New System.Drawing.Size(1492, 616)
49
+        Me.除錯_dgv.TabIndex = 758
50
+        '
51
+        '日期1_dtp
52
+        '
53
+        Me.日期1_dtp.Enabled = False
54
+        Me.日期1_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
55
+        Me.日期1_dtp.Location = New System.Drawing.Point(747, 333)
56
+        Me.日期1_dtp.Name = "日期1_dtp"
57
+        Me.日期1_dtp.Size = New System.Drawing.Size(24, 23)
58
+        Me.日期1_dtp.TabIndex = 759
59
+        '
60
+        '日期4_dtp
61
+        '
62
+        Me.日期4_dtp.Enabled = False
63
+        Me.日期4_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
64
+        Me.日期4_dtp.Location = New System.Drawing.Point(837, 333)
65
+        Me.日期4_dtp.Name = "日期4_dtp"
66
+        Me.日期4_dtp.Size = New System.Drawing.Size(24, 23)
67
+        Me.日期4_dtp.TabIndex = 762
68
+        '
69
+        '日期3_dtp
70
+        '
71
+        Me.日期3_dtp.Enabled = False
72
+        Me.日期3_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
73
+        Me.日期3_dtp.Location = New System.Drawing.Point(807, 333)
74
+        Me.日期3_dtp.Name = "日期3_dtp"
75
+        Me.日期3_dtp.Size = New System.Drawing.Size(24, 23)
76
+        Me.日期3_dtp.TabIndex = 761
77
+        '
78
+        '日期2_dtp
79
+        '
80
+        Me.日期2_dtp.Enabled = False
81
+        Me.日期2_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
82
+        Me.日期2_dtp.Location = New System.Drawing.Point(777, 333)
83
+        Me.日期2_dtp.Name = "日期2_dtp"
84
+        Me.日期2_dtp.Size = New System.Drawing.Size(24, 23)
85
+        Me.日期2_dtp.TabIndex = 760
86
+        '
87
+        '日期5_dtp
88
+        '
89
+        Me.日期5_dtp.Enabled = False
90
+        Me.日期5_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
91
+        Me.日期5_dtp.Location = New System.Drawing.Point(867, 333)
92
+        Me.日期5_dtp.Name = "日期5_dtp"
93
+        Me.日期5_dtp.Size = New System.Drawing.Size(24, 23)
94
+        Me.日期5_dtp.TabIndex = 763
95
+        '
96
+        'Button1
97
+        '
98
+        Me.Button1.Location = New System.Drawing.Point(14, 657)
99
+        Me.Button1.Name = "Button1"
100
+        Me.Button1.Size = New System.Drawing.Size(1492, 25)
101
+        Me.Button1.TabIndex = 764
102
+        Me.Button1.Text = "日期除錯"
103
+        Me.Button1.UseVisualStyleBackColor = True
104
+        '
105
+        'ProgressBar1
106
+        '
107
+        Me.ProgressBar1.Location = New System.Drawing.Point(14, 635)
108
+        Me.ProgressBar1.Maximum = 10000
109
+        Me.ProgressBar1.Name = "ProgressBar1"
110
+        Me.ProgressBar1.Size = New System.Drawing.Size(1492, 20)
111
+        Me.ProgressBar1.TabIndex = 765
112
+        '
113
+        '業務資料日期除錯
114
+        '
115
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
116
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
117
+        Me.ClientSize = New System.Drawing.Size(1518, 688)
118
+        Me.Controls.Add(Me.ProgressBar1)
119
+        Me.Controls.Add(Me.Button1)
120
+        Me.Controls.Add(Me.除錯_dgv)
121
+        Me.Controls.Add(Me.日期5_dtp)
122
+        Me.Controls.Add(Me.日期4_dtp)
123
+        Me.Controls.Add(Me.日期3_dtp)
124
+        Me.Controls.Add(Me.日期2_dtp)
125
+        Me.Controls.Add(Me.日期1_dtp)
126
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
127
+        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
128
+        Me.Name = "業務資料日期除錯"
129
+        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
130
+        Me.Text = "業務資料日期除錯"
131
+        CType(Me.除錯_dgv, System.ComponentModel.ISupportInitialize).EndInit()
132
+        Me.ResumeLayout(False)
133
+
134
+    End Sub
135
+
136
+    Friend WithEvents 除錯_dgv As DataGridView
137
+    Friend WithEvents 日期1_dtp As DateTimePicker
138
+    Friend WithEvents 日期4_dtp As DateTimePicker
139
+    Friend WithEvents 日期3_dtp As DateTimePicker
140
+    Friend WithEvents 日期2_dtp As DateTimePicker
141
+    Friend WithEvents 日期5_dtp As DateTimePicker
142
+    Friend WithEvents Button1 As Button
143
+    Friend WithEvents ProgressBar1 As ProgressBar
144
+End Class

+ 120
- 0
TENDEN-MES-SYS/量產訂單管理/業務資料日期除錯.resx Näytä tiedosto

@@ -0,0 +1,120 @@
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
+</root>

+ 72
- 0
TENDEN-MES-SYS/量產訂單管理/業務資料日期除錯.vb Näytä tiedosto

@@ -0,0 +1,72 @@
1
+Public Class 業務資料日期除錯
2
+    ReadOnly ds5 As New DataSet : Public 平均數 As Integer : Public 最終數 As Integer = 0 : Public 資料數 As Integer = 0
3
+    Private Sub Set_客戶交期除錯()
4
+        除錯_dgv.DataSource = Nothing : ds5.Clear()
5
+        除錯_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
6
+        除錯_dgv.ColumnHeadersHeight = 25
7
+        除錯_dgv.AllowUserToAddRows = False
8
+        ConnOpen()
9
+        SQL1 = "SELECT          客戶交期, 工廠回復交期, PO_S_Date, Requested_XF, Confirm_XF, Revised_XF, 客戶交期 AS A1, 工廠回復交期 AS A2, PO_S_Date AS A3, Requested_XF AS A4, Confirm_XF AS A5, 
10
+                                Revised_XF AS A6, 資料流水號, 力威訂單號
11
+                FROM            " & 訂單資料表(1) & "
12
+                WHERE          ((LEN(客戶交期) < 10) OR (LEN(工廠回復交期) < 10) OR (LEN(PO_S_Date) < 10) OR (LEN(Requested_XF) < 10) OR (LEN(Confirm_XF) < 10) OR (LEN(Revised_XF) < 10)) AND 
13
+                                力威訂單號 NOT LIKE ''"
14
+        CmdSet_For_DGV() : da.SelectCommand.CommandTimeout = 900 : da.Fill(ds5) : 除錯_dgv.DataSource = ds5.Tables(0) : conn.Close()
15
+    End Sub
16
+    Private Sub 業務資料日期除錯_Load(sender As Object, e As EventArgs) Handles MyBase.Load
17
+        訂單資料庫選擇.ShowDialog()
18
+        Set_客戶交期除錯()
19
+        Dim EU(4) As String
20
+        For I As Integer = 0 To 除錯_dgv.Rows.Count - 1
21
+            EU(0) = 除錯_dgv(0, I).Value.ToString
22
+            EU(1) = 除錯_dgv(1, I).Value.ToString
23
+            EU(2) = 除錯_dgv(2, I).Value.ToString
24
+            EU(3) = 除錯_dgv(3, I).Value.ToString
25
+            EU(4) = 除錯_dgv(4, I).Value.ToString
26
+
27
+            If EU(0) = "" Then
28
+            Else
29
+                日期1_dtp.Text = EU(0)
30
+                除錯_dgv.Rows(I).Cells(6).Value = Format(日期1_dtp.Value, "yyyy/MM/dd")
31
+            End If
32
+            If EU(1) = "" Then
33
+            Else
34
+                日期2_dtp.Text = EU(1)
35
+                除錯_dgv.Rows(I).Cells(7).Value = Format(日期2_dtp.Value, "yyyy/MM/dd")
36
+            End If
37
+            If EU(2) = "" Then
38
+            Else
39
+                日期3_dtp.Text = EU(2)
40
+                除錯_dgv.Rows(I).Cells(8).Value = Format(日期3_dtp.Value, "yyyy/MM/dd")
41
+            End If
42
+            If EU(3) = "" Then
43
+            Else
44
+                日期4_dtp.Text = EU(3)
45
+                除錯_dgv.Rows(I).Cells(9).Value = Format(日期4_dtp.Value, "yyyy/MM/dd")
46
+            End If
47
+            If EU(4) = "" Then
48
+            Else
49
+                日期5_dtp.Text = EU(4)
50
+                除錯_dgv.Rows(I).Cells(10).Value = Format(日期5_dtp.Value, "yyyy/MM/dd")
51
+            End If
52
+        Next
53
+    End Sub
54
+    Private Sub 進度條()
55
+        平均數 = 10000 / 資料數
56
+        最終數 += 平均數
57
+        If 最終數 > 10000 Then : 最終數 = 10000 : End If
58
+        ProgressBar1.Value = 最終數
59
+    End Sub
60
+    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
61
+        For I As Integer = 0 To 除錯_dgv.Rows.Count - 1
62
+            資料數 = 除錯_dgv.Rows.Count : 進度條()
63
+            ConnOpen()
64
+            SQL1 = "UPDATE " & 訂單資料表(1) & " SET 客戶交期 = '" & 除錯_dgv("A1", I).Value.ToString & "', 工廠回復交期 = '" & 除錯_dgv("A2", I).Value.ToString & "', 
65
+                                          PO_S_Date = '" & 除錯_dgv("A3", I).Value.ToString & "', Requested_XF  = '" & 除錯_dgv("A4", I).Value.ToString & "', 
66
+                                          Confirm_XF = '" & 除錯_dgv("A5", I).Value.ToString & "', Revised_XF = '" & 除錯_dgv("A6", I).Value.ToString & "' 
67
+                    WHERE (資料流水號 = '" & 除錯_dgv("資料流水號", I).Value.ToString & "')"
68
+            CmdSet_For_dr() : conn.Close()
69
+        Next : ProgressBar1.Value = 0 : 最終數 = 0
70
+        MsgBox("完成")
71
+    End Sub
72
+End Class

+ 19
- 6
TENDEN-MES-SYS/量產訂單管理/訂單執行資訊輸入.Designer.vb Näytä tiedosto

@@ -50,6 +50,7 @@ Partial Class 訂單執行資訊輸入
50 50
         Me.資料庫選擇1_bt = New System.Windows.Forms.Button()
51 51
         Me.Label20 = New System.Windows.Forms.Label()
52 52
         Me.EXCEL檔案導入1_bt = New System.Windows.Forms.Button()
53
+        Me.Label1 = New System.Windows.Forms.Label()
53 54
         CType(Me.控制表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
54 55
         CType(Me.圖片庫_pb, System.ComponentModel.ISupportInitialize).BeginInit()
55 56
         Me.SuspendLayout()
@@ -237,7 +238,7 @@ Partial Class 訂單執行資訊輸入
237 238
         '
238 239
         'EXCEL檔案導入_bt
239 240
         '
240
-        Me.EXCEL檔案導入_bt.Location = New System.Drawing.Point(752, 97)
241
+        Me.EXCEL檔案導入_bt.Location = New System.Drawing.Point(752, 80)
241 242
         Me.EXCEL檔案導入_bt.Name = "EXCEL檔案導入_bt"
242 243
         Me.EXCEL檔案導入_bt.Size = New System.Drawing.Size(346, 30)
243 244
         Me.EXCEL檔案導入_bt.TabIndex = 515
@@ -258,7 +259,7 @@ Partial Class 訂單執行資訊輸入
258 259
         '
259 260
         '資料庫選擇2_bt
260 261
         '
261
-        Me.資料庫選擇2_bt.Location = New System.Drawing.Point(870, 63)
262
+        Me.資料庫選擇2_bt.Location = New System.Drawing.Point(870, 49)
262 263
         Me.資料庫選擇2_bt.Name = "資料庫選擇2_bt"
263 264
         Me.資料庫選擇2_bt.Size = New System.Drawing.Size(75, 30)
264 265
         Me.資料庫選擇2_bt.TabIndex = 562
@@ -267,7 +268,7 @@ Partial Class 訂單執行資訊輸入
267 268
         '
268 269
         '資料庫選擇1_bt
269 270
         '
270
-        Me.資料庫選擇1_bt.Location = New System.Drawing.Point(792, 63)
271
+        Me.資料庫選擇1_bt.Location = New System.Drawing.Point(792, 49)
271 272
         Me.資料庫選擇1_bt.Name = "資料庫選擇1_bt"
272 273
         Me.資料庫選擇1_bt.Size = New System.Drawing.Size(75, 30)
273 274
         Me.資料庫選擇1_bt.TabIndex = 561
@@ -277,7 +278,7 @@ Partial Class 訂單執行資訊輸入
277 278
         'Label20
278 279
         '
279 280
         Me.Label20.AutoSize = True
280
-        Me.Label20.Location = New System.Drawing.Point(749, 62)
281
+        Me.Label20.Location = New System.Drawing.Point(749, 48)
281 282
         Me.Label20.Name = "Label20"
282 283
         Me.Label20.Size = New System.Drawing.Size(44, 32)
283 284
         Me.Label20.TabIndex = 560
@@ -285,18 +286,29 @@ Partial Class 訂單執行資訊輸入
285 286
         '
286 287
         'EXCEL檔案導入1_bt
287 288
         '
288
-        Me.EXCEL檔案導入1_bt.Location = New System.Drawing.Point(752, 129)
289
+        Me.EXCEL檔案導入1_bt.Location = New System.Drawing.Point(752, 112)
289 290
         Me.EXCEL檔案導入1_bt.Name = "EXCEL檔案導入1_bt"
290 291
         Me.EXCEL檔案導入1_bt.Size = New System.Drawing.Size(346, 30)
291 292
         Me.EXCEL檔案導入1_bt.TabIndex = 563
292
-        Me.EXCEL檔案導入1_bt.Text = "EXCEL檔案導入-依據力威訂單號更新交期" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10)
293
+        Me.EXCEL檔案導入1_bt.Text = "EXCEL檔案導入-依據力威訂單號更新交期、與接單日。" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10)
293 294
         Me.EXCEL檔案導入1_bt.UseVisualStyleBackColor = True
294 295
         '
296
+        'Label1
297
+        '
298
+        Me.Label1.AutoSize = True
299
+        Me.Label1.ForeColor = System.Drawing.Color.Red
300
+        Me.Label1.Location = New System.Drawing.Point(755, 145)
301
+        Me.Label1.Name = "Label1"
302
+        Me.Label1.Size = New System.Drawing.Size(233, 16)
303
+        Me.Label1.TabIndex = 564
304
+        Me.Label1.Text = "導入格式 : 力威訂單號、客戶交期、接單日"
305
+        '
295 306
         '訂單執行資訊輸入
296 307
         '
297 308
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
298 309
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
299 310
         Me.ClientSize = New System.Drawing.Size(1914, 991)
311
+        Me.Controls.Add(Me.Label1)
300 312
         Me.Controls.Add(Me.EXCEL檔案導入1_bt)
301 313
         Me.Controls.Add(Me.資料庫選擇2_bt)
302 314
         Me.Controls.Add(Me.資料庫選擇1_bt)
@@ -360,5 +372,6 @@ Partial Class 訂單執行資訊輸入
360 372
     Friend WithEvents 資料庫選擇1_bt As Button
361 373
     Friend WithEvents Label20 As Label
362 374
     Friend WithEvents EXCEL檔案導入1_bt As Button
375
+    Friend WithEvents Label1 As Label
363 376
 End Class
364 377
 

+ 1
- 1
TENDEN-MES-SYS/量產訂單管理/訂單執行資訊輸入.vb Näytä tiedosto

@@ -262,7 +262,7 @@ Public Class 訂單執行資訊輸入
262 262
                     If dr.Read() Then
263 263
                         conn.Close()
264 264
                         ConnOpen()
265
-                        SQL1 = "UPDATE " & 訂單資料表(1) & " SET 客戶交期 = '" & xlSheet.Cells(YY, 2).value & "', PO_S_Date = '" & xlSheet.Cells(YY, 2).value & "', 
265
+                        SQL1 = "UPDATE " & 訂單資料表(1) & " SET 客戶交期 = '" & xlSheet.Cells(YY, 2).value & "', PO_S_Date = '" & xlSheet.Cells(YY, 3).value & "', 
266 266
                                                              Requested_XF = '" & xlSheet.Cells(YY, 2).value & "', Confirm_XF = '" & xlSheet.Cells(YY, 2).value & "' 
267 267
                                 WHERE 力威訂單號 LIKE '" & xlSheet.Cells(YY, 1).value & "'"
268 268
                         CmdSet_For_dr() : conn.Close() : 次數 += 1

+ 19
- 19
TENDEN-MES-SYS/量產訂單管理/訂單控制表.vb Näytä tiedosto

@@ -1024,25 +1024,25 @@ Public Class 訂單控制表
1024 1024
         Set_格式設定() : Set_訂單清單() : Set_自動彙總1() : Set_grid()
1025 1025
         ComboBox1下拉表單資料載入() : ComboBox2下拉表單資料載入() : ComboBox3下拉表單資料載入() : ComboBox4下拉表單資料載入() : ComboBox5下拉表單資料載入() : ComboBox6下拉表單資料載入()
1026 1026
 
1027
-        Set_客戶交期除錯()
1028
-        If 除錯_dgv.Rows.Count > 0 Then
1029
-            For I As Integer = 0 To 除錯_dgv.Rows.Count - 1
1030
-                If IsNumeric(Strings.Left(除錯_dgv("後段", I).Value.ToString, 2)) = False And IsNumeric(Strings.Right(除錯_dgv("後段", I).Value.ToString, 2)) = False Then
1031
-                    除錯_dgv("後段", I).Value = 除錯_dgv("前段", I).Value.ToString & "/" & "0" & Strings.Left(除錯_dgv("後段", I).Value.ToString, 1) & "/0" &
1032
-                        Strings.Right(除錯_dgv("後段", I).Value.ToString, 1)
1033
-                ElseIf IsNumeric(Strings.Left(除錯_dgv("後段", I).Value.ToString, 2)) = True And IsNumeric(Strings.Right(除錯_dgv("後段", I).Value.ToString, 2)) = False Then
1034
-                    除錯_dgv("後段", I).Value = 除錯_dgv("前段", I).Value.ToString & "/" & Strings.Left(除錯_dgv("後段", I).Value.ToString, 2) & "/0" &
1035
-                        Strings.Right(除錯_dgv("後段", I).Value.ToString, 1)
1036
-                    除錯_dgv("後段", I).Value = "2021/" & Strings.Left(除錯_dgv("前段", I).Value.ToString, 2) & "/0" & Strings.Right(除錯_dgv("前段", I).Value.ToString, 1)
1037
-                ElseIf IsNumeric(Strings.Left(除錯_dgv("後段", I).Value.ToString, 2)) = False And IsNumeric(Strings.Right(除錯_dgv("後段", I).Value.ToString, 2)) = True Then
1038
-                    除錯_dgv("後段", I).Value = 除錯_dgv("前段", I).Value.ToString & "/" & "0" & Strings.Left(除錯_dgv("後段", I).Value.ToString, 1) & "/" &
1039
-                        Strings.Right(除錯_dgv("後段", I).Value.ToString, 2)
1040
-                End If
1041
-                ConnOpen()
1042
-                SQL1 = "UPDATE 訂單控制表 SET 客戶交期 = '" & 除錯_dgv("後段", I).Value.ToString & "' WHERE (資料流水號 = '" & 除錯_dgv("資料流水號", I).Value.ToString & "')"
1043
-                CmdSet_For_dr() : conn.Close()
1044
-            Next
1045
-        End If
1027
+        'Set_客戶交期除錯()
1028
+        'If 除錯_dgv.Rows.Count > 0 Then
1029
+        '    For I As Integer = 0 To 除錯_dgv.Rows.Count - 1
1030
+        '        If IsNumeric(Strings.Left(除錯_dgv("後段", I).Value.ToString, 2)) = False And IsNumeric(Strings.Right(除錯_dgv("後段", I).Value.ToString, 2)) = False Then
1031
+        '            除錯_dgv("後段", I).Value = 除錯_dgv("前段", I).Value.ToString & "/" & "0" & Strings.Left(除錯_dgv("後段", I).Value.ToString, 1) & "/0" &
1032
+        '                Strings.Right(除錯_dgv("後段", I).Value.ToString, 1)
1033
+        '        ElseIf IsNumeric(Strings.Left(除錯_dgv("後段", I).Value.ToString, 2)) = True And IsNumeric(Strings.Right(除錯_dgv("後段", I).Value.ToString, 2)) = False Then
1034
+        '            除錯_dgv("後段", I).Value = 除錯_dgv("前段", I).Value.ToString & "/" & Strings.Left(除錯_dgv("後段", I).Value.ToString, 2) & "/0" &
1035
+        '                Strings.Right(除錯_dgv("後段", I).Value.ToString, 1)
1036
+        '            除錯_dgv("後段", I).Value = "2021/" & Strings.Left(除錯_dgv("前段", I).Value.ToString, 2) & "/0" & Strings.Right(除錯_dgv("前段", I).Value.ToString, 1)
1037
+        '        ElseIf IsNumeric(Strings.Left(除錯_dgv("後段", I).Value.ToString, 2)) = False And IsNumeric(Strings.Right(除錯_dgv("後段", I).Value.ToString, 2)) = True Then
1038
+        '            除錯_dgv("後段", I).Value = 除錯_dgv("前段", I).Value.ToString & "/" & "0" & Strings.Left(除錯_dgv("後段", I).Value.ToString, 1) & "/" &
1039
+        '                Strings.Right(除錯_dgv("後段", I).Value.ToString, 2)
1040
+        '        End If
1041
+        '        ConnOpen()
1042
+        '        SQL1 = "UPDATE 訂單控制表 SET 客戶交期 = '" & 除錯_dgv("後段", I).Value.ToString & "' WHERE (資料流水號 = '" & 除錯_dgv("資料流水號", I).Value.ToString & "')"
1043
+        '        CmdSet_For_dr() : conn.Close()
1044
+        '    Next
1045
+        'End If
1046 1046
     End Sub
1047 1047
     Private Sub 訂單控制表_Unload(sender As Object, e As EventArgs) Handles MyBase.Closing
1048 1048
         frmOpenFlag = False

Loading…
Peruuta
Tallenna