ソースを参照

應收帳款控制表與財務單具開立連接改寫完成

Signed-off-by: B70340 <b70340@gmail.com>
B70340 5年前
コミット
a2900f21b7
58個のファイルの変更9024行の追加653行の削除
  1. バイナリ
      .vs/MAOJI-ERP-SYS/v16/.suo
  2. 1
    0
      MaoOrange-Hongji/MAOJI-ERP-SYS.Designer.vb
  3. 3
    0
      MaoOrange-Hongji/MAOJI-ERP-SYS.vb
  4. 27
    9
      MaoOrange-Hongji/MAOJI-ERP-SYS.vbproj
  5. 3
    0
      MaoOrange-Hongji/Module1/Module1.vb
  6. 216
    73
      MaoOrange-Hongji/Module1/SQL_Module.vb
  7. バイナリ
      MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.exe
  8. バイナリ
      MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.pdb
  9. バイナリ
      MaoOrange-Hongji/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  10. バイナリ
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.exe
  11. バイナリ
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.pdb
  12. 1
    1
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.CoreCompileInputs.cache
  13. 3
    1
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.FileListAbsolute.txt
  14. バイナリ
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.GenerateResource.cache
  15. バイナリ
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbprojAssemblyReference.cache
  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. バイナリ
      MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.票務控制表.resources
  20. バイナリ
      MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.財務單具申請.resources
  21. バイナリ
      MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.財務收支單_對帳表.resources
  22. バイナリ
      MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.財務收支單一覽表.resources
  23. バイナリ
      MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.財務收支單審核.resources
  24. 22
    10
      MaoOrange-Hongji/採購系統管理/採購控制表.Designer.vb
  25. 23
    5
      MaoOrange-Hongji/採購系統管理/採購控制表.vb
  26. 25
    13
      MaoOrange-Hongji/業務系統管理/銷售控制表.Designer.vb
  27. 23
    5
      MaoOrange-Hongji/業務系統管理/銷售控制表.vb
  28. 26
    14
      MaoOrange-Hongji/生產系統管理/生產控制表.Designer.vb
  29. 23
    5
      MaoOrange-Hongji/生產系統管理/生產控制表.vb
  30. 35
    23
      MaoOrange-Hongji/財務系統管理/司機佣金計算.Designer.vb
  31. 23
    5
      MaoOrange-Hongji/財務系統管理/司機佣金計算.vb
  32. 282
    293
      MaoOrange-Hongji/財務系統管理/應付賬款控制表.Designer.vb
  33. 175
    178
      MaoOrange-Hongji/財務系統管理/應付賬款控制表.vb
  34. 20
    8
      MaoOrange-Hongji/財務系統管理/應收帳款控制表.Designer.vb
  35. 23
    5
      MaoOrange-Hongji/財務系統管理/應收帳款控制表.vb
  36. 1020
    0
      MaoOrange-Hongji/財務系統管理/支票收支單申請.Designer.vb
  37. 129
    0
      MaoOrange-Hongji/財務系統管理/支票收支單申請.resx
  38. 345
    0
      MaoOrange-Hongji/財務系統管理/支票收支單申請.vb
  39. 12
    0
      MaoOrange-Hongji/財務系統管理/業務佣金計算.Designer.vb
  40. 23
    5
      MaoOrange-Hongji/財務系統管理/業務佣金計算.vb
  41. 631
    0
      MaoOrange-Hongji/財務系統管理/現金收支單申請.Designer.vb
  42. 129
    0
      MaoOrange-Hongji/財務系統管理/現金收支單申請.resx
  43. 253
    0
      MaoOrange-Hongji/財務系統管理/現金收支單申請.vb
  44. 991
    0
      MaoOrange-Hongji/財務系統管理/票務控制表.Designer.vb
  45. 123
    0
      MaoOrange-Hongji/財務系統管理/票務控制表.resx
  46. 170
    0
      MaoOrange-Hongji/財務系統管理/票務控制表.vb
  47. 922
    0
      MaoOrange-Hongji/財務系統管理/財務單具申請.Designer.vb
  48. 120
    0
      MaoOrange-Hongji/財務系統管理/財務單具申請.resx
  49. 279
    0
      MaoOrange-Hongji/財務系統管理/財務單具申請.vb
  50. 668
    0
      MaoOrange-Hongji/財務系統管理/財務收支單_對帳表.Designer.vb
  51. 129
    0
      MaoOrange-Hongji/財務系統管理/財務收支單_對帳表.resx
  52. 197
    0
      MaoOrange-Hongji/財務系統管理/財務收支單_對帳表.vb
  53. 595
    0
      MaoOrange-Hongji/財務系統管理/財務收支單一覽表.Designer.vb
  54. 123
    0
      MaoOrange-Hongji/財務系統管理/財務收支單一覽表.resx
  55. 398
    0
      MaoOrange-Hongji/財務系統管理/財務收支單一覽表.vb
  56. 480
    0
      MaoOrange-Hongji/財務系統管理/財務收支單審核.Designer.vb
  57. 126
    0
      MaoOrange-Hongji/財務系統管理/財務收支單審核.resx
  58. 207
    0
      MaoOrange-Hongji/財務系統管理/財務收支單審核.vb

バイナリ
.vs/MAOJI-ERP-SYS/v16/.suo ファイルの表示


+ 1
- 0
MaoOrange-Hongji/MAOJI-ERP-SYS.Designer.vb ファイルの表示

@@ -553,6 +553,7 @@ Partial Class MAOJI_ERP_SYS
553 553
         '
554 554
         '票務控制表ToolStripMenuItem
555 555
         '
556
+        Me.票務控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
556 557
         Me.票務控制表ToolStripMenuItem.Name = "票務控制表ToolStripMenuItem"
557 558
         Me.票務控制表ToolStripMenuItem.Size = New System.Drawing.Size(193, 22)
558 559
         Me.票務控制表ToolStripMenuItem.Text = "票務控制表"

+ 3
- 0
MaoOrange-Hongji/MAOJI-ERP-SYS.vb ファイルの表示

@@ -238,4 +238,7 @@ Public Class MAOJI_ERP_SYS
238 238
     Private Sub 支票收支單申請ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 支票收支單申請ToolStripMenuItem.Click
239 239
         PA = "" : 支票收支單申請.Show() : 支票收支單申請.BringToFront()
240 240
     End Sub
241
+    Private Sub 票務控制表ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 票務控制表ToolStripMenuItem.Click
242
+        PA = "" : 票務控制表.Show() : 票務控制表.BringToFront()
243
+    End Sub
241 244
 End Class

+ 27
- 9
MaoOrange-Hongji/MAOJI-ERP-SYS.vbproj ファイルの表示

@@ -127,6 +127,24 @@
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>
136
+    <Compile Include="財務系統管理\應付賬款控制表.Designer.vb">
137
+      <DependentUpon>應付賬款控制表.vb</DependentUpon>
138
+    </Compile>
139
+    <Compile Include="財務系統管理\應付賬款控制表.vb">
140
+      <SubType>Form</SubType>
141
+    </Compile>
142
+    <Compile Include="財務系統管理\票務控制表.Designer.vb">
143
+      <DependentUpon>票務控制表.vb</DependentUpon>
144
+    </Compile>
145
+    <Compile Include="財務系統管理\票務控制表.vb">
146
+      <SubType>Form</SubType>
147
+    </Compile>
130 148
     <Compile Include="財務系統管理\支票收支單申請.Designer.vb">
131 149
       <DependentUpon>支票收支單申請.vb</DependentUpon>
132 150
     </Compile>
@@ -139,12 +157,6 @@
139 157
     <Compile Include="資料庫系統管理\系統通用變數管理.vb">
140 158
       <SubType>Form</SubType>
141 159
     </Compile>
142
-    <Compile Include="財務系統管理\應付賬款控制表.Designer.vb">
143
-      <DependentUpon>應付賬款控制表.vb</DependentUpon>
144
-    </Compile>
145
-    <Compile Include="財務系統管理\應付賬款控制表.vb">
146
-      <SubType>Form</SubType>
147
-    </Compile>
148 160
     <Compile Include="財務系統管理\應收帳款控制表.Designer.vb">
149 161
       <DependentUpon>應收帳款控制表.vb</DependentUpon>
150 162
     </Compile>
@@ -463,15 +475,21 @@
463 475
     <EmbeddedResource Include="倉儲系統管理\倉儲入庫驗收.resx">
464 476
       <DependentUpon>倉儲入庫驗收.vb</DependentUpon>
465 477
     </EmbeddedResource>
478
+    <EmbeddedResource Include="財務系統管理\財務單具申請.resx">
479
+      <DependentUpon>財務單具申請.vb</DependentUpon>
480
+    </EmbeddedResource>
481
+    <EmbeddedResource Include="財務系統管理\應付賬款控制表.resx">
482
+      <DependentUpon>應付賬款控制表.vb</DependentUpon>
483
+    </EmbeddedResource>
484
+    <EmbeddedResource Include="財務系統管理\票務控制表.resx">
485
+      <DependentUpon>票務控制表.vb</DependentUpon>
486
+    </EmbeddedResource>
466 487
     <EmbeddedResource Include="財務系統管理\支票收支單申請.resx">
467 488
       <DependentUpon>支票收支單申請.vb</DependentUpon>
468 489
     </EmbeddedResource>
469 490
     <EmbeddedResource Include="資料庫系統管理\系統通用變數管理.resx">
470 491
       <DependentUpon>系統通用變數管理.vb</DependentUpon>
471 492
     </EmbeddedResource>
472
-    <EmbeddedResource Include="財務系統管理\應付賬款控制表.resx">
473
-      <DependentUpon>應付賬款控制表.vb</DependentUpon>
474
-    </EmbeddedResource>
475 493
     <EmbeddedResource Include="財務系統管理\應收帳款控制表.resx">
476 494
       <DependentUpon>應收帳款控制表.vb</DependentUpon>
477 495
     </EmbeddedResource>

+ 3
- 0
MaoOrange-Hongji/Module1/Module1.vb ファイルの表示

@@ -8,6 +8,7 @@
8 8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9 9
     Public 列印用SQL As String = "" : Public 列印用SQL2 As String : Public 公司編號 As String : Public 公司電話 As String : Public 公司統編 As String : Public 公司地址 As String
10 10
     Public 關鍵字編號 As String
11
+
11 12
     Public PA As String = "" : Public PA1 As String = "" : Public PA2 As String = "" : Public PA3 As String = "" : Public PA4 As String = "" : Public PA5 As String = "" : Public PA6 As String = ""
12 13
     Public PA7 As String = "" : Public PA8 As String = "" : Public PA9 As String = "" : Public PA10 As String = "" : Public PA11 As String = "" : Public PA12 As String = "" : Public PA13 As String = ""
13 14
     Public PA14 As String = "" : Public PA15 As String = "" : Public PA16 As String = "" : Public PA17 As String = "" : Public PA18 As String = "" : Public PA19 As String = ""
@@ -18,6 +19,8 @@
18 19
 
19 20
     Public 平均數 As Integer : Public 最終數 As Integer = 0 : Public 資料數 As Integer = 0
20 21
     Public KKKJJ As String : Public KKKJJ2 As String : Public KKKJJ3 As String
22
+
23
+    Public 收付應沖金額 As Double : Public 財務單申請狀態 As String : Public 收付對應財務單號 As String : Public 收付對應客戶供應商編號 As String
21 24
     Public Class MyModule1
22 25
         Friend Shared Sub 進度條()
23 26
             平均數 = 10000 / 資料數

+ 216
- 73
MaoOrange-Hongji/Module1/SQL_Module.vb ファイルの表示

@@ -197,6 +197,42 @@ Module SQL_Module
197 197
     Friend Sub SQL_營運成本明細表項次修改()
198 198
         ConnOpen() : SQL1 = "UPDATE 營運成本明細表 SET 項次 = N'" & PA1 & "' WHERE (流水號 LIKE '" & PA2 & "' AND 項次 LIKE '" & PA3 & "')" : CmdSet_For_dr()
199 199
     End Sub
200
+    Friend Sub SQL_應付賬款_倉儲明細應付立帳修改()
201
+        ConnOpen() : SQL1 = "UPDATE 倉儲明細表 SET 應付立帳 = '" & PA7 & "' WHERE 資料流水號 LIKE '" & PA6 & "'" : CmdSet_For_dr()
202
+    End Sub
203
+    Friend Sub SQL_支票收支單申請_客戶資料_零售()
204
+        ConnOpen() : SQL1 = "SELECT 客戶名稱 FROM 零售客戶記錄表 WHERE (出貨單號 LIKE N'" & PA & "')" : CmdSet_For_dr()
205
+    End Sub
206
+    Friend Sub SQL_支票收支單申請_兌現科目_下拉清單一()
207
+        ConnOpen() : SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 WHERE (編號 LIKE 'A-01-02%') AND (層級 LIKE '3')" : CmdSet_For_dr()
208
+    End Sub
209
+    Friend Sub SQL_支票收支單申請_兌現科目_下拉清單二()
210
+        ConnOpen() : SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 WHERE (編號 LIKE 'E%' OR 編號 LIKE 'F%') AND (統制科目 = 0) AND (停用 = 0) ORDER BY 編號" : CmdSet_For_dr()
211
+    End Sub
212
+    Friend Sub SQL_支票收支單申請修改()
213
+        ConnOpen()
214
+        SQL1 = "UPDATE 營運成本明細表 SET  用途 = N'" & PA1 & "', 金額 = N'" & NU1 & "', 備註 = N'" & PA2 & "' , 會計科目 = N'" & PA3 & "', 收款 = N'" & NU2 & "', 零用金 = N'" & NU3 &
215
+                                     "', 支票數 = N'" & NU4 & "', 狀態 = N'" & PA6 & "', 登錄人 = N'" & PA7 & "', 發票人帳號 = N'" & PA8 & "', 兌現科目 = N'" & PA9 & "', 付款銀行 = N'" & PA10 &
216
+                                     "', 倉儲單號 = N'" & PA11 & "', 支票號碼 = N'" & PA12 & "', 開票人 = N'" & PA13 & "', 到期日 = N'" & PA14 & "', 預定兌現日 = N'" & PA15 &
217
+                                     "', 開收票日 = N'" & PA16 & "'
218
+                WHERE (流水號 LIKE '" & PA4 & "' AND 項次 LIKE '" & PA5 & "')"
219
+        CmdSet_For_dr()
220
+    End Sub
221
+    Friend Sub SQL_支票收支單客戶供應商查詢()
222
+        If Left(PA, 1) = "F" Then
223
+            KKKJJ = "WHERE     (倉儲明細表.供應商編號 LIKE '" & PA & "')"
224
+        Else
225
+            KKKJJ = "WHERE     (倉儲明細表.客戶編號 LIKE '" & PA & "')"
226
+        End If
227
+        ConnOpen()
228
+        SQL1 = "SELECT     倉儲明細表.客戶編號, 倉儲明細表.供應商編號, 供應商資料表.簡稱 AS 供應商, 客戶資料表.簡稱 AS 客戶
229
+                FROM       倉儲明細表 INNER JOIN 供應商資料表 ON 倉儲明細表.供應商編號 = 供應商資料表.編號 INNER JOIN
230
+                           客戶資料表 ON 倉儲明細表.客戶編號 = 客戶資料表.編號
231
+                " & KKKJJ & "
232
+                GROUP BY   倉儲明細表.供應商編號, 倉儲明細表.客戶編號, 供應商資料表.簡稱, 客戶資料表.簡稱"
233
+        CmdSet_For_dr()
234
+    End Sub
235
+
200 236
 
201 237
 
202 238
 
@@ -891,21 +927,21 @@ Module SQL_Module
891 927
                                (SELECT 營運成本明細表_3.會計科目 AS 細項, SUM(營運成本明細表_3.支票數) + SUM(營運成本明細表_3.收款) - 
892 928
                                        SUM(營運成本明細表_3.金額) - SUM(營運成本明細表_3.零用金) AS 細項金額
893 929
                                 FROM   營運成本明細表 AS 營運成本明細表_3 INNER JOIN 營運成本控制表 AS 營運成本控制表_3 ON 營運成本明細表_3.流水號 = 營運成本控制表_3.支付單號
894
-                                WHERE (營運成本控制表_3.審核日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "%') AND 
930
+                                WHERE (營運成本控制表_3.申請日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "%') AND 
895 931
                                       (營運成本控制表_3.公司編號 LIKE '%" & 公司編號 & "%')
896 932
                                 GROUP BY    營運成本明細表_3.會計科目) AS EERR ON 會計科目.編號 = EERR.細項 
897 933
                             FULL OUTER JOIN
898 934
                                (SELECT LEFT(營運成本明細表_2.會計科目, 4) AS 主碼, SUM(營運成本明細表_2.支票數) + SUM(營運成本明細表_2.收款) - 
899 935
                                        SUM(營運成本明細表_2.金額) - SUM(營運成本明細表_2.零用金) AS 主項金額
900 936
                                 FROM   營運成本明細表 AS 營運成本明細表_2 INNER JOIN 營運成本控制表 AS 營運成本控制表_2 ON 營運成本明細表_2.流水號 = 營運成本控制表_2.支付單號
901
-                                WHERE (營運成本控制表_2.審核日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "%') AND 
937
+                                WHERE (營運成本控制表_2.申請日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "%') AND 
902 938
                                       (營運成本控制表_2.公司編號 LIKE '%" & 公司編號 & "%')
903 939
                                 GROUP BY    LEFT(營運成本明細表_2.會計科目, 4)) AS QQWW ON LEFT(會計科目.編號, 4) = QQWW.主碼 
904 940
                             FULL OUTER JOIN
905 941
                                (SELECT LEFT(營運成本明細表_1.會計科目, 7) AS 子碼, SUM(營運成本明細表_1.支票數) + SUM(營運成本明細表_1.收款) - 
906 942
                                        SUM(營運成本明細表_1.金額) + SUM(營運成本明細表_1.零用金) AS 子項金額
907 943
                                 FROM   營運成本明細表 AS 營運成本明細表_1 INNER JOIN 營運成本控制表 AS 營運成本控制表_1 ON 營運成本明細表_1.流水號 = 營運成本控制表_1.支付單號
908
-                                WHERE (營運成本控制表_1.審核日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "%') AND 
944
+                                WHERE (營運成本控制表_1.申請日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "%') AND 
909 945
                                       (營運成本控制表_1.公司編號 LIKE '%" & 公司編號 & "%')
910 946
                                 GROUP BY    LEFT(營運成本明細表_1.會計科目, 7)) AS WWEE ON LEFT(會計科目.編號, 7) = WWEE.子碼
911 947
                 WHERE     (會計科目.顯示 = 1)
@@ -920,21 +956,21 @@ Module SQL_Module
920 956
                                (SELECT 營運成本明細表_3.會計科目 AS 細項, SUM(營運成本明細表_3.支票數) + SUM(營運成本明細表_3.收款) - 
921 957
                                        SUM(營運成本明細表_3.金額) - SUM(營運成本明細表_3.零用金) AS 細項金額
922 958
                                 FROM   營運成本明細表 AS 營運成本明細表_3 INNER JOIN 營運成本控制表 AS 營運成本控制表_3 ON 營運成本明細表_3.流水號 = 營運成本控制表_3.支付單號
923
-                                WHERE (營運成本控制表_3.審核日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "/" & PA & "/%') AND 
959
+                                WHERE (營運成本控制表_3.申請日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "/" & PA & "/%') AND 
924 960
                                       (營運成本控制表_3.公司編號 LIKE '%" & 公司編號 & "%')
925 961
                                 GROUP BY    營運成本明細表_3.會計科目) AS EERR ON 會計科目.編號 = EERR.細項 
926 962
                             FULL OUTER JOIN
927 963
                                (SELECT LEFT(營運成本明細表_2.會計科目, 4) AS 主碼, SUM(營運成本明細表_2.支票數) + SUM(營運成本明細表_2.收款) - 
928 964
                                        SUM(營運成本明細表_2.金額) - SUM(營運成本明細表_2.零用金) AS 主項金額
929 965
                                 FROM   營運成本明細表 AS 營運成本明細表_2 INNER JOIN 營運成本控制表 AS 營運成本控制表_2 ON 營運成本明細表_2.流水號 = 營運成本控制表_2.支付單號
930
-                                WHERE (營運成本控制表_2.審核日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "/" & PA & "/%') AND 
966
+                                WHERE (營運成本控制表_2.申請日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "/" & PA & "/%') AND 
931 967
                                       (營運成本控制表_2.公司編號 LIKE '%" & 公司編號 & "%')
932 968
                                 GROUP BY    LEFT(營運成本明細表_2.會計科目, 4)) AS QQWW ON LEFT(會計科目.編號, 4) = QQWW.主碼 
933 969
                             FULL OUTER JOIN
934 970
                                (SELECT LEFT(營運成本明細表_1.會計科目, 7) AS 子碼, SUM(營運成本明細表_1.支票數) + SUM(營運成本明細表_1.收款) - 
935 971
                                        SUM(營運成本明細表_1.金額) - SUM(營運成本明細表_1.零用金) AS 子項金額
936 972
                                 FROM   營運成本明細表 AS 營運成本明細表_1 INNER JOIN 營運成本控制表 AS 營運成本控制表_1 ON 營運成本明細表_1.流水號 = 營運成本控制表_1.支付單號
937
-                                WHERE (營運成本控制表_1.審核日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "/" & PA & "/%') AND 
973
+                                WHERE (營運成本控制表_1.申請日期 LIKE '" & 營運成本收支_決算表.ComboBox1.Text & "/" & PA & "/%') AND 
938 974
                                       (營運成本控制表_1.公司編號 LIKE '%" & 公司編號 & "%')
939 975
                                 GROUP BY    LEFT(營運成本明細表_1.會計科目, 7)) AS WWEE ON LEFT(會計科目.編號, 7) = WWEE.子碼
940 976
                 WHERE     (會計科目.顯示 = 1)
@@ -959,15 +995,16 @@ Module SQL_Module
959 995
         SQL1 = "SELECT      營運成本控制表.支付單號 AS 收支單號, 營運成本控制表.申請人, 營運成本控制表.申請日期, 營運成本控制表.審核人, 
960 996
                             營運成本控制表.審核日期, 營運成本明細表.項次, 會計科目.會計科目, 營運成本明細表.用途 AS 用途與內容, 
961 997
                             營運成本明細表.零用金 AS 開票, 營運成本明細表.支票數 AS 收票, 營運成本明細表.收款 AS 現金, 
962
-                            營運成本明細表.金額 AS 支出, 營運成本明細表.備註 AS 票期, 營運成本明細表.會計, 營運成本明細表.作帳日期, 
998
+                            營運成本明細表.金額 AS 支出, 營運成本明細表.備註, 營運成本明細表.會計, 營運成本明細表.作帳日期, 
963 999
                             營運成本明細表.出納 AS 點交, 營運成本明細表.出納日期 AS 點交日期, 營運成本明細表.備用金 AS 開票已付, 
964 1000
                             營運成本明細表.支票 AS 收票兌現, 營運成本明細表.現金 AS 現金點交, 營運成本明細表.公帳 AS 支出點交
965 1001
                 FROM        營運成本明細表 INNER JOIN
966 1002
                             會計科目 ON 營運成本明細表.會計科目 = 會計科目.編號 FULL OUTER JOIN
967 1003
                             營運成本控制表 ON 營運成本明細表.流水號 = 營運成本控制表.支付單號
968
-                WHERE      (營運成本控制表.公司編號 LIKE '%" & 公司編號 & "%') AND (營運成本控制表.審核人 NOT LIKE '') AND 
1004
+                WHERE      (營運成本控制表.公司編號 LIKE '%" & 公司編號 & "%')  AND 
969 1005
                            (營運成本控制表.審核人 NOT LIKE '作廢%') " & KKKJJ3 & KKKJJ & KKKJJ2 & " 
970 1006
                 ORDER BY    收支單號 DESC, 營運成本明細表.項次"
1007
+        'AND (營運成本控制表.審核人 NOT LIKE '')
971 1008
         CmdSet_For_DGV()
972 1009
     End Sub
973 1010
     Friend Sub SQL_營運成本明細表_會計歸零()
@@ -1115,9 +1152,6 @@ Module SQL_Module
1115 1152
     Friend Sub SQL_營運成本收支單審核_明細表修改()
1116 1153
         ConnOpen() : SQL1 = "UPDATE 營運成本明細表 SET 出納 = '1', 出納日期 = N'" & DTP & "' WHERE (流水號 LIKE '" & 財務收支單審核.TextBox1.Text & "')" : CmdSet_For_dr()
1117 1154
     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
1121 1155
     Friend Sub SQL_營運成本收支單審核_明細表_現金確認()
1122 1156
         ConnOpen() : SQL1 = "UPDATE 營運成本明細表 SET  現金 = N'1' WHERE (流水號 LIKE '" & PA1 & "' AND 項次 LIKE '" & PA2 & "')" : CmdSet_For_dr()
1123 1157
     End Sub
@@ -1824,11 +1858,6 @@ Module SQL_Module
1824 1858
                 ORDER BY    倉儲明細表.料號 "
1825 1859
         CmdSet_For_DGV()
1826 1860
     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
1832 1861
     Friend Sub SQL_維修單申請_客戶資料_零售二()
1833 1862
         ConnOpen()
1834 1863
         SQL1 = "SELECT 零售流水號, 客戶名稱, 統一編號, 郵遞區號, 店面地址, 送貨地址, 手機, 電話, 傳真, 出貨單號, 公司編號 FROM 零售客戶記錄表 WHERE (出貨單號 LIKE N'" & 維修單申請.TextBox9.Text & "')"
@@ -2112,30 +2141,58 @@ Module SQL_Module
2112 2141
                      ORDER BY 倉儲明細表.料號"
2113 2142
         CmdSet_For_DGV()
2114 2143
     End Sub
2115
-    '---------------------應付賬款-----------------------------------------------------------------------------------------------------------------
2116
-    Friend Sub SQL_應付賬款清單()
2117
-        If 應付賬款控制表.CheckBox3.Checked = False Then
2118
-            KKKJJ = " WHERE (倉儲明細表.狀態 LIKE '採購入庫') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2119
-                            (倉儲明細表.採購下單 BETWEEN '" & Format(應付賬款控制表.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應付賬款控制表.DateTimePicker2.Value, "yyyy/MM/dd") & "') "
2120
-        ElseIf 應付賬款控制表.CheckBox3.Checked = True Then
2121
-            KKKJJ = " WHERE (倉儲明細表.狀態 LIKE '採購入庫') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2122
-                            (倉儲明細表.採購下單 BETWEEN '" & Format(應付賬款控制表.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應付賬款控制表.DateTimePicker2.Value, "yyyy/MM/dd") & "') AND 
2123
-                            (倉儲明細表.應付立帳 IS NULL OR 倉儲明細表.應付立帳 = 0)"
2124
-        End If
2144
+    '---------------------應付帳款控制表-----------------------------------------------------------------------------------------------------------------
2145
+    Friend Sub SQL_應付賬款主單()
2125 2146
         ConnOpen()
2126
-        SQL1 = "SELECT      倉儲明細表.單據編號, 倉儲明細表.供應商編號, 供應商資料表.簡稱 AS 供應商, 物料資料庫.料號, 
2127
-                            物料資料庫.頁碼, 物料資料庫.品名, 倉儲明細表.金額 AS 單價, 倉儲明細表.匯率, 
2128
-                            倉儲明細表.入庫, 倉儲明細表.金額 * 倉儲明細表.匯率 * 倉儲明細表.入庫 AS 金額, 
2129
-                            倉儲明細表.採購下單, 倉儲明細表.入庫日期, 倉儲明細表.備註, 倉儲明細表.應收立帳 AS 選擇, 
2130
-                            倉儲明細表.應付立帳, 倉儲明細表.資料流水號
2147
+        SQL1 = "SELECT      倉儲明細表.供應商編號, 供應商資料表.簡稱 AS 供應商
2131 2148
                 FROM        倉儲明細表 LEFT OUTER JOIN
2132 2149
                             供應商資料表 ON 倉儲明細表.供應商編號 = 供應商資料表.編號 LEFT OUTER JOIN
2133
-                            物料資料庫 ON 倉儲明細表.料號 = 物料資料庫.料號 " & KKKJJ & "
2150
+                            物料資料庫 ON 倉儲明細表.料號 = 物料資料庫.料號
2151
+                WHERE      (倉儲明細表.狀態 LIKE '採購入庫') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2152
+                           (倉儲明細表.採購下單 BETWEEN '" & Format(應付賬款控制表.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應付賬款控制表.DateTimePicker2.Value, "yyyy/MM/dd") & "')
2153
+                GROUP BY    倉儲明細表.供應商編號, 供應商資料表.簡稱
2154
+                ORDER BY    倉儲明細表.供應商編號, 供應商資料表.簡稱"
2155
+        CmdSet_For_DGV()
2156
+    End Sub
2157
+    Friend Sub SQL_應付賬款清單一()
2158
+        ConnOpen()
2159
+        SQL1 = "SELECT      倉儲明細表.單據編號, 倉儲明細表.供應商編號, 供應商資料表.簡稱 AS 供應商, 物料資料庫.料號, 物料資料庫.頁碼, 物料資料庫.品名, 倉儲明細表.金額 AS 單價, 倉儲明細表.匯率, 
2160
+                            倉儲明細表.入庫, 倉儲明細表.金額 * 倉儲明細表.匯率 * 倉儲明細表.入庫 AS 金額, 倉儲明細表.採購下單, 倉儲明細表.入庫日期, 倉儲明細表.備註, 倉儲明細表.應收立帳 AS 選擇, 
2161
+                            倉儲明細表.應付立帳, 倉儲明細表.資料流水號, 倉儲明細表.財務單號, 營運成本控制表.申請日期
2162
+                FROM        倉儲明細表 LEFT OUTER JOIN 營運成本控制表 ON 倉儲明細表.財務單號 = 營運成本控制表.支付單號 LEFT OUTER JOIN 供應商資料表 ON 倉儲明細表.供應商編號 = 供應商資料表.編號 
2163
+                            LEFT OUTER JOIN 物料資料庫 ON 倉儲明細表.料號 = 物料資料庫.料號
2164
+                WHERE      (倉儲明細表.狀態 LIKE '採購入庫') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND (倉儲明細表.供應商編號 LIKE '" & 應付賬款控制表.TextBox1.Text & "') AND 
2165
+                           (倉儲明細表.採購下單 BETWEEN '" & Format(應付賬款控制表.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應付賬款控制表.DateTimePicker2.Value, "yyyy/MM/dd") & "') 
2134 2166
                 ORDER BY    倉儲明細表.單據編號, 倉儲明細表.入庫日期"
2135 2167
         CmdSet_For_DGV()
2136 2168
     End Sub
2137
-    Friend Sub SQL_應付賬款_倉儲明細應付立帳修改()
2138
-        ConnOpen() : SQL1 = "UPDATE 倉儲明細表 SET 應付立帳 = 1 WHERE 資料流水號 LIKE '" & PA6 & "'" : CmdSet_For_dr()
2169
+    Friend Sub SQL_應付賬款清單二()
2170
+        ConnOpen()
2171
+        SQL1 = "SELECT      倉儲明細表.單據編號, 倉儲明細表.供應商編號, 供應商資料表.簡稱 AS 供應商, 物料資料庫.料號, 物料資料庫.頁碼, 物料資料庫.品名, 倉儲明細表.金額 AS 單價, 倉儲明細表.匯率, 
2172
+                            倉儲明細表.入庫, 倉儲明細表.金額 * 倉儲明細表.匯率 * 倉儲明細表.入庫 AS 金額, 倉儲明細表.採購下單, 倉儲明細表.入庫日期, 倉儲明細表.備註, 倉儲明細表.應收立帳 AS 選擇, 
2173
+                            倉儲明細表.應付立帳, 倉儲明細表.資料流水號, 倉儲明細表.財務單號, 營運成本控制表.申請日期
2174
+                FROM        倉儲明細表 LEFT OUTER JOIN 營運成本控制表 ON 倉儲明細表.財務單號 = 營運成本控制表.支付單號 LEFT OUTER JOIN 供應商資料表 ON 倉儲明細表.供應商編號 = 供應商資料表.編號 
2175
+                            LEFT OUTER JOIN 物料資料庫 ON 倉儲明細表.料號 = 物料資料庫.料號
2176
+                WHERE      (倉儲明細表.狀態 LIKE '採購入庫') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND (倉儲明細表.財務單號 LIKE '" & 應付賬款控制表.TextBox6.Text & "')
2177
+                ORDER BY    倉儲明細表.單據編號, 倉儲明細表.入庫日期"
2178
+        CmdSet_For_DGV()
2179
+    End Sub
2180
+    Friend Sub SQL_應付賬款清單三()
2181
+        ConnOpen()
2182
+        SQL1 = "SELECT     營運成本明細表.流水號, 營運成本明細表.項次, QQ.會計科目 AS 開票會科, 營運成本明細表.會計科目, 營運成本明細表.用途, 營運成本明細表.零用金 AS 開票, 
2183
+                           營運成本明細表.支票數 AS 收票, 營運成本明細表.金額 AS 付現, 營運成本明細表.收款 AS 收現, 營運成本明細表.備註, 營運成本明細表.備用金 AS 開票已付, 
2184
+                           營運成本明細表.支票 AS 收票託收, 營運成本明細表.支票號碼, 營運成本明細表.狀態, 營運成本明細表.到期日, 營運成本明細表.預定兌現日, 營運成本明細表.開收票日, 
2185
+                           營運成本明細表.託收已付日, WW.會計科目 AS 兌現會科, 營運成本明細表.兌現科目, 營運成本明細表.付款銀行, 營運成本明細表.開票人, 營運成本明細表.登錄人, 
2186
+                           營運成本明細表.發票人帳號, 營運成本明細表.作帳日期, 營運成本明細表.出納日期, 營運成本明細表.倉儲單號
2187
+                FROM       營運成本明細表 LEFT OUTER JOIN 會計科目 AS QQ ON 營運成本明細表.會計科目 = QQ.編號 LEFT OUTER JOIN 會計科目 AS WW ON 營運成本明細表.兌現科目 = WW.編號
2188
+                WHERE     (營運成本明細表.公司編號 LIKE '%" & 公司編號 & "%') AND  (營運成本明細表.流水號 LIKE '" & 應付賬款控制表.TextBox6.Text & "') AND
2189
+                          (營運成本明細表.作帳日期 BETWEEN '" & Format(應付賬款控制表.DateTimePicker1.Value, "yyyy/MM/dd") &
2190
+                                                    "' AND '" & Format(應付賬款控制表.DateTimePicker2.Value, "yyyy/MM/dd") & "')
2191
+                ORDER BY   營運成本明細表.項次"
2192
+        CmdSet_For_DGV()
2193
+    End Sub
2194
+    Friend Sub SQL_應收應付單號連接暫存檔新增()
2195
+        ConnOpen() : SQL1 = "INSERT INTO 應收應付單號連接暫存檔 (流水單號)  VALUES (N'" & PA19 & "')" : CmdSet_For_dr()
2139 2196
     End Sub
2140 2197
     '---------------------系統通用變數管理-----------------------------------------------------------------------------------------------------------------
2141 2198
     Friend Sub SQL_通用預設值管理清單一()
@@ -2176,19 +2233,11 @@ Module SQL_Module
2176 2233
     '---------------------支票收支單申請-----------------------------------------------------------------------------------------------------------------
2177 2234
     Friend Sub SQL_支票收支單申請清單()
2178 2235
         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  營運成本控制表.支付單號, 營運成本控制表.申請日期, 營運成本控制表.審核日期, 營運成本控制表.申請人
2236
+        SQL1 = "SELECT    營運成本控制表.支付單號 AS 收支單號, 營運成本控制表.申請日期, 營運成本控制表.審核日期, 營運成本控制表.申請人, 營運成本明細表.狀態
2237
+                FROM      營運成本控制表 INNER JOIN 營運成本明細表 ON 營運成本控制表.支付單號 = 營運成本明細表.流水號 
2238
+                WHERE    (營運成本明細表.狀態 NOT LIKE '%現%' OR 營運成本明細表.狀態 IS NULL OR 營運成本明細表.狀態 LIKE '') AND 
2239
+                         (營運成本控制表.公司編號 LIKE '%" & 公司編號 & "%') 
2240
+                GROUP BY  營運成本控制表.支付單號, 營運成本控制表.申請日期, 營運成本控制表.審核日期, 營運成本控制表.申請人, 營運成本明細表.狀態
2192 2241
                 ORDER BY  營運成本控制表.申請日期 DESC"
2193 2242
         CmdSet_For_DGV()
2194 2243
     End Sub
@@ -2204,43 +2253,137 @@ Module SQL_Module
2204 2253
                 ORDER BY    營運成本明細表.項次"
2205 2254
         CmdSet_For_DGV()
2206 2255
     End Sub
2207
-    Friend Sub SQL_支票收支單客戶供應商查詢()
2256
+    Friend Sub SQL_支票收支單申請_付款銀行_下拉清單()
2257
+        ConnOpen() : SQL1 = "SELECT 付款銀行 FROM 營運成本明細表 GROUP BY   付款銀行" : CmdSet_For_dr()
2258
+    End Sub
2259
+    Friend Sub SQL_支票收支單申請複製單據新增()
2208 2260
         ConnOpen()
2209
-        SQL1 = "SELECT     倉儲明細表.供應商編號, 倉儲明細表.客戶編號, 供應商資料表.簡稱 AS 供應商, 客戶資料表.簡稱 AS 客戶
2210
-                FROM       倉儲明細表 INNER JOIN 供應商資料表 ON 倉儲明細表.供應商編號 = 供應商資料表.編號 INNER JOIN
2211
-                           客戶資料表 ON 倉儲明細表.客戶編號 = 客戶資料表.編號
2212
-                WHERE     (倉儲明細表.單據編號 LIKE '" & PA & "')
2213
-                GROUP BY   倉儲明細表.供應商編號, 倉儲明細表.客戶編號, 供應商資料表.簡稱, 客戶資料表.簡稱"
2261
+        SQL1 = "INSERT INTO 營運成本明細表 (流水號, 項次, 會計科目, 用途, 金額, 備註, 收款, 零用金, 支票數, 會計, 出納, 現金, 備用金, 公帳, 支票, 作帳日期, 出納日期, 公司編號, 狀態, 登錄人, 
2262
+                                                發票人帳號, 兌現科目, 付款銀行, 倉儲單號, 支票號碼, 開票人, 到期日, 預定兌現日, 開收票日) 
2263
+                VALUES (N'" & PA1 & "', N'" & PA2 & "', N'" & PA3 & "', N'" & PA4 & "', N'" & NU1 & "', N'" & PA5 & "', N'" & NU2 & "', N'" & NU3 & "', N'" & NU4 &
2264
+                    "', N'1', N'0', N'0', N'0', N'0', N'0', N'" & DTP & "', N'', N'" & 公司編號 & "', N'" & PA6 & "', N'" & PA7 & "', N'" & PA8 & "', N'" & PA9 &
2265
+                    "', N'" & PA10 & "', N'" & PA11 & "', N'" & PA12 & "', N'" & PA13 & "', N'" & PA14 & "', N'" & PA15 & "', N'" & PA16 & "')"
2214 2266
         CmdSet_For_dr()
2215 2267
     End Sub
2216
-    Friend Sub SQL_支票收支單申請_客戶資料_零售()
2217
-        ConnOpen() : SQL1 = "SELECT 客戶名稱 FROM 零售客戶記錄表 WHERE (出貨單號 LIKE N'" & PA & "')" : CmdSet_For_dr()
2268
+    Friend Sub SQL_支票收支單申請_營運成本控制表新增()
2269
+        ConnOpen()
2270
+        SQL1 = "INSERT INTO 營運成本控制表 (支付單號, 申請人, 申請日期, 審核人, 審核日期, 會計, 作帳日期, 出納, 出納日期, 備註, 公司編號) 
2271
+                VALUES (N'" & PA & "', N'" & gUserName & "', N'" & DTP & "', N'" & gUserName & "', N'" & DTP & "', N'" & gUserName & "', N'" & DTP &
2272
+                    "', N'" & gUserName & "', N'" & DTP & "', N'票據作業', N'" & 公司編號 & "')"
2273
+        CmdSet_For_dr()
2218 2274
     End Sub
2219
-    Friend Sub SQL_支票收支單申請_兌現科目_下拉清單一()
2220
-        ConnOpen() : SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 WHERE (編號 LIKE 'A-01-02%') AND (層級 LIKE '3')" : CmdSet_For_dr()
2275
+    '---------------------票務控制表-----------------------------------------------------------------------------------------------------------------
2276
+    Friend Sub SQL_票務控制表清單()
2277
+        ConnOpen()
2278
+        SQL1 = "SELECT     營運成本明細表.流水號, 營運成本明細表.項次, QQ.會計科目 AS 開票會科, 營運成本明細表.會計科目, 營運成本明細表.用途, 營運成本明細表.零用金 AS 開票, 
2279
+                           營運成本明細表.支票數 AS 收票, 營運成本明細表.備註, 營運成本明細表.備用金 AS 開票已付, 營運成本明細表.支票 AS 收票託收, 營運成本明細表.支票號碼, 
2280
+                           營運成本明細表.狀態, 營運成本明細表.到期日, 營運成本明細表.預定兌現日, 營運成本明細表.開收票日, 營運成本明細表.託收已付日, WW.會計科目 AS 兌現會科, 
2281
+                           營運成本明細表.兌現科目, 營運成本明細表.付款銀行, 營運成本明細表.開票人, 營運成本明細表.登錄人, 營運成本明細表.發票人帳號, 營運成本明細表.作帳日期, 
2282
+                           營運成本明細表.出納日期, 營運成本明細表.倉儲單號
2283
+                FROM       營運成本明細表 LEFT OUTER JOIN 會計科目 AS QQ ON 營運成本明細表.會計科目 = QQ.編號 LEFT OUTER JOIN 會計科目 AS WW ON 營運成本明細表.兌現科目 = WW.編號
2284
+                WHERE     (營運成本明細表.狀態 LIKE '" & 票務控制表.ComboBox2.Text & "') AND (營運成本明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2285
+                          (QQ.會計科目 LIKE '" & 票務控制表.ComboBox1.Text & "') AND (WW.會計科目 LIKE '%" & 票務控制表.ComboBox3.Text & "%') AND
2286
+                          (營運成本明細表." & 票務控制表.ComboBox15.Text & " BETWEEN '" & Format(票務控制表.DateTimePicker1.Value, "yyyy/MM/dd") &
2287
+                                                                              "' AND '" & Format(票務控制表.DateTimePicker2.Value, "yyyy/MM/dd") & "')
2288
+                ORDER BY   營運成本明細表." & 票務控制表.ComboBox15.Text & ""
2289
+        CmdSet_For_DGV()
2221 2290
     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()
2291
+    Friend Sub SQL_票務控制表會科區分()
2292
+        ConnOpen()
2293
+        SQL1 = "SELECT     QQ.會計科目 AS 開票會科
2294
+                FROM       營運成本明細表 LEFT OUTER JOIN 會計科目 AS QQ ON 營運成本明細表.會計科目 = QQ.編號 LEFT OUTER JOIN 會計科目 AS WW ON 營運成本明細表.兌現科目 = WW.編號
2295
+                WHERE     (營運成本明細表.狀態 NOT LIKE '%現%') AND (營運成本明細表.公司編號 LIKE '%" & 公司編號 & "%')
2296
+                GROUP BY   QQ.會計科目 ORDER BY QQ.會計科目 DESC"
2297
+        CmdSet_For_dr()
2224 2298
     End Sub
2225
-    Friend Sub SQL_支票收支單申請_付款銀行_下拉清單()
2226
-        ConnOpen() : SQL1 = "SELECT 付款銀行 FROM 營運成本明細表 GROUP BY   付款銀行" : CmdSet_For_dr()
2299
+    Friend Sub SQL_票務控制表票況區分()
2300
+        ConnOpen()
2301
+        SQL1 = "SELECT     營運成本明細表.狀態
2302
+                FROM       營運成本明細表 LEFT OUTER JOIN 會計科目 AS QQ ON 營運成本明細表.會計科目 = QQ.編號 LEFT OUTER JOIN 會計科目 AS WW ON 營運成本明細表.兌現科目 = WW.編號
2303
+                WHERE     (營運成本明細表.狀態 NOT LIKE '%現%') AND (營運成本明細表.公司編號 LIKE '%" & 公司編號 & "%')
2304
+                GROUP BY   營運成本明細表.狀態 ORDER BY 營運成本明細表.狀態"
2305
+        CmdSet_For_dr()
2227 2306
     End Sub
2228
-    Friend Sub SQL_支票收支單申請修改()
2307
+    Friend Sub SQL_票務控制表兌現科目()
2229 2308
         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 & "')"
2309
+        SQL1 = "SELECT     WW.會計科目 AS 兌現會科
2310
+                FROM       營運成本明細表 LEFT OUTER JOIN 會計科目 AS QQ ON 營運成本明細表.會計科目 = QQ.編號 LEFT OUTER JOIN 會計科目 AS WW ON 營運成本明細表.兌現科目 = WW.編號
2311
+                WHERE     (營運成本明細表.狀態 NOT LIKE '%現%') AND (營運成本明細表.公司編號 LIKE '%" & 公司編號 & "%')
2312
+                GROUP BY   WW.會計科目 ORDER BY WW.會計科目"
2235 2313
         CmdSet_For_dr()
2236 2314
     End Sub
2237
-    Friend Sub SQL_支票收支單申請複製單據新增()
2315
+    Friend Sub SQL_支票收支單_兌現科目_下拉清單三()
2316
+        ConnOpen() : SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 WHERE (編號 LIKE 'D%' OR 編號 LIKE 'G%') AND (統制科目 = 0) AND (停用 = 0) ORDER BY 編號" : CmdSet_For_dr()
2317
+    End Sub
2318
+    '---------------------財務單具申請-----------------------------------------------------------------------------------------------------------------
2319
+    Friend Sub SQL_會計科目_第一階_應付_不含流動票務()
2238 2320
         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 & "')"
2321
+        SQL1 = "SELECT 第一階, LEFT(編號, 4) AS 編號 FROM 會計科目  
2322
+                WHERE (編號 NOT LIKE 'D%') AND (編號 NOT LIKE 'G%') AND (停用 = 0) AND (第一階 NOT LIKE '流動%') GROUP BY 第一階, LEFT(編號, 4) ORDER BY 編號"
2244 2323
         CmdSet_For_dr()
2245 2324
     End Sub
2325
+    Friend Sub SQL_會計科目_第二階_應付_不含流動票務()
2326
+        ConnOpen()
2327
+        SQL1 = "SELECT LEFT(編號, 7) AS 編號, 第二階, 層級 FROM  會計科目 
2328
+                WHERE (編號 NOT LIKE 'D%') AND (編號 NOT LIKE 'G%') AND (LEFT(編號, 4) LIKE N'" & PA & "') AND (層級 NOT LIKE '3') AND (停用 = 0) AND (第一階 NOT LIKE '流動%')
2329
+                GROUP BY   LEFT(編號, 7), 第二階, 層級 ORDER BY   編號"
2330
+        CmdSet_For_dr()
2331
+    End Sub
2332
+    Friend Sub SQL_會計科目_第三階_應付_不含流動票務()
2333
+        ConnOpen()
2334
+        SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 
2335
+                WHERE (編號 NOT LIKE 'D%') AND (編號 NOT LIKE 'G%') AND (LEFT(編號, 7) LIKE N'" & PA & "') AND (停用 = 0) AND (統制科目 = 0) AND (第一階 NOT LIKE '流動%') ORDER BY 編號"
2336
+        CmdSet_For_dr()
2337
+    End Sub
2338
+    Friend Sub SQL_會計科目_關鍵字_應付_不含流動票務()
2339
+        ConnOpen()
2340
+        SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 
2341
+                WHERE (編號 NOT LIKE 'D%') AND (編號 NOT LIKE 'G%') AND (會計科目 LIKE N'%" & PA & "%') AND (停用 = 0) AND (統制科目 = 0) AND (第一階 NOT LIKE '流動%') ORDER BY 編號"
2342
+        CmdSet_For_dr()
2343
+    End Sub
2344
+    Friend Sub SQL_會計科目_第一階_應付_只含流動票務()
2345
+        ConnOpen()
2346
+        SQL1 = "SELECT 第一階, LEFT(編號, 4) AS 編號 FROM 會計科目  
2347
+                WHERE (編號 NOT LIKE 'A%') AND (停用 = 0) AND (第一階 LIKE '流動%') GROUP BY 第一階, LEFT(編號, 4) ORDER BY 編號"
2348
+        CmdSet_For_dr()
2349
+    End Sub
2350
+    Friend Sub SQL_會計科目_第二階_應付_只含流動票務()
2351
+        ConnOpen()
2352
+        SQL1 = "SELECT LEFT(編號, 7) AS 編號, 第二階, 層級 FROM  會計科目 
2353
+                WHERE (編號 NOT LIKE 'A%') AND (LEFT(編號, 4) LIKE N'" & PA & "') AND (層級 NOT LIKE '3') AND (停用 = 0) AND (第一階 LIKE '流動%')
2354
+                GROUP BY   LEFT(編號, 7), 第二階, 層級 ORDER BY   編號"
2355
+        CmdSet_For_dr()
2356
+    End Sub
2357
+    Friend Sub SQL_會計科目_第三階_應付_只含流動票務()
2358
+        ConnOpen()
2359
+        SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 
2360
+                WHERE (編號 NOT LIKE 'A%') AND (LEFT(編號, 7) LIKE N'" & PA & "') AND (停用 = 0) AND (統制科目 = 0) AND (第一階 LIKE '流動%') ORDER BY 編號"
2361
+        CmdSet_For_dr()
2362
+    End Sub
2363
+    Friend Sub SQL_會計科目_關鍵字_應付_只含流動票務()
2364
+        ConnOpen()
2365
+        SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 
2366
+                WHERE (編號 NOT LIKE 'A%') AND (會計科目 LIKE N'%" & PA & "%') AND (停用 = 0) AND (統制科目 = 0) AND (第一階 LIKE '流動%') ORDER BY 編號"
2367
+        CmdSet_For_dr()
2368
+    End Sub
2369
+    Friend Sub SQL_應收應付單號連接暫存檔讀取()
2370
+        ConnOpen() : SQL1 = "SELECT 流水單號 FROM 應收應付單號連接暫存檔" : CmdSet_For_DGV()
2371
+    End Sub
2372
+    Friend Sub SQL_應收應付單號連接暫存檔刪除()
2373
+        ConnOpen() : SQL1 = "DELETE FROM 應收應付單號連接暫存檔" : CmdSet_For_dr()
2374
+    End Sub
2375
+    Friend Sub SQL_財務單具申請費用清單()
2376
+        ConnOpen()
2377
+        SQL1 = "SELECT      營運成本明細表.流水號, 營運成本明細表.項次, QQ.會計科目, 營運成本明細表.用途, 營運成本明細表.零用金 AS 開票, 營運成本明細表.支票數 AS 收票, 營運成本明細表.金額 AS 支出, 
2378
+                            營運成本明細表.收款 AS 現金, 營運成本明細表.備註, 營運成本明細表.會計科目 AS 科目編號, 營運成本明細表.狀態, 營運成本明細表.倉儲單號, 營運成本明細表.支票號碼, 
2379
+                            營運成本明細表.到期日, 營運成本明細表.預定兌現日, 營運成本明細表.開收票日, 營運成本明細表.託收已付日, 
2380
+                            營運成本明細表.兌現科目, 營運成本明細表.付款銀行, 營運成本明細表.開票人, 營運成本明細表.登錄人, 營運成本明細表.發票人帳號
2381
+                FROM        營運成本明細表 INNER JOIN 會計科目 AS QQ ON 營運成本明細表.會計科目 = QQ.編號
2382
+                WHERE      (營運成本明細表.流水號 LIKE '" & 財務單具申請.TextBox1.Text & "')
2383
+                ORDER BY    營運成本明細表.項次"
2384
+        CmdSet_For_DGV()
2385
+    End Sub
2386
+    Friend Sub SQL_倉儲明細表財務單號連接修改()
2387
+        ConnOpen() : SQL1 = "UPDATE 倉儲明細表 SET  財務單號 = N'" & PA & "' WHERE (資料流水號 LIKE '" & PA19 & "')" : CmdSet_For_dr()
2388
+    End Sub
2246 2389
 End Module

バイナリ
MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.exe ファイルの表示


バイナリ
MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.pdb ファイルの表示


バイナリ
MaoOrange-Hongji/obj/Debug/DesignTimeResolveAssemblyReferences.cache ファイルの表示


バイナリ
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
-d43cd04b8a7f93190e7a2002705b906efffffcd1
1
+b43126533b1c6358aea406aca2337ef3a341cb25

+ 3
- 1
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.FileListAbsolute.txt ファイルの表示

@@ -189,7 +189,6 @@ G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.銷售退貨申請.
189 189
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.銷售退貨清單.resources
190 190
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.銷售退貨確認.resources
191 191
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.列印_產品標籤介面.resources
192
-G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.應付賬款控制表.resources
193 192
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.應收帳款控制表.resources
194 193
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.系統通用變數管理.resources
195 194
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.財務收支單_對帳表.resources
@@ -198,3 +197,6 @@ G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.財務收支單審
198 197
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.現金收支單申請.resources
199 198
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.採購退貨清單.resources
200 199
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.支票收支單申請.resources
200
+G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.票務控制表.resources
201
+G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.財務單具申請.resources
202
+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 ファイルの表示


バイナリ
MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.財務收支單_對帳表.resources ファイルの表示


バイナリ
MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.財務收支單一覽表.resources ファイルの表示


バイナリ
MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.財務收支單審核.resources ファイルの表示


+ 22
- 10
MaoOrange-Hongji/採購系統管理/採購控制表.Designer.vb ファイルの表示

@@ -23,9 +23,9 @@ Partial Class 採購控制表
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25 25
         Me.components = New System.ComponentModel.Container()
26
-        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle9 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29 29
         Me.TextBox4 = New System.Windows.Forms.TextBox()
30 30
         Me.TextBox1 = New System.Windows.Forms.TextBox()
31 31
         Me.TextBox6 = New System.Windows.Forms.TextBox()
@@ -50,6 +50,7 @@ Partial Class 採購控制表
50 50
         Me.CheckBox2 = New System.Windows.Forms.CheckBox()
51 51
         Me.一般月 = New System.Windows.Forms.CheckBox()
52 52
         Me.會計月 = New System.Windows.Forms.CheckBox()
53
+        Me.DateTimePicker4 = New System.Windows.Forms.DateTimePicker()
53 54
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
54 55
         Me.ContextMenuStrip1.SuspendLayout()
55 56
         CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -153,8 +154,8 @@ Partial Class 採購控制表
153 154
         Me.DataGridView1.Location = New System.Drawing.Point(250, 57)
154 155
         Me.DataGridView1.Name = "DataGridView1"
155 156
         Me.DataGridView1.RowHeadersWidth = 5
156
-        DataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
157
-        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle7
157
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
158
+        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle4
158 159
         Me.DataGridView1.RowTemplate.Height = 24
159 160
         Me.DataGridView1.Size = New System.Drawing.Size(1657, 918)
160 161
         Me.DataGridView1.TabIndex = 1084
@@ -231,8 +232,8 @@ Partial Class 採購控制表
231 232
         '
232 233
         'DataGridView2
233 234
         '
234
-        DataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
235
-        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle8
235
+        DataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
236
+        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
236 237
         Me.DataGridView2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
237 238
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
238 239
         Me.DataGridView2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
@@ -240,8 +241,8 @@ Partial Class 採購控制表
240 241
         Me.DataGridView2.Location = New System.Drawing.Point(7, 57)
241 242
         Me.DataGridView2.Name = "DataGridView2"
242 243
         Me.DataGridView2.RowHeadersWidth = 5
243
-        DataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
244
-        Me.DataGridView2.RowsDefaultCellStyle = DataGridViewCellStyle9
244
+        DataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
245
+        Me.DataGridView2.RowsDefaultCellStyle = DataGridViewCellStyle6
245 246
         Me.DataGridView2.RowTemplate.Height = 24
246 247
         Me.DataGridView2.Size = New System.Drawing.Size(237, 918)
247 248
         Me.DataGridView2.TabIndex = 1085
@@ -291,18 +292,28 @@ Partial Class 採購控制表
291 292
         Me.會計月.AutoSize = True
292 293
         Me.會計月.Checked = True
293 294
         Me.會計月.CheckState = System.Windows.Forms.CheckState.Checked
294
-        Me.會計月.Location = New System.Drawing.Point(29, 30)
295
+        Me.會計月.Location = New System.Drawing.Point(11, 31)
295 296
         Me.會計月.Name = "會計月"
296 297
         Me.會計月.Size = New System.Drawing.Size(63, 20)
297 298
         Me.會計月.TabIndex = 1099
298 299
         Me.會計月.Text = "會計月"
299 300
         Me.會計月.UseVisualStyleBackColor = True
300 301
         '
302
+        'DateTimePicker4
303
+        '
304
+        Me.DateTimePicker4.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
305
+        Me.DateTimePicker4.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
306
+        Me.DateTimePicker4.Location = New System.Drawing.Point(80, 30)
307
+        Me.DateTimePicker4.Name = "DateTimePicker4"
308
+        Me.DateTimePicker4.Size = New System.Drawing.Size(43, 23)
309
+        Me.DateTimePicker4.TabIndex = 1167
310
+        '
301 311
         '採購控制表
302 312
         '
303 313
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
304 314
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
305 315
         Me.ClientSize = New System.Drawing.Size(1914, 981)
316
+        Me.Controls.Add(Me.DateTimePicker4)
306 317
         Me.Controls.Add(Me.一般月)
307 318
         Me.Controls.Add(Me.會計月)
308 319
         Me.Controls.Add(Me.CheckBox3)
@@ -361,4 +372,5 @@ Partial Class 採購控制表
361 372
     Friend WithEvents CheckBox2 As CheckBox
362 373
     Friend WithEvents 一般月 As CheckBox
363 374
     Friend WithEvents 會計月 As CheckBox
375
+    Friend WithEvents DateTimePicker4 As DateTimePicker
364 376
 End Class

+ 23
- 5
MaoOrange-Hongji/採購系統管理/採購控制表.vb ファイルの表示

@@ -106,13 +106,13 @@ Public Class 採購控制表
106 106
             DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1)
107 107
             DTP = Strings.Left(Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker1.Value = DTP
108 108
             '-------------日期二----------------------------------------------------------------------------------------
109
-            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))
110
-            DTP = Strings.Left(Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & iDays : DateTimePicker2.Value = DTP
109
+            DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker2.Value = DTP
110
+            DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddDays(-1)
111 111
         End If
112 112
     End Sub
113 113
     Private Sub 採購控制表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
114 114
         Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
115
-        日期格式() : CheckBox1.Checked = True
115
+        日期格式() : CheckBox1.Checked = True : DateTimePicker4.Visible = False
116 116
     End Sub
117 117
     Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView1.CellClick
118 118
         If e.RowIndex = -1 Then : Else
@@ -154,10 +154,28 @@ Public Class 採購控制表
154 154
         Next
155 155
     End Sub
156 156
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
157
-        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(-1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(-1)
157
+        If 會計月.Checked = True Then
158
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
159
+            DateTimePicker1.Value = DateTimePicker4.Value
160
+            DateTimePicker2.Value = DateTimePicker4.Value
161
+        Else
162
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
163
+            DateTimePicker1.Value = DateTimePicker4.Value.AddMonths(-1)
164
+            DateTimePicker2.Value = DateTimePicker4.Value
165
+        End If
166
+        日期格式()
158 167
     End Sub
159 168
     Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
160
-        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1)
169
+        If 會計月.Checked = True Then
170
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
171
+            DateTimePicker1.Value = DateTimePicker4.Value
172
+            DateTimePicker2.Value = DateTimePicker4.Value
173
+        Else
174
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
175
+            DateTimePicker1.Value = DateTimePicker4.Value.AddMonths(-1)
176
+            DateTimePicker2.Value = DateTimePicker4.Value
177
+        End If
178
+        日期格式()
161 179
     End Sub
162 180
     Private Sub DateTimePicker1_ValueChanged(sender As Object, e As EventArgs) Handles DateTimePicker1.ValueChanged
163 181
         Set_清單() : Set_清單1() : 格式設定()

+ 25
- 13
MaoOrange-Hongji/業務系統管理/銷售控制表.Designer.vb ファイルの表示

@@ -23,9 +23,9 @@ Partial Class 銷售控制表
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25 25
         Me.components = New System.ComponentModel.Container()
26
-        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29 29
         Me.Button2 = New System.Windows.Forms.Button()
30 30
         Me.Button1 = New System.Windows.Forms.Button()
31 31
         Me.Label4 = New System.Windows.Forms.Label()
@@ -77,6 +77,7 @@ Partial Class 銷售控制表
77 77
         Me.CheckBox3 = New System.Windows.Forms.CheckBox()
78 78
         Me.會計月 = New System.Windows.Forms.CheckBox()
79 79
         Me.一般月 = New System.Windows.Forms.CheckBox()
80
+        Me.DateTimePicker4 = New System.Windows.Forms.DateTimePicker()
80 81
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
81 82
         Me.ContextMenuStrip1.SuspendLayout()
82 83
         CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -86,7 +87,7 @@ Partial Class 銷售控制表
86 87
         '
87 88
         Me.Button2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
88 89
         Me.Button2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
89
-        Me.Button2.Location = New System.Drawing.Point(107, 48)
90
+        Me.Button2.Location = New System.Drawing.Point(107, 50)
90 91
         Me.Button2.Name = "Button2"
91 92
         Me.Button2.Size = New System.Drawing.Size(97, 25)
92 93
         Me.Button2.TabIndex = 272
@@ -97,7 +98,7 @@ Partial Class 銷售控制表
97 98
         '
98 99
         Me.Button1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
99 100
         Me.Button1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
100
-        Me.Button1.Location = New System.Drawing.Point(6, 48)
101
+        Me.Button1.Location = New System.Drawing.Point(6, 50)
101 102
         Me.Button1.Name = "Button1"
102 103
         Me.Button1.Size = New System.Drawing.Size(97, 25)
103 104
         Me.Button1.TabIndex = 271
@@ -139,8 +140,8 @@ Partial Class 銷售控制表
139 140
         Me.DataGridView1.Location = New System.Drawing.Point(379, 76)
140 141
         Me.DataGridView1.Name = "DataGridView1"
141 142
         Me.DataGridView1.RowHeadersWidth = 5
142
-        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
143
-        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle4
143
+        DataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
144
+        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle1
144 145
         Me.DataGridView1.RowTemplate.Height = 24
145 146
         Me.DataGridView1.Size = New System.Drawing.Size(866, 529)
146 147
         Me.DataGridView1.TabIndex = 1057
@@ -506,8 +507,8 @@ Partial Class 銷售控制表
506 507
         '
507 508
         'DataGridView2
508 509
         '
509
-        DataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
510
-        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
510
+        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
511
+        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
511 512
         Me.DataGridView2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
512 513
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
513 514
         Me.DataGridView2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
@@ -515,8 +516,8 @@ Partial Class 銷售控制表
515 516
         Me.DataGridView2.Location = New System.Drawing.Point(6, 76)
516 517
         Me.DataGridView2.Name = "DataGridView2"
517 518
         Me.DataGridView2.RowHeadersWidth = 5
518
-        DataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
519
-        Me.DataGridView2.RowsDefaultCellStyle = DataGridViewCellStyle6
519
+        DataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
520
+        Me.DataGridView2.RowsDefaultCellStyle = DataGridViewCellStyle3
520 521
         Me.DataGridView2.RowTemplate.Height = 24
521 522
         Me.DataGridView2.Size = New System.Drawing.Size(367, 529)
522 523
         Me.DataGridView2.TabIndex = 1086
@@ -583,7 +584,7 @@ Partial Class 銷售控制表
583 584
         Me.會計月.AutoSize = True
584 585
         Me.會計月.Checked = True
585 586
         Me.會計月.CheckState = System.Windows.Forms.CheckState.Checked
586
-        Me.會計月.Location = New System.Drawing.Point(27, 27)
587
+        Me.會計月.Location = New System.Drawing.Point(9, 29)
587 588
         Me.會計月.Name = "會計月"
588 589
         Me.會計月.Size = New System.Drawing.Size(63, 20)
589 590
         Me.會計月.TabIndex = 1093
@@ -593,19 +594,29 @@ Partial Class 銷售控制表
593 594
         '一般月
594 595
         '
595 596
         Me.一般月.AutoSize = True
596
-        Me.一般月.Location = New System.Drawing.Point(138, 28)
597
+        Me.一般月.Location = New System.Drawing.Point(138, 30)
597 598
         Me.一般月.Name = "一般月"
598 599
         Me.一般月.Size = New System.Drawing.Size(63, 20)
599 600
         Me.一般月.TabIndex = 1094
600 601
         Me.一般月.Text = "一般月"
601 602
         Me.一般月.UseVisualStyleBackColor = True
602 603
         '
604
+        'DateTimePicker4
605
+        '
606
+        Me.DateTimePicker4.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
607
+        Me.DateTimePicker4.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
608
+        Me.DateTimePicker4.Location = New System.Drawing.Point(78, 27)
609
+        Me.DateTimePicker4.Name = "DateTimePicker4"
610
+        Me.DateTimePicker4.Size = New System.Drawing.Size(43, 23)
611
+        Me.DateTimePicker4.TabIndex = 1167
612
+        '
603 613
         '銷售控制表
604 614
         '
605 615
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
606 616
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
607 617
         Me.ClientSize = New System.Drawing.Size(1249, 611)
608 618
         Me.ContextMenuStrip = Me.ContextMenuStrip1
619
+        Me.Controls.Add(Me.DateTimePicker4)
609 620
         Me.Controls.Add(Me.一般月)
610 621
         Me.Controls.Add(Me.會計月)
611 622
         Me.Controls.Add(Me.CheckBox3)
@@ -718,4 +729,5 @@ Partial Class 銷售控制表
718 729
     Friend WithEvents CheckBox3 As CheckBox
719 730
     Friend WithEvents 會計月 As CheckBox
720 731
     Friend WithEvents 一般月 As CheckBox
732
+    Friend WithEvents DateTimePicker4 As DateTimePicker
721 733
 End Class

+ 23
- 5
MaoOrange-Hongji/業務系統管理/銷售控制表.vb ファイルの表示

@@ -108,13 +108,13 @@ Public Class 銷售控制表
108 108
             DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1)
109 109
             DTP = Strings.Left(Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker1.Value = DTP
110 110
             '-------------日期二----------------------------------------------------------------------------------------
111
-            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))
112
-            DTP = Strings.Left(Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & iDays : DateTimePicker2.Value = DTP
111
+            DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker2.Value = DTP
112
+            DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddDays(-1)
113 113
         End If
114 114
     End Sub
115 115
     Private Sub 銷售控制表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
116 116
         Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
117
-        DateTimePicker1.Value = Today() : DateTimePicker2.Value = Today()
117
+        DateTimePicker1.Value = Today() : DateTimePicker2.Value = Today() : DateTimePicker4.Visible = False
118 118
         日期格式()
119 119
         CheckBox1.Checked = True
120 120
     End Sub
@@ -164,10 +164,28 @@ Public Class 銷售控制表
164 164
         Next
165 165
     End Sub
166 166
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
167
-        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(-1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(-1)
167
+        If 會計月.Checked = True Then
168
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
169
+            DateTimePicker1.Value = DateTimePicker4.Value
170
+            DateTimePicker2.Value = DateTimePicker4.Value
171
+        Else
172
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
173
+            DateTimePicker1.Value = DateTimePicker4.Value.AddMonths(-1)
174
+            DateTimePicker2.Value = DateTimePicker4.Value
175
+        End If
176
+        日期格式()
168 177
     End Sub
169 178
     Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
170
-        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1)
179
+        If 會計月.Checked = True Then
180
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
181
+            DateTimePicker1.Value = DateTimePicker4.Value
182
+            DateTimePicker2.Value = DateTimePicker4.Value
183
+        Else
184
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
185
+            DateTimePicker1.Value = DateTimePicker4.Value.AddMonths(-1)
186
+            DateTimePicker2.Value = DateTimePicker4.Value
187
+        End If
188
+        日期格式()
171 189
     End Sub
172 190
     Private Sub DateTimePicker1_ValueChanged(sender As Object, e As EventArgs) Handles DateTimePicker1.ValueChanged
173 191
         Set_清單() : Set_清單1() : 格式設定()

+ 26
- 14
MaoOrange-Hongji/生產系統管理/生產控制表.Designer.vb ファイルの表示

@@ -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 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()
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()
30 30
         Me.Label22 = New System.Windows.Forms.Label()
31 31
         Me.TextBox10 = New System.Windows.Forms.TextBox()
32 32
         Me.TextBox13 = New System.Windows.Forms.TextBox()
@@ -54,6 +54,7 @@ Partial Class 生產控制表
54 54
         Me.CheckBox5 = New System.Windows.Forms.CheckBox()
55 55
         Me.一般月 = New System.Windows.Forms.CheckBox()
56 56
         Me.會計月 = New System.Windows.Forms.CheckBox()
57
+        Me.DateTimePicker4 = New System.Windows.Forms.DateTimePicker()
57 58
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
58 59
         Me.ContextMenuStrip1.SuspendLayout()
59 60
         CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -169,8 +170,8 @@ Partial Class 生產控制表
169 170
         Me.DataGridView1.Location = New System.Drawing.Point(425, 55)
170 171
         Me.DataGridView1.Name = "DataGridView1"
171 172
         Me.DataGridView1.RowHeadersWidth = 5
172
-        DataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
173
-        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle9
173
+        DataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
174
+        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle5
174 175
         Me.DataGridView1.RowTemplate.Height = 24
175 176
         Me.DataGridView1.Size = New System.Drawing.Size(817, 550)
176 177
         Me.DataGridView1.TabIndex = 1068
@@ -237,8 +238,8 @@ Partial Class 生產控制表
237 238
         '
238 239
         'DataGridView2
239 240
         '
240
-        DataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
241
-        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle10
241
+        DataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
242
+        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle6
242 243
         Me.DataGridView2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
243 244
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
244 245
         Me.DataGridView2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
@@ -246,8 +247,8 @@ Partial Class 生產控制表
246 247
         Me.DataGridView2.Location = New System.Drawing.Point(7, 55)
247 248
         Me.DataGridView2.Name = "DataGridView2"
248 249
         Me.DataGridView2.RowHeadersWidth = 5
249
-        DataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
250
-        Me.DataGridView2.RowsDefaultCellStyle = DataGridViewCellStyle11
250
+        DataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
251
+        Me.DataGridView2.RowsDefaultCellStyle = DataGridViewCellStyle7
251 252
         Me.DataGridView2.RowTemplate.Height = 24
252 253
         Me.DataGridView2.Size = New System.Drawing.Size(412, 550)
253 254
         Me.DataGridView2.TabIndex = 1086
@@ -261,8 +262,8 @@ Partial Class 生產控制表
261 262
         Me.DataGridView3.Location = New System.Drawing.Point(425, 55)
262 263
         Me.DataGridView3.Name = "DataGridView3"
263 264
         Me.DataGridView3.RowHeadersWidth = 5
264
-        DataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
265
-        Me.DataGridView3.RowsDefaultCellStyle = DataGridViewCellStyle12
265
+        DataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
266
+        Me.DataGridView3.RowsDefaultCellStyle = DataGridViewCellStyle8
266 267
         Me.DataGridView3.RowTemplate.Height = 24
267 268
         Me.DataGridView3.Size = New System.Drawing.Size(817, 550)
268 269
         Me.DataGridView3.TabIndex = 1087
@@ -320,7 +321,7 @@ Partial Class 生產控制表
320 321
         '一般月
321 322
         '
322 323
         Me.一般月.AutoSize = True
323
-        Me.一般月.Location = New System.Drawing.Point(142, 30)
324
+        Me.一般月.Location = New System.Drawing.Point(140, 30)
324 325
         Me.一般月.Name = "一般月"
325 326
         Me.一般月.Size = New System.Drawing.Size(63, 20)
326 327
         Me.一般月.TabIndex = 1098
@@ -332,19 +333,29 @@ Partial Class 生產控制表
332 333
         Me.會計月.AutoSize = True
333 334
         Me.會計月.Checked = True
334 335
         Me.會計月.CheckState = System.Windows.Forms.CheckState.Checked
335
-        Me.會計月.Location = New System.Drawing.Point(31, 29)
336
+        Me.會計月.Location = New System.Drawing.Point(10, 30)
336 337
         Me.會計月.Name = "會計月"
337 338
         Me.會計月.Size = New System.Drawing.Size(63, 20)
338 339
         Me.會計月.TabIndex = 1097
339 340
         Me.會計月.Text = "會計月"
340 341
         Me.會計月.UseVisualStyleBackColor = True
341 342
         '
343
+        'DateTimePicker4
344
+        '
345
+        Me.DateTimePicker4.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
346
+        Me.DateTimePicker4.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
347
+        Me.DateTimePicker4.Location = New System.Drawing.Point(79, 29)
348
+        Me.DateTimePicker4.Name = "DateTimePicker4"
349
+        Me.DateTimePicker4.Size = New System.Drawing.Size(43, 23)
350
+        Me.DateTimePicker4.TabIndex = 1167
351
+        '
342 352
         '生產控制表
343 353
         '
344 354
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
345 355
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
346 356
         Me.ClientSize = New System.Drawing.Size(1249, 611)
347 357
         Me.ContextMenuStrip = Me.ContextMenuStrip1
358
+        Me.Controls.Add(Me.DateTimePicker4)
348 359
         Me.Controls.Add(Me.一般月)
349 360
         Me.Controls.Add(Me.會計月)
350 361
         Me.Controls.Add(Me.CheckBox5)
@@ -409,4 +420,5 @@ Partial Class 生產控制表
409 420
     Friend WithEvents CheckBox5 As CheckBox
410 421
     Friend WithEvents 一般月 As CheckBox
411 422
     Friend WithEvents 會計月 As CheckBox
423
+    Friend WithEvents DateTimePicker4 As DateTimePicker
412 424
 End Class

+ 23
- 5
MaoOrange-Hongji/生產系統管理/生產控制表.vb ファイルの表示

@@ -167,13 +167,13 @@ Public Class 生產控制表
167 167
             DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1)
168 168
             DTP = Strings.Left(Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker1.Value = DTP
169 169
             '-------------日期二----------------------------------------------------------------------------------------
170
-            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))
171
-            DTP = Strings.Left(Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & iDays : DateTimePicker2.Value = DTP
170
+            DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker2.Value = DTP
171
+            DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddDays(-1)
172 172
         End If
173 173
     End Sub
174 174
     Private Sub 生產控制表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
175 175
         Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
176
-        DataGridView1.Visible = False : 日期格式() : CheckBox1.Checked = True : CheckBox5.Checked = True
176
+        DataGridView1.Visible = False : 日期格式() : CheckBox1.Checked = True : CheckBox5.Checked = True : DateTimePicker4.Visible = False
177 177
     End Sub
178 178
     Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView1.CellClick
179 179
         If e.RowIndex = -1 Then : Else
@@ -259,10 +259,28 @@ Public Class 生產控制表
259 259
         End If
260 260
     End Sub
261 261
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
262
-        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(-1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(-1)
262
+        If 會計月.Checked = True Then
263
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
264
+            DateTimePicker1.Value = DateTimePicker4.Value
265
+            DateTimePicker2.Value = DateTimePicker4.Value
266
+        Else
267
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
268
+            DateTimePicker1.Value = DateTimePicker4.Value.AddMonths(-1)
269
+            DateTimePicker2.Value = DateTimePicker4.Value
270
+        End If
271
+        日期格式()
263 272
     End Sub
264 273
     Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
265
-        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1)
274
+        If 會計月.Checked = True Then
275
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
276
+            DateTimePicker1.Value = DateTimePicker4.Value
277
+            DateTimePicker2.Value = DateTimePicker4.Value
278
+        Else
279
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
280
+            DateTimePicker1.Value = DateTimePicker4.Value.AddMonths(-1)
281
+            DateTimePicker2.Value = DateTimePicker4.Value
282
+        End If
283
+        日期格式()
266 284
     End Sub
267 285
     Private Sub DateTimePicker1_ValueChanged(sender As Object, e As EventArgs) Handles DateTimePicker1.ValueChanged
268 286
         Set_清單() : Set_清單1() : Set_清單2() : 格式設定() : 格式設定1() : 格式設定2() : 格式設定3()

+ 35
- 23
MaoOrange-Hongji/財務系統管理/司機佣金計算.Designer.vb ファイルの表示

@@ -23,8 +23,8 @@ Partial Class 司機佣金計算
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25 25
         Me.components = New System.ComponentModel.Container()
26
-        Dim DataGridViewCellStyle13 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle14 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
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 28
         Me.Button6 = New System.Windows.Forms.Button()
29 29
         Me.TextBox2 = New System.Windows.Forms.TextBox()
30 30
         Me.CheckBox1 = New System.Windows.Forms.CheckBox()
@@ -61,12 +61,13 @@ Partial Class 司機佣金計算
61 61
         Me.重新整理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
62 62
         Me.ToolStripSeparator3 = New System.Windows.Forms.ToolStripSeparator()
63 63
         Me.依據單號全部選擇ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
64
+        Me.依據單號取消立帳ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
64 65
         Me.全部選擇ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
65 66
         Me.全部取消ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
66 67
         Me.ToolStripSeparator1 = New System.Windows.Forms.ToolStripSeparator()
67 68
         Me.列印成EXCELToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
68
-        Me.依據單號取消立帳ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
69 69
         Me.開立收支單ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
70
+        Me.DateTimePicker4 = New System.Windows.Forms.DateTimePicker()
70 71
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
71 72
         Me.ContextMenuStrip1.SuspendLayout()
72 73
         Me.SuspendLayout()
@@ -385,8 +386,8 @@ Partial Class 司機佣金計算
385 386
         '
386 387
         'DataGridView1
387 388
         '
388
-        DataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
389
-        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle13
389
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
390
+        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
390 391
         Me.DataGridView1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
391 392
             Or System.Windows.Forms.AnchorStyles.Left) _
392 393
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -396,8 +397,8 @@ Partial Class 司機佣金計算
396 397
         Me.DataGridView1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
397 398
         Me.DataGridView1.Name = "DataGridView1"
398 399
         Me.DataGridView1.RowHeadersWidth = 5
399
-        DataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
400
-        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle14
400
+        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
401
+        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle2
401 402
         Me.DataGridView1.RowTemplate.Height = 24
402 403
         Me.DataGridView1.Size = New System.Drawing.Size(1225, 545)
403 404
         Me.DataGridView1.TabIndex = 1132
@@ -406,72 +407,82 @@ Partial Class 司機佣金計算
406 407
         '
407 408
         Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.重新整理ToolStripMenuItem, Me.ToolStripSeparator3, Me.依據單號全部選擇ToolStripMenuItem, Me.依據單號取消立帳ToolStripMenuItem, Me.全部選擇ToolStripMenuItem, Me.全部取消ToolStripMenuItem, Me.ToolStripSeparator1, Me.列印成EXCELToolStripMenuItem, Me.開立收支單ToolStripMenuItem})
408 409
         Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
409
-        Me.ContextMenuStrip1.Size = New System.Drawing.Size(181, 192)
410
+        Me.ContextMenuStrip1.Size = New System.Drawing.Size(171, 170)
410 411
         '
411 412
         '重新整理ToolStripMenuItem
412 413
         '
413 414
         Me.重新整理ToolStripMenuItem.Name = "重新整理ToolStripMenuItem"
414
-        Me.重新整理ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
415
+        Me.重新整理ToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
415 416
         Me.重新整理ToolStripMenuItem.Text = "重新整理"
416 417
         '
417 418
         'ToolStripSeparator3
418 419
         '
419 420
         Me.ToolStripSeparator3.Name = "ToolStripSeparator3"
420
-        Me.ToolStripSeparator3.Size = New System.Drawing.Size(177, 6)
421
+        Me.ToolStripSeparator3.Size = New System.Drawing.Size(167, 6)
421 422
         '
422 423
         '依據單號全部選擇ToolStripMenuItem
423 424
         '
424 425
         Me.依據單號全部選擇ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
425 426
         Me.依據單號全部選擇ToolStripMenuItem.Name = "依據單號全部選擇ToolStripMenuItem"
426
-        Me.依據單號全部選擇ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
427
+        Me.依據單號全部選擇ToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
427 428
         Me.依據單號全部選擇ToolStripMenuItem.Text = "依據單號全部選擇"
428 429
         '
430
+        '依據單號取消立帳ToolStripMenuItem
431
+        '
432
+        Me.依據單號取消立帳ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
433
+        Me.依據單號取消立帳ToolStripMenuItem.Name = "依據單號取消立帳ToolStripMenuItem"
434
+        Me.依據單號取消立帳ToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
435
+        Me.依據單號取消立帳ToolStripMenuItem.Text = "依據單號取消立帳"
436
+        '
429 437
         '全部選擇ToolStripMenuItem
430 438
         '
431 439
         Me.全部選擇ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
432 440
         Me.全部選擇ToolStripMenuItem.Name = "全部選擇ToolStripMenuItem"
433
-        Me.全部選擇ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
441
+        Me.全部選擇ToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
434 442
         Me.全部選擇ToolStripMenuItem.Text = "全部選擇"
435 443
         '
436 444
         '全部取消ToolStripMenuItem
437 445
         '
438 446
         Me.全部取消ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
439 447
         Me.全部取消ToolStripMenuItem.Name = "全部取消ToolStripMenuItem"
440
-        Me.全部取消ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
448
+        Me.全部取消ToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
441 449
         Me.全部取消ToolStripMenuItem.Text = "全部取消"
442 450
         '
443 451
         'ToolStripSeparator1
444 452
         '
445 453
         Me.ToolStripSeparator1.Name = "ToolStripSeparator1"
446
-        Me.ToolStripSeparator1.Size = New System.Drawing.Size(177, 6)
454
+        Me.ToolStripSeparator1.Size = New System.Drawing.Size(167, 6)
447 455
         '
448 456
         '列印成EXCELToolStripMenuItem
449 457
         '
450 458
         Me.列印成EXCELToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
451 459
         Me.列印成EXCELToolStripMenuItem.Name = "列印成EXCELToolStripMenuItem"
452
-        Me.列印成EXCELToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
460
+        Me.列印成EXCELToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
453 461
         Me.列印成EXCELToolStripMenuItem.Text = "列印成EXCEL"
454 462
         '
455
-        '依據單號取消立帳ToolStripMenuItem
456
-        '
457
-        Me.依據單號取消立帳ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
458
-        Me.依據單號取消立帳ToolStripMenuItem.Name = "依據單號取消立帳ToolStripMenuItem"
459
-        Me.依據單號取消立帳ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
460
-        Me.依據單號取消立帳ToolStripMenuItem.Text = "依據單號取消立帳"
461
-        '
462 463
         '開立收支單ToolStripMenuItem
463 464
         '
464 465
         Me.開立收支單ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
465 466
         Me.開立收支單ToolStripMenuItem.Name = "開立收支單ToolStripMenuItem"
466
-        Me.開立收支單ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
467
+        Me.開立收支單ToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
467 468
         Me.開立收支單ToolStripMenuItem.Text = "開立收支單"
468 469
         '
470
+        'DateTimePicker4
471
+        '
472
+        Me.DateTimePicker4.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
473
+        Me.DateTimePicker4.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
474
+        Me.DateTimePicker4.Location = New System.Drawing.Point(668, 136)
475
+        Me.DateTimePicker4.Name = "DateTimePicker4"
476
+        Me.DateTimePicker4.Size = New System.Drawing.Size(175, 23)
477
+        Me.DateTimePicker4.TabIndex = 1167
478
+        '
469 479
         '司機佣金計算
470 480
         '
471 481
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
472 482
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
473 483
         Me.ClientSize = New System.Drawing.Size(1249, 611)
474 484
         Me.ContextMenuStrip = Me.ContextMenuStrip1
485
+        Me.Controls.Add(Me.DateTimePicker4)
475 486
         Me.Controls.Add(Me.Button6)
476 487
         Me.Controls.Add(Me.TextBox2)
477 488
         Me.Controls.Add(Me.CheckBox1)
@@ -557,4 +568,5 @@ Partial Class 司機佣金計算
557 568
     Friend WithEvents ToolStripSeparator1 As ToolStripSeparator
558 569
     Friend WithEvents 列印成EXCELToolStripMenuItem As ToolStripMenuItem
559 570
     Friend WithEvents 開立收支單ToolStripMenuItem As ToolStripMenuItem
571
+    Friend WithEvents DateTimePicker4 As DateTimePicker
560 572
 End Class

+ 23
- 5
MaoOrange-Hongji/財務系統管理/司機佣金計算.vb ファイルの表示

@@ -70,13 +70,13 @@ Public Class 司機佣金計算
70 70
             DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1)
71 71
             DTP = Strings.Left(Strings.Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker1.Value = DTP
72 72
             '-------------日期二----------------------------------------------------------------------------------------
73
-            Dim iDays As Integer = DateTime.DaysInMonth(Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 4), Strings.Mid(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 6, 2))
74
-            DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & iDays : DateTimePicker2.Value = DTP
73
+            DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker2.Value = DTP
74
+            DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddDays(-1)
75 75
         End If
76 76
     End Sub
77 77
     Private Sub 司機佣金計算_Load(sender As Object, e As EventArgs) Handles MyBase.Load
78 78
         Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
79
-        ComboBox6.Visible = False : TextBox2.Visible = False
79
+        ComboBox6.Visible = False : TextBox2.Visible = False : DateTimePicker4.Visible = False
80 80
         ComboBox1下拉表單資料載入() : ComboBox3下拉表單資料載入() : ComboBox6下拉表單資料載入() : ComboBox2下拉表單資料載入() : ComboBox2.SelectedIndex = 0 : 日期格式() : Set_司機佣金清單()
81 81
     End Sub
82 82
     Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView1.CellClick
@@ -120,10 +120,28 @@ Public Class 司機佣金計算
120 120
         If ComboBox7.Items.Count <> 0 Then : ComboBox7.SelectedIndex = 0 : End If : PA = ""
121 121
     End Sub
122 122
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
123
-        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(-1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(-1) : Set_司機佣金清單()
123
+        If 會計月.Checked = True Then
124
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
125
+            DateTimePicker1.Value = DateTimePicker4.Value
126
+            DateTimePicker2.Value = DateTimePicker4.Value
127
+        Else
128
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
129
+            DateTimePicker1.Value = DateTimePicker4.Value.AddMonths(-1)
130
+            DateTimePicker2.Value = DateTimePicker4.Value
131
+        End If
132
+        日期格式() : Set_司機佣金清單()
124 133
     End Sub
125 134
     Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
126
-        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1) : Set_司機佣金清單()
135
+        If 會計月.Checked = True Then
136
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
137
+            DateTimePicker1.Value = DateTimePicker4.Value
138
+            DateTimePicker2.Value = DateTimePicker4.Value
139
+        Else
140
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
141
+            DateTimePicker1.Value = DateTimePicker4.Value.AddMonths(-1)
142
+            DateTimePicker2.Value = DateTimePicker4.Value
143
+        End If
144
+        日期格式() : Set_司機佣金清單()
127 145
     End Sub
128 146
     Private Sub 會計月_CheckedChanged(sender As Object, e As EventArgs) Handles 會計月.Click
129 147
         會計月.Checked = True : 一般月.Checked = False : 日期格式() : Set_司機佣金清單()

+ 282
- 293
MaoOrange-Hongji/財務系統管理/應付賬款控制表.Designer.vb ファイルの表示

@@ -24,6 +24,11 @@ Partial Class 應付賬款控制表
24 24
     Private Sub InitializeComponent()
25 25
         Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26 26
         Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
+        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
+        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
+        Me.DateTimePicker4 = New System.Windows.Forms.DateTimePicker()
27 32
         Me.Button1 = New System.Windows.Forms.Button()
28 33
         Me.一般月 = New System.Windows.Forms.CheckBox()
29 34
         Me.會計月 = New System.Windows.Forms.CheckBox()
@@ -32,59 +37,66 @@ Partial Class 應付賬款控制表
32 37
         Me.DateTimePicker2 = New System.Windows.Forms.DateTimePicker()
33 38
         Me.DateTimePicker1 = New System.Windows.Forms.DateTimePicker()
34 39
         Me.DataGridView1 = New System.Windows.Forms.DataGridView()
40
+        Me.DataGridView2 = New System.Windows.Forms.DataGridView()
41
+        Me.DataGridView3 = New System.Windows.Forms.DataGridView()
35 42
         Me.TextBox3 = New System.Windows.Forms.TextBox()
36 43
         Me.Label3 = New System.Windows.Forms.Label()
44
+        Me.TextBox1 = New System.Windows.Forms.TextBox()
37 45
         Me.Button6 = New System.Windows.Forms.Button()
38
-        Me.TextBox2 = New System.Windows.Forms.TextBox()
39
-        Me.CheckBox1 = New System.Windows.Forms.CheckBox()
40
-        Me.Label6 = New System.Windows.Forms.Label()
41
-        Me.DateTimePicker3 = New System.Windows.Forms.DateTimePicker()
42 46
         Me.Button5 = New System.Windows.Forms.Button()
43
-        Me.Button4 = New System.Windows.Forms.Button()
44
-        Me.ComboBox7 = New System.Windows.Forms.ComboBox()
45
-        Me.TextBox9 = New System.Windows.Forms.TextBox()
46
-        Me.ComboBox4 = New System.Windows.Forms.ComboBox()
47
-        Me.ComboBox3 = New System.Windows.Forms.ComboBox()
48
-        Me.ComboBox1 = New System.Windows.Forms.ComboBox()
49
-        Me.ComboBox5 = New System.Windows.Forms.ComboBox()
50
-        Me.ComboBox6 = New System.Windows.Forms.ComboBox()
51
-        Me.Label5 = New System.Windows.Forms.Label()
52 47
         Me.Button12 = New System.Windows.Forms.Button()
53 48
         Me.Button13 = New System.Windows.Forms.Button()
49
+        Me.CheckBox2 = New System.Windows.Forms.CheckBox()
50
+        Me.CheckBox3 = New System.Windows.Forms.CheckBox()
51
+        Me.TextBox2 = New System.Windows.Forms.TextBox()
54 52
         Me.Label1 = New System.Windows.Forms.Label()
55
-        Me.NumericUpDown1 = New System.Windows.Forms.NumericUpDown()
56
-        Me.Label2 = New System.Windows.Forms.Label()
57 53
         Me.Label7 = New System.Windows.Forms.Label()
58 54
         Me.NumericUpDown2 = New System.Windows.Forms.NumericUpDown()
59
-        Me.TextBox1 = New System.Windows.Forms.TextBox()
60
-        Me.Label8 = New System.Windows.Forms.Label()
61
-        Me.CheckBox2 = New System.Windows.Forms.CheckBox()
55
+        Me.Label2 = New System.Windows.Forms.Label()
56
+        Me.NumericUpDown1 = New System.Windows.Forms.NumericUpDown()
57
+        Me.Label5 = New System.Windows.Forms.Label()
62 58
         Me.TextBox4 = New System.Windows.Forms.TextBox()
63
-        Me.CheckBox3 = New System.Windows.Forms.CheckBox()
64 59
         Me.TextBox5 = New System.Windows.Forms.TextBox()
60
+        Me.Button3 = New System.Windows.Forms.Button()
61
+        Me.Button4 = New System.Windows.Forms.Button()
62
+        Me.TextBox6 = New System.Windows.Forms.TextBox()
63
+        Me.CheckBox1 = New System.Windows.Forms.CheckBox()
64
+        Me.Label6 = New System.Windows.Forms.Label()
65
+        Me.DateTimePicker3 = New System.Windows.Forms.DateTimePicker()
65 66
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
66
-        CType(Me.NumericUpDown1, System.ComponentModel.ISupportInitialize).BeginInit()
67
+        CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).BeginInit()
68
+        CType(Me.DataGridView3, System.ComponentModel.ISupportInitialize).BeginInit()
67 69
         CType(Me.NumericUpDown2, System.ComponentModel.ISupportInitialize).BeginInit()
70
+        CType(Me.NumericUpDown1, System.ComponentModel.ISupportInitialize).BeginInit()
68 71
         Me.SuspendLayout()
69 72
         '
73
+        'DateTimePicker4
74
+        '
75
+        Me.DateTimePicker4.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
76
+        Me.DateTimePicker4.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
77
+        Me.DateTimePicker4.Location = New System.Drawing.Point(30, 49)
78
+        Me.DateTimePicker4.Name = "DateTimePicker4"
79
+        Me.DateTimePicker4.Size = New System.Drawing.Size(43, 23)
80
+        Me.DateTimePicker4.TabIndex = 1175
81
+        '
70 82
         'Button1
71 83
         '
72 84
         Me.Button1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
73 85
         Me.Button1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
74
-        Me.Button1.Location = New System.Drawing.Point(7, 55)
86
+        Me.Button1.Location = New System.Drawing.Point(330, 3)
75 87
         Me.Button1.Name = "Button1"
76
-        Me.Button1.Size = New System.Drawing.Size(87, 23)
77
-        Me.Button1.TabIndex = 1112
88
+        Me.Button1.Size = New System.Drawing.Size(65, 23)
89
+        Me.Button1.TabIndex = 1171
78 90
         Me.Button1.Text = "上個月"
79 91
         Me.Button1.UseVisualStyleBackColor = True
80 92
         '
81 93
         '一般月
82 94
         '
83 95
         Me.一般月.AutoSize = True
84
-        Me.一般月.Location = New System.Drawing.Point(130, 32)
96
+        Me.一般月.Location = New System.Drawing.Point(272, 6)
85 97
         Me.一般月.Name = "一般月"
86 98
         Me.一般月.Size = New System.Drawing.Size(63, 20)
87
-        Me.一般月.TabIndex = 1115
99
+        Me.一般月.TabIndex = 1174
88 100
         Me.一般月.Text = "一般月"
89 101
         Me.一般月.UseVisualStyleBackColor = True
90 102
         '
@@ -93,10 +105,10 @@ Partial Class 應付賬款控制表
93 105
         Me.會計月.AutoSize = True
94 106
         Me.會計月.Checked = True
95 107
         Me.會計月.CheckState = System.Windows.Forms.CheckState.Checked
96
-        Me.會計月.Location = New System.Drawing.Point(20, 32)
108
+        Me.會計月.Location = New System.Drawing.Point(207, 6)
97 109
         Me.會計月.Name = "會計月"
98 110
         Me.會計月.Size = New System.Drawing.Size(63, 20)
99
-        Me.會計月.TabIndex = 1114
111
+        Me.會計月.TabIndex = 1173
100 112
         Me.會計月.Text = "會計月"
101 113
         Me.會計月.UseVisualStyleBackColor = True
102 114
         '
@@ -104,233 +116,154 @@ Partial Class 應付賬款控制表
104 116
         '
105 117
         Me.Button2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
106 118
         Me.Button2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
107
-        Me.Button2.Location = New System.Drawing.Point(117, 56)
119
+        Me.Button2.Location = New System.Drawing.Point(397, 3)
108 120
         Me.Button2.Name = "Button2"
109
-        Me.Button2.Size = New System.Drawing.Size(87, 23)
110
-        Me.Button2.TabIndex = 1113
121
+        Me.Button2.Size = New System.Drawing.Size(65, 23)
122
+        Me.Button2.TabIndex = 1172
111 123
         Me.Button2.Text = "下個月"
112 124
         Me.Button2.UseVisualStyleBackColor = True
113 125
         '
114 126
         'Label4
115 127
         '
116 128
         Me.Label4.AutoSize = True
117
-        Me.Label4.Location = New System.Drawing.Point(96, 9)
129
+        Me.Label4.Location = New System.Drawing.Point(97, 7)
118 130
         Me.Label4.Name = "Label4"
119 131
         Me.Label4.Size = New System.Drawing.Size(20, 16)
120
-        Me.Label4.TabIndex = 1111
132
+        Me.Label4.TabIndex = 1170
121 133
         Me.Label4.Text = "到"
122 134
         '
123 135
         'DateTimePicker2
124 136
         '
125 137
         Me.DateTimePicker2.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
126 138
         Me.DateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
127
-        Me.DateTimePicker2.Location = New System.Drawing.Point(117, 5)
139
+        Me.DateTimePicker2.Location = New System.Drawing.Point(118, 3)
128 140
         Me.DateTimePicker2.Name = "DateTimePicker2"
129 141
         Me.DateTimePicker2.Size = New System.Drawing.Size(87, 23)
130
-        Me.DateTimePicker2.TabIndex = 1110
142
+        Me.DateTimePicker2.TabIndex = 1169
131 143
         '
132 144
         'DateTimePicker1
133 145
         '
134 146
         Me.DateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
135
-        Me.DateTimePicker1.Location = New System.Drawing.Point(7, 5)
147
+        Me.DateTimePicker1.Location = New System.Drawing.Point(8, 3)
136 148
         Me.DateTimePicker1.Name = "DateTimePicker1"
137 149
         Me.DateTimePicker1.Size = New System.Drawing.Size(87, 23)
138
-        Me.DateTimePicker1.TabIndex = 1109
150
+        Me.DateTimePicker1.TabIndex = 1168
139 151
         '
140 152
         'DataGridView1
141 153
         '
142
-        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
154
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
143 155
         Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
144
-        Me.DataGridView1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
145
-            Or System.Windows.Forms.AnchorStyles.Left) _
146
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
156
+        Me.DataGridView1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
157
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
147 158
         Me.DataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
148 159
         Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
149
-        Me.DataGridView1.Location = New System.Drawing.Point(14, 83)
160
+        Me.DataGridView1.Location = New System.Drawing.Point(8, 30)
150 161
         Me.DataGridView1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
151 162
         Me.DataGridView1.Name = "DataGridView1"
152 163
         Me.DataGridView1.RowHeadersWidth = 5
153 164
         DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
154 165
         Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle2
155 166
         Me.DataGridView1.RowTemplate.Height = 24
156
-        Me.DataGridView1.Size = New System.Drawing.Size(1225, 518)
157
-        Me.DataGridView1.TabIndex = 1108
167
+        Me.DataGridView1.Size = New System.Drawing.Size(75, 290)
168
+        Me.DataGridView1.TabIndex = 1167
169
+        '
170
+        'DataGridView2
171
+        '
172
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
173
+        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
174
+        Me.DataGridView2.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
175
+            Or System.Windows.Forms.AnchorStyles.Left) _
176
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
177
+        Me.DataGridView2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
178
+        Me.DataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
179
+        Me.DataGridView2.Location = New System.Drawing.Point(86, 54)
180
+        Me.DataGridView2.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
181
+        Me.DataGridView2.Name = "DataGridView2"
182
+        Me.DataGridView2.RowHeadersWidth = 5
183
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
184
+        Me.DataGridView2.RowsDefaultCellStyle = DataGridViewCellStyle4
185
+        Me.DataGridView2.RowTemplate.Height = 24
186
+        Me.DataGridView2.Size = New System.Drawing.Size(1155, 266)
187
+        Me.DataGridView2.TabIndex = 1176
188
+        '
189
+        'DataGridView3
190
+        '
191
+        DataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
192
+        Me.DataGridView3.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
193
+        Me.DataGridView3.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
194
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
195
+        Me.DataGridView3.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
196
+        Me.DataGridView3.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
197
+        Me.DataGridView3.Location = New System.Drawing.Point(8, 322)
198
+        Me.DataGridView3.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
199
+        Me.DataGridView3.Name = "DataGridView3"
200
+        Me.DataGridView3.RowHeadersWidth = 5
201
+        DataGridViewCellStyle6.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
202
+        DataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
203
+        Me.DataGridView3.RowsDefaultCellStyle = DataGridViewCellStyle6
204
+        Me.DataGridView3.RowTemplate.Height = 24
205
+        Me.DataGridView3.Size = New System.Drawing.Size(1233, 283)
206
+        Me.DataGridView3.TabIndex = 1177
158 207
         '
159 208
         'TextBox3
160 209
         '
161 210
         Me.TextBox3.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
162
-        Me.TextBox3.Location = New System.Drawing.Point(262, 6)
211
+        Me.TextBox3.Location = New System.Drawing.Point(147, 28)
163 212
         Me.TextBox3.Name = "TextBox3"
164
-        Me.TextBox3.Size = New System.Drawing.Size(126, 23)
165
-        Me.TextBox3.TabIndex = 1117
213
+        Me.TextBox3.Size = New System.Drawing.Size(123, 23)
214
+        Me.TextBox3.TabIndex = 1178
166 215
         '
167 216
         'Label3
168 217
         '
169 218
         Me.Label3.AutoSize = True
170 219
         Me.Label3.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
171
-        Me.Label3.Location = New System.Drawing.Point(206, 9)
220
+        Me.Label3.Location = New System.Drawing.Point(97, 31)
172 221
         Me.Label3.Name = "Label3"
173
-        Me.Label3.Size = New System.Drawing.Size(56, 16)
174
-        Me.Label3.TabIndex = 1118
175
-        Me.Label3.Text = "單據號碼"
222
+        Me.Label3.Size = New System.Drawing.Size(44, 16)
223
+        Me.Label3.TabIndex = 1179
224
+        Me.Label3.Text = "供應商"
225
+        '
226
+        'TextBox1
227
+        '
228
+        Me.TextBox1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
229
+        Me.TextBox1.Location = New System.Drawing.Point(30, 78)
230
+        Me.TextBox1.Name = "TextBox1"
231
+        Me.TextBox1.Size = New System.Drawing.Size(43, 23)
232
+        Me.TextBox1.TabIndex = 1180
176 233
         '
177 234
         'Button6
178 235
         '
179 236
         Me.Button6.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
180 237
         Me.Button6.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
181 238
         Me.Button6.ForeColor = System.Drawing.Color.Olive
182
-        Me.Button6.Location = New System.Drawing.Point(1087, 3)
239
+        Me.Button6.Location = New System.Drawing.Point(1086, 3)
183 240
         Me.Button6.Name = "Button6"
184 241
         Me.Button6.Size = New System.Drawing.Size(82, 47)
185
-        Me.Button6.TabIndex = 1149
242
+        Me.Button6.TabIndex = 1184
186 243
         Me.Button6.Text = "依據單號取消立帳選擇"
187 244
         Me.Button6.UseVisualStyleBackColor = True
188 245
         '
189
-        'TextBox2
190
-        '
191
-        Me.TextBox2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
192
-        Me.TextBox2.Location = New System.Drawing.Point(446, 5)
193
-        Me.TextBox2.Name = "TextBox2"
194
-        Me.TextBox2.Size = New System.Drawing.Size(100, 23)
195
-        Me.TextBox2.TabIndex = 1148
196
-        '
197
-        'CheckBox1
198
-        '
199
-        Me.CheckBox1.AutoSize = True
200
-        Me.CheckBox1.Checked = True
201
-        Me.CheckBox1.CheckState = System.Windows.Forms.CheckState.Checked
202
-        Me.CheckBox1.Location = New System.Drawing.Point(351, 33)
203
-        Me.CheckBox1.Name = "CheckBox1"
204
-        Me.CheckBox1.Size = New System.Drawing.Size(39, 20)
205
-        Me.CheckBox1.TabIndex = 1147
206
-        Me.CheckBox1.Text = "補"
207
-        Me.CheckBox1.UseVisualStyleBackColor = True
208
-        '
209
-        'Label6
210
-        '
211
-        Me.Label6.AutoSize = True
212
-        Me.Label6.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
213
-        Me.Label6.Location = New System.Drawing.Point(207, 35)
214
-        Me.Label6.Name = "Label6"
215
-        Me.Label6.Size = New System.Drawing.Size(56, 16)
216
-        Me.Label6.TabIndex = 1146
217
-        Me.Label6.Text = "立帳日期"
218
-        '
219
-        'DateTimePicker3
220
-        '
221
-        Me.DateTimePicker3.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
222
-        Me.DateTimePicker3.Location = New System.Drawing.Point(262, 32)
223
-        Me.DateTimePicker3.Name = "DateTimePicker3"
224
-        Me.DateTimePicker3.Size = New System.Drawing.Size(85, 23)
225
-        Me.DateTimePicker3.TabIndex = 1145
226
-        '
227 246
         'Button5
228 247
         '
229 248
         Me.Button5.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
230 249
         Me.Button5.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
231 250
         Me.Button5.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
232
-        Me.Button5.Location = New System.Drawing.Point(1004, 3)
251
+        Me.Button5.Location = New System.Drawing.Point(1033, 3)
233 252
         Me.Button5.Name = "Button5"
234
-        Me.Button5.Size = New System.Drawing.Size(82, 47)
235
-        Me.Button5.TabIndex = 1144
253
+        Me.Button5.Size = New System.Drawing.Size(54, 47)
254
+        Me.Button5.TabIndex = 1183
236 255
         Me.Button5.Text = "列印帳款清單"
237 256
         Me.Button5.UseVisualStyleBackColor = True
238 257
         '
239
-        'Button4
240
-        '
241
-        Me.Button4.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
242
-        Me.Button4.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
243
-        Me.Button4.Location = New System.Drawing.Point(209, 57)
244
-        Me.Button4.Name = "Button4"
245
-        Me.Button4.Size = New System.Drawing.Size(181, 23)
246
-        Me.Button4.TabIndex = 1143
247
-        Me.Button4.Text = "開立收支單(傳票)"
248
-        Me.Button4.UseVisualStyleBackColor = True
249
-        '
250
-        'ComboBox7
251
-        '
252
-        Me.ComboBox7.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
253
-        Me.ComboBox7.FormattingEnabled = True
254
-        Me.ComboBox7.Location = New System.Drawing.Point(657, 56)
255
-        Me.ComboBox7.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
256
-        Me.ComboBox7.Name = "ComboBox7"
257
-        Me.ComboBox7.Size = New System.Drawing.Size(190, 24)
258
-        Me.ComboBox7.TabIndex = 1142
259
-        '
260
-        'TextBox9
261
-        '
262
-        Me.TextBox9.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
263
-        Me.TextBox9.Location = New System.Drawing.Point(549, 56)
264
-        Me.TextBox9.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
265
-        Me.TextBox9.Name = "TextBox9"
266
-        Me.TextBox9.Size = New System.Drawing.Size(105, 23)
267
-        Me.TextBox9.TabIndex = 1141
268
-        Me.TextBox9.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
269
-        '
270
-        'ComboBox4
271
-        '
272
-        Me.ComboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
273
-        Me.ComboBox4.FormattingEnabled = True
274
-        Me.ComboBox4.Location = New System.Drawing.Point(769, 30)
275
-        Me.ComboBox4.Name = "ComboBox4"
276
-        Me.ComboBox4.Size = New System.Drawing.Size(78, 24)
277
-        Me.ComboBox4.TabIndex = 1140
278
-        '
279
-        'ComboBox3
280
-        '
281
-        Me.ComboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
282
-        Me.ComboBox3.FormattingEnabled = True
283
-        Me.ComboBox3.Location = New System.Drawing.Point(657, 30)
284
-        Me.ComboBox3.Name = "ComboBox3"
285
-        Me.ComboBox3.Size = New System.Drawing.Size(109, 24)
286
-        Me.ComboBox3.TabIndex = 1139
287
-        '
288
-        'ComboBox1
289
-        '
290
-        Me.ComboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
291
-        Me.ComboBox1.FormattingEnabled = True
292
-        Me.ComboBox1.Location = New System.Drawing.Point(769, 4)
293
-        Me.ComboBox1.Name = "ComboBox1"
294
-        Me.ComboBox1.Size = New System.Drawing.Size(78, 24)
295
-        Me.ComboBox1.TabIndex = 1138
296
-        '
297
-        'ComboBox5
298
-        '
299
-        Me.ComboBox5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
300
-        Me.ComboBox5.FormattingEnabled = True
301
-        Me.ComboBox5.Location = New System.Drawing.Point(657, 4)
302
-        Me.ComboBox5.Name = "ComboBox5"
303
-        Me.ComboBox5.Size = New System.Drawing.Size(109, 24)
304
-        Me.ComboBox5.TabIndex = 1137
305
-        '
306
-        'ComboBox6
307
-        '
308
-        Me.ComboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
309
-        Me.ComboBox6.FormattingEnabled = True
310
-        Me.ComboBox6.Location = New System.Drawing.Point(657, 88)
311
-        Me.ComboBox6.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
312
-        Me.ComboBox6.Name = "ComboBox6"
313
-        Me.ComboBox6.Size = New System.Drawing.Size(190, 24)
314
-        Me.ComboBox6.TabIndex = 1135
315
-        '
316
-        'Label5
317
-        '
318
-        Me.Label5.AutoSize = True
319
-        Me.Label5.Location = New System.Drawing.Point(550, 8)
320
-        Me.Label5.Name = "Label5"
321
-        Me.Label5.Size = New System.Drawing.Size(104, 48)
322
-        Me.Label5.TabIndex = 1136
323
-        Me.Label5.Text = "未附餘額不為零時" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "需要選擇未付餘額" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "立帳的會計科目"
324
-        '
325 258
         'Button12
326 259
         '
327 260
         Me.Button12.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
328 261
         Me.Button12.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
329 262
         Me.Button12.ForeColor = System.Drawing.Color.Olive
330
-        Me.Button12.Location = New System.Drawing.Point(1170, 27)
263
+        Me.Button12.Location = New System.Drawing.Point(1167, 27)
331 264
         Me.Button12.Name = "Button12"
332 265
         Me.Button12.Size = New System.Drawing.Size(74, 23)
333
-        Me.Button12.TabIndex = 1133
266
+        Me.Button12.TabIndex = 1182
334 267
         Me.Button12.Text = "全部取消"
335 268
         Me.Button12.UseVisualStyleBackColor = True
336 269
         '
@@ -339,152 +272,211 @@ Partial Class 應付賬款控制表
339 272
         Me.Button13.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
340 273
         Me.Button13.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
341 274
         Me.Button13.ForeColor = System.Drawing.Color.Olive
342
-        Me.Button13.Location = New System.Drawing.Point(1170, 3)
275
+        Me.Button13.Location = New System.Drawing.Point(1167, 3)
343 276
         Me.Button13.Name = "Button13"
344 277
         Me.Button13.Size = New System.Drawing.Size(74, 23)
345
-        Me.Button13.TabIndex = 1132
278
+        Me.Button13.TabIndex = 1181
346 279
         Me.Button13.Text = "全部選擇"
347 280
         Me.Button13.UseVisualStyleBackColor = True
348 281
         '
282
+        'CheckBox2
283
+        '
284
+        Me.CheckBox2.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
285
+        Me.CheckBox2.AutoSize = True
286
+        Me.CheckBox2.Location = New System.Drawing.Point(927, 4)
287
+        Me.CheckBox2.Name = "CheckBox2"
288
+        Me.CheckBox2.Size = New System.Drawing.Size(99, 20)
289
+        Me.CheckBox2.TabIndex = 1185
290
+        Me.CheckBox2.Text = "列印多單選擇"
291
+        Me.CheckBox2.UseVisualStyleBackColor = True
292
+        '
293
+        'CheckBox3
294
+        '
295
+        Me.CheckBox3.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
296
+        Me.CheckBox3.AutoSize = True
297
+        Me.CheckBox3.Location = New System.Drawing.Point(927, 29)
298
+        Me.CheckBox3.Name = "CheckBox3"
299
+        Me.CheckBox3.Size = New System.Drawing.Size(111, 20)
300
+        Me.CheckBox3.TabIndex = 1186
301
+        Me.CheckBox3.Text = "已立帳資料隱藏"
302
+        Me.CheckBox3.UseVisualStyleBackColor = True
303
+        '
304
+        'TextBox2
305
+        '
306
+        Me.TextBox2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
307
+        Me.TextBox2.Location = New System.Drawing.Point(329, 28)
308
+        Me.TextBox2.Name = "TextBox2"
309
+        Me.TextBox2.Size = New System.Drawing.Size(133, 23)
310
+        Me.TextBox2.TabIndex = 1187
311
+        '
349 312
         'Label1
350 313
         '
351 314
         Me.Label1.AutoSize = True
352 315
         Me.Label1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
353
-        Me.Label1.Location = New System.Drawing.Point(390, 8)
316
+        Me.Label1.Location = New System.Drawing.Point(272, 31)
354 317
         Me.Label1.Name = "Label1"
355 318
         Me.Label1.Size = New System.Drawing.Size(56, 16)
356
-        Me.Label1.TabIndex = 1150
357
-        Me.Label1.Text = "應付金額"
358
-        '
359
-        'NumericUpDown1
360
-        '
361
-        Me.NumericUpDown1.Location = New System.Drawing.Point(446, 30)
362
-        Me.NumericUpDown1.Maximum = New Decimal(New Integer() {1000000, 0, 0, 0})
363
-        Me.NumericUpDown1.Minimum = New Decimal(New Integer() {1000000, 0, 0, -2147483648})
364
-        Me.NumericUpDown1.Name = "NumericUpDown1"
365
-        Me.NumericUpDown1.Size = New System.Drawing.Size(100, 23)
366
-        Me.NumericUpDown1.TabIndex = 1151
367
-        Me.NumericUpDown1.ThousandsSeparator = True
368
-        '
369
-        'Label2
370
-        '
371
-        Me.Label2.AutoSize = True
372
-        Me.Label2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
373
-        Me.Label2.Location = New System.Drawing.Point(390, 32)
374
-        Me.Label2.Name = "Label2"
375
-        Me.Label2.Size = New System.Drawing.Size(56, 16)
376
-        Me.Label2.TabIndex = 1152
377
-        Me.Label2.Text = "實付金額"
319
+        Me.Label1.TabIndex = 1188
320
+        Me.Label1.Text = "單據編號"
378 321
         '
379 322
         'Label7
380 323
         '
381 324
         Me.Label7.AutoSize = True
382 325
         Me.Label7.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
383
-        Me.Label7.Location = New System.Drawing.Point(390, 58)
326
+        Me.Label7.Location = New System.Drawing.Point(592, 30)
384 327
         Me.Label7.Name = "Label7"
385 328
         Me.Label7.Size = New System.Drawing.Size(56, 16)
386
-        Me.Label7.TabIndex = 1154
329
+        Me.Label7.TabIndex = 1194
387 330
         Me.Label7.Text = "未付餘額"
388 331
         '
389 332
         'NumericUpDown2
390 333
         '
391
-        Me.NumericUpDown2.Location = New System.Drawing.Point(446, 56)
334
+        Me.NumericUpDown2.Location = New System.Drawing.Point(648, 28)
392 335
         Me.NumericUpDown2.Maximum = New Decimal(New Integer() {1000000, 0, 0, 0})
393 336
         Me.NumericUpDown2.Minimum = New Decimal(New Integer() {1000000, 0, 0, -2147483648})
394 337
         Me.NumericUpDown2.Name = "NumericUpDown2"
395
-        Me.NumericUpDown2.Size = New System.Drawing.Size(100, 23)
396
-        Me.NumericUpDown2.TabIndex = 1153
338
+        Me.NumericUpDown2.Size = New System.Drawing.Size(72, 23)
339
+        Me.NumericUpDown2.TabIndex = 1193
397 340
         Me.NumericUpDown2.ThousandsSeparator = True
398 341
         '
399
-        'TextBox1
342
+        'Label2
400 343
         '
401
-        Me.TextBox1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
402
-        Me.TextBox1.Location = New System.Drawing.Point(657, 119)
403
-        Me.TextBox1.Name = "TextBox1"
404
-        Me.TextBox1.Size = New System.Drawing.Size(190, 23)
405
-        Me.TextBox1.TabIndex = 1155
344
+        Me.Label2.AutoSize = True
345
+        Me.Label2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
346
+        Me.Label2.Location = New System.Drawing.Point(463, 30)
347
+        Me.Label2.Name = "Label2"
348
+        Me.Label2.Size = New System.Drawing.Size(56, 16)
349
+        Me.Label2.TabIndex = 1192
350
+        Me.Label2.Text = "實付金額"
406 351
         '
407
-        'Label8
352
+        'NumericUpDown1
408 353
         '
409
-        Me.Label8.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
410
-        Me.Label8.AutoSize = True
411
-        Me.Label8.ForeColor = System.Drawing.Color.Red
412
-        Me.Label8.Location = New System.Drawing.Point(852, 49)
413
-        Me.Label8.Name = "Label8"
414
-        Me.Label8.Size = New System.Drawing.Size(385, 32)
415
-        Me.Label8.TabIndex = 1157
416
-        Me.Label8.Text = "選擇採購單號執行開立傳票時實付金額會自動已會計科目-應付帳款立帳" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "未付餘額如果不為零則需要手動選擇會計科目。推薦使用-應付賬款折讓" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10)
354
+        Me.NumericUpDown1.Location = New System.Drawing.Point(519, 28)
355
+        Me.NumericUpDown1.Maximum = New Decimal(New Integer() {1000000, 0, 0, 0})
356
+        Me.NumericUpDown1.Minimum = New Decimal(New Integer() {1000000, 0, 0, -2147483648})
357
+        Me.NumericUpDown1.Name = "NumericUpDown1"
358
+        Me.NumericUpDown1.Size = New System.Drawing.Size(72, 23)
359
+        Me.NumericUpDown1.TabIndex = 1191
360
+        Me.NumericUpDown1.ThousandsSeparator = True
417 361
         '
418
-        'CheckBox2
362
+        'Label5
419 363
         '
420
-        Me.CheckBox2.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
421
-        Me.CheckBox2.AutoSize = True
422
-        Me.CheckBox2.Location = New System.Drawing.Point(887, 6)
423
-        Me.CheckBox2.Name = "CheckBox2"
424
-        Me.CheckBox2.Size = New System.Drawing.Size(99, 20)
425
-        Me.CheckBox2.TabIndex = 1158
426
-        Me.CheckBox2.Text = "列印多單選擇"
427
-        Me.CheckBox2.UseVisualStyleBackColor = True
364
+        Me.Label5.AutoSize = True
365
+        Me.Label5.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
366
+        Me.Label5.Location = New System.Drawing.Point(463, 6)
367
+        Me.Label5.Name = "Label5"
368
+        Me.Label5.Size = New System.Drawing.Size(56, 16)
369
+        Me.Label5.TabIndex = 1190
370
+        Me.Label5.Text = "應付金額"
428 371
         '
429 372
         'TextBox4
430 373
         '
431 374
         Me.TextBox4.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
432
-        Me.TextBox4.Location = New System.Drawing.Point(657, 148)
375
+        Me.TextBox4.Location = New System.Drawing.Point(519, 3)
433 376
         Me.TextBox4.Name = "TextBox4"
434
-        Me.TextBox4.Size = New System.Drawing.Size(190, 23)
435
-        Me.TextBox4.TabIndex = 1163
436
-        '
437
-        'CheckBox3
438
-        '
439
-        Me.CheckBox3.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
440
-        Me.CheckBox3.AutoSize = True
441
-        Me.CheckBox3.Location = New System.Drawing.Point(887, 26)
442
-        Me.CheckBox3.Name = "CheckBox3"
443
-        Me.CheckBox3.Size = New System.Drawing.Size(111, 20)
444
-        Me.CheckBox3.TabIndex = 1164
445
-        Me.CheckBox3.Text = "已立帳資料隱藏"
446
-        Me.CheckBox3.UseVisualStyleBackColor = True
377
+        Me.TextBox4.Size = New System.Drawing.Size(72, 23)
378
+        Me.TextBox4.TabIndex = 1189
447 379
         '
448 380
         'TextBox5
449 381
         '
450 382
         Me.TextBox5.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
451
-        Me.TextBox5.Location = New System.Drawing.Point(657, 177)
383
+        Me.TextBox5.Location = New System.Drawing.Point(30, 107)
452 384
         Me.TextBox5.Name = "TextBox5"
453
-        Me.TextBox5.Size = New System.Drawing.Size(190, 23)
454
-        Me.TextBox5.TabIndex = 1165
385
+        Me.TextBox5.Size = New System.Drawing.Size(43, 23)
386
+        Me.TextBox5.TabIndex = 1195
387
+        '
388
+        'Button3
389
+        '
390
+        Me.Button3.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
391
+        Me.Button3.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
392
+        Me.Button3.Location = New System.Drawing.Point(595, 3)
393
+        Me.Button3.Name = "Button3"
394
+        Me.Button3.Size = New System.Drawing.Size(125, 23)
395
+        Me.Button3.TabIndex = 1196
396
+        Me.Button3.Text = "間格時間內所有帳款"
397
+        Me.Button3.UseVisualStyleBackColor = True
398
+        '
399
+        'Button4
400
+        '
401
+        Me.Button4.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
402
+        Me.Button4.ForeColor = System.Drawing.Color.Green
403
+        Me.Button4.Location = New System.Drawing.Point(813, 4)
404
+        Me.Button4.Name = "Button4"
405
+        Me.Button4.Size = New System.Drawing.Size(112, 22)
406
+        Me.Button4.TabIndex = 1197
407
+        Me.Button4.Text = "財務單據開立"
408
+        Me.Button4.UseVisualStyleBackColor = True
409
+        '
410
+        'TextBox6
411
+        '
412
+        Me.TextBox6.ForeColor = System.Drawing.Color.Green
413
+        Me.TextBox6.Location = New System.Drawing.Point(815, 28)
414
+        Me.TextBox6.Name = "TextBox6"
415
+        Me.TextBox6.Size = New System.Drawing.Size(110, 23)
416
+        Me.TextBox6.TabIndex = 1198
455 417
         '
456
-        '應付賬款控制表
418
+        'CheckBox1
419
+        '
420
+        Me.CheckBox1.AutoSize = True
421
+        Me.CheckBox1.Checked = True
422
+        Me.CheckBox1.CheckState = System.Windows.Forms.CheckState.Checked
423
+        Me.CheckBox1.ForeColor = System.Drawing.Color.Green
424
+        Me.CheckBox1.Location = New System.Drawing.Point(780, 5)
425
+        Me.CheckBox1.Name = "CheckBox1"
426
+        Me.CheckBox1.Size = New System.Drawing.Size(39, 20)
427
+        Me.CheckBox1.TabIndex = 1201
428
+        Me.CheckBox1.Text = "補"
429
+        Me.CheckBox1.UseVisualStyleBackColor = True
430
+        '
431
+        'Label6
432
+        '
433
+        Me.Label6.AutoSize = True
434
+        Me.Label6.ForeColor = System.Drawing.Color.Green
435
+        Me.Label6.Location = New System.Drawing.Point(721, 6)
436
+        Me.Label6.Name = "Label6"
437
+        Me.Label6.Size = New System.Drawing.Size(56, 16)
438
+        Me.Label6.TabIndex = 1200
439
+        Me.Label6.Text = "開立日期"
440
+        '
441
+        'DateTimePicker3
442
+        '
443
+        Me.DateTimePicker3.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
444
+        Me.DateTimePicker3.Location = New System.Drawing.Point(723, 27)
445
+        Me.DateTimePicker3.Name = "DateTimePicker3"
446
+        Me.DateTimePicker3.Size = New System.Drawing.Size(90, 23)
447
+        Me.DateTimePicker3.TabIndex = 1199
448
+        '
449
+        '應付賬款控制表1
457 450
         '
458 451
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
459 452
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
460 453
         Me.ClientSize = New System.Drawing.Size(1249, 611)
454
+        Me.Controls.Add(Me.Label6)
455
+        Me.Controls.Add(Me.DateTimePicker3)
456
+        Me.Controls.Add(Me.TextBox6)
457
+        Me.Controls.Add(Me.Button4)
458
+        Me.Controls.Add(Me.Button3)
461 459
         Me.Controls.Add(Me.TextBox5)
462
-        Me.Controls.Add(Me.TextBox4)
463
-        Me.Controls.Add(Me.Label8)
464
-        Me.Controls.Add(Me.TextBox1)
465 460
         Me.Controls.Add(Me.Label7)
466 461
         Me.Controls.Add(Me.NumericUpDown2)
467 462
         Me.Controls.Add(Me.Label2)
468 463
         Me.Controls.Add(Me.NumericUpDown1)
464
+        Me.Controls.Add(Me.Label5)
465
+        Me.Controls.Add(Me.TextBox4)
469 466
         Me.Controls.Add(Me.Label1)
470
-        Me.Controls.Add(Me.Button6)
471 467
         Me.Controls.Add(Me.TextBox2)
472
-        Me.Controls.Add(Me.CheckBox1)
473
-        Me.Controls.Add(Me.DateTimePicker3)
468
+        Me.Controls.Add(Me.Button6)
474 469
         Me.Controls.Add(Me.Button5)
475
-        Me.Controls.Add(Me.Button4)
476
-        Me.Controls.Add(Me.ComboBox7)
477
-        Me.Controls.Add(Me.TextBox9)
478
-        Me.Controls.Add(Me.ComboBox4)
479
-        Me.Controls.Add(Me.ComboBox3)
480
-        Me.Controls.Add(Me.ComboBox1)
481
-        Me.Controls.Add(Me.ComboBox5)
482
-        Me.Controls.Add(Me.ComboBox6)
483
-        Me.Controls.Add(Me.Label5)
484 470
         Me.Controls.Add(Me.Button12)
485 471
         Me.Controls.Add(Me.Button13)
472
+        Me.Controls.Add(Me.CheckBox2)
473
+        Me.Controls.Add(Me.CheckBox3)
474
+        Me.Controls.Add(Me.TextBox1)
486 475
         Me.Controls.Add(Me.TextBox3)
487 476
         Me.Controls.Add(Me.Label3)
477
+        Me.Controls.Add(Me.DataGridView3)
478
+        Me.Controls.Add(Me.DataGridView2)
479
+        Me.Controls.Add(Me.DateTimePicker4)
488 480
         Me.Controls.Add(Me.Button1)
489 481
         Me.Controls.Add(Me.一般月)
490 482
         Me.Controls.Add(Me.會計月)
@@ -492,22 +484,23 @@ Partial Class 應付賬款控制表
492 484
         Me.Controls.Add(Me.Label4)
493 485
         Me.Controls.Add(Me.DateTimePicker2)
494 486
         Me.Controls.Add(Me.DateTimePicker1)
495
-        Me.Controls.Add(Me.Label6)
496
-        Me.Controls.Add(Me.CheckBox2)
497
-        Me.Controls.Add(Me.CheckBox3)
498 487
         Me.Controls.Add(Me.DataGridView1)
488
+        Me.Controls.Add(Me.CheckBox1)
499 489
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
500 490
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
501
-        Me.Name = "應付賬款控制表"
502
-        Me.Text = "應付賬款控制表"
491
+        Me.Name = "應付賬款控制表1"
492
+        Me.Text = "應付賬款控制表1"
503 493
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
504
-        CType(Me.NumericUpDown1, System.ComponentModel.ISupportInitialize).EndInit()
494
+        CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).EndInit()
495
+        CType(Me.DataGridView3, System.ComponentModel.ISupportInitialize).EndInit()
505 496
         CType(Me.NumericUpDown2, System.ComponentModel.ISupportInitialize).EndInit()
497
+        CType(Me.NumericUpDown1, System.ComponentModel.ISupportInitialize).EndInit()
506 498
         Me.ResumeLayout(False)
507 499
         Me.PerformLayout()
508 500
 
509 501
     End Sub
510 502
 
503
+    Friend WithEvents DateTimePicker4 As DateTimePicker
511 504
     Friend WithEvents Button1 As Button
512 505
     Friend WithEvents 一般月 As CheckBox
513 506
     Friend WithEvents 會計月 As CheckBox
@@ -516,34 +509,30 @@ Partial Class 應付賬款控制表
516 509
     Friend WithEvents DateTimePicker2 As DateTimePicker
517 510
     Friend WithEvents DateTimePicker1 As DateTimePicker
518 511
     Friend WithEvents DataGridView1 As DataGridView
512
+    Friend WithEvents DataGridView2 As DataGridView
513
+    Friend WithEvents DataGridView3 As DataGridView
519 514
     Friend WithEvents TextBox3 As TextBox
520 515
     Friend WithEvents Label3 As Label
516
+    Friend WithEvents TextBox1 As TextBox
521 517
     Friend WithEvents Button6 As Button
522
-    Friend WithEvents TextBox2 As TextBox
523
-    Friend WithEvents CheckBox1 As CheckBox
524
-    Friend WithEvents Label6 As Label
525
-    Friend WithEvents DateTimePicker3 As DateTimePicker
526 518
     Friend WithEvents Button5 As Button
527
-    Friend WithEvents Button4 As Button
528
-    Friend WithEvents ComboBox7 As ComboBox
529
-    Friend WithEvents TextBox9 As TextBox
530
-    Friend WithEvents ComboBox4 As ComboBox
531
-    Friend WithEvents ComboBox3 As ComboBox
532
-    Friend WithEvents ComboBox1 As ComboBox
533
-    Friend WithEvents ComboBox5 As ComboBox
534
-    Friend WithEvents ComboBox6 As ComboBox
535
-    Friend WithEvents Label5 As Label
536 519
     Friend WithEvents Button12 As Button
537 520
     Friend WithEvents Button13 As Button
521
+    Friend WithEvents CheckBox2 As CheckBox
522
+    Friend WithEvents CheckBox3 As CheckBox
523
+    Friend WithEvents TextBox2 As TextBox
538 524
     Friend WithEvents Label1 As Label
539
-    Friend WithEvents NumericUpDown1 As NumericUpDown
540
-    Friend WithEvents Label2 As Label
541 525
     Friend WithEvents Label7 As Label
542 526
     Friend WithEvents NumericUpDown2 As NumericUpDown
543
-    Friend WithEvents TextBox1 As TextBox
544
-    Friend WithEvents Label8 As Label
545
-    Friend WithEvents CheckBox2 As CheckBox
527
+    Friend WithEvents Label2 As Label
528
+    Friend WithEvents NumericUpDown1 As NumericUpDown
529
+    Friend WithEvents Label5 As Label
546 530
     Friend WithEvents TextBox4 As TextBox
547
-    Friend WithEvents CheckBox3 As CheckBox
548 531
     Friend WithEvents TextBox5 As TextBox
532
+    Friend WithEvents Button3 As Button
533
+    Friend WithEvents Button4 As Button
534
+    Friend WithEvents TextBox6 As TextBox
535
+    Friend WithEvents CheckBox1 As CheckBox
536
+    Friend WithEvents Label6 As Label
537
+    Friend WithEvents DateTimePicker3 As DateTimePicker
549 538
 End Class

+ 175
- 178
MaoOrange-Hongji/財務系統管理/應付賬款控制表.vb ファイルの表示

@@ -9,50 +9,76 @@ Imports Microsoft.Office.Interop.Excel.XlThemeColor
9 9
 Imports Microsoft.Office.Interop.Excel.XlWindowState
10 10
 Imports Microsoft.Office.Interop.Excel
11 11
 Public Class 應付賬款控制表
12
-    ReadOnly ds As New DataSet
13
-    Dim N1 As Integer : Dim 新項次 As String
12
+    ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet
13
+    Dim N1 As Integer
14 14
     Dim xlApp As Application : Dim xlBook As Workbook : Dim xlSheet As Worksheet
15
-    Private Sub Set_賬款單()
15
+    Private Sub Set_賬款單()
16 16
         DataGridView1.DataSource = Nothing : ds.Clear() : DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing : DataGridView1.ColumnHeadersHeight = 40
17 17
         DataGridView1.AllowUserToAddRows = False : DataGridView1.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText : DataGridView1.MultiSelect = True
18
-        SQL_應付賬款單()
18
+        SQL_應付賬款單()
19 19
         da.Fill(ds) : DataGridView1.DataSource = ds.Tables(0) : conn.Close()
20
+        DataGridView1.Columns(0).Visible = False : DataGridView1.Columns(1).FillWeight = 100
21
+        DataGridView1.Columns(0).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(0).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
22
+        DataGridView1.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(1).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
23
+        For I As Integer = 0 To 1 : DataGridView1.Columns(I).ReadOnly = True : Next
24
+    End Sub
25
+    Private Sub Set_賬款清單()
26
+        DataGridView2.DataSource = Nothing : ds1.Clear() : DataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing : DataGridView2.ColumnHeadersHeight = 40
27
+        DataGridView2.AllowUserToAddRows = False : DataGridView2.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText : DataGridView2.MultiSelect = True
20 28
 
21
-        DataGridView1.Columns(0).FillWeight = 150 : DataGridView1.Columns(1).Visible = False : DataGridView1.Columns(2).FillWeight = 100 : DataGridView1.Columns(3).Visible = False
22
-        DataGridView1.Columns(4).FillWeight = 80 : DataGridView1.Columns(5).FillWeight = 300 : DataGridView1.Columns(6).FillWeight = 80 : DataGridView1.Columns(7).FillWeight = 80
23
-        DataGridView1.Columns(8).FillWeight = 80 : DataGridView1.Columns(9).FillWeight = 80 : DataGridView1.Columns(10).FillWeight = 100 : DataGridView1.Columns(11).FillWeight = 100
24
-        DataGridView1.Columns(12).FillWeight = 150 : DataGridView1.Columns(13).FillWeight = 60 : DataGridView1.Columns(14).FillWeight = 50 : DataGridView1.Columns(15).Visible = False
29
+        If TextBox6.Text = "" Then : SQL_應付賬款清單一() : Else : SQL_應付賬款清單二() : End If
25 30
 
26
-        DataGridView1.Columns(6).DefaultCellStyle.Format = "#,##0" : DataGridView1.Columns(7).DefaultCellStyle.Format = "#,##0.000"
27
-        DataGridView1.Columns(8).DefaultCellStyle.Format = "#,##0" : DataGridView1.Columns(9).DefaultCellStyle.Format = "#,##0"
28
-        DataGridView1.Columns(0).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(0).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
29
-        DataGridView1.Columns(2).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(2).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
30
-        DataGridView1.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(4).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
31
-        DataGridView1.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
32
-        DataGridView1.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
33
-        DataGridView1.Columns(8).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(8).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
34
-        DataGridView1.Columns(9).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(9).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
35
-        DataGridView1.Columns(10).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(10).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
36
-        DataGridView1.Columns(11).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(11).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
31
+        da.Fill(ds1) : DataGridView2.DataSource = ds1.Tables(0) : conn.Close()
32
+
33
+        DataGridView2.Columns(0).FillWeight = 150 : DataGridView2.Columns(1).Visible = False : DataGridView2.Columns(2).Visible = False : DataGridView2.Columns(3).Visible = False
34
+        DataGridView2.Columns(4).FillWeight = 80 : DataGridView2.Columns(5).FillWeight = 300 : DataGridView2.Columns(6).FillWeight = 80 : DataGridView2.Columns(7).FillWeight = 80
35
+        DataGridView2.Columns(8).FillWeight = 80 : DataGridView2.Columns(9).FillWeight = 80 : DataGridView2.Columns(10).FillWeight = 100 : DataGridView2.Columns(11).FillWeight = 100
36
+        DataGridView2.Columns(12).FillWeight = 150 : DataGridView2.Columns(13).FillWeight = 60 : DataGridView2.Columns(14).FillWeight = 50 : DataGridView2.Columns(15).Visible = False
37
+        DataGridView2.Columns(16).FillWeight = 120 : DataGridView2.Columns(17).Visible = False
37 38
 
38
-        For I As Integer = 0 To 12 : DataGridView1.Columns(I).ReadOnly = True : Next : DataGridView1.Columns(14).ReadOnly = True
39
-        For I As Integer = 0 To DataGridView1.Rows.Count - 1
40
-            If DataGridView1.Rows(I).Cells("應付立帳").Value.ToString = "" Then : DataGridView1.Rows(I).Cells("應付立帳").Value = False : End If
41
-            DataGridView1.Rows(I).Cells("選擇").Value = False
39
+        DataGridView2.Columns(6).DefaultCellStyle.Format = "#,##0" : DataGridView2.Columns(7).DefaultCellStyle.Format = "#,##0.000"
40
+        DataGridView2.Columns(8).DefaultCellStyle.Format = "#,##0" : DataGridView2.Columns(9).DefaultCellStyle.Format = "#,##0"
41
+        DataGridView2.Columns(0).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView2.Columns(0).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
42
+        DataGridView2.Columns(2).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView2.Columns(2).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
43
+        DataGridView2.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView2.Columns(4).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
44
+        DataGridView2.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView2.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
45
+        DataGridView2.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView2.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
46
+        DataGridView2.Columns(8).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView2.Columns(8).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
47
+        DataGridView2.Columns(9).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView2.Columns(9).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
48
+        DataGridView2.Columns(10).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView2.Columns(10).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
49
+        DataGridView2.Columns(11).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView2.Columns(11).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
50
+
51
+        For I As Integer = 0 To 12 : DataGridView2.Columns(I).ReadOnly = True : Next : DataGridView2.Columns(14).ReadOnly = True
52
+        For I As Integer = 0 To DataGridView2.Rows.Count - 1
53
+            If DataGridView2.Rows(I).Cells("應付立帳").Value.ToString = "" Then : DataGridView2.Rows(I).Cells("應付立帳").Value = False : End If
54
+            DataGridView2.Rows(I).Cells("選擇").Value = False
42 55
         Next
43 56
     End Sub
44
-    Private Sub ComboBox1下拉表單資料載入()
45
-        SQL_會計科目_第一階_只含流動票務()
46
-        ComboBox5.Items.Clear() : ComboBox1.Items.Clear() : While (dr.Read()) : ComboBox5.Items.Add(dr("第一階")) : ComboBox1.Items.Add(dr("編號")) : End While : conn.Close()
47
-    End Sub
48
-    Private Sub ComboBox3下拉表單資料載入()
49
-        PA = ComboBox1.Text : SQL_會計科目_第二階_只含流動票務()
50
-        ComboBox3.Items.Clear() : ComboBox4.Items.Clear() : While (dr.Read()) : ComboBox3.Items.Add(dr("第二階")) : ComboBox4.Items.Add(dr("編號")) : End While : conn.Close() : PA = ""
51
-    End Sub
52
-    Private Sub ComboBox6下拉表單資料載入()
53
-        PA = ComboBox4.Text : SQL_會計科目_第三階_只含流動票務()
54
-        ComboBox7.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox7.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
55
-        If ComboBox7.Items.Count <> 0 Then : ComboBox7.SelectedIndex = 0 : End If
57
+    Private Sub Set_財務清單()
58
+        DataGridView3.DataSource = Nothing : ds2.Clear() : DataGridView3.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing : DataGridView3.ColumnHeadersHeight = 40
59
+        DataGridView3.AllowUserToAddRows = False : DataGridView3.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText : DataGridView3.MultiSelect = True
60
+        DataGridView3.RowTemplate.Height = 35
61
+        SQL_應付賬款清單三()
62
+        da.Fill(ds2) : DataGridView3.DataSource = ds2.Tables(0) : conn.Close()
63
+
64
+        DataGridView3.Columns(0).Visible = False : DataGridView3.Columns(1).Visible = False : DataGridView3.Columns(2).FillWeight = 75 : DataGridView3.Columns(3).Visible = False
65
+        DataGridView3.Columns(4).FillWeight = 150 : DataGridView3.Columns(5).FillWeight = 80 : DataGridView3.Columns(6).Visible = False : DataGridView3.Columns(7).FillWeight = 80
66
+        DataGridView3.Columns(8).Visible = False : DataGridView3.Columns(9).FillWeight = 150 : DataGridView3.Columns(10).FillWeight = 50 : DataGridView3.Columns(11).FillWeight = 50
67
+        DataGridView3.Columns(12).FillWeight = 120 : DataGridView3.Columns(13).FillWeight = 75 : DataGridView3.Columns(14).FillWeight = 95 : DataGridView3.Columns(15).FillWeight = 95
68
+        DataGridView3.Columns(16).FillWeight = 95 : DataGridView3.Columns(17).FillWeight = 95 : DataGridView3.Columns(18).FillWeight = 75 : DataGridView3.Columns(19).Visible = False
69
+        DataGridView3.Columns(20).FillWeight = 150 : DataGridView3.Columns(21).FillWeight = 100 : DataGridView3.Columns(22).FillWeight = 80 : DataGridView3.Columns(23).FillWeight = 150
70
+        DataGridView3.Columns(24).Visible = False : DataGridView3.Columns(25).Visible = False : DataGridView3.Columns(26).Visible = False
71
+
72
+        DataGridView3.Columns(6).DefaultCellStyle.Format = "#,##0" : DataGridView3.Columns(7).DefaultCellStyle.Format = "#,##0"
73
+        DataGridView3.Columns(8).DefaultCellStyle.Format = "#,##0" : DataGridView3.Columns(5).DefaultCellStyle.Format = "#,##0"
74
+        DataGridView3.Columns(2).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView3.Columns(2).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
75
+        DataGridView3.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView3.Columns(5).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
76
+        DataGridView3.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView3.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
77
+        DataGridView3.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView3.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
78
+        DataGridView3.Columns(8).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView3.Columns(8).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
79
+        DataGridView3.Columns(9).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView3.Columns(9).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
80
+        DataGridView3.Columns(10).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView3.Columns(10).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
81
+        DataGridView3.Columns(11).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView3.Columns(11).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
56 82
     End Sub
57 83
     Private Sub 日期格式()
58 84
         If 會計月.Checked = True Then
@@ -67,178 +93,149 @@ Public Class 應付賬款控制表
67 93
             DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1)
68 94
             DTP = Strings.Left(Strings.Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker1.Value = DTP
69 95
             '-------------日期二----------------------------------------------------------------------------------------
70
-            Dim iDays As Integer = DateTime.DaysInMonth(Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 4), Strings.Mid(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 6, 2))
71
-            DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & iDays : DateTimePicker2.Value = DTP
96
+            DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker2.Value = DTP
97
+            DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddDays(-1)
72 98
         End If
73 99
     End Sub
74
-    Private Sub 預設關鍵字()
75
-        關鍵字編號 = "DV002" : SQL_通用預設值管理查詢() : If dr.Read() Then : TextBox9.Text = dr("預設值") : End If
76
-    End Sub
77
-    Private Sub 應付賬款_Load(sender As Object, e As EventArgs) Handles MyBase.Load
100
+    Private Sub 應付賬款控制表1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
78 101
         Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
79
-        ComboBox6.Visible = False : TextBox1.Visible = False : TextBox4.Visible = False : TextBox5.Visible = False
80
-        TextBox1.Text = "0" : TextBox2.Text = "0"
81
-        ComboBox1下拉表單資料載入() : ComboBox3下拉表單資料載入() : ComboBox6下拉表單資料載入() : 日期格式() : Set_賬款清單()
82
-        預設關鍵字()
102
+        DateTimePicker4.Visible = False : TextBox1.Visible = False : TextBox5.Visible = False
103
+        日期格式() : Set_賬款主單()
83 104
     End Sub
84 105
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
85
-        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(-1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(-1) : Set_賬款清單()
106
+        If 會計月.Checked = True Then
107
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
108
+            DateTimePicker1.Value = DateTimePicker4.Value
109
+            DateTimePicker2.Value = DateTimePicker4.Value
110
+        Else
111
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
112
+            DateTimePicker1.Value = DateTimePicker4.Value.AddMonths(-1)
113
+            DateTimePicker2.Value = DateTimePicker4.Value
114
+        End If
115
+        TextBox6.Text = "" : 日期格式() : Set_賬款主單()
86 116
     End Sub
87 117
     Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
88
-        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1) : Set_賬款清單()
118
+        If 會計月.Checked = True Then
119
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
120
+            DateTimePicker1.Value = DateTimePicker4.Value
121
+            DateTimePicker2.Value = DateTimePicker4.Value
122
+        Else
123
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
124
+            DateTimePicker1.Value = DateTimePicker4.Value.AddMonths(-1)
125
+            DateTimePicker2.Value = DateTimePicker4.Value
126
+        End If
127
+        TextBox6.Text = "" : 日期格式() : Set_賬款主單()
89 128
     End Sub
90 129
     Private Sub 會計月_CheckedChanged(sender As Object, e As EventArgs) Handles 會計月.Click
91
-        會計月.Checked = True : 一般月.Checked = False : 日期格式() : Set_賬款清單()
130
+        會計月.Checked = True : 一般月.Checked = False : TextBox6.Text = "" : 日期格式() : Set_賬款主單()
92 131
     End Sub
93 132
     Private Sub 一般月_CheckedChanged(sender As Object, e As EventArgs) Handles 一般月.Click
94
-        會計月.Checked = False : 一般月.Checked = True : 日期格式() : Set_賬款清單()
95
-    End Sub
96
-    Private Sub ComboBox5_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox5.TextChanged
97
-        ComboBox1.SelectedIndex = ComboBox5.SelectedIndex : TextBox9.Text = "" : ComboBox3下拉表單資料載入() : ComboBox6下拉表單資料載入()
98
-    End Sub
99
-    Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.TextChanged
100
-        ComboBox5.SelectedIndex = ComboBox1.SelectedIndex : ComboBox3下拉表單資料載入() : ComboBox6下拉表單資料載入()
101
-    End Sub
102
-    Private Sub ComboBox3_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox3.TextChanged
103
-        ComboBox4.SelectedIndex = ComboBox3.SelectedIndex : ComboBox6下拉表單資料載入()
104
-    End Sub
105
-    Private Sub ComboBox4_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox4.TextChanged
106
-        ComboBox3.SelectedIndex = ComboBox4.SelectedIndex : ComboBox6下拉表單資料載入()
133
+        會計月.Checked = False : 一般月.Checked = True : TextBox6.Text = "" : 日期格式() : Set_賬款主單()
107 134
     End Sub
108
-    Private Sub ComboBox7_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox7.SelectedIndexChanged
109
-        ComboBox6.SelectedIndex = ComboBox7.SelectedIndex
110
-    End Sub
111
-    Private Sub ComboBox6_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox6.SelectedIndexChanged
112
-        ComboBox7.SelectedIndex = ComboBox6.SelectedIndex
113
-    End Sub
114
-    Private Sub TextBox9_TextChanged(sender As Object, e As EventArgs) Handles TextBox9.TextChanged
115
-        PA = TextBox9.Text : SQL_會計科目_關鍵字_只含流動票務()
116
-        ComboBox7.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox7.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
117
-        If ComboBox7.Items.Count <> 0 Then : ComboBox7.SelectedIndex = 0 : End If : PA = ""
135
+    Private Sub 選中金額計算()
136
+        TextBox4.Text = "0" : TextBox5.Text = "0"
137
+        For I As Integer = 0 To DataGridView2.Rows.Count - 1
138
+            If DataGridView2.Rows(I).Cells("選擇").Value = True Then
139
+                TextBox5.Text = Val(TextBox5.Text) + DataGridView2.Rows(I).Cells("金額").Value
140
+                TextBox4.Text = Val(TextBox4.Text) + DataGridView2.Rows(I).Cells("金額").Value
141
+            End If
142
+        Next
143
+        NumericUpDown2.Value = Val(TextBox5.Text) - NumericUpDown1.Value
144
+        TextBox4.Text = Strings.Format(Val(TextBox4.Text), "#,##0")
118 145
     End Sub
119 146
     Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView1.CellClick
120 147
         If e.RowIndex = -1 Then : Else
121
-            TextBox3.Text = DataGridView1.Rows(e.RowIndex).Cells("單據編號").Value : TextBox5.Text = DataGridView1.Rows(e.RowIndex).Cells("供應商").Value
122
-            TextBox2.Text = "0" : TextBox1.Text = "0"
123
-            For I As Integer = 0 To DataGridView1.Rows.Count - 1
148
+            TextBox6.Text = "" : TextBox2.Text = "" : CheckBox2.Checked = False : TextBox4.Text = "0" : NumericUpDown1.Value = 0 : NumericUpDown2.Value = 0
149
+            TextBox1.Text = DataGridView1.Rows(e.RowIndex).Cells("供應商編號").Value
150
+            TextBox3.Text = DataGridView1.Rows(e.RowIndex).Cells("供應商").Value
151
+            Set_賬款清單() : Set_財務清單()
152
+            For i As Integer = 0 To DataGridView2.Rows.Count - 1 : DataGridView2.Rows(i).Cells("選擇").Value = True : Next i : 選中金額計算()
153
+        End If
154
+    End Sub
155
+    Private Sub DataGridView2_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView2.CellClick
156
+        If e.RowIndex = -1 Then : Else
157
+            If DataGridView2.Rows(e.RowIndex).Cells("申請日期").Value.ToString = "" Then : Else : DateTimePicker3.Value = DataGridView2.Rows(e.RowIndex).Cells("申請日期").Value.ToString : End If
158
+            TextBox2.Text = DataGridView2.Rows(e.RowIndex).Cells("單據編號").Value : TextBox6.Text = DataGridView2.Rows(e.RowIndex).Cells("財務單號").Value.ToString
159
+            For I As Integer = 0 To DataGridView2.Rows.Count - 1
124 160
                 If CheckBox2.Checked = False Then
125
-                    DataGridView1.Rows(I).Cells("選擇").Value = False
161
+                    DataGridView2.Rows(I).Cells("選擇").Value = False
126 162
                 End If
127
-
128
-                If TextBox3.Text = DataGridView1.Rows(I).Cells("單據編號").Value Then
129
-                    DataGridView1.Rows(I).Cells("選擇").Value = True
130
-                    TextBox1.Text = Val(TextBox1.Text) + DataGridView1.Rows(I).Cells("金額").Value
131
-                    TextBox2.Text = Val(TextBox2.Text) + DataGridView1.Rows(I).Cells("金額").Value
163
+                If TextBox2.Text = DataGridView2.Rows(I).Cells("單據編號").Value Then
164
+                    DataGridView2.Rows(I).Cells("選擇").Value = True
165
+                End If
166
+            Next
167
+            選中金額計算() : Set_財務清單()
168
+            NumericUpDown1.Value = 0
169
+            For I As Integer = 0 To DataGridView3.Rows.Count - 1
170
+                If DataGridView3.Rows(I).Cells("開票").Value < 0 Or DataGridView3.Rows(I).Cells("付現").Value < 0 Then : Else
171
+                    NumericUpDown1.Value = NumericUpDown1.Value + DataGridView3.Rows(I).Cells("開票").Value + DataGridView3.Rows(I).Cells("付現").Value
132 172
                 End If
133 173
             Next
134
-            TextBox2.Text = Strings.Format(Val(TextBox2.Text), "#,##0")
135 174
         End If
136 175
     End Sub
137
-    Private Sub DataGridView1_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles DataGridView1.RowPostPaint
176
+    Private Sub DataGridView2_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles DataGridView2.RowPostPaint
138 177
         Dim linePen As New Pen(Color.Blue, 2)
139
-        If e.RowIndex = DataGridView1.Rows.Count - 1 Then : Exit Sub
178
+        If e.RowIndex = DataGridView2.Rows.Count - 1 Then : Exit Sub
140 179
         Else
141
-            If DataGridView1(0, e.RowIndex).Value.ToString <> DataGridView1(0, e.RowIndex + 1).Value.ToString Then
142
-                Dim startX As Integer = IIf(DataGridView1.RowHeadersVisible, DataGridView1.RowHeadersWidth, 0)
180
+            If DataGridView2(0, e.RowIndex).Value.ToString <> DataGridView2(0, e.RowIndex + 1).Value.ToString Then
181
+                Dim startX As Integer = IIf(DataGridView2.RowHeadersVisible, DataGridView2.RowHeadersWidth, 0)
143 182
                 Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
144
-                Dim endX As Integer = startX + DataGridView1.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - DataGridView1.HorizontalScrollingOffset
183
+                Dim endX As Integer = startX + DataGridView2.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - DataGridView2.HorizontalScrollingOffset
145 184
                 e.Graphics.DrawLine(linePen, startX, startY, endX, startY) : Exit Sub
146 185
             End If
147 186
         End If
148 187
     End Sub
149
-    Private Sub Button13_Click(sender As Object, e As EventArgs) Handles Button13.Click
150
-        For i As Integer = 0 To DataGridView1.Rows.Count - 1 : DataGridView1.Rows(i).Cells("選擇").Value = True : Next i
151
-    End Sub
152
-    Private Sub Button12_Click(sender As Object, e As EventArgs) Handles Button12.Click
153
-        For i As Integer = 0 To DataGridView1.Rows.Count - 1 : DataGridView1.Rows(i).Cells("選擇").Value = False : Next i
154
-    End Sub
155
-    Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
156
-        For i As Integer = 0 To DataGridView1.Rows.Count - 1
157
-            If TextBox3.Text = DataGridView1.Rows(i).Cells("單據編號").Value.ToString Then
158
-                DataGridView1.Rows(i).Cells("應付立帳").Value = False
159
-            End If
160
-        Next i
161
-    End Sub
162
-    Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
163
-        NumericUpDown2.Value = Val(TextBox1.Text) - NumericUpDown1.Value
188
+    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
189
+        TextBox6.Text = "" : TextBox1.Text = "%%" : Set_賬款清單() : Set_財務清單()
164 190
     End Sub
165 191
     Private Sub NumericUpDown1_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown1.ValueChanged
166
-        NumericUpDown2.Value = Val(TextBox1.Text) - NumericUpDown1.Value
192
+        NumericUpDown2.Value = Val(TextBox5.Text) - NumericUpDown1.Value
167 193
     End Sub
168
-    Private Sub CheckBox3_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox3.CheckedChanged
169
-        Set_賬款清單()
194
+    Private Sub Button13_Click(sender As Object, e As EventArgs) Handles Button13.Click
195
+        For i As Integer = 0 To DataGridView2.Rows.Count - 1 : DataGridView2.Rows(i).Cells("選擇").Value = True : Next i : 選中金額計算()
170 196
     End Sub
171
-    Private Sub Set_日期格式轉換()
172
-        If CheckBox1.Checked = False Then : DTP = Strings.Format(Today(), "yyyy/MM/dd") : DTP1 = Strings.Format(Today(), "yyyyMMdd")
173
-        Else : DTP1 = Strings.Format(DateTimePicker3.Value, "yyyyMMdd") : DTP = Strings.Format(DateTimePicker3.Value, "yyyy/MM/dd") : End If
197
+    Private Sub Button12_Click(sender As Object, e As EventArgs) Handles Button12.Click
198
+        For i As Integer = 0 To DataGridView2.Rows.Count - 1 : DataGridView2.Rows(i).Cells("選擇").Value = False : Next i : 選中金額計算()
174 199
     End Sub
175 200
     Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
176
-        If CheckBox2.Checked = True Then
177
-            MsgBox("開立支付單(傳票)需要一張一張來,請重新選擇。")
178
-            CheckBox2.Checked = False
179
-            For I As Integer = 0 To DataGridView1.Rows.Count - 1
180
-                DataGridView1.Rows(I).Cells("選擇").Value = False
201
+        Dim 選擇判斷 As Boolean = False
202
+        For i As Integer = 0 To DataGridView2.Rows.Count - 1
203
+            If DataGridView2.Rows(i).Cells("選擇").Value = True Then
204
+                選擇判斷 = True : Exit For
205
+            End If
206
+        Next i
207
+        If 選擇判斷 = True Then
208
+            If CheckBox1.Checked = False Then : DTP = Strings.Format(Today(), "yyyy/MM/dd") : DTP1 = Strings.Format(Today(), "yyyyMMdd")
209
+            Else : DTP1 = Strings.Format(DateTimePicker3.Value, "yyyyMMdd") : DTP = Strings.Format(DateTimePicker3.Value, "yyyy/MM/dd") : End If
210
+            收付應沖金額 = Val(TextBox5.Text)
211
+            財務單申請狀態 = "應付" : 收付對應財務單號 = TextBox6.Text
212
+            收付對應客戶供應商編號 = TextBox1.Text
213
+            For I As Integer = 0 To DataGridView2.Rows.Count - 1
214
+                If DataGridView2.Rows(I).Cells("選擇").Value = True Then
215
+                    PA19 = DataGridView2.Rows(I).Cells("資料流水號").Value.ToString
216
+                    SQL_應收應付單號連接暫存檔新增() : conn.Close()
217
+                End If
218
+            Next
219
+            財務單具申請.ShowDialog()
220
+            Set_賬款清單() : Set_財務清單() : 財務單具申請.Close()
221
+            For I As Integer = 0 To DataGridView2.Rows.Count - 1
222
+                DataGridView2.Rows(I).Cells("選擇").Value = True
181 223
             Next
182 224
         Else
183
-            If NumericUpDown1.Value = 0 Then
184
-                MsgBox("實付金額不可為零。") : Exit Sub
185
-            Else
186
-                If NumericUpDown2.Value = 0 Then : Else
187
-                    If ComboBox6.Text = "" Then
188
-                        MsgBox("未付款金額擇讓需要會計科目。") : Exit Sub
189
-                    Else
190
-                    End If
191
-                End If
192
-                Dim 確認 As Boolean = False
193
-                For i As Integer = 0 To DataGridView1.Rows.Count - 1
194
-                    If DataGridView1.Rows(i).Cells("選擇").Value = True Then
195
-                        MsgBox("該採購單已經開立過傳票,如是之前開立有誤需要從新開立,請先點擊--依據單號取消立帳選擇--按鈕。如是因採購退貨需要開立收支單(傳票)請先勾選--已立帳資料隱藏--再行操作。")
196
-                        Exit Sub
197
-                    End If
198
-                Next
199
-                If 確認 = False Then : MsgBox("沒有選擇任何一筆要轉收支帳(傳票)的採購單號。")
200
-                Else
201
-                    Dim NUM1 As Integer : Set_日期格式轉換()
202
-                    For ii As Integer = 1 To 999
203
-                        NUM1 = 0 + ii
204
-                        If NUM1 < 10 Then : TextBox4.Text = "OE-" & DTP1 & "-00" & NUM1
205
-                        ElseIf NUM1 > 9 And NUM1 < 100 Then : TextBox4.Text = "OE-" & DTP1 & "-0" & NUM1
206
-                        ElseIf NUM1 > 99 Then : TextBox4.Text = "OE-" & DTP1 & "-" & NUM1 : End If : PA = TextBox4.Text
207
-                        SQL_營運成本收支單申請_支付單號流水號()
208
-                        If dr.Read() Then : Else : ii = 999 : End If
209
-                    Next
210
-                    SQL_營運成本控制表新增()
211
-
212
-                    SQL_營運成本明細表項次新增查詢()
213
-                    If dr.Read() Then : 新項次 = dr("項次") : Else : 新項次 = "00" : End If : conn.Close() : NUM1 = Double.Parse(新項次) + 1
214
-                    If NUM1 < 10 Then : 新項次 = "0" & NUM1
215
-                    ElseIf NUM1 > 9 And NUM1 < 100 Then : 新項次 = NUM1 : End If
216
-                    關鍵字編號 = "DV001" : SQL_通用預設值管理查詢() : If dr.Read() Then : PA3 = dr("預設值") : End If
217
-                    PA1 = TextBox4.Text : PA2 = 新項次 : PA4 = TextBox5.Text & " - " & DateTimePicker1.Value & " 到 " & DateTimePicker2.Value & " 應付帳款"
218
-                    NU1 = NumericUpDown1.Value : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0 : PA6 = "付現" : PA7 = gUserName
219
-                    SQL_營運成本明細表新增()
220
-
221
-                    If NumericUpDown2.Value = 0 Then : Else
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
-
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 : PA6 = "付現" : PA7 = gUserName
229
-                        SQL_營運成本明細表新增()
230
-                    End If
231
-                    For i As Integer = 0 To DataGridView1.Rows.Count - 1
232
-                        資料數 = DataGridView1.Rows.Count : MyModule1.進度條()
233
-                        If DataGridView1.Rows(i).Cells("選擇").Value = True Then
234
-                            PA6 = DataGridView1.Rows(i).Cells("資料流水號").Value
235
-                            SQL_應付賬款_倉儲明細應付立帳修改()
236
-                        End If
237
-                    Next i : MAOJI_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0 : MsgBox("財務收支單(傳票)申請完成,請通知主管審核。") : Set_賬款清單()
238
-                End If
239
-            End If
225
+            MsgBox("最少要選擇一張單據。")
240 226
         End If
241 227
     End Sub
228
+    Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
229
+        For i As Integer = 0 To DataGridView2.Rows.Count - 1
230
+            If TextBox2.Text = DataGridView2.Rows(i).Cells("單據編號").Value.ToString Then
231
+                DataGridView2.Rows(i).Cells("應付立帳").Value = False
232
+            End If
233
+        Next i
234
+    End Sub
235
+    Private Sub TextBox6_TextChanged(sender As Object, e As EventArgs) Handles TextBox6.TextChanged
236
+        CheckBox2.Checked = True
237
+        Set_賬款清單() : For i As Integer = 0 To DataGridView2.Rows.Count - 1 : DataGridView2.Rows(i).Cells("選擇").Value = True : Next i : 選中金額計算()
238
+    End Sub
242 239
     Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
243 240
         xlApp = CType(CreateObject("Excel.Application"), Application)
244 241
         xlBook = xlApp.Workbooks.Add
@@ -246,20 +243,20 @@ Public Class 應付賬款控制表
246 243
         xlApp.Visible = True
247 244
         xlApp.Application.WindowState = xlMaximized
248 245
         N1 = 0
249
-        If DataGridView1.Rows.Count = 0 Then : Else
246
+        If DataGridView2.Rows.Count = 0 Then : Else
250 247
             xlSheet = NewMethod(xlBook)
251 248
             xlSheet.Cells(1, 1) = MAOJI_ERP_SYS.ComboBox2.Text : xlSheet.Cells(2, 1) = DateTimePicker1.Value & " 到 " & DateTimePicker2.Value & " 應付帳款清單"
252 249
             xlSheet.Cells(3, 1) = "單據編號" : xlSheet.Cells(3, 2) = "供應商" : xlSheet.Cells(3, 3) = "頁碼" : xlSheet.Cells(3, 4) = "品名" : xlSheet.Cells(3, 5) = "單價" : xlSheet.Cells(3, 6) = "匯率"
253 250
             xlSheet.Cells(3, 7) = "入庫" : xlSheet.Cells(3, 8) = "金額" : xlSheet.Cells(3, 9) = "採購下單" : xlSheet.Cells(3, 10) = "入庫日期" : xlSheet.Cells(3, 11) = "是否立帳"
254 251
             xlSheet.Cells(2, 7) = "合計" : xlSheet.Cells(2, 8) = "=SUBTOTAL(9,H4:H9999)"
255
-            For i As Integer = 0 To DataGridView1.Rows.Count - 1
256
-                If DataGridView1.Rows(i).Cells("選擇").Value = True Then
257
-                    xlSheet.Cells(N1 + 4, 1) = DataGridView1.Rows(i).Cells("單據編號").Value : xlSheet.Cells(N1 + 4, 2) = DataGridView1.Rows(i).Cells("供應商").Value
258
-                    xlSheet.Cells(N1 + 4, 3) = DataGridView1.Rows(i).Cells("頁碼").Value : xlSheet.Cells(N1 + 4, 4) = DataGridView1.Rows(i).Cells("品名").Value
259
-                    xlSheet.Cells(N1 + 4, 5) = DataGridView1.Rows(i).Cells("單價").Value : xlSheet.Cells(N1 + 4, 6) = DataGridView1.Rows(i).Cells("匯率").Value
260
-                    xlSheet.Cells(N1 + 4, 7) = DataGridView1.Rows(i).Cells("入庫").Value : xlSheet.Cells(N1 + 4, 8) = DataGridView1.Rows(i).Cells("金額").Value
261
-                    xlSheet.Cells(N1 + 4, 9) = DataGridView1.Rows(i).Cells("採購下單").Value : xlSheet.Cells(N1 + 4, 10) = DataGridView1.Rows(i).Cells("入庫日期").Value
262
-                    If DataGridView1.Rows(i).Cells("應付立帳").Value = True Then : PA1 = "YES" : Else : PA1 = "NO" : End If
252
+            For i As Integer = 0 To DataGridView2.Rows.Count - 1
253
+                If DataGridView2.Rows(i).Cells("選擇").Value = True Then
254
+                    xlSheet.Cells(N1 + 4, 1) = DataGridView2.Rows(i).Cells("單據編號").Value : xlSheet.Cells(N1 + 4, 2) = DataGridView2.Rows(i).Cells("供應商").Value
255
+                    xlSheet.Cells(N1 + 4, 3) = DataGridView2.Rows(i).Cells("頁碼").Value : xlSheet.Cells(N1 + 4, 4) = DataGridView2.Rows(i).Cells("品名").Value
256
+                    xlSheet.Cells(N1 + 4, 5) = DataGridView2.Rows(i).Cells("單價").Value : xlSheet.Cells(N1 + 4, 6) = DataGridView2.Rows(i).Cells("匯率").Value
257
+                    xlSheet.Cells(N1 + 4, 7) = DataGridView2.Rows(i).Cells("入庫").Value : xlSheet.Cells(N1 + 4, 8) = DataGridView2.Rows(i).Cells("金額").Value
258
+                    xlSheet.Cells(N1 + 4, 9) = DataGridView2.Rows(i).Cells("採購下單").Value : xlSheet.Cells(N1 + 4, 10) = DataGridView2.Rows(i).Cells("入庫日期").Value
259
+                    If DataGridView2.Rows(i).Cells("應付立帳").Value = True Then : PA1 = "YES" : Else : PA1 = "NO" : End If
263 260
                     xlSheet.Cells(N1 + 4, 11) = PA1
264 261
                     N1 += 1
265 262
                 End If

+ 20
- 8
MaoOrange-Hongji/財務系統管理/應收帳款控制表.Designer.vb ファイルの表示

@@ -22,8 +22,8 @@ Partial Class 應收帳款控制表
22 22
     '請勿使用程式碼編輯器進行修改。
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25
-        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
-        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
25
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27 27
         Me.DataGridView1 = New System.Windows.Forms.DataGridView()
28 28
         Me.Button1 = New System.Windows.Forms.Button()
29 29
         Me.一般月 = New System.Windows.Forms.CheckBox()
@@ -63,6 +63,7 @@ Partial Class 應收帳款控制表
63 63
         Me.CheckBox2 = New System.Windows.Forms.CheckBox()
64 64
         Me.CheckBox3 = New System.Windows.Forms.CheckBox()
65 65
         Me.ComboBox2 = New System.Windows.Forms.ComboBox()
66
+        Me.DateTimePicker4 = New System.Windows.Forms.DateTimePicker()
66 67
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
67 68
         CType(Me.NumericUpDown2, System.ComponentModel.ISupportInitialize).BeginInit()
68 69
         CType(Me.NumericUpDown1, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -70,8 +71,8 @@ Partial Class 應收帳款控制表
70 71
         '
71 72
         'DataGridView1
72 73
         '
73
-        DataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
74
-        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
74
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
75
+        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
75 76
         Me.DataGridView1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
76 77
             Or System.Windows.Forms.AnchorStyles.Left) _
77 78
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -81,8 +82,8 @@ Partial Class 應收帳款控制表
81 82
         Me.DataGridView1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
82 83
         Me.DataGridView1.Name = "DataGridView1"
83 84
         Me.DataGridView1.RowHeadersWidth = 5
84
-        DataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
85
-        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle6
85
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
86
+        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle4
86 87
         Me.DataGridView1.RowTemplate.Height = 24
87 88
         Me.DataGridView1.Size = New System.Drawing.Size(1234, 517)
88 89
         Me.DataGridView1.TabIndex = 1116
@@ -101,7 +102,7 @@ Partial Class 應收帳款控制表
101 102
         '一般月
102 103
         '
103 104
         Me.一般月.AutoSize = True
104
-        Me.一般月.Location = New System.Drawing.Point(130, 31)
105
+        Me.一般月.Location = New System.Drawing.Point(138, 31)
105 106
         Me.一般月.Name = "一般月"
106 107
         Me.一般月.Size = New System.Drawing.Size(63, 20)
107 108
         Me.一般月.TabIndex = 1123
@@ -113,7 +114,7 @@ Partial Class 應收帳款控制表
113 114
         Me.會計月.AutoSize = True
114 115
         Me.會計月.Checked = True
115 116
         Me.會計月.CheckState = System.Windows.Forms.CheckState.Checked
116
-        Me.會計月.Location = New System.Drawing.Point(20, 31)
117
+        Me.會計月.Location = New System.Drawing.Point(11, 31)
117 118
         Me.會計月.Name = "會計月"
118 119
         Me.會計月.Size = New System.Drawing.Size(63, 20)
119 120
         Me.會計月.TabIndex = 1122
@@ -464,11 +465,21 @@ Partial Class 應收帳款控制表
464 465
         Me.ComboBox2.Size = New System.Drawing.Size(66, 24)
465 466
         Me.ComboBox2.TabIndex = 1196
466 467
         '
468
+        'DateTimePicker4
469
+        '
470
+        Me.DateTimePicker4.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
471
+        Me.DateTimePicker4.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
472
+        Me.DateTimePicker4.Location = New System.Drawing.Point(80, 29)
473
+        Me.DateTimePicker4.Name = "DateTimePicker4"
474
+        Me.DateTimePicker4.Size = New System.Drawing.Size(43, 23)
475
+        Me.DateTimePicker4.TabIndex = 1197
476
+        '
467 477
         '應收帳款控制表
468 478
         '
469 479
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
470 480
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
471 481
         Me.ClientSize = New System.Drawing.Size(1249, 611)
482
+        Me.Controls.Add(Me.DateTimePicker4)
472 483
         Me.Controls.Add(Me.ComboBox2)
473 484
         Me.Controls.Add(Me.TextBox5)
474 485
         Me.Controls.Add(Me.TextBox4)
@@ -558,4 +569,5 @@ Partial Class 應收帳款控制表
558 569
     Friend WithEvents CheckBox2 As CheckBox
559 570
     Friend WithEvents CheckBox3 As CheckBox
560 571
     Friend WithEvents ComboBox2 As ComboBox
572
+    Friend WithEvents DateTimePicker4 As DateTimePicker
561 573
 End Class

+ 23
- 5
MaoOrange-Hongji/財務系統管理/應收帳款控制表.vb ファイルの表示

@@ -69,8 +69,8 @@ Public Class 應收帳款控制表
69 69
             DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1)
70 70
             DTP = Strings.Left(Strings.Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker1.Value = DTP
71 71
             '-------------日期二----------------------------------------------------------------------------------------
72
-            Dim iDays As Integer = DateTime.DaysInMonth(Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 4), Strings.Mid(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 6, 2))
73
-            DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & iDays : DateTimePicker2.Value = DTP
72
+            DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker2.Value = DTP
73
+            DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddDays(-1)
74 74
         End If
75 75
     End Sub
76 76
     Private Sub 預設關鍵字()
@@ -78,16 +78,34 @@ Public Class 應收帳款控制表
78 78
     End Sub
79 79
     Private Sub 應收帳款_Load(sender As Object, e As EventArgs) Handles MyBase.Load
80 80
         Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
81
-        ComboBox6.Visible = False : TextBox1.Visible = False : TextBox4.Visible = False : TextBox5.Visible = False
81
+        ComboBox6.Visible = False : TextBox1.Visible = False : TextBox4.Visible = False : TextBox5.Visible = False : DateTimePicker4.Visible = False
82 82
         TextBox1.Text = "0" : TextBox2.Text = "0"
83 83
         ComboBox1下拉表單資料載入() : ComboBox3下拉表單資料載入() : ComboBox6下拉表單資料載入() : 日期格式() : Set_賬款清單()
84 84
         預設關鍵字()
85 85
     End Sub
86 86
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
87
-        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(-1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(-1) : Set_賬款清單()
87
+        If 會計月.Checked = True Then
88
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
89
+            DateTimePicker1.Value = DateTimePicker4.Value
90
+            DateTimePicker2.Value = DateTimePicker4.Value
91
+        Else
92
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
93
+            DateTimePicker1.Value = DateTimePicker4.Value.AddMonths(-1)
94
+            DateTimePicker2.Value = DateTimePicker4.Value
95
+        End If
96
+        日期格式() : Set_賬款清單()
88 97
     End Sub
89 98
     Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
90
-        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1) : Set_賬款清單()
99
+        If 會計月.Checked = True Then
100
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
101
+            DateTimePicker1.Value = DateTimePicker4.Value
102
+            DateTimePicker2.Value = DateTimePicker4.Value
103
+        Else
104
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
105
+            DateTimePicker1.Value = DateTimePicker4.Value.AddMonths(-1)
106
+            DateTimePicker2.Value = DateTimePicker4.Value
107
+        End If
108
+        日期格式() : Set_賬款清單()
91 109
     End Sub
92 110
     Private Sub 會計月_CheckedChanged(sender As Object, e As EventArgs) Handles 會計月.Click
93 111
         會計月.Checked = True : 一般月.Checked = False : 日期格式() : Set_賬款清單()

+ 1020
- 0
MaoOrange-Hongji/財務系統管理/支票收支單申請.Designer.vb
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 129
- 0
MaoOrange-Hongji/財務系統管理/支票收支單申請.resx ファイルの表示

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

+ 345
- 0
MaoOrange-Hongji/財務系統管理/支票收支單申請.vb ファイルの表示

@@ -0,0 +1,345 @@
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 = 145 : DataGridView2.Columns(1).FillWeight = 100 : DataGridView2.Columns(2).Visible = False : DataGridView2.Columns(3).Visible = False
14
+        DataGridView2.Columns(4).FillWeight = 75
15
+    End Sub
16
+    Private Sub Set_費用清單()
17
+        DataGridView1.DataSource = Nothing : ds.Clear()
18
+        DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
19
+        DataGridView1.ColumnHeadersHeight = 40
20
+        DataGridView1.AllowUserToAddRows = False
21
+        DataGridView1.RowTemplate.Height = 35
22
+        SQL_支票收支單申請費用清單()
23
+        da.Fill(ds) : DataGridView1.DataSource = ds.Tables(0) : conn.Close()
24
+
25
+        DataGridView1.Columns(0).Visible = False : DataGridView1.Columns(1).FillWeight = 80 : DataGridView1.Columns(2).FillWeight = 140 : DataGridView1.Columns(3).FillWeight = 300
26
+        DataGridView1.Columns(4).FillWeight = 120 : DataGridView1.Columns(5).FillWeight = 120 : DataGridView1.Columns(6).Visible = False : DataGridView1.Columns(7).Visible = False
27
+        DataGridView1.Columns(8).FillWeight = 200 : DataGridView1.Columns(9).Visible = False : DataGridView1.Columns(10).FillWeight = 110 : DataGridView1.Columns(11).Visible = False
28
+        DataGridView1.Columns(12).FillWeight = 200 : DataGridView1.Columns(13).FillWeight = 150 : DataGridView1.Columns(14).FillWeight = 150 : DataGridView1.Columns(15).FillWeight = 150
29
+        DataGridView1.Columns(16).Visible = False : DataGridView1.Columns(17).Visible = False : DataGridView1.Columns(18).Visible = False : DataGridView1.Columns(19).Visible = False
30
+        DataGridView1.Columns(20).FillWeight = 100 : DataGridView1.Columns(21).Visible = False
31
+
32
+        DataGridView1.Columns(1).ReadOnly = True : DataGridView1.Columns(2).ReadOnly = True : DataGridView1.Columns(10).ReadOnly = True : DataGridView1.Columns(4).ReadOnly = True
33
+        DataGridView1.Columns(5).ReadOnly = True : DataGridView1.Columns(20).ReadOnly = True
34
+
35
+        DataGridView1.Columns(4).DefaultCellStyle.Format = "#,##0" : DataGridView1.Columns(5).DefaultCellStyle.Format = "#,##0" : DataGridView1.Columns(6).DefaultCellStyle.Format = "#,##0"
36
+        DataGridView1.Columns(7).DefaultCellStyle.Format = "#,##0"
37
+        DataGridView1.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(1).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
38
+        DataGridView1.Columns(2).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(2).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
39
+        DataGridView1.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(4).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
40
+        DataGridView1.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(5).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
41
+        DataGridView1.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
42
+        DataGridView1.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
43
+        DataGridView1.Columns(10).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(10).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
44
+        DataGridView1.Columns(12).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(12).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
45
+        DataGridView1.Columns(13).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(13).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
46
+        DataGridView1.Columns(14).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(14).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
47
+        DataGridView1.Columns(15).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(15).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
48
+        DataGridView1.Columns(20).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(20).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
49
+
50
+        DataGridView1.EditMode = DataGridViewEditMode.EditOnEnter
51
+
52
+        TextBox5.Text = "0" : TextBox2.Text = "0" : TextBox6.Text = "0" : TextBox7.Text = "0" : TextBox8.Text = "0"
53
+        For i As Integer = 0 To DataGridView1.Rows.Count - 1
54
+            TextBox5.Text = Val(TextBox5.Text) + DataGridView1.Rows(i).Cells("現金").Value : TextBox2.Text = Val(TextBox2.Text) + DataGridView1.Rows(i).Cells("支出").Value
55
+            TextBox7.Text = Val(TextBox7.Text) + DataGridView1.Rows(i).Cells("開票").Value : TextBox8.Text = Val(TextBox8.Text) + DataGridView1.Rows(i).Cells("收票").Value
56
+            If DataGridView1.Rows(i).Cells("開票").Value <> 0 And DataGridView1.Rows(i).Cells("收票").Value = 0 Then
57
+                DataGridView1.Rows(i).Cells("狀態").Value = "開票"
58
+            ElseIf DataGridView1.Rows(i).Cells("開票").Value = 0 And DataGridView1.Rows(i).Cells("收票").Value <> 0 Then
59
+                DataGridView1.Rows(i).Cells("狀態").Value = "收票"
60
+            End If
61
+        Next i
62
+        TextBox6.Text = Val(TextBox8.Text) - Val(TextBox7.Text)
63
+        If Val(TextBox6.Text) > 0 Then : TextBox6.ForeColor = Color.Blue : Else : TextBox6.ForeColor = Color.Red : End If
64
+        TextBox5.Text = Format(Val(TextBox5.Text), "#,##0") : TextBox2.Text = Format(Val(TextBox2.Text), "#,##0") : TextBox6.Text = Format(Val(TextBox6.Text), "#,##0")
65
+        TextBox7.Text = Format(Val(TextBox7.Text), "#,##0") : TextBox8.Text = Format(Val(TextBox8.Text), "#,##0")
66
+    End Sub
67
+    Private Sub ComboBox1下拉表單資料載入()
68
+        PA = ComboBox4.Text : SQL_會計科目_第三階_只含流動票務()
69
+        ComboBox1.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox1.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
70
+        If ComboBox1.Items.Count <> 0 Then : ComboBox1.SelectedIndex = 0 : End If
71
+    End Sub
72
+    Private Sub ComboBox2下拉表單資料載入()
73
+        SQL_會計科目_第一階_只含流動票務()
74
+        ComboBox5.Items.Clear() : ComboBox2.Items.Clear() : While (dr.Read()) : ComboBox5.Items.Add(dr("第一階")) : ComboBox2.Items.Add(dr("編號")) : End While : conn.Close()
75
+    End Sub
76
+    Private Sub ComboBox3下拉表單資料載入()
77
+        PA = ComboBox2.Text : SQL_會計科目_第二階_只含流動票務()
78
+        ComboBox3.Items.Clear() : ComboBox4.Items.Clear() : While (dr.Read()) : ComboBox3.Items.Add(dr("第二階")) : ComboBox4.Items.Add(dr("編號")) : End While : conn.Close() : PA = ""
79
+    End Sub
80
+    Private Sub ComboBox7下拉表單資料載入_收票()
81
+        SQL_支票收支單申請_兌現科目_下拉清單一()
82
+        ComboBox8.Items.Clear() : ComboBox10.Items.Clear() : While (dr.Read()) : ComboBox8.Items.Add(dr("會計科目")) : ComboBox10.Items.Add(dr("編號")) : End While : conn.Close()
83
+    End Sub
84
+    Private Sub ComboBox7下拉表單資料載入_開票()
85
+        SQL_支票收支單申請_兌現科目_下拉清單二()
86
+        ComboBox8.Items.Clear() : ComboBox10.Items.Clear() : While (dr.Read()) : ComboBox8.Items.Add(dr("會計科目")) : ComboBox10.Items.Add(dr("編號")) : End While : conn.Close()
87
+    End Sub
88
+    Private Sub ComboBox9下拉表單資料載入_收票()
89
+        SQL_支票收支單申請_付款銀行_下拉清單()
90
+        ComboBox9.Items.Clear() : While (dr.Read()) : ComboBox9.Items.Add(dr("付款銀行")) : End While : conn.Close()
91
+    End Sub
92
+    Private Sub ComboBox9下拉表單資料載入_開票()
93
+        SQL_支票收支單申請_兌現科目_下拉清單一()
94
+        ComboBox9.Items.Clear() : While (dr.Read()) : ComboBox9.Items.Add(dr("會計科目")) : End While : conn.Close()
95
+    End Sub
96
+    Private Sub 支票收支單申請_Load(sender As Object, e As EventArgs) Handles MyBase.Load
97
+        Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
98
+        DateTimePicker2.Visible = False : 複製單據開單ToolStripMenuItem.Enabled = False : ComboBox6.Visible = False : ComboBox10.Visible = False
99
+        TextBox2.Visible = False : TextBox5.Visible = False : Label8.Visible = False : Label5.Visible = False : TextBox10.Enabled = False : TextBox11.Enabled = False
100
+        DataGridView2.Visible = True : Set_清單1() : ComboBox2下拉表單資料載入()
101
+    End Sub
102
+    Private Sub ComboBox5_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox5.TextChanged
103
+        ComboBox2.SelectedIndex = ComboBox5.SelectedIndex : TextBox9.Text = "" : ComboBox3下拉表單資料載入() : ComboBox1下拉表單資料載入()
104
+    End Sub
105
+    Private Sub ComboBox2_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox2.TextChanged
106
+        ComboBox5.SelectedIndex = ComboBox2.SelectedIndex : ComboBox3下拉表單資料載入() : ComboBox1下拉表單資料載入()
107
+    End Sub
108
+    Private Sub ComboBox3_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox3.TextChanged
109
+        ComboBox4.SelectedIndex = ComboBox3.SelectedIndex : ComboBox1下拉表單資料載入()
110
+    End Sub
111
+    Private Sub ComboBox4_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox4.TextChanged
112
+        ComboBox3.SelectedIndex = ComboBox4.SelectedIndex : ComboBox1下拉表單資料載入()
113
+    End Sub
114
+    Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged
115
+        ComboBox6.SelectedIndex = ComboBox1.SelectedIndex
116
+    End Sub
117
+    Private Sub ComboBox6_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox6.SelectedIndexChanged
118
+        ComboBox1.SelectedIndex = ComboBox6.SelectedIndex
119
+    End Sub
120
+    Private Sub ComboBox8_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox8.SelectedIndexChanged
121
+        ComboBox10.SelectedIndex = ComboBox8.SelectedIndex
122
+    End Sub
123
+    Private Sub ComboBox10_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox10.SelectedIndexChanged
124
+        ComboBox8.SelectedIndex = ComboBox10.SelectedIndex
125
+    End Sub
126
+    Private Sub ComboBox7_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox7.SelectedIndexChanged
127
+        If ComboBox7.Text = "收票" Then
128
+            ComboBox7下拉表單資料載入_收票() : ComboBox5.SelectedIndex = 0 : ComboBox3.SelectedIndex = 1 : ComboBox1.SelectedIndex = 0 : ComboBox9.Text = "" : ComboBox9下拉表單資料載入_收票()
129
+        Else
130
+            ComboBox7下拉表單資料載入_開票() : ComboBox5.SelectedIndex = 1 : ComboBox3.SelectedIndex = 1 : ComboBox1.SelectedIndex = 0 : ComboBox9.Text = "" : ComboBox9下拉表單資料載入_開票()
131
+        End If
132
+    End Sub
133
+    Private Sub TextBox9_TextChanged(sender As Object, e As EventArgs) Handles TextBox9.TextChanged
134
+        PA = TextBox9.Text : SQL_會計科目_關鍵字_只含流動票務()
135
+        ComboBox1.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox1.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
136
+        If ComboBox1.Items.Count <> 0 Then : ComboBox1.SelectedIndex = 0 : End If : PA = ""
137
+    End Sub
138
+    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
139
+        If Label62.Visible = True Then : Label62.Visible = False : Else : Label62.Visible = True : End If
140
+    End Sub
141
+    Private Sub DataGridView1_CellContentCl(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit
142
+        TextBox5.Text = "0" : TextBox2.Text = "0" : TextBox6.Text = "0" : TextBox7.Text = "0" : TextBox8.Text = "0"
143
+        For i As Integer = 0 To DataGridView1.Rows.Count - 1
144
+            TextBox5.Text = Val(TextBox5.Text) + DataGridView1.Rows(i).Cells("現金").Value : TextBox2.Text = Val(TextBox2.Text) + DataGridView1.Rows(i).Cells("支出").Value
145
+            TextBox7.Text = Val(TextBox7.Text) + DataGridView1.Rows(i).Cells("開票").Value : TextBox8.Text = Val(TextBox8.Text) + DataGridView1.Rows(i).Cells("收票").Value
146
+            If DataGridView1.Rows(i).Cells("開票").Value <> 0 And DataGridView1.Rows(i).Cells("收票").Value = 0 Then
147
+                DataGridView1.Rows(i).Cells("狀態").Value = "開票"
148
+            ElseIf DataGridView1.Rows(i).Cells("開票").Value = 0 And DataGridView1.Rows(i).Cells("收票").Value <> 0 Then
149
+                DataGridView1.Rows(i).Cells("狀態").Value = "收票"
150
+            End If
151
+        Next i
152
+        TextBox6.Text = Val(TextBox8.Text) - Val(TextBox7.Text)
153
+        If Val(TextBox6.Text) > 0 Then : TextBox6.ForeColor = Color.Blue : Else : TextBox6.ForeColor = Color.Red : End If
154
+        TextBox5.Text = Format(Val(TextBox5.Text), "#,##0") : TextBox2.Text = Format(Val(TextBox2.Text), "#,##0") : TextBox6.Text = Format(Val(TextBox6.Text), "#,##0")
155
+        TextBox7.Text = Format(Val(TextBox7.Text), "#,##0") : TextBox8.Text = Format(Val(TextBox8.Text), "#,##0")
156
+
157
+        Dim EU1 As String : Dim EU2 As String : Dim EU3 As String
158
+        EU1 = DataGridView1("到期日", e.RowIndex).Value.ToString : EU2 = DataGridView1("預定兌現日", e.RowIndex).Value.ToString : EU3 = DataGridView1("開收票日", e.RowIndex).Value.ToString
159
+        If EU1 = "" Then : Else : DateTimePicker2.Text = EU1 : DataGridView1.Rows(e.RowIndex).Cells("到期日").Value = Format(DateTimePicker2.Value, "yyyy/MM/dd") : End If
160
+        If EU2 = "" Then : Else : DateTimePicker2.Text = EU2 : DataGridView1.Rows(e.RowIndex).Cells("預定兌現日").Value = Format(DateTimePicker2.Value, "yyyy/MM/dd") : End If
161
+        If EU3 = "" Then : Else : DateTimePicker2.Text = EU3 : DataGridView1.Rows(e.RowIndex).Cells("開收票日").Value = Format(DateTimePicker2.Value, "yyyy/MM/dd") : End If
162
+    End Sub
163
+    Private Sub DataGridView2_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView2.CellClick
164
+        If e.RowIndex = -1 Then : Else
165
+            TextBox1.Text = DataGridView2(0, e.RowIndex).Value.ToString : DateTimePicker1.Value = DataGridView2(1, e.RowIndex).Value.ToString : Set_費用清單()
166
+            TextBox3.Text = DataGridView2(3, e.RowIndex).Value.ToString
167
+            '-------------------------------------------------------------------------------------------------------------------------------------------------------------
168
+            TextBox15.Text = DataGridView1("發票人帳號", 0).Value.ToString : TextBox14.Text = DataGridView1("用途", 0).Value.ToString
169
+            TextBox4.Text = DataGridView1("項次", 0).Value.ToString : TextBox9.Text = DataGridView1("會計科目", 0).Value.ToString
170
+            ComboBox7.Text = DataGridView1("狀態", 0).Value.ToString : ComboBox1.Text = DataGridView1("會計科目", 0).Value.ToString
171
+            ComboBox10.Text = DataGridView1("兌現科目", 0).Value.ToString : ComboBox9.Text = DataGridView1("付款銀行", 0).Value.ToString
172
+            TextBox10.Text = DataGridView1("倉儲單號", 0).Value.ToString : TextBox12.Text = DataGridView1("支票號碼", 0).Value.ToString
173
+            TextBox13.Text = DataGridView1("開票人", 0).Value.ToString : TextBox16.Text = DataGridView1("備註", 0).Value.ToString
174
+            If DataGridView1("到期日", 0).Value.ToString = "" Then : Else : DateTimePicker3.Value = DataGridView1("到期日", 0).Value.ToString : End If
175
+            If DataGridView1("預定兌現日", 0).Value.ToString = "" Then : Else : DateTimePicker4.Value = DataGridView1("預定兌現日", 0).Value.ToString : End If
176
+            If DataGridView1("開收票日", 0).Value.ToString = "" Then : Else : DateTimePicker5.Value = DataGridView1("開收票日", 0).Value.ToString : End If
177
+            If ComboBox7.Text = "開票" Then : NumericUpDown1.Value = DataGridView1("開票", 0).Value : Else : NumericUpDown1.Value = DataGridView1("收票", 0).Value : End If
178
+            客戶供應商資料()
179
+            '-------------------------------------------------------------------------------------------------------------------------------------------------------------
180
+            For i As Integer = 0 To DataGridView1.Rows.Count - 1
181
+                If DataGridView1.Rows(i).Cells("開票").Value <> 0 And DataGridView1.Rows(i).Cells("收票").Value = 0 Then
182
+                    DataGridView1.Rows(i).Cells("狀態").Value = "開票"
183
+                ElseIf DataGridView1.Rows(i).Cells("開票").Value = 0 And DataGridView1.Rows(i).Cells("收票").Value <> 0 Then
184
+                    DataGridView1.Rows(i).Cells("狀態").Value = "收票"
185
+                End If
186
+            Next i
187
+        End If
188
+    End Sub
189
+    Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick
190
+        If e.RowIndex = -1 Then : Else
191
+            TextBox15.Text = DataGridView1("發票人帳號", e.RowIndex).Value.ToString : TextBox14.Text = DataGridView1("用途", e.RowIndex).Value.ToString
192
+            TextBox4.Text = DataGridView1("項次", e.RowIndex).Value.ToString : TextBox9.Text = DataGridView1("會計科目", e.RowIndex).Value.ToString
193
+            ComboBox7.Text = DataGridView1("狀態", e.RowIndex).Value.ToString : ComboBox1.Text = DataGridView1("會計科目", e.RowIndex).Value.ToString
194
+            ComboBox10.Text = DataGridView1("兌現科目", e.RowIndex).Value.ToString : ComboBox9.Text = DataGridView1("付款銀行", e.RowIndex).Value.ToString
195
+            TextBox10.Text = DataGridView1("倉儲單號", e.RowIndex).Value.ToString : TextBox12.Text = DataGridView1("支票號碼", e.RowIndex).Value.ToString
196
+            TextBox13.Text = DataGridView1("開票人", e.RowIndex).Value.ToString : TextBox16.Text = DataGridView1("備註", e.RowIndex).Value.ToString
197
+            If DataGridView1("到期日", e.RowIndex).Value.ToString = "" Then : Else : DateTimePicker3.Value = DataGridView1("到期日", e.RowIndex).Value.ToString : End If
198
+            If DataGridView1("預定兌現日", e.RowIndex).Value.ToString = "" Then : Else : DateTimePicker4.Value = DataGridView1("預定兌現日", e.RowIndex).Value.ToString : End If
199
+            If DataGridView1("開收票日", e.RowIndex).Value.ToString = "" Then : Else : DateTimePicker5.Value = DataGridView1("開收票日", e.RowIndex).Value.ToString : End If
200
+
201
+            If ComboBox7.Text = "開票" Then
202
+                NumericUpDown1.Value = DataGridView1("開票", e.RowIndex).Value
203
+            Else
204
+                NumericUpDown1.Value = DataGridView1("收票", e.RowIndex).Value
205
+            End If
206
+            客戶供應商資料()
207
+        End If
208
+    End Sub
209
+    Private Sub 客戶供應商資料()
210
+        PA = TextBox10.Text : SQL_支票收支單客戶供應商查詢()
211
+        If (dr.Read()) Then
212
+            If ComboBox7.Text = "開票" Then
213
+                TextBox11.Text = dr("供應商") : conn.Close()
214
+            Else
215
+                TextBox11.Text = dr("客戶編號")
216
+                If TextBox11.Text = "CI00000000" Then
217
+                    conn.Close()
218
+                    SQL_支票收支單申請_客戶資料_零售()
219
+                    If (dr.Read()) Then
220
+                        TextBox11.Text = dr("客戶名稱") : conn.Close()
221
+                    End If
222
+                Else
223
+                    TextBox11.Text = dr("客戶") : conn.Close()
224
+                End If
225
+            End If
226
+        Else
227
+            TextBox11.Text = ""
228
+        End If
229
+    End Sub
230
+    Private Sub Set_切換格式()
231
+        DataGridView1.DataSource = Nothing : ds.Clear() : TextBox1.Text = "" : TextBox3.Text = "" : TextBox4.Text = "" : TextBox5.Text = "" : TextBox2.Text = "" : TextBox6.Text = ""
232
+        TextBox7.Text = "" : TextBox8.Text = "" : ComboBox1下拉表單資料載入() : Set_清單1()
233
+    End Sub
234
+    Private Sub 存檔()
235
+        PA4 = TextBox1.Text
236
+        For i As Integer = 0 To DataGridView1.Rows.Count - 1
237
+            資料數 = DataGridView1.Rows.Count : MyModule1.進度條()
238
+            PA1 = DataGridView1.Rows(i).Cells("用途").Value : NU1 = DataGridView1.Rows(i).Cells("支出").Value : PA2 = DataGridView1.Rows(i).Cells("備註").Value
239
+            PA3 = DataGridView1.Rows(i).Cells("科目編號").Value : NU2 = DataGridView1.Rows(i).Cells("現金").Value : NU3 = DataGridView1.Rows(i).Cells("開票").Value
240
+            NU4 = DataGridView1.Rows(i).Cells("收票").Value : PA5 = DataGridView1.Rows(i).Cells("項次").Value : PA6 = DataGridView1.Rows(i).Cells("狀態").Value : PA7 = gUserName
241
+            PA8 = DataGridView1.Rows(i).Cells("發票人帳號").Value.ToString : PA9 = DataGridView1.Rows(i).Cells("兌現科目").Value.ToString : PA10 = DataGridView1.Rows(i).Cells("付款銀行").Value.ToString
242
+            PA11 = DataGridView1.Rows(i).Cells("倉儲單號").Value.ToString : PA12 = DataGridView1.Rows(i).Cells("支票號碼").Value.ToString : PA13 = DataGridView1.Rows(i).Cells("開票人").Value.ToString
243
+            PA14 = DataGridView1.Rows(i).Cells("到期日").Value.ToString : PA15 = DataGridView1.Rows(i).Cells("預定兌現日").Value.ToString : PA16 = DataGridView1.Rows(i).Cells("開收票日").Value.ToString
244
+            SQL_支票收支單申請修改() : conn.Close()
245
+        Next : MAOJI_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
246
+    End Sub
247
+    Private Sub 單筆存檔()
248
+        DTP = Format(DateTimePicker3.Value, "yyyy/MM/dd") : DTP1 = Format(DateTimePicker4.Value, "yyyy/MM/dd") : DTP2 = Format(DateTimePicker5.Value, "yyyy/MM/dd")
249
+        If ComboBox7.Text = "開票" Then : NU3 = NumericUpDown1.Value : NU4 = 0 : Else : NU4 = NumericUpDown1.Value : NU3 = 0 : End If
250
+        PA4 = TextBox1.Text : PA1 = TextBox14.Text : NU1 = 0 : PA2 = TextBox16.Text : PA3 = ComboBox6.Text : NU2 = 0 : PA5 = TextBox4.Text : PA6 = ComboBox7.Text : PA7 = gUserName
251
+        PA8 = TextBox15.Text : PA9 = ComboBox10.Text : PA10 = ComboBox9.Text : PA11 = TextBox10.Text : PA12 = TextBox12.Text : PA13 = TextBox13.Text : PA14 = DTP : PA15 = DTP1 : PA16 = DTP2
252
+        SQL_支票收支單申請修改() : conn.Close()
253
+    End Sub
254
+    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
255
+        Timer1.Enabled = False : Label62.Visible = False
256
+        開立支票收支群組單號ToolStripMenuItem.Enabled = True : DataGridView2.Enabled = True
257
+        單筆存檔() : Set_費用清單() : MsgBox("存檔完成。")
258
+    End Sub
259
+    Private Sub Set_日期格式轉換()
260
+        If CheckBox1.Checked = False Then : DTP = Format(Today(), "yyyy/MM/dd") : DTP1 = Format(Today(), "yyyyMMdd")
261
+        Else : DTP1 = Format(DateTimePicker1.Value, "yyyyMMdd") : DTP = Format(DateTimePicker1.Value, "yyyy/MM/dd") : End If
262
+    End Sub
263
+    Private Sub 開立零用金支付單()
264
+        Dim NUM1 As Integer : Timer1.Enabled = True
265
+        Set_日期格式轉換()
266
+        For i As Integer = 1 To 999
267
+            NUM1 = 0 + i
268
+            If NUM1 < 10 Then : TextBox1.Text = "OE-" & DTP1 & "-00" & NUM1
269
+            ElseIf NUM1 > 9 And NUM1 < 100 Then : TextBox1.Text = "OE-" & DTP1 & "-0" & NUM1
270
+            ElseIf NUM1 > 99 Then : TextBox1.Text = "OE-" & DTP1 & "-" & NUM1 : End If : PA = TextBox1.Text
271
+            SQL_營運成本收支單申請_支付單號流水號()
272
+            If dr.Read() Then : Else : i = 999 : conn.Close() : End If : conn.Close()
273
+        Next
274
+        SQL_支票收支單申請_營運成本控制表新增() : TextBox3.Text = gUserName
275
+    End Sub
276
+    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
277
+        Set_日期格式轉換() : 開立零用金支付單() : 開立支票收支群組單號ToolStripMenuItem.Enabled = False : DataGridView2.Enabled = False : 票據資料存檔ToolStripMenuItem.Enabled = True
278
+        複製單據開單ToolStripMenuItem.Enabled = False : 開立支票收支群組單號ToolStripMenuItem.Enabled = True : Button2.Enabled = True : 新增一筆空白支票ToolStripMenuItem.Enabled = True
279
+        刪除一筆支票資料資料ToolStripMenuItem.Enabled = True : 刪除選中的支票收支單ToolStripMenuItem.Enabled = True
280
+        Set_清單1()
281
+        For i As Integer = 0 To DataGridView1.Rows.Count - 1
282
+            PA1 = TextBox1.Text : PA2 = DataGridView1.Rows(i).Cells("項次").Value : PA3 = DataGridView1.Rows(i).Cells("科目編號").Value : PA4 = DataGridView1.Rows(i).Cells("用途").Value
283
+            NU1 = DataGridView1.Rows(i).Cells("支出").Value : PA5 = DataGridView1.Rows(i).Cells("備註").Value : NU2 = DataGridView1.Rows(i).Cells("現金").Value
284
+            NU3 = DataGridView1.Rows(i).Cells("開票").Value : NU4 = DataGridView1.Rows(i).Cells("收票").Value : PA6 = DataGridView1.Rows(i).Cells("狀態").Value : PA7 = gUserName
285
+            PA8 = DataGridView1.Rows(i).Cells("發票人帳號").Value : PA9 = DataGridView1.Rows(i).Cells("兌現科目").Value : PA10 = DataGridView1.Rows(i).Cells("付款銀行").Value
286
+            PA11 = DataGridView1.Rows(i).Cells("倉儲單號").Value : PA12 = DataGridView1.Rows(i).Cells("支票號碼").Value : PA13 = DataGridView1.Rows(i).Cells("開票人").Value
287
+            PA14 = DataGridView1.Rows(i).Cells("到期日").Value : PA15 = DataGridView1.Rows(i).Cells("預定兌現日").Value : PA16 = DataGridView1.Rows(i).Cells("開收票日").Value
288
+            SQL_支票收支單申請複製單據新增()
289
+        Next : Set_費用清單() : MsgBox("複製單據開立完成。")
290
+    End Sub
291
+    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
292
+        Timer1.Enabled = False : Label62.Visible = False
293
+        開立支票收支群組單號ToolStripMenuItem.Enabled = True : DataGridView2.Enabled = True
294
+        存檔() : Set_清單1() : MsgBox("申請完成,請通知主管審核。")
295
+    End Sub
296
+    '----------------------滑鼠右鍵--------------------------------------------------------------------------------------------------------------------------------------------------------------------
297
+    Private Sub 重新讀取ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 重新讀取ToolStripMenuItem.Click
298
+        Set_清單1() : Set_切換格式()
299
+    End Sub
300
+    Private Sub 開立零用金支付單ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 開立支票收支群組單號ToolStripMenuItem.Click
301
+        開立零用金支付單()
302
+        開立支票收支群組單號ToolStripMenuItem.Enabled = False : DataGridView2.Enabled = False
303
+        DataGridView1.DataSource = Nothing : ds.Clear() : conn.Close() : Set_清單1()
304
+    End Sub
305
+    Private Sub 刪除選中的零用金支付單ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 刪除選中的支票收支單ToolStripMenuItem.Click
306
+        Dim aa As MsgBoxResult = MsgBox("確定要刪除該筆資料?", MsgBoxStyle.OkCancel)
307
+        If aa = MsgBoxResult.Ok Then
308
+            PA1 = TextBox1.Text : SQL_營運成本控制表刪除() : conn.Close() : SQL_營運成本明細表刪除() : conn.Close()
309
+            TextBox1.Text = "" : TextBox3.Text = "" : TextBox4.Text = "" : DataGridView1.DataSource = Nothing : ds.Clear() : Set_清單1()
310
+        End If
311
+    End Sub
312
+    Private Sub 刪除支付單中選中的資料ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 刪除一筆支票資料資料ToolStripMenuItem.Click
313
+        If TextBox4.Text = "" Then : MsgBox("未選擇需要刪除的資料。")
314
+        Else
315
+            存檔() : PA1 = TextBox1.Text : PA2 = TextBox4.Text : SQL_營運成本明細表刪除單筆() : conn.Close() : Set_費用清單() : Dim NUM1 As Integer = 0
316
+            For i As Integer = 0 To DataGridView1.Rows.Count - 1
317
+                NUM1 += 1 : If NUM1 < 10 Then : 新項次 = "0" & NUM1 : ElseIf NUM1 > 9 And NUM1 < 100 Then : 新項次 = NUM1 : End If
318
+                PA1 = 新項次 : PA2 = TextBox1.Text : PA3 = DataGridView1.Rows(i).Cells("項次").Value
319
+                SQL_營運成本明細表項次修改() : conn.Close()
320
+            Next : Set_費用清單()
321
+        End If
322
+    End Sub
323
+    Private Sub 新增一筆資料ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 新增一筆空白支票ToolStripMenuItem.Click
324
+        If ComboBox6.Text = "" Then : MsgBox("沒有選擇會計科目。")
325
+        Else
326
+            If ComboBox7.Text = "" Then : MsgBox("請確定狀態要收票還是開票。")
327
+            Else
328
+                If TextBox1.Text = "" Then : 開立零用金支付單() : End If
329
+                Set_日期格式轉換() : 存檔() : PA = TextBox1.Text
330
+                SQL_營運成本明細表項次新增查詢()
331
+                If dr.Read() Then : 新項次 = dr("項次") : Else : 新項次 = "00" : End If : conn.Close() : NUM1 = Double.Parse(新項次) + 1
332
+                If NUM1 < 10 Then : 新項次 = "0" & NUM1
333
+                ElseIf NUM1 > 9 And NUM1 < 100 Then : 新項次 = NUM1 : End If
334
+                PA1 = TextBox1.Text : PA2 = 新項次 : PA3 = ComboBox6.Text : PA4 = "" : NU1 = 0 : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0 : PA6 = ComboBox7.Text : PA7 = gUserName
335
+                SQL_營運成本明細表新增() : Set_費用清單()
336
+            End If
337
+        End If
338
+    End Sub
339
+    Private Sub 申請完成ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 票據資料存檔ToolStripMenuItem.Click
340
+        Me.Button2.PerformClick()
341
+    End Sub
342
+    Private Sub 複製單據開單ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 複製單據開單ToolStripMenuItem.Click
343
+        Me.Button1.PerformClick()
344
+    End Sub
345
+End Class

+ 12
- 0
MaoOrange-Hongji/財務系統管理/業務佣金計算.Designer.vb ファイルの表示

@@ -67,6 +67,7 @@ Partial Class 業務佣金計算
67 67
         Me.ToolStripSeparator1 = New System.Windows.Forms.ToolStripSeparator()
68 68
         Me.列印成EXCELToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
69 69
         Me.開立收支單ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
70
+        Me.DateTimePicker4 = New System.Windows.Forms.DateTimePicker()
70 71
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
71 72
         Me.ContextMenuStrip1.SuspendLayout()
72 73
         Me.SuspendLayout()
@@ -466,12 +467,22 @@ Partial Class 業務佣金計算
466 467
         Me.開立收支單ToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
467 468
         Me.開立收支單ToolStripMenuItem.Text = "開立收支單"
468 469
         '
470
+        'DateTimePicker4
471
+        '
472
+        Me.DateTimePicker4.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
473
+        Me.DateTimePicker4.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
474
+        Me.DateTimePicker4.Location = New System.Drawing.Point(665, 135)
475
+        Me.DateTimePicker4.Name = "DateTimePicker4"
476
+        Me.DateTimePicker4.Size = New System.Drawing.Size(175, 23)
477
+        Me.DateTimePicker4.TabIndex = 1167
478
+        '
469 479
         '業務佣金計算
470 480
         '
471 481
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
472 482
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
473 483
         Me.ClientSize = New System.Drawing.Size(1249, 611)
474 484
         Me.ContextMenuStrip = Me.ContextMenuStrip1
485
+        Me.Controls.Add(Me.DateTimePicker4)
475 486
         Me.Controls.Add(Me.Button6)
476 487
         Me.Controls.Add(Me.TextBox2)
477 488
         Me.Controls.Add(Me.CheckBox1)
@@ -557,4 +568,5 @@ Partial Class 業務佣金計算
557 568
     Friend WithEvents ToolStripSeparator1 As ToolStripSeparator
558 569
     Friend WithEvents 列印成EXCELToolStripMenuItem As ToolStripMenuItem
559 570
     Friend WithEvents 開立收支單ToolStripMenuItem As ToolStripMenuItem
571
+    Friend WithEvents DateTimePicker4 As DateTimePicker
560 572
 End Class

+ 23
- 5
MaoOrange-Hongji/財務系統管理/業務佣金計算.vb ファイルの表示

@@ -70,13 +70,13 @@ Public Class 業務佣金計算
70 70
             DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1)
71 71
             DTP = Strings.Left(Strings.Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker1.Value = DTP
72 72
             '-------------日期二----------------------------------------------------------------------------------------
73
-            Dim iDays As Integer = DateTime.DaysInMonth(Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 4), Strings.Mid(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 6, 2))
74
-            DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & iDays : DateTimePicker2.Value = DTP
73
+            DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker2.Value = DTP
74
+            DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddDays(-1)
75 75
         End If
76 76
     End Sub
77 77
     Private Sub 業務佣金計算_Load(sender As Object, e As EventArgs) Handles MyBase.Load
78 78
         Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
79
-        ComboBox6.Visible = False : TextBox2.Visible = False
79
+        ComboBox6.Visible = False : TextBox2.Visible = False : DateTimePicker4.Visible = False
80 80
         ComboBox1下拉表單資料載入() : ComboBox3下拉表單資料載入() : ComboBox6下拉表單資料載入() : ComboBox2下拉表單資料載入() : ComboBox2.SelectedIndex = 0 : 日期格式() : Set_業務佣金清單()
81 81
     End Sub
82 82
     Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView1.CellClick
@@ -120,10 +120,28 @@ Public Class 業務佣金計算
120 120
         If ComboBox7.Items.Count <> 0 Then : ComboBox7.SelectedIndex = 0 : End If : PA = ""
121 121
     End Sub
122 122
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
123
-        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(-1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(-1) : Set_業務佣金清單()
123
+        If 會計月.Checked = True Then
124
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
125
+            DateTimePicker1.Value = DateTimePicker4.Value
126
+            DateTimePicker2.Value = DateTimePicker4.Value
127
+        Else
128
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
129
+            DateTimePicker1.Value = DateTimePicker4.Value.AddMonths(-1)
130
+            DateTimePicker2.Value = DateTimePicker4.Value
131
+        End If
132
+        日期格式() : Set_業務佣金清單()
124 133
     End Sub
125 134
     Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
126
-        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1) : Set_業務佣金清單()
135
+        If 會計月.Checked = True Then
136
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
137
+            DateTimePicker1.Value = DateTimePicker4.Value
138
+            DateTimePicker2.Value = DateTimePicker4.Value
139
+        Else
140
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
141
+            DateTimePicker1.Value = DateTimePicker4.Value.AddMonths(-1)
142
+            DateTimePicker2.Value = DateTimePicker4.Value
143
+        End If
144
+        日期格式() : Set_業務佣金清單()
127 145
     End Sub
128 146
     Private Sub 會計月_CheckedChanged(sender As Object, e As EventArgs) Handles 會計月.Click
129 147
         會計月.Checked = True : 一般月.Checked = False : 日期格式() : Set_業務佣金清單()

+ 631
- 0
MaoOrange-Hongji/財務系統管理/現金收支單申請.Designer.vb ファイルの表示

@@ -0,0 +1,631 @@
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 DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle6 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(569, 4)
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(537, 8)
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(688, 54)
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
+        DataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
153
+        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4
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
+        DataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
164
+        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle5
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(328, 33)
173
+        Me.Label3.Name = "Label3"
174
+        Me.Label3.Size = New System.Drawing.Size(74, 16)
175
+        Me.Label3.TabIndex = 837
176
+        Me.Label3.Text = "申     請     人"
177
+        '
178
+        'TextBox3
179
+        '
180
+        Me.TextBox3.Location = New System.Drawing.Point(409, 31)
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(122, 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(409, 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(80, 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(122, 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(134, 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
+        DataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
232
+        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle6
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, 78)
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(839, 7)
260
+        Me.Label2.Name = "Label2"
261
+        Me.Label2.Size = New System.Drawing.Size(92, 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(688, 7)
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(720, 4)
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(720, 31)
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(569, 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(535, 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(569, 56)
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(511, 59)
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(423, 158)
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(377, 161)
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(423, 189)
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(389, 192)
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(134, 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(423, 128)
457
+        Me.DateTimePicker2.Name = "DateTimePicker2"
458
+        Me.DateTimePicker2.Size = New System.Drawing.Size(113, 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(1037, 30)
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(937, 30)
485
+        Me.ComboBox3.Name = "ComboBox3"
486
+        Me.ComboBox3.Size = New System.Drawing.Size(96, 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(1037, 4)
494
+        Me.ComboBox2.Name = "ComboBox2"
495
+        Me.ComboBox2.Size = New System.Drawing.Size(75, 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(937, 4)
503
+        Me.ComboBox5.Name = "ComboBox5"
504
+        Me.ComboBox5.Size = New System.Drawing.Size(96, 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(838, 30)
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(93, 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(423, 220)
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(113, 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

+ 129
- 0
MaoOrange-Hongji/財務系統管理/現金收支單申請.resx ファイルの表示

@@ -0,0 +1,129 @@
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>

+ 253
- 0
MaoOrange-Hongji/財務系統管理/現金收支單申請.vb ファイルの表示

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

+ 991
- 0
MaoOrange-Hongji/財務系統管理/票務控制表.Designer.vb ファイルの表示

@@ -0,0 +1,991 @@
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
2
+Partial Class 票務控制表
3
+    Inherits System.Windows.Forms.Form
4
+
5
+    'Form 覆寫 Dispose 以清除元件清單。
6
+    <System.Diagnostics.DebuggerNonUserCode()>
7
+    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
8
+        Try
9
+            If disposing AndAlso components IsNot Nothing Then
10
+                components.Dispose()
11
+            End If
12
+        Finally
13
+            MyBase.Dispose(disposing)
14
+        End Try
15
+    End Sub
16
+
17
+    '為 Windows Form 設計工具的必要項
18
+    Private components As System.ComponentModel.IContainer
19
+
20
+    '注意: 以下為 Windows Form 設計工具所需的程序
21
+    '可以使用 Windows Form 設計工具進行修改。
22
+    '請勿使用程式碼編輯器進行修改。
23
+    <System.Diagnostics.DebuggerStepThrough()>
24
+    Private Sub InitializeComponent()
25
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(票務控制表))
28
+        Me.Button1 = New System.Windows.Forms.Button()
29
+        Me.一般月 = New System.Windows.Forms.CheckBox()
30
+        Me.會計月 = New System.Windows.Forms.CheckBox()
31
+        Me.Button2 = New System.Windows.Forms.Button()
32
+        Me.Label4 = New System.Windows.Forms.Label()
33
+        Me.DateTimePicker2 = New System.Windows.Forms.DateTimePicker()
34
+        Me.DateTimePicker1 = New System.Windows.Forms.DateTimePicker()
35
+        Me.DataGridView1 = New System.Windows.Forms.DataGridView()
36
+        Me.Label14 = New System.Windows.Forms.Label()
37
+        Me.ComboBox15 = New System.Windows.Forms.ComboBox()
38
+        Me.ComboBox1 = New System.Windows.Forms.ComboBox()
39
+        Me.Label1 = New System.Windows.Forms.Label()
40
+        Me.ComboBox2 = New System.Windows.Forms.ComboBox()
41
+        Me.Label2 = New System.Windows.Forms.Label()
42
+        Me.Button3 = New System.Windows.Forms.Button()
43
+        Me.Button4 = New System.Windows.Forms.Button()
44
+        Me.Button5 = New System.Windows.Forms.Button()
45
+        Me.Button6 = New System.Windows.Forms.Button()
46
+        Me.Label6 = New System.Windows.Forms.Label()
47
+        Me.TextBox1 = New System.Windows.Forms.TextBox()
48
+        Me.Label7 = New System.Windows.Forms.Label()
49
+        Me.TextBox8 = New System.Windows.Forms.TextBox()
50
+        Me.Label11 = New System.Windows.Forms.Label()
51
+        Me.TextBox7 = New System.Windows.Forms.TextBox()
52
+        Me.Label10 = New System.Windows.Forms.Label()
53
+        Me.TextBox6 = New System.Windows.Forms.TextBox()
54
+        Me.Label9 = New System.Windows.Forms.Label()
55
+        Me.DateTimePicker3 = New System.Windows.Forms.DateTimePicker()
56
+        Me.Label3 = New System.Windows.Forms.Label()
57
+        Me.ComboBox3 = New System.Windows.Forms.ComboBox()
58
+        Me.Button7 = New System.Windows.Forms.Button()
59
+        Me.TextBox16 = New System.Windows.Forms.TextBox()
60
+        Me.Label25 = New System.Windows.Forms.Label()
61
+        Me.TextBox15 = New System.Windows.Forms.TextBox()
62
+        Me.Label24 = New System.Windows.Forms.Label()
63
+        Me.TextBox14 = New System.Windows.Forms.TextBox()
64
+        Me.Label23 = New System.Windows.Forms.Label()
65
+        Me.TextBox13 = New System.Windows.Forms.TextBox()
66
+        Me.Label18 = New System.Windows.Forms.Label()
67
+        Me.ComboBox9 = New System.Windows.Forms.ComboBox()
68
+        Me.Label20 = New System.Windows.Forms.Label()
69
+        Me.Label17 = New System.Windows.Forms.Label()
70
+        Me.DateTimePicker5 = New System.Windows.Forms.DateTimePicker()
71
+        Me.DateTimePicker4 = New System.Windows.Forms.DateTimePicker()
72
+        Me.Label15 = New System.Windows.Forms.Label()
73
+        Me.TextBox12 = New System.Windows.Forms.TextBox()
74
+        Me.Label13 = New System.Windows.Forms.Label()
75
+        Me.TextBox11 = New System.Windows.Forms.TextBox()
76
+        Me.Label12 = New System.Windows.Forms.Label()
77
+        Me.TextBox10 = New System.Windows.Forms.TextBox()
78
+        Me.Label5 = New System.Windows.Forms.Label()
79
+        Me.TextBox9 = New System.Windows.Forms.TextBox()
80
+        Me.Label8 = New System.Windows.Forms.Label()
81
+        Me.Label16 = New System.Windows.Forms.Label()
82
+        Me.TextBox18 = New System.Windows.Forms.TextBox()
83
+        Me.Label28 = New System.Windows.Forms.Label()
84
+        Me.Label27 = New System.Windows.Forms.Label()
85
+        Me.Label29 = New System.Windows.Forms.Label()
86
+        Me.TextBox19 = New System.Windows.Forms.TextBox()
87
+        Me.TextBox20 = New System.Windows.Forms.TextBox()
88
+        Me.Label30 = New System.Windows.Forms.Label()
89
+        Me.Label31 = New System.Windows.Forms.Label()
90
+        Me.Label32 = New System.Windows.Forms.Label()
91
+        Me.Label33 = New System.Windows.Forms.Label()
92
+        Me.Label34 = New System.Windows.Forms.Label()
93
+        Me.DateTimePicker7 = New System.Windows.Forms.DateTimePicker()
94
+        Me.DateTimePicker8 = New System.Windows.Forms.DateTimePicker()
95
+        Me.Label19 = New System.Windows.Forms.Label()
96
+        Me.ComboBox8 = New System.Windows.Forms.ComboBox()
97
+        Me.ComboBox10 = New System.Windows.Forms.ComboBox()
98
+        Me.NumericUpDown1 = New System.Windows.Forms.NumericUpDown()
99
+        Me.NumericUpDown2 = New System.Windows.Forms.NumericUpDown()
100
+        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
101
+        CType(Me.NumericUpDown1, System.ComponentModel.ISupportInitialize).BeginInit()
102
+        CType(Me.NumericUpDown2, System.ComponentModel.ISupportInitialize).BeginInit()
103
+        Me.SuspendLayout()
104
+        '
105
+        'Button1
106
+        '
107
+        Me.Button1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
108
+        Me.Button1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
109
+        Me.Button1.Location = New System.Drawing.Point(192, 26)
110
+        Me.Button1.Name = "Button1"
111
+        Me.Button1.Size = New System.Drawing.Size(88, 26)
112
+        Me.Button1.TabIndex = 1120
113
+        Me.Button1.Text = "上個月"
114
+        Me.Button1.UseVisualStyleBackColor = True
115
+        '
116
+        '一般月
117
+        '
118
+        Me.一般月.AutoSize = True
119
+        Me.一般月.Location = New System.Drawing.Point(325, 5)
120
+        Me.一般月.Name = "一般月"
121
+        Me.一般月.Size = New System.Drawing.Size(63, 20)
122
+        Me.一般月.TabIndex = 1123
123
+        Me.一般月.Text = "一般月"
124
+        Me.一般月.UseVisualStyleBackColor = True
125
+        '
126
+        '會計月
127
+        '
128
+        Me.會計月.AutoSize = True
129
+        Me.會計月.Checked = True
130
+        Me.會計月.CheckState = System.Windows.Forms.CheckState.Checked
131
+        Me.會計月.Location = New System.Drawing.Point(196, 5)
132
+        Me.會計月.Name = "會計月"
133
+        Me.會計月.Size = New System.Drawing.Size(63, 20)
134
+        Me.會計月.TabIndex = 1122
135
+        Me.會計月.Text = "會計月"
136
+        Me.會計月.UseVisualStyleBackColor = True
137
+        '
138
+        'Button2
139
+        '
140
+        Me.Button2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
141
+        Me.Button2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
142
+        Me.Button2.Location = New System.Drawing.Point(304, 26)
143
+        Me.Button2.Name = "Button2"
144
+        Me.Button2.Size = New System.Drawing.Size(89, 26)
145
+        Me.Button2.TabIndex = 1121
146
+        Me.Button2.Text = "下個月"
147
+        Me.Button2.UseVisualStyleBackColor = True
148
+        '
149
+        'Label4
150
+        '
151
+        Me.Label4.AutoSize = True
152
+        Me.Label4.Location = New System.Drawing.Point(283, 58)
153
+        Me.Label4.Name = "Label4"
154
+        Me.Label4.Size = New System.Drawing.Size(20, 16)
155
+        Me.Label4.TabIndex = 1119
156
+        Me.Label4.Text = "到"
157
+        '
158
+        'DateTimePicker2
159
+        '
160
+        Me.DateTimePicker2.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
161
+        Me.DateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
162
+        Me.DateTimePicker2.Location = New System.Drawing.Point(305, 55)
163
+        Me.DateTimePicker2.Name = "DateTimePicker2"
164
+        Me.DateTimePicker2.Size = New System.Drawing.Size(89, 23)
165
+        Me.DateTimePicker2.TabIndex = 1118
166
+        '
167
+        'DateTimePicker1
168
+        '
169
+        Me.DateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
170
+        Me.DateTimePicker1.Location = New System.Drawing.Point(192, 55)
171
+        Me.DateTimePicker1.Name = "DateTimePicker1"
172
+        Me.DateTimePicker1.Size = New System.Drawing.Size(89, 23)
173
+        Me.DateTimePicker1.TabIndex = 1117
174
+        '
175
+        'DataGridView1
176
+        '
177
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
178
+        DataGridViewCellStyle3.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
179
+        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
180
+        Me.DataGridView1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
181
+            Or System.Windows.Forms.AnchorStyles.Left) _
182
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
183
+        Me.DataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
184
+        Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
185
+        Me.DataGridView1.Location = New System.Drawing.Point(5, 164)
186
+        Me.DataGridView1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
187
+        Me.DataGridView1.Name = "DataGridView1"
188
+        Me.DataGridView1.RowHeadersWidth = 5
189
+        DataGridViewCellStyle4.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
190
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
191
+        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle4
192
+        Me.DataGridView1.RowTemplate.Height = 24
193
+        Me.DataGridView1.Size = New System.Drawing.Size(1235, 438)
194
+        Me.DataGridView1.TabIndex = 1116
195
+        '
196
+        'Label14
197
+        '
198
+        Me.Label14.AutoSize = True
199
+        Me.Label14.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
200
+        Me.Label14.Location = New System.Drawing.Point(7, 58)
201
+        Me.Label14.Name = "Label14"
202
+        Me.Label14.Size = New System.Drawing.Size(56, 16)
203
+        Me.Label14.TabIndex = 1125
204
+        Me.Label14.Text = "日期選項"
205
+        '
206
+        'ComboBox15
207
+        '
208
+        Me.ComboBox15.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
209
+        Me.ComboBox15.ForeColor = System.Drawing.Color.Green
210
+        Me.ComboBox15.FormattingEnabled = True
211
+        Me.ComboBox15.Items.AddRange(New Object() {"開收票日", "到期日", "預定兌現日", "託收已付日"})
212
+        Me.ComboBox15.Location = New System.Drawing.Point(62, 55)
213
+        Me.ComboBox15.Name = "ComboBox15"
214
+        Me.ComboBox15.Size = New System.Drawing.Size(123, 24)
215
+        Me.ComboBox15.TabIndex = 1124
216
+        '
217
+        'ComboBox1
218
+        '
219
+        Me.ComboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
220
+        Me.ComboBox1.ForeColor = System.Drawing.Color.Green
221
+        Me.ComboBox1.FormattingEnabled = True
222
+        Me.ComboBox1.Items.AddRange(New Object() {"開收票日", "到期日", "預定兌現日", "託收已付日"})
223
+        Me.ComboBox1.Location = New System.Drawing.Point(62, 3)
224
+        Me.ComboBox1.Name = "ComboBox1"
225
+        Me.ComboBox1.Size = New System.Drawing.Size(87, 24)
226
+        Me.ComboBox1.TabIndex = 1126
227
+        '
228
+        'Label1
229
+        '
230
+        Me.Label1.AutoSize = True
231
+        Me.Label1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
232
+        Me.Label1.Location = New System.Drawing.Point(7, 6)
233
+        Me.Label1.Name = "Label1"
234
+        Me.Label1.Size = New System.Drawing.Size(56, 16)
235
+        Me.Label1.TabIndex = 1127
236
+        Me.Label1.Text = "區        分"
237
+        '
238
+        'ComboBox2
239
+        '
240
+        Me.ComboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
241
+        Me.ComboBox2.ForeColor = System.Drawing.Color.Green
242
+        Me.ComboBox2.FormattingEnabled = True
243
+        Me.ComboBox2.Items.AddRange(New Object() {"開票"})
244
+        Me.ComboBox2.Location = New System.Drawing.Point(62, 29)
245
+        Me.ComboBox2.Name = "ComboBox2"
246
+        Me.ComboBox2.Size = New System.Drawing.Size(87, 24)
247
+        Me.ComboBox2.TabIndex = 1128
248
+        '
249
+        'Label2
250
+        '
251
+        Me.Label2.AutoSize = True
252
+        Me.Label2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
253
+        Me.Label2.Location = New System.Drawing.Point(7, 32)
254
+        Me.Label2.Name = "Label2"
255
+        Me.Label2.Size = New System.Drawing.Size(56, 16)
256
+        Me.Label2.TabIndex = 1129
257
+        Me.Label2.Text = "票        況"
258
+        '
259
+        'Button3
260
+        '
261
+        Me.Button3.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
262
+        Me.Button3.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
263
+        Me.Button3.Location = New System.Drawing.Point(152, 3)
264
+        Me.Button3.Name = "Button3"
265
+        Me.Button3.Size = New System.Drawing.Size(33, 50)
266
+        Me.Button3.TabIndex = 1130
267
+        Me.Button3.Text = "讀取"
268
+        Me.Button3.UseVisualStyleBackColor = True
269
+        '
270
+        'Button4
271
+        '
272
+        Me.Button4.Font = New System.Drawing.Font("微軟正黑體", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
273
+        Me.Button4.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
274
+        Me.Button4.Location = New System.Drawing.Point(729, 2)
275
+        Me.Button4.Name = "Button4"
276
+        Me.Button4.Size = New System.Drawing.Size(76, 76)
277
+        Me.Button4.TabIndex = 1131
278
+        Me.Button4.Text = "託收"
279
+        Me.Button4.UseVisualStyleBackColor = True
280
+        '
281
+        'Button5
282
+        '
283
+        Me.Button5.Font = New System.Drawing.Font("微軟正黑體", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
284
+        Me.Button5.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
285
+        Me.Button5.Location = New System.Drawing.Point(811, 2)
286
+        Me.Button5.Name = "Button5"
287
+        Me.Button5.Size = New System.Drawing.Size(76, 76)
288
+        Me.Button5.TabIndex = 1132
289
+        Me.Button5.Text = "已付"
290
+        Me.Button5.UseVisualStyleBackColor = True
291
+        '
292
+        'Button6
293
+        '
294
+        Me.Button6.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
295
+        Me.Button6.ForeColor = System.Drawing.Color.Red
296
+        Me.Button6.Location = New System.Drawing.Point(893, 2)
297
+        Me.Button6.Name = "Button6"
298
+        Me.Button6.Size = New System.Drawing.Size(76, 76)
299
+        Me.Button6.TabIndex = 1133
300
+        Me.Button6.Text = "退(撤)票"
301
+        Me.Button6.UseVisualStyleBackColor = True
302
+        '
303
+        'Label6
304
+        '
305
+        Me.Label6.AutoSize = True
306
+        Me.Label6.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
307
+        Me.Label6.Location = New System.Drawing.Point(403, 58)
308
+        Me.Label6.Name = "Label6"
309
+        Me.Label6.Size = New System.Drawing.Size(20, 16)
310
+        Me.Label6.TabIndex = 1136
311
+        Me.Label6.Text = "共"
312
+        '
313
+        'TextBox1
314
+        '
315
+        Me.TextBox1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
316
+        Me.TextBox1.Location = New System.Drawing.Point(425, 55)
317
+        Me.TextBox1.Name = "TextBox1"
318
+        Me.TextBox1.Size = New System.Drawing.Size(98, 23)
319
+        Me.TextBox1.TabIndex = 1137
320
+        Me.TextBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
321
+        '
322
+        'Label7
323
+        '
324
+        Me.Label7.AutoSize = True
325
+        Me.Label7.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
326
+        Me.Label7.Location = New System.Drawing.Point(529, 59)
327
+        Me.Label7.Name = "Label7"
328
+        Me.Label7.Size = New System.Drawing.Size(20, 16)
329
+        Me.Label7.TabIndex = 1138
330
+        Me.Label7.Text = "筆"
331
+        '
332
+        'TextBox8
333
+        '
334
+        Me.TextBox8.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
335
+        Me.TextBox8.Location = New System.Drawing.Point(623, 3)
336
+        Me.TextBox8.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
337
+        Me.TextBox8.Name = "TextBox8"
338
+        Me.TextBox8.Size = New System.Drawing.Size(100, 23)
339
+        Me.TextBox8.TabIndex = 1144
340
+        Me.TextBox8.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
341
+        '
342
+        'Label11
343
+        '
344
+        Me.Label11.AutoSize = True
345
+        Me.Label11.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
346
+        Me.Label11.Location = New System.Drawing.Point(589, 6)
347
+        Me.Label11.Name = "Label11"
348
+        Me.Label11.Size = New System.Drawing.Size(32, 16)
349
+        Me.Label11.TabIndex = 1143
350
+        Me.Label11.Text = "收票"
351
+        '
352
+        'TextBox7
353
+        '
354
+        Me.TextBox7.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
355
+        Me.TextBox7.Location = New System.Drawing.Point(623, 29)
356
+        Me.TextBox7.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
357
+        Me.TextBox7.Name = "TextBox7"
358
+        Me.TextBox7.Size = New System.Drawing.Size(100, 23)
359
+        Me.TextBox7.TabIndex = 1142
360
+        Me.TextBox7.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
361
+        '
362
+        'Label10
363
+        '
364
+        Me.Label10.AutoSize = True
365
+        Me.Label10.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
366
+        Me.Label10.Location = New System.Drawing.Point(589, 32)
367
+        Me.Label10.Name = "Label10"
368
+        Me.Label10.Size = New System.Drawing.Size(32, 16)
369
+        Me.Label10.TabIndex = 1141
370
+        Me.Label10.Text = "開票"
371
+        '
372
+        'TextBox6
373
+        '
374
+        Me.TextBox6.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
375
+        Me.TextBox6.Location = New System.Drawing.Point(623, 55)
376
+        Me.TextBox6.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
377
+        Me.TextBox6.Name = "TextBox6"
378
+        Me.TextBox6.Size = New System.Drawing.Size(100, 23)
379
+        Me.TextBox6.TabIndex = 1140
380
+        Me.TextBox6.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
381
+        '
382
+        'Label9
383
+        '
384
+        Me.Label9.AutoSize = True
385
+        Me.Label9.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
386
+        Me.Label9.Location = New System.Drawing.Point(589, 58)
387
+        Me.Label9.Name = "Label9"
388
+        Me.Label9.Size = New System.Drawing.Size(32, 16)
389
+        Me.Label9.TabIndex = 1139
390
+        Me.Label9.Text = "合計"
391
+        '
392
+        'DateTimePicker3
393
+        '
394
+        Me.DateTimePicker3.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
395
+        Me.DateTimePicker3.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
396
+        Me.DateTimePicker3.Location = New System.Drawing.Point(265, 2)
397
+        Me.DateTimePicker3.Name = "DateTimePicker3"
398
+        Me.DateTimePicker3.Size = New System.Drawing.Size(43, 23)
399
+        Me.DateTimePicker3.TabIndex = 1145
400
+        '
401
+        'Label3
402
+        '
403
+        Me.Label3.AutoSize = True
404
+        Me.Label3.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
405
+        Me.Label3.Location = New System.Drawing.Point(401, 6)
406
+        Me.Label3.Name = "Label3"
407
+        Me.Label3.Size = New System.Drawing.Size(101, 16)
408
+        Me.Label3.TabIndex = 1146
409
+        Me.Label3.Text = "兌     現     科     目"
410
+        '
411
+        'ComboBox3
412
+        '
413
+        Me.ComboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
414
+        Me.ComboBox3.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
415
+        Me.ComboBox3.FormattingEnabled = True
416
+        Me.ComboBox3.Items.AddRange(New Object() {"開收票日", "到期日", "預定兌現日", "託收已付日"})
417
+        Me.ComboBox3.Location = New System.Drawing.Point(399, 28)
418
+        Me.ComboBox3.Name = "ComboBox3"
419
+        Me.ComboBox3.Size = New System.Drawing.Size(183, 24)
420
+        Me.ComboBox3.TabIndex = 1147
421
+        '
422
+        'Button7
423
+        '
424
+        Me.Button7.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
425
+        Me.Button7.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
426
+        Me.Button7.Location = New System.Drawing.Point(508, 2)
427
+        Me.Button7.Name = "Button7"
428
+        Me.Button7.Size = New System.Drawing.Size(74, 24)
429
+        Me.Button7.TabIndex = 1148
430
+        Me.Button7.Text = "清除"
431
+        Me.Button7.UseVisualStyleBackColor = True
432
+        '
433
+        'TextBox16
434
+        '
435
+        Me.TextBox16.ForeColor = System.Drawing.Color.Green
436
+        Me.TextBox16.Location = New System.Drawing.Point(1055, 86)
437
+        Me.TextBox16.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
438
+        Me.TextBox16.Name = "TextBox16"
439
+        Me.TextBox16.Size = New System.Drawing.Size(185, 23)
440
+        Me.TextBox16.TabIndex = 1191
441
+        '
442
+        'Label25
443
+        '
444
+        Me.Label25.AutoSize = True
445
+        Me.Label25.ForeColor = System.Drawing.Color.Green
446
+        Me.Label25.Location = New System.Drawing.Point(1022, 89)
447
+        Me.Label25.Name = "Label25"
448
+        Me.Label25.Size = New System.Drawing.Size(32, 16)
449
+        Me.Label25.TabIndex = 1190
450
+        Me.Label25.Text = "備註"
451
+        '
452
+        'TextBox15
453
+        '
454
+        Me.TextBox15.ForeColor = System.Drawing.Color.Green
455
+        Me.TextBox15.Location = New System.Drawing.Point(1089, 137)
456
+        Me.TextBox15.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
457
+        Me.TextBox15.Name = "TextBox15"
458
+        Me.TextBox15.Size = New System.Drawing.Size(151, 23)
459
+        Me.TextBox15.TabIndex = 1189
460
+        '
461
+        'Label24
462
+        '
463
+        Me.Label24.AutoSize = True
464
+        Me.Label24.ForeColor = System.Drawing.Color.Green
465
+        Me.Label24.Location = New System.Drawing.Point(1022, 141)
466
+        Me.Label24.Name = "Label24"
467
+        Me.Label24.Size = New System.Drawing.Size(68, 16)
468
+        Me.Label24.TabIndex = 1188
469
+        Me.Label24.Text = "發票人帳號"
470
+        '
471
+        'TextBox14
472
+        '
473
+        Me.TextBox14.ForeColor = System.Drawing.Color.Green
474
+        Me.TextBox14.Location = New System.Drawing.Point(729, 138)
475
+        Me.TextBox14.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
476
+        Me.TextBox14.Name = "TextBox14"
477
+        Me.TextBox14.Size = New System.Drawing.Size(291, 23)
478
+        Me.TextBox14.TabIndex = 1187
479
+        '
480
+        'Label23
481
+        '
482
+        Me.Label23.AutoSize = True
483
+        Me.Label23.ForeColor = System.Drawing.Color.Green
484
+        Me.Label23.Location = New System.Drawing.Point(696, 141)
485
+        Me.Label23.Name = "Label23"
486
+        Me.Label23.Size = New System.Drawing.Size(32, 16)
487
+        Me.Label23.TabIndex = 1186
488
+        Me.Label23.Text = "用途"
489
+        '
490
+        'TextBox13
491
+        '
492
+        Me.TextBox13.ForeColor = System.Drawing.Color.Green
493
+        Me.TextBox13.Location = New System.Drawing.Point(443, 138)
494
+        Me.TextBox13.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
495
+        Me.TextBox13.Name = "TextBox13"
496
+        Me.TextBox13.Size = New System.Drawing.Size(250, 23)
497
+        Me.TextBox13.TabIndex = 1185
498
+        Me.TextBox13.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
499
+        '
500
+        'Label18
501
+        '
502
+        Me.Label18.AutoSize = True
503
+        Me.Label18.ForeColor = System.Drawing.Color.Green
504
+        Me.Label18.Location = New System.Drawing.Point(380, 141)
505
+        Me.Label18.Name = "Label18"
506
+        Me.Label18.Size = New System.Drawing.Size(65, 16)
507
+        Me.Label18.TabIndex = 1184
508
+        Me.Label18.Text = "開    票   人"
509
+        '
510
+        'ComboBox9
511
+        '
512
+        Me.ComboBox9.ForeColor = System.Drawing.Color.Green
513
+        Me.ComboBox9.FormattingEnabled = True
514
+        Me.ComboBox9.Location = New System.Drawing.Point(832, 85)
515
+        Me.ComboBox9.Name = "ComboBox9"
516
+        Me.ComboBox9.Size = New System.Drawing.Size(188, 24)
517
+        Me.ComboBox9.TabIndex = 1182
518
+        '
519
+        'Label20
520
+        '
521
+        Me.Label20.AutoSize = True
522
+        Me.Label20.ForeColor = System.Drawing.Color.Green
523
+        Me.Label20.Location = New System.Drawing.Point(777, 89)
524
+        Me.Label20.Name = "Label20"
525
+        Me.Label20.Size = New System.Drawing.Size(56, 16)
526
+        Me.Label20.TabIndex = 1183
527
+        Me.Label20.Text = "付款銀行"
528
+        '
529
+        'Label17
530
+        '
531
+        Me.Label17.AutoSize = True
532
+        Me.Label17.ForeColor = System.Drawing.Color.Green
533
+        Me.Label17.Location = New System.Drawing.Point(539, 115)
534
+        Me.Label17.Name = "Label17"
535
+        Me.Label17.Size = New System.Drawing.Size(64, 16)
536
+        Me.Label17.TabIndex = 1180
537
+        Me.Label17.Text = "開(收)票日"
538
+        '
539
+        'DateTimePicker5
540
+        '
541
+        Me.DateTimePicker5.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
542
+        Me.DateTimePicker5.Location = New System.Drawing.Point(603, 112)
543
+        Me.DateTimePicker5.Name = "DateTimePicker5"
544
+        Me.DateTimePicker5.Size = New System.Drawing.Size(90, 23)
545
+        Me.DateTimePicker5.TabIndex = 1179
546
+        '
547
+        'DateTimePicker4
548
+        '
549
+        Me.DateTimePicker4.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
550
+        Me.DateTimePicker4.Location = New System.Drawing.Point(766, 112)
551
+        Me.DateTimePicker4.Name = "DateTimePicker4"
552
+        Me.DateTimePicker4.Size = New System.Drawing.Size(90, 23)
553
+        Me.DateTimePicker4.TabIndex = 1177
554
+        '
555
+        'Label15
556
+        '
557
+        Me.Label15.AutoSize = True
558
+        Me.Label15.ForeColor = System.Drawing.Color.Green
559
+        Me.Label15.Location = New System.Drawing.Point(380, 115)
560
+        Me.Label15.Name = "Label15"
561
+        Me.Label15.Size = New System.Drawing.Size(65, 16)
562
+        Me.Label15.TabIndex = 1176
563
+        Me.Label15.Text = "到    期   日"
564
+        '
565
+        'TextBox12
566
+        '
567
+        Me.TextBox12.ForeColor = System.Drawing.Color.Green
568
+        Me.TextBox12.Location = New System.Drawing.Point(62, 112)
569
+        Me.TextBox12.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
570
+        Me.TextBox12.Name = "TextBox12"
571
+        Me.TextBox12.Size = New System.Drawing.Size(123, 23)
572
+        Me.TextBox12.TabIndex = 1175
573
+        Me.TextBox12.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
574
+        '
575
+        'Label13
576
+        '
577
+        Me.Label13.AutoSize = True
578
+        Me.Label13.ForeColor = System.Drawing.Color.Green
579
+        Me.Label13.Location = New System.Drawing.Point(6, 116)
580
+        Me.Label13.Name = "Label13"
581
+        Me.Label13.Size = New System.Drawing.Size(56, 16)
582
+        Me.Label13.TabIndex = 1174
583
+        Me.Label13.Text = "支票號碼"
584
+        '
585
+        'TextBox11
586
+        '
587
+        Me.TextBox11.ForeColor = System.Drawing.Color.Green
588
+        Me.TextBox11.Location = New System.Drawing.Point(262, 138)
589
+        Me.TextBox11.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
590
+        Me.TextBox11.Name = "TextBox11"
591
+        Me.TextBox11.Size = New System.Drawing.Size(112, 23)
592
+        Me.TextBox11.TabIndex = 1173
593
+        Me.TextBox11.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
594
+        '
595
+        'Label12
596
+        '
597
+        Me.Label12.AutoSize = True
598
+        Me.Label12.ForeColor = System.Drawing.Color.Green
599
+        Me.Label12.Location = New System.Drawing.Point(191, 142)
600
+        Me.Label12.Name = "Label12"
601
+        Me.Label12.Size = New System.Drawing.Size(73, 16)
602
+        Me.Label12.TabIndex = 1172
603
+        Me.Label12.Text = "客戶/供應商"
604
+        '
605
+        'TextBox10
606
+        '
607
+        Me.TextBox10.ForeColor = System.Drawing.Color.Green
608
+        Me.TextBox10.Location = New System.Drawing.Point(62, 138)
609
+        Me.TextBox10.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
610
+        Me.TextBox10.Name = "TextBox10"
611
+        Me.TextBox10.Size = New System.Drawing.Size(123, 23)
612
+        Me.TextBox10.TabIndex = 1171
613
+        Me.TextBox10.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
614
+        '
615
+        'Label5
616
+        '
617
+        Me.Label5.AutoSize = True
618
+        Me.Label5.ForeColor = System.Drawing.Color.Green
619
+        Me.Label5.Location = New System.Drawing.Point(6, 142)
620
+        Me.Label5.Name = "Label5"
621
+        Me.Label5.Size = New System.Drawing.Size(56, 16)
622
+        Me.Label5.TabIndex = 1170
623
+        Me.Label5.Text = "客戶編號"
624
+        '
625
+        'TextBox9
626
+        '
627
+        Me.TextBox9.ForeColor = System.Drawing.Color.Green
628
+        Me.TextBox9.Location = New System.Drawing.Point(262, 112)
629
+        Me.TextBox9.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
630
+        Me.TextBox9.Name = "TextBox9"
631
+        Me.TextBox9.Size = New System.Drawing.Size(112, 23)
632
+        Me.TextBox9.TabIndex = 1169
633
+        Me.TextBox9.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
634
+        '
635
+        'Label8
636
+        '
637
+        Me.Label8.AutoSize = True
638
+        Me.Label8.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
639
+        Me.Label8.Location = New System.Drawing.Point(500, 89)
640
+        Me.Label8.Name = "Label8"
641
+        Me.Label8.Size = New System.Drawing.Size(32, 16)
642
+        Me.Label8.TabIndex = 1167
643
+        Me.Label8.Text = "收票"
644
+        '
645
+        'Label16
646
+        '
647
+        Me.Label16.AutoSize = True
648
+        Me.Label16.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
649
+        Me.Label16.Location = New System.Drawing.Point(640, 89)
650
+        Me.Label16.Name = "Label16"
651
+        Me.Label16.Size = New System.Drawing.Size(32, 16)
652
+        Me.Label16.TabIndex = 1165
653
+        Me.Label16.Text = "開票"
654
+        '
655
+        'TextBox18
656
+        '
657
+        Me.TextBox18.ForeColor = System.Drawing.Color.Green
658
+        Me.TextBox18.Location = New System.Drawing.Point(246, 86)
659
+        Me.TextBox18.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
660
+        Me.TextBox18.Name = "TextBox18"
661
+        Me.TextBox18.Size = New System.Drawing.Size(61, 23)
662
+        Me.TextBox18.TabIndex = 1155
663
+        Me.TextBox18.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
664
+        '
665
+        'Label28
666
+        '
667
+        Me.Label28.AutoSize = True
668
+        Me.Label28.ForeColor = System.Drawing.Color.Green
669
+        Me.Label28.Location = New System.Drawing.Point(309, 90)
670
+        Me.Label28.Name = "Label28"
671
+        Me.Label28.Size = New System.Drawing.Size(44, 16)
672
+        Me.Label28.TabIndex = 1154
673
+        Me.Label28.Text = "項次。"
674
+        '
675
+        'Label27
676
+        '
677
+        Me.Label27.AutoSize = True
678
+        Me.Label27.ForeColor = System.Drawing.Color.Green
679
+        Me.Label27.Location = New System.Drawing.Point(190, 89)
680
+        Me.Label27.Name = "Label27"
681
+        Me.Label27.Size = New System.Drawing.Size(56, 16)
682
+        Me.Label27.TabIndex = 1153
683
+        Me.Label27.Text = "選        擇"
684
+        '
685
+        'Label29
686
+        '
687
+        Me.Label29.AutoSize = True
688
+        Me.Label29.ForeColor = System.Drawing.Color.Green
689
+        Me.Label29.Location = New System.Drawing.Point(1026, 115)
690
+        Me.Label29.Name = "Label29"
691
+        Me.Label29.Size = New System.Drawing.Size(59, 16)
692
+        Me.Label29.TabIndex = 1152
693
+        Me.Label29.Text = "登   錄  人"
694
+        '
695
+        'TextBox19
696
+        '
697
+        Me.TextBox19.ForeColor = System.Drawing.Color.Green
698
+        Me.TextBox19.Location = New System.Drawing.Point(1089, 112)
699
+        Me.TextBox19.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
700
+        Me.TextBox19.Name = "TextBox19"
701
+        Me.TextBox19.Size = New System.Drawing.Size(151, 23)
702
+        Me.TextBox19.TabIndex = 1151
703
+        Me.TextBox19.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
704
+        '
705
+        'TextBox20
706
+        '
707
+        Me.TextBox20.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
708
+        Me.TextBox20.Location = New System.Drawing.Point(62, 86)
709
+        Me.TextBox20.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
710
+        Me.TextBox20.Name = "TextBox20"
711
+        Me.TextBox20.Size = New System.Drawing.Size(122, 23)
712
+        Me.TextBox20.TabIndex = 1149
713
+        Me.TextBox20.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
714
+        '
715
+        'Label30
716
+        '
717
+        Me.Label30.AutoSize = True
718
+        Me.Label30.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
719
+        Me.Label30.Location = New System.Drawing.Point(4, 89)
720
+        Me.Label30.Name = "Label30"
721
+        Me.Label30.Size = New System.Drawing.Size(56, 16)
722
+        Me.Label30.TabIndex = 1150
723
+        Me.Label30.Text = "收支單號"
724
+        '
725
+        'Label31
726
+        '
727
+        Me.Label31.AutoSize = True
728
+        Me.Label31.ForeColor = System.Drawing.Color.Green
729
+        Me.Label31.Location = New System.Drawing.Point(191, 115)
730
+        Me.Label31.Name = "Label31"
731
+        Me.Label31.Size = New System.Drawing.Size(74, 16)
732
+        Me.Label31.TabIndex = 1158
733
+        Me.Label31.Text = "會  計  科  目"
734
+        '
735
+        'Label32
736
+        '
737
+        Me.Label32.AutoSize = True
738
+        Me.Label32.ForeColor = System.Drawing.Color.Green
739
+        Me.Label32.Location = New System.Drawing.Point(699, 116)
740
+        Me.Label32.Name = "Label32"
741
+        Me.Label32.Size = New System.Drawing.Size(68, 16)
742
+        Me.Label32.TabIndex = 1178
743
+        Me.Label32.Text = "預定兌現日"
744
+        '
745
+        'Label33
746
+        '
747
+        Me.Label33.AutoSize = True
748
+        Me.Label33.ForeColor = System.Drawing.Color.Green
749
+        Me.Label33.Location = New System.Drawing.Point(972, 7)
750
+        Me.Label33.Name = "Label33"
751
+        Me.Label33.Size = New System.Drawing.Size(74, 16)
752
+        Me.Label33.TabIndex = 1181
753
+        Me.Label33.Text = "轉  換  科  目"
754
+        '
755
+        'Label34
756
+        '
757
+        Me.Label34.AutoSize = True
758
+        Me.Label34.Location = New System.Drawing.Point(2, 68)
759
+        Me.Label34.Name = "Label34"
760
+        Me.Label34.Size = New System.Drawing.Size(1243, 16)
761
+        Me.Label34.TabIndex = 1192
762
+        Me.Label34.Text = resources.GetString("Label34.Text")
763
+        '
764
+        'DateTimePicker7
765
+        '
766
+        Me.DateTimePicker7.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
767
+        Me.DateTimePicker7.Location = New System.Drawing.Point(443, 111)
768
+        Me.DateTimePicker7.Name = "DateTimePicker7"
769
+        Me.DateTimePicker7.Size = New System.Drawing.Size(90, 23)
770
+        Me.DateTimePicker7.TabIndex = 1193
771
+        '
772
+        'DateTimePicker8
773
+        '
774
+        Me.DateTimePicker8.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
775
+        Me.DateTimePicker8.Location = New System.Drawing.Point(1050, 30)
776
+        Me.DateTimePicker8.Name = "DateTimePicker8"
777
+        Me.DateTimePicker8.Size = New System.Drawing.Size(190, 23)
778
+        Me.DateTimePicker8.TabIndex = 1194
779
+        '
780
+        'Label19
781
+        '
782
+        Me.Label19.AutoSize = True
783
+        Me.Label19.ForeColor = System.Drawing.Color.Green
784
+        Me.Label19.Location = New System.Drawing.Point(972, 33)
785
+        Me.Label19.Name = "Label19"
786
+        Me.Label19.Size = New System.Drawing.Size(76, 16)
787
+        Me.Label19.TabIndex = 1195
788
+        Me.Label19.Text = "託收(已付)日"
789
+        '
790
+        'ComboBox8
791
+        '
792
+        Me.ComboBox8.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
793
+        Me.ComboBox8.ForeColor = System.Drawing.Color.Green
794
+        Me.ComboBox8.FormattingEnabled = True
795
+        Me.ComboBox8.Items.AddRange(New Object() {"開票", "收票"})
796
+        Me.ComboBox8.Location = New System.Drawing.Point(1050, 3)
797
+        Me.ComboBox8.Name = "ComboBox8"
798
+        Me.ComboBox8.Size = New System.Drawing.Size(190, 24)
799
+        Me.ComboBox8.TabIndex = 1196
800
+        '
801
+        'ComboBox10
802
+        '
803
+        Me.ComboBox10.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
804
+        Me.ComboBox10.ForeColor = System.Drawing.Color.Green
805
+        Me.ComboBox10.FormattingEnabled = True
806
+        Me.ComboBox10.Items.AddRange(New Object() {"開票", "收票"})
807
+        Me.ComboBox10.Location = New System.Drawing.Point(346, 85)
808
+        Me.ComboBox10.Name = "ComboBox10"
809
+        Me.ComboBox10.Size = New System.Drawing.Size(148, 24)
810
+        Me.ComboBox10.TabIndex = 1197
811
+        '
812
+        'NumericUpDown1
813
+        '
814
+        Me.NumericUpDown1.Location = New System.Drawing.Point(536, 86)
815
+        Me.NumericUpDown1.Maximum = New Decimal(New Integer() {100000, 0, 0, 0})
816
+        Me.NumericUpDown1.Name = "NumericUpDown1"
817
+        Me.NumericUpDown1.Size = New System.Drawing.Size(98, 23)
818
+        Me.NumericUpDown1.TabIndex = 1198
819
+        Me.NumericUpDown1.ThousandsSeparator = True
820
+        '
821
+        'NumericUpDown2
822
+        '
823
+        Me.NumericUpDown2.Location = New System.Drawing.Point(678, 85)
824
+        Me.NumericUpDown2.Maximum = New Decimal(New Integer() {100000, 0, 0, 0})
825
+        Me.NumericUpDown2.Name = "NumericUpDown2"
826
+        Me.NumericUpDown2.Size = New System.Drawing.Size(98, 23)
827
+        Me.NumericUpDown2.TabIndex = 1199
828
+        Me.NumericUpDown2.ThousandsSeparator = True
829
+        '
830
+        '票務控制表
831
+        '
832
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
833
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
834
+        Me.ClientSize = New System.Drawing.Size(1249, 611)
835
+        Me.Controls.Add(Me.NumericUpDown2)
836
+        Me.Controls.Add(Me.NumericUpDown1)
837
+        Me.Controls.Add(Me.ComboBox10)
838
+        Me.Controls.Add(Me.ComboBox8)
839
+        Me.Controls.Add(Me.Label19)
840
+        Me.Controls.Add(Me.DateTimePicker8)
841
+        Me.Controls.Add(Me.DateTimePicker7)
842
+        Me.Controls.Add(Me.TextBox16)
843
+        Me.Controls.Add(Me.Label25)
844
+        Me.Controls.Add(Me.TextBox15)
845
+        Me.Controls.Add(Me.Label24)
846
+        Me.Controls.Add(Me.TextBox14)
847
+        Me.Controls.Add(Me.Label23)
848
+        Me.Controls.Add(Me.TextBox13)
849
+        Me.Controls.Add(Me.Label18)
850
+        Me.Controls.Add(Me.ComboBox9)
851
+        Me.Controls.Add(Me.Label20)
852
+        Me.Controls.Add(Me.Label17)
853
+        Me.Controls.Add(Me.DateTimePicker5)
854
+        Me.Controls.Add(Me.DateTimePicker4)
855
+        Me.Controls.Add(Me.Label15)
856
+        Me.Controls.Add(Me.TextBox12)
857
+        Me.Controls.Add(Me.Label13)
858
+        Me.Controls.Add(Me.TextBox11)
859
+        Me.Controls.Add(Me.Label12)
860
+        Me.Controls.Add(Me.TextBox10)
861
+        Me.Controls.Add(Me.Label5)
862
+        Me.Controls.Add(Me.TextBox9)
863
+        Me.Controls.Add(Me.Label8)
864
+        Me.Controls.Add(Me.Label16)
865
+        Me.Controls.Add(Me.TextBox18)
866
+        Me.Controls.Add(Me.Label28)
867
+        Me.Controls.Add(Me.Label27)
868
+        Me.Controls.Add(Me.Label29)
869
+        Me.Controls.Add(Me.TextBox19)
870
+        Me.Controls.Add(Me.TextBox20)
871
+        Me.Controls.Add(Me.Label30)
872
+        Me.Controls.Add(Me.Label31)
873
+        Me.Controls.Add(Me.Label32)
874
+        Me.Controls.Add(Me.Label33)
875
+        Me.Controls.Add(Me.Button7)
876
+        Me.Controls.Add(Me.ComboBox3)
877
+        Me.Controls.Add(Me.Label3)
878
+        Me.Controls.Add(Me.DateTimePicker3)
879
+        Me.Controls.Add(Me.TextBox8)
880
+        Me.Controls.Add(Me.Label11)
881
+        Me.Controls.Add(Me.TextBox7)
882
+        Me.Controls.Add(Me.Label10)
883
+        Me.Controls.Add(Me.TextBox6)
884
+        Me.Controls.Add(Me.Label9)
885
+        Me.Controls.Add(Me.Label7)
886
+        Me.Controls.Add(Me.TextBox1)
887
+        Me.Controls.Add(Me.Label6)
888
+        Me.Controls.Add(Me.Button6)
889
+        Me.Controls.Add(Me.Button5)
890
+        Me.Controls.Add(Me.Button4)
891
+        Me.Controls.Add(Me.Button3)
892
+        Me.Controls.Add(Me.ComboBox2)
893
+        Me.Controls.Add(Me.Label2)
894
+        Me.Controls.Add(Me.ComboBox1)
895
+        Me.Controls.Add(Me.Label1)
896
+        Me.Controls.Add(Me.ComboBox15)
897
+        Me.Controls.Add(Me.Button1)
898
+        Me.Controls.Add(Me.一般月)
899
+        Me.Controls.Add(Me.會計月)
900
+        Me.Controls.Add(Me.Button2)
901
+        Me.Controls.Add(Me.DateTimePicker2)
902
+        Me.Controls.Add(Me.DateTimePicker1)
903
+        Me.Controls.Add(Me.Label14)
904
+        Me.Controls.Add(Me.Label4)
905
+        Me.Controls.Add(Me.Label34)
906
+        Me.Controls.Add(Me.DataGridView1)
907
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
908
+        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
909
+        Me.Name = "票務控制表"
910
+        Me.Text = "票務控制表"
911
+        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
912
+        CType(Me.NumericUpDown1, System.ComponentModel.ISupportInitialize).EndInit()
913
+        CType(Me.NumericUpDown2, System.ComponentModel.ISupportInitialize).EndInit()
914
+        Me.ResumeLayout(False)
915
+        Me.PerformLayout()
916
+
917
+    End Sub
918
+
919
+    Friend WithEvents Button1 As Button
920
+    Friend WithEvents 一般月 As CheckBox
921
+    Friend WithEvents 會計月 As CheckBox
922
+    Friend WithEvents Button2 As Button
923
+    Friend WithEvents Label4 As Label
924
+    Friend WithEvents DateTimePicker2 As DateTimePicker
925
+    Friend WithEvents DateTimePicker1 As DateTimePicker
926
+    Friend WithEvents DataGridView1 As DataGridView
927
+    Friend WithEvents Label14 As Label
928
+    Friend WithEvents ComboBox15 As ComboBox
929
+    Friend WithEvents ComboBox1 As ComboBox
930
+    Friend WithEvents Label1 As Label
931
+    Friend WithEvents ComboBox2 As ComboBox
932
+    Friend WithEvents Label2 As Label
933
+    Friend WithEvents Button3 As Button
934
+    Friend WithEvents Button4 As Button
935
+    Friend WithEvents Button5 As Button
936
+    Friend WithEvents Button6 As Button
937
+    Friend WithEvents Label6 As Label
938
+    Friend WithEvents TextBox1 As TextBox
939
+    Friend WithEvents Label7 As Label
940
+    Friend WithEvents TextBox8 As TextBox
941
+    Friend WithEvents Label11 As Label
942
+    Friend WithEvents TextBox7 As TextBox
943
+    Friend WithEvents Label10 As Label
944
+    Friend WithEvents TextBox6 As TextBox
945
+    Friend WithEvents Label9 As Label
946
+    Friend WithEvents DateTimePicker3 As DateTimePicker
947
+    Friend WithEvents Label3 As Label
948
+    Friend WithEvents ComboBox3 As ComboBox
949
+    Friend WithEvents Button7 As Button
950
+    Friend WithEvents TextBox16 As TextBox
951
+    Friend WithEvents Label25 As Label
952
+    Friend WithEvents TextBox15 As TextBox
953
+    Friend WithEvents Label24 As Label
954
+    Friend WithEvents TextBox14 As TextBox
955
+    Friend WithEvents Label23 As Label
956
+    Friend WithEvents TextBox13 As TextBox
957
+    Friend WithEvents Label18 As Label
958
+    Friend WithEvents ComboBox9 As ComboBox
959
+    Friend WithEvents Label20 As Label
960
+    Friend WithEvents Label17 As Label
961
+    Friend WithEvents DateTimePicker5 As DateTimePicker
962
+    Friend WithEvents DateTimePicker4 As DateTimePicker
963
+    Friend WithEvents Label15 As Label
964
+    Friend WithEvents TextBox12 As TextBox
965
+    Friend WithEvents Label13 As Label
966
+    Friend WithEvents TextBox11 As TextBox
967
+    Friend WithEvents Label12 As Label
968
+    Friend WithEvents TextBox10 As TextBox
969
+    Friend WithEvents Label5 As Label
970
+    Friend WithEvents TextBox9 As TextBox
971
+    Friend WithEvents Label8 As Label
972
+    Friend WithEvents Label16 As Label
973
+    Friend WithEvents TextBox18 As TextBox
974
+    Friend WithEvents Label28 As Label
975
+    Friend WithEvents Label27 As Label
976
+    Friend WithEvents Label29 As Label
977
+    Friend WithEvents TextBox19 As TextBox
978
+    Friend WithEvents TextBox20 As TextBox
979
+    Friend WithEvents Label30 As Label
980
+    Friend WithEvents Label31 As Label
981
+    Friend WithEvents Label32 As Label
982
+    Friend WithEvents Label33 As Label
983
+    Friend WithEvents Label34 As Label
984
+    Friend WithEvents DateTimePicker7 As DateTimePicker
985
+    Friend WithEvents DateTimePicker8 As DateTimePicker
986
+    Friend WithEvents Label19 As Label
987
+    Friend WithEvents ComboBox8 As ComboBox
988
+    Friend WithEvents ComboBox10 As ComboBox
989
+    Friend WithEvents NumericUpDown1 As NumericUpDown
990
+    Friend WithEvents NumericUpDown2 As NumericUpDown
991
+End Class

+ 123
- 0
MaoOrange-Hongji/財務系統管理/票務控制表.resx ファイルの表示

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

+ 170
- 0
MaoOrange-Hongji/財務系統管理/票務控制表.vb ファイルの表示

@@ -0,0 +1,170 @@
1
+Option Strict Off
2
+Public Class 票務控制表
3
+    ReadOnly ds As New DataSet
4
+    Private Sub Set_票務清單()
5
+        DataGridView1.DataSource = Nothing : ds.Clear() : DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing : DataGridView1.ColumnHeadersHeight = 40
6
+        DataGridView1.AllowUserToAddRows = False : DataGridView1.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText : DataGridView1.MultiSelect = True
7
+        DataGridView1.RowTemplate.Height = 35
8
+        SQL_票務控制表清單()
9
+        da.Fill(ds) : DataGridView1.DataSource = ds.Tables(0) : conn.Close()
10
+
11
+        DataGridView1.Columns(0).Visible = False : DataGridView1.Columns(1).Visible = False : DataGridView1.Columns(2).FillWeight = 80 : DataGridView1.Columns(3).Visible = False
12
+        DataGridView1.Columns(4).FillWeight = 130 : DataGridView1.Columns(5).FillWeight = 60 : DataGridView1.Columns(6).FillWeight = 60 : DataGridView1.Columns(7).Visible = False
13
+        DataGridView1.Columns(8).Visible = False : DataGridView1.Columns(9).Visible = False : DataGridView1.Columns(10).FillWeight = 100 : DataGridView1.Columns(11).FillWeight = 50
14
+        DataGridView1.Columns(12).FillWeight = 85 : DataGridView1.Columns(13).FillWeight = 85 : DataGridView1.Columns(14).FillWeight = 85 : DataGridView1.Columns(15).FillWeight = 85
15
+        DataGridView1.Columns(16).FillWeight = 130 : DataGridView1.Columns(17).Visible = False : DataGridView1.Columns(18).FillWeight = 130 : DataGridView1.Columns(19).FillWeight = 80
16
+        DataGridView1.Columns(20).FillWeight = 80 : DataGridView1.Columns(21).FillWeight = 120 : DataGridView1.Columns(22).Visible = False : DataGridView1.Columns(23).Visible = False
17
+        DataGridView1.Columns(24).Visible = False
18
+
19
+        DataGridView1.Columns(5).DefaultCellStyle.Format = "#,##0" : DataGridView1.Columns(6).DefaultCellStyle.Format = "#,##0"
20
+        DataGridView1.Columns(0).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(0).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
21
+        DataGridView1.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(1).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
22
+        DataGridView1.Columns(2).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(2).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
23
+        DataGridView1.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(5).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
24
+        DataGridView1.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
25
+
26
+        TextBox1.Text = DataGridView1.Rows.Count : TextBox6.Text = "0" : TextBox7.Text = "0" : TextBox8.Text = "0"
27
+        For i As Integer = 0 To DataGridView1.Rows.Count - 1
28
+            TextBox7.Text = Val(TextBox7.Text) + DataGridView1.Rows(i).Cells("開票").Value : TextBox8.Text = Val(TextBox8.Text) + DataGridView1.Rows(i).Cells("收票").Value
29
+        Next i
30
+        TextBox6.Text = Val(TextBox8.Text) - Val(TextBox7.Text)
31
+        If Val(TextBox6.Text) > 0 Then : TextBox6.ForeColor = Color.Blue : Else : TextBox6.ForeColor = Color.Red : End If
32
+        TextBox6.Text = Format(Val(TextBox6.Text), "#,##0") : TextBox7.Text = Format(Val(TextBox7.Text), "#,##0") : TextBox8.Text = Format(Val(TextBox8.Text), "#,##0")
33
+    End Sub
34
+    Private Sub ComboBox1下拉表單資料載入()
35
+        SQL_票務控制表會科區分()
36
+        ComboBox1.Items.Clear() : While (dr.Read()) : ComboBox1.Items.Add(dr("開票會科")) : End While : conn.Close() : If ComboBox1.Items.Count <> 0 Then : ComboBox1.SelectedIndex = 0 : End If
37
+    End Sub
38
+    Private Sub ComboBox2下拉表單資料載入()
39
+        SQL_票務控制表票況區分()
40
+        ComboBox2.Items.Clear() : While (dr.Read()) : ComboBox2.Items.Add(dr("狀態")) : End While : conn.Close() : If ComboBox2.Items.Count <> 0 Then : ComboBox2.SelectedIndex = 0 : End If
41
+    End Sub
42
+    Private Sub ComboBox3下拉表單資料載入()
43
+        SQL_票務控制表兌現科目()
44
+        ComboBox3.Items.Clear() : While (dr.Read()) : ComboBox3.Items.Add(dr("兌現會科")) : End While : conn.Close()
45
+    End Sub
46
+    Private Sub ComboBox8下拉表單資料載入_收票()
47
+        SQL_支票收支單_兌現科目_下拉清單三()
48
+        ComboBox8.Items.Clear() : ComboBox10.Items.Clear() : While (dr.Read()) : ComboBox8.Items.Add(dr("會計科目")) : ComboBox10.Items.Add(dr("編號")) : End While : conn.Close()
49
+    End Sub
50
+    Private Sub ComboBox8下拉表單資料載入_開票()
51
+        SQL_支票收支單申請_兌現科目_下拉清單二()
52
+        ComboBox8.Items.Clear() : ComboBox10.Items.Clear() : While (dr.Read()) : ComboBox8.Items.Add(dr("會計科目")) : ComboBox10.Items.Add(dr("編號")) : End While : conn.Close()
53
+    End Sub
54
+    Private Sub 日期格式()
55
+        If 會計月.Checked = True Then
56
+            '-------------日期一----------------------------------------------------------------------------------------
57
+            DTP = Strings.Left(Strings.Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker1.Value = DTP
58
+            DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(-1)
59
+            DTP = Strings.Left(Strings.Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "26" : DateTimePicker1.Value = DTP
60
+            '-------------日期二----------------------------------------------------------------------------------------
61
+            DTP = Strings.Left(Strings.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(Strings.Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker1.Value = DTP
66
+            '-------------日期二----------------------------------------------------------------------------------------
67
+            DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker2.Value = DTP
68
+            DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddDays(-1)
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
+        ComboBox1下拉表單資料載入() : ComboBox2下拉表單資料載入() : ComboBox3下拉表單資料載入() : DateTimePicker3.Visible = False
74
+        日期格式() : ComboBox15.SelectedIndex = 0 : Set_票務清單()
75
+    End Sub
76
+    Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick
77
+        If e.RowIndex = -1 Then : Else
78
+            TextBox20.Text = DataGridView1("流水號", e.RowIndex).Value.ToString : NumericUpDown1.Text = DataGridView1("收票", e.RowIndex).Value.ToString
79
+            NumericUpDown2.Text = DataGridView1("開票", e.RowIndex).Value.ToString : TextBox15.Text = DataGridView1("發票人帳號", e.RowIndex).Value.ToString
80
+            TextBox14.Text = DataGridView1("用途", e.RowIndex).Value.ToString : TextBox18.Text = DataGridView1("項次", e.RowIndex).Value.ToString
81
+            TextBox9.Text = DataGridView1("會計科目", e.RowIndex).Value.ToString : ComboBox9.Text = DataGridView1("付款銀行", e.RowIndex).Value.ToString
82
+            TextBox10.Text = DataGridView1("倉儲單號", e.RowIndex).Value.ToString : TextBox12.Text = DataGridView1("支票號碼", e.RowIndex).Value.ToString
83
+            TextBox13.Text = DataGridView1("開票人", e.RowIndex).Value.ToString : TextBox16.Text = DataGridView1("備註", e.RowIndex).Value.ToString
84
+            ComboBox8.Text = DataGridView1("兌現會科", e.RowIndex).Value.ToString
85
+            If DataGridView1("到期日", e.RowIndex).Value.ToString = "" Then : Else : DateTimePicker7.Value = DataGridView1("到期日", e.RowIndex).Value.ToString : End If
86
+            If DataGridView1("預定兌現日", e.RowIndex).Value.ToString = "" Then : Else : DateTimePicker4.Value = DataGridView1("預定兌現日", e.RowIndex).Value.ToString : End If
87
+            If DataGridView1("開收票日", e.RowIndex).Value.ToString = "" Then : Else : DateTimePicker5.Value = DataGridView1("開收票日", e.RowIndex).Value.ToString : End If
88
+            If DataGridView1("託收已付日", e.RowIndex).Value.ToString = "" Then : Else : DateTimePicker8.Value = DataGridView1("託收已付日", e.RowIndex).Value.ToString : End If
89
+            客戶供應商資料()
90
+        End If
91
+    End Sub
92
+    Private Sub 客戶供應商資料()
93
+        PA = TextBox10.Text : SQL_支票收支單客戶供應商查詢()
94
+        If (dr.Read()) Then
95
+            If ComboBox2.Text = "開票" Then
96
+                TextBox11.Text = dr("供應商") : conn.Close()
97
+            Else
98
+                TextBox11.Text = dr("客戶編號")
99
+                If TextBox11.Text = "CI00000000" Then
100
+                    conn.Close()
101
+                    SQL_支票收支單申請_客戶資料_零售()
102
+                    If (dr.Read()) Then
103
+                        TextBox11.Text = dr("客戶名稱") : conn.Close()
104
+                    End If
105
+                Else
106
+                    TextBox11.Text = dr("客戶") : conn.Close()
107
+                End If
108
+            End If
109
+        Else
110
+            TextBox11.Text = ""
111
+        End If
112
+    End Sub
113
+    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
114
+        If 會計月.Checked = True Then
115
+            DateTimePicker3.Value = DateTimePicker3.Value.AddMonths(-1)
116
+            DateTimePicker1.Value = DateTimePicker3.Value
117
+            DateTimePicker2.Value = DateTimePicker3.Value
118
+        Else
119
+            DateTimePicker3.Value = DateTimePicker3.Value.AddMonths(-1)
120
+            DateTimePicker1.Value = DateTimePicker3.Value.AddMonths(-1)
121
+            DateTimePicker2.Value = DateTimePicker3.Value
122
+        End If
123
+        日期格式() : Set_票務清單()
124
+    End Sub
125
+    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
126
+        If 會計月.Checked = True Then
127
+            DateTimePicker3.Value = DateTimePicker3.Value.AddMonths(1)
128
+            DateTimePicker1.Value = DateTimePicker3.Value
129
+            DateTimePicker2.Value = DateTimePicker3.Value
130
+        Else
131
+            DateTimePicker3.Value = DateTimePicker3.Value.AddMonths(1)
132
+            DateTimePicker1.Value = DateTimePicker3.Value.AddMonths(-1)
133
+            DateTimePicker2.Value = DateTimePicker3.Value
134
+        End If
135
+        日期格式() : Set_票務清單()
136
+    End Sub
137
+    Private Sub 會計月_CheckedChanged(sender As Object, e As EventArgs) Handles 會計月.Click
138
+        會計月.Checked = True : 一般月.Checked = False : 日期格式() : Set_票務清單()
139
+    End Sub
140
+    Private Sub 一般月_CheckedChanged(sender As Object, e As EventArgs) Handles 一般月.Click
141
+        會計月.Checked = False : 一般月.Checked = True : 日期格式() : Set_票務清單()
142
+    End Sub
143
+    Private Sub ComboBox2_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox2.SelectedIndexChanged
144
+        If ComboBox2.Text = "開票" Then
145
+            Button5.Enabled = True : Button4.Enabled = False : Button6.Enabled = True : ComboBox8下拉表單資料載入_開票()
146
+        ElseIf ComboBox2.Text = "收票" Then
147
+            Button5.Enabled = False : Button4.Enabled = True : Button6.Enabled = True : ComboBox8下拉表單資料載入_收票()
148
+        Else
149
+            Button5.Enabled = False : Button4.Enabled = False : Button6.Enabled = False : ComboBox8.Items.Clear() : ComboBox10.Items.Clear()
150
+        End If
151
+    End Sub
152
+    Private Sub ComboBox15_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox15.SelectedIndexChanged
153
+        Set_票務清單()
154
+    End Sub
155
+    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
156
+        Set_票務清單()
157
+    End Sub
158
+    Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click
159
+        ComboBox3下拉表單資料載入() : Set_票務清單()
160
+    End Sub
161
+    Private Sub ComboBox3_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox3.SelectedIndexChanged
162
+        Set_票務清單()
163
+    End Sub
164
+    Private Sub ComboBox8_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox8.SelectedIndexChanged
165
+        ComboBox10.SelectedIndex = ComboBox8.SelectedIndex
166
+    End Sub
167
+    Private Sub ComboBox10_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox10.SelectedIndexChanged
168
+        ComboBox8.SelectedIndex = ComboBox10.SelectedIndex
169
+    End Sub
170
+End Class

+ 922
- 0
MaoOrange-Hongji/財務系統管理/財務單具申請.Designer.vb ファイルの表示

@@ -0,0 +1,922 @@
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
+Partial Class 財務單具申請
3
+    Inherits System.Windows.Forms.Form
4
+
5
+    'Form 覆寫 Dispose 以清除元件清單。
6
+    <System.Diagnostics.DebuggerNonUserCode()> _
7
+    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
8
+        Try
9
+            If disposing AndAlso components IsNot Nothing Then
10
+                components.Dispose()
11
+            End If
12
+        Finally
13
+            MyBase.Dispose(disposing)
14
+        End Try
15
+    End Sub
16
+
17
+    '為 Windows Form 設計工具的必要項
18
+    Private components As System.ComponentModel.IContainer
19
+
20
+    '注意: 以下為 Windows Form 設計工具所需的程序
21
+    '可以使用 Windows Form 設計工具進行修改。
22
+    '請勿使用程式碼編輯器進行修改。
23
+    <System.Diagnostics.DebuggerStepThrough()> _
24
+    Private Sub InitializeComponent()
25
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
+        Me.Button3 = New System.Windows.Forms.Button()
30
+        Me.TextBox16 = New System.Windows.Forms.TextBox()
31
+        Me.Label25 = New System.Windows.Forms.Label()
32
+        Me.TextBox15 = New System.Windows.Forms.TextBox()
33
+        Me.Label24 = New System.Windows.Forms.Label()
34
+        Me.TextBox14 = New System.Windows.Forms.TextBox()
35
+        Me.Label23 = New System.Windows.Forms.Label()
36
+        Me.NumericUpDown1 = New System.Windows.Forms.NumericUpDown()
37
+        Me.TextBox13 = New System.Windows.Forms.TextBox()
38
+        Me.Label18 = New System.Windows.Forms.Label()
39
+        Me.ComboBox9 = New System.Windows.Forms.ComboBox()
40
+        Me.Label20 = New System.Windows.Forms.Label()
41
+        Me.ComboBox8 = New System.Windows.Forms.ComboBox()
42
+        Me.Label17 = New System.Windows.Forms.Label()
43
+        Me.DateTimePicker5 = New System.Windows.Forms.DateTimePicker()
44
+        Me.DateTimePicker4 = New System.Windows.Forms.DateTimePicker()
45
+        Me.Label15 = New System.Windows.Forms.Label()
46
+        Me.DateTimePicker3 = New System.Windows.Forms.DateTimePicker()
47
+        Me.Label14 = New System.Windows.Forms.Label()
48
+        Me.ComboBox7 = New System.Windows.Forms.ComboBox()
49
+        Me.TextBox12 = New System.Windows.Forms.TextBox()
50
+        Me.Label13 = New System.Windows.Forms.Label()
51
+        Me.TextBox11 = New System.Windows.Forms.TextBox()
52
+        Me.Label12 = New System.Windows.Forms.Label()
53
+        Me.TextBox9 = New System.Windows.Forms.TextBox()
54
+        Me.ComboBox4 = New System.Windows.Forms.ComboBox()
55
+        Me.ComboBox3 = New System.Windows.Forms.ComboBox()
56
+        Me.ComboBox2 = New System.Windows.Forms.ComboBox()
57
+        Me.ComboBox5 = New System.Windows.Forms.ComboBox()
58
+        Me.Label11 = New System.Windows.Forms.Label()
59
+        Me.Label10 = New System.Windows.Forms.Label()
60
+        Me.Label9 = New System.Windows.Forms.Label()
61
+        Me.Label4 = New System.Windows.Forms.Label()
62
+        Me.DateTimePicker1 = New System.Windows.Forms.DateTimePicker()
63
+        Me.Button2 = New System.Windows.Forms.Button()
64
+        Me.ComboBox1 = New System.Windows.Forms.ComboBox()
65
+        Me.TextBox4 = New System.Windows.Forms.TextBox()
66
+        Me.Label28 = New System.Windows.Forms.Label()
67
+        Me.Label27 = New System.Windows.Forms.Label()
68
+        Me.Label3 = New System.Windows.Forms.Label()
69
+        Me.TextBox3 = New System.Windows.Forms.TextBox()
70
+        Me.TextBox1 = New System.Windows.Forms.TextBox()
71
+        Me.Label1 = New System.Windows.Forms.Label()
72
+        Me.Label2 = New System.Windows.Forms.Label()
73
+        Me.Label6 = New System.Windows.Forms.Label()
74
+        Me.Label16 = New System.Windows.Forms.Label()
75
+        Me.Label19 = New System.Windows.Forms.Label()
76
+        Me.Label21 = New System.Windows.Forms.Label()
77
+        Me.DataGridView1 = New System.Windows.Forms.DataGridView()
78
+        Me.NumericUpDown2 = New System.Windows.Forms.NumericUpDown()
79
+        Me.NumericUpDown4 = New System.Windows.Forms.NumericUpDown()
80
+        Me.Button1 = New System.Windows.Forms.Button()
81
+        Me.Button4 = New System.Windows.Forms.Button()
82
+        Me.Label5 = New System.Windows.Forms.Label()
83
+        Me.NumericUpDown3 = New System.Windows.Forms.NumericUpDown()
84
+        Me.Label7 = New System.Windows.Forms.Label()
85
+        Me.ComboBox6 = New System.Windows.Forms.ComboBox()
86
+        Me.DataGridView2 = New System.Windows.Forms.DataGridView()
87
+        Me.NumericUpDown5 = New System.Windows.Forms.NumericUpDown()
88
+        Me.Label8 = New System.Windows.Forms.Label()
89
+        Me.NumericUpDown6 = New System.Windows.Forms.NumericUpDown()
90
+        Me.Label22 = New System.Windows.Forms.Label()
91
+        Me.ComboBox10 = New System.Windows.Forms.ComboBox()
92
+        Me.DateTimePicker2 = New System.Windows.Forms.DateTimePicker()
93
+        Me.Label26 = New System.Windows.Forms.Label()
94
+        CType(Me.NumericUpDown1, System.ComponentModel.ISupportInitialize).BeginInit()
95
+        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
96
+        CType(Me.NumericUpDown2, System.ComponentModel.ISupportInitialize).BeginInit()
97
+        CType(Me.NumericUpDown4, System.ComponentModel.ISupportInitialize).BeginInit()
98
+        CType(Me.NumericUpDown3, System.ComponentModel.ISupportInitialize).BeginInit()
99
+        CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).BeginInit()
100
+        CType(Me.NumericUpDown5, System.ComponentModel.ISupportInitialize).BeginInit()
101
+        CType(Me.NumericUpDown6, System.ComponentModel.ISupportInitialize).BeginInit()
102
+        Me.SuspendLayout()
103
+        '
104
+        'Button3
105
+        '
106
+        Me.Button3.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
107
+        Me.Button3.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
108
+        Me.Button3.Location = New System.Drawing.Point(980, 111)
109
+        Me.Button3.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
110
+        Me.Button3.Name = "Button3"
111
+        Me.Button3.Size = New System.Drawing.Size(116, 25)
112
+        Me.Button3.TabIndex = 1019
113
+        Me.Button3.Text = "清單存檔"
114
+        Me.Button3.UseVisualStyleBackColor = True
115
+        '
116
+        'TextBox16
117
+        '
118
+        Me.TextBox16.ForeColor = System.Drawing.Color.Green
119
+        Me.TextBox16.Location = New System.Drawing.Point(485, 58)
120
+        Me.TextBox16.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
121
+        Me.TextBox16.Name = "TextBox16"
122
+        Me.TextBox16.Size = New System.Drawing.Size(271, 23)
123
+        Me.TextBox16.TabIndex = 1018
124
+        '
125
+        'Label25
126
+        '
127
+        Me.Label25.AutoSize = True
128
+        Me.Label25.ForeColor = System.Drawing.Color.Green
129
+        Me.Label25.Location = New System.Drawing.Point(428, 61)
130
+        Me.Label25.Name = "Label25"
131
+        Me.Label25.Size = New System.Drawing.Size(56, 16)
132
+        Me.Label25.TabIndex = 1017
133
+        Me.Label25.Text = "備        註"
134
+        '
135
+        'TextBox15
136
+        '
137
+        Me.TextBox15.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
138
+        Me.TextBox15.Location = New System.Drawing.Point(775, 111)
139
+        Me.TextBox15.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
140
+        Me.TextBox15.Name = "TextBox15"
141
+        Me.TextBox15.Size = New System.Drawing.Size(201, 23)
142
+        Me.TextBox15.TabIndex = 1016
143
+        '
144
+        'Label24
145
+        '
146
+        Me.Label24.AutoSize = True
147
+        Me.Label24.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
148
+        Me.Label24.Location = New System.Drawing.Point(708, 115)
149
+        Me.Label24.Name = "Label24"
150
+        Me.Label24.Size = New System.Drawing.Size(68, 16)
151
+        Me.Label24.TabIndex = 1015
152
+        Me.Label24.Text = "發票人帳號"
153
+        '
154
+        'TextBox14
155
+        '
156
+        Me.TextBox14.ForeColor = System.Drawing.Color.Green
157
+        Me.TextBox14.Location = New System.Drawing.Point(59, 58)
158
+        Me.TextBox14.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
159
+        Me.TextBox14.Name = "TextBox14"
160
+        Me.TextBox14.Size = New System.Drawing.Size(367, 23)
161
+        Me.TextBox14.TabIndex = 1014
162
+        '
163
+        'Label23
164
+        '
165
+        Me.Label23.AutoSize = True
166
+        Me.Label23.ForeColor = System.Drawing.Color.Green
167
+        Me.Label23.Location = New System.Drawing.Point(2, 61)
168
+        Me.Label23.Name = "Label23"
169
+        Me.Label23.Size = New System.Drawing.Size(56, 16)
170
+        Me.Label23.TabIndex = 1013
171
+        Me.Label23.Text = "用        途"
172
+        '
173
+        'NumericUpDown1
174
+        '
175
+        Me.NumericUpDown1.Location = New System.Drawing.Point(542, 3)
176
+        Me.NumericUpDown1.Maximum = New Decimal(New Integer() {100000000, 0, 0, 0})
177
+        Me.NumericUpDown1.Minimum = New Decimal(New Integer() {10000000, 0, 0, -2147483648})
178
+        Me.NumericUpDown1.Name = "NumericUpDown1"
179
+        Me.NumericUpDown1.Size = New System.Drawing.Size(70, 23)
180
+        Me.NumericUpDown1.TabIndex = 1011
181
+        Me.NumericUpDown1.ThousandsSeparator = True
182
+        '
183
+        'TextBox13
184
+        '
185
+        Me.TextBox13.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
186
+        Me.TextBox13.Location = New System.Drawing.Point(549, 111)
187
+        Me.TextBox13.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
188
+        Me.TextBox13.Name = "TextBox13"
189
+        Me.TextBox13.Size = New System.Drawing.Size(157, 23)
190
+        Me.TextBox13.TabIndex = 1010
191
+        Me.TextBox13.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
192
+        '
193
+        'Label18
194
+        '
195
+        Me.Label18.AutoSize = True
196
+        Me.Label18.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
197
+        Me.Label18.Location = New System.Drawing.Point(478, 114)
198
+        Me.Label18.Name = "Label18"
199
+        Me.Label18.Size = New System.Drawing.Size(71, 16)
200
+        Me.Label18.TabIndex = 1009
201
+        Me.Label18.Text = "開     票    人"
202
+        '
203
+        'ComboBox9
204
+        '
205
+        Me.ComboBox9.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
206
+        Me.ComboBox9.FormattingEnabled = True
207
+        Me.ComboBox9.Location = New System.Drawing.Point(775, 86)
208
+        Me.ComboBox9.Name = "ComboBox9"
209
+        Me.ComboBox9.Size = New System.Drawing.Size(201, 24)
210
+        Me.ComboBox9.TabIndex = 1006
211
+        '
212
+        'Label20
213
+        '
214
+        Me.Label20.AutoSize = True
215
+        Me.Label20.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
216
+        Me.Label20.Location = New System.Drawing.Point(720, 90)
217
+        Me.Label20.Name = "Label20"
218
+        Me.Label20.Size = New System.Drawing.Size(56, 16)
219
+        Me.Label20.TabIndex = 1007
220
+        Me.Label20.Text = "付款銀行"
221
+        '
222
+        'ComboBox8
223
+        '
224
+        Me.ComboBox8.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
225
+        Me.ComboBox8.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
226
+        Me.ComboBox8.FormattingEnabled = True
227
+        Me.ComboBox8.Items.AddRange(New Object() {"開票", "收票"})
228
+        Me.ComboBox8.Location = New System.Drawing.Point(505, 85)
229
+        Me.ComboBox8.Name = "ComboBox8"
230
+        Me.ComboBox8.Size = New System.Drawing.Size(201, 24)
231
+        Me.ComboBox8.TabIndex = 1004
232
+        '
233
+        'Label17
234
+        '
235
+        Me.Label17.AutoSize = True
236
+        Me.Label17.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
237
+        Me.Label17.Location = New System.Drawing.Point(155, 113)
238
+        Me.Label17.Name = "Label17"
239
+        Me.Label17.Size = New System.Drawing.Size(64, 16)
240
+        Me.Label17.TabIndex = 1003
241
+        Me.Label17.Text = "開(收)票日"
242
+        '
243
+        'DateTimePicker5
244
+        '
245
+        Me.DateTimePicker5.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
246
+        Me.DateTimePicker5.Location = New System.Drawing.Point(219, 110)
247
+        Me.DateTimePicker5.Name = "DateTimePicker5"
248
+        Me.DateTimePicker5.Size = New System.Drawing.Size(90, 23)
249
+        Me.DateTimePicker5.TabIndex = 1002
250
+        '
251
+        'DateTimePicker4
252
+        '
253
+        Me.DateTimePicker4.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
254
+        Me.DateTimePicker4.Location = New System.Drawing.Point(382, 110)
255
+        Me.DateTimePicker4.Name = "DateTimePicker4"
256
+        Me.DateTimePicker4.Size = New System.Drawing.Size(90, 23)
257
+        Me.DateTimePicker4.TabIndex = 1000
258
+        '
259
+        'Label15
260
+        '
261
+        Me.Label15.AutoSize = True
262
+        Me.Label15.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
263
+        Me.Label15.Location = New System.Drawing.Point(2, 114)
264
+        Me.Label15.Name = "Label15"
265
+        Me.Label15.Size = New System.Drawing.Size(56, 16)
266
+        Me.Label15.TabIndex = 999
267
+        Me.Label15.Text = "到  期  日"
268
+        '
269
+        'DateTimePicker3
270
+        '
271
+        Me.DateTimePicker3.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
272
+        Me.DateTimePicker3.Location = New System.Drawing.Point(59, 110)
273
+        Me.DateTimePicker3.Name = "DateTimePicker3"
274
+        Me.DateTimePicker3.Size = New System.Drawing.Size(90, 23)
275
+        Me.DateTimePicker3.TabIndex = 998
276
+        '
277
+        'Label14
278
+        '
279
+        Me.Label14.AutoSize = True
280
+        Me.Label14.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
281
+        Me.Label14.Location = New System.Drawing.Point(873, 6)
282
+        Me.Label14.Name = "Label14"
283
+        Me.Label14.Size = New System.Drawing.Size(32, 16)
284
+        Me.Label14.TabIndex = 997
285
+        Me.Label14.Text = "狀態"
286
+        '
287
+        'ComboBox7
288
+        '
289
+        Me.ComboBox7.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
290
+        Me.ComboBox7.ForeColor = System.Drawing.Color.Green
291
+        Me.ComboBox7.FormattingEnabled = True
292
+        Me.ComboBox7.Items.AddRange(New Object() {"開票", "收票"})
293
+        Me.ComboBox7.Location = New System.Drawing.Point(906, 2)
294
+        Me.ComboBox7.Name = "ComboBox7"
295
+        Me.ComboBox7.Size = New System.Drawing.Size(70, 24)
296
+        Me.ComboBox7.TabIndex = 996
297
+        '
298
+        'TextBox12
299
+        '
300
+        Me.TextBox12.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
301
+        Me.TextBox12.Location = New System.Drawing.Point(59, 86)
302
+        Me.TextBox12.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
303
+        Me.TextBox12.Name = "TextBox12"
304
+        Me.TextBox12.Size = New System.Drawing.Size(143, 23)
305
+        Me.TextBox12.TabIndex = 995
306
+        Me.TextBox12.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
307
+        '
308
+        'Label13
309
+        '
310
+        Me.Label13.AutoSize = True
311
+        Me.Label13.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
312
+        Me.Label13.Location = New System.Drawing.Point(3, 90)
313
+        Me.Label13.Name = "Label13"
314
+        Me.Label13.Size = New System.Drawing.Size(56, 16)
315
+        Me.Label13.TabIndex = 994
316
+        Me.Label13.Text = "支票號碼"
317
+        '
318
+        'TextBox11
319
+        '
320
+        Me.TextBox11.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
321
+        Me.TextBox11.Location = New System.Drawing.Point(275, 85)
322
+        Me.TextBox11.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
323
+        Me.TextBox11.Name = "TextBox11"
324
+        Me.TextBox11.Size = New System.Drawing.Size(112, 23)
325
+        Me.TextBox11.TabIndex = 993
326
+        Me.TextBox11.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
327
+        '
328
+        'Label12
329
+        '
330
+        Me.Label12.AutoSize = True
331
+        Me.Label12.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
332
+        Me.Label12.Location = New System.Drawing.Point(204, 89)
333
+        Me.Label12.Name = "Label12"
334
+        Me.Label12.Size = New System.Drawing.Size(73, 16)
335
+        Me.Label12.TabIndex = 992
336
+        Me.Label12.Text = "客戶/供應商"
337
+        '
338
+        'TextBox9
339
+        '
340
+        Me.TextBox9.ForeColor = System.Drawing.Color.Green
341
+        Me.TextBox9.Location = New System.Drawing.Point(235, 32)
342
+        Me.TextBox9.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
343
+        Me.TextBox9.Name = "TextBox9"
344
+        Me.TextBox9.Size = New System.Drawing.Size(84, 23)
345
+        Me.TextBox9.TabIndex = 988
346
+        Me.TextBox9.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
347
+        '
348
+        'ComboBox4
349
+        '
350
+        Me.ComboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
351
+        Me.ComboBox4.FormattingEnabled = True
352
+        Me.ComboBox4.Location = New System.Drawing.Point(597, 32)
353
+        Me.ComboBox4.Name = "ComboBox4"
354
+        Me.ComboBox4.Size = New System.Drawing.Size(75, 24)
355
+        Me.ComboBox4.TabIndex = 987
356
+        '
357
+        'ComboBox3
358
+        '
359
+        Me.ComboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
360
+        Me.ComboBox3.FormattingEnabled = True
361
+        Me.ComboBox3.Location = New System.Drawing.Point(490, 32)
362
+        Me.ComboBox3.Name = "ComboBox3"
363
+        Me.ComboBox3.Size = New System.Drawing.Size(105, 24)
364
+        Me.ComboBox3.TabIndex = 986
365
+        '
366
+        'ComboBox2
367
+        '
368
+        Me.ComboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
369
+        Me.ComboBox2.FormattingEnabled = True
370
+        Me.ComboBox2.Location = New System.Drawing.Point(427, 32)
371
+        Me.ComboBox2.Name = "ComboBox2"
372
+        Me.ComboBox2.Size = New System.Drawing.Size(62, 24)
373
+        Me.ComboBox2.TabIndex = 985
374
+        '
375
+        'ComboBox5
376
+        '
377
+        Me.ComboBox5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
378
+        Me.ComboBox5.FormattingEnabled = True
379
+        Me.ComboBox5.Location = New System.Drawing.Point(321, 32)
380
+        Me.ComboBox5.Name = "ComboBox5"
381
+        Me.ComboBox5.Size = New System.Drawing.Size(105, 24)
382
+        Me.ComboBox5.TabIndex = 984
383
+        '
384
+        'Label11
385
+        '
386
+        Me.Label11.AutoSize = True
387
+        Me.Label11.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
388
+        Me.Label11.Location = New System.Drawing.Point(405, 6)
389
+        Me.Label11.Name = "Label11"
390
+        Me.Label11.Size = New System.Drawing.Size(32, 16)
391
+        Me.Label11.TabIndex = 982
392
+        Me.Label11.Text = "現金"
393
+        '
394
+        'Label10
395
+        '
396
+        Me.Label10.AutoSize = True
397
+        Me.Label10.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
398
+        Me.Label10.Location = New System.Drawing.Point(510, 6)
399
+        Me.Label10.Name = "Label10"
400
+        Me.Label10.Size = New System.Drawing.Size(32, 16)
401
+        Me.Label10.TabIndex = 980
402
+        Me.Label10.Text = "支票"
403
+        '
404
+        'Label9
405
+        '
406
+        Me.Label9.AutoSize = True
407
+        Me.Label9.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
408
+        Me.Label9.Location = New System.Drawing.Point(744, 7)
409
+        Me.Label9.Name = "Label9"
410
+        Me.Label9.Size = New System.Drawing.Size(56, 16)
411
+        Me.Label9.TabIndex = 978
412
+        Me.Label9.Text = "未沖金額"
413
+        '
414
+        'Label4
415
+        '
416
+        Me.Label4.AutoSize = True
417
+        Me.Label4.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
418
+        Me.Label4.Location = New System.Drawing.Point(233, 6)
419
+        Me.Label4.Name = "Label4"
420
+        Me.Label4.Size = New System.Drawing.Size(32, 16)
421
+        Me.Label4.TabIndex = 976
422
+        Me.Label4.Text = "日期"
423
+        '
424
+        'DateTimePicker1
425
+        '
426
+        Me.DateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
427
+        Me.DateTimePicker1.Location = New System.Drawing.Point(265, 3)
428
+        Me.DateTimePicker1.Name = "DateTimePicker1"
429
+        Me.DateTimePicker1.Size = New System.Drawing.Size(90, 23)
430
+        Me.DateTimePicker1.TabIndex = 975
431
+        '
432
+        'Button2
433
+        '
434
+        Me.Button2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
435
+        Me.Button2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
436
+        Me.Button2.Location = New System.Drawing.Point(980, 85)
437
+        Me.Button2.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
438
+        Me.Button2.Name = "Button2"
439
+        Me.Button2.Size = New System.Drawing.Size(116, 25)
440
+        Me.Button2.TabIndex = 973
441
+        Me.Button2.Text = "單據資料存檔"
442
+        Me.Button2.UseVisualStyleBackColor = True
443
+        '
444
+        'ComboBox1
445
+        '
446
+        Me.ComboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
447
+        Me.ComboBox1.FormattingEnabled = True
448
+        Me.ComboBox1.Location = New System.Drawing.Point(673, 32)
449
+        Me.ComboBox1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
450
+        Me.ComboBox1.Name = "ComboBox1"
451
+        Me.ComboBox1.Size = New System.Drawing.Size(201, 24)
452
+        Me.ComboBox1.TabIndex = 972
453
+        '
454
+        'TextBox4
455
+        '
456
+        Me.TextBox4.ForeColor = System.Drawing.Color.Green
457
+        Me.TextBox4.Location = New System.Drawing.Point(59, 32)
458
+        Me.TextBox4.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
459
+        Me.TextBox4.Name = "TextBox4"
460
+        Me.TextBox4.Size = New System.Drawing.Size(61, 23)
461
+        Me.TextBox4.TabIndex = 970
462
+        Me.TextBox4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
463
+        '
464
+        'Label28
465
+        '
466
+        Me.Label28.AutoSize = True
467
+        Me.Label28.ForeColor = System.Drawing.Color.Green
468
+        Me.Label28.Location = New System.Drawing.Point(122, 36)
469
+        Me.Label28.Name = "Label28"
470
+        Me.Label28.Size = New System.Drawing.Size(44, 16)
471
+        Me.Label28.TabIndex = 969
472
+        Me.Label28.Text = "項次。"
473
+        '
474
+        'Label27
475
+        '
476
+        Me.Label27.AutoSize = True
477
+        Me.Label27.ForeColor = System.Drawing.Color.Green
478
+        Me.Label27.Location = New System.Drawing.Point(3, 35)
479
+        Me.Label27.Name = "Label27"
480
+        Me.Label27.Size = New System.Drawing.Size(56, 16)
481
+        Me.Label27.TabIndex = 968
482
+        Me.Label27.Text = "選        擇"
483
+        '
484
+        'Label3
485
+        '
486
+        Me.Label3.AutoSize = True
487
+        Me.Label3.ForeColor = System.Drawing.Color.Green
488
+        Me.Label3.Location = New System.Drawing.Point(756, 61)
489
+        Me.Label3.Name = "Label3"
490
+        Me.Label3.Size = New System.Drawing.Size(59, 16)
491
+        Me.Label3.TabIndex = 966
492
+        Me.Label3.Text = "登   錄  人"
493
+        '
494
+        'TextBox3
495
+        '
496
+        Me.TextBox3.ForeColor = System.Drawing.Color.Green
497
+        Me.TextBox3.Location = New System.Drawing.Point(815, 58)
498
+        Me.TextBox3.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
499
+        Me.TextBox3.Name = "TextBox3"
500
+        Me.TextBox3.Size = New System.Drawing.Size(59, 23)
501
+        Me.TextBox3.TabIndex = 965
502
+        Me.TextBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
503
+        '
504
+        'TextBox1
505
+        '
506
+        Me.TextBox1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
507
+        Me.TextBox1.Location = New System.Drawing.Point(109, 3)
508
+        Me.TextBox1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
509
+        Me.TextBox1.Name = "TextBox1"
510
+        Me.TextBox1.Size = New System.Drawing.Size(122, 23)
511
+        Me.TextBox1.TabIndex = 963
512
+        Me.TextBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
513
+        '
514
+        'Label1
515
+        '
516
+        Me.Label1.AutoSize = True
517
+        Me.Label1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
518
+        Me.Label1.Location = New System.Drawing.Point(2, 6)
519
+        Me.Label1.Name = "Label1"
520
+        Me.Label1.Size = New System.Drawing.Size(104, 16)
521
+        Me.Label1.TabIndex = 964
522
+        Me.Label1.Text = "支票收支群組單號"
523
+        '
524
+        'Label2
525
+        '
526
+        Me.Label2.AutoSize = True
527
+        Me.Label2.ForeColor = System.Drawing.Color.Green
528
+        Me.Label2.Location = New System.Drawing.Point(164, 35)
529
+        Me.Label2.Name = "Label2"
530
+        Me.Label2.Size = New System.Drawing.Size(73, 16)
531
+        Me.Label2.TabIndex = 974
532
+        Me.Label2.Text = "會科-關鍵字"
533
+        '
534
+        'Label6
535
+        '
536
+        Me.Label6.AutoSize = True
537
+        Me.Label6.Location = New System.Drawing.Point(1, 16)
538
+        Me.Label6.Name = "Label6"
539
+        Me.Label6.Size = New System.Drawing.Size(978, 16)
540
+        Me.Label6.TabIndex = 989
541
+        Me.Label6.Text = "_________________________________________________________________________________" &
542
+    "________________________________________________________________________________" &
543
+    "_________________________________"
544
+        '
545
+        'Label16
546
+        '
547
+        Me.Label16.AutoSize = True
548
+        Me.Label16.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
549
+        Me.Label16.Location = New System.Drawing.Point(315, 114)
550
+        Me.Label16.Name = "Label16"
551
+        Me.Label16.Size = New System.Drawing.Size(68, 16)
552
+        Me.Label16.TabIndex = 1001
553
+        Me.Label16.Text = "預定兌現日"
554
+        '
555
+        'Label19
556
+        '
557
+        Me.Label19.AutoSize = True
558
+        Me.Label19.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
559
+        Me.Label19.Location = New System.Drawing.Point(450, 89)
560
+        Me.Label19.Name = "Label19"
561
+        Me.Label19.Size = New System.Drawing.Size(56, 16)
562
+        Me.Label19.TabIndex = 1005
563
+        Me.Label19.Text = "兌現科目"
564
+        '
565
+        'Label21
566
+        '
567
+        Me.Label21.AutoSize = True
568
+        Me.Label21.ForeColor = System.Drawing.Color.Black
569
+        Me.Label21.Location = New System.Drawing.Point(3, 123)
570
+        Me.Label21.Name = "Label21"
571
+        Me.Label21.Size = New System.Drawing.Size(978, 16)
572
+        Me.Label21.TabIndex = 1008
573
+        Me.Label21.Text = "_________________________________________________________________________________" &
574
+    "________________________________________________________________________________" &
575
+    "_________________________________"
576
+        '
577
+        'DataGridView1
578
+        '
579
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
580
+        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
581
+        Me.DataGridView1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
582
+            Or System.Windows.Forms.AnchorStyles.Left) _
583
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
584
+        Me.DataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
585
+        Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
586
+        Me.DataGridView1.Location = New System.Drawing.Point(5, 140)
587
+        Me.DataGridView1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
588
+        Me.DataGridView1.Name = "DataGridView1"
589
+        Me.DataGridView1.RowHeadersWidth = 5
590
+        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
591
+        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle2
592
+        Me.DataGridView1.RowTemplate.Height = 24
593
+        Me.DataGridView1.Size = New System.Drawing.Size(1091, 339)
594
+        Me.DataGridView1.TabIndex = 967
595
+        '
596
+        'NumericUpDown2
597
+        '
598
+        Me.NumericUpDown2.Location = New System.Drawing.Point(437, 3)
599
+        Me.NumericUpDown2.Maximum = New Decimal(New Integer() {100000000, 0, 0, 0})
600
+        Me.NumericUpDown2.Minimum = New Decimal(New Integer() {10000000, 0, 0, -2147483648})
601
+        Me.NumericUpDown2.Name = "NumericUpDown2"
602
+        Me.NumericUpDown2.Size = New System.Drawing.Size(70, 23)
603
+        Me.NumericUpDown2.TabIndex = 1020
604
+        Me.NumericUpDown2.ThousandsSeparator = True
605
+        '
606
+        'NumericUpDown4
607
+        '
608
+        Me.NumericUpDown4.Location = New System.Drawing.Point(800, 3)
609
+        Me.NumericUpDown4.Maximum = New Decimal(New Integer() {100000000, 0, 0, 0})
610
+        Me.NumericUpDown4.Minimum = New Decimal(New Integer() {10000000, 0, 0, -2147483648})
611
+        Me.NumericUpDown4.Name = "NumericUpDown4"
612
+        Me.NumericUpDown4.Size = New System.Drawing.Size(70, 23)
613
+        Me.NumericUpDown4.TabIndex = 1022
614
+        Me.NumericUpDown4.ThousandsSeparator = True
615
+        '
616
+        'Button1
617
+        '
618
+        Me.Button1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
619
+        Me.Button1.ForeColor = System.Drawing.Color.Green
620
+        Me.Button1.Location = New System.Drawing.Point(980, 32)
621
+        Me.Button1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
622
+        Me.Button1.Name = "Button1"
623
+        Me.Button1.Size = New System.Drawing.Size(116, 25)
624
+        Me.Button1.TabIndex = 1023
625
+        Me.Button1.Text = "新增一筆資料"
626
+        Me.Button1.UseVisualStyleBackColor = True
627
+        '
628
+        'Button4
629
+        '
630
+        Me.Button4.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
631
+        Me.Button4.ForeColor = System.Drawing.Color.Red
632
+        Me.Button4.Location = New System.Drawing.Point(980, 58)
633
+        Me.Button4.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
634
+        Me.Button4.Name = "Button4"
635
+        Me.Button4.Size = New System.Drawing.Size(116, 25)
636
+        Me.Button4.TabIndex = 1024
637
+        Me.Button4.Text = "刪除選中的資料"
638
+        Me.Button4.UseVisualStyleBackColor = True
639
+        '
640
+        'Label5
641
+        '
642
+        Me.Label5.AutoSize = True
643
+        Me.Label5.Location = New System.Drawing.Point(3, 70)
644
+        Me.Label5.Name = "Label5"
645
+        Me.Label5.Size = New System.Drawing.Size(978, 16)
646
+        Me.Label5.TabIndex = 1025
647
+        Me.Label5.Text = "_________________________________________________________________________________" &
648
+    "________________________________________________________________________________" &
649
+    "_________________________________"
650
+        '
651
+        'NumericUpDown3
652
+        '
653
+        Me.NumericUpDown3.Location = New System.Drawing.Point(670, 3)
654
+        Me.NumericUpDown3.Maximum = New Decimal(New Integer() {100000000, 0, 0, 0})
655
+        Me.NumericUpDown3.Minimum = New Decimal(New Integer() {10000000, 0, 0, -2147483648})
656
+        Me.NumericUpDown3.Name = "NumericUpDown3"
657
+        Me.NumericUpDown3.Size = New System.Drawing.Size(70, 23)
658
+        Me.NumericUpDown3.TabIndex = 1027
659
+        Me.NumericUpDown3.ThousandsSeparator = True
660
+        '
661
+        'Label7
662
+        '
663
+        Me.Label7.AutoSize = True
664
+        Me.Label7.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
665
+        Me.Label7.Location = New System.Drawing.Point(614, 7)
666
+        Me.Label7.Name = "Label7"
667
+        Me.Label7.Size = New System.Drawing.Size(56, 16)
668
+        Me.Label7.TabIndex = 1026
669
+        Me.Label7.Text = "應沖金額"
670
+        '
671
+        'ComboBox6
672
+        '
673
+        Me.ComboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
674
+        Me.ComboBox6.FormattingEnabled = True
675
+        Me.ComboBox6.Location = New System.Drawing.Point(775, 143)
676
+        Me.ComboBox6.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
677
+        Me.ComboBox6.Name = "ComboBox6"
678
+        Me.ComboBox6.Size = New System.Drawing.Size(113, 24)
679
+        Me.ComboBox6.TabIndex = 1028
680
+        '
681
+        'DataGridView2
682
+        '
683
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
684
+        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
685
+        Me.DataGridView2.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
686
+            Or System.Windows.Forms.AnchorStyles.Left) _
687
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
688
+        Me.DataGridView2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
689
+        Me.DataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
690
+        Me.DataGridView2.Location = New System.Drawing.Point(24, 165)
691
+        Me.DataGridView2.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
692
+        Me.DataGridView2.Name = "DataGridView2"
693
+        Me.DataGridView2.RowHeadersWidth = 5
694
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
695
+        Me.DataGridView2.RowsDefaultCellStyle = DataGridViewCellStyle4
696
+        Me.DataGridView2.RowTemplate.Height = 24
697
+        Me.DataGridView2.Size = New System.Drawing.Size(262, 293)
698
+        Me.DataGridView2.TabIndex = 1029
699
+        '
700
+        'NumericUpDown5
701
+        '
702
+        Me.NumericUpDown5.Location = New System.Drawing.Point(906, 32)
703
+        Me.NumericUpDown5.Maximum = New Decimal(New Integer() {100000000, 0, 0, 0})
704
+        Me.NumericUpDown5.Minimum = New Decimal(New Integer() {10000000, 0, 0, -2147483648})
705
+        Me.NumericUpDown5.Name = "NumericUpDown5"
706
+        Me.NumericUpDown5.Size = New System.Drawing.Size(70, 23)
707
+        Me.NumericUpDown5.TabIndex = 1031
708
+        Me.NumericUpDown5.ThousandsSeparator = True
709
+        '
710
+        'Label8
711
+        '
712
+        Me.Label8.AutoSize = True
713
+        Me.Label8.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
714
+        Me.Label8.Location = New System.Drawing.Point(874, 35)
715
+        Me.Label8.Name = "Label8"
716
+        Me.Label8.Size = New System.Drawing.Size(32, 16)
717
+        Me.Label8.TabIndex = 1030
718
+        Me.Label8.Text = "現金"
719
+        '
720
+        'NumericUpDown6
721
+        '
722
+        Me.NumericUpDown6.Location = New System.Drawing.Point(906, 58)
723
+        Me.NumericUpDown6.Maximum = New Decimal(New Integer() {100000000, 0, 0, 0})
724
+        Me.NumericUpDown6.Minimum = New Decimal(New Integer() {10000000, 0, 0, -2147483648})
725
+        Me.NumericUpDown6.Name = "NumericUpDown6"
726
+        Me.NumericUpDown6.Size = New System.Drawing.Size(70, 23)
727
+        Me.NumericUpDown6.TabIndex = 1033
728
+        Me.NumericUpDown6.ThousandsSeparator = True
729
+        '
730
+        'Label22
731
+        '
732
+        Me.Label22.AutoSize = True
733
+        Me.Label22.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
734
+        Me.Label22.Location = New System.Drawing.Point(874, 61)
735
+        Me.Label22.Name = "Label22"
736
+        Me.Label22.Size = New System.Drawing.Size(32, 16)
737
+        Me.Label22.TabIndex = 1032
738
+        Me.Label22.Text = "支票"
739
+        '
740
+        'ComboBox10
741
+        '
742
+        Me.ComboBox10.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
743
+        Me.ComboBox10.ForeColor = System.Drawing.Color.Green
744
+        Me.ComboBox10.FormattingEnabled = True
745
+        Me.ComboBox10.Items.AddRange(New Object() {"開票", "收票"})
746
+        Me.ComboBox10.Location = New System.Drawing.Point(775, 174)
747
+        Me.ComboBox10.Name = "ComboBox10"
748
+        Me.ComboBox10.Size = New System.Drawing.Size(113, 24)
749
+        Me.ComboBox10.TabIndex = 1034
750
+        '
751
+        'DateTimePicker2
752
+        '
753
+        Me.DateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
754
+        Me.DateTimePicker2.Location = New System.Drawing.Point(775, 204)
755
+        Me.DateTimePicker2.Name = "DateTimePicker2"
756
+        Me.DateTimePicker2.Size = New System.Drawing.Size(113, 23)
757
+        Me.DateTimePicker2.TabIndex = 1035
758
+        '
759
+        'Label26
760
+        '
761
+        Me.Label26.AutoSize = True
762
+        Me.Label26.ForeColor = System.Drawing.Color.Red
763
+        Me.Label26.Location = New System.Drawing.Point(3, 483)
764
+        Me.Label26.Name = "Label26"
765
+        Me.Label26.Size = New System.Drawing.Size(406, 16)
766
+        Me.Label26.TabIndex = 1036
767
+        Me.Label26.Text = "1、折讓會科,盡量使用收付現金狀態。2、折讓會科在金額中請輸入負數。"
768
+        '
769
+        '財務單具申請
770
+        '
771
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
772
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
773
+        Me.ClientSize = New System.Drawing.Size(1104, 506)
774
+        Me.Controls.Add(Me.Label26)
775
+        Me.Controls.Add(Me.DateTimePicker2)
776
+        Me.Controls.Add(Me.ComboBox10)
777
+        Me.Controls.Add(Me.NumericUpDown6)
778
+        Me.Controls.Add(Me.Label22)
779
+        Me.Controls.Add(Me.NumericUpDown5)
780
+        Me.Controls.Add(Me.Label8)
781
+        Me.Controls.Add(Me.DataGridView2)
782
+        Me.Controls.Add(Me.ComboBox6)
783
+        Me.Controls.Add(Me.NumericUpDown3)
784
+        Me.Controls.Add(Me.Label7)
785
+        Me.Controls.Add(Me.Button4)
786
+        Me.Controls.Add(Me.Button1)
787
+        Me.Controls.Add(Me.NumericUpDown4)
788
+        Me.Controls.Add(Me.NumericUpDown2)
789
+        Me.Controls.Add(Me.Button3)
790
+        Me.Controls.Add(Me.TextBox16)
791
+        Me.Controls.Add(Me.Label25)
792
+        Me.Controls.Add(Me.TextBox15)
793
+        Me.Controls.Add(Me.Label24)
794
+        Me.Controls.Add(Me.TextBox14)
795
+        Me.Controls.Add(Me.Label23)
796
+        Me.Controls.Add(Me.NumericUpDown1)
797
+        Me.Controls.Add(Me.TextBox13)
798
+        Me.Controls.Add(Me.Label18)
799
+        Me.Controls.Add(Me.ComboBox9)
800
+        Me.Controls.Add(Me.Label20)
801
+        Me.Controls.Add(Me.ComboBox8)
802
+        Me.Controls.Add(Me.Label17)
803
+        Me.Controls.Add(Me.DateTimePicker5)
804
+        Me.Controls.Add(Me.DateTimePicker4)
805
+        Me.Controls.Add(Me.Label15)
806
+        Me.Controls.Add(Me.DateTimePicker3)
807
+        Me.Controls.Add(Me.Label14)
808
+        Me.Controls.Add(Me.ComboBox7)
809
+        Me.Controls.Add(Me.TextBox12)
810
+        Me.Controls.Add(Me.Label13)
811
+        Me.Controls.Add(Me.TextBox11)
812
+        Me.Controls.Add(Me.Label12)
813
+        Me.Controls.Add(Me.TextBox9)
814
+        Me.Controls.Add(Me.ComboBox4)
815
+        Me.Controls.Add(Me.ComboBox3)
816
+        Me.Controls.Add(Me.ComboBox2)
817
+        Me.Controls.Add(Me.ComboBox5)
818
+        Me.Controls.Add(Me.Label11)
819
+        Me.Controls.Add(Me.Label10)
820
+        Me.Controls.Add(Me.Label9)
821
+        Me.Controls.Add(Me.Label4)
822
+        Me.Controls.Add(Me.DateTimePicker1)
823
+        Me.Controls.Add(Me.Button2)
824
+        Me.Controls.Add(Me.ComboBox1)
825
+        Me.Controls.Add(Me.TextBox4)
826
+        Me.Controls.Add(Me.Label28)
827
+        Me.Controls.Add(Me.Label27)
828
+        Me.Controls.Add(Me.Label3)
829
+        Me.Controls.Add(Me.TextBox3)
830
+        Me.Controls.Add(Me.TextBox1)
831
+        Me.Controls.Add(Me.Label1)
832
+        Me.Controls.Add(Me.Label2)
833
+        Me.Controls.Add(Me.Label6)
834
+        Me.Controls.Add(Me.Label16)
835
+        Me.Controls.Add(Me.Label19)
836
+        Me.Controls.Add(Me.Label21)
837
+        Me.Controls.Add(Me.DataGridView1)
838
+        Me.Controls.Add(Me.Label5)
839
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
840
+        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
841
+        Me.Name = "財務單具申請"
842
+        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
843
+        Me.Text = "財務單具申請"
844
+        CType(Me.NumericUpDown1, System.ComponentModel.ISupportInitialize).EndInit()
845
+        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
846
+        CType(Me.NumericUpDown2, System.ComponentModel.ISupportInitialize).EndInit()
847
+        CType(Me.NumericUpDown4, System.ComponentModel.ISupportInitialize).EndInit()
848
+        CType(Me.NumericUpDown3, System.ComponentModel.ISupportInitialize).EndInit()
849
+        CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).EndInit()
850
+        CType(Me.NumericUpDown5, System.ComponentModel.ISupportInitialize).EndInit()
851
+        CType(Me.NumericUpDown6, System.ComponentModel.ISupportInitialize).EndInit()
852
+        Me.ResumeLayout(False)
853
+        Me.PerformLayout()
854
+
855
+    End Sub
856
+
857
+    Friend WithEvents Button3 As Button
858
+    Friend WithEvents TextBox16 As TextBox
859
+    Friend WithEvents Label25 As Label
860
+    Friend WithEvents TextBox15 As TextBox
861
+    Friend WithEvents Label24 As Label
862
+    Friend WithEvents TextBox14 As TextBox
863
+    Friend WithEvents Label23 As Label
864
+    Friend WithEvents NumericUpDown1 As NumericUpDown
865
+    Friend WithEvents TextBox13 As TextBox
866
+    Friend WithEvents Label18 As Label
867
+    Friend WithEvents ComboBox9 As ComboBox
868
+    Friend WithEvents Label20 As Label
869
+    Friend WithEvents ComboBox8 As ComboBox
870
+    Friend WithEvents Label17 As Label
871
+    Friend WithEvents DateTimePicker5 As DateTimePicker
872
+    Friend WithEvents DateTimePicker4 As DateTimePicker
873
+    Friend WithEvents Label15 As Label
874
+    Friend WithEvents DateTimePicker3 As DateTimePicker
875
+    Friend WithEvents Label14 As Label
876
+    Friend WithEvents ComboBox7 As ComboBox
877
+    Friend WithEvents TextBox12 As TextBox
878
+    Friend WithEvents Label13 As Label
879
+    Friend WithEvents TextBox11 As TextBox
880
+    Friend WithEvents Label12 As Label
881
+    Friend WithEvents TextBox9 As TextBox
882
+    Friend WithEvents ComboBox4 As ComboBox
883
+    Friend WithEvents ComboBox3 As ComboBox
884
+    Friend WithEvents ComboBox2 As ComboBox
885
+    Friend WithEvents ComboBox5 As ComboBox
886
+    Friend WithEvents Label11 As Label
887
+    Friend WithEvents Label10 As Label
888
+    Friend WithEvents Label9 As Label
889
+    Friend WithEvents Label4 As Label
890
+    Friend WithEvents DateTimePicker1 As DateTimePicker
891
+    Friend WithEvents Button2 As Button
892
+    Friend WithEvents ComboBox1 As ComboBox
893
+    Friend WithEvents TextBox4 As TextBox
894
+    Friend WithEvents Label28 As Label
895
+    Friend WithEvents Label27 As Label
896
+    Friend WithEvents Label3 As Label
897
+    Friend WithEvents TextBox3 As TextBox
898
+    Friend WithEvents TextBox1 As TextBox
899
+    Friend WithEvents Label1 As Label
900
+    Friend WithEvents Label2 As Label
901
+    Friend WithEvents Label6 As Label
902
+    Friend WithEvents Label16 As Label
903
+    Friend WithEvents Label19 As Label
904
+    Friend WithEvents Label21 As Label
905
+    Friend WithEvents DataGridView1 As DataGridView
906
+    Friend WithEvents NumericUpDown2 As NumericUpDown
907
+    Friend WithEvents NumericUpDown4 As NumericUpDown
908
+    Friend WithEvents Button1 As Button
909
+    Friend WithEvents Button4 As Button
910
+    Friend WithEvents Label5 As Label
911
+    Friend WithEvents NumericUpDown3 As NumericUpDown
912
+    Friend WithEvents Label7 As Label
913
+    Friend WithEvents ComboBox6 As ComboBox
914
+    Friend WithEvents DataGridView2 As DataGridView
915
+    Friend WithEvents NumericUpDown5 As NumericUpDown
916
+    Friend WithEvents Label8 As Label
917
+    Friend WithEvents NumericUpDown6 As NumericUpDown
918
+    Friend WithEvents Label22 As Label
919
+    Friend WithEvents ComboBox10 As ComboBox
920
+    Friend WithEvents DateTimePicker2 As DateTimePicker
921
+    Friend WithEvents Label26 As Label
922
+End Class

+ 120
- 0
MaoOrange-Hongji/財務系統管理/財務單具申請.resx ファイルの表示

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

+ 279
- 0
MaoOrange-Hongji/財務系統管理/財務單具申請.vb ファイルの表示

@@ -0,0 +1,279 @@
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 = 145
14
+    End Sub
15
+    Private Sub Set_費用清單()
16
+        DataGridView1.DataSource = Nothing : ds.Clear()
17
+        DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
18
+        DataGridView1.ColumnHeadersHeight = 40
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 = 140 : DataGridView1.Columns(3).FillWeight = 300
25
+        DataGridView1.Columns(4).FillWeight = 120 : DataGridView1.Columns(5).FillWeight = 120 : DataGridView1.Columns(6).FillWeight = 120 : DataGridView1.Columns(7).FillWeight = 120
26
+        DataGridView1.Columns(8).FillWeight = 200 : DataGridView1.Columns(9).Visible = False : DataGridView1.Columns(10).FillWeight = 110 : DataGridView1.Columns(11).Visible = False
27
+        DataGridView1.Columns(12).FillWeight = 200 : DataGridView1.Columns(13).FillWeight = 150 : DataGridView1.Columns(14).FillWeight = 150 : DataGridView1.Columns(15).FillWeight = 150
28
+        DataGridView1.Columns(16).Visible = False : DataGridView1.Columns(17).Visible = False : DataGridView1.Columns(18).Visible = False : DataGridView1.Columns(19).Visible = False
29
+        DataGridView1.Columns(20).FillWeight = 100 : DataGridView1.Columns(21).Visible = False
30
+
31
+        DataGridView1.Columns(1).ReadOnly = True : DataGridView1.Columns(2).ReadOnly = True : DataGridView1.Columns(10).ReadOnly = True : DataGridView1.Columns(20).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(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(1).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
36
+        DataGridView1.Columns(2).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(2).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
37
+        DataGridView1.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(4).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
38
+        DataGridView1.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(5).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
39
+        DataGridView1.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
40
+        DataGridView1.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : DataGridView1.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
41
+        DataGridView1.Columns(10).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(10).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
42
+        DataGridView1.Columns(12).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(12).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
43
+        DataGridView1.Columns(13).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(13).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
44
+        DataGridView1.Columns(14).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(14).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
45
+        DataGridView1.Columns(15).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(15).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
46
+        DataGridView1.Columns(20).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(20).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
47
+
48
+        DataGridView1.EditMode = DataGridViewEditMode.EditOnEnter
49
+
50
+        NumericUpDown1.Value = 0 : NumericUpDown2.Value = 0
51
+        For i As Integer = 0 To DataGridView1.Rows.Count - 1
52
+            If 財務單申請狀態 = "應付" Then
53
+                DataGridView1.Columns(5).ReadOnly = True : DataGridView1.Columns(7).ReadOnly = True
54
+                If DataGridView1.Rows(i).Cells("開票").Value < 0 Then : Else : NumericUpDown1.Value = NumericUpDown1.Value + DataGridView1.Rows(i).Cells("開票").Value : End If
55
+                If DataGridView1.Rows(i).Cells("支出").Value < 0 Then : Else : NumericUpDown2.Value = NumericUpDown2.Value + DataGridView1.Rows(i).Cells("支出").Value : End If
56
+            ElseIf 財務單申請狀態 = "應收" Then
57
+                DataGridView1.Columns(4).ReadOnly = True : DataGridView1.Columns(6).ReadOnly = True
58
+                If DataGridView1.Rows(i).Cells("收票").Value < 0 Then : Else : NumericUpDown1.Value = NumericUpDown1.Value + DataGridView1.Rows(i).Cells("收票").Value : End If
59
+                If DataGridView1.Rows(i).Cells("現金").Value < 0 Then : Else : NumericUpDown2.Value = NumericUpDown2.Value + DataGridView1.Rows(i).Cells("現金").Value : End If
60
+            End If
61
+        Next i
62
+        NumericUpDown4.Value = NumericUpDown3.Value - NumericUpDown2.Value - NumericUpDown1.Value
63
+    End Sub
64
+
65
+    Private Sub ComboBox1下拉表單資料載入()
66
+        PA = ComboBox4.Text
67
+        If ComboBox7.Text = "付現" Then : SQL_會計科目_第三階_應付_不含流動票務()
68
+        ElseIf ComboBox7.Text = "開票" Then : SQL_會計科目_第三階_應付_只含流動票務() : End If
69
+        ComboBox1.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox1.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
70
+        If ComboBox1.Items.Count <> 0 Then : ComboBox1.SelectedIndex = 0 : End If
71
+    End Sub
72
+    Private Sub ComboBox2下拉表單資料載入()
73
+        If ComboBox7.Text = "付現" Then : SQL_會計科目_第一階_應付_不含流動票務()
74
+        ElseIf ComboBox7.Text = "開票" Then : SQL_會計科目_第一階_應付_只含流動票務() : End If
75
+        ComboBox5.Items.Clear() : ComboBox2.Items.Clear() : While (dr.Read()) : ComboBox5.Items.Add(dr("第一階")) : ComboBox2.Items.Add(dr("編號")) : End While : conn.Close()
76
+    End Sub
77
+    Private Sub ComboBox3下拉表單資料載入()
78
+        PA = ComboBox2.Text
79
+        If ComboBox7.Text = "付現" Then : SQL_會計科目_第二階_應付_不含流動票務()
80
+        ElseIf ComboBox7.Text = "開票" Then : SQL_會計科目_第二階_應付_只含流動票務() : End If
81
+        ComboBox3.Items.Clear() : ComboBox4.Items.Clear() : While (dr.Read()) : ComboBox3.Items.Add(dr("第二階")) : ComboBox4.Items.Add(dr("編號")) : End While : conn.Close() : PA = ""
82
+    End Sub
83
+    Private Sub ComboBox8下拉表單資料載入()
84
+        SQL_支票收支單申請_兌現科目_下拉清單二()
85
+        ComboBox8.Items.Clear() : ComboBox10.Items.Clear() : While (dr.Read()) : ComboBox8.Items.Add(dr("會計科目")) : ComboBox10.Items.Add(dr("編號")) : End While : conn.Close()
86
+    End Sub
87
+    Private Sub ComboBox9下拉表單資料載入_開票()
88
+        SQL_支票收支單申請_兌現科目_下拉清單一()
89
+        ComboBox9.Items.Clear() : While (dr.Read()) : ComboBox9.Items.Add(dr("會計科目")) : End While : conn.Close()
90
+    End Sub
91
+    Private Sub 開立營運成本收支單_單號生成()
92
+        Dim NUM1 As Integer
93
+        For i As Integer = 1 To 999
94
+            NUM1 = 0 + i
95
+            If NUM1 < 10 Then : TextBox1.Text = "OE-" & DTP1 & "-00" & NUM1
96
+            ElseIf NUM1 > 9 And NUM1 < 100 Then : TextBox1.Text = "OE-" & DTP1 & "-0" & NUM1
97
+            ElseIf NUM1 > 99 Then : TextBox1.Text = "OE-" & DTP1 & "-" & NUM1 : End If : PA = TextBox1.Text
98
+            SQL_營運成本收支單申請_支付單號流水號()
99
+            If dr.Read() Then : Else : i = 999 : conn.Close() : End If : conn.Close()
100
+        Next
101
+    End Sub
102
+    Private Sub 財務單具申請_Load(sender As Object, e As EventArgs) Handles MyBase.Load
103
+        conn.Close() : Set_清單1()
104
+        TextBox1.Enabled = False : DateTimePicker1.Enabled = False : TextBox3.Enabled = False : NumericUpDown3.Enabled = False : NumericUpDown4.Enabled = False
105
+        NumericUpDown1.Enabled = False : NumericUpDown2.Enabled = False
106
+        ComboBox6.Visible = False : ComboBox10.Visible = False : DataGridView2.Visible = False : DateTimePicker2.Visible = False
107
+        NumericUpDown3.Value = 收付應沖金額 : TextBox3.Text = gUserName : DateTimePicker1.Value = DTP
108
+        If 財務單申請狀態 = "應付" Then : ComboBox7.Items.Clear() : ComboBox7.Items.Add("付現") : ComboBox7.Items.Add("開票") : ComboBox7.SelectedIndex = 0
109
+        ElseIf 財務單申請狀態 = "應收" Then : ComboBox7.Items.Clear() : ComboBox7.Items.Add("收現") : ComboBox7.Items.Add("收票") : ComboBox7.SelectedIndex = 0 : End If
110
+
111
+        ComboBox2下拉表單資料載入() : ComboBox8下拉表單資料載入() : ComboBox9下拉表單資料載入_開票()
112
+
113
+        If 收付對應財務單號 = "" Then : 開立營運成本收支單_單號生成()
114
+        ElseIf 收付對應財務單號 <> "" Then : TextBox1.Text = 收付對應財務單號 : End If
115
+        Set_費用清單()
116
+        PA = 收付對應客戶供應商編號
117
+        SQL_支票收支單客戶供應商查詢()
118
+        If dr.Read() Then
119
+            TextBox11.Text = dr("供應商")
120
+        End If
121
+    End Sub
122
+    Private Sub 財務單具申請_Closed(sender As Object, e As EventArgs) Handles MyBase.Closed
123
+        SQL_應收應付單號連接暫存檔刪除()
124
+    End Sub
125
+    Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView1.CellClick
126
+        If e.RowIndex = -1 Then : Else
127
+            ComboBox8下拉表單資料載入()
128
+            TextBox15.Text = DataGridView1.Rows(e.RowIndex).Cells("發票人帳號").Value.ToString : TextBox13.Text = DataGridView1.Rows(e.RowIndex).Cells("開票人").Value.ToString
129
+            TextBox12.Text = DataGridView1.Rows(e.RowIndex).Cells("支票號碼").Value.ToString : ComboBox9.Text = DataGridView1.Rows(e.RowIndex).Cells("付款銀行").Value.ToString
130
+            ComboBox10.Text = DataGridView1.Rows(e.RowIndex).Cells("兌現科目").Value.ToString : ComboBox7.Text = DataGridView1.Rows(e.RowIndex).Cells("狀態").Value.ToString
131
+            TextBox16.Text = DataGridView1.Rows(e.RowIndex).Cells("備註").Value.ToString : TextBox3.Text = DataGridView1.Rows(e.RowIndex).Cells("登錄人").Value.ToString
132
+            TextBox14.Text = DataGridView1.Rows(e.RowIndex).Cells("用途").Value.ToString : TextBox4.Text = DataGridView1.Rows(e.RowIndex).Cells("項次").Value.ToString
133
+            TextBox9.Text = DataGridView1.Rows(e.RowIndex).Cells("會計科目").Value.ToString : ComboBox1.Text = DataGridView1.Rows(e.RowIndex).Cells("會計科目").Value.ToString
134
+
135
+            If DataGridView1("到期日", 0).Value.ToString = "" Then : Else : DateTimePicker3.Value = DataGridView1("到期日", 0).Value.ToString : End If
136
+            If DataGridView1("預定兌現日", 0).Value.ToString = "" Then : Else : DateTimePicker4.Value = DataGridView1("預定兌現日", 0).Value.ToString : End If
137
+            If DataGridView1("開收票日", 0).Value.ToString = "" Then : Else : DateTimePicker5.Value = DataGridView1("開收票日", 0).Value.ToString : End If
138
+
139
+            If 財務單申請狀態 = "應付" Then
140
+                NumericUpDown5.Value = DataGridView1.Rows(e.RowIndex).Cells("支出").Value
141
+                NumericUpDown6.Value = DataGridView1.Rows(e.RowIndex).Cells("開票").Value
142
+            ElseIf 財務單申請狀態 = "應收" Then
143
+                NumericUpDown5.Value = DataGridView1.Rows(e.RowIndex).Cells("現金").Value
144
+                NumericUpDown6.Value = DataGridView1.Rows(e.RowIndex).Cells("收票").Value
145
+            End If
146
+        End If
147
+    End Sub
148
+    Private Sub DataGridView1_CellContentCl(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit
149
+        Dim EU1 As String : Dim EU2 As String : Dim EU3 As String
150
+        EU1 = DataGridView1("到期日", e.RowIndex).Value.ToString : EU2 = DataGridView1("預定兌現日", e.RowIndex).Value.ToString : EU3 = DataGridView1("開收票日", e.RowIndex).Value.ToString
151
+        If EU1 = "" Then : Else : DateTimePicker3.Value = EU1 : DataGridView1.Rows(e.RowIndex).Cells("到期日").Value = Format(DateTimePicker3.Value, "yyyy/MM/dd") : End If
152
+        If EU2 = "" Then : Else : DateTimePicker4.Value = EU2 : DataGridView1.Rows(e.RowIndex).Cells("預定兌現日").Value = Format(DateTimePicker4.Value, "yyyy/MM/dd") : End If
153
+        If EU3 = "" Then : Else : DateTimePicker5.Value = EU3 : DataGridView1.Rows(e.RowIndex).Cells("開收票日").Value = Format(DateTimePicker5.Value, "yyyy/MM/dd") : End If
154
+    End Sub
155
+    Private Sub ComboBox5_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox5.TextChanged
156
+        ComboBox2.SelectedIndex = ComboBox5.SelectedIndex : TextBox9.Text = "" : ComboBox3下拉表單資料載入() : ComboBox1下拉表單資料載入()
157
+    End Sub
158
+    Private Sub ComboBox2_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox2.TextChanged
159
+        ComboBox5.SelectedIndex = ComboBox2.SelectedIndex : ComboBox3下拉表單資料載入() : ComboBox1下拉表單資料載入()
160
+    End Sub
161
+    Private Sub ComboBox3_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox3.TextChanged
162
+        ComboBox4.SelectedIndex = ComboBox3.SelectedIndex : ComboBox1下拉表單資料載入()
163
+    End Sub
164
+    Private Sub ComboBox4_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox4.TextChanged
165
+        ComboBox3.SelectedIndex = ComboBox4.SelectedIndex : ComboBox1下拉表單資料載入()
166
+    End Sub
167
+    Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged
168
+        ComboBox6.SelectedIndex = ComboBox1.SelectedIndex
169
+    End Sub
170
+    Private Sub ComboBox6_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox6.SelectedIndexChanged
171
+        ComboBox1.SelectedIndex = ComboBox6.SelectedIndex
172
+    End Sub
173
+    Private Sub ComboBox8_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox8.SelectedIndexChanged
174
+        ComboBox10.SelectedIndex = ComboBox8.SelectedIndex
175
+    End Sub
176
+    Private Sub ComboBox10_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox10.SelectedIndexChanged
177
+        ComboBox8.SelectedIndex = ComboBox10.SelectedIndex
178
+    End Sub
179
+    Private Sub ComboBox7_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox7.SelectedIndexChanged
180
+        ComboBox2下拉表單資料載入()
181
+        If ComboBox7.Text = "付現" Then
182
+            TextBox12.Enabled = False : TextBox11.Enabled = False : ComboBox8.Enabled = False : ComboBox9.Enabled = False : DateTimePicker3.Enabled = False
183
+            DateTimePicker5.Enabled = False : DateTimePicker4.Enabled = False : TextBox13.Enabled = False : TextBox15.Enabled = False
184
+            NumericUpDown5.Enabled = True : NumericUpDown6.Enabled = False : NumericUpDown6.Value = 0
185
+        ElseIf ComboBox7.Text = "開票" Then
186
+            TextBox12.Enabled = True : TextBox11.Enabled = True : ComboBox8.Enabled = True : ComboBox9.Enabled = True : DateTimePicker3.Enabled = True
187
+            DateTimePicker5.Enabled = True : DateTimePicker4.Enabled = True : TextBox13.Enabled = True : TextBox15.Enabled = True
188
+            NumericUpDown5.Enabled = False : NumericUpDown6.Enabled = True : NumericUpDown5.Value = 0
189
+        End If
190
+    End Sub
191
+    Private Sub TextBox9_TextChanged(sender As Object, e As EventArgs) Handles TextBox9.TextChanged
192
+        PA = TextBox9.Text
193
+        If ComboBox7.Text = "付現" Then : SQL_會計科目_關鍵字_應付_不含流動票務()
194
+        ElseIf ComboBox7.Text = "開票" Then : SQL_會計科目_關鍵字_應付_只含流動票務() : End If
195
+        ComboBox1.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox1.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
196
+        If ComboBox1.Items.Count <> 0 Then : ComboBox1.SelectedIndex = 0 : End If : PA = ""
197
+    End Sub
198
+    Private Sub NumericUpDown2_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown2.ValueChanged
199
+        NumericUpDown4.Value = NumericUpDown3.Value - NumericUpDown2.Value - NumericUpDown1.Value
200
+    End Sub
201
+    Private Sub NumericUpDown1_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown1.ValueChanged
202
+        NumericUpDown4.Value = NumericUpDown3.Value - NumericUpDown2.Value - NumericUpDown1.Value
203
+    End Sub
204
+    Private Sub 存檔()
205
+        PA4 = TextBox1.Text
206
+        For i As Integer = 0 To DataGridView1.Rows.Count - 1
207
+            資料數 = DataGridView1.Rows.Count : MyModule1.進度條()
208
+            PA1 = DataGridView1.Rows(i).Cells("用途").Value : NU1 = DataGridView1.Rows(i).Cells("支出").Value : PA2 = DataGridView1.Rows(i).Cells("備註").Value
209
+            PA3 = DataGridView1.Rows(i).Cells("科目編號").Value : NU2 = DataGridView1.Rows(i).Cells("現金").Value : NU3 = DataGridView1.Rows(i).Cells("開票").Value
210
+            NU4 = DataGridView1.Rows(i).Cells("收票").Value : PA5 = DataGridView1.Rows(i).Cells("項次").Value : PA6 = DataGridView1.Rows(i).Cells("狀態").Value : PA7 = gUserName
211
+            PA8 = DataGridView1.Rows(i).Cells("發票人帳號").Value.ToString : PA9 = DataGridView1.Rows(i).Cells("兌現科目").Value.ToString : PA10 = DataGridView1.Rows(i).Cells("付款銀行").Value.ToString
212
+            PA11 = DataGridView1.Rows(i).Cells("倉儲單號").Value.ToString : PA12 = DataGridView1.Rows(i).Cells("支票號碼").Value.ToString : PA13 = DataGridView1.Rows(i).Cells("開票人").Value.ToString
213
+            PA14 = DataGridView1.Rows(i).Cells("到期日").Value.ToString : PA15 = DataGridView1.Rows(i).Cells("預定兌現日").Value.ToString : PA16 = DataGridView1.Rows(i).Cells("開收票日").Value.ToString
214
+            SQL_支票收支單申請修改() : conn.Close()
215
+        Next : MAOJI_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
216
+    End Sub
217
+    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
218
+        If ComboBox6.Text = "" Then : MsgBox("沒有選擇會計科目。")
219
+        Else
220
+            If NumericUpDown4.Value <= 0 Then : MsgBox("請注意可沖金額不可小於零。")
221
+            Else
222
+                PA = TextBox1.Text : TextBox3.Text = gUserName
223
+                If DataGridView1.Rows.Count = 0 Then
224
+                    SQL_營運成本控制表新增()
225
+                    For i As Integer = 0 To DataGridView2.Rows.Count - 1
226
+                        PA19 = DataGridView2.Rows(i).Cells("流水單號").Value.ToString
227
+                        SQL_倉儲明細表財務單號連接修改()
228
+                        PA6 = DataGridView2.Rows(i).Cells("流水單號").Value : PA7 = "1"
229
+                        SQL_應付賬款_倉儲明細應付立帳修改()
230
+                    Next
231
+                End If
232
+                存檔()
233
+                SQL_營運成本明細表項次新增查詢()
234
+                If dr.Read() Then : 新項次 = dr("項次") : Else : 新項次 = "00" : End If : conn.Close() : NUM1 = Double.Parse(新項次) + 1
235
+                If NUM1 < 10 Then : 新項次 = "0" & NUM1
236
+                ElseIf NUM1 > 9 And NUM1 < 100 Then : 新項次 = NUM1 : End If
237
+                PA1 = TextBox1.Text : PA2 = 新項次 : PA3 = ComboBox6.Text : PA4 = "" : NU1 = 0 : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0 : PA6 = ComboBox7.Text : PA7 = gUserName
238
+                SQL_營運成本明細表新增() : Set_費用清單()
239
+            End If
240
+        End If
241
+    End Sub
242
+    Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
243
+        If TextBox4.Text = "" Then : MsgBox("未選擇需要刪除的資料。")
244
+        Else
245
+            存檔() : PA1 = TextBox1.Text : PA2 = TextBox4.Text : SQL_營運成本明細表刪除單筆() : conn.Close() : Set_費用清單() : Dim NUM1 As Integer = 0
246
+            For i As Integer = 0 To DataGridView1.Rows.Count - 1
247
+                NUM1 += 1 : If NUM1 < 10 Then : 新項次 = "0" & NUM1 : ElseIf NUM1 > 9 And NUM1 < 100 Then : 新項次 = NUM1 : End If
248
+                PA1 = 新項次 : PA2 = TextBox1.Text : PA3 = DataGridView1.Rows(i).Cells("項次").Value
249
+                SQL_營運成本明細表項次修改() : conn.Close()
250
+            Next : Set_費用清單()
251
+            If DataGridView1.Rows.Count = 0 Then
252
+                PA1 = TextBox1.Text : SQL_營運成本控制表刪除() : PA = ""
253
+                For i As Integer = 0 To DataGridView2.Rows.Count - 1
254
+                    PA19 = DataGridView2.Rows(i).Cells("流水單號").Value.ToString
255
+                    SQL_倉儲明細表財務單號連接修改()
256
+                    PA6 = DataGridView2.Rows(i).Cells("流水單號").Value : PA7 = "0"
257
+                    SQL_應付賬款_倉儲明細應付立帳修改()
258
+                Next
259
+            End If
260
+        End If
261
+    End Sub
262
+    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
263
+        PA4 = TextBox1.Text : PA1 = TextBox14.Text : NU1 = NumericUpDown5.Value : PA2 = TextBox16.Text : PA3 = ComboBox6.Text : NU2 = 0 : NU3 = NumericUpDown6.Value : NU4 = 0 : PA5 = TextBox4.Text
264
+        PA6 = ComboBox7.Text : PA7 = TextBox3.Text : PA8 = TextBox15.Text : PA9 = ComboBox10.Text : PA10 = ComboBox9.Text : PA11 = 收付對應客戶供應商編號 : PA12 = TextBox12.Text : PA13 = TextBox13.Text
265
+        If 財務單申請狀態 = "應付" Then
266
+            If ComboBox7.Text = "付現" Then
267
+                PA14 = "" : PA15 = "" : PA16 = ""
268
+            ElseIf ComboBox7.Text = "開票" Then
269
+                PA14 = Format(DateTimePicker3.Value, "yyyy/MM/dd") : PA15 = Format(DateTimePicker4.Value, "yyyy/MM/dd") : PA16 = Format(DateTimePicker5.Value, "yyyy/MM/dd")
270
+            End If
271
+        ElseIf 財務單申請狀態 = "應收" Then
272
+
273
+        End If
274
+        SQL_支票收支單申請修改() : conn.Close() : Set_費用清單() : MsgBox("存檔完畢")
275
+    End Sub
276
+    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
277
+        存檔() : Set_費用清單() : MsgBox("存檔完畢")
278
+    End Sub
279
+End Class

+ 668
- 0
MaoOrange-Hongji/財務系統管理/財務收支單_對帳表.Designer.vb ファイルの表示

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

+ 129
- 0
MaoOrange-Hongji/財務系統管理/財務收支單_對帳表.resx ファイルの表示

@@ -0,0 +1,129 @@
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>

+ 197
- 0
MaoOrange-Hongji/財務系統管理/財務收支單_對帳表.vb ファイルの表示

@@ -0,0 +1,197 @@
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 = 40
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 = 130 : DataGridView1.Columns(7).FillWeight = 305
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" : TextBox14.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
+
43
+            If DataGridView1("收票", i).Value <> 0 And DataGridView1("收票兌現", i).Value = True Then
44
+                TextBox10.Text = Val(TextBox10.Text) + DataGridView1.Rows(i).Cells("收票").Value
45
+            ElseIf DataGridView1("收票", i).Value <> 0 And DataGridView1("收票兌現", i).Value = False Then
46
+                TextBox12.Text = Val(TextBox12.Text) + DataGridView1.Rows(i).Cells("收票").Value
47
+            End If
48
+
49
+            If DataGridView1("開票", i).Value <> 0 And DataGridView1("開票已付", i).Value = True Then
50
+                TextBox14.Text = Val(TextBox14.Text) + DataGridView1.Rows(i).Cells("開票").Value
51
+            ElseIf DataGridView1("開票", i).Value <> 0 And DataGridView1("開票已付", i).Value = False Then
52
+                TextBox8.Text = Val(TextBox8.Text) + DataGridView1.Rows(i).Cells("開票").Value
53
+            End If
54
+        Next i
55
+        TextBox4.Text = Val(TextBox10.Text) + Val(TextBox6.Text) - Val(TextBox5.Text) - Val(TextBox14.Text)
56
+        If Val(TextBox4.Text) > 0 Then : TextBox4.ForeColor = Color.Blue : Else : TextBox4.ForeColor = Color.Red : End If
57
+        TextBox5.Text = Format(Val(TextBox5.Text), "#,##0") : TextBox4.Text = Format(Val(TextBox4.Text), "#,##0") : TextBox6.Text = Format(Val(TextBox6.Text), "#,##0")
58
+        TextBox8.Text = Format(Val(TextBox8.Text), "#,##0") : TextBox10.Text = Format(Val(TextBox10.Text), "#,##0") : TextBox12.Text = Format(Val(TextBox12.Text), "#,##0")
59
+    End Sub
60
+    Private Sub 日期格式()
61
+        If 會計月.Checked = True Then
62
+            '-------------日期一----------------------------------------------------------------------------------------
63
+            DTP = Strings.Left(Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker1.Value = DTP
64
+            DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(-1)
65
+            DTP = Strings.Left(Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "26" : DateTimePicker1.Value = DTP
66
+            '-------------日期二----------------------------------------------------------------------------------------
67
+            DTP = Strings.Left(Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & "25" : DateTimePicker2.Value = DTP
68
+        Else
69
+            '-------------日期一----------------------------------------------------------------------------------------
70
+            DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1)
71
+            DTP = Strings.Left(Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker1.Value = DTP
72
+            '-------------日期二----------------------------------------------------------------------------------------
73
+            DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker2.Value = DTP
74
+            DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddDays(-1)
75
+        End If
76
+    End Sub
77
+    Private Sub 營運成本收支單_對帳表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
78
+        Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
79
+        TextBox7.Text = "0" : TextBox2.Text = "0" : TextBox3.Text = "0" : TextBox9.Text = "0" : TextBox11.Text = "0" : TextBox13.Text = "0" : KKKJJ = "" : KKKJJ2 = ""
80
+        SQL_營運成本明細表_會計歸零() : SQL_營運成本明細表_出納歸零() : SQL_營運成本明細表_現金歸零() : SQL_營運成本明細表_備用金歸零()
81
+        SQL_營運成本明細表_公帳歸零() : SQL_營運成本明細表_支票歸零() : SQL_營運成本明細表_作帳日期歸零() : SQL_營運成本明細表_出納日期歸零() : conn.Close()
82
+        Label62.Visible = False : DateTimePicker4.Visible = False
83
+        日期格式() : KKKJJ3 = "AND (營運成本控制表.申請日期 BETWEEN '" & Format(DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(DateTimePicker2.Value, "yyyy/MM/dd") & "') " : Set_清單1()
84
+    End Sub
85
+    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
86
+        If Label62.Visible = True Then : Label62.Visible = False : Else : Label62.Visible = True : End If
87
+    End Sub
88
+    Private Sub 總金額計算()
89
+        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 : Dim ZZXX As Integer = 0
90
+        TextBox7.Text = "0" : TextBox2.Text = "0" : TextBox3.Text = "0" : TextBox9.Text = "0" : TextBox11.Text = "0" : TextBox13.Text = "0" : TextBox15.Text = "0"
91
+        For i As Integer = 0 To DataGridView1.Rows.Count - 1
92
+            If DataGridView1.Rows(i).Cells("收支單號").Value = TextBox1.Text Then
93
+                FFGG = Val(FFGG) + DataGridView1.Rows(i).Cells("現金").Value : GGHH = Val(GGHH) + DataGridView1.Rows(i).Cells("支出").Value
94
+
95
+                If DataGridView1("收票", i).Value <> 0 And DataGridView1("收票兌現", i).Value = True Then : JJKK = Val(JJKK) + DataGridView1.Rows(i).Cells("收票").Value
96
+                ElseIf DataGridView1("收票", i).Value <> 0 And DataGridView1("收票兌現", i).Value = False Then : KKLL = Val(KKLL) + DataGridView1.Rows(i).Cells("收票").Value : End If
97
+
98
+                If DataGridView1("開票", i).Value <> 0 And DataGridView1("開票已付", i).Value = False Then : HHJJ = Val(HHJJ) + DataGridView1.Rows(i).Cells("開票").Value
99
+                ElseIf DataGridView1("開票", i).Value <> 0 And DataGridView1("開票已付", i).Value = True Then : ZZXX = Val(ZZXX) + DataGridView1.Rows(i).Cells("開票").Value : End If
100
+            End If
101
+        Next i
102
+        TextBox7.Text = FFGG : TextBox2.Text = GGHH : TextBox9.Text = HHJJ : TextBox15.Text = ZZXX : TextBox11.Text = JJKK : TextBox13.Text = KKLL : TextBox3.Text = JJKK + FFGG - GGHH - ZZXX
103
+        If Val(TextBox3.Text) > 0 Then : TextBox3.ForeColor = Color.Blue : Else : TextBox3.ForeColor = Color.Red : End If
104
+        TextBox7.Text = Strings.Format(Val(TextBox7.Text), "#,##0") : TextBox2.Text = Strings.Format(Val(TextBox2.Text), "#,##0") : TextBox3.Text = Strings.Format(Val(TextBox3.Text), "#,##0")
105
+        TextBox9.Text = Strings.Format(Val(TextBox9.Text), "#,##0") : TextBox11.Text = Strings.Format(Val(TextBox11.Text), "#,##0") : TextBox13.Text = Strings.Format(Val(TextBox13.Text), "#,##0")
106
+    End Sub
107
+    Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView1.CellClick
108
+        If e.RowIndex = -1 Then : Else
109
+            TextBox1.Text = DataGridView1.Rows(e.RowIndex).Cells("收支單號").Value : Timer1.Enabled = True : 總金額計算()
110
+        End If
111
+    End Sub
112
+    Private Sub DataGridView1_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles DataGridView1.RowPostPaint
113
+        Dim linePen As New Pen(Color.Blue, 2)
114
+        If e.RowIndex = DataGridView1.Rows.Count - 1 Then : Exit Sub
115
+        Else
116
+            If DataGridView1(0, e.RowIndex).Value.ToString <> DataGridView1(0, e.RowIndex + 1).Value.ToString Then
117
+                Dim startX As Integer = IIf(DataGridView1.RowHeadersVisible, DataGridView1.RowHeadersWidth, 0)
118
+                Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
119
+                Dim endX As Integer = startX + DataGridView1.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - DataGridView1.HorizontalScrollingOffset
120
+                e.Graphics.DrawLine(linePen, startX, startY, endX, startY) : Exit Sub
121
+            End If
122
+        End If
123
+        For i As Integer = 0 To DataGridView1.Rows.Count - 1
124
+            If DataGridView1("收票", i).Value <> 0 And DataGridView1("收票兌現", i).Value = True Then : DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
125
+            ElseIf DataGridView1("收票", i).Value <> 0 And DataGridView1("收票兌現", i).Value = False Then : DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
126
+            If DataGridView1("開票", i).Value <> 0 And DataGridView1("開票已付", i).Value = True Then : DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
127
+            ElseIf DataGridView1("開票", i).Value <> 0 And DataGridView1("開票已付", i).Value = False Then : DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
128
+        Next
129
+    End Sub
130
+    Private Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox1.Click
131
+        If CheckBox1.Checked = False Then : KKKJJ = "" : Set_清單1()
132
+        Else : KKKJJ = " AND (營運成本明細表.支票數 <> 0) " : Set_清單1() : End If
133
+    End Sub
134
+    Private Sub CheckBox4_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox4.Click
135
+        Set_grid()
136
+    End Sub
137
+    Private Sub CheckBox5_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox5.Click
138
+        Set_grid()
139
+    End Sub
140
+    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
141
+        If 會計月.Checked = True Then
142
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
143
+            DateTimePicker1.Value = DateTimePicker4.Value
144
+            DateTimePicker2.Value = DateTimePicker4.Value
145
+        Else
146
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(-1)
147
+            DateTimePicker1.Value = DateTimePicker4.Value.AddMonths(-1)
148
+            DateTimePicker2.Value = DateTimePicker4.Value
149
+        End If : 日期格式()
150
+        KKKJJ3 = "AND (營運成本控制表.申請日期 BETWEEN '" & Format(DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(DateTimePicker2.Value, "yyyy/MM/dd") & "') " : Set_清單1()
151
+    End Sub
152
+    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
153
+        If 會計月.Checked = True Then
154
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
155
+            DateTimePicker1.Value = DateTimePicker4.Value
156
+            DateTimePicker2.Value = DateTimePicker4.Value
157
+        Else
158
+            DateTimePicker4.Value = DateTimePicker4.Value.AddMonths(1)
159
+            DateTimePicker1.Value = DateTimePicker4.Value.AddMonths(-1)
160
+            DateTimePicker2.Value = DateTimePicker4.Value
161
+        End If : 日期格式()
162
+        KKKJJ3 = "AND (營運成本控制表.申請日期 BETWEEN '" & Format(DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(DateTimePicker2.Value, "yyyy/MM/dd") & "') " : Set_清單1()
163
+    End Sub
164
+    Private Sub 會計月_CheckedChanged(sender As Object, e As EventArgs) Handles 會計月.Click
165
+        會計月.Checked = True : 一般月.Checked = False : 日期格式()
166
+        KKKJJ3 = "AND (營運成本控制表.申請日期 BETWEEN '" & Format(DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(DateTimePicker2.Value, "yyyy/MM/dd") & "') " : Set_清單1()
167
+    End Sub
168
+    Private Sub 一般月_CheckedChanged(sender As Object, e As EventArgs) Handles 一般月.Click
169
+        會計月.Checked = False : 一般月.Checked = True : 日期格式()
170
+        KKKJJ3 = "AND (營運成本控制表.申請日期 BETWEEN '" & Format(DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(DateTimePicker2.Value, "yyyy/MM/dd") & "') " : Set_清單1()
171
+    End Sub
172
+    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
173
+        Me.重新整理ToolStripMenuItem.PerformClick()
174
+    End Sub
175
+    '-----------------------------滑鼠右鍵--------------------------------------------------------------------------------------------------------------------------------------
176
+    Private Sub 對帳記錄存檔ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 對帳記錄存檔ToolStripMenuItem.Click
177
+        Timer1.Enabled = False : Label62.Visible = False
178
+        For i As Integer = 0 To DataGridView1.Rows.Count - 1
179
+            資料數 = DataGridView1.Rows.Count : MyModule1.進度條()
180
+            布林1 = DataGridView1.Rows(i).Cells("現金點交").Value : 布林2 = DataGridView1.Rows(i).Cells("開票已付").Value : 布林3 = DataGridView1.Rows(i).Cells("支出點交").Value
181
+            布林4 = DataGridView1.Rows(i).Cells("收票兌現").Value : PA1 = DataGridView1.Rows(i).Cells("收支單號").Value : PA2 = DataGridView1.Rows(i).Cells("項次").Value
182
+            SQL_營運成本明細表_對帳記錄存檔() : conn.Close()
183
+        Next : MsgBox("存檔完成。") : Set_清單1() : MAOJI_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
184
+    End Sub
185
+    Private Sub 關鍵字查詢ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 關鍵字查詢ToolStripMenuItem.Click
186
+        PA = InputBox("請輸入要查詢的關鍵字。")
187
+        KKKJJ2 = " AND (營運成本控制表.支付單號 LIKE N'%" & PA & "%' OR 營運成本控制表.申請人 LIKE N'%" & PA & "%' OR 營運成本控制表.審核人 LIKE N'%" & PA &
188
+                 "%' OR 營運成本明細表.用途 LIKE N'%" & PA & "%' OR 營運成本控制表.備註 LIKE N'%" & PA & "%' OR 營運成本明細表.備註 LIKE N'%" & PA & "%')" : Set_清單1()
189
+        KKKJJ2 = "" : PA = ""
190
+    End Sub
191
+    Private Sub BBBToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles BBBToolStripMenuItem.Click
192
+        MsgBox("待開發。")   ' 列印_零用金支付明細.ShowDialog()
193
+    End Sub
194
+    Private Sub 重新整理ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 重新整理ToolStripMenuItem.Click
195
+        Set_清單1()
196
+    End Sub
197
+End Class

+ 595
- 0
MaoOrange-Hongji/財務系統管理/財務收支單一覽表.Designer.vb ファイルの表示

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

+ 123
- 0
MaoOrange-Hongji/財務系統管理/財務收支單一覽表.resx ファイルの表示

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

+ 398
- 0
MaoOrange-Hongji/財務系統管理/財務收支單一覽表.vb ファイルの表示

@@ -0,0 +1,398 @@
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
+            DTP = Strings.Left(Strings.Format(DateTimePicker3.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker3.Value = DTP
95
+            DateTimePicker3.Value = DateTimePicker3.Value.AddMonths(1) : DateTimePicker3.Value = DateTimePicker3.Value.AddDays(-1)
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 : DateTimePicker5.Visible = False
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
+        If 會計月.Checked = True Then
134
+            DateTimePicker5.Value = DateTimePicker5.Value.AddMonths(-1)
135
+            DateTimePicker4.Value = DateTimePicker5.Value
136
+            DateTimePicker3.Value = DateTimePicker5.Value
137
+        Else
138
+            DateTimePicker5.Value = DateTimePicker5.Value.AddMonths(-1)
139
+            DateTimePicker4.Value = DateTimePicker5.Value.AddMonths(-1)
140
+            DateTimePicker3.Value = DateTimePicker5.Value
141
+        End If
142
+        日期格式()
143
+    End Sub
144
+    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
145
+        If 會計月.Checked = True Then
146
+            DateTimePicker5.Value = DateTimePicker5.Value.AddMonths(1)
147
+            DateTimePicker4.Value = DateTimePicker5.Value
148
+            DateTimePicker3.Value = DateTimePicker5.Value
149
+        Else
150
+            DateTimePicker5.Value = DateTimePicker5.Value.AddMonths(1)
151
+            DateTimePicker4.Value = DateTimePicker5.Value.AddMonths(-1)
152
+            DateTimePicker3.Value = DateTimePicker5.Value
153
+        End If
154
+        日期格式()
155
+    End Sub
156
+    Private Sub 彙總計算()
157
+        If RadioButton1.Checked = False And RadioButton2.Checked = True Then
158
+            TextBox5.Text = "0" : TextBox7.Text = "0" : TextBox6.Text = "0" : TextBox10.Text = "0" : TextBox11.Text = "0"
159
+            For i As Integer = 0 To DataGridView2.Rows.Count - 1
160
+                TextBox5.Text = Val(TextBox5.Text) + DataGridView2.Rows(i).Cells("現金").Value : TextBox7.Text = Val(TextBox7.Text) + DataGridView2.Rows(i).Cells("支出").Value
161
+                TextBox10.Text = Val(TextBox10.Text) + DataGridView2.Rows(i).Cells("開票").Value : TextBox11.Text = Val(TextBox11.Text) + DataGridView2.Rows(i).Cells("收票").Value
162
+            Next i
163
+            TextBox6.Text = Val(TextBox10.Text) + Val(TextBox5.Text) - Val(TextBox7.Text)
164
+            If Val(TextBox6.Text) > 0 Then : TextBox6.ForeColor = Color.Blue : Else : TextBox6.ForeColor = Color.Red : End If
165
+            TextBox5.Text = Strings.Format(Val(TextBox5.Text), "#,##0") : TextBox7.Text = Strings.Format(Val(TextBox7.Text), "#,##0") : TextBox6.Text = Strings.Format(Val(TextBox6.Text), "#,##0")
166
+            TextBox10.Text = Strings.Format(Val(TextBox10.Text), "#,##0") : TextBox11.Text = Strings.Format(Val(TextBox11.Text), "#,##0")
167
+        End If
168
+    End Sub
169
+    Private Sub DateTimePicker4_ValueChanged(sender As Object, e As EventArgs) Handles DateTimePicker4.ValueChanged
170
+        Set_清單1() : Set_清單2() : 彙總計算()
171
+    End Sub
172
+    Private Sub DateTimePicker3_ValueChanged(sender As Object, e As EventArgs) Handles DateTimePicker3.ValueChanged
173
+        Set_清單1() : Set_清單2() : 彙總計算()
174
+    End Sub
175
+    Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton1.Click
176
+        DataGridView1.Visible = True : DataGridView2.Visible = False : RadioButton1.Checked = True : RadioButton2.Checked = False
177
+        TextBox5.Text = "0" : TextBox7.Text = "0" : TextBox6.Text = "0" : TextBox10.Text = "0" : TextBox11.Text = "0" : DataGridView4.Enabled = True
178
+    End Sub
179
+    Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton2.Click
180
+        DataGridView1.Visible = False : DataGridView2.Visible = True : RadioButton1.Checked = False : RadioButton2.Checked = True
181
+        TextBox1.Text = "" : TextBox3.Text = "" : TextBox4.Text = "" : DataGridView1.DataSource = Nothing : ds.Clear() : DataGridView4.Enabled = False
182
+        彙總計算()
183
+    End Sub
184
+    Private Sub TextBox14_TextChanged(sender As Object, e As EventArgs) Handles TextBox14.TextChanged
185
+        PA = TextBox14.Text : SQL_使用者權限圖片顯示()
186
+        While dr.Read() = True
187
+            Dim unused As Byte() = New Byte(-1) {}
188
+            Dim bytes As Byte() = DirectCast(dr.Item("簽名檔圖片"), Byte())
189
+            Dim oStream As New MemoryStream(bytes)
190
+            PictureBox1.Image = Bitmap.FromStream(oStream)
191
+        End While
192
+        conn.Close() : PictureBox1.SizeMode = 4
193
+    End Sub
194
+    Private Sub 會計月_CheckedChanged(sender As Object, e As EventArgs) Handles 會計月.Click
195
+        會計月.Checked = True : 一般月.Checked = False : 日期格式()
196
+    End Sub
197
+    Private Sub 一般月_CheckedChanged(sender As Object, e As EventArgs) Handles 一般月.Click
198
+        會計月.Checked = False : 一般月.Checked = True : 日期格式()
199
+    End Sub
200
+    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
201
+        xlApp = CType(CreateObject("Excel.Application"), Application)
202
+        xlBook = xlApp.Workbooks.Add
203
+        xlApp.DisplayAlerts = True
204
+        xlBook.Activate()
205
+        xlSheet = NewMethod(xlBook)
206
+        xlSheet.Activate()
207
+        xlApp.Visible = True
208
+        xlApp.Application.WindowState = xlMaximized
209
+
210
+        xlSheet.Cells(1, 1) = "年度" : xlSheet.Cells(1, 2) = Year(Today) - 1911
211
+        If RadioButton1.Checked = True And RadioButton2.Checked = False Then
212
+            xlSheet.Cells(1, 3) = MAOJI_ERP_SYS.ComboBox2.Text & "-營運費用收支明細表"
213
+            xlSheet.Cells(2, 1) = "收款日期" : xlSheet.Cells(2, 2) = "會計科目" : xlSheet.Cells(2, 3) = "客戶或用途"
214
+            xlSheet.Cells(2, 4) = "開票" : xlSheet.Cells(2, 5) = "收票" : xlSheet.Cells(2, 6) = "現金" : xlSheet.Cells(2, 7) = "支出" : xlSheet.Cells(2, 8) = "現金餘額" : xlSheet.Cells(2, 9) = "票期"
215
+
216
+            For i As Integer = 0 To DataGridView1.Rows.Count - 1
217
+                xlSheet.Cells(i + 3, 1) = DateTimePicker1.Value : xlSheet.Cells(i + 3, 2) = DataGridView1.Rows(i).Cells("會計科目").Value
218
+                xlSheet.Cells(i + 3, 3) = DataGridView1.Rows(i).Cells("用途").Value : xlSheet.Cells(i + 3, 4) = DataGridView1.Rows(i).Cells("開票").Value
219
+                xlSheet.Cells(i + 3, 5) = DataGridView1.Rows(i).Cells("收票").Value : xlSheet.Cells(i + 3, 6) = DataGridView1.Rows(i).Cells("現金").Value
220
+                xlSheet.Cells(i + 3, 7) = DataGridView1.Rows(i).Cells("支出").Value : xlSheet.Cells(i + 3, 9) = DataGridView1.Rows(i).Cells("票期").Value
221
+                If i = 0 Then
222
+                    xlSheet.Cells(i + 3, 8) = "=D3+F3-G3"
223
+                Else
224
+                    xlSheet.Cells(i + 3, 8) = "=H" & i + 2 & "+D" & i + 3 & "+F" & i + 3 & "-G" & i + 3 & ""
225
+                End If
226
+                With xlApp.Selection
227
+                    .Font.Bold = True
228
+                End With
229
+                N1 = i + 3 : N2 = i + 3
230
+            Next i
231
+            xlSheet.Cells(N1 + 1, 3) = "以下空白" : xlSheet.Cells(N1 + 3, 1) = "簽核(點交)" : xlSheet.Cells(N1 + 3, 7) = "製表 : " & TextBox3.Text & " - " & DateTimePicker1.Value
232
+            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 & ")"
233
+            xlSheet.Cells(N1 + 2, 7) = "=SUM(G3:G" & N1 + 1 & ")" : xlSheet.Cells(N1 + 2, 8) = "=H" & N1 : xlSheet.Cells(N1 + 2, 1) = "合計"
234
+
235
+            AA(xlApp, xlSheet) : BB(xlApp, xlSheet)
236
+        ElseIf RadioButton1.Checked = False And RadioButton2.Checked = True Then
237
+            xlSheet.Cells(1, 3) = MAOJI_ERP_SYS.ComboBox2.Text & "-營運費用收支彙總簡表"
238
+            xlSheet.Cells(2, 1) = "日期" : xlSheet.Cells(2, 2) = "主項" : xlSheet.Cells(2, 3) = "子項" : xlSheet.Cells(2, 4) = "子細項" : xlSheet.Cells(2, 5) = "開票"
239
+            xlSheet.Cells(2, 6) = "收票" : xlSheet.Cells(2, 7) = "現金" : xlSheet.Cells(2, 8) = "支出" : xlSheet.Cells(2, 9) = "現金餘額"
240
+
241
+            For i As Integer = 0 To DataGridView2.Rows.Count - 1
242
+                xlSheet.Cells(i + 3, 1) = DataGridView2.Rows(i).Cells("日期").Value
243
+                xlSheet.Cells(i + 3, 2) = DataGridView2.Rows(i).Cells("主項").Value
244
+                xlSheet.Cells(i + 3, 3) = DataGridView2.Rows(i).Cells("子項").Value
245
+                xlSheet.Cells(i + 3, 4) = DataGridView2.Rows(i).Cells("子細項").Value
246
+                xlSheet.Cells(i + 3, 5) = DataGridView2.Rows(i).Cells("開票").Value
247
+                xlSheet.Cells(i + 3, 6) = DataGridView2.Rows(i).Cells("收票").Value
248
+                xlSheet.Cells(i + 3, 7) = DataGridView2.Rows(i).Cells("現金").Value
249
+                xlSheet.Cells(i + 3, 8) = DataGridView2.Rows(i).Cells("支出").Value
250
+                If i = 0 Then
251
+                    xlSheet.Cells(i + 3, 9) = "=E3+G3-H3"
252
+                Else
253
+                    xlSheet.Cells(i + 3, 9) = "=I" & i + 2 & "+E" & i + 3 & "+G" & i + 3 & "-H" & i + 3 & ""
254
+                End If
255
+                With xlApp.Selection
256
+                    .Font.Bold = True
257
+                End With
258
+                N1 = i + 3 : N2 = i + 3
259
+            Next i
260
+            xlSheet.Cells(N1 + 1, 2) = "以下空白" : xlSheet.Cells(N1 + 3, 1) = "簽核" : xlSheet.Cells(N1 + 3, 5) = "製表 : " & gUserName & " - " & Today()
261
+            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 & ")"
262
+            xlSheet.Cells(N1 + 2, 8) = "=SUM(H3:H" & N1 + 1 & ")" : xlSheet.Cells(N1 + 2, 9) = "=I" & N1 : xlSheet.Cells(N1 + 2, 1) = "合計"
263
+
264
+            CC(xlApp, xlSheet)
265
+        End If
266
+
267
+        xlSheet.PageSetup.PrintArea = ""
268
+        xlApp.Cells.Select()
269
+        xlSheet.Range("B1").Select()
270
+        xlApp.Application.WindowState = xlMinimized
271
+        xlSheet.Cells.Select()
272
+        xlApp.ActiveSheet.Protect(DrawingObjects:=True, Contents:=True, Scenarios:=True, Password:="0911274990")
273
+        xlApp.ActiveSheet.EnableSelection = 1
274
+        MsgBox("列印完成。")
275
+    End Sub
276
+    Private Shared Function NewMethod(xlBook As Workbook) As Worksheet
277
+        Return CType(xlBook.Worksheets.Add, Worksheet)
278
+    End Function
279
+    Private Sub AA(ByVal myExcel As Application, ByVal xlSheet As Worksheet)
280
+        xlSheet.Cells.Select()
281
+        With myExcel.Selection.Font : .Name = "微軟正黑體" : .Size = 10 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False
282
+            .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
283
+        End With
284
+
285
+        xlSheet.Columns("A:A").Select : myExcel.Selection.NumberFormatLocal = "m/d;@"
286
+        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
287
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
288
+        End With
289
+
290
+        xlSheet.Range("B1").Select()
291
+        With myExcel.Selection : .HorizontalAlignment = xlLeft : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
292
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
293
+        End With
294
+
295
+        xlSheet.Columns("B:B").Select : myExcel.Selection.ColumnWidth = 25
296
+        xlSheet.Columns("C:C").Select : myExcel.Selection.ColumnWidth = 30
297
+        xlSheet.Columns("D:H").Select : myExcel.Selection.ColumnWidth = 10 : myExcel.Selection.NumberFormatLocal = "#,##0;[紅色]-#,##0"
298
+        xlSheet.Columns("I:I").Select : myExcel.Selection.ColumnWidth = 10 : myExcel.Selection.NumberFormatLocal = "[$-zh-TW]e/m/d;@"
299
+        xlSheet.Rows("2:2").Select : myExcel.Selection.RowHeight = 25
300
+
301
+        xlSheet.Range("A2:I2").Select()
302
+        With myExcel.Selection : .HorizontalAlignment = xlGeneral : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
303
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
304
+        End With
305
+        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
306
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
307
+        End With
308
+
309
+        xlSheet.Range("A2:I" & N1 + 2).Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
310
+        With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
311
+        With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
312
+        With myExcel.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
313
+        With myExcel.Selection.Borders(xlEdgeRight) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
314
+        With myExcel.Selection.Borders(xlInsideVertical) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
315
+        With myExcel.Selection.Borders(xlInsideHorizontal) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
316
+        myExcel.ActiveWindow.DisplayGridlines = False
317
+
318
+        xlSheet.Rows("3:" & N1 + 2).Select : myExcel.Selection.RowHeight = 20
319
+        xlSheet.Rows(N1 + 3 & ":" & N1 + 3).Select : myExcel.Selection.RowHeight = 40
320
+
321
+        xlSheet.Columns("I:I").Select
322
+        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
323
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
324
+        End With
325
+
326
+        xlSheet.Range("A" & N1 + 2 & ":C" & N1 + 2).Select() : myExcel.Selection.Merge
327
+        With myExcel.Selection : .HorizontalAlignment = xlRight : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
328
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = True
329
+        End With
330
+
331
+        xlSheet.Rows("1:1").Select : myExcel.Selection.RowHeight = 25
332
+        With myExcel.Selection.Font : .Name = "微軟正黑體" : .Size = 14 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False
333
+            .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
334
+        End With
335
+    End Sub
336
+    Private Sub BB(ByVal myExcel As Application, ByVal xlSheet As Worksheet)
337
+        Clipboard.SetDataObject(PictureBox1.Image)
338
+        xlSheet.Range("B" & N2 + 3).Select()
339
+        myExcel.ActiveSheet.Pictures.Paste.Select
340
+        myExcel.Selection.ShapeRange.Height = 43
341
+        myExcel.Selection.ShapeRange.IncrementTop(3)
342
+    End Sub
343
+    Private Sub CC(ByVal myExcel As Application, ByVal xlSheet As Worksheet)
344
+        xlSheet.Cells.Select()
345
+        With myExcel.Selection.Font : .Name = "微軟正黑體" : .Size = 10 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False
346
+            .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
347
+        End With
348
+
349
+        xlSheet.Columns("A:A").Select : myExcel.Selection.ColumnWidth = 8
350
+        xlSheet.Columns("B:C").Select : myExcel.Selection.ColumnWidth = 15
351
+        xlSheet.Columns("D:D").Select : myExcel.Selection.ColumnWidth = 20
352
+        xlSheet.Columns("E:I").Select : myExcel.Selection.ColumnWidth = 10 : myExcel.Selection.NumberFormatLocal = "#,##0;[紅色]-#,##0"
353
+        xlSheet.Rows("1:1").Select : myExcel.Selection.RowHeight = 25
354
+        xlSheet.Rows("2:2").Select : myExcel.Selection.RowHeight = 25
355
+        xlSheet.Rows("3:" & N1 + 2).Select : myExcel.Selection.RowHeight = 20
356
+        xlSheet.Rows(N1 + 3 & ":" & N1 + 3).Select : myExcel.Selection.RowHeight = 40
357
+
358
+        xlSheet.Rows("2:2").Select
359
+        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
360
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
361
+        End With
362
+
363
+        xlSheet.Range("A1").Select()
364
+        With myExcel.Selection : .HorizontalAlignment = xlRight : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
365
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
366
+        End With
367
+
368
+        xlSheet.Range("B1").Select()
369
+        With myExcel.Selection : .HorizontalAlignment = xlLeft : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
370
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
371
+        End With
372
+
373
+        xlSheet.Rows("1:1").Select
374
+        With myExcel.Selection.Font : .Name = "微軟正黑體" : .Size = 16 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False
375
+            .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
376
+        End With
377
+
378
+        xlSheet.Range("A2:I" & N1 + 2).Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
379
+        With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
380
+        With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
381
+        With myExcel.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
382
+        With myExcel.Selection.Borders(xlEdgeRight) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
383
+        With myExcel.Selection.Borders(xlInsideVertical) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
384
+        With myExcel.Selection.Borders(xlInsideHorizontal) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
385
+
386
+        xlSheet.Range("A" & N1 + 2 & ":D" & N1 + 2).Select() : myExcel.Selection.Merge
387
+        With myExcel.Selection : .HorizontalAlignment = xlRight : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
388
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = True
389
+        End With
390
+
391
+        xlSheet.Columns("E:I").Select : myExcel.Selection.NumberFormatLocal = "#,##0;[紅色]-#,##0"
392
+        myExcel.ActiveWindow.DisplayGridlines = False
393
+    End Sub
394
+    '----------------------滑鼠右鍵--------------------------------------------------------------------------------------------------------------------------------------------------------------------
395
+    Private Sub 重新讀取ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 重新讀取ToolStripMenuItem.Click
396
+        Set_清單1() : Set_清單2() : 彙總計算()
397
+    End Sub
398
+End Class

+ 480
- 0
MaoOrange-Hongji/財務系統管理/財務收支單審核.Designer.vb ファイルの表示

@@ -0,0 +1,480 @@
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

+ 126
- 0
MaoOrange-Hongji/財務系統管理/財務收支單審核.resx ファイルの表示

@@ -0,0 +1,126 @@
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>

+ 207
- 0
MaoOrange-Hongji/財務系統管理/財務收支單審核.vb ファイルの表示

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

読み込み中…
キャンセル
保存