Просмотр исходного кода

改財務系統,新增支票收支單介面

Signed-off-by: B70340 <b70340@gmail.com>
B70340 5 лет назад
Родитель
Сommit
71dca3ed62
37 измененных файлов: 404 добавлений и 4046 удалений
  1. Двоичные данные
      .vs/MAOJI-ERP-SYS/v16/.suo
  2. 62
    38
      MaoOrange-Hongji/MAOJI-ERP-SYS.Designer.vb
  3. 15
    12
      MaoOrange-Hongji/MAOJI-ERP-SYS.vb
  4. 29
    20
      MaoOrange-Hongji/MAOJI-ERP-SYS.vbproj
  5. 226
    117
      MaoOrange-Hongji/Module1/SQL_Module.vb
  6. Двоичные данные
      MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.exe
  7. Двоичные данные
      MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.pdb
  8. Двоичные данные
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.exe
  9. Двоичные данные
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.pdb
  10. 1
    1
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.CoreCompileInputs.cache
  11. 6
    5
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.FileListAbsolute.txt
  12. Двоичные данные
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.GenerateResource.cache
  13. Двоичные данные
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbprojAssemblyReference.cache
  14. Двоичные данные
      MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.採購退賀清單.resources
  15. Двоичные данные
      MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.營運成本收支單_對帳表.resources
  16. Двоичные данные
      MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.營運成本收支單一覽表.resources
  17. Двоичные данные
      MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.營運成本收支單審核.resources
  18. Двоичные данные
      MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.營運成本收支單申請.resources
  19. 10
    8
      MaoOrange-Hongji/採購系統管理/採購單申請.vb
  20. 28
    28
      MaoOrange-Hongji/採購系統管理/採購退賀清單.Designer.vb
  21. 5
    5
      MaoOrange-Hongji/採購系統管理/採購退賀清單.vb
  22. 5
    5
      MaoOrange-Hongji/財務系統管理/司機佣金計算.vb
  23. 6
    6
      MaoOrange-Hongji/財務系統管理/應付賬款控制表.vb
  24. 6
    6
      MaoOrange-Hongji/財務系統管理/應收帳款控制表.vb
  25. 5
    5
      MaoOrange-Hongji/財務系統管理/業務佣金計算.vb
  26. 0
    606
      MaoOrange-Hongji/財務系統管理/營運成本收支單_對帳表.Designer.vb
  27. 0
    129
      MaoOrange-Hongji/財務系統管理/營運成本收支單_對帳表.resx
  28. 0
    170
      MaoOrange-Hongji/財務系統管理/營運成本收支單_對帳表.vb
  29. 0
    583
      MaoOrange-Hongji/財務系統管理/營運成本收支單一覽表.Designer.vb
  30. 0
    123
      MaoOrange-Hongji/財務系統管理/營運成本收支單一覽表.resx
  31. 0
    380
      MaoOrange-Hongji/財務系統管理/營運成本收支單一覽表.vb
  32. 0
    480
      MaoOrange-Hongji/財務系統管理/營運成本收支單審核.Designer.vb
  33. 0
    126
      MaoOrange-Hongji/財務系統管理/營運成本收支單審核.resx
  34. 0
    197
      MaoOrange-Hongji/財務系統管理/營運成本收支單審核.vb
  35. 0
    631
      MaoOrange-Hongji/財務系統管理/營運成本收支單申請.Designer.vb
  36. 0
    129
      MaoOrange-Hongji/財務系統管理/營運成本收支單申請.resx
  37. 0
    236
      MaoOrange-Hongji/財務系統管理/營運成本收支單申請.vb

Двоичные данные
.vs/MAOJI-ERP-SYS/v16/.suo Просмотреть файл


+ 62
- 38
MaoOrange-Hongji/MAOJI-ERP-SYS.Designer.vb Просмотреть файл

@@ -87,10 +87,13 @@ Partial Class MAOJI_ERP_SYS
87 87
         Me.倉儲分區控制表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
88 88
         Me.物料資料庫ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
89 89
         Me.財務系統管理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
90
-        Me.營運費用支付申請ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
91
-        Me.營運費用支付審核ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
92
-        Me.營運費用支付單一覽表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
93
-        Me.營運成本收支單對帳表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
90
+        Me.現金收支單申請ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
91
+        Me.支票收支單申請ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
92
+        Me.票務控制表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
93
+        Me.ToolStripSeparator18 = New System.Windows.Forms.ToolStripSeparator()
94
+        Me.財務收支單審核ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
95
+        Me.財務收支單一覽表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
96
+        Me.財務收支單_對帳表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
94 97
         Me.ToolStripSeparator13 = New System.Windows.Forms.ToolStripSeparator()
95 98
         Me.應付賬款控制表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
96 99
         Me.應收帳款控制表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
@@ -528,95 +531,113 @@ Partial Class MAOJI_ERP_SYS
528 531
         '
529 532
         '財務系統管理ToolStripMenuItem
530 533
         '
531
-        Me.財務系統管理ToolStripMenuItem.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.營運費用支付申請ToolStripMenuItem, Me.營運費用支付審核ToolStripMenuItem, Me.營運費用支付單一覽表ToolStripMenuItem, Me.營運成本收支單對帳表ToolStripMenuItem, Me.ToolStripSeparator13, Me.應付賬款控制表ToolStripMenuItem, Me.應收帳款控制表ToolStripMenuItem, Me.ToolStripSeparator15, Me.業務佣金計算ToolStripMenuItem, Me.司機佣金計算ToolStripMenuItem, Me.ToolStripSeparator3, Me.營運成本收支決算表ToolStripMenuItem, Me.營運狀態彙總檢視表ToolStripMenuItem})
534
+        Me.財務系統管理ToolStripMenuItem.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.現金收支單申請ToolStripMenuItem, Me.支票收支單申請ToolStripMenuItem, Me.票務控制表ToolStripMenuItem, Me.ToolStripSeparator18, Me.財務收支單審核ToolStripMenuItem, Me.財務收支單一覽表ToolStripMenuItem, Me.財務收支單_對帳表ToolStripMenuItem, Me.ToolStripSeparator13, Me.應付賬款控制表ToolStripMenuItem, Me.應收帳款控制表ToolStripMenuItem, Me.ToolStripSeparator15, Me.業務佣金計算ToolStripMenuItem, Me.司機佣金計算ToolStripMenuItem, Me.ToolStripSeparator3, Me.營運成本收支決算表ToolStripMenuItem, Me.營運狀態彙總檢視表ToolStripMenuItem})
532 535
         Me.財務系統管理ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
533 536
         Me.財務系統管理ToolStripMenuItem.Name = "財務系統管理ToolStripMenuItem"
534 537
         Me.財務系統管理ToolStripMenuItem.Size = New System.Drawing.Size(91, 20)
535 538
         Me.財務系統管理ToolStripMenuItem.Text = "財務系統管理"
536 539
         '
537
-        '營運費用支付申請ToolStripMenuItem
540
+        '現金收支單申請ToolStripMenuItem
538 541
         '
539
-        Me.營運費用支付申請ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
540
-        Me.營運費用支付申請ToolStripMenuItem.Name = "營運費用支付申請ToolStripMenuItem"
541
-        Me.營運費用支付申請ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
542
-        Me.營運費用支付申請ToolStripMenuItem.Text = "營運成本收支單申請"
542
+        Me.現金收支單申請ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
543
+        Me.現金收支單申請ToolStripMenuItem.Name = "現金收支單申請ToolStripMenuItem"
544
+        Me.現金收支單申請ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
545
+        Me.現金收支單申請ToolStripMenuItem.Text = "現金收支單申請"
543 546
         '
544
-        '營運費用支付審核ToolStripMenuItem
547
+        '支票收支單申請ToolStripMenuItem
545 548
         '
546
-        Me.營運費用支付審核ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
547
-        Me.營運費用支付審核ToolStripMenuItem.Name = "營運費用支付審核ToolStripMenuItem"
548
-        Me.營運費用支付審核ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
549
-        Me.營運費用支付審核ToolStripMenuItem.Text = "營運成本收支單審核"
549
+        Me.支票收支單申請ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
550
+        Me.支票收支單申請ToolStripMenuItem.Name = "支票收支單申請ToolStripMenuItem"
551
+        Me.支票收支單申請ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
552
+        Me.支票收支單申請ToolStripMenuItem.Text = "支票收支單申請"
550 553
         '
551
-        '營運費用支付單一覽表ToolStripMenuItem
554
+        '票務控制表ToolStripMenuItem
552 555
         '
553
-        Me.營運費用支付單一覽表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
554
-        Me.營運費用支付單一覽表ToolStripMenuItem.Name = "營運費用支付單一覽表ToolStripMenuItem"
555
-        Me.營運費用支付單一覽表ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
556
-        Me.營運費用支付單一覽表ToolStripMenuItem.Text = "營運成本收支單一覽表"
556
+        Me.票務控制表ToolStripMenuItem.Name = "票務控制表ToolStripMenuItem"
557
+        Me.票務控制表ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
558
+        Me.票務控制表ToolStripMenuItem.Text = "票務控制表"
557 559
         '
558
-        '營運成本收支單對帳表ToolStripMenuItem
560
+        'ToolStripSeparator18
559 561
         '
560
-        Me.營運成本收支單對帳表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
561
-        Me.營運成本收支單對帳表ToolStripMenuItem.Name = "營運成本收支單對帳表ToolStripMenuItem"
562
-        Me.營運成本收支單對帳表ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
563
-        Me.營運成本收支單對帳表ToolStripMenuItem.Text = "營運成本收支單_對帳表"
562
+        Me.ToolStripSeparator18.Name = "ToolStripSeparator18"
563
+        Me.ToolStripSeparator18.Size = New System.Drawing.Size(190, 6)
564
+        '
565
+        '財務收支單審核ToolStripMenuItem
566
+        '
567
+        Me.財務收支單審核ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
568
+        Me.財務收支單審核ToolStripMenuItem.Name = "財務收支單審核ToolStripMenuItem"
569
+        Me.財務收支單審核ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
570
+        Me.財務收支單審核ToolStripMenuItem.Text = "財務收支單審核"
571
+        '
572
+        '財務收支單一覽表ToolStripMenuItem
573
+        '
574
+        Me.財務收支單一覽表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
575
+        Me.財務收支單一覽表ToolStripMenuItem.Name = "財務收支單一覽表ToolStripMenuItem"
576
+        Me.財務收支單一覽表ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
577
+        Me.財務收支單一覽表ToolStripMenuItem.Text = "財務收支單一覽表"
578
+        '
579
+        '財務收支單_對帳表ToolStripMenuItem
580
+        '
581
+        Me.財務收支單_對帳表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
582
+        Me.財務收支單_對帳表ToolStripMenuItem.Name = "財務收支單_對帳表ToolStripMenuItem"
583
+        Me.財務收支單_對帳表ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
584
+        Me.財務收支單_對帳表ToolStripMenuItem.Text = "財務收支單_對帳表"
564 585
         '
565 586
         'ToolStripSeparator13
566 587
         '
567 588
         Me.ToolStripSeparator13.Name = "ToolStripSeparator13"
568
-        Me.ToolStripSeparator13.Size = New System.Drawing.Size(196, 6)
589
+        Me.ToolStripSeparator13.Size = New System.Drawing.Size(190, 6)
569 590
         '
570 591
         '應付賬款控制表ToolStripMenuItem
571 592
         '
572 593
         Me.應付賬款控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
573 594
         Me.應付賬款控制表ToolStripMenuItem.Name = "應付賬款控制表ToolStripMenuItem"
574
-        Me.應付賬款控制表ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
595
+        Me.應付賬款控制表ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
575 596
         Me.應付賬款控制表ToolStripMenuItem.Text = "應付賬款控制表"
576 597
         '
577 598
         '應收帳款控制表ToolStripMenuItem
578 599
         '
579 600
         Me.應收帳款控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
580 601
         Me.應收帳款控制表ToolStripMenuItem.Name = "應收帳款控制表ToolStripMenuItem"
581
-        Me.應收帳款控制表ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
602
+        Me.應收帳款控制表ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
582 603
         Me.應收帳款控制表ToolStripMenuItem.Text = "應收帳款控制表"
583 604
         '
584 605
         'ToolStripSeparator15
585 606
         '
586 607
         Me.ToolStripSeparator15.Name = "ToolStripSeparator15"
587
-        Me.ToolStripSeparator15.Size = New System.Drawing.Size(196, 6)
608
+        Me.ToolStripSeparator15.Size = New System.Drawing.Size(190, 6)
588 609
         '
589 610
         '業務佣金計算ToolStripMenuItem
590 611
         '
591 612
         Me.業務佣金計算ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
592 613
         Me.業務佣金計算ToolStripMenuItem.Name = "業務佣金計算ToolStripMenuItem"
593
-        Me.業務佣金計算ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
614
+        Me.業務佣金計算ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
594 615
         Me.業務佣金計算ToolStripMenuItem.Text = "業務佣金計算"
595 616
         '
596 617
         '司機佣金計算ToolStripMenuItem
597 618
         '
598 619
         Me.司機佣金計算ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
599 620
         Me.司機佣金計算ToolStripMenuItem.Name = "司機佣金計算ToolStripMenuItem"
600
-        Me.司機佣金計算ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
621
+        Me.司機佣金計算ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
601 622
         Me.司機佣金計算ToolStripMenuItem.Text = "司機佣金計算"
602 623
         '
603 624
         'ToolStripSeparator3
604 625
         '
605 626
         Me.ToolStripSeparator3.Name = "ToolStripSeparator3"
606
-        Me.ToolStripSeparator3.Size = New System.Drawing.Size(196, 6)
627
+        Me.ToolStripSeparator3.Size = New System.Drawing.Size(190, 6)
607 628
         '
608 629
         '營運成本收支決算表ToolStripMenuItem
609 630
         '
610 631
         Me.營運成本收支決算表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
611 632
         Me.營運成本收支決算表ToolStripMenuItem.Name = "營運成本收支決算表ToolStripMenuItem"
612
-        Me.營運成本收支決算表ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
633
+        Me.營運成本收支決算表ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
613 634
         Me.營運成本收支決算表ToolStripMenuItem.Text = "營運成本收支 - 決算表"
614 635
         '
615 636
         '營運狀態彙總檢視表ToolStripMenuItem
616 637
         '
617 638
         Me.營運狀態彙總檢視表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
618 639
         Me.營運狀態彙總檢視表ToolStripMenuItem.Name = "營運狀態彙總檢視表ToolStripMenuItem"
619
-        Me.營運狀態彙總檢視表ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
640
+        Me.營運狀態彙總檢視表ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
620 641
         Me.營運狀態彙總檢視表ToolStripMenuItem.Text = "營運狀態彙總 - 檢視表"
621 642
         '
622 643
         '資料庫系統管理ToolStripMenuItem
@@ -780,11 +801,11 @@ Partial Class MAOJI_ERP_SYS
780 801
     Friend WithEvents 倉儲系統管理ToolStripMenuItem As ToolStripMenuItem
781 802
     Friend WithEvents 物料資料庫ToolStripMenuItem As ToolStripMenuItem
782 803
     Friend WithEvents 財務系統管理ToolStripMenuItem As ToolStripMenuItem
783
-    Friend WithEvents 營運費用支付申請ToolStripMenuItem As ToolStripMenuItem
784
-    Friend WithEvents 營運費用支付審核ToolStripMenuItem As ToolStripMenuItem
785
-    Friend WithEvents 營運費用支付單一覽表ToolStripMenuItem As ToolStripMenuItem
804
+    Friend WithEvents 現金收支單申請ToolStripMenuItem As ToolStripMenuItem
805
+    Friend WithEvents 財務收支單審核ToolStripMenuItem As ToolStripMenuItem
806
+    Friend WithEvents 財務收支單一覽表ToolStripMenuItem As ToolStripMenuItem
786 807
     Friend WithEvents ToolStripSeparator3 As ToolStripSeparator
787
-    Friend WithEvents 營運成本收支單對帳表ToolStripMenuItem As ToolStripMenuItem
808
+    Friend WithEvents 財務收支單_對帳表ToolStripMenuItem As ToolStripMenuItem
788 809
     Friend WithEvents 採購單申請ToolStripMenuItem As ToolStripMenuItem
789 810
     Friend WithEvents ToolStripSeparator2 As ToolStripSeparator
790 811
     Friend WithEvents 倉儲控制表ToolStripMenuItem As ToolStripMenuItem
@@ -839,4 +860,7 @@ Partial Class MAOJI_ERP_SYS
839 860
     Friend WithEvents 銷售退貨申請ToolStripMenuItem As ToolStripMenuItem
840 861
     Friend WithEvents 銷售退貨確認ToolStripMenuItem As ToolStripMenuItem
841 862
     Friend WithEvents ToolStripSeparator17 As ToolStripSeparator
863
+    Friend WithEvents 支票收支單申請ToolStripMenuItem As ToolStripMenuItem
864
+    Friend WithEvents ToolStripSeparator18 As ToolStripSeparator
865
+    Friend WithEvents 票務控制表ToolStripMenuItem As ToolStripMenuItem
842 866
 End Class

+ 15
- 12
MaoOrange-Hongji/MAOJI-ERP-SYS.vb Просмотреть файл

@@ -67,8 +67,8 @@ Public Class MAOJI_ERP_SYS
67 67
         Me.盤盈盤損控制表ToolStripMenuItem.Enabled = CC(43) : Me.盤盈坢損確認倉儲調整ToolStripMenuItem.Enabled = CC(44)
68 68
 
69 69
         '----------財務管理權限執行---------------------------------------------------------------------------------------------------------------------
70
-        Me.財務系統管理ToolStripMenuItem.Enabled = CC(16) : Me.營運費用支付申請ToolStripMenuItem.Enabled = CC(27) : Me.營運費用支付審核ToolStripMenuItem.Enabled = CC(29)
71
-        Me.營運費用支付單一覽表ToolStripMenuItem.Enabled = CC(30) : Me.營運成本收支單對帳表ToolStripMenuItem.Enabled = CC(31) : Me.營運成本收支決算表ToolStripMenuItem.Enabled = CC(32)
70
+        Me.財務系統管理ToolStripMenuItem.Enabled = CC(16) : Me.現金收支單申請ToolStripMenuItem.Enabled = CC(27) : Me.財務收支單審核ToolStripMenuItem.Enabled = CC(29)
71
+        Me.財務收支單一覽表ToolStripMenuItem.Enabled = CC(30) : Me.財務收支單_對帳表ToolStripMenuItem.Enabled = CC(31) : Me.營運成本收支決算表ToolStripMenuItem.Enabled = CC(32)
72 72
         Me.營運狀態彙總檢視表ToolStripMenuItem.Enabled = CC(45)
73 73
     End Sub
74 74
     Private Sub MDIParentbreak_Unload(sender As Object, e As EventArgs) Handles MyBase.Closing
@@ -114,17 +114,17 @@ Public Class MAOJI_ERP_SYS
114 114
     Private Sub 物料資料庫ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 物料資料庫ToolStripMenuItem.Click
115 115
         PA = "" : 物料資料庫.Show() : 物料資料庫.BringToFront()
116 116
     End Sub
117
-    Private Sub 營運成本支付申請ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 營運費用支付申請ToolStripMenuItem.Click
118
-        PA = "" : 營運成本收支單申請.Show() : 營運成本收支單申請.BringToFront()
117
+    Private Sub 營運成本支付申請ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 現金收支單申請ToolStripMenuItem.Click
118
+        PA = "" : 現金收支單申請.Show() : 現金收支單申請.BringToFront()
119 119
     End Sub
120
-    Private Sub 營運費用支付審核ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 營運費用支付審核ToolStripMenuItem.Click
121
-        PA = "" : 營運成本收支單審核.Show() : 營運成本收支單審核.BringToFront()
120
+    Private Sub 營運費用支付審核ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 財務收支單審核ToolStripMenuItem.Click
121
+        PA = "" : 財務收支單審核.Show() : 財務收支單審核.BringToFront()
122 122
     End Sub
123
-    Private Sub 營運費用支付單一覽表ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 營運費用支付單一覽表ToolStripMenuItem.Click
124
-        PA = "" : 營運成本收支單一覽表.Show() : 營運成本收支單一覽表.BringToFront()
123
+    Private Sub 營運費用支付單一覽表ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 財務收支單一覽表ToolStripMenuItem.Click
124
+        PA = "" : 財務收支單一覽表.Show() : 財務收支單一覽表.BringToFront()
125 125
     End Sub
126
-    Private Sub 營運成本收支單對帳表ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 營運成本收支單對帳表ToolStripMenuItem.Click
127
-        PA = "" : 營運成本收支單_對帳表.Show() : 營運成本收支單_對帳表.BringToFront()
126
+    Private Sub 營運成本收支單對帳表ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 財務收支單_對帳表ToolStripMenuItem.Click
127
+        PA = "" : 財務收支單_對帳表.Show() : 財務收支單_對帳表.BringToFront()
128 128
     End Sub
129 129
     Private Sub 採購單申請ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 採購單申請ToolStripMenuItem.Click
130 130
         PA = "" : 採購單申請.Show() : 採購單申請.BringToFront()
@@ -214,8 +214,8 @@ Public Class MAOJI_ERP_SYS
214 214
     Private Sub 採購退貨申請ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 採購退貨申請ToolStripMenuItem.Click
215 215
         PA = "" : 採購退貨申請.Show() : 採購退貨申請.BringToFront()
216 216
     End Sub
217
-    Private Sub 採購退清單ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 採購退貨清單ToolStripMenuItem.Click
218
-        PA = "" : 採購退賀清單.Show() : 採購退賀清單.BringToFront()
217
+    Private Sub 採購退清單ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 採購退貨清單ToolStripMenuItem.Click
218
+        PA = "" : 採購退貨清單.Show() : 採購退貨清單.BringToFront()
219 219
     End Sub
220 220
     Private Sub 採購退貨確認ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 採購退貨確認ToolStripMenuItem.Click
221 221
         PA = "" : 採購退貨確認.Show() : 採購退貨確認.BringToFront()
@@ -235,4 +235,7 @@ Public Class MAOJI_ERP_SYS
235 235
     Private Sub 應收帳款ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 應收帳款控制表ToolStripMenuItem.Click
236 236
         PA = "" : 應收帳款控制表.Show() : 應收帳款控制表.BringToFront()
237 237
     End Sub
238
+    Private Sub 支票收支單申請ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 支票收支單申請ToolStripMenuItem.Click
239
+        PA = "" : 支票收支單申請.Show() : 支票收支單申請.BringToFront()
240
+    End Sub
238 241
 End Class

+ 29
- 20
MaoOrange-Hongji/MAOJI-ERP-SYS.vbproj Просмотреть файл

@@ -127,6 +127,12 @@
127 127
     <Compile Include="倉儲系統管理\倉儲入庫驗收.vb">
128 128
       <SubType>Form</SubType>
129 129
     </Compile>
130
+    <Compile Include="財務系統管理\支票收支單申請.Designer.vb">
131
+      <DependentUpon>支票收支單申請.vb</DependentUpon>
132
+    </Compile>
133
+    <Compile Include="財務系統管理\支票收支單申請.vb">
134
+      <SubType>Form</SubType>
135
+    </Compile>
130 136
     <Compile Include="資料庫系統管理\系統通用變數管理.Designer.vb">
131 137
       <DependentUpon>系統通用變數管理.vb</DependentUpon>
132 138
     </Compile>
@@ -319,28 +325,28 @@
319 325
     <Compile Include="資料庫系統管理\網段.vb">
320 326
       <SubType>Form</SubType>
321 327
     </Compile>
322
-    <Compile Include="財務系統管理\營運成本收支單_對帳表.Designer.vb">
323
-      <DependentUpon>營運成本收支單_對帳表.vb</DependentUpon>
328
+    <Compile Include="財務系統管理\財務收支單_對帳表.Designer.vb">
329
+      <DependentUpon>財務收支單_對帳表.vb</DependentUpon>
324 330
     </Compile>
325
-    <Compile Include="財務系統管理\營運成本收支單_對帳表.vb">
331
+    <Compile Include="財務系統管理\財務收支單_對帳表.vb">
326 332
       <SubType>Form</SubType>
327 333
     </Compile>
328
-    <Compile Include="財務系統管理\營運成本收支單一覽表.Designer.vb">
329
-      <DependentUpon>營運成本收支單一覽表.vb</DependentUpon>
334
+    <Compile Include="財務系統管理\財務收支單一覽表.Designer.vb">
335
+      <DependentUpon>財務收支單一覽表.vb</DependentUpon>
330 336
     </Compile>
331
-    <Compile Include="財務系統管理\營運成本收支單一覽表.vb">
337
+    <Compile Include="財務系統管理\財務收支單一覽表.vb">
332 338
       <SubType>Form</SubType>
333 339
     </Compile>
334
-    <Compile Include="財務系統管理\營運成本收支單審核.Designer.vb">
335
-      <DependentUpon>營運成本收支單審核.vb</DependentUpon>
340
+    <Compile Include="財務系統管理\財務收支單審核.Designer.vb">
341
+      <DependentUpon>財務收支單審核.vb</DependentUpon>
336 342
     </Compile>
337
-    <Compile Include="財務系統管理\營運成本收支單審核.vb">
343
+    <Compile Include="財務系統管理\財務收支單審核.vb">
338 344
       <SubType>Form</SubType>
339 345
     </Compile>
340
-    <Compile Include="財務系統管理\營運成本收支單申請.Designer.vb">
341
-      <DependentUpon>營運成本收支單申請.vb</DependentUpon>
346
+    <Compile Include="財務系統管理\現金收支單申請.Designer.vb">
347
+      <DependentUpon>現金收支單申請.vb</DependentUpon>
342 348
     </Compile>
343
-    <Compile Include="財務系統管理\營運成本收支單申請.vb">
349
+    <Compile Include="財務系統管理\現金收支單申請.vb">
344 350
       <SubType>Form</SubType>
345 351
     </Compile>
346 352
     <Compile Include="資料庫系統管理\系統執行檔版本管理.Designer.vb">
@@ -457,6 +463,9 @@
457 463
     <EmbeddedResource Include="倉儲系統管理\倉儲入庫驗收.resx">
458 464
       <DependentUpon>倉儲入庫驗收.vb</DependentUpon>
459 465
     </EmbeddedResource>
466
+    <EmbeddedResource Include="財務系統管理\支票收支單申請.resx">
467
+      <DependentUpon>支票收支單申請.vb</DependentUpon>
468
+    </EmbeddedResource>
460 469
     <EmbeddedResource Include="資料庫系統管理\系統通用變數管理.resx">
461 470
       <DependentUpon>系統通用變數管理.vb</DependentUpon>
462 471
     </EmbeddedResource>
@@ -553,17 +562,17 @@
553 562
     <EmbeddedResource Include="資料庫系統管理\網段.resx">
554 563
       <DependentUpon>網段.vb</DependentUpon>
555 564
     </EmbeddedResource>
556
-    <EmbeddedResource Include="財務系統管理\營運成本收支單_對帳表.resx">
557
-      <DependentUpon>營運成本收支單_對帳表.vb</DependentUpon>
565
+    <EmbeddedResource Include="財務系統管理\財務收支單_對帳表.resx">
566
+      <DependentUpon>財務收支單_對帳表.vb</DependentUpon>
558 567
     </EmbeddedResource>
559
-    <EmbeddedResource Include="財務系統管理\營運成本收支單一覽表.resx">
560
-      <DependentUpon>營運成本收支單一覽表.vb</DependentUpon>
568
+    <EmbeddedResource Include="財務系統管理\財務收支單一覽表.resx">
569
+      <DependentUpon>財務收支單一覽表.vb</DependentUpon>
561 570
     </EmbeddedResource>
562
-    <EmbeddedResource Include="財務系統管理\營運成本收支單審核.resx">
563
-      <DependentUpon>營運成本收支單審核.vb</DependentUpon>
571
+    <EmbeddedResource Include="財務系統管理\財務收支單審核.resx">
572
+      <DependentUpon>財務收支單審核.vb</DependentUpon>
564 573
     </EmbeddedResource>
565
-    <EmbeddedResource Include="財務系統管理\營運成本收支單申請.resx">
566
-      <DependentUpon>營運成本收支單申請.vb</DependentUpon>
574
+    <EmbeddedResource Include="財務系統管理\現金收支單申請.resx">
575
+      <DependentUpon>現金收支單申請.vb</DependentUpon>
567 576
     </EmbeddedResource>
568 577
     <EmbeddedResource Include="資料庫系統管理\系統執行檔版本管理.resx">
569 578
       <DependentUpon>系統執行檔版本管理.vb</DependentUpon>

+ 226
- 117
MaoOrange-Hongji/Module1/SQL_Module.vb Просмотреть файл

@@ -129,9 +129,9 @@ Module SQL_Module
129 129
     End Sub
130 130
     Friend Sub SQL_營運成本明細表新增()
131 131
         ConnOpen()
132
-        SQL1 = "INSERT INTO 營運成本明細表 (流水號, 項次, 會計科目, 用途, 金額, 備註, 收款, 零用金, 支票數, 會計, 出納, 現金, 備用金, 公帳, 支票, 作帳日期, 出納日期, 公司編號) 
132
+        SQL1 = "INSERT INTO 營運成本明細表 (流水號, 項次, 會計科目, 用途, 金額, 備註, 收款, 零用金, 支票數, 會計, 出納, 現金, 備用金, 公帳, 支票, 作帳日期, 出納日期, 公司編號, 狀態, 登錄人) 
133 133
                 VALUES (N'" & PA1 & "', N'" & PA2 & "', N'" & PA3 & "', N'" & PA4 & "', N'" & NU1 & "', N'" & PA5 & "', N'" & NU2 & "', N'" & NU3 & "', N'" & NU4 &
134
-                    "', N'1', N'0', N'0', N'0', N'0', N'0', N'" & DTP & "', N'', N'" & 公司編號 & "')"
134
+                    "', N'1', N'0', N'0', N'0', N'0', N'0', N'" & DTP & "', N'', N'" & 公司編號 & "', N'" & PA6 & "', N'" & PA7 & "')"
135 135
         CmdSet_For_dr()
136 136
     End Sub
137 137
     Friend Sub SQL_倉儲明細表_出庫日期讀取()
@@ -143,6 +143,61 @@ Module SQL_Module
143 143
     Friend Sub SQL_通用預設值管理查詢()
144 144
         ConnOpen() : SQL1 = "SELECT 預設值 FROM 通用預設值管理表一 WHERE ( 流水號 LIKE N'" & 關鍵字編號 & "')" : CmdSet_For_dr()
145 145
     End Sub
146
+    Friend Sub SQL_會計科目_第一階_不含流動票務()
147
+        ConnOpen() : SQL1 = "SELECT 第一階, LEFT(編號, 4) AS 編號 FROM 會計科目  WHERE (停用 = 0) AND (第一階 NOT LIKE '流動%') GROUP BY 第一階, LEFT(編號, 4) ORDER BY 編號" : CmdSet_For_dr()
148
+    End Sub
149
+    Friend Sub SQL_會計科目_第二階_不含流動票務()
150
+        ConnOpen()
151
+        SQL1 = "SELECT LEFT(編號, 7) AS 編號, 第二階, 層級 FROM  會計科目 WHERE (LEFT(編號, 4) LIKE N'" & PA & "') AND (層級 NOT LIKE '3') AND (停用 = 0) AND (第一階 NOT LIKE '流動%')
152
+                GROUP BY   LEFT(編號, 7), 第二階, 層級 ORDER BY   編號"
153
+        CmdSet_For_dr()
154
+    End Sub
155
+    Friend Sub SQL_會計科目_第三階_不含流動票務()
156
+        ConnOpen() : SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 WHERE (LEFT(編號, 7) LIKE N'" & PA & "') AND (停用 = 0) AND (統制科目 = 0) AND (第一階 NOT LIKE '流動%') ORDER BY 編號" : CmdSet_For_dr()
157
+    End Sub
158
+    Friend Sub SQL_會計科目_關鍵字_不含流動票務()
159
+        ConnOpen() : SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 WHERE (會計科目 LIKE N'%" & PA & "%') AND (停用 = 0) AND (統制科目 = 0) AND (第一階 NOT LIKE '流動%') ORDER BY 編號" : CmdSet_For_dr()
160
+    End Sub
161
+    Friend Sub SQL_會計科目_第一階_只含流動票務()
162
+        ConnOpen() : SQL1 = "SELECT 第一階, LEFT(編號, 4) AS 編號 FROM 會計科目  WHERE (停用 = 0) AND (第一階 LIKE '流動%') GROUP BY 第一階, LEFT(編號, 4) ORDER BY 編號" : CmdSet_For_dr()
163
+    End Sub
164
+    Friend Sub SQL_會計科目_第二階_只含流動票務()
165
+        ConnOpen()
166
+        SQL1 = "SELECT LEFT(編號, 7) AS 編號, 第二階, 層級 FROM  會計科目 WHERE (LEFT(編號, 4) LIKE N'" & PA & "') AND (層級 NOT LIKE '3') AND (停用 = 0) AND (第一階 LIKE '流動%')
167
+                GROUP BY   LEFT(編號, 7), 第二階, 層級 ORDER BY   編號"
168
+        CmdSet_For_dr()
169
+    End Sub
170
+    Friend Sub SQL_會計科目_第三階_只含流動票務()
171
+        ConnOpen() : SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 WHERE (LEFT(編號, 7) LIKE N'" & PA & "') AND (停用 = 0) AND (統制科目 = 0) AND (第一階 LIKE '流動%') ORDER BY 編號" : CmdSet_For_dr()
172
+    End Sub
173
+    Friend Sub SQL_會計科目_關鍵字_只含流動票務()
174
+        ConnOpen() : SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 WHERE (會計科目 LIKE N'%" & PA & "%') AND (停用 = 0) AND (統制科目 = 0) AND (第一階 LIKE '流動%') ORDER BY 編號" : CmdSet_For_dr()
175
+    End Sub
176
+    Friend Sub SQL_倉儲入庫驗收確認()
177
+        ConnOpen() : SQL1 = "UPDATE 倉儲明細表 SET 入庫日期 = N'" & DTP & "', 倉儲作業 = N'" & DTP & "', 倉名編號 = '" & PA1 & "' WHERE (資料流水號 LIKE N'" & PA2 & "')" : CmdSet_For_dr()
178
+    End Sub
179
+    Friend Sub SQL_採購單申請_倉儲明細表修改_入庫()
180
+        ConnOpen() : SQL1 = "UPDATE 倉儲明細表 SET  金額  = N'" & NU1 & "', 入庫 = N'" & NU2 & "' , 備註 = N'" & PA1 & "', 交期 = N'" & PA2 & "' WHERE (資料流水號 LIKE '" & PA3 & "')" : CmdSet_For_dr()
181
+    End Sub
182
+    Friend Sub SQL_出貨單申請_零售客戶記錄表刪除()
183
+        ConnOpen() : SQL1 = "DELETE FROM 零售客戶記錄表 WHERE (出貨單號 LIKE N'" & 出貨單申請.TextBox9.Text & "')" : CmdSet_For_dr()
184
+    End Sub
185
+    Friend Sub SQL_出貨單申請_倉儲明細表修改_出庫()
186
+        ConnOpen() : SQL1 = "UPDATE 倉儲明細表 SET  金額  = N'" & NU1 & "', 出庫 = N'" & NU2 & "', 備註 = N'" & PA1 & "', 交期 = N'" & PA2 & "' WHERE (資料流水號 LIKE '" & PA3 & "')" : CmdSet_For_dr()
187
+    End Sub
188
+    Friend Sub SQL_營運成本控制表刪除()
189
+        ConnOpen() : SQL1 = "DELETE FROM 營運成本控制表 WHERE (支付單號 LIKE '" & PA1 & "')" : CmdSet_For_dr()
190
+    End Sub
191
+    Friend Sub SQL_營運成本明細表刪除()
192
+        ConnOpen() : SQL1 = "DELETE FROM 營運成本明細表 WHERE (流水號 LIKE '" & PA1 & "')" : CmdSet_For_dr()
193
+    End Sub
194
+    Friend Sub SQL_營運成本明細表刪除單筆()
195
+        ConnOpen() : SQL1 = "DELETE FROM 營運成本明細表 WHERE (流水號 LIKE '" & PA1 & "' AND 項次 LIKE '" & PA2 & "')" : CmdSet_For_dr()
196
+    End Sub
197
+    Friend Sub SQL_營運成本明細表項次修改()
198
+        ConnOpen() : SQL1 = "UPDATE 營運成本明細表 SET 項次 = N'" & PA1 & "' WHERE (流水號 LIKE '" & PA2 & "' AND 項次 LIKE '" & PA3 & "')" : CmdSet_For_dr()
199
+    End Sub
200
+
146 201
 
147 202
 
148 203
     '---------------------LoginForm1-----------------------------------------------------------------------------------------------------------------
@@ -639,9 +694,6 @@ Module SQL_Module
639 694
                 ORDER BY   倉儲明細表.單據編號"
640 695
         CmdSet_For_DGV()
641 696
     End Sub
642
-    Friend Sub SQL_倉儲入庫驗收確認()
643
-        ConnOpen() : SQL1 = "UPDATE 倉儲明細表 SET 入庫日期 = N'" & DTP & "', 倉儲作業 = N'" & DTP & "', 倉名編號 = '" & PA1 & "' WHERE (資料流水號 LIKE N'" & PA2 & "')" : CmdSet_For_dr()
644
-    End Sub
645 697
     '---------------------倉儲分區控制表-----------------------------------------------------------------------------------------------------------------
646 698
     Friend Sub SQL_倉儲分區控制表清單()
647 699
         ConnOpen() : SQL1 = "SELECT 倉級, 倉名編號, 倉名 FROM 倉儲分區控制表 ORDER BY 倉級, 倉名編號" : CmdSet_For_DGV()
@@ -836,22 +888,22 @@ Module SQL_Module
836 888
         SQL1 = "SELECT      會計科目.層級, 會計科目.第一階, 會計科目.第二階, 會計科目.第一階 AS 主項, 會計科目.第二階 AS 子項, 會計科目.會計科目 AS 子細項, QQWW.主項金額, WWEE.子項金額, 
837 889
                             EERR.細項金額, 會計科目.抵銷科目 AS 抵銷, QQWW.主項金額 AS 主項彙總, WWEE.子項金額 AS 子項彙總, EERR.細項金額 AS 細項彙總
838 890
                 FROM        會計科目 FULL OUTER JOIN
839
-                               (SELECT 營運成本明細表_3.會計科目 AS 細項, SUM(營運成本明細表_3.零用金) + SUM(營運成本明細表_3.支票數) + SUM(營運成本明細表_3.收款) - 
840
-                                       SUM(營運成本明細表_3.金額) AS 細項金額
891
+                               (SELECT 營運成本明細表_3.會計科目 AS 細項, SUM(營運成本明細表_3.支票數) + SUM(營運成本明細表_3.收款) - 
892
+                                       SUM(營運成本明細表_3.金額) - SUM(營運成本明細表_3.零用金) AS 細項金額
841 893
                                 FROM   營運成本明細表 AS 營運成本明細表_3 INNER JOIN 營運成本控制表 AS 營運成本控制表_3 ON 營運成本明細表_3.流水號 = 營運成本控制表_3.支付單號
842 894
                                 WHERE (營運成本控制表_3.審核日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "%') AND 
843 895
                                       (營運成本控制表_3.公司編號 LIKE '%" & 公司編號 & "%')
844 896
                                 GROUP BY    營運成本明細表_3.會計科目) AS EERR ON 會計科目.編號 = EERR.細項 
845 897
                             FULL OUTER JOIN
846
-                               (SELECT LEFT(營運成本明細表_2.會計科目, 4) AS 主碼, SUM(營運成本明細表_2.零用金) + SUM(營運成本明細表_2.支票數) + SUM(營運成本明細表_2.收款) - 
847
-                                       SUM(營運成本明細表_2.金額) AS 主項金額
898
+                               (SELECT LEFT(營運成本明細表_2.會計科目, 4) AS 主碼, SUM(營運成本明細表_2.支票數) + SUM(營運成本明細表_2.收款) - 
899
+                                       SUM(營運成本明細表_2.金額) - SUM(營運成本明細表_2.零用金) AS 主項金額
848 900
                                 FROM   營運成本明細表 AS 營運成本明細表_2 INNER JOIN 營運成本控制表 AS 營運成本控制表_2 ON 營運成本明細表_2.流水號 = 營運成本控制表_2.支付單號
849 901
                                 WHERE (營運成本控制表_2.審核日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "%') AND 
850 902
                                       (營運成本控制表_2.公司編號 LIKE '%" & 公司編號 & "%')
851 903
                                 GROUP BY    LEFT(營運成本明細表_2.會計科目, 4)) AS QQWW ON LEFT(會計科目.編號, 4) = QQWW.主碼 
852 904
                             FULL OUTER JOIN
853
-                               (SELECT LEFT(營運成本明細表_1.會計科目, 7) AS 子碼, SUM(營運成本明細表_1.零用金) + SUM(營運成本明細表_1.支票數) + SUM(營運成本明細表_1.收款) - 
854
-                                       SUM(營運成本明細表_1.金額) AS 子項金額
905
+                               (SELECT LEFT(營運成本明細表_1.會計科目, 7) AS 子碼, SUM(營運成本明細表_1.支票數) + SUM(營運成本明細表_1.收款) - 
906
+                                       SUM(營運成本明細表_1.金額) + SUM(營運成本明細表_1.零用金) AS 子項金額
855 907
                                 FROM   營運成本明細表 AS 營運成本明細表_1 INNER JOIN 營運成本控制表 AS 營運成本控制表_1 ON 營運成本明細表_1.流水號 = 營運成本控制表_1.支付單號
856 908
                                 WHERE (營運成本控制表_1.審核日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "%') AND 
857 909
                                       (營運成本控制表_1.公司編號 LIKE '%" & 公司編號 & "%')
@@ -865,22 +917,22 @@ Module SQL_Module
865 917
         SQL1 = "SELECT      會計科目.層級, 會計科目.第一階, 會計科目.第二階, 會計科目.第一階 AS 主項, 會計科目.第二階 AS 子項, 會計科目.會計科目 AS 子細項, QQWW.主項金額, WWEE.子項金額, EERR.細項金額, 
866 918
                             EERR.細項金額 AS [金額], 會計科目.抵銷科目 AS 抵銷, EERR.細項金額 AS [彙總]
867 919
                 FROM        會計科目 FULL OUTER JOIN
868
-                               (SELECT 營運成本明細表_3.會計科目 AS 細項, SUM(營運成本明細表_3.零用金) + SUM(營運成本明細表_3.支票數) + SUM(營運成本明細表_3.收款) - 
869
-                                       SUM(營運成本明細表_3.金額) AS 細項金額
920
+                               (SELECT 營運成本明細表_3.會計科目 AS 細項, SUM(營運成本明細表_3.支票數) + SUM(營運成本明細表_3.收款) - 
921
+                                       SUM(營運成本明細表_3.金額) - SUM(營運成本明細表_3.零用金) AS 細項金額
870 922
                                 FROM   營運成本明細表 AS 營運成本明細表_3 INNER JOIN 營運成本控制表 AS 營運成本控制表_3 ON 營運成本明細表_3.流水號 = 營運成本控制表_3.支付單號
871 923
                                 WHERE (營運成本控制表_3.審核日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "/" & PA & "/%') AND 
872 924
                                       (營運成本控制表_3.公司編號 LIKE '%" & 公司編號 & "%')
873 925
                                 GROUP BY    營運成本明細表_3.會計科目) AS EERR ON 會計科目.編號 = EERR.細項 
874 926
                             FULL OUTER JOIN
875
-                               (SELECT LEFT(營運成本明細表_2.會計科目, 4) AS 主碼, SUM(營運成本明細表_2.零用金) + SUM(營運成本明細表_2.支票數) + SUM(營運成本明細表_2.收款) - 
876
-                                       SUM(營運成本明細表_2.金額) AS 主項金額
927
+                               (SELECT LEFT(營運成本明細表_2.會計科目, 4) AS 主碼, SUM(營運成本明細表_2.支票數) + SUM(營運成本明細表_2.收款) - 
928
+                                       SUM(營運成本明細表_2.金額) - SUM(營運成本明細表_2.零用金) AS 主項金額
877 929
                                 FROM   營運成本明細表 AS 營運成本明細表_2 INNER JOIN 營運成本控制表 AS 營運成本控制表_2 ON 營運成本明細表_2.流水號 = 營運成本控制表_2.支付單號
878 930
                                 WHERE (營運成本控制表_2.審核日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "/" & PA & "/%') AND 
879 931
                                       (營運成本控制表_2.公司編號 LIKE '%" & 公司編號 & "%')
880 932
                                 GROUP BY    LEFT(營運成本明細表_2.會計科目, 4)) AS QQWW ON LEFT(會計科目.編號, 4) = QQWW.主碼 
881 933
                             FULL OUTER JOIN
882
-                               (SELECT LEFT(營運成本明細表_1.會計科目, 7) AS 子碼, SUM(營運成本明細表_1.零用金) + SUM(營運成本明細表_1.支票數) + SUM(營運成本明細表_1.收款) - 
883
-                                       SUM(營運成本明細表_1.金額) AS 子項金額
934
+                               (SELECT LEFT(營運成本明細表_1.會計科目, 7) AS 子碼, SUM(營運成本明細表_1.支票數) + SUM(營運成本明細表_1.收款) - 
935
+                                       SUM(營運成本明細表_1.金額) - SUM(營運成本明細表_1.零用金) AS 子項金額
884 936
                                 FROM   營運成本明細表 AS 營運成本明細表_1 INNER JOIN 營運成本控制表 AS 營運成本控制表_1 ON 營運成本明細表_1.流水號 = 營運成本控制表_1.支付單號
885 937
                                 WHERE (營運成本控制表_1.審核日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "/" & PA & "/%') AND 
886 938
                                       (營運成本控制表_1.公司編號 LIKE '%" & 公司編號 & "%')
@@ -906,10 +958,10 @@ Module SQL_Module
906 958
         ConnOpen()
907 959
         SQL1 = "SELECT      營運成本控制表.支付單號 AS 收支單號, 營運成本控制表.申請人, 營運成本控制表.申請日期, 營運成本控制表.審核人, 
908 960
                             營運成本控制表.審核日期, 營運成本明細表.項次, 會計科目.會計科目, 營運成本明細表.用途 AS 用途與內容, 
909
-                            營運成本明細表.零用金, 營運成本明細表.支票數 AS 支票, 營運成本明細表.收款 AS 現金, 
961
+                            營運成本明細表.零用金 AS 開票, 營運成本明細表.支票數 AS 收票, 營運成本明細表.收款 AS 現金, 
910 962
                             營運成本明細表.金額 AS 支出, 營運成本明細表.備註 AS 票期, 營運成本明細表.會計, 營運成本明細表.作帳日期, 
911
-                            營運成本明細表.出納 AS 點交, 營運成本明細表.出納日期 AS 點交日期, 營運成本明細表.備用金 AS 零用金點交, 
912
-                            營運成本明細表.支票 AS 票兌現, 營運成本明細表.現金 AS 現金點交, 營運成本明細表.公帳 AS 支出點交
963
+                            營運成本明細表.出納 AS 點交, 營運成本明細表.出納日期 AS 點交日期, 營運成本明細表.備用金 AS 開票已付, 
964
+                            營運成本明細表.支票 AS 票兌現, 營運成本明細表.現金 AS 現金點交, 營運成本明細表.公帳 AS 支出點交
913 965
                 FROM        營運成本明細表 INNER JOIN
914 966
                             會計科目 ON 營運成本明細表.會計科目 = 會計科目.編號 FULL OUTER JOIN
915 967
                             營運成本控制表 ON 營運成本明細表.流水號 = 營運成本控制表.支付單號
@@ -950,21 +1002,26 @@ Module SQL_Module
950 1002
     '---------------------營運成本收支單一覽表-----------------------------------------------------------------------------------------------------------------
951 1003
     Friend Sub SQL_營運成本收支單一覽表清單()
952 1004
         ConnOpen()
953
-        SQL1 = "SELECT 支付單號 AS 收支單號, 申請人, 申請日期, 審核人, 審核日期, 核准圖檔,  簽名編碼 FROM 營運成本控制表 
954
-                WHERE (審核人 NOT LIKE '') AND (審核人 NOT LIKE '作廢%') AND (公司編號 LIKE '%" & 公司編號 & "%') AND 
955
-                       審核日期 BETWEEN '" & Strings.Format(營運成本收支單一覽表.DateTimePicker4.Value, "yyyy/MM/dd") &
956
-                                 "' AND '" & Strings.Format(營運成本收支單一覽表.DateTimePicker3.Value, "yyyy/MM/dd") & "'
957
-                ORDER BY 審核日期 DESC"
1005
+        SQL1 = "SELECT   營運成本控制表.支付單號 AS 收支單號, 營運成本控制表.申請人, 營運成本控制表.申請日期, 營運成本控制表.審核人, 營運成本控制表.審核日期, 營運成本控制表.核准圖檔, 
1006
+                         營運成本控制表.簽名編碼
1007
+                FROM     營運成本控制表 INNER JOIN 營運成本明細表 ON 營運成本控制表.支付單號 = 營運成本明細表.流水號 
1008
+                WHERE   (營運成本明細表.狀態 LIKE '%現%' OR 營運成本明細表.狀態 IS NULL OR 營運成本明細表.狀態 LIKE '') AND (營運成本控制表.審核人 NOT LIKE '') AND 
1009
+                        (營運成本控制表.審核人 NOT LIKE '作廢%') AND (營運成本控制表.公司編號 LIKE '%" & 公司編號 & "%') AND 
1010
+                         營運成本控制表.審核日期 BETWEEN '" & Strings.Format(財務收支單一覽表.DateTimePicker4.Value, "yyyy/MM/dd") &
1011
+                                                "' AND '" & Strings.Format(財務收支單一覽表.DateTimePicker3.Value, "yyyy/MM/dd") & "'
1012
+                GROUP BY 營運成本控制表.支付單號, 營運成本控制表.申請人, 營運成本控制表.申請日期, 營運成本控制表.審核人, 營運成本控制表.審核日期, 營運成本控制表.核准圖檔, 
1013
+                         營運成本控制表.簽名編碼
1014
+                ORDER BY 營運成本控制表.審核日期 DESC"
958 1015
         CmdSet_For_DGV()
959 1016
     End Sub
960 1017
     Friend Sub SQL_營運成本收支單一覽表彙總()
961 1018
         ConnOpen()
962
-        SQL1 = "SELECT      LEFT(營運成本控制表.審核日期, 7) AS 日期, 會計科目.第一階 AS 主項, 會計科目.第二階 AS 子項, 會計科目.會計科目 AS 子細項, SUM(營運成本明細表.零用金) AS 零用金, 
963
-                            SUM(營運成本明細表.支票數) AS 票, SUM(營運成本明細表.收款) AS 現金, SUM(營運成本明細表.金額) AS 支出
1019
+        SQL1 = "SELECT      LEFT(營運成本控制表.審核日期, 7) AS 日期, 會計科目.第一階 AS 主項, 會計科目.第二階 AS 子項, 會計科目.會計科目 AS 子細項, SUM(營運成本明細表.零用金) AS 開票, 
1020
+                            SUM(營運成本明細表.支票數) AS 票, SUM(營運成本明細表.收款) AS 現金, SUM(營運成本明細表.金額) AS 支出
964 1021
                 FROM        營運成本控制表 RIGHT OUTER JOIN 營運成本明細表 ON 營運成本控制表.支付單號 = 營運成本明細表.流水號 RIGHT OUTER JOIN 會計科目 ON 營運成本明細表.會計科目 = 會計科目.編號
965
-                WHERE      (營運成本控制表.公司編號 LIKE '%" & 公司編號 & "%') AND 
966
-                           (營運成本控制表.審核日期 BETWEEN '" & Strings.Format(營運成本收支單一覽表.DateTimePicker4.Value, "yyyy/MM/dd") & "' 
967
-                                                        AND '" & Strings.Format(營運成本收支單一覽表.DateTimePicker3.Value, "yyyy/MM/dd") & "')
1022
+                WHERE      (營運成本明細表.狀態 LIKE '%現%' OR 營運成本明細表.狀態 IS NULL OR 營運成本明細表.狀態 LIKE '') AND (營運成本控制表.公司編號 LIKE '%" & 公司編號 & "%') AND 
1023
+                           (營運成本控制表.審核日期 BETWEEN '" & Strings.Format(財務收支單一覽表.DateTimePicker4.Value, "yyyy/MM/dd") & "' 
1024
+                                                        AND '" & Strings.Format(財務收支單一覽表.DateTimePicker3.Value, "yyyy/MM/dd") & "')
968 1025
                 GROUP BY    會計科目.第一階, 會計科目.第二階, 會計科目.會計科目, LEFT(會計科目.編號, 7), LEFT(營運成本控制表.審核日期, 7)
969 1026
                 ORDER BY    LEFT(營運成本控制表.審核日期, 7), LEFT(會計科目.編號, 7)"
970 1027
         CmdSet_For_DGV()
@@ -972,91 +1029,73 @@ Module SQL_Module
972 1029
     Friend Sub SQL_營運成本收支單一覽表費用清單()
973 1030
         ConnOpen()
974 1031
         SQL1 = "SELECT      營運成本明細表.流水號, 營運成本明細表.項次, 會計科目.會計科目, 營運成本明細表.用途, 
975
-                            營運成本明細表.零用金, 營運成本明細表.支票數 AS 支票, 營運成本明細表.收款 AS 現金, 
1032
+                            營運成本明細表.零用金 AS 開票, 營運成本明細表.支票數 AS 收票, 營運成本明細表.收款 AS 現金, 
976 1033
                             營運成本明細表.金額 AS 支出, 營運成本明細表.備註 AS 票期
977 1034
                 FROM        營運成本明細表 INNER JOIN
978 1035
                             會計科目 ON 營運成本明細表.會計科目 = 會計科目.編號
979
-                WHERE      (營運成本明細表.流水號 LIKE '" & 營運成本收支單一覽表.TextBox1.Text & "')
1036
+                WHERE      (營運成本明細表.狀態 LIKE '%現%' OR 營運成本明細表.狀態 IS NULL OR 營運成本明細表.狀態 LIKE '') AND (營運成本明細表.流水號 LIKE '" & 財務收支單一覽表.TextBox1.Text & "')
980 1037
                 ORDER BY    營運成本明細表.項次"
981 1038
         CmdSet_For_DGV()
982 1039
     End Sub
983
-    '---------------------營運成本收支單申請-----------------------------------------------------------------------------------------------------------------
1040
+    '---------------------現金收支單申請-----------------------------------------------------------------------------------------------------------------
984 1041
     Friend Sub SQL_營運成本收支單申請清單()
985 1042
         ConnOpen()
986
-        If 營運成本收支單申請.RadioButton1.Checked = True And 營運成本收支單申請.RadioButton2.Checked = False And 營運成本收支單申請.RadioButton3.Checked = False Then
987
-            KKKJJ = "WHERE (審核人 LIKE '') AND (公司編號 LIKE '%" & 公司編號 & "%')"
988
-        ElseIf 營運成本收支單申請.RadioButton1.Checked = False And 營運成本收支單申請.RadioButton2.Checked = True And 營運成本收支單申請.RadioButton3.Checked = False Then
989
-            KKKJJ = "WHERE (審核人 LIKE '作廢%') AND (公司編號 LIKE '%" & 公司編號 & "%')"
990
-        ElseIf 營運成本收支單申請.RadioButton1.Checked = False And 營運成本收支單申請.RadioButton2.Checked = False And 營運成本收支單申請.RadioButton3.Checked = True Then
991
-            KKKJJ = "WHERE (審核人 NOT LIKE '作廢%') AND (審核人 NOT LIKE '') AND (公司編號 LIKE '%" & 公司編號 & "%')"
1043
+        If 現金收支單申請.RadioButton1.Checked = True And 現金收支單申請.RadioButton2.Checked = False And 現金收支單申請.RadioButton3.Checked = False Then
1044
+            KKKJJ = "WHERE (營運成本明細表.狀態 LIKE '%現%' OR 營運成本明細表.狀態 IS NULL OR 營運成本明細表.狀態 LIKE '') AND (營運成本控制表.審核人 LIKE '') AND 
1045
+                           (營運成本控制表.公司編號 LIKE '%" & 公司編號 & "%')"
1046
+        ElseIf 現金收支單申請.RadioButton1.Checked = False And 現金收支單申請.RadioButton2.Checked = True And 現金收支單申請.RadioButton3.Checked = False Then
1047
+            KKKJJ = "WHERE (營運成本明細表.狀態 LIKE '%現%' OR 營運成本明細表.狀態 IS NULL OR 營運成本明細表.狀態 LIKE '') AND (營運成本控制表.審核人 LIKE '作廢%') AND 
1048
+                           (營運成本控制表.公司編號 LIKE '%" & 公司編號 & "%')"
1049
+        ElseIf 現金收支單申請.RadioButton1.Checked = False And 現金收支單申請.RadioButton2.Checked = False And 現金收支單申請.RadioButton3.Checked = True Then
1050
+            KKKJJ = "WHERE (營運成本明細表.狀態 LIKE '%現%' OR 營運成本明細表.狀態 IS NULL OR 營運成本明細表.狀態 LIKE '') AND (營運成本控制表.審核人 NOT LIKE '作廢%') AND 
1051
+                           (營運成本控制表.審核人 NOT LIKE '') AND (營運成本控制表.公司編號 LIKE '%" & 公司編號 & "%')"
992 1052
         End If
993
-        SQL1 = "SELECT 支付單號 AS 收支單號, 申請日期, 審核日期, 申請人 FROM 營運成本控制表 " & KKKJJ & " ORDER BY 申請日期 DESC"
1053
+        SQL1 = "SELECT    營運成本控制表.支付單號 AS 收支單號, 營運成本控制表.申請日期, 營運成本控制表.審核日期, 營運成本控制表.申請人
1054
+                FROM      營運成本控制表 INNER JOIN 營運成本明細表 ON 營運成本控制表.支付單號 = 營運成本明細表.流水號 " & KKKJJ & " 
1055
+                GROUP BY  營運成本控制表.支付單號, 營運成本控制表.申請日期, 營運成本控制表.審核日期, 營運成本控制表.申請人
1056
+                ORDER BY  營運成本控制表.申請日期 DESC"
994 1057
         CmdSet_For_DGV()
995 1058
     End Sub
996 1059
     Friend Sub SQL_營運成本收支單申請費用清單()
997 1060
         ConnOpen()
998 1061
         SQL1 = "SELECT      營運成本明細表.流水號, 營運成本明細表.項次, 會計科目.會計科目, 營運成本明細表.用途, 
999
-                            營運成本明細表.零用金, 營運成本明細表.支票數 AS 支票, 營運成本明細表.收款 AS 現金, 
1000
-                            營運成本明細表.金額 AS 支出, 營運成本明細表.備註 AS 票期, 營運成本明細表.會計科目 AS 科目編號
1062
+                            營運成本明細表.零用金 AS 開票, 營運成本明細表.支票數 AS 收票, 營運成本明細表.收款 AS 現金, 
1063
+                            營運成本明細表.金額 AS 支出, 營運成本明細表.備註, 營運成本明細表.會計科目 AS 科目編號, 
1064
+                            營運成本明細表.狀態
1001 1065
                 FROM        營運成本明細表 INNER JOIN
1002 1066
                             會計科目 ON 營運成本明細表.會計科目 = 會計科目.編號
1003
-                WHERE      (營運成本明細表.流水號 LIKE '" & 營運成本收支單申請.TextBox1.Text & "')
1067
+                WHERE      (狀態 LIKE '%現%'  OR 營運成本明細表.狀態 IS NULL OR 營運成本明細表.狀態 LIKE '') AND (營運成本明細表.流水號 LIKE '" & 現金收支單申請.TextBox1.Text & "')
1004 1068
                 ORDER BY    營運成本明細表.項次"
1005 1069
         CmdSet_For_DGV()
1006 1070
     End Sub
1007
-    Friend Sub SQL_會計科目_第一階()
1008
-        ConnOpen() : SQL1 = "SELECT 第一階, LEFT(編號, 4) AS 編號 FROM 會計科目  WHERE (停用 = 0) GROUP BY 第一階, LEFT(編號, 4) ORDER BY 編號" : CmdSet_For_dr()
1009
-    End Sub
1010
-    Friend Sub SQL_會計科目_第二階()
1011
-        ConnOpen()
1012
-        SQL1 = "SELECT LEFT(編號, 7) AS 編號, 第二階, 層級 FROM  會計科目 WHERE (LEFT(編號, 4) LIKE N'" & PA & "') AND (層級 NOT LIKE '3') AND (停用 = 0)
1013
-                GROUP BY   LEFT(編號, 7), 第二階, 層級 ORDER BY   編號"
1014
-        CmdSet_For_dr()
1015
-    End Sub
1016
-    Friend Sub SQL_會計科目_第三階()
1017
-        ConnOpen() : SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 WHERE (LEFT(編號, 7) LIKE N'" & PA & "') AND (停用 = 0) AND (統制科目 = 0) ORDER BY 編號" : CmdSet_For_dr()
1018
-    End Sub
1019
-    Friend Sub SQL_會計科目_關鍵字()
1020
-        ConnOpen() : SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 WHERE (會計科目 LIKE N'%" & PA & "%') AND (停用 = 0) AND (統制科目 = 0) ORDER BY 編號" : CmdSet_For_dr()
1021
-    End Sub
1022 1071
     Friend Sub SQL_營運成本收支單申請修改()
1023 1072
         ConnOpen()
1024 1073
         SQL1 = "UPDATE 營運成本明細表 SET  用途 = N'" & PA1 & "', 金額 = N'" & NU1 & "', 備註 = N'" & PA2 & "' , 會計科目 = N'" & PA3 &
1025
-                                       "', 收款 = N'" & NU2 & "', 零用金 = N'" & NU3 & "', 支票數 = N'" & NU4 & "'
1074
+                                       "', 收款 = N'" & NU2 & "', 零用金 = N'" & NU3 & "', 支票數 = N'" & NU4 & "', 狀態 = N'" & PA6 & "', 登錄人 = N'" & PA7 & "'
1026 1075
                 WHERE (流水號 LIKE '" & PA4 & "' AND 項次 LIKE '" & PA5 & "')"
1027 1076
         CmdSet_For_dr()
1028 1077
     End Sub
1029
-    Friend Sub SQL_營運成本控制表刪除()
1030
-        ConnOpen() : SQL1 = "DELETE FROM 營運成本控制表 WHERE (支付單號 LIKE '" & 營運成本收支單申請.TextBox1.Text & "')" : CmdSet_For_dr()
1031
-    End Sub
1032
-    Friend Sub SQL_營運成本明細表刪除()
1033
-        ConnOpen() : SQL1 = "DELETE FROM 營運成本明細表 WHERE (流水號 LIKE '" & 營運成本收支單申請.TextBox1.Text & "')" : CmdSet_For_dr()
1034
-    End Sub
1035
-    Friend Sub SQL_營運成本明細表刪除單筆()
1036
-        ConnOpen() : SQL1 = "DELETE FROM 營運成本明細表 WHERE (流水號 LIKE '" & 營運成本收支單申請.TextBox1.Text & "' AND 項次 LIKE '" & 營運成本收支單申請.TextBox4.Text & "')" : CmdSet_For_dr()
1037
-    End Sub
1038
-    Friend Sub SQL_營運成本明細表項次修改()
1039
-        ConnOpen() : SQL1 = "UPDATE 營運成本明細表 SET 項次 = N'" & PA1 & "' WHERE (流水號 LIKE '" & PA2 & "' AND 項次 LIKE '" & PA3 & "')" : CmdSet_For_dr()
1040
-    End Sub
1041 1078
     '---------------------營運成本收支單審核-----------------------------------------------------------------------------------------------------------------
1042 1079
     Friend Sub SQL_營運成本收支單審核清單()
1043 1080
         ConnOpen()
1044
-        If 營運成本收支單審核.RadioButton1.Checked = True And 營運成本收支單審核.RadioButton2.Checked = False Then
1045
-            KKKJJ = "WHERE (審核人 LIKE '')  AND (公司編號 LIKE '%" & 公司編號 & "%')"
1046
-        ElseIf 營運成本收支單審核.RadioButton1.Checked = False And 營運成本收支單審核.RadioButton2.Checked = True Then
1047
-            KKKJJ = "WHERE (審核人 LIKE '作廢%')  AND (公司編號 LIKE '%" & 公司編號 & "%')"
1081
+        If 財務收支單審核.RadioButton1.Checked = True And 財務收支單審核.RadioButton2.Checked = False Then
1082
+            KKKJJ = "WHERE (營運成本明細表.狀態 LIKE '%現%') AND (營運成本控制表.審核人 LIKE '')  AND (營運成本控制表.公司編號 LIKE '%" & 公司編號 & "%')"
1083
+        ElseIf 財務收支單審核.RadioButton1.Checked = False And 財務收支單審核.RadioButton2.Checked = True Then
1084
+            KKKJJ = "WHERE (營運成本明細表.狀態 LIKE '%現%') AND (營運成本控制表.審核人 LIKE '作廢%')  AND (營運成本控制表.公司編號 LIKE '%" & 公司編號 & "%')"
1048 1085
         End If
1049
-        SQL1 = "SELECT 支付單號 AS 收支單號, 申請日期, 審核日期, 申請人 FROM 營運成本控制表 " & KKKJJ & " ORDER BY 支付單號 DESC"
1086
+        SQL1 = "SELECT     營運成本控制表.支付單號 AS 收支單號, 營運成本控制表.申請日期, 營運成本控制表.審核日期, 營運成本控制表.申請人
1087
+                FROM       營運成本控制表 INNER JOIN 營運成本明細表 ON 營運成本控制表.支付單號 = 營運成本明細表.流水號 " & KKKJJ & " 
1088
+                GROUP BY   營運成本控制表.支付單號, 營運成本控制表.申請日期, 營運成本控制表.審核日期, 營運成本控制表.申請人
1089
+                ORDER BY   收支單號 DESC"
1050 1090
         CmdSet_For_DGV()
1051 1091
     End Sub
1052 1092
     Friend Sub SQL_營運成本收支單審核費用清單()
1053 1093
         ConnOpen()
1054
-        SQL1 = "SELECT      營運成本明細表.流水號, 營運成本明細表.項次, 會計科目.會計科目, 營運成本明細表.用途, 
1055
-                            營運成本明細表.零用金, 營運成本明細表.支票數 AS 支票, 營運成本明細表.收款 AS 現金, 
1056
-                            營運成本明細表.金額 AS 支出, 營運成本明細表.備註 AS 票期
1057
-                FROM        營運成本明細表 INNER JOIN
1058
-                            會計科目 ON 營運成本明細表.會計科目 = 會計科目.編號
1059
-                WHERE      (營運成本明細表.流水號 LIKE '" & 營運成本收支單審核.TextBox1.Text & "')
1094
+        SQL1 = "SELECT      營運成本明細表.流水號, 營運成本明細表.項次, QQ.會計科目, 營運成本明細表.用途, 營運成本明細表.支票數 AS 收票, 營運成本明細表.零用金 AS 開票, 營運成本明細表.收款 AS 現金, 
1095
+                            營運成本明細表.金額 AS 支出, 營運成本明細表.備註, 營運成本明細表.狀態, 營運成本明細表.倉儲單號, 營運成本明細表.支票號碼, 營運成本明細表.到期日, 營運成本明細表.開票人, 
1096
+                            營運成本明細表.登錄人
1097
+                FROM        營運成本明細表 LEFT OUTER JOIN 會計科目 AS QQ ON 營運成本明細表.會計科目 = QQ.編號
1098
+                WHERE      (營運成本明細表.狀態 LIKE '%現%') AND (營運成本明細表.流水號 LIKE '" & 財務收支單審核.TextBox1.Text & "')
1060 1099
                 ORDER BY    營運成本明細表.項次"
1061 1100
         CmdSet_For_DGV()
1062 1101
     End Sub
@@ -1064,21 +1103,21 @@ Module SQL_Module
1064 1103
         ConnOpen() : SQL1 = "SELECT 圖片流水號 AS 圖檔編碼, 簽名檔人名 FROM MJ主管簽名檔管理 ORDER BY 圖片流水號 DESC" : CmdSet_For_DGV()
1065 1104
     End Sub
1066 1105
     Friend Sub SQL_營運成本收支單審核_簽名編碼()
1067
-        ConnOpen() : SQL1 = "SELECT 簽名編碼 FROM 營運成本控制表 WHERE 簽名編碼 LIKE '" & 營運成本收支單審核.TextBox13.Text & "'" : CmdSet_For_dr()
1106
+        ConnOpen() : SQL1 = "SELECT 簽名編碼 FROM 營運成本控制表 WHERE 簽名編碼 LIKE '" & 財務收支單審核.TextBox13.Text & "'" : CmdSet_For_dr()
1068 1107
     End Sub
1069 1108
     Friend Sub SQL_營運成本收支單審核_控制表修改()
1070 1109
         ConnOpen()
1071
-        SQL1 = "UPDATE 營運成本控制表 SET 審核人 = N'" & gUserName & "', 審核日期 = N'" & DTP & "', 核准圖檔 = N'" & 營運成本收支單審核.TextBox14.Text &
1072
-                                    "', 簽名編碼 = N'" & 營運成本收支單審核.TextBox13.Text & "', 出納 = '" & gUserName & "', 出納日期 = N'" & DTP & "' 
1073
-                WHERE (支付單號 = N'" & 營運成本收支單審核.TextBox1.Text & "')"
1110
+        SQL1 = "UPDATE 營運成本控制表 SET 審核人 = N'" & gUserName & "', 審核日期 = N'" & DTP & "', 核准圖檔 = N'" & 財務收支單審核.TextBox14.Text &
1111
+                                    "', 簽名編碼 = N'" & 財務收支單審核.TextBox13.Text & "', 出納 = '" & gUserName & "', 出納日期 = N'" & DTP & "' 
1112
+                WHERE (支付單號 = N'" & 財務收支單審核.TextBox1.Text & "')"
1074 1113
         CmdSet_For_dr()
1075 1114
     End Sub
1076 1115
     Friend Sub SQL_營運成本收支單審核_明細表修改()
1077
-        ConnOpen() : SQL1 = "UPDATE 營運成本明細表 SET 出納 = '1', 出納日期 = N'" & DTP & "' WHERE (流水號 LIKE '" & 營運成本收支單審核.TextBox1.Text & "')" : CmdSet_For_dr()
1078
-    End Sub
1079
-    Friend Sub SQL_營運成本收支單審核_明細表_備用金確認()
1080
-        ConnOpen() : SQL1 = "UPDATE 營運成本明細表 SET  備用金 = N'1' WHERE (流水號 LIKE '" & PA1 & "' AND 項次 LIKE '" & PA2 & "')" : CmdSet_For_dr()
1116
+        ConnOpen() : SQL1 = "UPDATE 營運成本明細表 SET 出納 = '1', 出納日期 = N'" & DTP & "' WHERE (流水號 LIKE '" & 財務收支單審核.TextBox1.Text & "')" : CmdSet_For_dr()
1081 1117
     End Sub
1118
+    'Friend Sub SQL_營運成本收支單審核_明細表_備用金確認()
1119
+    '    ConnOpen() : SQL1 = "UPDATE 營運成本明細表 SET  備用金 = N'1' WHERE (流水號 LIKE '" & PA1 & "' AND 項次 LIKE '" & PA2 & "')" : CmdSet_For_dr()
1120
+    'End Sub
1082 1121
     Friend Sub SQL_營運成本收支單審核_明細表_現金確認()
1083 1122
         ConnOpen() : SQL1 = "UPDATE 營運成本明細表 SET  現金 = N'1' WHERE (流水號 LIKE '" & PA1 & "' AND 項次 LIKE '" & PA2 & "')" : CmdSet_For_dr()
1084 1123
     End Sub
@@ -1087,7 +1126,7 @@ Module SQL_Module
1087 1126
     End Sub
1088 1127
     Friend Sub SQL_營運成本收支單審核_控制表作廢()
1089 1128
         ConnOpen()
1090
-        SQL1 = "UPDATE 營運成本控制表 SET 審核人 = N'作廢-" & gUserName & "', 審核日期 = N'" & DTP & "', 備註 = N'" & PA & "' WHERE (支付單號 = N'" & 營運成本收支單審核.TextBox1.Text & "')"
1129
+        SQL1 = "UPDATE 營運成本控制表 SET 審核人 = N'作廢-" & gUserName & "', 審核日期 = N'" & DTP & "', 備註 = N'" & PA & "' WHERE (支付單號 = N'" & 財務收支單審核.TextBox1.Text & "')"
1091 1130
         CmdSet_For_dr()
1092 1131
     End Sub
1093 1132
     '---------------------營運狀態彙總_檢視表-----------------------------------------------------------------------------------------------------------------
@@ -1312,9 +1351,6 @@ Module SQL_Module
1312 1351
                 ORDER BY    名稱"
1313 1352
         CmdSet_For_dr()
1314 1353
     End Sub
1315
-    Friend Sub SQL_採購單申請_倉儲明細表修改_入庫()
1316
-        ConnOpen() : SQL1 = "UPDATE 倉儲明細表 SET  金額  = N'" & NU1 & "', 入庫 = N'" & NU2 & "' , 備註 = N'" & PA1 & "', 交期 = N'" & PA2 & "' WHERE (資料流水號 LIKE '" & PA3 & "')" : CmdSet_For_dr()
1317
-    End Sub
1318 1354
     Friend Sub SQL_採購單申請_倉儲明細表匯率修改()
1319 1355
         ConnOpen() : SQL1 = "UPDATE 倉儲明細表 SET 匯率 = N'" & NU1 & "' WHERE (資料流水號 LIKE '" & PA1 & "')" : CmdSet_For_dr()
1320 1356
     End Sub
@@ -1389,9 +1425,6 @@ Module SQL_Module
1389 1425
                      "',N'" & 出貨單申請.TextBox9.Text & "',N'" & 公司編號 & "')"
1390 1426
         CmdSet_For_dr()
1391 1427
     End Sub
1392
-    Friend Sub SQL_出貨單申請_零售客戶記錄表刪除()
1393
-        ConnOpen() : SQL1 = "DELETE FROM 零售客戶記錄表 WHERE (出貨單號 LIKE N'" & 出貨單申請.TextBox9.Text & "')" : CmdSet_For_dr()
1394
-    End Sub
1395 1428
     Friend Sub SQL_出貨單申請_客戶資料_零售一()
1396 1429
         ConnOpen()
1397 1430
         SQL1 = "SELECT  MJ付款方式.付款方式 FROM 客戶資料表 INNER JOIN MJ付款方式 ON 客戶資料表.付款方式 = MJ付款方式.編號 WHERE (客戶資料表.編號 LIKE N'" & 出貨單申請.ComboBox3.Text & "')"
@@ -1409,9 +1442,6 @@ Module SQL_Module
1409 1442
                     WHERE  (客戶資料表.編號 LIKE N'" & 出貨單申請.ComboBox3.Text & "')"
1410 1443
         CmdSet_For_dr()
1411 1444
     End Sub
1412
-    Friend Sub SQL_出貨單申請_倉儲明細表修改_出庫()
1413
-        ConnOpen() : SQL1 = "UPDATE 倉儲明細表 SET  金額  = N'" & NU1 & "', 出庫 = N'" & NU2 & "', 備註 = N'" & PA1 & "', 交期 = N'" & PA2 & "' WHERE (資料流水號 LIKE '" & PA3 & "')" : CmdSet_For_dr()
1414
-    End Sub
1415 1445
     '---------------------出貨確認-----------------------------------------------------------------------------------------------------------------
1416 1446
     Friend Sub SQL_出貨確認清單()
1417 1447
         ConnOpen()
@@ -1794,11 +1824,11 @@ Module SQL_Module
1794 1824
                 ORDER BY    倉儲明細表.料號 "
1795 1825
         CmdSet_For_DGV()
1796 1826
     End Sub
1797
-    Friend Sub SQL_維修單申請_客戶資料_零售一()
1798
-        ConnOpen()
1799
-        SQL1 = "SELECT  MJ付款方式.付款方式 FROM 客戶資料表 INNER JOIN MJ付款方式 ON 客戶資料表.付款方式 = MJ付款方式.編號 WHERE (客戶資料表.編號 LIKE N'" & 維修單申請.ComboBox3.Text & "')"
1800
-        CmdSet_For_dr()
1801
-    End Sub
1827
+    'Friend Sub SQL_維修單申請_客戶資料_零售一()
1828
+    '    ConnOpen()
1829
+    '    SQL1 = "SELECT  MJ付款方式.付款方式 FROM 客戶資料表 INNER JOIN MJ付款方式 ON 客戶資料表.付款方式 = MJ付款方式.編號 WHERE (客戶資料表.編號 LIKE N'" & 維修單申請.ComboBox3.Text & "')"
1830
+    '    CmdSet_For_dr()
1831
+    'End Sub
1802 1832
     Friend Sub SQL_維修單申請_客戶資料_零售二()
1803 1833
         ConnOpen()
1804 1834
         SQL1 = "SELECT 零售流水號, 客戶名稱, 統一編號, 郵遞區號, 店面地址, 送貨地址, 手機, 電話, 傳真, 出貨單號, 公司編號 FROM 零售客戶記錄表 WHERE (出貨單號 LIKE N'" & 維修單申請.TextBox9.Text & "')"
@@ -1904,8 +1934,8 @@ Module SQL_Module
1904 1934
                  HAVING    (SUM(倉儲明細表.入庫) - SUM(倉儲明細表.出庫) > 0) " & KKKJJ & ""
1905 1935
         CmdSet_For_DGV()
1906 1936
     End Sub
1907
-    '---------------------採購退清單-----------------------------------------------------------------------------------------------------------------
1908
-    Friend Sub SQL_採購退清單_單號彙總()
1937
+    '---------------------採購退清單-----------------------------------------------------------------------------------------------------------------
1938
+    Friend Sub SQL_採購退清單_單號彙總()
1909 1939
         ConnOpen()
1910 1940
         SQL1 = "SELECT      倉儲明細表.單據編號, 倉儲明細表.採購下單, 倉儲明細表.供應商編號, 供應商資料表.簡稱, 倉儲明細表.交期
1911 1941
                 FROM        倉儲明細表 INNER JOIN
@@ -1915,17 +1945,26 @@ Module SQL_Module
1915 1945
                 ORDER BY    倉儲明細表.單據編號 DESC"
1916 1946
         CmdSet_For_DGV()
1917 1947
     End Sub
1918
-    Friend Sub SQL_採購退清單明細()
1948
+    Friend Sub SQL_採購退清單明細()
1919 1949
         SQL1 = "SELECT      倉儲明細表.資料流水號, 倉儲明細表.資料流水號 AS 項次, 倉儲明細表.料號, 物料資料庫.品名, 物料資料庫.尺寸, 物料資料庫.材質, 倉儲明細表.入庫 AS 數量, 
1920 1950
                             倉儲明細表.金額 AS 單價, 倉儲明細表.匯率, 倉儲明細表.金額 * 倉儲明細表.匯率 AS 台幣單價, 倉儲明細表.金額 * 倉儲明細表.匯率 * 倉儲明細表.入庫 AS 進貨成本_台幣, 
1921 1951
                             倉儲明細表.備註, 倉儲明細表.入庫日期, 倉儲明細表.供應商編號, 倉儲明細表.客戶編號, 倉儲明細表.售價, 倉儲明細表.公司編號, MJ選擇按鈕.選擇
1922 1952
                 FROM        倉儲明細表 LEFT OUTER JOIN
1923 1953
                             MJ選擇按鈕 ON 倉儲明細表.資料流水號 = MJ選擇按鈕.按鈕 LEFT OUTER JOIN
1924 1954
                             物料資料庫 ON 倉儲明細表.料號 = 物料資料庫.料號
1925
-                WHERE      (倉儲明細表.單據編號 LIKE N'" & 採購退清單.TextBox9.Text & "') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND (倉儲明細表.入庫 < 0)
1955
+                WHERE      (倉儲明細表.單據編號 LIKE N'" & 採購退清單.TextBox9.Text & "') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND (倉儲明細表.入庫 < 0)
1926 1956
                 ORDER BY   倉儲明細表.料號"
1927 1957
         CmdSet_For_DGV()
1928 1958
     End Sub
1959
+    Friend Sub SQL_採購退貨清單_供應商資料表讀取()
1960
+        ConnOpen()
1961
+        SQL1 = "SELECT      供應商資料表.名稱, 供應商資料表.公司電話1, 供應商資料表.公司電話2, 供應商資料表.傳真1, 供應商資料表.地址1, 供應商資料表.郵遞區號1, 供應商資料表.地址2, 供應商資料表.郵遞區號2, 
1962
+                            供應商資料表.統一編號, MJ付款方式.付款方式
1963
+                FROM        供應商資料表 INNER JOIN MJ付款方式 ON 供應商資料表.付款方式 = MJ付款方式.編號
1964
+                WHERE      (供應商資料表.編號 LIKE '%" & 採購退貨清單.ComboBox3.Text & "%') AND (供應商資料表.停用 = 0 OR 供應商資料表.停用 IS NULL)
1965
+                ORDER BY    名稱"
1966
+        CmdSet_For_dr()
1967
+    End Sub
1929 1968
     '---------------------採購退貨確認-----------------------------------------------------------------------------------------------------------------
1930 1969
     Friend Sub SQL_採購退貨確認清單()
1931 1970
         ConnOpen()
@@ -2076,11 +2115,11 @@ Module SQL_Module
2076 2115
     '---------------------應付賬款-----------------------------------------------------------------------------------------------------------------
2077 2116
     Friend Sub SQL_應付賬款清單()
2078 2117
         If 應付賬款控制表.CheckBox3.Checked = False Then
2079
-            KKKJJ = " WHERE (倉儲明細表.狀態 LIKE '採購入庫') AND (倉儲明細表.倉儲作業 NOT LIKE '') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2080
-                            (倉儲明細表.倉儲作業 BETWEEN '" & Format(應付賬款控制表.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應付賬款控制表.DateTimePicker2.Value, "yyyy/MM/dd") & "') "
2118
+            KKKJJ = " WHERE (倉儲明細表.狀態 LIKE '採購入庫') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2119
+                            (倉儲明細表.採購下單 BETWEEN '" & Format(應付賬款控制表.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應付賬款控制表.DateTimePicker2.Value, "yyyy/MM/dd") & "') "
2081 2120
         ElseIf 應付賬款控制表.CheckBox3.Checked = True Then
2082
-            KKKJJ = " WHERE (倉儲明細表.狀態 LIKE '採購入庫') AND (倉儲明細表.倉儲作業 NOT LIKE '') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2083
-                            (倉儲明細表.倉儲作業 BETWEEN '" & Format(應付賬款控制表.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應付賬款控制表.DateTimePicker2.Value, "yyyy/MM/dd") & "') AND 
2121
+            KKKJJ = " WHERE (倉儲明細表.狀態 LIKE '採購入庫') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2122
+                            (倉儲明細表.採購下單 BETWEEN '" & Format(應付賬款控制表.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應付賬款控制表.DateTimePicker2.Value, "yyyy/MM/dd") & "') AND 
2084 2123
                             (倉儲明細表.應付立帳 IS NULL OR 倉儲明細表.應付立帳 = 0)"
2085 2124
         End If
2086 2125
         ConnOpen()
@@ -2117,11 +2156,11 @@ Module SQL_Module
2117 2156
     '---------------------應收帳款控制表-----------------------------------------------------------------------------------------------------------------
2118 2157
     Friend Sub SQL_應收賬款清單()
2119 2158
         If 應收帳款控制表.CheckBox3.Checked = False Then
2120
-            KKKJJ = " WHERE (倉儲明細表.狀態 LIKE '銷售出庫') AND (倉儲明細表.倉儲作業 NOT LIKE '') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2121
-                            (倉儲明細表.倉儲作業 BETWEEN '" & Format(應收帳款控制表.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應收帳款控制表.DateTimePicker2.Value, "yyyy/MM/dd") & "') "
2159
+            KKKJJ = " WHERE (倉儲明細表.狀態 LIKE '銷售出庫') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2160
+                            (倉儲明細表.採購下單 BETWEEN '" & Format(應收帳款控制表.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應收帳款控制表.DateTimePicker2.Value, "yyyy/MM/dd") & "') "
2122 2161
         ElseIf 應收帳款控制表.CheckBox3.Checked = True Then
2123
-            KKKJJ = " WHERE (倉儲明細表.狀態 LIKE '銷售出庫') AND (倉儲明細表.倉儲作業 NOT LIKE '') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2124
-                            (倉儲明細表.倉儲作業 BETWEEN '" & Format(應收帳款控制表.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應收帳款控制表.DateTimePicker2.Value, "yyyy/MM/dd") & "') AND 
2162
+            KKKJJ = " WHERE (倉儲明細表.狀態 LIKE '銷售出庫') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2163
+                            (倉儲明細表.採購下單 BETWEEN '" & Format(應收帳款控制表.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應收帳款控制表.DateTimePicker2.Value, "yyyy/MM/dd") & "') AND 
2125 2164
                             (倉儲明細表.應收立帳 IS NULL OR 倉儲明細表.應收立帳 = 0)"
2126 2165
         End If
2127 2166
         ConnOpen()
@@ -2134,4 +2173,74 @@ Module SQL_Module
2134 2173
                 ORDER BY    倉儲明細表.單據編號, 倉儲明細表.出庫日期"
2135 2174
         CmdSet_For_DGV()
2136 2175
     End Sub
2176
+    '---------------------支票收支單申請-----------------------------------------------------------------------------------------------------------------
2177
+    Friend Sub SQL_支票收支單申請清單()
2178
+        ConnOpen()
2179
+        If 支票收支單申請.RadioButton1.Checked = True And 支票收支單申請.RadioButton2.Checked = False And 支票收支單申請.RadioButton3.Checked = False Then
2180
+            KKKJJ = "WHERE (營運成本明細表.狀態 NOT LIKE '%現%' OR 營運成本明細表.狀態 IS NULL OR 營運成本明細表.狀態 LIKE '') AND (營運成本控制表.審核人 LIKE '') AND 
2181
+                           (營運成本控制表.公司編號 LIKE '%" & 公司編號 & "%')"
2182
+        ElseIf 支票收支單申請.RadioButton1.Checked = False And 支票收支單申請.RadioButton2.Checked = True And 支票收支單申請.RadioButton3.Checked = False Then
2183
+            KKKJJ = "WHERE (營運成本明細表.狀態 NOT LIKE '%現%' OR 營運成本明細表.狀態 IS NULL OR 營運成本明細表.狀態 LIKE '') AND (營運成本控制表.審核人 LIKE '作廢%') AND 
2184
+                           (營運成本控制表.公司編號 LIKE '%" & 公司編號 & "%')"
2185
+        ElseIf 支票收支單申請.RadioButton1.Checked = False And 支票收支單申請.RadioButton2.Checked = False And 支票收支單申請.RadioButton3.Checked = True Then
2186
+            KKKJJ = "WHERE (營運成本明細表.狀態 NOT LIKE '%現%' OR 營運成本明細表.狀態 IS NULL OR 營運成本明細表.狀態 LIKE '') AND (營運成本控制表.審核人 NOT LIKE '作廢%') AND 
2187
+                           (營運成本控制表.審核人 NOT LIKE '') AND (營運成本控制表.公司編號 LIKE '%" & 公司編號 & "%')"
2188
+        End If
2189
+        SQL1 = "SELECT    營運成本控制表.支付單號 AS 收支單號, 營運成本控制表.申請日期, 營運成本控制表.審核日期, 營運成本控制表.申請人
2190
+                FROM      營運成本控制表 INNER JOIN 營運成本明細表 ON 營運成本控制表.支付單號 = 營運成本明細表.流水號 " & KKKJJ & " 
2191
+                GROUP BY  營運成本控制表.支付單號, 營運成本控制表.申請日期, 營運成本控制表.審核日期, 營運成本控制表.申請人
2192
+                ORDER BY  營運成本控制表.申請日期 DESC"
2193
+        CmdSet_For_DGV()
2194
+    End Sub
2195
+    Friend Sub SQL_支票收支單申請費用清單()
2196
+        ConnOpen()
2197
+        SQL1 = "SELECT      營運成本明細表.流水號, 營運成本明細表.項次, QQ.會計科目, 營運成本明細表.用途, 營運成本明細表.零用金 AS 開票, 營運成本明細表.支票數 AS 收票, 
2198
+                            營運成本明細表.收款 AS 現金, 營運成本明細表.金額 AS 支出, 營運成本明細表.備註, 營運成本明細表.會計科目 AS 科目編號, 營運成本明細表.狀態, 
2199
+                            營運成本明細表.倉儲單號, 營運成本明細表.支票號碼, 營運成本明細表.到期日, 營運成本明細表.預定兌現日, 營運成本明細表.開收票日, 營運成本明細表.託收已付日, 
2200
+                            營運成本明細表.兌現科目, 營運成本明細表.付款銀行, 營運成本明細表.開票人, 營運成本明細表.登錄人, 營運成本明細表.發票人帳號
2201
+                FROM        營運成本明細表 INNER JOIN 會計科目 AS QQ ON 營運成本明細表.會計科目 = QQ.編號
2202
+                WHERE      (營運成本明細表.狀態 NOT LIKE '%現%' OR 營運成本明細表.狀態 IS NULL OR 營運成本明細表.狀態 LIKE '') AND 
2203
+                           (營運成本明細表.流水號 LIKE '" & 支票收支單申請.TextBox1.Text & "')
2204
+                ORDER BY    營運成本明細表.項次"
2205
+        CmdSet_For_DGV()
2206
+    End Sub
2207
+    Friend Sub SQL_支票收支單客戶供應商查詢()
2208
+        ConnOpen()
2209
+        SQL1 = "SELECT     倉儲明細表.供應商編號, 倉儲明細表.客戶編號, 供應商資料表.簡稱 AS 供應商, 客戶資料表.簡稱 AS 客戶
2210
+                FROM       倉儲明細表 INNER JOIN 供應商資料表 ON 倉儲明細表.供應商編號 = 供應商資料表.編號 INNER JOIN
2211
+                           客戶資料表 ON 倉儲明細表.客戶編號 = 客戶資料表.編號
2212
+                WHERE     (倉儲明細表.單據編號 LIKE '" & PA & "')
2213
+                GROUP BY   倉儲明細表.供應商編號, 倉儲明細表.客戶編號, 供應商資料表.簡稱, 客戶資料表.簡稱"
2214
+        CmdSet_For_dr()
2215
+    End Sub
2216
+    Friend Sub SQL_支票收支單申請_客戶資料_零售()
2217
+        ConnOpen() : SQL1 = "SELECT 客戶名稱 FROM 零售客戶記錄表 WHERE (出貨單號 LIKE N'" & PA & "')" : CmdSet_For_dr()
2218
+    End Sub
2219
+    Friend Sub SQL_支票收支單申請_兌現科目_下拉清單一()
2220
+        ConnOpen() : SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 WHERE (編號 LIKE 'A-01-02%') AND (層級 LIKE '3')" : CmdSet_For_dr()
2221
+    End Sub
2222
+    Friend Sub SQL_支票收支單申請_兌現科目_下拉清單二()
2223
+        ConnOpen() : SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 WHERE (編號 LIKE 'E%' OR 編號 LIKE 'F%') AND (統制科目 = 0) AND (停用 = 0) ORDER BY 編號" : CmdSet_For_dr()
2224
+    End Sub
2225
+    Friend Sub SQL_支票收支單申請_付款銀行_下拉清單()
2226
+        ConnOpen() : SQL1 = "SELECT 付款銀行 FROM 營運成本明細表 GROUP BY   付款銀行" : CmdSet_For_dr()
2227
+    End Sub
2228
+    Friend Sub SQL_支票收支單申請修改()
2229
+        ConnOpen()
2230
+        SQL1 = "UPDATE 營運成本明細表 SET  用途 = N'" & PA1 & "', 金額 = N'" & NU1 & "', 備註 = N'" & PA2 & "' , 會計科目 = N'" & PA3 & "', 收款 = N'" & NU2 & "', 零用金 = N'" & NU3 &
2231
+                                     "', 支票數 = N'" & NU4 & "', 狀態 = N'" & PA6 & "', 登錄人 = N'" & PA7 & "', 發票人帳號 = N'" & PA8 & "', 兌現科目 = N'" & PA9 & "', 付款銀行 = N'" & PA10 &
2232
+                                     "', 倉儲單號 = N'" & PA11 & "', 支票號碼 = N'" & PA12 & "', 開票人 = N'" & PA13 & "', 到期日 = N'" & PA14 & "', 預定兌現日 = N'" & PA15 &
2233
+                                     "', 開收票日 = N'" & PA16 & "'
2234
+                WHERE (流水號 LIKE '" & PA4 & "' AND 項次 LIKE '" & PA5 & "')"
2235
+        CmdSet_For_dr()
2236
+    End Sub
2237
+    Friend Sub SQL_支票收支單申請複製單據新增()
2238
+        ConnOpen()
2239
+        SQL1 = "INSERT INTO 營運成本明細表 (流水號, 項次, 會計科目, 用途, 金額, 備註, 收款, 零用金, 支票數, 會計, 出納, 現金, 備用金, 公帳, 支票, 作帳日期, 出納日期, 公司編號, 狀態, 登錄人, 
2240
+                                                發票人帳號, 兌現科目, 付款銀行, 倉儲單號, 支票號碼, 開票人, 到期日, 預定兌現日, 開收票日) 
2241
+                VALUES (N'" & PA1 & "', N'" & PA2 & "', N'" & PA3 & "', N'" & PA4 & "', N'" & NU1 & "', N'" & PA5 & "', N'" & NU2 & "', N'" & NU3 & "', N'" & NU4 &
2242
+                    "', N'0', N'0', N'0', N'0', N'0', N'0', N'" & DTP & "', N'', N'" & 公司編號 & "', N'" & PA6 & "', N'" & PA7 & "', N'" & PA8 & "', N'" & PA9 &
2243
+                    "', N'" & PA10 & "', N'" & PA11 & "', N'" & PA12 & "', N'" & PA13 & "', N'" & PA14 & "', N'" & PA15 & "', N'" & PA16 & "')"
2244
+        CmdSet_For_dr()
2245
+    End Sub
2137 2246
 End Module

Двоичные данные
MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.exe Просмотреть файл


Двоичные данные
MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.pdb Просмотреть файл


Двоичные данные
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.exe Просмотреть файл


Двоичные данные
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.pdb Просмотреть файл


+ 1
- 1
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.CoreCompileInputs.cache Просмотреть файл

@@ -1 +1 @@
1
-00cd1c6306df0c5d8944e0bca02266ab61e77410
1
+d43cd04b8a7f93190e7a2002705b906efffffcd1

+ 6
- 5
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.FileListAbsolute.txt Просмотреть файл

@@ -164,10 +164,6 @@ G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.生產入庫.resour
164 164
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.生產確認.resources
165 165
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.生產控制表.resources
166 166
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.網段.resources
167
-G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.營運成本收支單_對帳表.resources
168
-G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.營運成本收支單一覽表.resources
169
-G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.營運成本收支單審核.resources
170
-G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.營運成本收支單申請.resources
171 167
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.系統執行檔版本管理.resources
172 168
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.系統編碼規則_1.resources
173 169
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.FTP資料夾管理.resources
@@ -188,7 +184,6 @@ G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MAOJI-ERP-SYS.pdb
188 184
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.維修單申請.resources
189 185
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.維修單出庫確認.resources
190 186
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.採購退貨申請.resources
191
-G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.採購退賀清單.resources
192 187
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.採購退貨確認.resources
193 188
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.銷售退貨申請.resources
194 189
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.銷售退貨清單.resources
@@ -197,3 +192,9 @@ G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.列印_產品標籤
197 192
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.應付賬款控制表.resources
198 193
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.應收帳款控制表.resources
199 194
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.系統通用變數管理.resources
195
+G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.財務收支單_對帳表.resources
196
+G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.財務收支單一覽表.resources
197
+G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.財務收支單審核.resources
198
+G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.現金收支單申請.resources
199
+G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.採購退貨清單.resources
200
+G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.支票收支單申請.resources

Двоичные данные
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.GenerateResource.cache Просмотреть файл


Двоичные данные
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbprojAssemblyReference.cache Просмотреть файл


Двоичные данные
MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.採購退賀清單.resources Просмотреть файл


Двоичные данные
MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.營運成本收支單_對帳表.resources Просмотреть файл


Двоичные данные
MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.營運成本收支單一覽表.resources Просмотреть файл


Двоичные данные
MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.營運成本收支單審核.resources Просмотреть файл


Двоичные данные
MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.營運成本收支單申請.resources Просмотреть файл


+ 10
- 8
MaoOrange-Hongji/採購系統管理/採購單申請.vb Просмотреть файл

@@ -516,16 +516,18 @@ Public Class 採購單申請
516 516
     End Sub
517 517
     Private Sub 刪除採購單中選中的物料ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 刪除採購單中選中的物料ToolStripMenuItem.Click
518 518
         PA1 = TextBox14.Text : SQL_倉儲明細表_入庫日期讀取()
519
-        If dr("入庫日期") = "" Then : conn.Close()
520
-            If TextBox14.Text = "" Then : MsgBox("沒有選擇要刪除了料號 。")
521
-            Else
522
-                Dim aa1 As MsgBoxResult = MsgBox("確定要刪除該筆資料?", MsgBoxStyle.OkCancel)
523
-                If aa1 = MsgBoxResult.Ok Then
524
-                    PA1 = TextBox14.Text : SQL_倉儲明細表刪除() : conn.Close() : TextBox14.Text = "" : Set_單據明細()
519
+        If dr.Read() Then
520
+            If dr("入庫日期") = "" Then : conn.Close()
521
+                If TextBox14.Text = "" Then : MsgBox("沒有選擇要刪除了料號 。")
522
+                Else
523
+                    Dim aa1 As MsgBoxResult = MsgBox("確定要刪除該筆資料?", MsgBoxStyle.OkCancel)
524
+                    If aa1 = MsgBoxResult.Ok Then
525
+                        PA1 = TextBox14.Text : SQL_倉儲明細表刪除() : conn.Close() : TextBox14.Text = "" : Set_單據明細()
526
+                    End If
525 527
                 End If
528
+            Else
529
+                conn.Close() : MsgBox("已入庫的資料不可刪除 。")
526 530
             End If
527
-        Else
528
-            conn.Close() : MsgBox("已入庫的資料不可刪除 。")
529 531
         End If
530 532
     End Sub
531 533
     Private Sub 新增物料到採購單ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 新增物料到採購單ToolStripMenuItem.Click

+ 28
- 28
MaoOrange-Hongji/採購系統管理/採購退賀清單.Designer.vb Просмотреть файл

@@ -1,5 +1,5 @@
1 1
 <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
-Partial Class 採購退清單
2
+Partial Class 採購退清單
3 3
     Inherits System.Windows.Forms.Form
4 4
 
5 5
     'Form 覆寫 Dispose 以清除元件清單。
@@ -23,10 +23,10 @@ Partial Class 採購退賀清單
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25 25
         Me.components = New System.ComponentModel.Container()
26
-        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
-        Dim DataGridViewCellStyle8 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
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30 30
         Me.Button3 = New System.Windows.Forms.Button()
31 31
         Me.CheckBox1 = New System.Windows.Forms.CheckBox()
32 32
         Me.DateTimePicker2 = New System.Windows.Forms.DateTimePicker()
@@ -68,9 +68,9 @@ Partial Class 採購退賀清單
68 68
         Me.重新整理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
69 69
         Me.ToolStripSeparator1 = New System.Windows.Forms.ToolStripSeparator()
70 70
         Me.列印退貨單ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
71
+        Me.列印產品標籤ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
71 72
         Me.Button1 = New System.Windows.Forms.Button()
72 73
         Me.Button2 = New System.Windows.Forms.Button()
73
-        Me.列印產品標籤ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
74 74
         CType(Me.DataGridView3, System.ComponentModel.ISupportInitialize).BeginInit()
75 75
         CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).BeginInit()
76 76
         Me.ContextMenuStrip1.SuspendLayout()
@@ -443,8 +443,8 @@ Partial Class 採購退賀清單
443 443
         '
444 444
         'DataGridView3
445 445
         '
446
-        DataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
447
-        Me.DataGridView3.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
446
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
447
+        Me.DataGridView3.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
448 448
         Me.DataGridView3.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
449 449
             Or System.Windows.Forms.AnchorStyles.Left) _
450 450
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -453,16 +453,16 @@ Partial Class 採購退賀清單
453 453
         Me.DataGridView3.Location = New System.Drawing.Point(393, 130)
454 454
         Me.DataGridView3.Name = "DataGridView3"
455 455
         Me.DataGridView3.RowHeadersWidth = 5
456
-        DataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
457
-        Me.DataGridView3.RowsDefaultCellStyle = DataGridViewCellStyle6
456
+        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
457
+        Me.DataGridView3.RowsDefaultCellStyle = DataGridViewCellStyle2
458 458
         Me.DataGridView3.RowTemplate.Height = 24
459 459
         Me.DataGridView3.Size = New System.Drawing.Size(849, 475)
460 460
         Me.DataGridView3.TabIndex = 1177
461 461
         '
462 462
         'DataGridView2
463 463
         '
464
-        DataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
465
-        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle7
464
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
465
+        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
466 466
         Me.DataGridView2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
467 467
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
468 468
         Me.DataGridView2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
@@ -470,8 +470,8 @@ Partial Class 採購退賀清單
470 470
         Me.DataGridView2.Location = New System.Drawing.Point(6, 42)
471 471
         Me.DataGridView2.Name = "DataGridView2"
472 472
         Me.DataGridView2.RowHeadersWidth = 5
473
-        DataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
474
-        Me.DataGridView2.RowsDefaultCellStyle = DataGridViewCellStyle8
473
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
474
+        Me.DataGridView2.RowsDefaultCellStyle = DataGridViewCellStyle4
475 475
         Me.DataGridView2.RowTemplate.Height = 24
476 476
         Me.DataGridView2.Size = New System.Drawing.Size(381, 563)
477 477
         Me.DataGridView2.TabIndex = 1151
@@ -480,26 +480,33 @@ Partial Class 採購退賀清單
480 480
         '
481 481
         Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.重新整理ToolStripMenuItem, Me.ToolStripSeparator1, Me.列印退貨單ToolStripMenuItem, Me.列印產品標籤ToolStripMenuItem})
482 482
         Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
483
-        Me.ContextMenuStrip1.Size = New System.Drawing.Size(181, 98)
483
+        Me.ContextMenuStrip1.Size = New System.Drawing.Size(147, 76)
484 484
         '
485 485
         '重新整理ToolStripMenuItem
486 486
         '
487 487
         Me.重新整理ToolStripMenuItem.Name = "重新整理ToolStripMenuItem"
488
-        Me.重新整理ToolStripMenuItem.Size = New System.Drawing.Size(134, 22)
488
+        Me.重新整理ToolStripMenuItem.Size = New System.Drawing.Size(146, 22)
489 489
         Me.重新整理ToolStripMenuItem.Text = "重新整理"
490 490
         '
491 491
         'ToolStripSeparator1
492 492
         '
493 493
         Me.ToolStripSeparator1.Name = "ToolStripSeparator1"
494
-        Me.ToolStripSeparator1.Size = New System.Drawing.Size(131, 6)
494
+        Me.ToolStripSeparator1.Size = New System.Drawing.Size(143, 6)
495 495
         '
496 496
         '列印退貨單ToolStripMenuItem
497 497
         '
498 498
         Me.列印退貨單ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
499 499
         Me.列印退貨單ToolStripMenuItem.Name = "列印退貨單ToolStripMenuItem"
500
-        Me.列印退貨單ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
500
+        Me.列印退貨單ToolStripMenuItem.Size = New System.Drawing.Size(146, 22)
501 501
         Me.列印退貨單ToolStripMenuItem.Text = "列印退貨單"
502 502
         '
503
+        '列印產品標籤ToolStripMenuItem
504
+        '
505
+        Me.列印產品標籤ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
506
+        Me.列印產品標籤ToolStripMenuItem.Name = "列印產品標籤ToolStripMenuItem"
507
+        Me.列印產品標籤ToolStripMenuItem.Size = New System.Drawing.Size(146, 22)
508
+        Me.列印產品標籤ToolStripMenuItem.Text = "列印產品標籤"
509
+        '
503 510
         'Button1
504 511
         '
505 512
         Me.Button1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
@@ -522,14 +529,7 @@ Partial Class 採購退賀清單
522 529
         Me.Button2.Text = "單號查詢"
523 530
         Me.Button2.UseVisualStyleBackColor = True
524 531
         '
525
-        '列印產品標籤ToolStripMenuItem
526
-        '
527
-        Me.列印產品標籤ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
528
-        Me.列印產品標籤ToolStripMenuItem.Name = "列印產品標籤ToolStripMenuItem"
529
-        Me.列印產品標籤ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
530
-        Me.列印產品標籤ToolStripMenuItem.Text = "列印產品標籤"
531
-        '
532
-        '採購退賀清單
532
+        '採購退貨清單
533 533
         '
534 534
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
535 535
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
@@ -576,8 +576,8 @@ Partial Class 採購退賀清單
576 576
         Me.Controls.Add(Me.DataGridView2)
577 577
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
578 578
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
579
-        Me.Name = "採購退清單"
580
-        Me.Text = "採購退清單"
579
+        Me.Name = "採購退清單"
580
+        Me.Text = "採購退清單"
581 581
         CType(Me.DataGridView3, System.ComponentModel.ISupportInitialize).EndInit()
582 582
         CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).EndInit()
583 583
         Me.ContextMenuStrip1.ResumeLayout(False)

+ 5
- 5
MaoOrange-Hongji/採購系統管理/採購退賀清單.vb Просмотреть файл

@@ -8,14 +8,14 @@ Imports Microsoft.Office.Interop.Excel.XlThemeFont
8 8
 Imports Microsoft.Office.Interop.Excel.XlThemeColor
9 9
 Imports Microsoft.Office.Interop.Excel.XlWindowState
10 10
 Imports Microsoft.Office.Interop.Excel
11
-Public Class 採購退清單
11
+Public Class 採購退清單
12 12
     ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet
13 13
     Dim xlApp As Application : Dim xlBook As Workbook : Dim xlSheet As Worksheet
14 14
     Dim N1 As Integer
15 15
     Private Sub Set_採購清單()
16 16
         DataGridView2.DataSource = Nothing : ds1.Clear() : DataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing : DataGridView2.ColumnHeadersHeight = 25
17 17
         DataGridView2.AllowUserToAddRows = False : DataGridView2.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText : DataGridView2.MultiSelect = True
18
-        SQL_採購退清單_單號彙總()
18
+        SQL_採購退清單_單號彙總()
19 19
         da.Fill(ds1) : DataGridView2.DataSource = ds1.Tables(0) : conn.Close()
20 20
         DataGridView2.Columns(0).FillWeight = 135 : DataGridView2.Columns(1).FillWeight = 90 : DataGridView2.Columns(2).Visible = False : DataGridView2.Columns(3).FillWeight = 100
21 21
         DataGridView2.Columns(4).FillWeight = 90
@@ -23,7 +23,7 @@ Public Class 採購退賀清單
23 23
     Private Sub Set_單據明細()
24 24
         DataGridView3.DataSource = Nothing : ds2.Clear() : DataGridView3.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing : DataGridView3.ColumnHeadersHeight = 25
25 25
         DataGridView3.AllowUserToAddRows = False : DataGridView3.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText : DataGridView3.MultiSelect = True
26
-        SQL_採購退清單明細()
26
+        SQL_採購退清單明細()
27 27
         da.Fill(ds2) : DataGridView3.DataSource = ds2.Tables(0) : conn.Close()
28 28
 
29 29
         TextBox15.Text = "0"
@@ -59,7 +59,7 @@ Public Class 採購退賀清單
59 59
         SQL_供應商資料表下拉清單()
60 60
         ComboBox2.Items.Clear() : ComboBox3.Items.Clear() : While (dr.Read()) : ComboBox2.Items.Add(dr("簡稱")) : ComboBox3.Items.Add(dr("編號")) : End While : conn.Close()
61 61
     End Sub
62
-    Private Sub 採購退清單_Load(sender As Object, e As EventArgs) Handles MyBase.Load
62
+    Private Sub 採購退清單_Load(sender As Object, e As EventArgs) Handles MyBase.Load
63 63
         Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
64 64
         ComboBox2.Enabled = False : ComboBox3.Enabled = False : TextBox2.Enabled = False : TextBox3.Enabled = False : TextBox4.Enabled = False : TextBox26.Enabled = False
65 65
         TextBox6.Enabled = False : TextBox8.Enabled = False : TextBox9.Enabled = False : TextBox10.Enabled = False : TextBox11.Enabled = False : TextBox12.Enabled = False
@@ -91,7 +91,7 @@ Public Class 採購退賀清單
91 91
         TextBox15.Text = Strings.Format(Val(TextBox15.Text), "#,#00")
92 92
     End Sub
93 93
     Private Sub 供應商資料()
94
-        SQL_採購退貨申請_供應商資料表讀取()
94
+        SQL_採購退貨清單_供應商資料表讀取()
95 95
         If (dr.Read()) Then
96 96
             TextBox2.Text = dr("名稱") : TextBox6.Text = dr("公司電話1") : TextBox3.Text = dr("公司電話2") : TextBox8.Text = dr("傳真1") : TextBox11.Text = dr("郵遞區號1")
97 97
             TextBox10.Text = dr("地址1") : TextBox13.Text = dr("郵遞區號2") : TextBox12.Text = dr("地址2") : TextBox26.Text = dr("統一編號") : TextBox4.Text = dr("付款方式")

+ 5
- 5
MaoOrange-Hongji/財務系統管理/司機佣金計算.vb Просмотреть файл

@@ -45,15 +45,15 @@ Public Class 司機佣金計算
45 45
         ComboBox2.Items.Clear() : While (dr.Read()) : ComboBox2.Items.Add(dr("司機")) : End While : conn.Close()
46 46
     End Sub
47 47
     Private Sub ComboBox1下拉表單資料載入()
48
-        SQL_會計科目_第一階()
48
+        SQL_會計科目_第一階_不含流動票務()
49 49
         ComboBox5.Items.Clear() : ComboBox1.Items.Clear() : While (dr.Read()) : ComboBox5.Items.Add(dr("第一階")) : ComboBox1.Items.Add(dr("編號")) : End While : conn.Close()
50 50
     End Sub
51 51
     Private Sub ComboBox3下拉表單資料載入()
52
-        PA = ComboBox1.Text : SQL_會計科目_第二階()
52
+        PA = ComboBox1.Text : SQL_會計科目_第二階_不含流動票務()
53 53
         ComboBox3.Items.Clear() : ComboBox4.Items.Clear() : While (dr.Read()) : ComboBox3.Items.Add(dr("第二階")) : ComboBox4.Items.Add(dr("編號")) : End While : conn.Close() : PA = ""
54 54
     End Sub
55 55
     Private Sub ComboBox6下拉表單資料載入()
56
-        PA = ComboBox4.Text : SQL_會計科目_第三階()
56
+        PA = ComboBox4.Text : SQL_會計科目_第三階_不含流動票務()
57 57
         ComboBox7.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox7.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
58 58
         If ComboBox7.Items.Count <> 0 Then : ComboBox7.SelectedIndex = 0 : End If
59 59
     End Sub
@@ -115,7 +115,7 @@ Public Class 司機佣金計算
115 115
         ComboBox7.SelectedIndex = ComboBox6.SelectedIndex
116 116
     End Sub
117 117
     Private Sub TextBox9_TextChanged(sender As Object, e As EventArgs) Handles TextBox9.TextChanged
118
-        PA = TextBox9.Text : SQL_會計科目_關鍵字()
118
+        PA = TextBox9.Text : SQL_會計科目_關鍵字_不含流動票務()
119 119
         ComboBox7.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox7.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
120 120
         If ComboBox7.Items.Count <> 0 Then : ComboBox7.SelectedIndex = 0 : End If : PA = ""
121 121
     End Sub
@@ -190,7 +190,7 @@ Public Class 司機佣金計算
190 190
 
191 191
                             PA1 = TextBox2.Text : PA2 = 新項次 : PA3 = ComboBox6.Text : PA6 = DataGridView1.Rows(i).Cells("資料流水號").Value
192 192
                             PA4 = DataGridView1.Rows(i).Cells("簡稱").Value & "-" & DataGridView1.Rows(i).Cells("品名").Value & "-" & DataGridView1.Rows(i).Cells("司機").Value & "司機佣金"
193
-                            NU1 = DataGridView1.Rows(i).Cells("佣金").Value : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0
193
+                            NU1 = DataGridView1.Rows(i).Cells("佣金").Value : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0 : PA6 = "付現" : PA7 = gUserName
194 194
                             SQL_營運成本明細表新增() : SQL_司機佣金計算表_轉立收支單修改()
195 195
                         End If
196 196
                     End If

+ 6
- 6
MaoOrange-Hongji/財務系統管理/應付賬款控制表.vb Просмотреть файл

@@ -42,15 +42,15 @@ Public Class 應付賬款控制表
42 42
         Next
43 43
     End Sub
44 44
     Private Sub ComboBox1下拉表單資料載入()
45
-        SQL_會計科目_第一階()
45
+        SQL_會計科目_第一階_只含流動票務()
46 46
         ComboBox5.Items.Clear() : ComboBox1.Items.Clear() : While (dr.Read()) : ComboBox5.Items.Add(dr("第一階")) : ComboBox1.Items.Add(dr("編號")) : End While : conn.Close()
47 47
     End Sub
48 48
     Private Sub ComboBox3下拉表單資料載入()
49
-        PA = ComboBox1.Text : SQL_會計科目_第二階()
49
+        PA = ComboBox1.Text : SQL_會計科目_第二階_只含流動票務()
50 50
         ComboBox3.Items.Clear() : ComboBox4.Items.Clear() : While (dr.Read()) : ComboBox3.Items.Add(dr("第二階")) : ComboBox4.Items.Add(dr("編號")) : End While : conn.Close() : PA = ""
51 51
     End Sub
52 52
     Private Sub ComboBox6下拉表單資料載入()
53
-        PA = ComboBox4.Text : SQL_會計科目_第三階()
53
+        PA = ComboBox4.Text : SQL_會計科目_第三階_只含流動票務()
54 54
         ComboBox7.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox7.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
55 55
         If ComboBox7.Items.Count <> 0 Then : ComboBox7.SelectedIndex = 0 : End If
56 56
     End Sub
@@ -112,7 +112,7 @@ Public Class 應付賬款控制表
112 112
         ComboBox7.SelectedIndex = ComboBox6.SelectedIndex
113 113
     End Sub
114 114
     Private Sub TextBox9_TextChanged(sender As Object, e As EventArgs) Handles TextBox9.TextChanged
115
-        PA = TextBox9.Text : SQL_會計科目_關鍵字()
115
+        PA = TextBox9.Text : SQL_會計科目_關鍵字_只含流動票務()
116 116
         ComboBox7.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox7.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
117 117
         If ComboBox7.Items.Count <> 0 Then : ComboBox7.SelectedIndex = 0 : End If : PA = ""
118 118
     End Sub
@@ -215,7 +215,7 @@ Public Class 應付賬款控制表
215 215
                     ElseIf NUM1 > 9 And NUM1 < 100 Then : 新項次 = NUM1 : End If
216 216
                     關鍵字編號 = "DV001" : SQL_通用預設值管理查詢() : If dr.Read() Then : PA3 = dr("預設值") : End If
217 217
                     PA1 = TextBox4.Text : PA2 = 新項次 : PA4 = TextBox5.Text & " - " & DateTimePicker1.Value & " 到 " & DateTimePicker2.Value & " 應付帳款"
218
-                    NU1 = NumericUpDown1.Value : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0
218
+                    NU1 = NumericUpDown1.Value : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0 : PA6 = "付現" : PA7 = gUserName
219 219
                     SQL_營運成本明細表新增()
220 220
 
221 221
                     If NumericUpDown2.Value = 0 Then : Else
@@ -225,7 +225,7 @@ Public Class 應付賬款控制表
225 225
                         ElseIf NUM1 > 9 And NUM1 < 100 Then : 新項次 = NUM1 : End If
226 226
 
227 227
                         PA1 = TextBox4.Text : PA2 = 新項次 : PA3 = ComboBox6.Text : PA4 = TextBox5.Text & " - " & DateTimePicker1.Value & " 到 " & DateTimePicker2.Value & " 貨款折讓"
228
-                        NU1 = NumericUpDown2.Value * -1 : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0
228
+                        NU1 = NumericUpDown2.Value * -1 : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0 : PA6 = "付現" : PA7 = gUserName
229 229
                         SQL_營運成本明細表新增()
230 230
                     End If
231 231
                     For i As Integer = 0 To DataGridView1.Rows.Count - 1

+ 6
- 6
MaoOrange-Hongji/財務系統管理/應收帳款控制表.vb Просмотреть файл

@@ -44,15 +44,15 @@ Public Class 應收帳款控制表
44 44
         Next
45 45
     End Sub
46 46
     Private Sub ComboBox1下拉表單資料載入()
47
-        SQL_會計科目_第一階()
47
+        SQL_會計科目_第一階_只含流動票務()
48 48
         ComboBox5.Items.Clear() : ComboBox1.Items.Clear() : While (dr.Read()) : ComboBox5.Items.Add(dr("第一階")) : ComboBox1.Items.Add(dr("編號")) : End While : conn.Close()
49 49
     End Sub
50 50
     Private Sub ComboBox3下拉表單資料載入()
51
-        PA = ComboBox1.Text : SQL_會計科目_第二階()
51
+        PA = ComboBox1.Text : SQL_會計科目_第二階_只含流動票務()
52 52
         ComboBox3.Items.Clear() : ComboBox4.Items.Clear() : While (dr.Read()) : ComboBox3.Items.Add(dr("第二階")) : ComboBox4.Items.Add(dr("編號")) : End While : conn.Close() : PA = ""
53 53
     End Sub
54 54
     Private Sub ComboBox6下拉表單資料載入()
55
-        PA = ComboBox4.Text : SQL_會計科目_第三階()
55
+        PA = ComboBox4.Text : SQL_會計科目_第三階_只含流動票務()
56 56
         ComboBox7.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox7.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
57 57
         If ComboBox7.Items.Count <> 0 Then : ComboBox7.SelectedIndex = 0 : End If
58 58
     End Sub
@@ -114,7 +114,7 @@ Public Class 應收帳款控制表
114 114
         ComboBox7.SelectedIndex = ComboBox6.SelectedIndex
115 115
     End Sub
116 116
     Private Sub TextBox9_TextChanged(sender As Object, e As EventArgs) Handles TextBox9.TextChanged
117
-        PA = TextBox9.Text : SQL_會計科目_關鍵字()
117
+        PA = TextBox9.Text : SQL_會計科目_關鍵字_只含流動票務()
118 118
         ComboBox7.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox7.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
119 119
         If ComboBox7.Items.Count <> 0 Then : ComboBox7.SelectedIndex = 0 : End If : PA = ""
120 120
     End Sub
@@ -230,7 +230,7 @@ Public Class 應收帳款控制表
230 230
                         ElseIf NUM1 > 9 And NUM1 < 100 Then : 新項次 = NUM1 : End If
231 231
                         關鍵字編號 = "DV001" : SQL_通用預設值管理查詢() : If dr.Read() Then : PA3 = dr("預設值") : End If
232 232
                         PA1 = TextBox4.Text : PA2 = 新項次 : PA4 = TextBox5.Text & " - " & DateTimePicker1.Value & " 到 " & DateTimePicker2.Value & " 應收帳款"
233
-                        NU1 = NumericUpDown1.Value : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0
233
+                        NU1 = NumericUpDown1.Value : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0 : PA6 = "收現" : PA7 = gUserName
234 234
                         SQL_營運成本明細表新增()
235 235
 
236 236
                         If NumericUpDown2.Value = 0 Then : Else
@@ -240,7 +240,7 @@ Public Class 應收帳款控制表
240 240
                             ElseIf NUM1 > 9 And NUM1 < 100 Then : 新項次 = NUM1 : End If
241 241
 
242 242
                             PA1 = TextBox4.Text : PA2 = 新項次 : PA3 = ComboBox6.Text : PA4 = TextBox5.Text & " - " & DateTimePicker1.Value & " 到 " & DateTimePicker2.Value & " 貨款折讓"
243
-                            NU1 = NumericUpDown2.Value * -1 : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0
243
+                            NU1 = NumericUpDown2.Value * -1 : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0 : PA6 = "收現" : PA7 = gUserName
244 244
                             SQL_營運成本明細表新增()
245 245
                         End If
246 246
                         For i As Integer = 0 To DataGridView1.Rows.Count - 1

+ 5
- 5
MaoOrange-Hongji/財務系統管理/業務佣金計算.vb Просмотреть файл

@@ -45,15 +45,15 @@ Public Class 業務佣金計算
45 45
         ComboBox2.Items.Clear() : While (dr.Read()) : ComboBox2.Items.Add(dr("業務")) : End While : conn.Close()
46 46
     End Sub
47 47
     Private Sub ComboBox1下拉表單資料載入()
48
-        SQL_會計科目_第一階()
48
+        SQL_會計科目_第一階_不含流動票務()
49 49
         ComboBox5.Items.Clear() : ComboBox1.Items.Clear() : While (dr.Read()) : ComboBox5.Items.Add(dr("第一階")) : ComboBox1.Items.Add(dr("編號")) : End While : conn.Close()
50 50
     End Sub
51 51
     Private Sub ComboBox3下拉表單資料載入()
52
-        PA = ComboBox1.Text : SQL_會計科目_第二階()
52
+        PA = ComboBox1.Text : SQL_會計科目_第二階_不含流動票務()
53 53
         ComboBox3.Items.Clear() : ComboBox4.Items.Clear() : While (dr.Read()) : ComboBox3.Items.Add(dr("第二階")) : ComboBox4.Items.Add(dr("編號")) : End While : conn.Close() : PA = ""
54 54
     End Sub
55 55
     Private Sub ComboBox6下拉表單資料載入()
56
-        PA = ComboBox4.Text : SQL_會計科目_第三階()
56
+        PA = ComboBox4.Text : SQL_會計科目_第三階_不含流動票務()
57 57
         ComboBox7.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox7.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
58 58
         If ComboBox7.Items.Count <> 0 Then : ComboBox7.SelectedIndex = 0 : End If
59 59
     End Sub
@@ -115,7 +115,7 @@ Public Class 業務佣金計算
115 115
         ComboBox7.SelectedIndex = ComboBox6.SelectedIndex
116 116
     End Sub
117 117
     Private Sub TextBox9_TextChanged(sender As Object, e As EventArgs) Handles TextBox9.TextChanged
118
-        PA = TextBox9.Text : SQL_會計科目_關鍵字()
118
+        PA = TextBox9.Text : SQL_會計科目_關鍵字_不含流動票務()
119 119
         ComboBox7.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox7.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
120 120
         If ComboBox7.Items.Count <> 0 Then : ComboBox7.SelectedIndex = 0 : End If : PA = ""
121 121
     End Sub
@@ -190,7 +190,7 @@ Public Class 業務佣金計算
190 190
 
191 191
                             PA1 = TextBox2.Text : PA2 = 新項次 : PA3 = ComboBox6.Text : PA6 = DataGridView1.Rows(i).Cells("資料流水號").Value
192 192
                             PA4 = DataGridView1.Rows(i).Cells("簡稱").Value & "-" & DataGridView1.Rows(i).Cells("品名").Value & "-" & DataGridView1.Rows(i).Cells("業務").Value & "業務佣金"
193
-                            NU1 = DataGridView1.Rows(i).Cells("佣金").Value : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0
193
+                            NU1 = DataGridView1.Rows(i).Cells("佣金").Value : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0 : PA6 = "付現" : PA7 = gUserName
194 194
                             SQL_營運成本明細表新增() : SQL_業務佣金計算表_轉立收支單修改()
195 195
                         End If
196 196
                     End If

+ 0
- 606
MaoOrange-Hongji/財務系統管理/營運成本收支單_對帳表.Designer.vb Просмотреть файл

@@ -1,606 +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
-        Me.components = New System.ComponentModel.Container()
26
-        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Me.Label4 = New System.Windows.Forms.Label()
28
-        Me.TextBox1 = New System.Windows.Forms.TextBox()
29
-        Me.TextBox7 = New System.Windows.Forms.TextBox()
30
-        Me.Label9 = New System.Windows.Forms.Label()
31
-        Me.DataGridView1 = New System.Windows.Forms.DataGridView()
32
-        Me.Label62 = New System.Windows.Forms.Label()
33
-        Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
34
-        Me.重新整理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
35
-        Me.關鍵字查詢ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
36
-        Me.對帳記錄存檔ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
37
-        Me.ToolStripSeparator2 = New System.Windows.Forms.ToolStripSeparator()
38
-        Me.BBBToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
39
-        Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
40
-        Me.TextBox2 = New System.Windows.Forms.TextBox()
41
-        Me.Label5 = New System.Windows.Forms.Label()
42
-        Me.TextBox3 = New System.Windows.Forms.TextBox()
43
-        Me.Label6 = New System.Windows.Forms.Label()
44
-        Me.TextBox4 = New System.Windows.Forms.TextBox()
45
-        Me.Label7 = New System.Windows.Forms.Label()
46
-        Me.TextBox5 = New System.Windows.Forms.TextBox()
47
-        Me.Label8 = New System.Windows.Forms.Label()
48
-        Me.TextBox6 = New System.Windows.Forms.TextBox()
49
-        Me.Label10 = New System.Windows.Forms.Label()
50
-        Me.CheckBox4 = New System.Windows.Forms.CheckBox()
51
-        Me.CheckBox5 = New System.Windows.Forms.CheckBox()
52
-        Me.CheckBox1 = New System.Windows.Forms.CheckBox()
53
-        Me.TextBox8 = New System.Windows.Forms.TextBox()
54
-        Me.Label1 = New System.Windows.Forms.Label()
55
-        Me.TextBox9 = New System.Windows.Forms.TextBox()
56
-        Me.Label3 = New System.Windows.Forms.Label()
57
-        Me.TextBox10 = New System.Windows.Forms.TextBox()
58
-        Me.Label11 = New System.Windows.Forms.Label()
59
-        Me.TextBox11 = New System.Windows.Forms.TextBox()
60
-        Me.Label12 = New System.Windows.Forms.Label()
61
-        Me.TextBox12 = New System.Windows.Forms.TextBox()
62
-        Me.Label13 = New System.Windows.Forms.Label()
63
-        Me.TextBox13 = New System.Windows.Forms.TextBox()
64
-        Me.Label14 = New System.Windows.Forms.Label()
65
-        Me.一般月 = New System.Windows.Forms.CheckBox()
66
-        Me.會計月 = New System.Windows.Forms.CheckBox()
67
-        Me.Button2 = New System.Windows.Forms.Button()
68
-        Me.Button1 = New System.Windows.Forms.Button()
69
-        Me.Label15 = New System.Windows.Forms.Label()
70
-        Me.DateTimePicker2 = New System.Windows.Forms.DateTimePicker()
71
-        Me.DateTimePicker1 = New System.Windows.Forms.DateTimePicker()
72
-        Me.Button3 = New System.Windows.Forms.Button()
73
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
74
-        Me.ContextMenuStrip1.SuspendLayout()
75
-        Me.SuspendLayout()
76
-        '
77
-        'Label4
78
-        '
79
-        Me.Label4.AutoSize = True
80
-        Me.Label4.ForeColor = System.Drawing.Color.Green
81
-        Me.Label4.Location = New System.Drawing.Point(310, 8)
82
-        Me.Label4.Name = "Label4"
83
-        Me.Label4.Size = New System.Drawing.Size(32, 16)
84
-        Me.Label4.TabIndex = 1015
85
-        Me.Label4.Text = "單號"
86
-        '
87
-        'TextBox1
88
-        '
89
-        Me.TextBox1.ForeColor = System.Drawing.Color.Green
90
-        Me.TextBox1.Location = New System.Drawing.Point(342, 5)
91
-        Me.TextBox1.Name = "TextBox1"
92
-        Me.TextBox1.Size = New System.Drawing.Size(148, 23)
93
-        Me.TextBox1.TabIndex = 1014
94
-        Me.TextBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
95
-        '
96
-        'TextBox7
97
-        '
98
-        Me.TextBox7.ForeColor = System.Drawing.Color.Green
99
-        Me.TextBox7.Location = New System.Drawing.Point(998, 4)
100
-        Me.TextBox7.Name = "TextBox7"
101
-        Me.TextBox7.Size = New System.Drawing.Size(90, 23)
102
-        Me.TextBox7.TabIndex = 1013
103
-        Me.TextBox7.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
104
-        '
105
-        'Label9
106
-        '
107
-        Me.Label9.AutoSize = True
108
-        Me.Label9.ForeColor = System.Drawing.Color.Green
109
-        Me.Label9.Location = New System.Drawing.Point(966, 8)
110
-        Me.Label9.Name = "Label9"
111
-        Me.Label9.Size = New System.Drawing.Size(32, 16)
112
-        Me.Label9.TabIndex = 1012
113
-        Me.Label9.Text = "現金"
114
-        '
115
-        'DataGridView1
116
-        '
117
-        Me.DataGridView1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
118
-            Or System.Windows.Forms.AnchorStyles.Left) _
119
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
120
-        Me.DataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
121
-        Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
122
-        Me.DataGridView1.Location = New System.Drawing.Point(7, 56)
123
-        Me.DataGridView1.Name = "DataGridView1"
124
-        Me.DataGridView1.RowHeadersWidth = 5
125
-        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
126
-        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle2
127
-        Me.DataGridView1.RowTemplate.Height = 24
128
-        Me.DataGridView1.Size = New System.Drawing.Size(1761, 660)
129
-        Me.DataGridView1.TabIndex = 1006
130
-        '
131
-        'Label62
132
-        '
133
-        Me.Label62.AutoSize = True
134
-        Me.Label62.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
135
-        Me.Label62.ForeColor = System.Drawing.Color.Red
136
-        Me.Label62.Location = New System.Drawing.Point(339, 33)
137
-        Me.Label62.Name = "Label62"
138
-        Me.Label62.Size = New System.Drawing.Size(140, 16)
139
-        Me.Label62.TabIndex = 1005
140
-        Me.Label62.Text = "資    料    尚    未    存    檔"
141
-        Me.Label62.Visible = False
142
-        '
143
-        'ContextMenuStrip1
144
-        '
145
-        Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.重新整理ToolStripMenuItem, Me.關鍵字查詢ToolStripMenuItem, Me.對帳記錄存檔ToolStripMenuItem, Me.ToolStripSeparator2, Me.BBBToolStripMenuItem})
146
-        Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
147
-        Me.ContextMenuStrip1.Size = New System.Drawing.Size(181, 120)
148
-        '
149
-        '重新整理ToolStripMenuItem
150
-        '
151
-        Me.重新整理ToolStripMenuItem.Name = "重新整理ToolStripMenuItem"
152
-        Me.重新整理ToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
153
-        Me.重新整理ToolStripMenuItem.Text = "重新整理"
154
-        '
155
-        '關鍵字查詢ToolStripMenuItem
156
-        '
157
-        Me.關鍵字查詢ToolStripMenuItem.Name = "關鍵字查詢ToolStripMenuItem"
158
-        Me.關鍵字查詢ToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
159
-        Me.關鍵字查詢ToolStripMenuItem.Text = "關鍵字查詢"
160
-        '
161
-        '對帳記錄存檔ToolStripMenuItem
162
-        '
163
-        Me.對帳記錄存檔ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
164
-        Me.對帳記錄存檔ToolStripMenuItem.Name = "對帳記錄存檔ToolStripMenuItem"
165
-        Me.對帳記錄存檔ToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
166
-        Me.對帳記錄存檔ToolStripMenuItem.Text = "對帳記錄存檔"
167
-        '
168
-        'ToolStripSeparator2
169
-        '
170
-        Me.ToolStripSeparator2.Name = "ToolStripSeparator2"
171
-        Me.ToolStripSeparator2.Size = New System.Drawing.Size(167, 6)
172
-        '
173
-        'BBBToolStripMenuItem
174
-        '
175
-        Me.BBBToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
176
-        Me.BBBToolStripMenuItem.Name = "BBBToolStripMenuItem"
177
-        Me.BBBToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
178
-        Me.BBBToolStripMenuItem.Text = "列印成EXCEL"
179
-        '
180
-        'Timer1
181
-        '
182
-        Me.Timer1.Interval = 500
183
-        '
184
-        'TextBox2
185
-        '
186
-        Me.TextBox2.ForeColor = System.Drawing.Color.Green
187
-        Me.TextBox2.Location = New System.Drawing.Point(1123, 4)
188
-        Me.TextBox2.Name = "TextBox2"
189
-        Me.TextBox2.Size = New System.Drawing.Size(90, 23)
190
-        Me.TextBox2.TabIndex = 1017
191
-        Me.TextBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
192
-        '
193
-        'Label5
194
-        '
195
-        Me.Label5.AutoSize = True
196
-        Me.Label5.ForeColor = System.Drawing.Color.Green
197
-        Me.Label5.Location = New System.Drawing.Point(1090, 8)
198
-        Me.Label5.Name = "Label5"
199
-        Me.Label5.Size = New System.Drawing.Size(32, 16)
200
-        Me.Label5.TabIndex = 1016
201
-        Me.Label5.Text = "支出"
202
-        '
203
-        'TextBox3
204
-        '
205
-        Me.TextBox3.ForeColor = System.Drawing.Color.Green
206
-        Me.TextBox3.Location = New System.Drawing.Point(1249, 4)
207
-        Me.TextBox3.Name = "TextBox3"
208
-        Me.TextBox3.Size = New System.Drawing.Size(90, 23)
209
-        Me.TextBox3.TabIndex = 1019
210
-        Me.TextBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
211
-        '
212
-        'Label6
213
-        '
214
-        Me.Label6.AutoSize = True
215
-        Me.Label6.ForeColor = System.Drawing.Color.Green
216
-        Me.Label6.Location = New System.Drawing.Point(1215, 8)
217
-        Me.Label6.Name = "Label6"
218
-        Me.Label6.Size = New System.Drawing.Size(32, 16)
219
-        Me.Label6.TabIndex = 1018
220
-        Me.Label6.Text = "損益"
221
-        '
222
-        'TextBox4
223
-        '
224
-        Me.TextBox4.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
225
-        Me.TextBox4.Location = New System.Drawing.Point(1249, 29)
226
-        Me.TextBox4.Name = "TextBox4"
227
-        Me.TextBox4.Size = New System.Drawing.Size(90, 23)
228
-        Me.TextBox4.TabIndex = 1025
229
-        Me.TextBox4.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
230
-        '
231
-        'Label7
232
-        '
233
-        Me.Label7.AutoSize = True
234
-        Me.Label7.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
235
-        Me.Label7.Location = New System.Drawing.Point(1215, 32)
236
-        Me.Label7.Name = "Label7"
237
-        Me.Label7.Size = New System.Drawing.Size(32, 16)
238
-        Me.Label7.TabIndex = 1024
239
-        Me.Label7.Text = "損益"
240
-        '
241
-        'TextBox5
242
-        '
243
-        Me.TextBox5.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
244
-        Me.TextBox5.Location = New System.Drawing.Point(1123, 29)
245
-        Me.TextBox5.Name = "TextBox5"
246
-        Me.TextBox5.Size = New System.Drawing.Size(90, 23)
247
-        Me.TextBox5.TabIndex = 1023
248
-        Me.TextBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
249
-        '
250
-        'Label8
251
-        '
252
-        Me.Label8.AutoSize = True
253
-        Me.Label8.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
254
-        Me.Label8.Location = New System.Drawing.Point(1090, 33)
255
-        Me.Label8.Name = "Label8"
256
-        Me.Label8.Size = New System.Drawing.Size(32, 16)
257
-        Me.Label8.TabIndex = 1022
258
-        Me.Label8.Text = "支出"
259
-        '
260
-        'TextBox6
261
-        '
262
-        Me.TextBox6.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
263
-        Me.TextBox6.Location = New System.Drawing.Point(998, 29)
264
-        Me.TextBox6.Name = "TextBox6"
265
-        Me.TextBox6.Size = New System.Drawing.Size(90, 23)
266
-        Me.TextBox6.TabIndex = 1021
267
-        Me.TextBox6.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
268
-        '
269
-        'Label10
270
-        '
271
-        Me.Label10.AutoSize = True
272
-        Me.Label10.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
273
-        Me.Label10.Location = New System.Drawing.Point(966, 33)
274
-        Me.Label10.Name = "Label10"
275
-        Me.Label10.Size = New System.Drawing.Size(32, 16)
276
-        Me.Label10.TabIndex = 1020
277
-        Me.Label10.Text = "現金"
278
-        '
279
-        'CheckBox4
280
-        '
281
-        Me.CheckBox4.AutoSize = True
282
-        Me.CheckBox4.Location = New System.Drawing.Point(1345, 5)
283
-        Me.CheckBox4.Name = "CheckBox4"
284
-        Me.CheckBox4.Size = New System.Drawing.Size(135, 20)
285
-        Me.CheckBox4.TabIndex = 1026
286
-        Me.CheckBox4.Text = "隱藏申請、審核資訊"
287
-        Me.CheckBox4.UseVisualStyleBackColor = True
288
-        '
289
-        'CheckBox5
290
-        '
291
-        Me.CheckBox5.AutoSize = True
292
-        Me.CheckBox5.Location = New System.Drawing.Point(1345, 30)
293
-        Me.CheckBox5.Name = "CheckBox5"
294
-        Me.CheckBox5.Size = New System.Drawing.Size(135, 20)
295
-        Me.CheckBox5.TabIndex = 1027
296
-        Me.CheckBox5.Text = "隱藏作帳、點交資訊"
297
-        Me.CheckBox5.UseVisualStyleBackColor = True
298
-        '
299
-        'CheckBox1
300
-        '
301
-        Me.CheckBox1.AutoSize = True
302
-        Me.CheckBox1.Location = New System.Drawing.Point(1486, 4)
303
-        Me.CheckBox1.Name = "CheckBox1"
304
-        Me.CheckBox1.Size = New System.Drawing.Size(111, 20)
305
-        Me.CheckBox1.TabIndex = 1028
306
-        Me.CheckBox1.Text = "只顯示支票資料"
307
-        Me.CheckBox1.UseVisualStyleBackColor = True
308
-        '
309
-        'TextBox8
310
-        '
311
-        Me.TextBox8.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
312
-        Me.TextBox8.Location = New System.Drawing.Point(874, 29)
313
-        Me.TextBox8.Name = "TextBox8"
314
-        Me.TextBox8.Size = New System.Drawing.Size(90, 23)
315
-        Me.TextBox8.TabIndex = 1032
316
-        Me.TextBox8.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
317
-        '
318
-        'Label1
319
-        '
320
-        Me.Label1.AutoSize = True
321
-        Me.Label1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
322
-        Me.Label1.Location = New System.Drawing.Point(828, 33)
323
-        Me.Label1.Name = "Label1"
324
-        Me.Label1.Size = New System.Drawing.Size(44, 16)
325
-        Me.Label1.TabIndex = 1031
326
-        Me.Label1.Text = "零用金"
327
-        '
328
-        'TextBox9
329
-        '
330
-        Me.TextBox9.ForeColor = System.Drawing.Color.Green
331
-        Me.TextBox9.Location = New System.Drawing.Point(874, 4)
332
-        Me.TextBox9.Name = "TextBox9"
333
-        Me.TextBox9.Size = New System.Drawing.Size(90, 23)
334
-        Me.TextBox9.TabIndex = 1030
335
-        Me.TextBox9.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
336
-        '
337
-        'Label3
338
-        '
339
-        Me.Label3.AutoSize = True
340
-        Me.Label3.ForeColor = System.Drawing.Color.Green
341
-        Me.Label3.Location = New System.Drawing.Point(828, 8)
342
-        Me.Label3.Name = "Label3"
343
-        Me.Label3.Size = New System.Drawing.Size(44, 16)
344
-        Me.Label3.TabIndex = 1029
345
-        Me.Label3.Text = "零用金"
346
-        '
347
-        'TextBox10
348
-        '
349
-        Me.TextBox10.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
350
-        Me.TextBox10.Location = New System.Drawing.Point(732, 29)
351
-        Me.TextBox10.Name = "TextBox10"
352
-        Me.TextBox10.Size = New System.Drawing.Size(90, 23)
353
-        Me.TextBox10.TabIndex = 1036
354
-        Me.TextBox10.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
355
-        '
356
-        'Label11
357
-        '
358
-        Me.Label11.AutoSize = True
359
-        Me.Label11.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
360
-        Me.Label11.Location = New System.Drawing.Point(662, 33)
361
-        Me.Label11.Name = "Label11"
362
-        Me.Label11.Size = New System.Drawing.Size(68, 16)
363
-        Me.Label11.TabIndex = 1035
364
-        Me.Label11.Text = "已兌現支票"
365
-        '
366
-        'TextBox11
367
-        '
368
-        Me.TextBox11.ForeColor = System.Drawing.Color.Green
369
-        Me.TextBox11.Location = New System.Drawing.Point(732, 4)
370
-        Me.TextBox11.Name = "TextBox11"
371
-        Me.TextBox11.Size = New System.Drawing.Size(90, 23)
372
-        Me.TextBox11.TabIndex = 1034
373
-        Me.TextBox11.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
374
-        '
375
-        'Label12
376
-        '
377
-        Me.Label12.AutoSize = True
378
-        Me.Label12.ForeColor = System.Drawing.Color.Green
379
-        Me.Label12.Location = New System.Drawing.Point(662, 8)
380
-        Me.Label12.Name = "Label12"
381
-        Me.Label12.Size = New System.Drawing.Size(68, 16)
382
-        Me.Label12.TabIndex = 1033
383
-        Me.Label12.Text = "已兌現支票"
384
-        '
385
-        'TextBox12
386
-        '
387
-        Me.TextBox12.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
388
-        Me.TextBox12.Location = New System.Drawing.Point(566, 30)
389
-        Me.TextBox12.Name = "TextBox12"
390
-        Me.TextBox12.Size = New System.Drawing.Size(90, 23)
391
-        Me.TextBox12.TabIndex = 1040
392
-        Me.TextBox12.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
393
-        '
394
-        'Label13
395
-        '
396
-        Me.Label13.AutoSize = True
397
-        Me.Label13.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
398
-        Me.Label13.Location = New System.Drawing.Point(496, 34)
399
-        Me.Label13.Name = "Label13"
400
-        Me.Label13.Size = New System.Drawing.Size(68, 16)
401
-        Me.Label13.TabIndex = 1039
402
-        Me.Label13.Text = "未兌現支票"
403
-        '
404
-        'TextBox13
405
-        '
406
-        Me.TextBox13.ForeColor = System.Drawing.Color.Green
407
-        Me.TextBox13.Location = New System.Drawing.Point(566, 5)
408
-        Me.TextBox13.Name = "TextBox13"
409
-        Me.TextBox13.Size = New System.Drawing.Size(90, 23)
410
-        Me.TextBox13.TabIndex = 1038
411
-        Me.TextBox13.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
412
-        '
413
-        'Label14
414
-        '
415
-        Me.Label14.AutoSize = True
416
-        Me.Label14.ForeColor = System.Drawing.Color.Green
417
-        Me.Label14.Location = New System.Drawing.Point(496, 9)
418
-        Me.Label14.Name = "Label14"
419
-        Me.Label14.Size = New System.Drawing.Size(68, 16)
420
-        Me.Label14.TabIndex = 1037
421
-        Me.Label14.Text = "未兌現支票"
422
-        '
423
-        '一般月
424
-        '
425
-        Me.一般月.AutoSize = True
426
-        Me.一般月.Location = New System.Drawing.Point(144, 32)
427
-        Me.一般月.Name = "一般月"
428
-        Me.一般月.Size = New System.Drawing.Size(63, 20)
429
-        Me.一般月.TabIndex = 1107
430
-        Me.一般月.Text = "一般月"
431
-        Me.一般月.UseVisualStyleBackColor = True
432
-        '
433
-        '會計月
434
-        '
435
-        Me.會計月.AutoSize = True
436
-        Me.會計月.Checked = True
437
-        Me.會計月.CheckState = System.Windows.Forms.CheckState.Checked
438
-        Me.會計月.Location = New System.Drawing.Point(33, 31)
439
-        Me.會計月.Name = "會計月"
440
-        Me.會計月.Size = New System.Drawing.Size(63, 20)
441
-        Me.會計月.TabIndex = 1106
442
-        Me.會計月.Text = "會計月"
443
-        Me.會計月.UseVisualStyleBackColor = True
444
-        '
445
-        'Button2
446
-        '
447
-        Me.Button2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
448
-        Me.Button2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
449
-        Me.Button2.Location = New System.Drawing.Point(212, 29)
450
-        Me.Button2.Name = "Button2"
451
-        Me.Button2.Size = New System.Drawing.Size(97, 23)
452
-        Me.Button2.TabIndex = 1105
453
-        Me.Button2.Text = "下個月"
454
-        Me.Button2.UseVisualStyleBackColor = True
455
-        '
456
-        'Button1
457
-        '
458
-        Me.Button1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
459
-        Me.Button1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
460
-        Me.Button1.Location = New System.Drawing.Point(212, 4)
461
-        Me.Button1.Name = "Button1"
462
-        Me.Button1.Size = New System.Drawing.Size(97, 23)
463
-        Me.Button1.TabIndex = 1104
464
-        Me.Button1.Text = "上個月"
465
-        Me.Button1.UseVisualStyleBackColor = True
466
-        '
467
-        'Label15
468
-        '
469
-        Me.Label15.AutoSize = True
470
-        Me.Label15.Location = New System.Drawing.Point(101, 9)
471
-        Me.Label15.Name = "Label15"
472
-        Me.Label15.Size = New System.Drawing.Size(20, 16)
473
-        Me.Label15.TabIndex = 1103
474
-        Me.Label15.Text = "到"
475
-        '
476
-        'DateTimePicker2
477
-        '
478
-        Me.DateTimePicker2.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
479
-        Me.DateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
480
-        Me.DateTimePicker2.Location = New System.Drawing.Point(123, 5)
481
-        Me.DateTimePicker2.Name = "DateTimePicker2"
482
-        Me.DateTimePicker2.Size = New System.Drawing.Size(87, 23)
483
-        Me.DateTimePicker2.TabIndex = 1102
484
-        '
485
-        'DateTimePicker1
486
-        '
487
-        Me.DateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
488
-        Me.DateTimePicker1.Location = New System.Drawing.Point(12, 5)
489
-        Me.DateTimePicker1.Name = "DateTimePicker1"
490
-        Me.DateTimePicker1.Size = New System.Drawing.Size(87, 23)
491
-        Me.DateTimePicker1.TabIndex = 1101
492
-        '
493
-        'Button3
494
-        '
495
-        Me.Button3.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
496
-        Me.Button3.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
497
-        Me.Button3.Location = New System.Drawing.Point(1486, 27)
498
-        Me.Button3.Name = "Button3"
499
-        Me.Button3.Size = New System.Drawing.Size(111, 23)
500
-        Me.Button3.TabIndex = 1108
501
-        Me.Button3.Text = "重新整理"
502
-        Me.Button3.UseVisualStyleBackColor = True
503
-        '
504
-        '營運成本收支單_對帳表
505
-        '
506
-        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
507
-        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
508
-        Me.ClientSize = New System.Drawing.Size(1774, 722)
509
-        Me.ContextMenuStrip = Me.ContextMenuStrip1
510
-        Me.Controls.Add(Me.Button3)
511
-        Me.Controls.Add(Me.一般月)
512
-        Me.Controls.Add(Me.會計月)
513
-        Me.Controls.Add(Me.Button2)
514
-        Me.Controls.Add(Me.Button1)
515
-        Me.Controls.Add(Me.Label15)
516
-        Me.Controls.Add(Me.DateTimePicker2)
517
-        Me.Controls.Add(Me.DateTimePicker1)
518
-        Me.Controls.Add(Me.TextBox12)
519
-        Me.Controls.Add(Me.Label13)
520
-        Me.Controls.Add(Me.TextBox13)
521
-        Me.Controls.Add(Me.Label14)
522
-        Me.Controls.Add(Me.TextBox10)
523
-        Me.Controls.Add(Me.Label11)
524
-        Me.Controls.Add(Me.TextBox11)
525
-        Me.Controls.Add(Me.Label12)
526
-        Me.Controls.Add(Me.TextBox8)
527
-        Me.Controls.Add(Me.Label1)
528
-        Me.Controls.Add(Me.TextBox9)
529
-        Me.Controls.Add(Me.Label3)
530
-        Me.Controls.Add(Me.CheckBox1)
531
-        Me.Controls.Add(Me.CheckBox5)
532
-        Me.Controls.Add(Me.CheckBox4)
533
-        Me.Controls.Add(Me.TextBox4)
534
-        Me.Controls.Add(Me.Label7)
535
-        Me.Controls.Add(Me.TextBox5)
536
-        Me.Controls.Add(Me.Label8)
537
-        Me.Controls.Add(Me.TextBox6)
538
-        Me.Controls.Add(Me.Label10)
539
-        Me.Controls.Add(Me.TextBox3)
540
-        Me.Controls.Add(Me.Label6)
541
-        Me.Controls.Add(Me.TextBox2)
542
-        Me.Controls.Add(Me.Label5)
543
-        Me.Controls.Add(Me.Label4)
544
-        Me.Controls.Add(Me.TextBox1)
545
-        Me.Controls.Add(Me.TextBox7)
546
-        Me.Controls.Add(Me.Label9)
547
-        Me.Controls.Add(Me.Label62)
548
-        Me.Controls.Add(Me.DataGridView1)
549
-        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
550
-        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
551
-        Me.Name = "營運成本收支單_對帳表"
552
-        Me.Text = "營運成本收支單_對帳表"
553
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
554
-        Me.ContextMenuStrip1.ResumeLayout(False)
555
-        Me.ResumeLayout(False)
556
-        Me.PerformLayout()
557
-
558
-    End Sub
559
-
560
-    Friend WithEvents Label4 As Label
561
-    Friend WithEvents TextBox1 As TextBox
562
-    Friend WithEvents TextBox7 As TextBox
563
-    Friend WithEvents Label9 As Label
564
-    Friend WithEvents DataGridView1 As DataGridView
565
-    Friend WithEvents Label62 As Label
566
-    Friend WithEvents ContextMenuStrip1 As ContextMenuStrip
567
-    Friend WithEvents 對帳記錄存檔ToolStripMenuItem As ToolStripMenuItem
568
-    Friend WithEvents ToolStripSeparator2 As ToolStripSeparator
569
-    Friend WithEvents 關鍵字查詢ToolStripMenuItem As ToolStripMenuItem
570
-    Friend WithEvents BBBToolStripMenuItem As ToolStripMenuItem
571
-    Friend WithEvents Timer1 As Timer
572
-    Friend WithEvents TextBox2 As TextBox
573
-    Friend WithEvents Label5 As Label
574
-    Friend WithEvents TextBox3 As TextBox
575
-    Friend WithEvents Label6 As Label
576
-    Friend WithEvents TextBox4 As TextBox
577
-    Friend WithEvents Label7 As Label
578
-    Friend WithEvents TextBox5 As TextBox
579
-    Friend WithEvents Label8 As Label
580
-    Friend WithEvents TextBox6 As TextBox
581
-    Friend WithEvents Label10 As Label
582
-    Friend WithEvents CheckBox4 As CheckBox
583
-    Friend WithEvents CheckBox5 As CheckBox
584
-    Friend WithEvents CheckBox1 As CheckBox
585
-    Friend WithEvents TextBox8 As TextBox
586
-    Friend WithEvents Label1 As Label
587
-    Friend WithEvents TextBox9 As TextBox
588
-    Friend WithEvents Label3 As Label
589
-    Friend WithEvents TextBox10 As TextBox
590
-    Friend WithEvents Label11 As Label
591
-    Friend WithEvents TextBox11 As TextBox
592
-    Friend WithEvents Label12 As Label
593
-    Friend WithEvents TextBox12 As TextBox
594
-    Friend WithEvents Label13 As Label
595
-    Friend WithEvents TextBox13 As TextBox
596
-    Friend WithEvents Label14 As Label
597
-    Friend WithEvents 重新整理ToolStripMenuItem As ToolStripMenuItem
598
-    Friend WithEvents 一般月 As CheckBox
599
-    Friend WithEvents 會計月 As CheckBox
600
-    Friend WithEvents Button2 As Button
601
-    Friend WithEvents Button1 As Button
602
-    Friend WithEvents Label15 As Label
603
-    Friend WithEvents DateTimePicker2 As DateTimePicker
604
-    Friend WithEvents DateTimePicker1 As DateTimePicker
605
-    Friend WithEvents Button3 As Button
606
-End Class

+ 0
- 129
MaoOrange-Hongji/財務系統管理/營運成本收支單_對帳表.resx Просмотреть файл

@@ -1,129 +0,0 @@
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="ContextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121
-    <value>17, 9</value>
122
-  </metadata>
123
-  <metadata name="Timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
124
-    <value>182, 9</value>
125
-  </metadata>
126
-  <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
127
-    <value>37</value>
128
-  </metadata>
129
-</root>

+ 0
- 170
MaoOrange-Hongji/財務系統管理/營運成本收支單_對帳表.vb Просмотреть файл

@@ -1,170 +0,0 @@
1
-Option Strict Off
2
-Public Class 營運成本收支單_對帳表
3
-    ReadOnly ds As New DataSet
4
-    Private Sub Set_清單1()
5
-        DataGridView1.DataSource = Nothing : ds.Clear()
6
-        DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
7
-        DataGridView1.ColumnHeadersHeight = 25
8
-        DataGridView1.AllowUserToAddRows = False
9
-        SQL_營運成本收支_決算表_清單() : 列印用SQL = SQL1
10
-        da.Fill(ds) : DataGridView1.DataSource = ds.Tables(0) : conn.Close() : Set_grid()
11
-    End Sub
12
-    Private Sub Set_grid()
13
-        DataGridView1.Columns(0).FillWeight = 120 : DataGridView1.Columns(1).FillWeight = 60 : DataGridView1.Columns(2).FillWeight = 80 : DataGridView1.Columns(3).FillWeight = 60
14
-        DataGridView1.Columns(4).FillWeight = 80 : DataGridView1.Columns(5).FillWeight = 50 : DataGridView1.Columns(6).FillWeight = 200 : DataGridView1.Columns(7).FillWeight = 233
15
-        DataGridView1.Columns(8).FillWeight = 80 : DataGridView1.Columns(9).FillWeight = 80 : DataGridView1.Columns(10).FillWeight = 80 : DataGridView1.Columns(11).FillWeight = 80
16
-        DataGridView1.Columns(12).FillWeight = 80 : DataGridView1.Columns(13).FillWeight = 50 : DataGridView1.Columns(14).FillWeight = 85 : DataGridView1.Columns(15).FillWeight = 50
17
-        DataGridView1.Columns(16).FillWeight = 85 : DataGridView1.Columns(17).FillWeight = 80 : DataGridView1.Columns(18).FillWeight = 80 : DataGridView1.Columns(19).FillWeight = 80
18
-        DataGridView1.Columns(20).FillWeight = 80
19
-
20
-        If CheckBox4.Checked = False Then
21
-            DataGridView1.Columns(1).Visible = True : DataGridView1.Columns(2).Visible = True : DataGridView1.Columns(3).Visible = True : DataGridView1.Columns(4).Visible = True
22
-        Else
23
-            DataGridView1.Columns(1).Visible = False : DataGridView1.Columns(2).Visible = False : DataGridView1.Columns(3).Visible = False : DataGridView1.Columns(4).Visible = False
24
-        End If
25
-
26
-        If CheckBox5.Checked = False Then
27
-            DataGridView1.Columns(13).Visible = True : DataGridView1.Columns(14).Visible = True : DataGridView1.Columns(15).Visible = True : DataGridView1.Columns(16).Visible = True
28
-        Else
29
-            DataGridView1.Columns(13).Visible = False : DataGridView1.Columns(14).Visible = False : DataGridView1.Columns(15).Visible = False : DataGridView1.Columns(16).Visible = False
30
-        End If
31
-
32
-        DataGridView1.Columns(8).DefaultCellStyle.Format = "#,##0" : DataGridView1.Columns(9).DefaultCellStyle.Format = "#,##0" : DataGridView1.Columns(10).DefaultCellStyle.Format = "#,##0"
33
-        DataGridView1.Columns(11).DefaultCellStyle.Format = "#,##0"
34
-        DataGridView1.Columns(8).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(8).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
35
-        DataGridView1.Columns(9).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(9).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
36
-        DataGridView1.Columns(10).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(10).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
37
-        DataGridView1.Columns(11).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(11).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
38
-
39
-        TextBox5.Text = "0" : TextBox6.Text = "0" : TextBox4.Text = "0" : TextBox8.Text = "0" : TextBox10.Text = "0" : TextBox12.Text = "0"
40
-        For i As Integer = 0 To DataGridView1.Rows.Count - 1
41
-            TextBox6.Text = Val(TextBox6.Text) + DataGridView1.Rows(i).Cells("現金").Value : TextBox5.Text = Val(TextBox5.Text) + DataGridView1.Rows(i).Cells("支出").Value
42
-            TextBox8.Text = Val(TextBox8.Text) + DataGridView1.Rows(i).Cells("零用金").Value
43
-            If DataGridView1(9, i).Value <> 0 And DataGridView1(18, i).Value = True Then
44
-                TextBox10.Text = Val(TextBox10.Text) + DataGridView1.Rows(i).Cells("支票").Value
45
-            ElseIf DataGridView1(9, i).Value <> 0 And DataGridView1(18, i).Value = False Then
46
-                TextBox12.Text = Val(TextBox12.Text) + DataGridView1.Rows(i).Cells("支票").Value
47
-            End If
48
-        Next i
49
-        TextBox4.Text = Val(TextBox10.Text) + Val(TextBox8.Text) + Val(TextBox6.Text) - Val(TextBox5.Text)
50
-        If Val(TextBox4.Text) > 0 Then : TextBox4.ForeColor = Color.Blue : Else : TextBox4.ForeColor = Color.Red : End If
51
-        TextBox5.Text = Format(Val(TextBox5.Text), "#,##0") : TextBox4.Text = Format(Val(TextBox4.Text), "#,##0") : TextBox6.Text = Format(Val(TextBox6.Text), "#,##0")
52
-        TextBox8.Text = Format(Val(TextBox8.Text), "#,##0") : TextBox10.Text = Format(Val(TextBox10.Text), "#,##0") : TextBox12.Text = Format(Val(TextBox12.Text), "#,##0")
53
-    End Sub
54
-    Private Sub 日期格式()
55
-        If 會計月.Checked = True Then
56
-            '-------------日期一----------------------------------------------------------------------------------------
57
-            DTP = Strings.Left(Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker1.Value = DTP
58
-            DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(-1)
59
-            DTP = Strings.Left(Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "26" : DateTimePicker1.Value = DTP
60
-            '-------------日期二----------------------------------------------------------------------------------------
61
-            DTP = Strings.Left(Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & "25" : DateTimePicker2.Value = DTP
62
-        Else
63
-            '-------------日期一----------------------------------------------------------------------------------------
64
-            DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1)
65
-            DTP = Strings.Left(Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker1.Value = DTP
66
-            '-------------日期二----------------------------------------------------------------------------------------
67
-            Dim iDays As Integer = DateTime.DaysInMonth(Strings.Left(Format(DateTimePicker2.Value, "yyyy/MM/dd"), 4), Strings.Mid(Format(DateTimePicker2.Value, "yyyy/MM/dd"), 6, 2))
68
-            DTP = Strings.Left(Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & iDays : DateTimePicker2.Value = DTP
69
-        End If
70
-    End Sub
71
-    Private Sub 營運成本收支單_對帳表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
72
-        Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
73
-        TextBox7.Text = "0" : TextBox2.Text = "0" : TextBox3.Text = "0" : TextBox9.Text = "0" : TextBox11.Text = "0" : TextBox13.Text = "0" : KKKJJ = "" : KKKJJ2 = ""
74
-        SQL_營運成本明細表_會計歸零() : SQL_營運成本明細表_出納歸零() : SQL_營運成本明細表_現金歸零() : SQL_營運成本明細表_備用金歸零()
75
-        SQL_營運成本明細表_公帳歸零() : SQL_營運成本明細表_支票歸零() : SQL_營運成本明細表_作帳日期歸零() : SQL_營運成本明細表_出納日期歸零() : conn.Close()
76
-        Label62.Visible = False
77
-        日期格式() : KKKJJ3 = "AND (營運成本控制表.審核日期 BETWEEN '" & Format(DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(DateTimePicker2.Value, "yyyy/MM/dd") & "') " : Set_清單1()
78
-    End Sub
79
-    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
80
-        If Label62.Visible = True Then : Label62.Visible = False : Else : Label62.Visible = True : End If
81
-    End Sub
82
-    Private Sub 總金額計算()
83
-        Dim FFGG As Integer = 0 : Dim GGHH As Integer = 0 : Dim HHJJ As Integer = 0 : Dim JJKK As Integer = 0 : Dim KKLL As Integer = 0
84
-        TextBox7.Text = "0" : TextBox2.Text = "0" : TextBox3.Text = "0" : TextBox9.Text = "0" : TextBox11.Text = "0" : TextBox13.Text = "0"
85
-        For i As Integer = 0 To DataGridView1.Rows.Count - 1
86
-            If DataGridView1.Rows(i).Cells("收支單號").Value = TextBox1.Text Then
87
-                FFGG = Val(FFGG) + DataGridView1.Rows(i).Cells("現金").Value : GGHH = Val(GGHH) + DataGridView1.Rows(i).Cells("支出").Value
88
-                HHJJ = Val(HHJJ) + DataGridView1.Rows(i).Cells("零用金").Value
89
-                If DataGridView1(9, i).Value <> 0 And DataGridView1(18, i).Value = True Then : JJKK = Val(JJKK) + DataGridView1.Rows(i).Cells("支票").Value
90
-                ElseIf DataGridView1(9, i).Value <> 0 And DataGridView1(18, i).Value = False Then : KKLL = Val(KKLL) + DataGridView1.Rows(i).Cells("支票").Value : End If
91
-            End If
92
-        Next i
93
-        TextBox7.Text = FFGG : TextBox2.Text = GGHH : TextBox9.Text = HHJJ : TextBox11.Text = JJKK : TextBox13.Text = KKLL : TextBox3.Text = JJKK + HHJJ + FFGG - GGHH
94
-        If Val(TextBox3.Text) > 0 Then : TextBox3.ForeColor = Color.Blue : Else : TextBox3.ForeColor = Color.Red : End If
95
-        TextBox7.Text = Strings.Format(Val(TextBox7.Text), "#,##0") : TextBox2.Text = Strings.Format(Val(TextBox2.Text), "#,##0") : TextBox3.Text = Strings.Format(Val(TextBox3.Text), "#,##0")
96
-        TextBox9.Text = Strings.Format(Val(TextBox9.Text), "#,##0") : TextBox11.Text = Strings.Format(Val(TextBox11.Text), "#,##0") : TextBox13.Text = Strings.Format(Val(TextBox13.Text), "#,##0")
97
-    End Sub
98
-    Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView1.CellClick
99
-        If e.RowIndex = -1 Then : Else
100
-            TextBox1.Text = DataGridView1.Rows(e.RowIndex).Cells("收支單號").Value : Timer1.Enabled = True : 總金額計算()
101
-        End If
102
-    End Sub
103
-    Private Sub DataGridView1_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles DataGridView1.RowPostPaint
104
-        Dim linePen As New Pen(Color.Blue, 2)
105
-        If e.RowIndex = DataGridView1.Rows.Count - 1 Then : Exit Sub
106
-        Else
107
-            If DataGridView1(0, e.RowIndex).Value.ToString <> DataGridView1(0, e.RowIndex + 1).Value.ToString Then
108
-                Dim startX As Integer = IIf(DataGridView1.RowHeadersVisible, DataGridView1.RowHeadersWidth, 0)
109
-                Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
110
-                Dim endX As Integer = startX + DataGridView1.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - DataGridView1.HorizontalScrollingOffset
111
-                e.Graphics.DrawLine(linePen, startX, startY, endX, startY) : Exit Sub
112
-            End If
113
-        End If
114
-        For i As Integer = 0 To DataGridView1.Rows.Count - 1
115
-            If DataGridView1(9, i).Value <> 0 And DataGridView1(18, i).Value = True Then : DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
116
-            ElseIf DataGridView1(9, i).Value <> 0 And DataGridView1(18, i).Value = False Then : DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
117
-        Next
118
-    End Sub
119
-    Private Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox1.Click
120
-        If CheckBox1.Checked = False Then : KKKJJ = "" : Set_清單1()
121
-        Else : KKKJJ = " AND (營運成本明細表.支票數 <> 0) " : Set_清單1() : End If
122
-    End Sub
123
-    Private Sub CheckBox4_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox4.Click
124
-        Set_grid()
125
-    End Sub
126
-    Private Sub CheckBox5_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox5.Click
127
-        Set_grid()
128
-    End Sub
129
-    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
130
-        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(-1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(-1)
131
-        KKKJJ3 = "AND (營運成本控制表.審核日期 BETWEEN '" & Format(DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(DateTimePicker2.Value, "yyyy/MM/dd") & "') " : Set_清單1()
132
-    End Sub
133
-    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
134
-        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1)
135
-        KKKJJ3 = "AND (營運成本控制表.審核日期 BETWEEN '" & Format(DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(DateTimePicker2.Value, "yyyy/MM/dd") & "') " : Set_清單1()
136
-    End Sub
137
-    Private Sub 會計月_CheckedChanged(sender As Object, e As EventArgs) Handles 會計月.Click
138
-        會計月.Checked = True : 一般月.Checked = False : 日期格式()
139
-        KKKJJ3 = "AND (營運成本控制表.審核日期 BETWEEN '" & Format(DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(DateTimePicker2.Value, "yyyy/MM/dd") & "') " : Set_清單1()
140
-    End Sub
141
-    Private Sub 一般月_CheckedChanged(sender As Object, e As EventArgs) Handles 一般月.Click
142
-        會計月.Checked = False : 一般月.Checked = True : 日期格式()
143
-        KKKJJ3 = "AND (營運成本控制表.審核日期 BETWEEN '" & Format(DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(DateTimePicker2.Value, "yyyy/MM/dd") & "') " : Set_清單1()
144
-    End Sub
145
-    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
146
-        Me.重新整理ToolStripMenuItem.PerformClick()
147
-    End Sub
148
-    '-----------------------------滑鼠右鍵--------------------------------------------------------------------------------------------------------------------------------------
149
-    Private Sub 對帳記錄存檔ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 對帳記錄存檔ToolStripMenuItem.Click
150
-        Timer1.Enabled = False : Label62.Visible = False
151
-        For i As Integer = 0 To DataGridView1.Rows.Count - 1
152
-            資料數 = DataGridView1.Rows.Count : MyModule1.進度條()
153
-            布林1 = DataGridView1.Rows(i).Cells("現金點交").Value : 布林2 = DataGridView1.Rows(i).Cells("零用金點交").Value : 布林3 = DataGridView1.Rows(i).Cells("支出點交").Value
154
-            布林4 = DataGridView1.Rows(i).Cells("支票兌現").Value : PA1 = DataGridView1.Rows(i).Cells("收支單號").Value : PA2 = DataGridView1.Rows(i).Cells("項次").Value
155
-            SQL_營運成本明細表_對帳記錄存檔() : conn.Close()
156
-        Next : MsgBox("存檔完成。") : Set_清單1() : MAOJI_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
157
-    End Sub
158
-    Private Sub 關鍵字查詢ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 關鍵字查詢ToolStripMenuItem.Click
159
-        PA = InputBox("請輸入要查詢的關鍵字。")
160
-        KKKJJ2 = " AND (營運成本控制表.支付單號 LIKE N'%" & PA & "%' OR 營運成本控制表.申請人 LIKE N'%" & PA & "%' OR 營運成本控制表.審核人 LIKE N'%" & PA &
161
-                 "%' OR 營運成本明細表.用途 LIKE N'%" & PA & "%' OR 營運成本控制表.備註 LIKE N'%" & PA & "%' OR 營運成本明細表.備註 LIKE N'%" & PA & "%')" : Set_清單1()
162
-        KKKJJ2 = "" : PA = ""
163
-    End Sub
164
-    Private Sub BBBToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles BBBToolStripMenuItem.Click
165
-        MsgBox("待開發。")   ' 列印_零用金支付明細.ShowDialog()
166
-    End Sub
167
-    Private Sub 重新整理ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 重新整理ToolStripMenuItem.Click
168
-        Set_清單1()
169
-    End Sub
170
-End Class

+ 0
- 583
MaoOrange-Hongji/財務系統管理/營運成本收支單一覽表.Designer.vb Просмотреть файл

@@ -1,583 +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
-        Me.components = New System.ComponentModel.Container()
26
-        Dim DataGridViewCellStyle9 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle10 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle11 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
-        Dim DataGridViewCellStyle12 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
-        Me.Label10 = New System.Windows.Forms.Label()
31
-        Me.Button2 = New System.Windows.Forms.Button()
32
-        Me.Label7 = New System.Windows.Forms.Label()
33
-        Me.DateTimePicker1 = New System.Windows.Forms.DateTimePicker()
34
-        Me.Label5 = New System.Windows.Forms.Label()
35
-        Me.TextBox4 = New System.Windows.Forms.TextBox()
36
-        Me.DataGridView1 = New System.Windows.Forms.DataGridView()
37
-        Me.Label3 = New System.Windows.Forms.Label()
38
-        Me.TextBox3 = New System.Windows.Forms.TextBox()
39
-        Me.Label1 = New System.Windows.Forms.Label()
40
-        Me.TextBox1 = New System.Windows.Forms.TextBox()
41
-        Me.Label6 = New System.Windows.Forms.Label()
42
-        Me.DataGridView4 = New System.Windows.Forms.DataGridView()
43
-        Me.DateTimePicker2 = New System.Windows.Forms.DateTimePicker()
44
-        Me.Label8 = New System.Windows.Forms.Label()
45
-        Me.DataGridView2 = New System.Windows.Forms.DataGridView()
46
-        Me.TextBox5 = New System.Windows.Forms.TextBox()
47
-        Me.Button1 = New System.Windows.Forms.Button()
48
-        Me.Button3 = New System.Windows.Forms.Button()
49
-        Me.Label4 = New System.Windows.Forms.Label()
50
-        Me.DateTimePicker3 = New System.Windows.Forms.DateTimePicker()
51
-        Me.DateTimePicker4 = New System.Windows.Forms.DateTimePicker()
52
-        Me.TextBox6 = New System.Windows.Forms.TextBox()
53
-        Me.Label9 = New System.Windows.Forms.Label()
54
-        Me.TextBox7 = New System.Windows.Forms.TextBox()
55
-        Me.Label11 = New System.Windows.Forms.Label()
56
-        Me.Label14 = New System.Windows.Forms.Label()
57
-        Me.TextBox10 = New System.Windows.Forms.TextBox()
58
-        Me.Label15 = New System.Windows.Forms.Label()
59
-        Me.TextBox11 = New System.Windows.Forms.TextBox()
60
-        Me.RadioButton1 = New System.Windows.Forms.RadioButton()
61
-        Me.RadioButton2 = New System.Windows.Forms.RadioButton()
62
-        Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
63
-        Me.重新讀取ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
64
-        Me.TextBox14 = New System.Windows.Forms.TextBox()
65
-        Me.TextBox13 = New System.Windows.Forms.TextBox()
66
-        Me.Label20 = New System.Windows.Forms.Label()
67
-        Me.Label19 = New System.Windows.Forms.Label()
68
-        Me.PictureBox1 = New System.Windows.Forms.PictureBox()
69
-        Me.一般月 = New System.Windows.Forms.CheckBox()
70
-        Me.會計月 = New System.Windows.Forms.CheckBox()
71
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
72
-        CType(Me.DataGridView4, System.ComponentModel.ISupportInitialize).BeginInit()
73
-        CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).BeginInit()
74
-        Me.ContextMenuStrip1.SuspendLayout()
75
-        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
76
-        Me.SuspendLayout()
77
-        '
78
-        'Label10
79
-        '
80
-        Me.Label10.AutoSize = True
81
-        Me.Label10.Location = New System.Drawing.Point(637, 33)
82
-        Me.Label10.Name = "Label10"
83
-        Me.Label10.Size = New System.Drawing.Size(32, 16)
84
-        Me.Label10.TabIndex = 881
85
-        Me.Label10.Text = "現金"
86
-        '
87
-        'Button2
88
-        '
89
-        Me.Button2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
90
-        Me.Button2.ForeColor = System.Drawing.Color.Blue
91
-        Me.Button2.Location = New System.Drawing.Point(1112, 5)
92
-        Me.Button2.Name = "Button2"
93
-        Me.Button2.Size = New System.Drawing.Size(130, 49)
94
-        Me.Button2.TabIndex = 879
95
-        Me.Button2.Text = "支付單列印成EXCEL" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10)
96
-        Me.Button2.UseVisualStyleBackColor = True
97
-        '
98
-        'Label7
99
-        '
100
-        Me.Label7.AutoSize = True
101
-        Me.Label7.ForeColor = System.Drawing.Color.Blue
102
-        Me.Label7.Location = New System.Drawing.Point(708, 7)
103
-        Me.Label7.Name = "Label7"
104
-        Me.Label7.Size = New System.Drawing.Size(32, 16)
105
-        Me.Label7.TabIndex = 876
106
-        Me.Label7.Text = "日期"
107
-        '
108
-        'DateTimePicker1
109
-        '
110
-        Me.DateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
111
-        Me.DateTimePicker1.Location = New System.Drawing.Point(743, 4)
112
-        Me.DateTimePicker1.Name = "DateTimePicker1"
113
-        Me.DateTimePicker1.Size = New System.Drawing.Size(99, 23)
114
-        Me.DateTimePicker1.TabIndex = 872
115
-        '
116
-        'Label5
117
-        '
118
-        Me.Label5.AutoSize = True
119
-        Me.Label5.ForeColor = System.Drawing.Color.Blue
120
-        Me.Label5.Location = New System.Drawing.Point(852, 7)
121
-        Me.Label5.Name = "Label5"
122
-        Me.Label5.Size = New System.Drawing.Size(44, 16)
123
-        Me.Label5.TabIndex = 871
124
-        Me.Label5.Text = "審核人"
125
-        '
126
-        'TextBox4
127
-        '
128
-        Me.TextBox4.ForeColor = System.Drawing.Color.Blue
129
-        Me.TextBox4.Location = New System.Drawing.Point(897, 4)
130
-        Me.TextBox4.Name = "TextBox4"
131
-        Me.TextBox4.Size = New System.Drawing.Size(74, 23)
132
-        Me.TextBox4.TabIndex = 866
133
-        '
134
-        'DataGridView1
135
-        '
136
-        DataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
137
-        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle9
138
-        Me.DataGridView1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
139
-            Or System.Windows.Forms.AnchorStyles.Left) _
140
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
141
-        Me.DataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
142
-        Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
143
-        Me.DataGridView1.Location = New System.Drawing.Point(328, 56)
144
-        Me.DataGridView1.Name = "DataGridView1"
145
-        Me.DataGridView1.RowHeadersWidth = 5
146
-        DataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
147
-        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle10
148
-        Me.DataGridView1.RowTemplate.Height = 24
149
-        Me.DataGridView1.Size = New System.Drawing.Size(914, 550)
150
-        Me.DataGridView1.TabIndex = 865
151
-        '
152
-        'Label3
153
-        '
154
-        Me.Label3.AutoSize = True
155
-        Me.Label3.ForeColor = System.Drawing.Color.Blue
156
-        Me.Label3.Location = New System.Drawing.Point(587, 7)
157
-        Me.Label3.Name = "Label3"
158
-        Me.Label3.Size = New System.Drawing.Size(44, 16)
159
-        Me.Label3.TabIndex = 864
160
-        Me.Label3.Text = "申請人"
161
-        '
162
-        'TextBox3
163
-        '
164
-        Me.TextBox3.ForeColor = System.Drawing.Color.Blue
165
-        Me.TextBox3.Location = New System.Drawing.Point(632, 4)
166
-        Me.TextBox3.Name = "TextBox3"
167
-        Me.TextBox3.Size = New System.Drawing.Size(74, 23)
168
-        Me.TextBox3.TabIndex = 863
169
-        '
170
-        'Label1
171
-        '
172
-        Me.Label1.AutoSize = True
173
-        Me.Label1.ForeColor = System.Drawing.Color.Blue
174
-        Me.Label1.Location = New System.Drawing.Point(327, 7)
175
-        Me.Label1.Name = "Label1"
176
-        Me.Label1.Size = New System.Drawing.Size(104, 16)
177
-        Me.Label1.TabIndex = 860
178
-        Me.Label1.Text = "營運成本收支單號"
179
-        '
180
-        'TextBox1
181
-        '
182
-        Me.TextBox1.ForeColor = System.Drawing.Color.Blue
183
-        Me.TextBox1.Location = New System.Drawing.Point(431, 4)
184
-        Me.TextBox1.Name = "TextBox1"
185
-        Me.TextBox1.Size = New System.Drawing.Size(150, 23)
186
-        Me.TextBox1.TabIndex = 859
187
-        '
188
-        'Label6
189
-        '
190
-        Me.Label6.AutoSize = True
191
-        Me.Label6.Location = New System.Drawing.Point(5, 9)
192
-        Me.Label6.Name = "Label6"
193
-        Me.Label6.Size = New System.Drawing.Size(140, 16)
194
-        Me.Label6.TabIndex = 858
195
-        Me.Label6.Text = "已核准的營運成本收支單"
196
-        '
197
-        'DataGridView4
198
-        '
199
-        DataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
200
-        Me.DataGridView4.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle11
201
-        Me.DataGridView4.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
202
-            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
203
-        Me.DataGridView4.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
204
-        Me.DataGridView4.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
205
-        Me.DataGridView4.Location = New System.Drawing.Point(8, 79)
206
-        Me.DataGridView4.Name = "DataGridView4"
207
-        Me.DataGridView4.RowHeadersWidth = 5
208
-        Me.DataGridView4.RowTemplate.Height = 24
209
-        Me.DataGridView4.Size = New System.Drawing.Size(315, 475)
210
-        Me.DataGridView4.TabIndex = 857
211
-        '
212
-        'DateTimePicker2
213
-        '
214
-        Me.DateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
215
-        Me.DateTimePicker2.Location = New System.Drawing.Point(1007, 4)
216
-        Me.DateTimePicker2.Name = "DateTimePicker2"
217
-        Me.DateTimePicker2.Size = New System.Drawing.Size(99, 23)
218
-        Me.DateTimePicker2.TabIndex = 873
219
-        '
220
-        'Label8
221
-        '
222
-        Me.Label8.AutoSize = True
223
-        Me.Label8.ForeColor = System.Drawing.Color.Blue
224
-        Me.Label8.Location = New System.Drawing.Point(973, 7)
225
-        Me.Label8.Name = "Label8"
226
-        Me.Label8.Size = New System.Drawing.Size(32, 16)
227
-        Me.Label8.TabIndex = 877
228
-        Me.Label8.Text = "日期"
229
-        '
230
-        'DataGridView2
231
-        '
232
-        Me.DataGridView2.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
233
-            Or System.Windows.Forms.AnchorStyles.Left) _
234
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
235
-        Me.DataGridView2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
236
-        Me.DataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
237
-        Me.DataGridView2.Location = New System.Drawing.Point(328, 56)
238
-        Me.DataGridView2.Name = "DataGridView2"
239
-        Me.DataGridView2.RowHeadersWidth = 5
240
-        DataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
241
-        Me.DataGridView2.RowsDefaultCellStyle = DataGridViewCellStyle12
242
-        Me.DataGridView2.RowTemplate.Height = 24
243
-        Me.DataGridView2.Size = New System.Drawing.Size(914, 550)
244
-        Me.DataGridView2.TabIndex = 883
245
-        '
246
-        'TextBox5
247
-        '
248
-        Me.TextBox5.Location = New System.Drawing.Point(671, 30)
249
-        Me.TextBox5.Name = "TextBox5"
250
-        Me.TextBox5.Size = New System.Drawing.Size(113, 23)
251
-        Me.TextBox5.TabIndex = 885
252
-        Me.TextBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
253
-        '
254
-        'Button1
255
-        '
256
-        Me.Button1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
257
-        Me.Button1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
258
-        Me.Button1.Location = New System.Drawing.Point(210, 53)
259
-        Me.Button1.Name = "Button1"
260
-        Me.Button1.Size = New System.Drawing.Size(58, 23)
261
-        Me.Button1.TabIndex = 890
262
-        Me.Button1.Text = "下個月"
263
-        Me.Button1.UseVisualStyleBackColor = True
264
-        '
265
-        'Button3
266
-        '
267
-        Me.Button3.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
268
-        Me.Button3.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
269
-        Me.Button3.Location = New System.Drawing.Point(210, 29)
270
-        Me.Button3.Name = "Button3"
271
-        Me.Button3.Size = New System.Drawing.Size(58, 23)
272
-        Me.Button3.TabIndex = 889
273
-        Me.Button3.Text = "上個月"
274
-        Me.Button3.UseVisualStyleBackColor = True
275
-        '
276
-        'Label4
277
-        '
278
-        Me.Label4.AutoSize = True
279
-        Me.Label4.Location = New System.Drawing.Point(98, 34)
280
-        Me.Label4.Name = "Label4"
281
-        Me.Label4.Size = New System.Drawing.Size(20, 16)
282
-        Me.Label4.TabIndex = 888
283
-        Me.Label4.Text = "到"
284
-        '
285
-        'DateTimePicker3
286
-        '
287
-        Me.DateTimePicker3.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
288
-        Me.DateTimePicker3.Location = New System.Drawing.Point(120, 30)
289
-        Me.DateTimePicker3.Name = "DateTimePicker3"
290
-        Me.DateTimePicker3.Size = New System.Drawing.Size(87, 23)
291
-        Me.DateTimePicker3.TabIndex = 887
292
-        '
293
-        'DateTimePicker4
294
-        '
295
-        Me.DateTimePicker4.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
296
-        Me.DateTimePicker4.Location = New System.Drawing.Point(9, 30)
297
-        Me.DateTimePicker4.Name = "DateTimePicker4"
298
-        Me.DateTimePicker4.Size = New System.Drawing.Size(87, 23)
299
-        Me.DateTimePicker4.TabIndex = 886
300
-        '
301
-        'TextBox6
302
-        '
303
-        Me.TextBox6.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
304
-        Me.TextBox6.Location = New System.Drawing.Point(993, 30)
305
-        Me.TextBox6.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
306
-        Me.TextBox6.Name = "TextBox6"
307
-        Me.TextBox6.Size = New System.Drawing.Size(113, 23)
308
-        Me.TextBox6.TabIndex = 896
309
-        Me.TextBox6.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
310
-        '
311
-        'Label9
312
-        '
313
-        Me.Label9.AutoSize = True
314
-        Me.Label9.Location = New System.Drawing.Point(935, 34)
315
-        Me.Label9.Name = "Label9"
316
-        Me.Label9.Size = New System.Drawing.Size(56, 16)
317
-        Me.Label9.TabIndex = 895
318
-        Me.Label9.Text = "現金餘額"
319
-        '
320
-        'TextBox7
321
-        '
322
-        Me.TextBox7.Location = New System.Drawing.Point(820, 30)
323
-        Me.TextBox7.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
324
-        Me.TextBox7.Name = "TextBox7"
325
-        Me.TextBox7.Size = New System.Drawing.Size(113, 23)
326
-        Me.TextBox7.TabIndex = 894
327
-        Me.TextBox7.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
328
-        '
329
-        'Label11
330
-        '
331
-        Me.Label11.AutoSize = True
332
-        Me.Label11.Location = New System.Drawing.Point(786, 33)
333
-        Me.Label11.Name = "Label11"
334
-        Me.Label11.Size = New System.Drawing.Size(32, 16)
335
-        Me.Label11.TabIndex = 893
336
-        Me.Label11.Text = "支出"
337
-        '
338
-        'Label14
339
-        '
340
-        Me.Label14.AutoSize = True
341
-        Me.Label14.Location = New System.Drawing.Point(488, 33)
342
-        Me.Label14.Name = "Label14"
343
-        Me.Label14.Size = New System.Drawing.Size(32, 16)
344
-        Me.Label14.TabIndex = 903
345
-        Me.Label14.Text = "支票"
346
-        '
347
-        'TextBox10
348
-        '
349
-        Me.TextBox10.Location = New System.Drawing.Point(373, 30)
350
-        Me.TextBox10.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
351
-        Me.TextBox10.Name = "TextBox10"
352
-        Me.TextBox10.Size = New System.Drawing.Size(113, 23)
353
-        Me.TextBox10.TabIndex = 902
354
-        Me.TextBox10.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
355
-        '
356
-        'Label15
357
-        '
358
-        Me.Label15.AutoSize = True
359
-        Me.Label15.Location = New System.Drawing.Point(327, 33)
360
-        Me.Label15.Name = "Label15"
361
-        Me.Label15.Size = New System.Drawing.Size(44, 16)
362
-        Me.Label15.TabIndex = 901
363
-        Me.Label15.Text = "零用金"
364
-        '
365
-        'TextBox11
366
-        '
367
-        Me.TextBox11.Location = New System.Drawing.Point(522, 30)
368
-        Me.TextBox11.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
369
-        Me.TextBox11.Name = "TextBox11"
370
-        Me.TextBox11.Size = New System.Drawing.Size(113, 23)
371
-        Me.TextBox11.TabIndex = 904
372
-        Me.TextBox11.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
373
-        '
374
-        'RadioButton1
375
-        '
376
-        Me.RadioButton1.AutoSize = True
377
-        Me.RadioButton1.Location = New System.Drawing.Point(274, 31)
378
-        Me.RadioButton1.Name = "RadioButton1"
379
-        Me.RadioButton1.Size = New System.Drawing.Size(50, 20)
380
-        Me.RadioButton1.TabIndex = 905
381
-        Me.RadioButton1.TabStop = True
382
-        Me.RadioButton1.Text = "明細"
383
-        Me.RadioButton1.UseVisualStyleBackColor = True
384
-        '
385
-        'RadioButton2
386
-        '
387
-        Me.RadioButton2.AutoSize = True
388
-        Me.RadioButton2.Location = New System.Drawing.Point(274, 54)
389
-        Me.RadioButton2.Name = "RadioButton2"
390
-        Me.RadioButton2.Size = New System.Drawing.Size(50, 20)
391
-        Me.RadioButton2.TabIndex = 906
392
-        Me.RadioButton2.TabStop = True
393
-        Me.RadioButton2.Text = "彙總"
394
-        Me.RadioButton2.UseVisualStyleBackColor = True
395
-        '
396
-        'ContextMenuStrip1
397
-        '
398
-        Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.重新讀取ToolStripMenuItem})
399
-        Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
400
-        Me.ContextMenuStrip1.Size = New System.Drawing.Size(123, 26)
401
-        '
402
-        '重新讀取ToolStripMenuItem
403
-        '
404
-        Me.重新讀取ToolStripMenuItem.Name = "重新讀取ToolStripMenuItem"
405
-        Me.重新讀取ToolStripMenuItem.Size = New System.Drawing.Size(122, 22)
406
-        Me.重新讀取ToolStripMenuItem.Text = "重新讀取"
407
-        '
408
-        'TextBox14
409
-        '
410
-        Me.TextBox14.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
411
-        Me.TextBox14.ForeColor = System.Drawing.Color.Blue
412
-        Me.TextBox14.Location = New System.Drawing.Point(196, 583)
413
-        Me.TextBox14.Name = "TextBox14"
414
-        Me.TextBox14.Size = New System.Drawing.Size(128, 23)
415
-        Me.TextBox14.TabIndex = 969
416
-        Me.TextBox14.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
417
-        '
418
-        'TextBox13
419
-        '
420
-        Me.TextBox13.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
421
-        Me.TextBox13.ForeColor = System.Drawing.Color.Blue
422
-        Me.TextBox13.Location = New System.Drawing.Point(197, 559)
423
-        Me.TextBox13.Name = "TextBox13"
424
-        Me.TextBox13.Size = New System.Drawing.Size(127, 23)
425
-        Me.TextBox13.TabIndex = 968
426
-        Me.TextBox13.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
427
-        '
428
-        'Label20
429
-        '
430
-        Me.Label20.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
431
-        Me.Label20.AutoSize = True
432
-        Me.Label20.ForeColor = System.Drawing.Color.Blue
433
-        Me.Label20.Location = New System.Drawing.Point(140, 586)
434
-        Me.Label20.Name = "Label20"
435
-        Me.Label20.Size = New System.Drawing.Size(56, 16)
436
-        Me.Label20.TabIndex = 967
437
-        Me.Label20.Text = "圖片編碼"
438
-        '
439
-        'Label19
440
-        '
441
-        Me.Label19.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
442
-        Me.Label19.AutoSize = True
443
-        Me.Label19.ForeColor = System.Drawing.Color.Blue
444
-        Me.Label19.Location = New System.Drawing.Point(140, 562)
445
-        Me.Label19.Name = "Label19"
446
-        Me.Label19.Size = New System.Drawing.Size(44, 16)
447
-        Me.Label19.TabIndex = 966
448
-        Me.Label19.Text = "驗證碼"
449
-        '
450
-        'PictureBox1
451
-        '
452
-        Me.PictureBox1.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
453
-        Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
454
-        Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
455
-        Me.PictureBox1.Location = New System.Drawing.Point(8, 559)
456
-        Me.PictureBox1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
457
-        Me.PictureBox1.Name = "PictureBox1"
458
-        Me.PictureBox1.Size = New System.Drawing.Size(129, 47)
459
-        Me.PictureBox1.TabIndex = 965
460
-        Me.PictureBox1.TabStop = False
461
-        '
462
-        '一般月
463
-        '
464
-        Me.一般月.AutoSize = True
465
-        Me.一般月.Location = New System.Drawing.Point(141, 55)
466
-        Me.一般月.Name = "一般月"
467
-        Me.一般月.Size = New System.Drawing.Size(63, 20)
468
-        Me.一般月.TabIndex = 1102
469
-        Me.一般月.Text = "一般月"
470
-        Me.一般月.UseVisualStyleBackColor = True
471
-        '
472
-        '會計月
473
-        '
474
-        Me.會計月.AutoSize = True
475
-        Me.會計月.Checked = True
476
-        Me.會計月.CheckState = System.Windows.Forms.CheckState.Checked
477
-        Me.會計月.Location = New System.Drawing.Point(30, 55)
478
-        Me.會計月.Name = "會計月"
479
-        Me.會計月.Size = New System.Drawing.Size(63, 20)
480
-        Me.會計月.TabIndex = 1101
481
-        Me.會計月.Text = "會計月"
482
-        Me.會計月.UseVisualStyleBackColor = True
483
-        '
484
-        '營運成本收支單一覽表
485
-        '
486
-        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
487
-        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
488
-        Me.ClientSize = New System.Drawing.Size(1249, 611)
489
-        Me.ContextMenuStrip = Me.ContextMenuStrip1
490
-        Me.Controls.Add(Me.一般月)
491
-        Me.Controls.Add(Me.會計月)
492
-        Me.Controls.Add(Me.TextBox14)
493
-        Me.Controls.Add(Me.TextBox13)
494
-        Me.Controls.Add(Me.Label20)
495
-        Me.Controls.Add(Me.Label19)
496
-        Me.Controls.Add(Me.PictureBox1)
497
-        Me.Controls.Add(Me.RadioButton2)
498
-        Me.Controls.Add(Me.RadioButton1)
499
-        Me.Controls.Add(Me.Label14)
500
-        Me.Controls.Add(Me.TextBox10)
501
-        Me.Controls.Add(Me.Label15)
502
-        Me.Controls.Add(Me.TextBox11)
503
-        Me.Controls.Add(Me.TextBox6)
504
-        Me.Controls.Add(Me.Label9)
505
-        Me.Controls.Add(Me.TextBox7)
506
-        Me.Controls.Add(Me.Label11)
507
-        Me.Controls.Add(Me.Button1)
508
-        Me.Controls.Add(Me.Button3)
509
-        Me.Controls.Add(Me.Label4)
510
-        Me.Controls.Add(Me.DateTimePicker3)
511
-        Me.Controls.Add(Me.DateTimePicker4)
512
-        Me.Controls.Add(Me.TextBox5)
513
-        Me.Controls.Add(Me.Label10)
514
-        Me.Controls.Add(Me.Button2)
515
-        Me.Controls.Add(Me.Label8)
516
-        Me.Controls.Add(Me.Label7)
517
-        Me.Controls.Add(Me.DateTimePicker2)
518
-        Me.Controls.Add(Me.DateTimePicker1)
519
-        Me.Controls.Add(Me.Label5)
520
-        Me.Controls.Add(Me.TextBox4)
521
-        Me.Controls.Add(Me.TextBox3)
522
-        Me.Controls.Add(Me.TextBox1)
523
-        Me.Controls.Add(Me.Label6)
524
-        Me.Controls.Add(Me.DataGridView4)
525
-        Me.Controls.Add(Me.Label1)
526
-        Me.Controls.Add(Me.Label3)
527
-        Me.Controls.Add(Me.DataGridView2)
528
-        Me.Controls.Add(Me.DataGridView1)
529
-        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
530
-        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
531
-        Me.Name = "營運成本收支單一覽表"
532
-        Me.Text = "營運成本收支單一覽表"
533
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
534
-        CType(Me.DataGridView4, System.ComponentModel.ISupportInitialize).EndInit()
535
-        CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).EndInit()
536
-        Me.ContextMenuStrip1.ResumeLayout(False)
537
-        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
538
-        Me.ResumeLayout(False)
539
-        Me.PerformLayout()
540
-
541
-    End Sub
542
-    Friend WithEvents Label10 As Label
543
-    Friend WithEvents Button2 As Button
544
-    Friend WithEvents Label7 As Label
545
-    Friend WithEvents DateTimePicker1 As DateTimePicker
546
-    Friend WithEvents Label5 As Label
547
-    Friend WithEvents TextBox4 As TextBox
548
-    Friend WithEvents DataGridView1 As DataGridView
549
-    Friend WithEvents Label3 As Label
550
-    Friend WithEvents TextBox3 As TextBox
551
-    Friend WithEvents Label1 As Label
552
-    Friend WithEvents TextBox1 As TextBox
553
-    Friend WithEvents Label6 As Label
554
-    Friend WithEvents DataGridView4 As DataGridView
555
-    Friend WithEvents DateTimePicker2 As DateTimePicker
556
-    Friend WithEvents Label8 As Label
557
-    Friend WithEvents DataGridView2 As DataGridView
558
-    Friend WithEvents TextBox5 As TextBox
559
-    Friend WithEvents Button1 As Button
560
-    Friend WithEvents Button3 As Button
561
-    Friend WithEvents Label4 As Label
562
-    Friend WithEvents DateTimePicker3 As DateTimePicker
563
-    Friend WithEvents DateTimePicker4 As DateTimePicker
564
-    Friend WithEvents TextBox6 As TextBox
565
-    Friend WithEvents Label9 As Label
566
-    Friend WithEvents TextBox7 As TextBox
567
-    Friend WithEvents Label11 As Label
568
-    Friend WithEvents Label14 As Label
569
-    Friend WithEvents TextBox10 As TextBox
570
-    Friend WithEvents Label15 As Label
571
-    Friend WithEvents TextBox11 As TextBox
572
-    Friend WithEvents RadioButton1 As RadioButton
573
-    Friend WithEvents RadioButton2 As RadioButton
574
-    Friend WithEvents ContextMenuStrip1 As ContextMenuStrip
575
-    Friend WithEvents 重新讀取ToolStripMenuItem As ToolStripMenuItem
576
-    Friend WithEvents TextBox14 As TextBox
577
-    Friend WithEvents TextBox13 As TextBox
578
-    Friend WithEvents Label20 As Label
579
-    Friend WithEvents Label19 As Label
580
-    Friend WithEvents PictureBox1 As PictureBox
581
-    Friend WithEvents 一般月 As CheckBox
582
-    Friend WithEvents 會計月 As CheckBox
583
-End Class

+ 0
- 123
MaoOrange-Hongji/財務系統管理/營運成本收支單一覽表.resx Просмотреть файл

@@ -1,123 +0,0 @@
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="ContextMenuStrip1.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>

+ 0
- 380
MaoOrange-Hongji/財務系統管理/營運成本收支單一覽表.vb Просмотреть файл

@@ -1,380 +0,0 @@
1
-Option Strict Off
2
-Imports System.IO
3
-Imports Microsoft.Office.Interop.Excel.XlUnderlineStyle
4
-Imports Microsoft.Office.Interop.Excel.Constants
5
-Imports Microsoft.Office.Interop.Excel.XlBordersIndex
6
-Imports Microsoft.Office.Interop.Excel.XlLineStyle
7
-Imports Microsoft.Office.Interop.Excel.XlBorderWeight
8
-Imports Microsoft.Office.Interop.Excel.XlThemeFont
9
-Imports Microsoft.Office.Interop.Excel.XlThemeColor
10
-Imports Microsoft.Office.Interop.Excel.XlWindowState
11
-Imports Microsoft.Office.Interop.Excel
12
-Public Class 營運成本收支單一覽表
13
-    ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet
14
-    Dim N1 As Integer : Dim N2 As Integer
15
-    Dim xlApp As Application : Dim xlBook As Workbook : Dim xlSheet As Worksheet
16
-    Private Sub Set_清單1()
17
-        DataGridView4.DataSource = Nothing : ds1.Clear()
18
-        DataGridView4.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
19
-        DataGridView4.ColumnHeadersHeight = 25
20
-        DataGridView4.AllowUserToAddRows = False
21
-        SQL_營運成本收支單一覽表清單()
22
-        da.Fill(ds1) : DataGridView4.DataSource = ds1.Tables(0) : conn.Close()
23
-
24
-        DataGridView4.Columns(0).FillWeight = 160 : DataGridView4.Columns(1).Visible = False : DataGridView4.Columns(2).FillWeight = 100 : DataGridView4.Columns(3).Visible = False
25
-        DataGridView4.Columns(4).FillWeight = 100 : DataGridView4.Columns(5).Visible = False : DataGridView4.Columns(6).Visible = False
26
-    End Sub
27
-    Private Sub Set_清單2()
28
-        DataGridView2.DataSource = Nothing : ds2.Clear()
29
-        DataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
30
-        DataGridView2.ColumnHeadersHeight = 25
31
-        DataGridView2.AllowUserToAddRows = False
32
-        SQL_營運成本收支單一覽表彙總()
33
-        da.Fill(ds2) : DataGridView2.DataSource = ds2.Tables(0) : conn.Close()
34
-
35
-        DataGridView2.Columns(0).FillWeight = 100 : DataGridView2.Columns(1).FillWeight = 140 : DataGridView2.Columns(2).FillWeight = 140 : DataGridView2.Columns(3).FillWeight = 140
36
-        DataGridView2.Columns(4).FillWeight = 100 : DataGridView2.Columns(5).FillWeight = 100 : DataGridView2.Columns(6).FillWeight = 100 : DataGridView2.Columns(7).FillWeight = 100
37
-        DataGridView2.Columns(6).DefaultCellStyle.Format = "#,##0" : DataGridView2.Columns(7).DefaultCellStyle.Format = "#,##0" : DataGridView2.Columns(4).DefaultCellStyle.Format = "#,##0"
38
-        DataGridView2.Columns(5).DefaultCellStyle.Format = "#,##0"
39
-        DataGridView2.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView2.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
40
-        DataGridView2.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView2.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
41
-        DataGridView2.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView2.Columns(4).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
42
-        DataGridView2.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView2.Columns(5).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
43
-
44
-        DataGridView2.Columns(0).ReadOnly = True : DataGridView2.Columns(1).ReadOnly = True : DataGridView2.Columns(2).ReadOnly = True : DataGridView2.Columns(3).ReadOnly = True
45
-        DataGridView2.Columns(4).ReadOnly = True : DataGridView2.Columns(5).ReadOnly = True : DataGridView2.Columns(6).ReadOnly = True : DataGridView2.Columns(7).ReadOnly = True
46
-    End Sub
47
-    Private Sub Set_費用清單()
48
-        DataGridView1.DataSource = Nothing : ds.Clear()
49
-        DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
50
-        DataGridView1.ColumnHeadersHeight = 25
51
-        DataGridView1.AllowUserToAddRows = False
52
-        DataGridView1.RowTemplate.Height = 35
53
-        SQL_營運成本收支單一覽表費用清單()
54
-        da.Fill(ds) : DataGridView1.DataSource = ds.Tables(0) : conn.Close()
55
-
56
-        DataGridView1.Columns(0).Visible = False : DataGridView1.Columns(1).FillWeight = 80 : DataGridView1.Columns(2).FillWeight = 300 : DataGridView1.Columns(3).FillWeight = 500
57
-        DataGridView1.Columns(4).FillWeight = 140 : DataGridView1.Columns(5).FillWeight = 140 : DataGridView1.Columns(6).FillWeight = 140 : DataGridView1.Columns(7).FillWeight = 140
58
-        DataGridView1.Columns(8).FillWeight = 140
59
-
60
-        DataGridView1.Columns(1).ReadOnly = True : DataGridView1.Columns(2).ReadOnly = True : DataGridView1.Columns(3).ReadOnly = True : DataGridView1.Columns(4).ReadOnly = True
61
-        DataGridView1.Columns(5).ReadOnly = True : DataGridView1.Columns(6).ReadOnly = True
62
-
63
-        DataGridView1.Columns(4).DefaultCellStyle.Format = "#,##0" : DataGridView1.Columns(5).DefaultCellStyle.Format = "#,##0" : DataGridView1.Columns(6).DefaultCellStyle.Format = "#,##0"
64
-        DataGridView1.Columns(7).DefaultCellStyle.Format = "#,##0"
65
-        DataGridView1.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(4).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
66
-        DataGridView1.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(5).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
67
-        DataGridView1.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
68
-        DataGridView1.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
69
-        DataGridView1.EditMode = DataGridViewEditMode.EditOnEnter
70
-
71
-        TextBox5.Text = "0" : TextBox7.Text = "0" : TextBox6.Text = "0" : TextBox10.Text = "0" : TextBox11.Text = "0"
72
-        For i As Integer = 0 To DataGridView1.Rows.Count - 1
73
-            TextBox5.Text = Val(TextBox5.Text) + DataGridView1.Rows(i).Cells("現金").Value : TextBox7.Text = Val(TextBox7.Text) + DataGridView1.Rows(i).Cells("支出").Value
74
-            TextBox10.Text = Val(TextBox10.Text) + DataGridView1.Rows(i).Cells("零用金").Value : TextBox11.Text = Val(TextBox11.Text) + DataGridView1.Rows(i).Cells("支票").Value
75
-        Next i
76
-        TextBox6.Text = Val(TextBox10.Text) + Val(TextBox5.Text) - Val(TextBox7.Text)
77
-        If Val(TextBox6.Text) > 0 Then : TextBox6.ForeColor = Color.Blue : Else : TextBox6.ForeColor = Color.Red : End If
78
-        TextBox5.Text = Strings.Format(Val(TextBox5.Text), "#,##0") : TextBox7.Text = Strings.Format(Val(TextBox7.Text), "#,##0") : TextBox6.Text = Strings.Format(Val(TextBox6.Text), "#,##0")
79
-        TextBox10.Text = Strings.Format(Val(TextBox10.Text), "#,##0") : TextBox11.Text = Strings.Format(Val(TextBox11.Text), "#,##0")
80
-    End Sub
81
-    Private Sub 日期格式()
82
-        If 會計月.Checked = True Then
83
-            '-------------日期一----------------------------------------------------------------------------------------
84
-            DTP = Strings.Left(Strings.Format(DateTimePicker4.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker4.Value = DTP
85
-            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
86
-            DTP = Strings.Left(Strings.Format(DateTimePicker4.Value, "yyyy/MM/dd"), 8) & "26" : DateTimePicker4.Value = DTP
87
-            '-------------日期二----------------------------------------------------------------------------------------
88
-            DTP = Strings.Left(Strings.Format(DateTimePicker3.Value, "yyyy/MM/dd"), 8) & "25" : DateTimePicker3.Value = DTP
89
-        Else
90
-            '-------------日期一----------------------------------------------------------------------------------------
91
-            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
92
-            DTP = Strings.Left(Strings.Format(DateTimePicker4.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker4.Value = DTP
93
-            '-------------日期二----------------------------------------------------------------------------------------
94
-            Dim iDays As Integer = DateTime.DaysInMonth(Strings.Left(Strings.Format(DateTimePicker3.Value, "yyyy/MM/dd"), 4), Strings.Mid(Strings.Format(DateTimePicker3.Value, "yyyy/MM/dd"), 6, 2))
95
-            DTP = Strings.Left(Strings.Format(DateTimePicker3.Value, "yyyy/MM/dd"), 8) & iDays : DateTimePicker3.Value = DTP
96
-        End If
97
-    End Sub
98
-    Private Sub 營運費用支付單一覽表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
99
-        Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
100
-        日期格式() : DataGridView2.Visible = False : RadioButton1.Checked = True
101
-    End Sub
102
-    Private Sub DataGridView4_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView4.CellClick
103
-        If e.RowIndex = -1 Then : Else
104
-            TextBox1.Text = DataGridView4(0, e.RowIndex).Value.ToString : TextBox13.Text = DataGridView4(6, e.RowIndex).Value.ToString
105
-            TextBox3.Text = DataGridView4(1, e.RowIndex).Value.ToString : DateTimePicker1.Value = DataGridView4(2, e.RowIndex).Value.ToString
106
-            TextBox4.Text = DataGridView4(3, e.RowIndex).Value.ToString : DateTimePicker2.Value = DataGridView4(4, e.RowIndex).Value.ToString
107
-            TextBox14.Text = DataGridView4(5, e.RowIndex).Value.ToString
108
-            Set_費用清單()
109
-        End If
110
-    End Sub
111
-    Private Sub DataGridView2_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles DataGridView2.RowPostPaint
112
-        Dim linePen As New Pen(Color.Blue, 2) : Dim linePen1 As New Pen(Color.Red, 2)
113
-        If e.RowIndex = DataGridView2.Rows.Count - 1 Then
114
-            Exit Sub
115
-        Else
116
-            If DataGridView2(0, e.RowIndex).Value.ToString <> DataGridView2(0, e.RowIndex + 1).Value.ToString Then
117
-                Dim startX As Integer = IIf(DataGridView2.RowHeadersVisible, DataGridView2.RowHeadersWidth, 0)
118
-                Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
119
-                Dim endX As Integer = startX + DataGridView2.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - DataGridView2.HorizontalScrollingOffset
120
-                e.Graphics.DrawLine(linePen, startX, startY, endX, startY)
121
-                Exit Sub
122
-            End If
123
-            If DataGridView2(1, e.RowIndex).Value.ToString <> DataGridView2(1, e.RowIndex + 1).Value.ToString Then
124
-                Dim startX As Integer = IIf(DataGridView2.RowHeadersVisible, DataGridView2.RowHeadersWidth, 0)
125
-                Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
126
-                Dim endX As Integer = startX + DataGridView2.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - DataGridView2.HorizontalScrollingOffset
127
-                e.Graphics.DrawLine(linePen1, startX, startY, endX, startY)
128
-                Exit Sub
129
-            End If
130
-        End If
131
-    End Sub
132
-    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
133
-        DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1) : DateTimePicker3.Value = DateTimePicker3.Value.AddMonths(-1)
134
-    End Sub
135
-    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
136
-        DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1) : DateTimePicker3.Value = DateTimePicker3.Value.AddMonths(1)
137
-    End Sub
138
-    Private Sub 彙總計算()
139
-        If RadioButton1.Checked = False And RadioButton2.Checked = True Then
140
-            TextBox5.Text = "0" : TextBox7.Text = "0" : TextBox6.Text = "0" : TextBox10.Text = "0" : TextBox11.Text = "0"
141
-            For i As Integer = 0 To DataGridView2.Rows.Count - 1
142
-                TextBox5.Text = Val(TextBox5.Text) + DataGridView2.Rows(i).Cells("現金").Value : TextBox7.Text = Val(TextBox7.Text) + DataGridView2.Rows(i).Cells("支出").Value
143
-                TextBox10.Text = Val(TextBox10.Text) + DataGridView2.Rows(i).Cells("零用金").Value : TextBox11.Text = Val(TextBox11.Text) + DataGridView2.Rows(i).Cells("支票").Value
144
-            Next i
145
-            TextBox6.Text = Val(TextBox10.Text) + Val(TextBox5.Text) - Val(TextBox7.Text)
146
-            If Val(TextBox6.Text) > 0 Then : TextBox6.ForeColor = Color.Blue : Else : TextBox6.ForeColor = Color.Red : End If
147
-            TextBox5.Text = Strings.Format(Val(TextBox5.Text), "#,##0") : TextBox7.Text = Strings.Format(Val(TextBox7.Text), "#,##0") : TextBox6.Text = Strings.Format(Val(TextBox6.Text), "#,##0")
148
-            TextBox10.Text = Strings.Format(Val(TextBox10.Text), "#,##0") : TextBox11.Text = Strings.Format(Val(TextBox11.Text), "#,##0")
149
-        End If
150
-    End Sub
151
-    Private Sub DateTimePicker4_ValueChanged(sender As Object, e As EventArgs) Handles DateTimePicker4.ValueChanged
152
-        Set_清單1() : Set_清單2() : 彙總計算()
153
-    End Sub
154
-    Private Sub DateTimePicker3_ValueChanged(sender As Object, e As EventArgs) Handles DateTimePicker3.ValueChanged
155
-        Set_清單1() : Set_清單2() : 彙總計算()
156
-    End Sub
157
-    Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton1.Click
158
-        DataGridView1.Visible = True : DataGridView2.Visible = False : RadioButton1.Checked = True : RadioButton2.Checked = False
159
-        TextBox5.Text = "0" : TextBox7.Text = "0" : TextBox6.Text = "0" : TextBox10.Text = "0" : TextBox11.Text = "0" : DataGridView4.Enabled = True
160
-    End Sub
161
-    Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton2.Click
162
-        DataGridView1.Visible = False : DataGridView2.Visible = True : RadioButton1.Checked = False : RadioButton2.Checked = True
163
-        TextBox1.Text = "" : TextBox3.Text = "" : TextBox4.Text = "" : DataGridView1.DataSource = Nothing : ds.Clear() : DataGridView4.Enabled = False
164
-        彙總計算()
165
-    End Sub
166
-    Private Sub TextBox14_TextChanged(sender As Object, e As EventArgs) Handles TextBox14.TextChanged
167
-        PA = TextBox14.Text : SQL_使用者權限圖片顯示()
168
-        While dr.Read() = True
169
-            Dim unused As Byte() = New Byte(-1) {}
170
-            Dim bytes As Byte() = DirectCast(dr.Item("簽名檔圖片"), Byte())
171
-            Dim oStream As New MemoryStream(bytes)
172
-            PictureBox1.Image = Bitmap.FromStream(oStream)
173
-        End While
174
-        conn.Close() : PictureBox1.SizeMode = 4
175
-    End Sub
176
-    Private Sub 會計月_CheckedChanged(sender As Object, e As EventArgs) Handles 會計月.Click
177
-        會計月.Checked = True : 一般月.Checked = False : 日期格式()
178
-    End Sub
179
-    Private Sub 一般月_CheckedChanged(sender As Object, e As EventArgs) Handles 一般月.Click
180
-        會計月.Checked = False : 一般月.Checked = True : 日期格式()
181
-    End Sub
182
-    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
183
-        xlApp = CType(CreateObject("Excel.Application"), Application)
184
-        xlBook = xlApp.Workbooks.Add
185
-        xlApp.DisplayAlerts = True
186
-        xlBook.Activate()
187
-        xlSheet = NewMethod(xlBook)
188
-        xlSheet.Activate()
189
-        xlApp.Visible = True
190
-        xlApp.Application.WindowState = xlMaximized
191
-
192
-        xlSheet.Cells(1, 1) = "年度" : xlSheet.Cells(1, 2) = Year(Today) - 1911
193
-        If RadioButton1.Checked = True And RadioButton2.Checked = False Then
194
-            xlSheet.Cells(1, 3) = MAOJI_ERP_SYS.ComboBox2.Text & "-營運費用收支明細表"
195
-            xlSheet.Cells(2, 1) = "收款日期" : xlSheet.Cells(2, 2) = "會計科目" : xlSheet.Cells(2, 3) = "客戶或用途"
196
-            xlSheet.Cells(2, 4) = "零用金" : xlSheet.Cells(2, 5) = "支票" : xlSheet.Cells(2, 6) = "現金" : xlSheet.Cells(2, 7) = "支出" : xlSheet.Cells(2, 8) = "現金餘額" : xlSheet.Cells(2, 9) = "票期"
197
-
198
-            For i As Integer = 0 To DataGridView1.Rows.Count - 1
199
-                xlSheet.Cells(i + 3, 1) = DateTimePicker1.Value : xlSheet.Cells(i + 3, 2) = DataGridView1.Rows(i).Cells("會計科目").Value
200
-                xlSheet.Cells(i + 3, 3) = DataGridView1.Rows(i).Cells("用途").Value : xlSheet.Cells(i + 3, 4) = DataGridView1.Rows(i).Cells("零用金").Value
201
-                xlSheet.Cells(i + 3, 5) = DataGridView1.Rows(i).Cells("支票").Value : xlSheet.Cells(i + 3, 6) = DataGridView1.Rows(i).Cells("現金").Value
202
-                xlSheet.Cells(i + 3, 7) = DataGridView1.Rows(i).Cells("支出").Value : xlSheet.Cells(i + 3, 9) = DataGridView1.Rows(i).Cells("票期").Value
203
-                If i = 0 Then
204
-                    xlSheet.Cells(i + 3, 8) = "=D3+F3-G3"
205
-                Else
206
-                    xlSheet.Cells(i + 3, 8) = "=H" & i + 2 & "+D" & i + 3 & "+F" & i + 3 & "-G" & i + 3 & ""
207
-                End If
208
-                With xlApp.Selection
209
-                    .Font.Bold = True
210
-                End With
211
-                N1 = i + 3 : N2 = i + 3
212
-            Next i
213
-            xlSheet.Cells(N1 + 1, 3) = "以下空白" : xlSheet.Cells(N1 + 3, 1) = "簽核(點交)" : xlSheet.Cells(N1 + 3, 7) = "製表 : " & TextBox3.Text & " - " & DateTimePicker1.Value
214
-            xlSheet.Cells(N1 + 2, 4) = "=SUM(D3:D" & N1 + 1 & ")" : xlSheet.Cells(N1 + 2, 5) = "=SUM(E3:E" & N1 + 1 & ")" : xlSheet.Cells(N1 + 2, 6) = "=SUM(F3:F" & N1 + 1 & ")"
215
-            xlSheet.Cells(N1 + 2, 7) = "=SUM(G3:G" & N1 + 1 & ")" : xlSheet.Cells(N1 + 2, 8) = "=H" & N1 : xlSheet.Cells(N1 + 2, 1) = "合計"
216
-
217
-            AA(xlApp, xlSheet) : BB(xlApp, xlSheet)
218
-        ElseIf RadioButton1.Checked = False And RadioButton2.Checked = True Then
219
-            xlSheet.Cells(1, 3) = MAOJI_ERP_SYS.ComboBox2.Text & "-營運費用收支彙總簡表"
220
-            xlSheet.Cells(2, 1) = "日期" : xlSheet.Cells(2, 2) = "主項" : xlSheet.Cells(2, 3) = "子項" : xlSheet.Cells(2, 4) = "子細項" : xlSheet.Cells(2, 5) = "零用金"
221
-            xlSheet.Cells(2, 6) = "支票" : xlSheet.Cells(2, 7) = "現金" : xlSheet.Cells(2, 8) = "支出" : xlSheet.Cells(2, 9) = "現金餘額"
222
-
223
-            For i As Integer = 0 To DataGridView2.Rows.Count - 1
224
-                xlSheet.Cells(i + 3, 1) = DataGridView2.Rows(i).Cells("日期").Value
225
-                xlSheet.Cells(i + 3, 2) = DataGridView2.Rows(i).Cells("主項").Value
226
-                xlSheet.Cells(i + 3, 3) = DataGridView2.Rows(i).Cells("子項").Value
227
-                xlSheet.Cells(i + 3, 4) = DataGridView2.Rows(i).Cells("子細項").Value
228
-                xlSheet.Cells(i + 3, 5) = DataGridView2.Rows(i).Cells("零用金").Value
229
-                xlSheet.Cells(i + 3, 6) = DataGridView2.Rows(i).Cells("支票").Value
230
-                xlSheet.Cells(i + 3, 7) = DataGridView2.Rows(i).Cells("現金").Value
231
-                xlSheet.Cells(i + 3, 8) = DataGridView2.Rows(i).Cells("支出").Value
232
-                If i = 0 Then
233
-                    xlSheet.Cells(i + 3, 9) = "=E3+G3-H3"
234
-                Else
235
-                    xlSheet.Cells(i + 3, 9) = "=I" & i + 2 & "+E" & i + 3 & "+G" & i + 3 & "-H" & i + 3 & ""
236
-                End If
237
-                With xlApp.Selection
238
-                    .Font.Bold = True
239
-                End With
240
-                N1 = i + 3 : N2 = i + 3
241
-            Next i
242
-            xlSheet.Cells(N1 + 1, 2) = "以下空白" : xlSheet.Cells(N1 + 3, 1) = "簽核" : xlSheet.Cells(N1 + 3, 5) = "製表 : " & gUserName & " - " & Today()
243
-            xlSheet.Cells(N1 + 2, 5) = "=SUM(E3:E" & N1 + 1 & ")" : xlSheet.Cells(N1 + 2, 6) = "=SUM(F3:F" & N1 + 1 & ")" : xlSheet.Cells(N1 + 2, 7) = "=SUM(G3:G" & N1 + 1 & ")"
244
-            xlSheet.Cells(N1 + 2, 8) = "=SUM(H3:H" & N1 + 1 & ")" : xlSheet.Cells(N1 + 2, 9) = "=I" & N1 : xlSheet.Cells(N1 + 2, 1) = "合計"
245
-
246
-            CC(xlApp, xlSheet)
247
-        End If
248
-
249
-        xlSheet.PageSetup.PrintArea = ""
250
-        xlApp.Cells.Select()
251
-        xlSheet.Range("B1").Select()
252
-        xlApp.Application.WindowState = xlMinimized
253
-        xlSheet.Cells.Select()
254
-        xlApp.ActiveSheet.Protect(DrawingObjects:=True, Contents:=True, Scenarios:=True, Password:="0911274990")
255
-        xlApp.ActiveSheet.EnableSelection = 1
256
-        MsgBox("列印完成。")
257
-    End Sub
258
-    Private Shared Function NewMethod(xlBook As Workbook) As Worksheet
259
-        Return CType(xlBook.Worksheets.Add, Worksheet)
260
-    End Function
261
-    Private Sub AA(ByVal myExcel As Application, ByVal xlSheet As Worksheet)
262
-        xlSheet.Cells.Select()
263
-        With myExcel.Selection.Font : .Name = "微軟正黑體" : .Size = 10 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False
264
-            .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
265
-        End With
266
-
267
-        xlSheet.Columns("A:A").Select : myExcel.Selection.NumberFormatLocal = "m/d;@"
268
-        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
269
-            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
270
-        End With
271
-
272
-        xlSheet.Range("B1").Select()
273
-        With myExcel.Selection : .HorizontalAlignment = xlLeft : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
274
-            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
275
-        End With
276
-
277
-        xlSheet.Columns("B:B").Select : myExcel.Selection.ColumnWidth = 25
278
-        xlSheet.Columns("C:C").Select : myExcel.Selection.ColumnWidth = 30
279
-        xlSheet.Columns("D:H").Select : myExcel.Selection.ColumnWidth = 10 : myExcel.Selection.NumberFormatLocal = "#,##0;[紅色]-#,##0"
280
-        xlSheet.Columns("I:I").Select : myExcel.Selection.ColumnWidth = 10 : myExcel.Selection.NumberFormatLocal = "[$-zh-TW]e/m/d;@"
281
-        xlSheet.Rows("2:2").Select : myExcel.Selection.RowHeight = 25
282
-
283
-        xlSheet.Range("A2:I2").Select()
284
-        With myExcel.Selection : .HorizontalAlignment = xlGeneral : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
285
-            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
286
-        End With
287
-        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
288
-            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
289
-        End With
290
-
291
-        xlSheet.Range("A2:I" & N1 + 2).Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
292
-        With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
293
-        With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
294
-        With myExcel.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
295
-        With myExcel.Selection.Borders(xlEdgeRight) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
296
-        With myExcel.Selection.Borders(xlInsideVertical) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
297
-        With myExcel.Selection.Borders(xlInsideHorizontal) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
298
-        myExcel.ActiveWindow.DisplayGridlines = False
299
-
300
-        xlSheet.Rows("3:" & N1 + 2).Select : myExcel.Selection.RowHeight = 20
301
-        xlSheet.Rows(N1 + 3 & ":" & N1 + 3).Select : myExcel.Selection.RowHeight = 40
302
-
303
-        xlSheet.Columns("I:I").Select
304
-        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
305
-            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
306
-        End With
307
-
308
-        xlSheet.Range("A" & N1 + 2 & ":C" & N1 + 2).Select() : myExcel.Selection.Merge
309
-        With myExcel.Selection : .HorizontalAlignment = xlRight : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
310
-            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = True
311
-        End With
312
-
313
-        xlSheet.Rows("1:1").Select : myExcel.Selection.RowHeight = 25
314
-        With myExcel.Selection.Font : .Name = "微軟正黑體" : .Size = 14 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False
315
-            .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
316
-        End With
317
-    End Sub
318
-    Private Sub BB(ByVal myExcel As Application, ByVal xlSheet As Worksheet)
319
-        Clipboard.SetDataObject(PictureBox1.Image)
320
-        xlSheet.Range("B" & N2 + 3).Select()
321
-        myExcel.ActiveSheet.Pictures.Paste.Select
322
-        myExcel.Selection.ShapeRange.Height = 43
323
-        myExcel.Selection.ShapeRange.IncrementTop(3)
324
-    End Sub
325
-    Private Sub CC(ByVal myExcel As Application, ByVal xlSheet As Worksheet)
326
-        xlSheet.Cells.Select()
327
-        With myExcel.Selection.Font : .Name = "微軟正黑體" : .Size = 10 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False
328
-            .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
329
-        End With
330
-
331
-        xlSheet.Columns("A:A").Select : myExcel.Selection.ColumnWidth = 8
332
-        xlSheet.Columns("B:C").Select : myExcel.Selection.ColumnWidth = 15
333
-        xlSheet.Columns("D:D").Select : myExcel.Selection.ColumnWidth = 20
334
-        xlSheet.Columns("E:I").Select : myExcel.Selection.ColumnWidth = 10 : myExcel.Selection.NumberFormatLocal = "#,##0;[紅色]-#,##0"
335
-        xlSheet.Rows("1:1").Select : myExcel.Selection.RowHeight = 25
336
-        xlSheet.Rows("2:2").Select : myExcel.Selection.RowHeight = 25
337
-        xlSheet.Rows("3:" & N1 + 2).Select : myExcel.Selection.RowHeight = 20
338
-        xlSheet.Rows(N1 + 3 & ":" & N1 + 3).Select : myExcel.Selection.RowHeight = 40
339
-
340
-        xlSheet.Rows("2:2").Select
341
-        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
342
-            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
343
-        End With
344
-
345
-        xlSheet.Range("A1").Select()
346
-        With myExcel.Selection : .HorizontalAlignment = xlRight : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
347
-            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
348
-        End With
349
-
350
-        xlSheet.Range("B1").Select()
351
-        With myExcel.Selection : .HorizontalAlignment = xlLeft : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
352
-            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
353
-        End With
354
-
355
-        xlSheet.Rows("1:1").Select
356
-        With myExcel.Selection.Font : .Name = "微軟正黑體" : .Size = 16 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False
357
-            .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
358
-        End With
359
-
360
-        xlSheet.Range("A2:I" & N1 + 2).Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
361
-        With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
362
-        With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
363
-        With myExcel.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
364
-        With myExcel.Selection.Borders(xlEdgeRight) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
365
-        With myExcel.Selection.Borders(xlInsideVertical) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
366
-        With myExcel.Selection.Borders(xlInsideHorizontal) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
367
-
368
-        xlSheet.Range("A" & N1 + 2 & ":D" & N1 + 2).Select() : myExcel.Selection.Merge
369
-        With myExcel.Selection : .HorizontalAlignment = xlRight : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
370
-            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = True
371
-        End With
372
-
373
-        xlSheet.Columns("E:I").Select : myExcel.Selection.NumberFormatLocal = "#,##0;[紅色]-#,##0"
374
-        myExcel.ActiveWindow.DisplayGridlines = False
375
-    End Sub
376
-    '----------------------滑鼠右鍵--------------------------------------------------------------------------------------------------------------------------------------------------------------------
377
-    Private Sub 重新讀取ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 重新讀取ToolStripMenuItem.Click
378
-        Set_清單1() : Set_清單2() : 彙總計算()
379
-    End Sub
380
-End Class

+ 0
- 480
MaoOrange-Hongji/財務系統管理/營運成本收支單審核.Designer.vb Просмотреть файл

@@ -1,480 +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
-        Me.components = New System.ComponentModel.Container()
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
-        Me.Button2 = New System.Windows.Forms.Button()
30
-        Me.Button1 = New System.Windows.Forms.Button()
31
-        Me.DataGridView1 = New System.Windows.Forms.DataGridView()
32
-        Me.RadioButton2 = New System.Windows.Forms.RadioButton()
33
-        Me.RadioButton1 = New System.Windows.Forms.RadioButton()
34
-        Me.DataGridView2 = New System.Windows.Forms.DataGridView()
35
-        Me.TextBox5 = New System.Windows.Forms.TextBox()
36
-        Me.Label8 = New System.Windows.Forms.Label()
37
-        Me.Label3 = New System.Windows.Forms.Label()
38
-        Me.TextBox3 = New System.Windows.Forms.TextBox()
39
-        Me.TextBox1 = New System.Windows.Forms.TextBox()
40
-        Me.Label1 = New System.Windows.Forms.Label()
41
-        Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
42
-        Me.重新讀取ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
43
-        Me.ToolStripSeparator6 = New System.Windows.Forms.ToolStripSeparator()
44
-        Me.審核通過ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
45
-        Me.單據作廢ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
46
-        Me.CheckBox1 = New System.Windows.Forms.CheckBox()
47
-        Me.Label2 = New System.Windows.Forms.Label()
48
-        Me.DateTimePicker1 = New System.Windows.Forms.DateTimePicker()
49
-        Me.TextBox6 = New System.Windows.Forms.TextBox()
50
-        Me.Label9 = New System.Windows.Forms.Label()
51
-        Me.TextBox2 = New System.Windows.Forms.TextBox()
52
-        Me.Label6 = New System.Windows.Forms.Label()
53
-        Me.TextBox8 = New System.Windows.Forms.TextBox()
54
-        Me.Label11 = New System.Windows.Forms.Label()
55
-        Me.TextBox7 = New System.Windows.Forms.TextBox()
56
-        Me.Label10 = New System.Windows.Forms.Label()
57
-        Me.TextBox14 = New System.Windows.Forms.TextBox()
58
-        Me.TextBox13 = New System.Windows.Forms.TextBox()
59
-        Me.Label20 = New System.Windows.Forms.Label()
60
-        Me.Label19 = New System.Windows.Forms.Label()
61
-        Me.PictureBox1 = New System.Windows.Forms.PictureBox()
62
-        Me.DataGridView3 = New System.Windows.Forms.DataGridView()
63
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
64
-        CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).BeginInit()
65
-        Me.ContextMenuStrip1.SuspendLayout()
66
-        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
67
-        CType(Me.DataGridView3, System.ComponentModel.ISupportInitialize).BeginInit()
68
-        Me.SuspendLayout()
69
-        '
70
-        'Button2
71
-        '
72
-        Me.Button2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
73
-        Me.Button2.ForeColor = System.Drawing.Color.Red
74
-        Me.Button2.Location = New System.Drawing.Point(1178, 3)
75
-        Me.Button2.Name = "Button2"
76
-        Me.Button2.Size = New System.Drawing.Size(65, 49)
77
-        Me.Button2.TabIndex = 825
78
-        Me.Button2.Text = "單據作廢"
79
-        Me.Button2.UseVisualStyleBackColor = True
80
-        '
81
-        'Button1
82
-        '
83
-        Me.Button1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
84
-        Me.Button1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
85
-        Me.Button1.Location = New System.Drawing.Point(1110, 3)
86
-        Me.Button1.Name = "Button1"
87
-        Me.Button1.Size = New System.Drawing.Size(65, 49)
88
-        Me.Button1.TabIndex = 824
89
-        Me.Button1.Text = "審核通過"
90
-        Me.Button1.UseVisualStyleBackColor = True
91
-        '
92
-        'DataGridView1
93
-        '
94
-        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
95
-        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
96
-        Me.DataGridView1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
97
-            Or System.Windows.Forms.AnchorStyles.Left) _
98
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
99
-        Me.DataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
100
-        Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
101
-        Me.DataGridView1.Location = New System.Drawing.Point(327, 55)
102
-        Me.DataGridView1.Name = "DataGridView1"
103
-        Me.DataGridView1.RowHeadersWidth = 5
104
-        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
105
-        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle2
106
-        Me.DataGridView1.RowTemplate.Height = 24
107
-        Me.DataGridView1.Size = New System.Drawing.Size(916, 549)
108
-        Me.DataGridView1.TabIndex = 823
109
-        '
110
-        'RadioButton2
111
-        '
112
-        Me.RadioButton2.AutoSize = True
113
-        Me.RadioButton2.Location = New System.Drawing.Point(170, 3)
114
-        Me.RadioButton2.Name = "RadioButton2"
115
-        Me.RadioButton2.Size = New System.Drawing.Size(146, 20)
116
-        Me.RadioButton2.TabIndex = 816
117
-        Me.RadioButton2.TabStop = True
118
-        Me.RadioButton2.Text = "作廢的營運成本收支單"
119
-        Me.RadioButton2.UseVisualStyleBackColor = True
120
-        '
121
-        'RadioButton1
122
-        '
123
-        Me.RadioButton1.AutoSize = True
124
-        Me.RadioButton1.Location = New System.Drawing.Point(6, 3)
125
-        Me.RadioButton1.Name = "RadioButton1"
126
-        Me.RadioButton1.Size = New System.Drawing.Size(158, 20)
127
-        Me.RadioButton1.TabIndex = 815
128
-        Me.RadioButton1.TabStop = True
129
-        Me.RadioButton1.Text = "未核准的營運成本收支單"
130
-        Me.RadioButton1.UseVisualStyleBackColor = True
131
-        '
132
-        'DataGridView2
133
-        '
134
-        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
135
-        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
136
-        Me.DataGridView2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
137
-            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
138
-        Me.DataGridView2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
139
-        Me.DataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
140
-        Me.DataGridView2.Location = New System.Drawing.Point(6, 27)
141
-        Me.DataGridView2.Name = "DataGridView2"
142
-        Me.DataGridView2.RowHeadersWidth = 5
143
-        Me.DataGridView2.RowTemplate.Height = 24
144
-        Me.DataGridView2.Size = New System.Drawing.Size(315, 499)
145
-        Me.DataGridView2.TabIndex = 811
146
-        '
147
-        'TextBox5
148
-        '
149
-        Me.TextBox5.Location = New System.Drawing.Point(671, 29)
150
-        Me.TextBox5.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
151
-        Me.TextBox5.Name = "TextBox5"
152
-        Me.TextBox5.Size = New System.Drawing.Size(113, 23)
153
-        Me.TextBox5.TabIndex = 850
154
-        Me.TextBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
155
-        '
156
-        'Label8
157
-        '
158
-        Me.Label8.AutoSize = True
159
-        Me.Label8.Location = New System.Drawing.Point(637, 32)
160
-        Me.Label8.Name = "Label8"
161
-        Me.Label8.Size = New System.Drawing.Size(32, 16)
162
-        Me.Label8.TabIndex = 849
163
-        Me.Label8.Text = "現金"
164
-        '
165
-        'Label3
166
-        '
167
-        Me.Label3.AutoSize = True
168
-        Me.Label3.Location = New System.Drawing.Point(552, 6)
169
-        Me.Label3.Name = "Label3"
170
-        Me.Label3.Size = New System.Drawing.Size(44, 16)
171
-        Me.Label3.TabIndex = 848
172
-        Me.Label3.Text = "申請人"
173
-        '
174
-        'TextBox3
175
-        '
176
-        Me.TextBox3.Location = New System.Drawing.Point(597, 3)
177
-        Me.TextBox3.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
178
-        Me.TextBox3.Name = "TextBox3"
179
-        Me.TextBox3.Size = New System.Drawing.Size(92, 23)
180
-        Me.TextBox3.TabIndex = 847
181
-        '
182
-        'TextBox1
183
-        '
184
-        Me.TextBox1.Location = New System.Drawing.Point(429, 3)
185
-        Me.TextBox1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
186
-        Me.TextBox1.Name = "TextBox1"
187
-        Me.TextBox1.Size = New System.Drawing.Size(122, 23)
188
-        Me.TextBox1.TabIndex = 845
189
-        '
190
-        'Label1
191
-        '
192
-        Me.Label1.AutoSize = True
193
-        Me.Label1.Location = New System.Drawing.Point(324, 6)
194
-        Me.Label1.Name = "Label1"
195
-        Me.Label1.Size = New System.Drawing.Size(104, 16)
196
-        Me.Label1.TabIndex = 846
197
-        Me.Label1.Text = "營運成本收支單號"
198
-        '
199
-        'ContextMenuStrip1
200
-        '
201
-        Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.重新讀取ToolStripMenuItem, Me.ToolStripSeparator6, Me.審核通過ToolStripMenuItem, Me.單據作廢ToolStripMenuItem})
202
-        Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
203
-        Me.ContextMenuStrip1.Size = New System.Drawing.Size(123, 76)
204
-        '
205
-        '重新讀取ToolStripMenuItem
206
-        '
207
-        Me.重新讀取ToolStripMenuItem.Name = "重新讀取ToolStripMenuItem"
208
-        Me.重新讀取ToolStripMenuItem.Size = New System.Drawing.Size(122, 22)
209
-        Me.重新讀取ToolStripMenuItem.Text = "重新讀取"
210
-        '
211
-        'ToolStripSeparator6
212
-        '
213
-        Me.ToolStripSeparator6.Name = "ToolStripSeparator6"
214
-        Me.ToolStripSeparator6.Size = New System.Drawing.Size(119, 6)
215
-        '
216
-        '審核通過ToolStripMenuItem
217
-        '
218
-        Me.審核通過ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
219
-        Me.審核通過ToolStripMenuItem.Name = "審核通過ToolStripMenuItem"
220
-        Me.審核通過ToolStripMenuItem.Size = New System.Drawing.Size(122, 22)
221
-        Me.審核通過ToolStripMenuItem.Text = "審核通過"
222
-        '
223
-        '單據作廢ToolStripMenuItem
224
-        '
225
-        Me.單據作廢ToolStripMenuItem.ForeColor = System.Drawing.Color.Red
226
-        Me.單據作廢ToolStripMenuItem.Name = "單據作廢ToolStripMenuItem"
227
-        Me.單據作廢ToolStripMenuItem.Size = New System.Drawing.Size(122, 22)
228
-        Me.單據作廢ToolStripMenuItem.Text = "單據作廢"
229
-        '
230
-        'CheckBox1
231
-        '
232
-        Me.CheckBox1.AutoSize = True
233
-        Me.CheckBox1.Checked = True
234
-        Me.CheckBox1.CheckState = System.Windows.Forms.CheckState.Checked
235
-        Me.CheckBox1.Location = New System.Drawing.Point(833, 5)
236
-        Me.CheckBox1.Name = "CheckBox1"
237
-        Me.CheckBox1.Size = New System.Drawing.Size(39, 20)
238
-        Me.CheckBox1.TabIndex = 882
239
-        Me.CheckBox1.Text = "補"
240
-        Me.CheckBox1.UseVisualStyleBackColor = True
241
-        '
242
-        'Label2
243
-        '
244
-        Me.Label2.AutoSize = True
245
-        Me.Label2.ForeColor = System.Drawing.Color.Blue
246
-        Me.Label2.Location = New System.Drawing.Point(691, 6)
247
-        Me.Label2.Name = "Label2"
248
-        Me.Label2.Size = New System.Drawing.Size(32, 16)
249
-        Me.Label2.TabIndex = 881
250
-        Me.Label2.Text = "日期"
251
-        '
252
-        'DateTimePicker1
253
-        '
254
-        Me.DateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
255
-        Me.DateTimePicker1.Location = New System.Drawing.Point(730, 3)
256
-        Me.DateTimePicker1.Name = "DateTimePicker1"
257
-        Me.DateTimePicker1.Size = New System.Drawing.Size(97, 23)
258
-        Me.DateTimePicker1.TabIndex = 880
259
-        '
260
-        'TextBox6
261
-        '
262
-        Me.TextBox6.Location = New System.Drawing.Point(994, 29)
263
-        Me.TextBox6.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
264
-        Me.TextBox6.Name = "TextBox6"
265
-        Me.TextBox6.Size = New System.Drawing.Size(113, 23)
266
-        Me.TextBox6.TabIndex = 887
267
-        Me.TextBox6.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
268
-        '
269
-        'Label9
270
-        '
271
-        Me.Label9.AutoSize = True
272
-        Me.Label9.Location = New System.Drawing.Point(935, 32)
273
-        Me.Label9.Name = "Label9"
274
-        Me.Label9.Size = New System.Drawing.Size(56, 16)
275
-        Me.Label9.TabIndex = 886
276
-        Me.Label9.Text = "現金餘額"
277
-        '
278
-        'TextBox2
279
-        '
280
-        Me.TextBox2.Location = New System.Drawing.Point(820, 29)
281
-        Me.TextBox2.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
282
-        Me.TextBox2.Name = "TextBox2"
283
-        Me.TextBox2.Size = New System.Drawing.Size(113, 23)
284
-        Me.TextBox2.TabIndex = 885
285
-        Me.TextBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
286
-        '
287
-        'Label6
288
-        '
289
-        Me.Label6.AutoSize = True
290
-        Me.Label6.Location = New System.Drawing.Point(786, 32)
291
-        Me.Label6.Name = "Label6"
292
-        Me.Label6.Size = New System.Drawing.Size(32, 16)
293
-        Me.Label6.TabIndex = 884
294
-        Me.Label6.Text = "支出"
295
-        '
296
-        'TextBox8
297
-        '
298
-        Me.TextBox8.Location = New System.Drawing.Point(522, 29)
299
-        Me.TextBox8.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
300
-        Me.TextBox8.Name = "TextBox8"
301
-        Me.TextBox8.Size = New System.Drawing.Size(113, 23)
302
-        Me.TextBox8.TabIndex = 891
303
-        Me.TextBox8.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
304
-        '
305
-        'Label11
306
-        '
307
-        Me.Label11.AutoSize = True
308
-        Me.Label11.Location = New System.Drawing.Point(488, 32)
309
-        Me.Label11.Name = "Label11"
310
-        Me.Label11.Size = New System.Drawing.Size(32, 16)
311
-        Me.Label11.TabIndex = 890
312
-        Me.Label11.Text = "支票"
313
-        '
314
-        'TextBox7
315
-        '
316
-        Me.TextBox7.Location = New System.Drawing.Point(373, 29)
317
-        Me.TextBox7.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
318
-        Me.TextBox7.Name = "TextBox7"
319
-        Me.TextBox7.Size = New System.Drawing.Size(113, 23)
320
-        Me.TextBox7.TabIndex = 889
321
-        Me.TextBox7.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
322
-        '
323
-        'Label10
324
-        '
325
-        Me.Label10.AutoSize = True
326
-        Me.Label10.Location = New System.Drawing.Point(327, 32)
327
-        Me.Label10.Name = "Label10"
328
-        Me.Label10.Size = New System.Drawing.Size(44, 16)
329
-        Me.Label10.TabIndex = 888
330
-        Me.Label10.Text = "零用金"
331
-        '
332
-        'TextBox14
333
-        '
334
-        Me.TextBox14.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
335
-        Me.TextBox14.ForeColor = System.Drawing.Color.Blue
336
-        Me.TextBox14.Location = New System.Drawing.Point(222, 530)
337
-        Me.TextBox14.Name = "TextBox14"
338
-        Me.TextBox14.Size = New System.Drawing.Size(99, 23)
339
-        Me.TextBox14.TabIndex = 964
340
-        Me.TextBox14.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
341
-        '
342
-        'TextBox13
343
-        '
344
-        Me.TextBox13.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
345
-        Me.TextBox13.ForeColor = System.Drawing.Color.Blue
346
-        Me.TextBox13.Location = New System.Drawing.Point(47, 530)
347
-        Me.TextBox13.Name = "TextBox13"
348
-        Me.TextBox13.Size = New System.Drawing.Size(120, 23)
349
-        Me.TextBox13.TabIndex = 963
350
-        Me.TextBox13.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
351
-        '
352
-        'Label20
353
-        '
354
-        Me.Label20.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
355
-        Me.Label20.AutoSize = True
356
-        Me.Label20.ForeColor = System.Drawing.Color.Blue
357
-        Me.Label20.Location = New System.Drawing.Point(168, 533)
358
-        Me.Label20.Name = "Label20"
359
-        Me.Label20.Size = New System.Drawing.Size(56, 16)
360
-        Me.Label20.TabIndex = 962
361
-        Me.Label20.Text = "圖片編碼"
362
-        '
363
-        'Label19
364
-        '
365
-        Me.Label19.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
366
-        Me.Label19.AutoSize = True
367
-        Me.Label19.ForeColor = System.Drawing.Color.Blue
368
-        Me.Label19.Location = New System.Drawing.Point(5, 533)
369
-        Me.Label19.Name = "Label19"
370
-        Me.Label19.Size = New System.Drawing.Size(44, 16)
371
-        Me.Label19.TabIndex = 961
372
-        Me.Label19.Text = "驗證碼"
373
-        '
374
-        'PictureBox1
375
-        '
376
-        Me.PictureBox1.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
377
-        Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
378
-        Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
379
-        Me.PictureBox1.Location = New System.Drawing.Point(192, 557)
380
-        Me.PictureBox1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
381
-        Me.PictureBox1.Name = "PictureBox1"
382
-        Me.PictureBox1.Size = New System.Drawing.Size(129, 47)
383
-        Me.PictureBox1.TabIndex = 960
384
-        Me.PictureBox1.TabStop = False
385
-        '
386
-        'DataGridView3
387
-        '
388
-        Me.DataGridView3.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
389
-        Me.DataGridView3.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
390
-        Me.DataGridView3.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
391
-        Me.DataGridView3.Location = New System.Drawing.Point(6, 557)
392
-        Me.DataGridView3.Name = "DataGridView3"
393
-        Me.DataGridView3.RowHeadersWidth = 5
394
-        Me.DataGridView3.RowTemplate.Height = 24
395
-        Me.DataGridView3.Size = New System.Drawing.Size(180, 47)
396
-        Me.DataGridView3.TabIndex = 959
397
-        '
398
-        '營運成本收支單審核
399
-        '
400
-        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
401
-        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
402
-        Me.ClientSize = New System.Drawing.Size(1249, 611)
403
-        Me.ContextMenuStrip = Me.ContextMenuStrip1
404
-        Me.Controls.Add(Me.TextBox14)
405
-        Me.Controls.Add(Me.TextBox13)
406
-        Me.Controls.Add(Me.Label20)
407
-        Me.Controls.Add(Me.Label19)
408
-        Me.Controls.Add(Me.PictureBox1)
409
-        Me.Controls.Add(Me.DataGridView3)
410
-        Me.Controls.Add(Me.Label11)
411
-        Me.Controls.Add(Me.TextBox7)
412
-        Me.Controls.Add(Me.Label10)
413
-        Me.Controls.Add(Me.TextBox6)
414
-        Me.Controls.Add(Me.Label9)
415
-        Me.Controls.Add(Me.TextBox2)
416
-        Me.Controls.Add(Me.Label6)
417
-        Me.Controls.Add(Me.CheckBox1)
418
-        Me.Controls.Add(Me.Label2)
419
-        Me.Controls.Add(Me.DateTimePicker1)
420
-        Me.Controls.Add(Me.TextBox5)
421
-        Me.Controls.Add(Me.Label8)
422
-        Me.Controls.Add(Me.Label3)
423
-        Me.Controls.Add(Me.TextBox3)
424
-        Me.Controls.Add(Me.TextBox1)
425
-        Me.Controls.Add(Me.Label1)
426
-        Me.Controls.Add(Me.Button2)
427
-        Me.Controls.Add(Me.Button1)
428
-        Me.Controls.Add(Me.DataGridView1)
429
-        Me.Controls.Add(Me.RadioButton2)
430
-        Me.Controls.Add(Me.RadioButton1)
431
-        Me.Controls.Add(Me.DataGridView2)
432
-        Me.Controls.Add(Me.TextBox8)
433
-        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
434
-        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
435
-        Me.Name = "營運成本收支單審核"
436
-        Me.Text = "營運成本收支單審核"
437
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
438
-        CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).EndInit()
439
-        Me.ContextMenuStrip1.ResumeLayout(False)
440
-        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
441
-        CType(Me.DataGridView3, System.ComponentModel.ISupportInitialize).EndInit()
442
-        Me.ResumeLayout(False)
443
-        Me.PerformLayout()
444
-
445
-    End Sub
446
-    Friend WithEvents Button2 As Button
447
-    Friend WithEvents Button1 As Button
448
-    Friend WithEvents DataGridView1 As DataGridView
449
-    Friend WithEvents RadioButton2 As RadioButton
450
-    Friend WithEvents RadioButton1 As RadioButton
451
-    Friend WithEvents DataGridView2 As DataGridView
452
-    Friend WithEvents TextBox5 As TextBox
453
-    Friend WithEvents Label8 As Label
454
-    Friend WithEvents Label3 As Label
455
-    Friend WithEvents TextBox3 As TextBox
456
-    Friend WithEvents TextBox1 As TextBox
457
-    Friend WithEvents Label1 As Label
458
-    Friend WithEvents ContextMenuStrip1 As ContextMenuStrip
459
-    Friend WithEvents 重新讀取ToolStripMenuItem As ToolStripMenuItem
460
-    Friend WithEvents ToolStripSeparator6 As ToolStripSeparator
461
-    Friend WithEvents 審核通過ToolStripMenuItem As ToolStripMenuItem
462
-    Friend WithEvents 單據作廢ToolStripMenuItem As ToolStripMenuItem
463
-    Friend WithEvents CheckBox1 As CheckBox
464
-    Friend WithEvents Label2 As Label
465
-    Friend WithEvents DateTimePicker1 As DateTimePicker
466
-    Friend WithEvents TextBox6 As TextBox
467
-    Friend WithEvents Label9 As Label
468
-    Friend WithEvents TextBox2 As TextBox
469
-    Friend WithEvents Label6 As Label
470
-    Friend WithEvents TextBox8 As TextBox
471
-    Friend WithEvents Label11 As Label
472
-    Friend WithEvents TextBox7 As TextBox
473
-    Friend WithEvents Label10 As Label
474
-    Friend WithEvents TextBox14 As TextBox
475
-    Friend WithEvents TextBox13 As TextBox
476
-    Friend WithEvents Label20 As Label
477
-    Friend WithEvents Label19 As Label
478
-    Friend WithEvents PictureBox1 As PictureBox
479
-    Friend WithEvents DataGridView3 As DataGridView
480
-End Class

+ 0
- 126
MaoOrange-Hongji/財務系統管理/營運成本收支單審核.resx Просмотреть файл

@@ -1,126 +0,0 @@
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="ContextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121
-    <value>17, 7</value>
122
-  </metadata>
123
-  <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
124
-    <value>42</value>
125
-  </metadata>
126
-</root>

+ 0
- 197
MaoOrange-Hongji/財務系統管理/營運成本收支單審核.vb Просмотреть файл

@@ -1,197 +0,0 @@
1
-Option Strict Off
2
-Imports System.IO
3
-Public Class 營運成本收支單審核
4
-    ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet
5
-    Private ReadOnly QQW(11) As String
6
-    Private II As Integer
7
-    Private Sub Set_清單1()
8
-        DataGridView2.DataSource = Nothing : ds1.Clear()
9
-        DataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
10
-        DataGridView2.ColumnHeadersHeight = 25
11
-        DataGridView2.AllowUserToAddRows = False
12
-        SQL_營運成本收支單審核清單()
13
-        da.Fill(ds1) : DataGridView2.DataSource = ds1.Tables(0) : conn.Close()
14
-
15
-        DataGridView2.Columns(0).FillWeight = 160 : DataGridView2.Columns(1).FillWeight = 100 : DataGridView2.Columns(2).FillWeight = 100 : DataGridView2.Columns(3).Visible = False
16
-    End Sub
17
-    Private Sub Set_費用清單()
18
-        DataGridView1.DataSource = Nothing : ds.Clear()
19
-        DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
20
-        DataGridView1.ColumnHeadersHeight = 25
21
-        DataGridView1.AllowUserToAddRows = False
22
-        DataGridView1.RowTemplate.Height = 35
23
-        SQL_營運成本收支單審核費用清單()
24
-        da.Fill(ds) : DataGridView1.DataSource = ds.Tables(0) : conn.Close()
25
-
26
-        DataGridView1.Columns(0).Visible = False : DataGridView1.Columns(1).FillWeight = 80 : DataGridView1.Columns(2).FillWeight = 300 : DataGridView1.Columns(3).FillWeight = 500
27
-        DataGridView1.Columns(4).FillWeight = 140 : DataGridView1.Columns(5).FillWeight = 140 : DataGridView1.Columns(6).FillWeight = 140 : DataGridView1.Columns(7).FillWeight = 140
28
-        DataGridView1.Columns(8).FillWeight = 140
29
-
30
-        DataGridView1.Columns(1).ReadOnly = True : DataGridView1.Columns(2).ReadOnly = True : DataGridView1.Columns(3).ReadOnly = True : DataGridView1.Columns(4).ReadOnly = True
31
-        DataGridView1.Columns(5).ReadOnly = True : DataGridView1.Columns(6).ReadOnly = True
32
-
33
-        DataGridView1.Columns(4).DefaultCellStyle.Format = "#,##0" : DataGridView1.Columns(5).DefaultCellStyle.Format = "#,##0" : DataGridView1.Columns(6).DefaultCellStyle.Format = "#,##0"
34
-        DataGridView1.Columns(7).DefaultCellStyle.Format = "#,##0"
35
-        DataGridView1.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(4).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
36
-        DataGridView1.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(5).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
37
-        DataGridView1.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
38
-        DataGridView1.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
39
-        DataGridView1.EditMode = DataGridViewEditMode.EditOnEnter
40
-
41
-        TextBox5.Text = "0" : TextBox2.Text = "0" : TextBox6.Text = "0" : TextBox7.Text = "0" : TextBox8.Text = "0"
42
-        For i As Integer = 0 To DataGridView1.Rows.Count - 1
43
-            TextBox5.Text = Val(TextBox5.Text) + DataGridView1.Rows(i).Cells("現金").Value : TextBox2.Text = Val(TextBox2.Text) + DataGridView1.Rows(i).Cells("支出").Value
44
-            TextBox7.Text = Val(TextBox7.Text) + DataGridView1.Rows(i).Cells("零用金").Value : TextBox8.Text = Val(TextBox8.Text) + DataGridView1.Rows(i).Cells("支票").Value
45
-        Next i
46
-        TextBox6.Text = Val(TextBox7.Text) + Val(TextBox5.Text) - Val(TextBox2.Text)
47
-        If Val(TextBox6.Text) > 0 Then : TextBox6.ForeColor = Color.Blue : Else : TextBox6.ForeColor = Color.Red : End If
48
-        TextBox5.Text = Format(Val(TextBox5.Text), "#,##0") : TextBox2.Text = Format(Val(TextBox2.Text), "#,##0") : TextBox6.Text = Format(Val(TextBox6.Text), "#,##0")
49
-        TextBox7.Text = Format(Val(TextBox7.Text), "#,##0") : TextBox8.Text = Format(Val(TextBox8.Text), "#,##0")
50
-    End Sub
51
-    Private Sub Set_清單()
52
-        DataGridView3.DataSource = Nothing : ds2.Clear()
53
-        DataGridView3.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
54
-        DataGridView3.ColumnHeadersHeight = 25
55
-        DataGridView3.AllowUserToAddRows = False
56
-        SQL_營運成本收支單審核_圖檔編碼()
57
-        da.Fill(ds2) : DataGridView3.DataSource = ds2.Tables(0) : conn.Close()
58
-
59
-        DataGridView3.Columns(0).FillWeight = 173 : DataGridView3.Columns(1).Visible = False
60
-        If DataGridView3.Rows.Count = 0 Then : Else
61
-            TextBox14.Text = DataGridView3(0, 0).Value.ToString : PA = TextBox14.Text
62
-            SQL_使用者權限圖片顯示()
63
-            While dr.Read() = True
64
-                Dim unused As Byte() = New Byte(-1) {}
65
-                Dim bytes As Byte() = DirectCast(dr.Item("簽名檔圖片"), Byte())
66
-                Dim oStream As New MemoryStream(bytes)
67
-                PictureBox1.Image = Bitmap.FromStream(oStream)
68
-            End While
69
-            conn.Close() : PictureBox1.SizeMode = 4
70
-            For QAZ = 0 To 999
71
-                QQW(0) = Strings.Right(DataGridView3(0, 0).Value.ToString, 2) : QQW(1) = Strings.Right(Year(Today), 2) : QQW(2) = Strings.Left(Year(Today), 2) : QQW(3) = Month(Today) + 9
72
-                QQW(4) = Strings.Right(QQW(0), 1) : QQW(5) = Strings.Left(QQW(0), 1) : QQW(6) = Strings.Right(QQW(1), 1) : QQW(7) = Strings.Left(QQW(1), 1) : QQW(8) = Strings.Right(QQW(2), 1)
73
-                QQW(9) = Strings.Left(QQW(2), 1) : QQW(10) = Strings.Right(QQW(3), 1) : QQW(11) = Strings.Left(QQW(3), 1)
74
-                For RT = 4 To 11
75
-                    Delay(3)
76
-                    Dim ran = New Random(DateTime.Now.Millisecond) : Dim NUM1 As Integer = ran.Next(1, 4096)
77
-                    For I = 0 To 4096 : If NUM1 > 9 Then : NUM1 -= 9 : ElseIf NUM1 < 9 Then : I = 4096 : End If : Next
78
-                    If NUM1 = 1 Then : II = RT : 轉換() : ElseIf NUM1 = 2 Then : II = RT : 轉換() : ElseIf NUM1 = 3 Then : ElseIf NUM1 = 4 Then : II = RT : 轉換() : ElseIf NUM1 = 5 Then
79
-                    ElseIf NUM1 = 6 Then : II = RT : 轉換() : ElseIf NUM1 = 7 Then : ElseIf NUM1 = 8 Then : II = RT : 轉換() : ElseIf NUM1 = 9 Then : II = RT : 轉換() : End If
80
-                Next
81
-
82
-                Dim ran1 = New Random(DateTime.Now.Millisecond) : Dim NUM2 As Integer = ran1.Next(1, 4096)
83
-                For I = 0 To 4096 : If NUM2 > 99 Then : NUM2 -= 49 : ElseIf NUM2 < 99 Then : I = 4096 : End If : Next
84
-
85
-                TextBox13.Text = QQW(11) & "2" & QQW(9) & "7" & QQW(7) & "0" & QQW(5) & QQW(4) & "1" & QQW(6) & "3" & QQW(8) & "9" & QQW(10) & NUM2
86
-
87
-                SQL_營運成本收支單審核_簽名編碼() : If dr.Read() = True Then : Else : QAZ = 999 : End If : conn.Close()
88
-            Next
89
-        End If
90
-    End Sub
91
-    Private Sub 轉換()
92
-        If QQW(II) = "1" Then : QQW(II) = "A" : ElseIf QQW(II) = "2" Then : QQW(II) = "B" : ElseIf QQW(II) = "3" Then : QQW(II) = "C" : ElseIf QQW(II) = "4" Then : QQW(II) = "D"
93
-        ElseIf QQW(II) = "5" Then : QQW(II) = "E" : ElseIf QQW(II) = "6" Then : QQW(II) = "F" : ElseIf QQW(II) = "7" Then : QQW(II) = "G" : ElseIf QQW(II) = "8" Then : QQW(II) = "H"
94
-        ElseIf QQW(II) = "9" Then : QQW(II) = "I" : ElseIf QQW(II) = "0" Then : QQW(II) = "J" : End If
95
-    End Sub
96
-    Public Sub Delay(ByRef Interval As Double)  'Interval单位为毫秒
97
-        Dim time As DateTime = DateTime.Now : Dim Span As Double = Interval * 1234 : While ((DateTime.Now.Ticks - time.Ticks) < Span) : Application.DoEvents() : End While
98
-    End Sub
99
-    Private Sub 營運費用支付審核_Load(sender As Object, e As EventArgs) Handles MyBase.Load
100
-        Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
101
-        RadioButton1.Checked = True : DataGridView2.Visible = True
102
-        Set_清單1() : Set_清單()
103
-    End Sub
104
-    Private Sub DataGridView2_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView2.CellClick
105
-        If e.RowIndex = -1 Then : Else
106
-            TextBox1.Text = DataGridView2(0, e.RowIndex).Value.ToString : DateTimePicker1.Value = DataGridView2(1, e.RowIndex).Value.ToString : Set_費用清單()
107
-            TextBox3.Text = DataGridView2(3, e.RowIndex).Value.ToString
108
-        End If
109
-    End Sub
110
-    Private Sub DataGridView3_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView3.CellClick
111
-        If e.RowIndex = -1 Then : Else
112
-            TextBox14.Text = DataGridView3(0, e.RowIndex).Value.ToString : PA = TextBox14.Text
113
-            SQL_使用者權限圖片顯示()
114
-            While dr.Read() = True
115
-                Dim unused As Byte() = New Byte(-1) {}
116
-                Dim bytes As Byte() = DirectCast(dr.Item("簽名檔圖片"), Byte())
117
-                Dim oStream As New MemoryStream(bytes)
118
-                PictureBox1.Image = Bitmap.FromStream(oStream)
119
-            End While
120
-            conn.Close()
121
-            PictureBox1.SizeMode = 4
122
-            For QAZ = 0 To 999
123
-                QQW(0) = Strings.Right(DataGridView3(0, e.RowIndex).Value.ToString, 2) : QQW(1) = Strings.Right(Year(Today), 2) : QQW(2) = Strings.Left(Year(Today), 2) : QQW(3) = Month(Today) + 9
124
-                QQW(4) = Strings.Right(QQW(0), 1) : QQW(5) = Strings.Left(QQW(0), 1) : QQW(6) = Strings.Right(QQW(1), 1) : QQW(7) = Strings.Left(QQW(1), 1) : QQW(8) = Strings.Right(QQW(2), 1)
125
-                QQW(9) = Strings.Left(QQW(2), 1) : QQW(10) = Strings.Right(QQW(3), 1) : QQW(11) = Strings.Left(QQW(3), 1)
126
-                For RT = 4 To 11
127
-                    Delay(3)
128
-                    Dim ran = New Random(DateTime.Now.Millisecond) : Dim NUM1 As Integer = ran.Next(1, 4096)
129
-                    For I = 0 To 4096 : If NUM1 > 9 Then : NUM1 -= 9 : ElseIf NUM1 < 9 Then : I = 4096 : End If : Next
130
-                    If NUM1 = 1 Then : II = RT : 轉換() : ElseIf NUM1 = 2 Then : II = RT : 轉換() : ElseIf NUM1 = 3 Then : ElseIf NUM1 = 4 Then : II = RT : 轉換() : ElseIf NUM1 = 5 Then
131
-                    ElseIf NUM1 = 6 Then : II = RT : 轉換() : ElseIf NUM1 = 7 Then : ElseIf NUM1 = 8 Then : II = RT : 轉換() : ElseIf NUM1 = 9 Then : II = RT : 轉換() : End If
132
-                Next
133
-
134
-                Dim ran1 = New Random(DateTime.Now.Millisecond) : Dim NUM2 As Integer = ran1.Next(1, 4096)
135
-                For I = 0 To 4096 : If NUM2 > 99 Then : NUM2 -= 49 : ElseIf NUM2 < 99 Then : I = 4096 : End If : Next
136
-
137
-                TextBox13.Text = QQW(11) & "2" & QQW(9) & "7" & QQW(7) & "0" & QQW(5) & QQW(4) & "1" & QQW(6) & "3" & QQW(8) & "9" & QQW(10) & NUM2
138
-
139
-                SQL_營運成本收支單審核_簽名編碼() : If dr.Read() = True Then : Else : QAZ = 999 : End If : conn.Close()
140
-            Next
141
-        End If
142
-    End Sub
143
-    Private Sub Set_切換格式()
144
-        DataGridView1.DataSource = Nothing : ds.Clear() : TextBox1.Text = "" : TextBox3.Text = "" : TextBox5.Text = "" : TextBox2.Text = "" : TextBox6.Text = ""
145
-        TextBox7.Text = "" : TextBox8.Text = "" : Set_清單1()
146
-    End Sub
147
-    Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton1.Click
148
-        RadioButton1.Checked = True : RadioButton2.Checked = False
149
-        DataGridView1.DataSource = Nothing : ds.Clear() : TextBox1.Text = "" : TextBox3.Text = "" : TextBox5.Text = "" : TextBox2.Text = "" : TextBox6.Text = ""
150
-        Button1.Enabled = True : Button2.Enabled = True : 審核通過ToolStripMenuItem.Enabled = True : 單據作廢ToolStripMenuItem.Enabled = True : Set_切換格式()
151
-    End Sub
152
-    Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton2.Click
153
-        RadioButton1.Checked = False : RadioButton2.Checked = True
154
-        DataGridView1.DataSource = Nothing : ds.Clear() : TextBox1.Text = "" : TextBox3.Text = "" : TextBox5.Text = "" : TextBox2.Text = "" : TextBox6.Text = ""
155
-        Button1.Enabled = False : Button2.Enabled = False : 審核通過ToolStripMenuItem.Enabled = False : 單據作廢ToolStripMenuItem.Enabled = False : Set_切換格式()
156
-    End Sub
157
-    Private Sub Set_日期格式轉換()
158
-        DTP = Format(Today(), "yyyy/MM/dd")
159
-    End Sub
160
-    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
161
-        If TextBox1.Text = "" Then : MsgBox("請選擇需要審核的單據。")
162
-        Else
163
-            If CheckBox1.Checked = False Then : Set_日期格式轉換() : Else : DTP = Format(DateTimePicker1.Value, "yyyy/MM/dd") : End If
164
-            SQL_營運成本收支單審核_控制表修改() : conn.Close()
165
-            SQL_營運成本收支單審核_明細表修改() : conn.Close()
166
-            For i As Integer = 0 To DataGridView1.Rows.Count - 1
167
-                PA1 = TextBox1.Text : PA2 = DataGridView1.Rows(i).Cells("項次").Value
168
-                If DataGridView1.Rows(i).Cells("零用金").Value <> 0 Then : SQL_營運成本收支單審核_明細表_備用金確認() : conn.Close()
169
-                ElseIf DataGridView1.Rows(i).Cells("現金").Value <> 0 Then : SQL_營運成本收支單審核_明細表_現金確認() : conn.Close()
170
-                ElseIf DataGridView1.Rows(i).Cells("支出").Value <> 0 Then : SQL_營運成本收支單審核_明細表_公帳確認() : conn.Close() : End If
171
-            Next
172
-            MsgBox("審核完畢。") : TextBox1.Text = "" : TextBox3.Text = "" : DataGridView1.DataSource = Nothing : ds.Clear() : Set_清單1() : Set_清單()
173
-        End If
174
-    End Sub
175
-    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
176
-        If TextBox1.Text = "" Then : MsgBox("請選擇需要審核的單據。")
177
-        Else
178
-            PA = InputBox("請輸入作廢原因。")
179
-            If PA = "" Then : MsgBox("請輸入作廢原因,不可空白。")
180
-            Else
181
-                If CheckBox1.Checked = False Then : Set_日期格式轉換() : Else : DTP = Format(DateTimePicker1.Value, "yyyy/MM/dd") : End If
182
-                SQL_營運成本收支單審核_控制表作廢() : conn.Close()
183
-                MsgBox("審核完畢。") : PA = "" : TextBox1.Text = "" : TextBox3.Text = "" : DataGridView1.DataSource = Nothing : ds.Clear() : Set_清單1()
184
-            End If
185
-        End If
186
-    End Sub
187
-    '----------------------滑鼠右鍵--------------------------------------------------------------------------------------------------------------------------------------------------------------------
188
-    Private Sub 重新讀取ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 重新讀取ToolStripMenuItem.Click
189
-        Set_清單1()
190
-    End Sub
191
-    Private Sub 審核通過ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 審核通過ToolStripMenuItem.Click
192
-        Me.Button1.PerformClick()
193
-    End Sub
194
-    Private Sub 單據作廢ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 單據作廢ToolStripMenuItem.Click
195
-        Me.Button2.PerformClick()
196
-    End Sub
197
-End Class

+ 0
- 631
MaoOrange-Hongji/財務系統管理/營運成本收支單申請.Designer.vb Просмотреть файл

@@ -1,631 +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
-        Me.components = New System.ComponentModel.Container()
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
-        Me.ComboBox1 = New System.Windows.Forms.ComboBox()
30
-        Me.TextBox5 = New System.Windows.Forms.TextBox()
31
-        Me.Label8 = New System.Windows.Forms.Label()
32
-        Me.Label62 = New System.Windows.Forms.Label()
33
-        Me.TextBox4 = New System.Windows.Forms.TextBox()
34
-        Me.Label28 = New System.Windows.Forms.Label()
35
-        Me.Label27 = New System.Windows.Forms.Label()
36
-        Me.DataGridView1 = New System.Windows.Forms.DataGridView()
37
-        Me.Label3 = New System.Windows.Forms.Label()
38
-        Me.TextBox3 = New System.Windows.Forms.TextBox()
39
-        Me.TextBox1 = New System.Windows.Forms.TextBox()
40
-        Me.Label1 = New System.Windows.Forms.Label()
41
-        Me.RadioButton2 = New System.Windows.Forms.RadioButton()
42
-        Me.RadioButton1 = New System.Windows.Forms.RadioButton()
43
-        Me.DataGridView2 = New System.Windows.Forms.DataGridView()
44
-        Me.Button2 = New System.Windows.Forms.Button()
45
-        Me.Label2 = New System.Windows.Forms.Label()
46
-        Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
47
-        Me.重新讀取ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
48
-        Me.ToolStripSeparator6 = New System.Windows.Forms.ToolStripSeparator()
49
-        Me.開立零用金支付單ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
50
-        Me.複製單據開單ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
51
-        Me.申請完成ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
52
-        Me.ToolStripSeparator1 = New System.Windows.Forms.ToolStripSeparator()
53
-        Me.新增一筆資料ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
54
-        Me.刪除支付單中選中的資料ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
55
-        Me.ToolStripSeparator2 = New System.Windows.Forms.ToolStripSeparator()
56
-        Me.刪除選中的零用金支付單ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
57
-        Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
58
-        Me.Label4 = New System.Windows.Forms.Label()
59
-        Me.DateTimePicker1 = New System.Windows.Forms.DateTimePicker()
60
-        Me.CheckBox1 = New System.Windows.Forms.CheckBox()
61
-        Me.TextBox2 = New System.Windows.Forms.TextBox()
62
-        Me.Label5 = New System.Windows.Forms.Label()
63
-        Me.TextBox6 = New System.Windows.Forms.TextBox()
64
-        Me.Label9 = New System.Windows.Forms.Label()
65
-        Me.TextBox7 = New System.Windows.Forms.TextBox()
66
-        Me.Label10 = New System.Windows.Forms.Label()
67
-        Me.TextBox8 = New System.Windows.Forms.TextBox()
68
-        Me.Label11 = New System.Windows.Forms.Label()
69
-        Me.RadioButton3 = New System.Windows.Forms.RadioButton()
70
-        Me.DateTimePicker2 = New System.Windows.Forms.DateTimePicker()
71
-        Me.Button1 = New System.Windows.Forms.Button()
72
-        Me.ComboBox4 = New System.Windows.Forms.ComboBox()
73
-        Me.ComboBox3 = New System.Windows.Forms.ComboBox()
74
-        Me.ComboBox2 = New System.Windows.Forms.ComboBox()
75
-        Me.ComboBox5 = New System.Windows.Forms.ComboBox()
76
-        Me.TextBox9 = New System.Windows.Forms.TextBox()
77
-        Me.ComboBox6 = New System.Windows.Forms.ComboBox()
78
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
79
-        CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).BeginInit()
80
-        Me.ContextMenuStrip1.SuspendLayout()
81
-        Me.SuspendLayout()
82
-        '
83
-        'ComboBox1
84
-        '
85
-        Me.ComboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
86
-        Me.ComboBox1.FormattingEnabled = True
87
-        Me.ComboBox1.Location = New System.Drawing.Point(937, 56)
88
-        Me.ComboBox1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
89
-        Me.ComboBox1.Name = "ComboBox1"
90
-        Me.ComboBox1.Size = New System.Drawing.Size(175, 24)
91
-        Me.ComboBox1.TabIndex = 845
92
-        '
93
-        'TextBox5
94
-        '
95
-        Me.TextBox5.Location = New System.Drawing.Point(672, 30)
96
-        Me.TextBox5.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
97
-        Me.TextBox5.Name = "TextBox5"
98
-        Me.TextBox5.Size = New System.Drawing.Size(113, 23)
99
-        Me.TextBox5.TabIndex = 844
100
-        Me.TextBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
101
-        '
102
-        'Label8
103
-        '
104
-        Me.Label8.AutoSize = True
105
-        Me.Label8.Location = New System.Drawing.Point(638, 33)
106
-        Me.Label8.Name = "Label8"
107
-        Me.Label8.Size = New System.Drawing.Size(32, 16)
108
-        Me.Label8.TabIndex = 843
109
-        Me.Label8.Text = "現金"
110
-        '
111
-        'Label62
112
-        '
113
-        Me.Label62.AutoSize = True
114
-        Me.Label62.Font = New System.Drawing.Font("微軟正黑體", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
115
-        Me.Label62.ForeColor = System.Drawing.Color.Red
116
-        Me.Label62.Location = New System.Drawing.Point(924, 2)
117
-        Me.Label62.Name = "Label62"
118
-        Me.Label62.Size = New System.Drawing.Size(188, 26)
119
-        Me.Label62.TabIndex = 842
120
-        Me.Label62.Text = "資  料  尚  未  存  檔"
121
-        Me.Label62.Visible = False
122
-        '
123
-        'TextBox4
124
-        '
125
-        Me.TextBox4.Location = New System.Drawing.Point(360, 56)
126
-        Me.TextBox4.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
127
-        Me.TextBox4.Name = "TextBox4"
128
-        Me.TextBox4.Size = New System.Drawing.Size(61, 23)
129
-        Me.TextBox4.TabIndex = 841
130
-        Me.TextBox4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
131
-        '
132
-        'Label28
133
-        '
134
-        Me.Label28.AutoSize = True
135
-        Me.Label28.Location = New System.Drawing.Point(420, 61)
136
-        Me.Label28.Name = "Label28"
137
-        Me.Label28.Size = New System.Drawing.Size(44, 16)
138
-        Me.Label28.TabIndex = 840
139
-        Me.Label28.Text = "項次。"
140
-        '
141
-        'Label27
142
-        '
143
-        Me.Label27.AutoSize = True
144
-        Me.Label27.Location = New System.Drawing.Point(328, 59)
145
-        Me.Label27.Name = "Label27"
146
-        Me.Label27.Size = New System.Drawing.Size(32, 16)
147
-        Me.Label27.TabIndex = 839
148
-        Me.Label27.Text = "選擇"
149
-        '
150
-        'DataGridView1
151
-        '
152
-        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
153
-        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
154
-        Me.DataGridView1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
155
-            Or System.Windows.Forms.AnchorStyles.Left) _
156
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
157
-        Me.DataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
158
-        Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
159
-        Me.DataGridView1.Location = New System.Drawing.Point(328, 83)
160
-        Me.DataGridView1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
161
-        Me.DataGridView1.Name = "DataGridView1"
162
-        Me.DataGridView1.RowHeadersWidth = 5
163
-        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
164
-        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle2
165
-        Me.DataGridView1.RowTemplate.Height = 24
166
-        Me.DataGridView1.Size = New System.Drawing.Size(909, 522)
167
-        Me.DataGridView1.TabIndex = 838
168
-        '
169
-        'Label3
170
-        '
171
-        Me.Label3.AutoSize = True
172
-        Me.Label3.Location = New System.Drawing.Point(554, 8)
173
-        Me.Label3.Name = "Label3"
174
-        Me.Label3.Size = New System.Drawing.Size(44, 16)
175
-        Me.Label3.TabIndex = 837
176
-        Me.Label3.Text = "申請人"
177
-        '
178
-        'TextBox3
179
-        '
180
-        Me.TextBox3.Location = New System.Drawing.Point(598, 5)
181
-        Me.TextBox3.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
182
-        Me.TextBox3.Name = "TextBox3"
183
-        Me.TextBox3.Size = New System.Drawing.Size(92, 23)
184
-        Me.TextBox3.TabIndex = 836
185
-        Me.TextBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
186
-        '
187
-        'TextBox1
188
-        '
189
-        Me.TextBox1.Location = New System.Drawing.Point(431, 5)
190
-        Me.TextBox1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
191
-        Me.TextBox1.Name = "TextBox1"
192
-        Me.TextBox1.Size = New System.Drawing.Size(122, 23)
193
-        Me.TextBox1.TabIndex = 832
194
-        Me.TextBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
195
-        '
196
-        'Label1
197
-        '
198
-        Me.Label1.AutoSize = True
199
-        Me.Label1.Location = New System.Drawing.Point(327, 8)
200
-        Me.Label1.Name = "Label1"
201
-        Me.Label1.Size = New System.Drawing.Size(104, 16)
202
-        Me.Label1.TabIndex = 833
203
-        Me.Label1.Text = "營運成本收支單號"
204
-        '
205
-        'RadioButton2
206
-        '
207
-        Me.RadioButton2.AutoSize = True
208
-        Me.RadioButton2.Location = New System.Drawing.Point(176, 5)
209
-        Me.RadioButton2.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
210
-        Me.RadioButton2.Name = "RadioButton2"
211
-        Me.RadioButton2.Size = New System.Drawing.Size(146, 20)
212
-        Me.RadioButton2.TabIndex = 829
213
-        Me.RadioButton2.TabStop = True
214
-        Me.RadioButton2.Text = "作廢的營運成本收支單"
215
-        Me.RadioButton2.UseVisualStyleBackColor = True
216
-        '
217
-        'RadioButton1
218
-        '
219
-        Me.RadioButton1.AutoSize = True
220
-        Me.RadioButton1.Location = New System.Drawing.Point(12, 5)
221
-        Me.RadioButton1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
222
-        Me.RadioButton1.Name = "RadioButton1"
223
-        Me.RadioButton1.Size = New System.Drawing.Size(158, 20)
224
-        Me.RadioButton1.TabIndex = 828
225
-        Me.RadioButton1.TabStop = True
226
-        Me.RadioButton1.Text = "未核准的營運成本收支單"
227
-        Me.RadioButton1.UseVisualStyleBackColor = True
228
-        '
229
-        'DataGridView2
230
-        '
231
-        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
232
-        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
233
-        Me.DataGridView2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
234
-            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
235
-        Me.DataGridView2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
236
-        Me.DataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
237
-        Me.DataGridView2.Location = New System.Drawing.Point(7, 50)
238
-        Me.DataGridView2.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
239
-        Me.DataGridView2.Name = "DataGridView2"
240
-        Me.DataGridView2.RowHeadersWidth = 5
241
-        Me.DataGridView2.RowTemplate.Height = 24
242
-        Me.DataGridView2.Size = New System.Drawing.Size(315, 555)
243
-        Me.DataGridView2.TabIndex = 820
244
-        '
245
-        'Button2
246
-        '
247
-        Me.Button2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
248
-        Me.Button2.Location = New System.Drawing.Point(1118, 2)
249
-        Me.Button2.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
250
-        Me.Button2.Name = "Button2"
251
-        Me.Button2.Size = New System.Drawing.Size(119, 51)
252
-        Me.Button2.TabIndex = 846
253
-        Me.Button2.Text = "申請完成"
254
-        Me.Button2.UseVisualStyleBackColor = True
255
-        '
256
-        'Label2
257
-        '
258
-        Me.Label2.AutoSize = True
259
-        Me.Label2.Location = New System.Drawing.Point(481, 61)
260
-        Me.Label2.Name = "Label2"
261
-        Me.Label2.Size = New System.Drawing.Size(56, 16)
262
-        Me.Label2.TabIndex = 847
263
-        Me.Label2.Text = "會計科目"
264
-        '
265
-        'ContextMenuStrip1
266
-        '
267
-        Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.重新讀取ToolStripMenuItem, Me.ToolStripSeparator6, Me.開立零用金支付單ToolStripMenuItem, Me.複製單據開單ToolStripMenuItem, Me.申請完成ToolStripMenuItem, Me.ToolStripSeparator1, Me.新增一筆資料ToolStripMenuItem, Me.刪除支付單中選中的資料ToolStripMenuItem, Me.ToolStripSeparator2, Me.刪除選中的零用金支付單ToolStripMenuItem})
268
-        Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
269
-        Me.ContextMenuStrip1.Size = New System.Drawing.Size(231, 176)
270
-        '
271
-        '重新讀取ToolStripMenuItem
272
-        '
273
-        Me.重新讀取ToolStripMenuItem.Name = "重新讀取ToolStripMenuItem"
274
-        Me.重新讀取ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
275
-        Me.重新讀取ToolStripMenuItem.Text = "重新讀取"
276
-        '
277
-        'ToolStripSeparator6
278
-        '
279
-        Me.ToolStripSeparator6.Name = "ToolStripSeparator6"
280
-        Me.ToolStripSeparator6.Size = New System.Drawing.Size(227, 6)
281
-        '
282
-        '開立零用金支付單ToolStripMenuItem
283
-        '
284
-        Me.開立零用金支付單ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
285
-        Me.開立零用金支付單ToolStripMenuItem.Name = "開立零用金支付單ToolStripMenuItem"
286
-        Me.開立零用金支付單ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
287
-        Me.開立零用金支付單ToolStripMenuItem.Text = "開立營運成本收支單"
288
-        '
289
-        '複製單據開單ToolStripMenuItem
290
-        '
291
-        Me.複製單據開單ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
292
-        Me.複製單據開單ToolStripMenuItem.Name = "複製單據開單ToolStripMenuItem"
293
-        Me.複製單據開單ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
294
-        Me.複製單據開單ToolStripMenuItem.Text = "複製歷史單據重新開立"
295
-        '
296
-        '申請完成ToolStripMenuItem
297
-        '
298
-        Me.申請完成ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
299
-        Me.申請完成ToolStripMenuItem.Name = "申請完成ToolStripMenuItem"
300
-        Me.申請完成ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
301
-        Me.申請完成ToolStripMenuItem.Text = "申請完成"
302
-        '
303
-        'ToolStripSeparator1
304
-        '
305
-        Me.ToolStripSeparator1.Name = "ToolStripSeparator1"
306
-        Me.ToolStripSeparator1.Size = New System.Drawing.Size(227, 6)
307
-        '
308
-        '新增一筆資料ToolStripMenuItem
309
-        '
310
-        Me.新增一筆資料ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer))
311
-        Me.新增一筆資料ToolStripMenuItem.Name = "新增一筆資料ToolStripMenuItem"
312
-        Me.新增一筆資料ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
313
-        Me.新增一筆資料ToolStripMenuItem.Text = "收支單中新增一筆空白資料"
314
-        '
315
-        '刪除支付單中選中的資料ToolStripMenuItem
316
-        '
317
-        Me.刪除支付單中選中的資料ToolStripMenuItem.ForeColor = System.Drawing.Color.Red
318
-        Me.刪除支付單中選中的資料ToolStripMenuItem.Name = "刪除支付單中選中的資料ToolStripMenuItem"
319
-        Me.刪除支付單中選中的資料ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
320
-        Me.刪除支付單中選中的資料ToolStripMenuItem.Text = "刪除一筆收支單中選中的資料"
321
-        '
322
-        'ToolStripSeparator2
323
-        '
324
-        Me.ToolStripSeparator2.Name = "ToolStripSeparator2"
325
-        Me.ToolStripSeparator2.Size = New System.Drawing.Size(227, 6)
326
-        '
327
-        '刪除選中的零用金支付單ToolStripMenuItem
328
-        '
329
-        Me.刪除選中的零用金支付單ToolStripMenuItem.ForeColor = System.Drawing.Color.Red
330
-        Me.刪除選中的零用金支付單ToolStripMenuItem.Name = "刪除選中的零用金支付單ToolStripMenuItem"
331
-        Me.刪除選中的零用金支付單ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
332
-        Me.刪除選中的零用金支付單ToolStripMenuItem.Text = "刪除選中的營運成本收支單"
333
-        '
334
-        'Timer1
335
-        '
336
-        Me.Timer1.Interval = 500
337
-        '
338
-        'Label4
339
-        '
340
-        Me.Label4.AutoSize = True
341
-        Me.Label4.ForeColor = System.Drawing.Color.Blue
342
-        Me.Label4.Location = New System.Drawing.Point(696, 8)
343
-        Me.Label4.Name = "Label4"
344
-        Me.Label4.Size = New System.Drawing.Size(32, 16)
345
-        Me.Label4.TabIndex = 878
346
-        Me.Label4.Text = "日期"
347
-        '
348
-        'DateTimePicker1
349
-        '
350
-        Me.DateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
351
-        Me.DateTimePicker1.Location = New System.Drawing.Point(728, 5)
352
-        Me.DateTimePicker1.Name = "DateTimePicker1"
353
-        Me.DateTimePicker1.Size = New System.Drawing.Size(90, 23)
354
-        Me.DateTimePicker1.TabIndex = 877
355
-        '
356
-        'CheckBox1
357
-        '
358
-        Me.CheckBox1.AutoSize = True
359
-        Me.CheckBox1.Checked = True
360
-        Me.CheckBox1.CheckState = System.Windows.Forms.CheckState.Checked
361
-        Me.CheckBox1.Location = New System.Drawing.Point(827, 6)
362
-        Me.CheckBox1.Name = "CheckBox1"
363
-        Me.CheckBox1.Size = New System.Drawing.Size(39, 20)
364
-        Me.CheckBox1.TabIndex = 879
365
-        Me.CheckBox1.Text = "補"
366
-        Me.CheckBox1.UseVisualStyleBackColor = True
367
-        '
368
-        'TextBox2
369
-        '
370
-        Me.TextBox2.Location = New System.Drawing.Point(821, 30)
371
-        Me.TextBox2.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
372
-        Me.TextBox2.Name = "TextBox2"
373
-        Me.TextBox2.Size = New System.Drawing.Size(113, 23)
374
-        Me.TextBox2.TabIndex = 881
375
-        Me.TextBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
376
-        '
377
-        'Label5
378
-        '
379
-        Me.Label5.AutoSize = True
380
-        Me.Label5.Location = New System.Drawing.Point(787, 33)
381
-        Me.Label5.Name = "Label5"
382
-        Me.Label5.Size = New System.Drawing.Size(32, 16)
383
-        Me.Label5.TabIndex = 880
384
-        Me.Label5.Text = "支出"
385
-        '
386
-        'TextBox6
387
-        '
388
-        Me.TextBox6.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
389
-        Me.TextBox6.Location = New System.Drawing.Point(999, 30)
390
-        Me.TextBox6.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
391
-        Me.TextBox6.Name = "TextBox6"
392
-        Me.TextBox6.Size = New System.Drawing.Size(113, 23)
393
-        Me.TextBox6.TabIndex = 883
394
-        Me.TextBox6.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
395
-        '
396
-        'Label9
397
-        '
398
-        Me.Label9.AutoSize = True
399
-        Me.Label9.Location = New System.Drawing.Point(941, 33)
400
-        Me.Label9.Name = "Label9"
401
-        Me.Label9.Size = New System.Drawing.Size(56, 16)
402
-        Me.Label9.TabIndex = 882
403
-        Me.Label9.Text = "現金餘額"
404
-        '
405
-        'TextBox7
406
-        '
407
-        Me.TextBox7.Location = New System.Drawing.Point(374, 30)
408
-        Me.TextBox7.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
409
-        Me.TextBox7.Name = "TextBox7"
410
-        Me.TextBox7.Size = New System.Drawing.Size(113, 23)
411
-        Me.TextBox7.TabIndex = 885
412
-        Me.TextBox7.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
413
-        '
414
-        'Label10
415
-        '
416
-        Me.Label10.AutoSize = True
417
-        Me.Label10.Location = New System.Drawing.Point(328, 33)
418
-        Me.Label10.Name = "Label10"
419
-        Me.Label10.Size = New System.Drawing.Size(44, 16)
420
-        Me.Label10.TabIndex = 884
421
-        Me.Label10.Text = "零用金"
422
-        '
423
-        'TextBox8
424
-        '
425
-        Me.TextBox8.Location = New System.Drawing.Point(523, 30)
426
-        Me.TextBox8.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
427
-        Me.TextBox8.Name = "TextBox8"
428
-        Me.TextBox8.Size = New System.Drawing.Size(113, 23)
429
-        Me.TextBox8.TabIndex = 887
430
-        Me.TextBox8.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
431
-        '
432
-        'Label11
433
-        '
434
-        Me.Label11.AutoSize = True
435
-        Me.Label11.Location = New System.Drawing.Point(489, 33)
436
-        Me.Label11.Name = "Label11"
437
-        Me.Label11.Size = New System.Drawing.Size(32, 16)
438
-        Me.Label11.TabIndex = 886
439
-        Me.Label11.Text = "支票"
440
-        '
441
-        'RadioButton3
442
-        '
443
-        Me.RadioButton3.AutoSize = True
444
-        Me.RadioButton3.Location = New System.Drawing.Point(12, 28)
445
-        Me.RadioButton3.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
446
-        Me.RadioButton3.Name = "RadioButton3"
447
-        Me.RadioButton3.Size = New System.Drawing.Size(158, 20)
448
-        Me.RadioButton3.TabIndex = 888
449
-        Me.RadioButton3.TabStop = True
450
-        Me.RadioButton3.Text = "已核准的營運成本收支單"
451
-        Me.RadioButton3.UseVisualStyleBackColor = True
452
-        '
453
-        'DateTimePicker2
454
-        '
455
-        Me.DateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
456
-        Me.DateTimePicker2.Location = New System.Drawing.Point(341, 97)
457
-        Me.DateTimePicker2.Name = "DateTimePicker2"
458
-        Me.DateTimePicker2.Size = New System.Drawing.Size(90, 23)
459
-        Me.DateTimePicker2.TabIndex = 889
460
-        '
461
-        'Button1
462
-        '
463
-        Me.Button1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
464
-        Me.Button1.Location = New System.Drawing.Point(186, 26)
465
-        Me.Button1.Name = "Button1"
466
-        Me.Button1.Size = New System.Drawing.Size(136, 23)
467
-        Me.Button1.TabIndex = 890
468
-        Me.Button1.Text = "複製歷史單據重新開立"
469
-        Me.Button1.UseVisualStyleBackColor = True
470
-        '
471
-        'ComboBox4
472
-        '
473
-        Me.ComboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
474
-        Me.ComboBox4.FormattingEnabled = True
475
-        Me.ComboBox4.Location = New System.Drawing.Point(856, 56)
476
-        Me.ComboBox4.Name = "ComboBox4"
477
-        Me.ComboBox4.Size = New System.Drawing.Size(75, 24)
478
-        Me.ComboBox4.TabIndex = 894
479
-        '
480
-        'ComboBox3
481
-        '
482
-        Me.ComboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
483
-        Me.ComboBox3.FormattingEnabled = True
484
-        Me.ComboBox3.Location = New System.Drawing.Point(731, 56)
485
-        Me.ComboBox3.Name = "ComboBox3"
486
-        Me.ComboBox3.Size = New System.Drawing.Size(121, 24)
487
-        Me.ComboBox3.TabIndex = 893
488
-        '
489
-        'ComboBox2
490
-        '
491
-        Me.ComboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
492
-        Me.ComboBox2.FormattingEnabled = True
493
-        Me.ComboBox2.Location = New System.Drawing.Point(667, 56)
494
-        Me.ComboBox2.Name = "ComboBox2"
495
-        Me.ComboBox2.Size = New System.Drawing.Size(61, 24)
496
-        Me.ComboBox2.TabIndex = 892
497
-        '
498
-        'ComboBox5
499
-        '
500
-        Me.ComboBox5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
501
-        Me.ComboBox5.FormattingEnabled = True
502
-        Me.ComboBox5.Location = New System.Drawing.Point(543, 56)
503
-        Me.ComboBox5.Name = "ComboBox5"
504
-        Me.ComboBox5.Size = New System.Drawing.Size(121, 24)
505
-        Me.ComboBox5.TabIndex = 891
506
-        '
507
-        'TextBox9
508
-        '
509
-        Me.TextBox9.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
510
-        Me.TextBox9.Location = New System.Drawing.Point(1118, 56)
511
-        Me.TextBox9.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
512
-        Me.TextBox9.Name = "TextBox9"
513
-        Me.TextBox9.Size = New System.Drawing.Size(119, 23)
514
-        Me.TextBox9.TabIndex = 895
515
-        Me.TextBox9.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
516
-        '
517
-        'ComboBox6
518
-        '
519
-        Me.ComboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
520
-        Me.ComboBox6.FormattingEnabled = True
521
-        Me.ComboBox6.Location = New System.Drawing.Point(937, 2)
522
-        Me.ComboBox6.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
523
-        Me.ComboBox6.Name = "ComboBox6"
524
-        Me.ComboBox6.Size = New System.Drawing.Size(175, 24)
525
-        Me.ComboBox6.TabIndex = 896
526
-        '
527
-        '營運成本收支單申請
528
-        '
529
-        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
530
-        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
531
-        Me.ClientSize = New System.Drawing.Size(1249, 611)
532
-        Me.ContextMenuStrip = Me.ContextMenuStrip1
533
-        Me.Controls.Add(Me.ComboBox6)
534
-        Me.Controls.Add(Me.TextBox9)
535
-        Me.Controls.Add(Me.ComboBox4)
536
-        Me.Controls.Add(Me.ComboBox3)
537
-        Me.Controls.Add(Me.ComboBox2)
538
-        Me.Controls.Add(Me.ComboBox5)
539
-        Me.Controls.Add(Me.Button1)
540
-        Me.Controls.Add(Me.DateTimePicker2)
541
-        Me.Controls.Add(Me.RadioButton3)
542
-        Me.Controls.Add(Me.TextBox8)
543
-        Me.Controls.Add(Me.Label11)
544
-        Me.Controls.Add(Me.TextBox7)
545
-        Me.Controls.Add(Me.Label10)
546
-        Me.Controls.Add(Me.TextBox6)
547
-        Me.Controls.Add(Me.Label9)
548
-        Me.Controls.Add(Me.TextBox2)
549
-        Me.Controls.Add(Me.Label5)
550
-        Me.Controls.Add(Me.CheckBox1)
551
-        Me.Controls.Add(Me.Label4)
552
-        Me.Controls.Add(Me.DateTimePicker1)
553
-        Me.Controls.Add(Me.Button2)
554
-        Me.Controls.Add(Me.ComboBox1)
555
-        Me.Controls.Add(Me.TextBox5)
556
-        Me.Controls.Add(Me.Label8)
557
-        Me.Controls.Add(Me.Label62)
558
-        Me.Controls.Add(Me.TextBox4)
559
-        Me.Controls.Add(Me.Label28)
560
-        Me.Controls.Add(Me.Label27)
561
-        Me.Controls.Add(Me.DataGridView1)
562
-        Me.Controls.Add(Me.Label3)
563
-        Me.Controls.Add(Me.TextBox3)
564
-        Me.Controls.Add(Me.TextBox1)
565
-        Me.Controls.Add(Me.Label1)
566
-        Me.Controls.Add(Me.RadioButton2)
567
-        Me.Controls.Add(Me.RadioButton1)
568
-        Me.Controls.Add(Me.Label2)
569
-        Me.Controls.Add(Me.DataGridView2)
570
-        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
571
-        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
572
-        Me.Name = "營運成本收支單申請"
573
-        Me.Text = "營運成本收支單申請"
574
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
575
-        CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).EndInit()
576
-        Me.ContextMenuStrip1.ResumeLayout(False)
577
-        Me.ResumeLayout(False)
578
-        Me.PerformLayout()
579
-
580
-    End Sub
581
-
582
-    Friend WithEvents ComboBox1 As ComboBox
583
-    Friend WithEvents TextBox5 As TextBox
584
-    Friend WithEvents Label8 As Label
585
-    Friend WithEvents Label62 As Label
586
-    Friend WithEvents TextBox4 As TextBox
587
-    Friend WithEvents Label28 As Label
588
-    Friend WithEvents Label27 As Label
589
-    Friend WithEvents DataGridView1 As DataGridView
590
-    Friend WithEvents Label3 As Label
591
-    Friend WithEvents TextBox3 As TextBox
592
-    Friend WithEvents TextBox1 As TextBox
593
-    Friend WithEvents Label1 As Label
594
-    Friend WithEvents RadioButton2 As RadioButton
595
-    Friend WithEvents RadioButton1 As RadioButton
596
-    Friend WithEvents DataGridView2 As DataGridView
597
-    Friend WithEvents Button2 As Button
598
-    Friend WithEvents Label2 As Label
599
-    Friend WithEvents ContextMenuStrip1 As ContextMenuStrip
600
-    Friend WithEvents 重新讀取ToolStripMenuItem As ToolStripMenuItem
601
-    Friend WithEvents ToolStripSeparator6 As ToolStripSeparator
602
-    Friend WithEvents 開立零用金支付單ToolStripMenuItem As ToolStripMenuItem
603
-    Friend WithEvents 申請完成ToolStripMenuItem As ToolStripMenuItem
604
-    Friend WithEvents ToolStripSeparator1 As ToolStripSeparator
605
-    Friend WithEvents 新增一筆資料ToolStripMenuItem As ToolStripMenuItem
606
-    Friend WithEvents 刪除支付單中選中的資料ToolStripMenuItem As ToolStripMenuItem
607
-    Friend WithEvents ToolStripSeparator2 As ToolStripSeparator
608
-    Friend WithEvents 刪除選中的零用金支付單ToolStripMenuItem As ToolStripMenuItem
609
-    Friend WithEvents Timer1 As Timer
610
-    Friend WithEvents Label4 As Label
611
-    Friend WithEvents DateTimePicker1 As DateTimePicker
612
-    Friend WithEvents CheckBox1 As CheckBox
613
-    Friend WithEvents TextBox2 As TextBox
614
-    Friend WithEvents Label5 As Label
615
-    Friend WithEvents TextBox6 As TextBox
616
-    Friend WithEvents Label9 As Label
617
-    Friend WithEvents TextBox7 As TextBox
618
-    Friend WithEvents Label10 As Label
619
-    Friend WithEvents TextBox8 As TextBox
620
-    Friend WithEvents Label11 As Label
621
-    Friend WithEvents RadioButton3 As RadioButton
622
-    Friend WithEvents DateTimePicker2 As DateTimePicker
623
-    Friend WithEvents 複製單據開單ToolStripMenuItem As ToolStripMenuItem
624
-    Friend WithEvents Button1 As Button
625
-    Friend WithEvents ComboBox4 As ComboBox
626
-    Friend WithEvents ComboBox3 As ComboBox
627
-    Friend WithEvents ComboBox2 As ComboBox
628
-    Friend WithEvents ComboBox5 As ComboBox
629
-    Friend WithEvents TextBox9 As TextBox
630
-    Friend WithEvents ComboBox6 As ComboBox
631
-End Class

+ 0
- 129
MaoOrange-Hongji/財務系統管理/營運成本收支單申請.resx Просмотреть файл

@@ -1,129 +0,0 @@
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="ContextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121
-    <value>14, 8</value>
122
-  </metadata>
123
-  <metadata name="Timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
124
-    <value>179, 8</value>
125
-  </metadata>
126
-  <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
127
-    <value>35</value>
128
-  </metadata>
129
-</root>

+ 0
- 236
MaoOrange-Hongji/財務系統管理/營運成本收支單申請.vb Просмотреть файл

@@ -1,236 +0,0 @@
1
-Option Strict Off
2
-Public Class 營運成本收支單申請
3
-    ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet
4
-    Dim 新項次 As String : Dim NUM1 As Integer
5
-    Private Sub Set_清單1()
6
-        DataGridView2.DataSource = Nothing : ds1.Clear()
7
-        DataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
8
-        DataGridView2.ColumnHeadersHeight = 25
9
-        DataGridView2.AllowUserToAddRows = False
10
-        SQL_營運成本收支單申請清單()
11
-        da.Fill(ds1) : DataGridView2.DataSource = ds1.Tables(0) : conn.Close()
12
-
13
-        DataGridView2.Columns(0).FillWeight = 160 : DataGridView2.Columns(1).FillWeight = 100 : DataGridView2.Columns(2).FillWeight = 100 : DataGridView2.Columns(3).Visible = False
14
-    End Sub
15
-    Private Sub Set_費用清單()
16
-        DataGridView1.DataSource = Nothing : ds.Clear()
17
-        DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
18
-        DataGridView1.ColumnHeadersHeight = 25
19
-        DataGridView1.AllowUserToAddRows = False
20
-        DataGridView1.RowTemplate.Height = 35
21
-        SQL_營運成本收支單申請費用清單()
22
-        da.Fill(ds) : DataGridView1.DataSource = ds.Tables(0) : conn.Close()
23
-
24
-        DataGridView1.Columns(0).Visible = False : DataGridView1.Columns(1).FillWeight = 80 : DataGridView1.Columns(2).FillWeight = 300 : DataGridView1.Columns(3).FillWeight = 500
25
-        DataGridView1.Columns(4).FillWeight = 140 : DataGridView1.Columns(5).FillWeight = 140 : DataGridView1.Columns(6).FillWeight = 140 : DataGridView1.Columns(7).FillWeight = 140
26
-        DataGridView1.Columns(8).FillWeight = 140 : DataGridView1.Columns(9).Visible = False
27
-
28
-        DataGridView1.Columns(1).ReadOnly = True : DataGridView1.Columns(2).ReadOnly = True
29
-
30
-        DataGridView1.Columns(4).DefaultCellStyle.Format = "#,##0" : DataGridView1.Columns(5).DefaultCellStyle.Format = "#,##0" : DataGridView1.Columns(6).DefaultCellStyle.Format = "#,##0"
31
-        DataGridView1.Columns(7).DefaultCellStyle.Format = "#,##0"
32
-        DataGridView1.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(4).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
33
-        DataGridView1.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(5).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
34
-        DataGridView1.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
35
-        DataGridView1.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
36
-        DataGridView1.EditMode = DataGridViewEditMode.EditOnEnter
37
-
38
-        TextBox5.Text = "0" : TextBox2.Text = "0" : TextBox6.Text = "0" : TextBox7.Text = "0" : TextBox8.Text = "0"
39
-        For i As Integer = 0 To DataGridView1.Rows.Count - 1
40
-            TextBox5.Text = Val(TextBox5.Text) + DataGridView1.Rows(i).Cells("現金").Value : TextBox2.Text = Val(TextBox2.Text) + DataGridView1.Rows(i).Cells("支出").Value
41
-            TextBox7.Text = Val(TextBox7.Text) + DataGridView1.Rows(i).Cells("零用金").Value : TextBox8.Text = Val(TextBox8.Text) + DataGridView1.Rows(i).Cells("支票").Value
42
-        Next i
43
-        TextBox6.Text = Val(TextBox7.Text) + Val(TextBox5.Text) - Val(TextBox2.Text)
44
-        If Val(TextBox6.Text) > 0 Then : TextBox6.ForeColor = Color.Blue : Else : TextBox6.ForeColor = Color.Red : End If
45
-        TextBox5.Text = Format(Val(TextBox5.Text), "#,##0") : TextBox2.Text = Format(Val(TextBox2.Text), "#,##0") : TextBox6.Text = Format(Val(TextBox6.Text), "#,##0")
46
-        TextBox7.Text = Format(Val(TextBox7.Text), "#,##0") : TextBox8.Text = Format(Val(TextBox8.Text), "#,##0")
47
-    End Sub
48
-    Private Sub ComboBox1下拉表單資料載入()
49
-        PA = ComboBox4.Text : SQL_會計科目_第三階()
50
-        ComboBox1.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox1.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
51
-        If ComboBox1.Items.Count <> 0 Then : ComboBox1.SelectedIndex = 0 : End If
52
-    End Sub
53
-    Private Sub ComboBox2下拉表單資料載入()
54
-        SQL_會計科目_第一階()
55
-        ComboBox5.Items.Clear() : ComboBox2.Items.Clear() : While (dr.Read()) : ComboBox5.Items.Add(dr("第一階")) : ComboBox2.Items.Add(dr("編號")) : End While : conn.Close()
56
-    End Sub
57
-    Private Sub ComboBox3下拉表單資料載入()
58
-        PA = ComboBox2.Text : SQL_會計科目_第二階()
59
-        ComboBox3.Items.Clear() : ComboBox4.Items.Clear() : While (dr.Read()) : ComboBox3.Items.Add(dr("第二階")) : ComboBox4.Items.Add(dr("編號")) : End While : conn.Close() : PA = ""
60
-    End Sub
61
-    Private Sub 營運成本支付申請_Load(sender As Object, e As EventArgs) Handles MyBase.Load
62
-        Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
63
-        RadioButton1.Checked = True : DateTimePicker2.Visible = False : 複製單據開單ToolStripMenuItem.Enabled = False : ComboBox6.Visible = False
64
-        DataGridView2.Visible = True : Set_清單1() : ComboBox2下拉表單資料載入()
65
-    End Sub
66
-    Private Sub ComboBox5_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox5.TextChanged
67
-        ComboBox2.SelectedIndex = ComboBox5.SelectedIndex : TextBox9.Text = "" : ComboBox3下拉表單資料載入() : ComboBox1下拉表單資料載入()
68
-    End Sub
69
-    Private Sub ComboBox2_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox2.TextChanged
70
-        ComboBox5.SelectedIndex = ComboBox2.SelectedIndex : ComboBox3下拉表單資料載入() : ComboBox1下拉表單資料載入()
71
-    End Sub
72
-    Private Sub ComboBox3_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox3.TextChanged
73
-        ComboBox4.SelectedIndex = ComboBox3.SelectedIndex : ComboBox1下拉表單資料載入()
74
-    End Sub
75
-    Private Sub ComboBox4_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox4.TextChanged
76
-        ComboBox3.SelectedIndex = ComboBox4.SelectedIndex : ComboBox1下拉表單資料載入()
77
-    End Sub
78
-    Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged
79
-        ComboBox6.SelectedIndex = ComboBox1.SelectedIndex
80
-    End Sub
81
-    Private Sub ComboBox6_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox6.SelectedIndexChanged
82
-        ComboBox1.SelectedIndex = ComboBox6.SelectedIndex
83
-    End Sub
84
-    Private Sub TextBox9_TextChanged(sender As Object, e As EventArgs) Handles TextBox9.TextChanged
85
-        PA = TextBox9.Text : SQL_會計科目_關鍵字()
86
-        ComboBox1.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox1.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
87
-        If ComboBox1.Items.Count <> 0 Then : ComboBox1.SelectedIndex = 0 : End If : PA = ""
88
-    End Sub
89
-    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
90
-        If Label62.Visible = True Then : Label62.Visible = False : Else : Label62.Visible = True : End If
91
-    End Sub
92
-    Private Sub DataGridView1_CellContentCl(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit
93
-        TextBox5.Text = "0" : TextBox2.Text = "0" : TextBox6.Text = "0" : TextBox7.Text = "0" : TextBox8.Text = "0"
94
-        For i As Integer = 0 To DataGridView1.Rows.Count - 1
95
-            TextBox5.Text = Val(TextBox5.Text) + DataGridView1.Rows(i).Cells("現金").Value : TextBox2.Text = Val(TextBox2.Text) + DataGridView1.Rows(i).Cells("支出").Value
96
-            TextBox7.Text = Val(TextBox7.Text) + DataGridView1.Rows(i).Cells("零用金").Value : TextBox8.Text = Val(TextBox8.Text) + DataGridView1.Rows(i).Cells("支票").Value
97
-        Next i
98
-        TextBox6.Text = Val(TextBox7.Text) + Val(TextBox5.Text) - Val(TextBox2.Text)
99
-        If Val(TextBox6.Text) > 0 Then : TextBox6.ForeColor = Color.Blue : Else : TextBox6.ForeColor = Color.Red : End If
100
-        TextBox5.Text = Format(Val(TextBox5.Text), "#,##0") : TextBox2.Text = Format(Val(TextBox2.Text), "#,##0") : TextBox6.Text = Format(Val(TextBox6.Text), "#,##0")
101
-        TextBox7.Text = Format(Val(TextBox7.Text), "#,##0") : TextBox8.Text = Format(Val(TextBox8.Text), "#,##0")
102
-        Dim EU As String
103
-        EU = DataGridView1("票期", e.RowIndex).Value.ToString
104
-        If EU = "" Then
105
-        Else
106
-            DateTimePicker2.Text = EU : DataGridView1.Rows(e.RowIndex).Cells("票期").Value = Format(DateTimePicker2.Value, "yyyy/MM/dd")
107
-        End If
108
-    End Sub
109
-    Private Sub DataGridView2_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView2.CellClick
110
-        If e.RowIndex = -1 Then : Else
111
-            TextBox1.Text = DataGridView2(0, e.RowIndex).Value.ToString : DateTimePicker1.Value = DataGridView2(1, e.RowIndex).Value.ToString : Set_費用清單()
112
-            TextBox3.Text = DataGridView2(3, e.RowIndex).Value.ToString
113
-        End If
114
-    End Sub
115
-    Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick
116
-        If e.RowIndex = -1 Then : Else
117
-            TextBox4.Text = DataGridView1(1, e.RowIndex).Value.ToString
118
-        End If
119
-    End Sub
120
-    Private Sub Set_切換格式()
121
-        DataGridView1.DataSource = Nothing : ds.Clear() : TextBox1.Text = "" : TextBox3.Text = "" : TextBox4.Text = "" : TextBox5.Text = "" : TextBox2.Text = "" : TextBox6.Text = ""
122
-        TextBox7.Text = "" : TextBox8.Text = "" : ComboBox1下拉表單資料載入() : Set_清單1()
123
-    End Sub
124
-    Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton1.Click
125
-        RadioButton1.Checked = True : RadioButton2.Checked = False : RadioButton3.Checked = False : 申請完成ToolStripMenuItem.Enabled = True : 複製單據開單ToolStripMenuItem.Enabled = False
126
-        開立零用金支付單ToolStripMenuItem.Enabled = True : Button2.Enabled = True : 新增一筆資料ToolStripMenuItem.Enabled = True
127
-        刪除支付單中選中的資料ToolStripMenuItem.Enabled = True : 刪除選中的零用金支付單ToolStripMenuItem.Enabled = True : Set_切換格式()
128
-    End Sub
129
-    Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton2.Click
130
-        RadioButton1.Checked = False : RadioButton2.Checked = True : RadioButton3.Checked = False : 申請完成ToolStripMenuItem.Enabled = False : 複製單據開單ToolStripMenuItem.Enabled = False
131
-        開立零用金支付單ToolStripMenuItem.Enabled = False : Button2.Enabled = False : 新增一筆資料ToolStripMenuItem.Enabled = False
132
-        刪除支付單中選中的資料ToolStripMenuItem.Enabled = False : 刪除選中的零用金支付單ToolStripMenuItem.Enabled = False : Set_切換格式()
133
-    End Sub
134
-    Private Sub RadioButton3_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton3.Click
135
-        If CC(28) = False Then
136
-            RadioButton1.Checked = False : RadioButton2.Checked = False : RadioButton3.Checked = True : 申請完成ToolStripMenuItem.Enabled = False : 複製單據開單ToolStripMenuItem.Enabled = True
137
-            開立零用金支付單ToolStripMenuItem.Enabled = False : Button2.Enabled = False : 新增一筆資料ToolStripMenuItem.Enabled = False
138
-            刪除支付單中選中的資料ToolStripMenuItem.Enabled = False : 刪除選中的零用金支付單ToolStripMenuItem.Enabled = False : Set_切換格式()
139
-        Else
140
-            RadioButton1.Checked = False : RadioButton2.Checked = False : RadioButton3.Checked = True : 申請完成ToolStripMenuItem.Enabled = True : 複製單據開單ToolStripMenuItem.Enabled = True
141
-            開立零用金支付單ToolStripMenuItem.Enabled = True : Button2.Enabled = True : 新增一筆資料ToolStripMenuItem.Enabled = True
142
-            刪除支付單中選中的資料ToolStripMenuItem.Enabled = True : 刪除選中的零用金支付單ToolStripMenuItem.Enabled = True : Set_切換格式()
143
-        End If
144
-    End Sub
145
-    Private Sub 存檔()
146
-        PA4 = TextBox1.Text
147
-        For i As Integer = 0 To DataGridView1.Rows.Count - 1
148
-            資料數 = DataGridView1.Rows.Count : MyModule1.進度條()
149
-            PA1 = DataGridView1.Rows(i).Cells("用途").Value : NU1 = DataGridView1.Rows(i).Cells("支出").Value : PA2 = DataGridView1.Rows(i).Cells("票期").Value
150
-            PA3 = DataGridView1.Rows(i).Cells("科目編號").Value : NU2 = DataGridView1.Rows(i).Cells("現金").Value : NU3 = DataGridView1.Rows(i).Cells("零用金").Value
151
-            NU4 = DataGridView1.Rows(i).Cells("支票").Value : PA5 = DataGridView1.Rows(i).Cells("項次").Value
152
-            SQL_營運成本收支單申請修改() : conn.Close()
153
-        Next : MAOJI_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
154
-    End Sub
155
-    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
156
-        Timer1.Enabled = False : Label62.Visible = False
157
-        開立零用金支付單ToolStripMenuItem.Enabled = True : RadioButton1.Enabled = True : RadioButton2.Enabled = True : DataGridView2.Enabled = True : RadioButton3.Enabled = True
158
-        存檔() : Set_清單1() : MsgBox("申請完成,請通知主管審核。")
159
-    End Sub
160
-    Private Sub Set_日期格式轉換()
161
-        If CheckBox1.Checked = False Then : DTP = Format(Today(), "yyyy/MM/dd") : DTP1 = Format(Today(), "yyyyMMdd")
162
-        Else : DTP1 = Format(DateTimePicker1.Value, "yyyyMMdd") : DTP = Format(DateTimePicker1.Value, "yyyy/MM/dd") : End If
163
-    End Sub
164
-    Private Sub 開立零用金支付單()
165
-        Dim NUM1 As Integer : Timer1.Enabled = True
166
-        Set_日期格式轉換()
167
-        For i As Integer = 1 To 999
168
-            NUM1 = 0 + i
169
-            If NUM1 < 10 Then : TextBox1.Text = "OE-" & DTP1 & "-00" & NUM1
170
-            ElseIf NUM1 > 9 And NUM1 < 100 Then : TextBox1.Text = "OE-" & DTP1 & "-0" & NUM1
171
-            ElseIf NUM1 > 99 Then : TextBox1.Text = "OE-" & DTP1 & "-" & NUM1 : End If : PA = TextBox1.Text
172
-            SQL_營運成本收支單申請_支付單號流水號()
173
-            If dr.Read() Then : Else : i = 999 : conn.Close() : End If : conn.Close()
174
-        Next
175
-        SQL_營運成本控制表新增() : TextBox3.Text = gUserName
176
-    End Sub
177
-    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
178
-        開立零用金支付單() : 開立零用金支付單ToolStripMenuItem.Enabled = False : RadioButton1.Enabled = False : RadioButton2.Enabled = False : RadioButton3.Enabled = False
179
-        DataGridView2.Enabled = False : RadioButton1.Checked = True : RadioButton2.Checked = False : RadioButton3.Checked = False : 申請完成ToolStripMenuItem.Enabled = True
180
-        複製單據開單ToolStripMenuItem.Enabled = False : 開立零用金支付單ToolStripMenuItem.Enabled = True : Button2.Enabled = True : 新增一筆資料ToolStripMenuItem.Enabled = True
181
-        刪除支付單中選中的資料ToolStripMenuItem.Enabled = True : 刪除選中的零用金支付單ToolStripMenuItem.Enabled = True
182
-        Set_清單1()
183
-        For i As Integer = 0 To DataGridView1.Rows.Count - 1
184
-            PA1 = TextBox1.Text : PA2 = DataGridView1.Rows(i).Cells("項次").Value : PA3 = DataGridView1.Rows(i).Cells("科目編號").Value : PA4 = DataGridView1.Rows(i).Cells("用途").Value
185
-            NU1 = DataGridView1.Rows(i).Cells("支出").Value : PA5 = DataGridView1.Rows(i).Cells("票期").Value : NU2 = DataGridView1.Rows(i).Cells("現金").Value
186
-            NU3 = DataGridView1.Rows(i).Cells("零用金").Value : NU4 = DataGridView1.Rows(i).Cells("支票").Value
187
-            SQL_營運成本明細表新增()
188
-        Next : Set_費用清單() : MsgBox("複製單據開立完成。")
189
-    End Sub
190
-    '----------------------滑鼠右鍵--------------------------------------------------------------------------------------------------------------------------------------------------------------------
191
-    Private Sub 重新讀取ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 重新讀取ToolStripMenuItem.Click
192
-        Set_清單1()
193
-    End Sub
194
-    Private Sub 開立零用金支付單ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 開立零用金支付單ToolStripMenuItem.Click
195
-        開立零用金支付單()
196
-        開立零用金支付單ToolStripMenuItem.Enabled = False : RadioButton1.Enabled = False : RadioButton2.Enabled = False : RadioButton3.Enabled = False : DataGridView2.Enabled = False
197
-        DataGridView1.DataSource = Nothing : ds.Clear() : conn.Close() : Set_清單1()
198
-    End Sub
199
-    Private Sub 刪除選中的零用金支付單ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 刪除選中的零用金支付單ToolStripMenuItem.Click
200
-        Dim aa As MsgBoxResult = MsgBox("確定要刪除該筆資料?", MsgBoxStyle.OkCancel)
201
-        If aa = MsgBoxResult.Ok Then
202
-            SQL_營運成本控制表刪除() : conn.Close() : SQL_營運成本明細表刪除() : conn.Close()
203
-            TextBox1.Text = "" : TextBox3.Text = "" : TextBox4.Text = "" : DataGridView1.DataSource = Nothing : ds.Clear() : Set_清單1()
204
-        End If
205
-    End Sub
206
-    Private Sub 刪除支付單中選中的資料ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 刪除支付單中選中的資料ToolStripMenuItem.Click
207
-        If TextBox4.Text = "" Then : MsgBox("未選擇需要刪除的資料。")
208
-        Else
209
-            存檔() : SQL_營運成本明細表刪除單筆() : conn.Close() : Set_費用清單() : Dim NUM1 As Integer = 0
210
-            For i As Integer = 0 To DataGridView1.Rows.Count - 1
211
-                NUM1 += 1 : If NUM1 < 10 Then : 新項次 = "0" & NUM1 : ElseIf NUM1 > 9 And NUM1 < 100 Then : 新項次 = NUM1 : End If
212
-                PA1 = 新項次 : PA2 = TextBox1.Text : PA3 = DataGridView1.Rows(i).Cells("項次").Value
213
-                SQL_營運成本明細表項次修改() : conn.Close()
214
-            Next : Set_費用清單()
215
-        End If
216
-    End Sub
217
-    Private Sub 新增一筆資料ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 新增一筆資料ToolStripMenuItem.Click
218
-        If ComboBox6.Text = "" Then : MsgBox("沒有選擇會計科目。")
219
-        Else
220
-            If TextBox1.Text = "" Then : 開立零用金支付單() : End If
221
-            Set_日期格式轉換() : 存檔() : PA = TextBox1.Text
222
-            SQL_營運成本明細表項次新增查詢()
223
-            If dr.Read() Then : 新項次 = dr("項次") : Else : 新項次 = "00" : End If : conn.Close() : NUM1 = Double.Parse(新項次) + 1
224
-            If NUM1 < 10 Then : 新項次 = "0" & NUM1
225
-            ElseIf NUM1 > 9 And NUM1 < 100 Then : 新項次 = NUM1 : End If
226
-            PA1 = TextBox1.Text : PA2 = 新項次 : PA3 = ComboBox6.Text : PA4 = "" : NU1 = 0 : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0
227
-            SQL_營運成本明細表新增() : Set_費用清單()
228
-        End If
229
-    End Sub
230
-    Private Sub 申請完成ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 申請完成ToolStripMenuItem.Click
231
-        Me.Button2.PerformClick()
232
-    End Sub
233
-    Private Sub 複製單據開單ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 複製單據開單ToolStripMenuItem.Click
234
-        Me.Button1.PerformClick()
235
-    End Sub
236
-End Class

Загрузка…
Отмена
Сохранить