B70340 2年前
コミット
2480e703bb
100個のファイルの変更11051行の追加1219行の削除
  1. バイナリ
      工巧明智能管理系統/.vs/我的系統/FileContentIndex/116cd651-db1d-43f5-a1a5-7c7abc318d65.vsidx
  2. バイナリ
      工巧明智能管理系統/.vs/我的系統/FileContentIndex/4b97bdc8-1630-482f-8df4-30495b550097.vsidx
  3. バイナリ
      工巧明智能管理系統/.vs/我的系統/FileContentIndex/6a53b435-08ba-428c-be27-db48b882f39b.vsidx
  4. バイナリ
      工巧明智能管理系統/.vs/我的系統/FileContentIndex/dfe3f84d-4e7b-4f52-af43-2132a74b31c8.vsidx
  5. バイナリ
      工巧明智能管理系統/.vs/我的系統/FileContentIndex/e113be2a-999a-406a-8410-76ed366adfe8.vsidx
  6. バイナリ
      工巧明智能管理系統/.vs/我的系統/v17/.suo
  7. 0
    0
      工巧明智能管理系統/我的系統/00-MyModule/SQL_Module.vb
  8. 0
    0
      工巧明智能管理系統/我的系統/00-MyModule/SQL_休假與加班.vb
  9. 0
    0
      工巧明智能管理系統/我的系統/00-MyModule/SQL_排班系統.vb
  10. 0
    0
      工巧明智能管理系統/我的系統/00-MyModule/SQL_系統設定.vb
  11. 0
    0
      工巧明智能管理系統/我的系統/00-MyModule/SQL_考勤系統.vb
  12. 0
    0
      工巧明智能管理系統/我的系統/00-MyModule/SQL_連線字串.vb
  13. 1
    1
      工巧明智能管理系統/我的系統/00-MyModule/全域變數.vb
  14. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/人事系統變數設定.Designer.vb
  15. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/人事系統變數設定.resx
  16. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/人事系統變數設定.vb
  17. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/人員資料表.Designer.vb
  18. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/人員資料表.resx
  19. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/人員資料表.vb
  20. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/休假核准.Designer.vb
  21. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/休假核准.resx
  22. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/休假核准.vb
  23. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/休假申請.Designer.vb
  24. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/休假申請.resx
  25. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/休假申請.vb
  26. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/個人班表.Designer.vb
  27. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/個人班表.resx
  28. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/個人班表.vb
  29. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/到離職管理.Designer.vb
  30. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/到離職管理.resx
  31. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/到離職管理.vb
  32. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/加班核准.Designer.vb
  33. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/加班核准.resx
  34. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/加班核准.vb
  35. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/加班申請.Designer.vb
  36. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/加班申請.resx
  37. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/加班申請.vb
  38. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/加班申請資料.Designer.vb
  39. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/加班申請資料.resx
  40. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/加班申請資料.vb
  41. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/國定假日設定.Designer.vb
  42. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/國定假日設定.resx
  43. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/國定假日設定.vb
  44. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/排班明細.Designer.vb
  45. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/排班明細.resx
  46. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/排班明細.vb
  47. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/排班明細_參考.Designer.vb
  48. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/排班明細_參考.resx
  49. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/排班明細_參考.vb
  50. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/排班資料.Designer.vb
  51. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/排班資料.resx
  52. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/排班資料.vb
  53. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/最後關班時間.Designer.vb
  54. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/最後關班時間.resx
  55. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/最後關班時間.vb
  56. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/歷史休假紀錄.Designer.vb
  57. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/歷史休假紀錄.resx
  58. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/歷史休假紀錄.vb
  59. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/系統使用者權限設定.Designer.vb
  60. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/系統使用者權限設定.resx
  61. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/系統使用者權限設定.vb
  62. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/考勤明細表.Designer.vb
  63. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/考勤明細表.resx
  64. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/考勤明細表.vb
  65. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/考勤明細表_編輯.Designer.vb
  66. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/考勤明細表_編輯.resx
  67. 0
    0
      工巧明智能管理系統/我的系統/01-人事系統管理_新/考勤明細表_編輯.vb
  68. 629
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_對帳單_GCM.Designer.vb
  69. 0
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_對帳單_GCM.resx
  70. 40
    74
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_對帳單_GCM.vb
  71. 44
    25
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_彙總表_GCM.Designer.vb
  72. 0
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_彙總表_GCM.resx
  73. 1
    1
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_彙總表_GCM.vb
  74. 421
    269
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單一覽表_GCM.Designer.vb
  75. 0
    3
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單一覽表_GCM.resx
  76. 80
    76
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單一覽表_GCM.vb
  77. 229
    226
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單審核_GCM.Designer.vb
  78. 0
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單審核_GCM.resx
  79. 66
    67
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單審核_GCM.vb
  80. 974
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單申請_GCM.Designer.vb
  81. 0
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單申請_GCM.resx
  82. 453
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單申請_GCM.vb
  83. 2073
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_決算表_GCM.Designer.vb
  84. 0
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_決算表_GCM.resx
  85. 172
    477
      工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_決算表_GCM.vb
  86. 628
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_對帳單_ICS.Designer.vb
  87. 123
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_對帳單_ICS.resx
  88. 223
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_對帳單_ICS.vb
  89. 711
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_彙總表_ICS.Designer.vb
  90. 0
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_彙總表_ICS.resx
  91. 342
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_彙總表_ICS.vb
  92. 1111
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單一覽表_ICS.Designer.vb
  93. 123
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單一覽表_ICS.resx
  94. 580
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單一覽表_ICS.vb
  95. 521
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單審核_ICS.Designer.vb
  96. 123
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單審核_ICS.resx
  97. 281
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單審核_ICS.vb
  98. 973
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單申請_ICS.Designer.vb
  99. 129
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單申請_ICS.resx
  100. 0
    0
      工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單申請_ICS.vb

バイナリ
工巧明智能管理系統/.vs/我的系統/FileContentIndex/116cd651-db1d-43f5-a1a5-7c7abc318d65.vsidx ファイルの表示


バイナリ
工巧明智能管理系統/.vs/我的系統/FileContentIndex/4b97bdc8-1630-482f-8df4-30495b550097.vsidx ファイルの表示


バイナリ
工巧明智能管理系統/.vs/我的系統/FileContentIndex/6a53b435-08ba-428c-be27-db48b882f39b.vsidx ファイルの表示


バイナリ
工巧明智能管理系統/.vs/我的系統/FileContentIndex/dfe3f84d-4e7b-4f52-af43-2132a74b31c8.vsidx ファイルの表示


バイナリ
工巧明智能管理系統/.vs/我的系統/FileContentIndex/e113be2a-999a-406a-8410-76ed366adfe8.vsidx ファイルの表示


バイナリ
工巧明智能管理系統/.vs/我的系統/v17/.suo ファイルの表示


工巧明智能管理系統/我的系統/MyModule/SQL_Module.vb → 工巧明智能管理系統/我的系統/00-MyModule/SQL_Module.vb ファイルの表示


工巧明智能管理系統/我的系統/MyModule/SQL_休假與加班.vb → 工巧明智能管理系統/我的系統/00-MyModule/SQL_休假與加班.vb ファイルの表示


工巧明智能管理系統/我的系統/MyModule/SQL_排班系統.vb → 工巧明智能管理系統/我的系統/00-MyModule/SQL_排班系統.vb ファイルの表示


工巧明智能管理系統/我的系統/MyModule/SQL_系統設定.vb → 工巧明智能管理系統/我的系統/00-MyModule/SQL_系統設定.vb ファイルの表示


工巧明智能管理系統/我的系統/MyModule/SQL_考勤系統.vb → 工巧明智能管理系統/我的系統/00-MyModule/SQL_考勤系統.vb ファイルの表示


工巧明智能管理系統/我的系統/MyModule/SQL_連線字串.vb → 工巧明智能管理系統/我的系統/00-MyModule/SQL_連線字串.vb ファイルの表示


工巧明智能管理系統/我的系統/MyModule/全域變數.vb → 工巧明智能管理系統/我的系統/00-MyModule/全域變數.vb ファイルの表示

@@ -8,7 +8,7 @@
8 8
     Public 登入權限AQL As String = "姓名, 帳號, 密碼, 密碼日期, CC00, CC01, CC02, CC03, CC04, CC05, CC06, CC07, CC08, CC09, CC10, CC11, CC12, CC13, CC14, CC15, CC16, CC17, CC18, CC19, CC20, CC21, CC22, 
9 9
                                     CC23, CC24, CC25, CC26, CC27, CC28, CC29, CC30, CC31, CC32"
10 10
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
11
-    Public 版本 As String = "2022060101"
11
+    Public 版本 As String = "2022081501"
12 12
     '----系統閒置-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
13 13
     Public 判斷重登 As Boolean : Public 內外網 As Boolean : Public 重登確認 As Boolean : Public 主頁開啟 As Boolean
14 14
     Public timeExit As Integer = 0 : Public timeExit2 As Integer = 0 : Public timeNow As Integer = 0 : Public timeNow2 As Integer = 0 : Public 密碼時限 As Integer = 30

工巧明智能管理系統/我的系統/人事系統管理_新/人事系統變數設定.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/人事系統變數設定.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/人事系統變數設定.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/人事系統變數設定.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/人事系統變數設定.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/人事系統變數設定.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/人員資料表.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/人員資料表.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/人員資料表.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/人員資料表.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/人員資料表.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/人員資料表.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/休假核准.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/休假核准.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/休假核准.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/休假核准.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/休假核准.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/休假核准.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/休假申請.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/休假申請.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/休假申請.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/休假申請.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/休假申請.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/休假申請.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/個人班表.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/個人班表.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/個人班表.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/個人班表.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/個人班表.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/個人班表.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/到離職管理.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/到離職管理.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/到離職管理.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/到離職管理.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/到離職管理.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/到離職管理.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/加班核准.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/加班核准.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/加班核准.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/加班核准.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/加班核准.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/加班核准.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/加班申請.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/加班申請.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/加班申請.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/加班申請.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/加班申請.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/加班申請.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/加班申請資料.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/加班申請資料.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/加班申請資料.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/加班申請資料.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/加班申請資料.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/加班申請資料.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/國定假日設定.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/國定假日設定.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/國定假日設定.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/國定假日設定.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/國定假日設定.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/國定假日設定.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/排班明細.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/排班明細.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/排班明細.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/排班明細.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/排班明細.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/排班明細.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/排班明細_參考.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/排班明細_參考.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/排班明細_參考.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/排班明細_參考.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/排班明細_參考.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/排班明細_參考.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/排班資料.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/排班資料.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/排班資料.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/排班資料.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/排班資料.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/排班資料.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/最後關班時間.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/最後關班時間.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/最後關班時間.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/最後關班時間.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/最後關班時間.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/最後關班時間.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/歷史休假紀錄.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/歷史休假紀錄.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/歷史休假紀錄.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/歷史休假紀錄.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/歷史休假紀錄.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/歷史休假紀錄.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/系統使用者權限設定.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/系統使用者權限設定.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/系統使用者權限設定.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/系統使用者權限設定.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/系統使用者權限設定.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/系統使用者權限設定.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/考勤明細表.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/考勤明細表.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/考勤明細表.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/考勤明細表.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/考勤明細表.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/考勤明細表.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/考勤明細表_編輯.Designer.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/考勤明細表_編輯.Designer.vb ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/考勤明細表_編輯.resx → 工巧明智能管理系統/我的系統/01-人事系統管理_新/考勤明細表_編輯.resx ファイルの表示


工巧明智能管理系統/我的系統/人事系統管理_新/考勤明細表_編輯.vb → 工巧明智能管理系統/我的系統/01-人事系統管理_新/考勤明細表_編輯.vb ファイルの表示


+ 629
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_對帳單_GCM.Designer.vb ファイルの表示

@@ -0,0 +1,629 @@
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
2
+Partial Class 財務_對帳單_GCM
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
+        Me.Label4 = New System.Windows.Forms.Label()
28
+        Me.收支單號_tb = New System.Windows.Forms.TextBox()
29
+        Me.收入_單_tb = New System.Windows.Forms.TextBox()
30
+        Me.Label9 = New System.Windows.Forms.Label()
31
+        Me.清單_dgv = New System.Windows.Forms.DataGridView()
32
+        Me.月_ch = New System.Windows.Forms.ComboBox()
33
+        Me.年_cb = New System.Windows.Forms.ComboBox()
34
+        Me.Label2 = New System.Windows.Forms.Label()
35
+        Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
36
+        Me.重新整理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
37
+        Me.關鍵字查詢ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
38
+        Me.清除ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
39
+        Me.對帳記錄存檔ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
40
+        Me.ToolStripSeparator2 = New System.Windows.Forms.ToolStripSeparator()
41
+        Me.BBBToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
42
+        Me.支出_單_tb = New System.Windows.Forms.TextBox()
43
+        Me.Label5 = New System.Windows.Forms.Label()
44
+        Me.損益_單_tb = New System.Windows.Forms.TextBox()
45
+        Me.Label6 = New System.Windows.Forms.Label()
46
+        Me.損益_總_tb = New System.Windows.Forms.TextBox()
47
+        Me.Label7 = New System.Windows.Forms.Label()
48
+        Me.支出_總_tb = New System.Windows.Forms.TextBox()
49
+        Me.Label8 = New System.Windows.Forms.Label()
50
+        Me.收入_總_tb = New System.Windows.Forms.TextBox()
51
+        Me.Label10 = New System.Windows.Forms.Label()
52
+        Me.隱藏申請_ch = New System.Windows.Forms.CheckBox()
53
+        Me.隱藏作帳_ch = New System.Windows.Forms.CheckBox()
54
+        Me.只顯示支票資料_ch = New System.Windows.Forms.CheckBox()
55
+        Me.零用金_總_tb = New System.Windows.Forms.TextBox()
56
+        Me.Label1 = New System.Windows.Forms.Label()
57
+        Me.零用金_單_tb = New System.Windows.Forms.TextBox()
58
+        Me.Label3 = New System.Windows.Forms.Label()
59
+        Me.TextBox10 = New System.Windows.Forms.TextBox()
60
+        Me.Label11 = New System.Windows.Forms.Label()
61
+        Me.已兌現支票_單_tb = New System.Windows.Forms.TextBox()
62
+        Me.Label12 = New System.Windows.Forms.Label()
63
+        Me.支票_總_tb = New System.Windows.Forms.TextBox()
64
+        Me.Label13 = New System.Windows.Forms.Label()
65
+        Me.支票_單_tb = New System.Windows.Forms.TextBox()
66
+        Me.Label14 = New System.Windows.Forms.Label()
67
+        Me.ProgressBar1 = New System.Windows.Forms.ProgressBar()
68
+        Me.非稅_ch = New System.Windows.Forms.CheckBox()
69
+        Me.含稅_ch = New System.Windows.Forms.CheckBox()
70
+        Me.全部_ch = New System.Windows.Forms.CheckBox()
71
+        Me.Panel1 = New System.Windows.Forms.Panel()
72
+        Me.Label15 = New System.Windows.Forms.Label()
73
+        Me.Label16 = New System.Windows.Forms.Label()
74
+        CType(Me.清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
75
+        Me.ContextMenuStrip1.SuspendLayout()
76
+        Me.Panel1.SuspendLayout()
77
+        Me.SuspendLayout()
78
+        '
79
+        'Label4
80
+        '
81
+        Me.Label4.AutoSize = True
82
+        Me.Label4.ForeColor = System.Drawing.Color.Green
83
+        Me.Label4.Location = New System.Drawing.Point(210, 6)
84
+        Me.Label4.Name = "Label4"
85
+        Me.Label4.Size = New System.Drawing.Size(31, 16)
86
+        Me.Label4.TabIndex = 1015
87
+        Me.Label4.Text = "單號"
88
+        '
89
+        '收支單號_tb
90
+        '
91
+        Me.收支單號_tb.ForeColor = System.Drawing.Color.Green
92
+        Me.收支單號_tb.Location = New System.Drawing.Point(242, 3)
93
+        Me.收支單號_tb.Name = "收支單號_tb"
94
+        Me.收支單號_tb.Size = New System.Drawing.Size(148, 23)
95
+        Me.收支單號_tb.TabIndex = 1014
96
+        Me.收支單號_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
97
+        '
98
+        '收入_單_tb
99
+        '
100
+        Me.收入_單_tb.ForeColor = System.Drawing.Color.Green
101
+        Me.收入_單_tb.Location = New System.Drawing.Point(898, 2)
102
+        Me.收入_單_tb.Name = "收入_單_tb"
103
+        Me.收入_單_tb.Size = New System.Drawing.Size(90, 23)
104
+        Me.收入_單_tb.TabIndex = 1013
105
+        Me.收入_單_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
106
+        '
107
+        'Label9
108
+        '
109
+        Me.Label9.AutoSize = True
110
+        Me.Label9.ForeColor = System.Drawing.Color.Green
111
+        Me.Label9.Location = New System.Drawing.Point(866, 6)
112
+        Me.Label9.Name = "Label9"
113
+        Me.Label9.Size = New System.Drawing.Size(31, 16)
114
+        Me.Label9.TabIndex = 1012
115
+        Me.Label9.Text = "收入"
116
+        '
117
+        '清單_dgv
118
+        '
119
+        Me.清單_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
120
+            Or System.Windows.Forms.AnchorStyles.Left) _
121
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
122
+        Me.清單_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
123
+        Me.清單_dgv.BackgroundColor = System.Drawing.Color.White
124
+        Me.清單_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
125
+        Me.清單_dgv.Location = New System.Drawing.Point(2, 53)
126
+        Me.清單_dgv.Name = "清單_dgv"
127
+        Me.清單_dgv.RowHeadersWidth = 5
128
+        DataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
129
+        Me.清單_dgv.RowsDefaultCellStyle = DataGridViewCellStyle1
130
+        Me.清單_dgv.RowTemplate.Height = 24
131
+        Me.清單_dgv.Size = New System.Drawing.Size(1245, 535)
132
+        Me.清單_dgv.TabIndex = 1006
133
+        '
134
+        '月_ch
135
+        '
136
+        Me.月_ch.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
137
+        Me.月_ch.FormattingEnabled = True
138
+        Me.月_ch.Items.AddRange(New Object() {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"})
139
+        Me.月_ch.Location = New System.Drawing.Point(149, 3)
140
+        Me.月_ch.Name = "月_ch"
141
+        Me.月_ch.Size = New System.Drawing.Size(55, 24)
142
+        Me.月_ch.TabIndex = 1001
143
+        '
144
+        '年_cb
145
+        '
146
+        Me.年_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
147
+        Me.年_cb.FormattingEnabled = True
148
+        Me.年_cb.Items.AddRange(New Object() {"2019"})
149
+        Me.年_cb.Location = New System.Drawing.Point(73, 3)
150
+        Me.年_cb.Name = "年_cb"
151
+        Me.年_cb.Size = New System.Drawing.Size(70, 24)
152
+        Me.年_cb.TabIndex = 1000
153
+        '
154
+        'Label2
155
+        '
156
+        Me.Label2.AutoSize = True
157
+        Me.Label2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
158
+        Me.Label2.Location = New System.Drawing.Point(11, 8)
159
+        Me.Label2.Name = "Label2"
160
+        Me.Label2.Size = New System.Drawing.Size(55, 16)
161
+        Me.Label2.TabIndex = 999
162
+        Me.Label2.Text = "查詢日期"
163
+        '
164
+        'ContextMenuStrip1
165
+        '
166
+        Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.重新整理ToolStripMenuItem, Me.關鍵字查詢ToolStripMenuItem, Me.清除ToolStripMenuItem, Me.對帳記錄存檔ToolStripMenuItem, Me.ToolStripSeparator2, Me.BBBToolStripMenuItem})
167
+        Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
168
+        Me.ContextMenuStrip1.Size = New System.Drawing.Size(181, 142)
169
+        '
170
+        '重新整理ToolStripMenuItem
171
+        '
172
+        Me.重新整理ToolStripMenuItem.Name = "重新整理ToolStripMenuItem"
173
+        Me.重新整理ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
174
+        Me.重新整理ToolStripMenuItem.Text = "重新整理"
175
+        '
176
+        '關鍵字查詢ToolStripMenuItem
177
+        '
178
+        Me.關鍵字查詢ToolStripMenuItem.Name = "關鍵字查詢ToolStripMenuItem"
179
+        Me.關鍵字查詢ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
180
+        Me.關鍵字查詢ToolStripMenuItem.Text = "關鍵字查詢"
181
+        '
182
+        '清除ToolStripMenuItem
183
+        '
184
+        Me.清除ToolStripMenuItem.Name = "清除ToolStripMenuItem"
185
+        Me.清除ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
186
+        Me.清除ToolStripMenuItem.Text = "清除介面查詢資料"
187
+        Me.清除ToolStripMenuItem.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
188
+        '
189
+        '對帳記錄存檔ToolStripMenuItem
190
+        '
191
+        Me.對帳記錄存檔ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
192
+        Me.對帳記錄存檔ToolStripMenuItem.Name = "對帳記錄存檔ToolStripMenuItem"
193
+        Me.對帳記錄存檔ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
194
+        Me.對帳記錄存檔ToolStripMenuItem.Text = "對帳記錄存檔"
195
+        '
196
+        'ToolStripSeparator2
197
+        '
198
+        Me.ToolStripSeparator2.Name = "ToolStripSeparator2"
199
+        Me.ToolStripSeparator2.Size = New System.Drawing.Size(177, 6)
200
+        '
201
+        'BBBToolStripMenuItem
202
+        '
203
+        Me.BBBToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
204
+        Me.BBBToolStripMenuItem.Name = "BBBToolStripMenuItem"
205
+        Me.BBBToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
206
+        Me.BBBToolStripMenuItem.Text = "列印成EXCEL"
207
+        '
208
+        '支出_單_tb
209
+        '
210
+        Me.支出_單_tb.ForeColor = System.Drawing.Color.Green
211
+        Me.支出_單_tb.Location = New System.Drawing.Point(1023, 2)
212
+        Me.支出_單_tb.Name = "支出_單_tb"
213
+        Me.支出_單_tb.Size = New System.Drawing.Size(90, 23)
214
+        Me.支出_單_tb.TabIndex = 1017
215
+        Me.支出_單_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
216
+        '
217
+        'Label5
218
+        '
219
+        Me.Label5.AutoSize = True
220
+        Me.Label5.ForeColor = System.Drawing.Color.Green
221
+        Me.Label5.Location = New System.Drawing.Point(990, 6)
222
+        Me.Label5.Name = "Label5"
223
+        Me.Label5.Size = New System.Drawing.Size(31, 16)
224
+        Me.Label5.TabIndex = 1016
225
+        Me.Label5.Text = "支出"
226
+        '
227
+        '損益_單_tb
228
+        '
229
+        Me.損益_單_tb.ForeColor = System.Drawing.Color.Green
230
+        Me.損益_單_tb.Location = New System.Drawing.Point(1149, 2)
231
+        Me.損益_單_tb.Name = "損益_單_tb"
232
+        Me.損益_單_tb.Size = New System.Drawing.Size(90, 23)
233
+        Me.損益_單_tb.TabIndex = 1019
234
+        Me.損益_單_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
235
+        '
236
+        'Label6
237
+        '
238
+        Me.Label6.AutoSize = True
239
+        Me.Label6.ForeColor = System.Drawing.Color.Green
240
+        Me.Label6.Location = New System.Drawing.Point(1115, 6)
241
+        Me.Label6.Name = "Label6"
242
+        Me.Label6.Size = New System.Drawing.Size(31, 16)
243
+        Me.Label6.TabIndex = 1018
244
+        Me.Label6.Text = "損益"
245
+        '
246
+        '損益_總_tb
247
+        '
248
+        Me.損益_總_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
249
+        Me.損益_總_tb.Location = New System.Drawing.Point(1149, 27)
250
+        Me.損益_總_tb.Name = "損益_總_tb"
251
+        Me.損益_總_tb.Size = New System.Drawing.Size(90, 23)
252
+        Me.損益_總_tb.TabIndex = 1025
253
+        Me.損益_總_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
254
+        '
255
+        'Label7
256
+        '
257
+        Me.Label7.AutoSize = True
258
+        Me.Label7.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
259
+        Me.Label7.Location = New System.Drawing.Point(1115, 30)
260
+        Me.Label7.Name = "Label7"
261
+        Me.Label7.Size = New System.Drawing.Size(31, 16)
262
+        Me.Label7.TabIndex = 1024
263
+        Me.Label7.Text = "損益"
264
+        '
265
+        '支出_總_tb
266
+        '
267
+        Me.支出_總_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
268
+        Me.支出_總_tb.Location = New System.Drawing.Point(1023, 27)
269
+        Me.支出_總_tb.Name = "支出_總_tb"
270
+        Me.支出_總_tb.Size = New System.Drawing.Size(90, 23)
271
+        Me.支出_總_tb.TabIndex = 1023
272
+        Me.支出_總_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
273
+        '
274
+        'Label8
275
+        '
276
+        Me.Label8.AutoSize = True
277
+        Me.Label8.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
278
+        Me.Label8.Location = New System.Drawing.Point(990, 31)
279
+        Me.Label8.Name = "Label8"
280
+        Me.Label8.Size = New System.Drawing.Size(31, 16)
281
+        Me.Label8.TabIndex = 1022
282
+        Me.Label8.Text = "支出"
283
+        '
284
+        '收入_總_tb
285
+        '
286
+        Me.收入_總_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
287
+        Me.收入_總_tb.Location = New System.Drawing.Point(898, 27)
288
+        Me.收入_總_tb.Name = "收入_總_tb"
289
+        Me.收入_總_tb.Size = New System.Drawing.Size(90, 23)
290
+        Me.收入_總_tb.TabIndex = 1021
291
+        Me.收入_總_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
292
+        '
293
+        'Label10
294
+        '
295
+        Me.Label10.AutoSize = True
296
+        Me.Label10.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
297
+        Me.Label10.Location = New System.Drawing.Point(866, 31)
298
+        Me.Label10.Name = "Label10"
299
+        Me.Label10.Size = New System.Drawing.Size(31, 16)
300
+        Me.Label10.TabIndex = 1020
301
+        Me.Label10.Text = "收入"
302
+        '
303
+        '隱藏申請_ch
304
+        '
305
+        Me.隱藏申請_ch.AutoSize = True
306
+        Me.隱藏申請_ch.Checked = True
307
+        Me.隱藏申請_ch.CheckState = System.Windows.Forms.CheckState.Checked
308
+        Me.隱藏申請_ch.Location = New System.Drawing.Point(3, 31)
309
+        Me.隱藏申請_ch.Name = "隱藏申請_ch"
310
+        Me.隱藏申請_ch.Size = New System.Drawing.Size(134, 20)
311
+        Me.隱藏申請_ch.TabIndex = 1026
312
+        Me.隱藏申請_ch.Text = "隱藏申請、審核資訊"
313
+        Me.隱藏申請_ch.UseVisualStyleBackColor = True
314
+        '
315
+        '隱藏作帳_ch
316
+        '
317
+        Me.隱藏作帳_ch.AutoSize = True
318
+        Me.隱藏作帳_ch.Checked = True
319
+        Me.隱藏作帳_ch.CheckState = System.Windows.Forms.CheckState.Checked
320
+        Me.隱藏作帳_ch.Location = New System.Drawing.Point(144, 31)
321
+        Me.隱藏作帳_ch.Name = "隱藏作帳_ch"
322
+        Me.隱藏作帳_ch.Size = New System.Drawing.Size(134, 20)
323
+        Me.隱藏作帳_ch.TabIndex = 1027
324
+        Me.隱藏作帳_ch.Text = "隱藏作帳、點交資訊"
325
+        Me.隱藏作帳_ch.UseVisualStyleBackColor = True
326
+        '
327
+        '只顯示支票資料_ch
328
+        '
329
+        Me.只顯示支票資料_ch.AutoSize = True
330
+        Me.只顯示支票資料_ch.Location = New System.Drawing.Point(285, 31)
331
+        Me.只顯示支票資料_ch.Name = "只顯示支票資料_ch"
332
+        Me.只顯示支票資料_ch.Size = New System.Drawing.Size(110, 20)
333
+        Me.只顯示支票資料_ch.TabIndex = 1028
334
+        Me.只顯示支票資料_ch.Text = "只顯示支票資料"
335
+        Me.只顯示支票資料_ch.UseVisualStyleBackColor = True
336
+        '
337
+        '零用金_總_tb
338
+        '
339
+        Me.零用金_總_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
340
+        Me.零用金_總_tb.Location = New System.Drawing.Point(774, 27)
341
+        Me.零用金_總_tb.Name = "零用金_總_tb"
342
+        Me.零用金_總_tb.Size = New System.Drawing.Size(90, 23)
343
+        Me.零用金_總_tb.TabIndex = 1032
344
+        Me.零用金_總_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
345
+        '
346
+        'Label1
347
+        '
348
+        Me.Label1.AutoSize = True
349
+        Me.Label1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
350
+        Me.Label1.Location = New System.Drawing.Point(728, 31)
351
+        Me.Label1.Name = "Label1"
352
+        Me.Label1.Size = New System.Drawing.Size(43, 16)
353
+        Me.Label1.TabIndex = 1031
354
+        Me.Label1.Text = "零用金"
355
+        '
356
+        '零用金_單_tb
357
+        '
358
+        Me.零用金_單_tb.ForeColor = System.Drawing.Color.Green
359
+        Me.零用金_單_tb.Location = New System.Drawing.Point(774, 2)
360
+        Me.零用金_單_tb.Name = "零用金_單_tb"
361
+        Me.零用金_單_tb.Size = New System.Drawing.Size(90, 23)
362
+        Me.零用金_單_tb.TabIndex = 1030
363
+        Me.零用金_單_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
364
+        '
365
+        'Label3
366
+        '
367
+        Me.Label3.AutoSize = True
368
+        Me.Label3.ForeColor = System.Drawing.Color.Green
369
+        Me.Label3.Location = New System.Drawing.Point(728, 6)
370
+        Me.Label3.Name = "Label3"
371
+        Me.Label3.Size = New System.Drawing.Size(43, 16)
372
+        Me.Label3.TabIndex = 1029
373
+        Me.Label3.Text = "零用金"
374
+        '
375
+        'TextBox10
376
+        '
377
+        Me.TextBox10.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
378
+        Me.TextBox10.Location = New System.Drawing.Point(78, 28)
379
+        Me.TextBox10.Name = "TextBox10"
380
+        Me.TextBox10.Size = New System.Drawing.Size(90, 23)
381
+        Me.TextBox10.TabIndex = 1036
382
+        Me.TextBox10.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
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(8, 32)
389
+        Me.Label11.Name = "Label11"
390
+        Me.Label11.Size = New System.Drawing.Size(67, 16)
391
+        Me.Label11.TabIndex = 1035
392
+        Me.Label11.Text = "已兌現支票"
393
+        '
394
+        '已兌現支票_單_tb
395
+        '
396
+        Me.已兌現支票_單_tb.ForeColor = System.Drawing.Color.Green
397
+        Me.已兌現支票_單_tb.Location = New System.Drawing.Point(78, 3)
398
+        Me.已兌現支票_單_tb.Name = "已兌現支票_單_tb"
399
+        Me.已兌現支票_單_tb.Size = New System.Drawing.Size(90, 23)
400
+        Me.已兌現支票_單_tb.TabIndex = 1034
401
+        Me.已兌現支票_單_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
402
+        '
403
+        'Label12
404
+        '
405
+        Me.Label12.AutoSize = True
406
+        Me.Label12.ForeColor = System.Drawing.Color.Green
407
+        Me.Label12.Location = New System.Drawing.Point(8, 7)
408
+        Me.Label12.Name = "Label12"
409
+        Me.Label12.Size = New System.Drawing.Size(67, 16)
410
+        Me.Label12.TabIndex = 1033
411
+        Me.Label12.Text = "已兌現支票"
412
+        '
413
+        '支票_總_tb
414
+        '
415
+        Me.支票_總_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
416
+        Me.支票_總_tb.Location = New System.Drawing.Point(635, 28)
417
+        Me.支票_總_tb.Name = "支票_總_tb"
418
+        Me.支票_總_tb.Size = New System.Drawing.Size(90, 23)
419
+        Me.支票_總_tb.TabIndex = 1040
420
+        Me.支票_總_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
421
+        '
422
+        'Label13
423
+        '
424
+        Me.Label13.AutoSize = True
425
+        Me.Label13.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
426
+        Me.Label13.Location = New System.Drawing.Point(602, 32)
427
+        Me.Label13.Name = "Label13"
428
+        Me.Label13.Size = New System.Drawing.Size(31, 16)
429
+        Me.Label13.TabIndex = 1039
430
+        Me.Label13.Text = "支票"
431
+        '
432
+        '支票_單_tb
433
+        '
434
+        Me.支票_單_tb.ForeColor = System.Drawing.Color.Green
435
+        Me.支票_單_tb.Location = New System.Drawing.Point(635, 3)
436
+        Me.支票_單_tb.Name = "支票_單_tb"
437
+        Me.支票_單_tb.Size = New System.Drawing.Size(90, 23)
438
+        Me.支票_單_tb.TabIndex = 1038
439
+        Me.支票_單_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
440
+        '
441
+        'Label14
442
+        '
443
+        Me.Label14.AutoSize = True
444
+        Me.Label14.ForeColor = System.Drawing.Color.Green
445
+        Me.Label14.Location = New System.Drawing.Point(602, 7)
446
+        Me.Label14.Name = "Label14"
447
+        Me.Label14.Size = New System.Drawing.Size(31, 16)
448
+        Me.Label14.TabIndex = 1037
449
+        Me.Label14.Text = "支票"
450
+        '
451
+        'ProgressBar1
452
+        '
453
+        Me.ProgressBar1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
454
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
455
+        Me.ProgressBar1.Location = New System.Drawing.Point(3, 591)
456
+        Me.ProgressBar1.Name = "ProgressBar1"
457
+        Me.ProgressBar1.Size = New System.Drawing.Size(1065, 17)
458
+        Me.ProgressBar1.TabIndex = 1041
459
+        '
460
+        '非稅_ch
461
+        '
462
+        Me.非稅_ch.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
463
+        Me.非稅_ch.AutoSize = True
464
+        Me.非稅_ch.Location = New System.Drawing.Point(1193, 589)
465
+        Me.非稅_ch.Name = "非稅_ch"
466
+        Me.非稅_ch.Size = New System.Drawing.Size(50, 20)
467
+        Me.非稅_ch.TabIndex = 1188
468
+        Me.非稅_ch.Text = "非稅"
469
+        Me.非稅_ch.UseVisualStyleBackColor = True
470
+        '
471
+        '含稅_ch
472
+        '
473
+        Me.含稅_ch.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
474
+        Me.含稅_ch.AutoSize = True
475
+        Me.含稅_ch.Location = New System.Drawing.Point(1136, 589)
476
+        Me.含稅_ch.Name = "含稅_ch"
477
+        Me.含稅_ch.Size = New System.Drawing.Size(50, 20)
478
+        Me.含稅_ch.TabIndex = 1187
479
+        Me.含稅_ch.Text = "含稅"
480
+        Me.含稅_ch.UseVisualStyleBackColor = True
481
+        '
482
+        '全部_ch
483
+        '
484
+        Me.全部_ch.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
485
+        Me.全部_ch.AutoSize = True
486
+        Me.全部_ch.Checked = True
487
+        Me.全部_ch.CheckState = System.Windows.Forms.CheckState.Checked
488
+        Me.全部_ch.Location = New System.Drawing.Point(1079, 589)
489
+        Me.全部_ch.Name = "全部_ch"
490
+        Me.全部_ch.Size = New System.Drawing.Size(50, 20)
491
+        Me.全部_ch.TabIndex = 1186
492
+        Me.全部_ch.Text = "全部"
493
+        Me.全部_ch.UseVisualStyleBackColor = True
494
+        '
495
+        'Panel1
496
+        '
497
+        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
498
+        Me.Panel1.Controls.Add(Me.已兌現支票_單_tb)
499
+        Me.Panel1.Controls.Add(Me.Label12)
500
+        Me.Panel1.Controls.Add(Me.Label11)
501
+        Me.Panel1.Controls.Add(Me.TextBox10)
502
+        Me.Panel1.Location = New System.Drawing.Point(602, 140)
503
+        Me.Panel1.Name = "Panel1"
504
+        Me.Panel1.Size = New System.Drawing.Size(200, 134)
505
+        Me.Panel1.TabIndex = 1189
506
+        '
507
+        'Label15
508
+        '
509
+        Me.Label15.AutoSize = True
510
+        Me.Label15.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
511
+        Me.Label15.Location = New System.Drawing.Point(505, 31)
512
+        Me.Label15.Name = "Label15"
513
+        Me.Label15.Size = New System.Drawing.Size(91, 16)
514
+        Me.Label15.TabIndex = 1191
515
+        Me.Label15.Text = "整月收支單總和"
516
+        '
517
+        'Label16
518
+        '
519
+        Me.Label16.AutoSize = True
520
+        Me.Label16.ForeColor = System.Drawing.Color.Green
521
+        Me.Label16.Location = New System.Drawing.Point(505, 7)
522
+        Me.Label16.Name = "Label16"
523
+        Me.Label16.Size = New System.Drawing.Size(91, 16)
524
+        Me.Label16.TabIndex = 1190
525
+        Me.Label16.Text = "單筆收支單總和"
526
+        '
527
+        '財務_對帳單_GCM
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.清單_dgv)
534
+        Me.Controls.Add(Me.Label15)
535
+        Me.Controls.Add(Me.Label16)
536
+        Me.Controls.Add(Me.非稅_ch)
537
+        Me.Controls.Add(Me.含稅_ch)
538
+        Me.Controls.Add(Me.全部_ch)
539
+        Me.Controls.Add(Me.ProgressBar1)
540
+        Me.Controls.Add(Me.支票_總_tb)
541
+        Me.Controls.Add(Me.Label13)
542
+        Me.Controls.Add(Me.支票_單_tb)
543
+        Me.Controls.Add(Me.Label14)
544
+        Me.Controls.Add(Me.零用金_總_tb)
545
+        Me.Controls.Add(Me.Label1)
546
+        Me.Controls.Add(Me.零用金_單_tb)
547
+        Me.Controls.Add(Me.Label3)
548
+        Me.Controls.Add(Me.只顯示支票資料_ch)
549
+        Me.Controls.Add(Me.隱藏作帳_ch)
550
+        Me.Controls.Add(Me.隱藏申請_ch)
551
+        Me.Controls.Add(Me.損益_總_tb)
552
+        Me.Controls.Add(Me.Label7)
553
+        Me.Controls.Add(Me.支出_總_tb)
554
+        Me.Controls.Add(Me.Label8)
555
+        Me.Controls.Add(Me.收入_總_tb)
556
+        Me.Controls.Add(Me.Label10)
557
+        Me.Controls.Add(Me.損益_單_tb)
558
+        Me.Controls.Add(Me.Label6)
559
+        Me.Controls.Add(Me.支出_單_tb)
560
+        Me.Controls.Add(Me.Label5)
561
+        Me.Controls.Add(Me.Label4)
562
+        Me.Controls.Add(Me.收支單號_tb)
563
+        Me.Controls.Add(Me.收入_單_tb)
564
+        Me.Controls.Add(Me.Label9)
565
+        Me.Controls.Add(Me.月_ch)
566
+        Me.Controls.Add(Me.年_cb)
567
+        Me.Controls.Add(Me.Label2)
568
+        Me.Controls.Add(Me.Panel1)
569
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
570
+        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
571
+        Me.Name = "財務_對帳單_GCM"
572
+        Me.Text = "財務_對帳表_GCM"
573
+        CType(Me.清單_dgv, System.ComponentModel.ISupportInitialize).EndInit()
574
+        Me.ContextMenuStrip1.ResumeLayout(False)
575
+        Me.Panel1.ResumeLayout(False)
576
+        Me.Panel1.PerformLayout()
577
+        Me.ResumeLayout(False)
578
+        Me.PerformLayout()
579
+
580
+    End Sub
581
+
582
+    Friend WithEvents Label4 As Label
583
+    Friend WithEvents 收支單號_tb As TextBox
584
+    Friend WithEvents 收入_單_tb As TextBox
585
+    Friend WithEvents Label9 As Label
586
+    Friend WithEvents 清單_dgv As DataGridView
587
+    Friend WithEvents 月_ch As ComboBox
588
+    Friend WithEvents 年_cb As ComboBox
589
+    Friend WithEvents Label2 As Label
590
+    Friend WithEvents ContextMenuStrip1 As ContextMenuStrip
591
+    Friend WithEvents 對帳記錄存檔ToolStripMenuItem As ToolStripMenuItem
592
+    Friend WithEvents ToolStripSeparator2 As ToolStripSeparator
593
+    Friend WithEvents 關鍵字查詢ToolStripMenuItem As ToolStripMenuItem
594
+    Friend WithEvents BBBToolStripMenuItem As ToolStripMenuItem
595
+    Friend WithEvents 清除ToolStripMenuItem As ToolStripMenuItem
596
+    Friend WithEvents 支出_單_tb As TextBox
597
+    Friend WithEvents Label5 As Label
598
+    Friend WithEvents 損益_單_tb As TextBox
599
+    Friend WithEvents Label6 As Label
600
+    Friend WithEvents 損益_總_tb As TextBox
601
+    Friend WithEvents Label7 As Label
602
+    Friend WithEvents 支出_總_tb As TextBox
603
+    Friend WithEvents Label8 As Label
604
+    Friend WithEvents 收入_總_tb As TextBox
605
+    Friend WithEvents Label10 As Label
606
+    Friend WithEvents 隱藏申請_ch As CheckBox
607
+    Friend WithEvents 隱藏作帳_ch As CheckBox
608
+    Friend WithEvents 只顯示支票資料_ch As CheckBox
609
+    Friend WithEvents 零用金_總_tb As TextBox
610
+    Friend WithEvents Label1 As Label
611
+    Friend WithEvents 零用金_單_tb As TextBox
612
+    Friend WithEvents Label3 As Label
613
+    Friend WithEvents TextBox10 As TextBox
614
+    Friend WithEvents Label11 As Label
615
+    Friend WithEvents 已兌現支票_單_tb As TextBox
616
+    Friend WithEvents Label12 As Label
617
+    Friend WithEvents 支票_總_tb As TextBox
618
+    Friend WithEvents Label13 As Label
619
+    Friend WithEvents 支票_單_tb As TextBox
620
+    Friend WithEvents Label14 As Label
621
+    Friend WithEvents 重新整理ToolStripMenuItem As ToolStripMenuItem
622
+    Friend WithEvents ProgressBar1 As ProgressBar
623
+    Friend WithEvents 非稅_ch As CheckBox
624
+    Friend WithEvents 含稅_ch As CheckBox
625
+    Friend WithEvents 全部_ch As CheckBox
626
+    Friend WithEvents Panel1 As Panel
627
+    Friend WithEvents Label15 As Label
628
+    Friend WithEvents Label16 As Label
629
+End Class

工巧明智能管理系統/我的系統/財務系統管理/財務_收支單一覽表.resx → 工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_對帳單_GCM.resx ファイルの表示


工巧明智能管理系統/我的系統/財務系統管理/財務_對帳單.vb → 工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_對帳單_GCM.vb ファイルの表示

@@ -1,5 +1,5 @@
1 1
 Option Strict Off
2
-Public Class 財務_對帳單
2
+Public Class 財務_對帳單_GCM
3 3
     ReadOnly ds As New DataSet
4 4
     Dim KKKJJ As String : Dim KKKJJ2 As String : Dim KKKJJ3 As String : Dim KKK3 As String : Dim KKK4 As String : Dim 匯率1 As Double
5 5
     Private Sub Set_清單1()
@@ -24,7 +24,7 @@ Public Class 財務_對帳單
24 24
                 FROM        財務流水帳 INNER JOIN
25 25
                             會計科目 ON 財務流水帳.類別 = 會計科目.編號 FULL OUTER JOIN
26 26
                             財務控制表 ON 財務流水帳.支付單號 = 財務控制表.支付單號
27
-                WHERE      (財務控制表.審核人 NOT LIKE '') AND 
27
+                WHERE      (財務控制表.審核人 NOT LIKE '') AND (會計科目.編號 NOT LIKE 'D%') AND
28 28
                            (財務控制表.審核人 NOT LIKE '作廢%') " & KKKJJ3 & KKKJJ & KKKJJ2 & SQL2 & " 
29 29
                 ORDER BY    收支單號 DESC, 財務流水帳.項次"
30 30
         列印用SQL1 = SQL1
@@ -38,13 +38,13 @@ Public Class 財務_對帳單
38 38
         清單_dgv.Columns(16).FillWeight = 85 : 清單_dgv.Columns(17).Visible = False : 清單_dgv.Columns(18).Visible = False : 清單_dgv.Columns(19).Visible = False
39 39
         清單_dgv.Columns(20).Visible = False : 清單_dgv.Columns(21).FillWeight = 70 : 清單_dgv.Columns(22).FillWeight = 100
40 40
 
41
-        If CheckBox4.Checked = False Then
41
+        If 隱藏申請_ch.Checked = False Then
42 42
             清單_dgv.Columns(1).Visible = True : 清單_dgv.Columns(2).Visible = True : 清單_dgv.Columns(3).Visible = True : 清單_dgv.Columns(4).Visible = True
43 43
         Else
44 44
             清單_dgv.Columns(1).Visible = False : 清單_dgv.Columns(2).Visible = False : 清單_dgv.Columns(3).Visible = False : 清單_dgv.Columns(4).Visible = False
45 45
         End If
46 46
 
47
-        If CheckBox5.Checked = False Then
47
+        If 隱藏作帳_ch.Checked = False Then
48 48
             清單_dgv.Columns(13).Visible = True : 清單_dgv.Columns(14).Visible = True : 清單_dgv.Columns(15).Visible = True : 清單_dgv.Columns(16).Visible = True
49 49
         Else
50 50
             清單_dgv.Columns(13).Visible = False : 清單_dgv.Columns(14).Visible = False : 清單_dgv.Columns(15).Visible = False : 清單_dgv.Columns(16).Visible = False
@@ -59,47 +59,34 @@ Public Class 財務_對帳單
59 59
         清單_dgv.Columns(21).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 清單_dgv.Columns(21).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
60 60
         清單_dgv.Columns(22).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 清單_dgv.Columns(22).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
61 61
 
62
-        TextBox5.Text = "0" : TextBox6.Text = "0" : TextBox4.Text = "0" : TextBox8.Text = "0" : TextBox10.Text = "0" : TextBox12.Text = "0"
62
+        支出_總_tb.Text = "0" : 收入_總_tb.Text = "0" : 損益_總_tb.Text = "0" : 零用金_總_tb.Text = "0" : TextBox10.Text = "0" : 支票_總_tb.Text = "0"
63 63
         For i As Integer = 0 To 清單_dgv.Rows.Count - 1
64
-            TextBox6.Text = Val(TextBox6.Text) + 清單_dgv.Rows(i).Cells("現金").Value * 清單_dgv.Rows(i).Cells("匯率").Value
65
-            TextBox5.Text = Val(TextBox5.Text) + 清單_dgv.Rows(i).Cells("支出").Value * 清單_dgv.Rows(i).Cells("匯率").Value
66
-            TextBox8.Text = Val(TextBox8.Text) + 清單_dgv.Rows(i).Cells("零用金").Value * 清單_dgv.Rows(i).Cells("匯率").Value
64
+            收入_總_tb.Text = Val(收入_總_tb.Text) + 清單_dgv.Rows(i).Cells("現金").Value * 清單_dgv.Rows(i).Cells("匯率").Value
65
+            支出_總_tb.Text = Val(支出_總_tb.Text) + 清單_dgv.Rows(i).Cells("支出").Value * 清單_dgv.Rows(i).Cells("匯率").Value
66
+            零用金_總_tb.Text = Val(零用金_總_tb.Text) + 清單_dgv.Rows(i).Cells("零用金").Value * 清單_dgv.Rows(i).Cells("匯率").Value
67 67
             If 清單_dgv(9, i).Value <> 0 And 清單_dgv(18, i).Value = True Then
68 68
                 TextBox10.Text = Val(TextBox10.Text) + 清單_dgv.Rows(i).Cells("支票").Value * 清單_dgv.Rows(i).Cells("匯率").Value
69 69
             ElseIf 清單_dgv(9, i).Value <> 0 And 清單_dgv(18, i).Value = False Then
70
-                TextBox12.Text = Val(TextBox12.Text) + 清單_dgv.Rows(i).Cells("支票").Value * 清單_dgv.Rows(i).Cells("匯率").Value
70
+                支票_總_tb.Text = Val(支票_總_tb.Text) + 清單_dgv.Rows(i).Cells("支票").Value * 清單_dgv.Rows(i).Cells("匯率").Value
71 71
             End If
72
-            'If DataGridView1("幣別", i).Value = "台幣現金" Then : DataGridView1("幣別", i).Value = "台幣" : Else : DataGridView1("幣別", i).Value = "人民幣" : End If
73 72
         Next i
74
-        TextBox4.Text = Val(TextBox10.Text) + Val(TextBox8.Text) + Val(TextBox6.Text) - Val(TextBox5.Text)
75
-        If Val(TextBox4.Text) > 0 Then : TextBox4.ForeColor = Color.Blue : Else : TextBox4.ForeColor = Color.Red : End If
76
-        TextBox5.Text = Format(Val(TextBox5.Text), "#,##0") : TextBox4.Text = Format(Val(TextBox4.Text), "#,##0") : TextBox6.Text = Format(Val(TextBox6.Text), "#,##0")
77
-        TextBox8.Text = Format(Val(TextBox8.Text), "#,##0") : TextBox10.Text = Format(Val(TextBox10.Text), "#,##0") : TextBox12.Text = Format(Val(TextBox12.Text), "#,##0")
73
+        損益_總_tb.Text = Val(TextBox10.Text) + Val(零用金_總_tb.Text) + Val(收入_總_tb.Text) - Val(支出_總_tb.Text)
74
+        If CLng(損益_總_tb.Text) > 0 Then : 損益_總_tb.ForeColor = Color.Blue : Else : 損益_總_tb.ForeColor = Color.Red : End If
75
+        支出_總_tb.Text = Format(Val(支出_總_tb.Text), "#,##0") : 損益_總_tb.Text = Format(Val(損益_總_tb.Text), "#,##0") : 收入_總_tb.Text = Format(Val(收入_總_tb.Text), "#,##0")
76
+        零用金_總_tb.Text = Format(Val(零用金_總_tb.Text), "#,##0") : TextBox10.Text = Format(Val(TextBox10.Text), "#,##0") : 支票_總_tb.Text = Format(Val(支票_總_tb.Text), "#,##0")
78 77
     End Sub
79 78
     Private Sub ComboBox1下拉表單資料載入()
80 79
         conn.Close()
81 80
         ConnOpen()
82 81
         SQL1 = "SELECT  年份 FROM 年份清單 ORDER BY 年份 DESC"
83 82
         CmdSet_For_dr()
84
-        ComboBox1.Items.Clear()
85
-        While (dr.Read()) : ComboBox1.Items.Add(dr("年份")) : End While
83
+        年_cb.Items.Clear()
84
+        While (dr.Read()) : 年_cb.Items.Add(dr("年份")) : End While
86 85
         conn.Close()
87 86
     End Sub
88
-    'Private Sub 匯率()
89
-    '    ConnOpen()
90
-    '    SQL1 = "SELECT 中心匯率, 美金匯率, 印尼匯率 FROM 歷史匯率表 
91
-    '            WHERE (年 LIKE '" & ComboBox1.Text & "') AND 
92
-    '                  (月 LIKE '" & ComboBox2.Text & "')"
93
-    '    cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
94
-    '    If dr.Read() Then
95
-    '        人民幣匯率_tb.Text = dr("中心匯率").ToString : 美金匯率_tb.Text = dr("美金匯率").ToString : 印尼匯率_tb.Text = dr("印尼匯率").ToString : conn.Close() : dr.Close()
96
-    '    Else
97
-    '        conn.Close() : dr.Close() : 匯率修改.Close() : 匯率修改.Show() : 匯率修改.BringToFront()
98
-    '    End If
99
-    'End Sub
100 87
     Private Sub 營運成本收支單_對帳表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
101 88
         Me.MdiParent = GCM_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
102
-        TextBox7.Text = "0" : TextBox2.Text = "0" : TextBox3.Text = "0" : TextBox9.Text = "0" : TextBox11.Text = "0" : TextBox13.Text = "0"
89
+        收入_單_tb.Text = "0" : 支出_單_tb.Text = "0" : 損益_單_tb.Text = "0" : 零用金_單_tb.Text = "0" : 已兌現支票_單_tb.Text = "0" : 支票_單_tb.Text = "0"
103 90
         ConnOpen() : SQL1 = "UPDATE 財務流水帳 SET 會計 = N'0' WHERE (會計 IS NULL)" : CmdSet_For_dr() : conn.Close()
104 91
         ConnOpen() : SQL1 = "UPDATE 財務流水帳 SET 出納 = N'0' WHERE (出納 IS NULL)" : CmdSet_For_dr() : conn.Close()
105 92
         ConnOpen() : SQL1 = "UPDATE 財務流水帳 SET 現金 = N'0' WHERE (現金 IS NULL)" : CmdSet_For_dr() : conn.Close()
@@ -108,9 +95,8 @@ Public Class 財務_對帳單
108 95
         ConnOpen() : SQL1 = "UPDATE 財務流水帳 SET 支票 = N'0' WHERE (支票 IS NULL)" : CmdSet_For_dr() : conn.Close()
109 96
         ConnOpen() : SQL1 = "UPDATE 財務流水帳 SET 日期 = N'' WHERE (日期 IS NULL)" : CmdSet_For_dr() : conn.Close()
110 97
         ConnOpen() : SQL1 = "UPDATE 財務流水帳 SET 出納日期 = N'' WHERE (出納日期 IS NULL)" : CmdSet_For_dr() : conn.Close()
111
-        Label62.Visible = False
112 98
         ComboBox1下拉表單資料載入()
113
-        ComboBox1.Text = Year(Today) : ComboBox2.SelectedIndex = Month(Today) - 1
99
+        年_cb.Text = Year(Today) : 月_ch.SelectedIndex = Month(Today) - 1
114 100
         KKKJJ3 = "AND (財務控制表.審核日期 LIKE '" & KKK3 & "/" & KKK4 & "%') "
115 101
     End Sub
116 102
     Dim 已超出 As Boolean
@@ -138,14 +124,11 @@ Public Class 財務_對帳單
138 124
     Private Sub 非稅_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 非稅_ch.Click
139 125
         全部_ch.Checked = False : 含稅_ch.Checked = False : 非稅_ch.Checked = True : Set_清單1()
140 126
     End Sub
141
-    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
142
-        If Label62.Visible = True Then : Label62.Visible = False : Else : Label62.Visible = True : End If
143
-    End Sub
144 127
     Private Sub 總金額計算()
145 128
         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
146
-        TextBox7.Text = "0" : TextBox2.Text = "0" : TextBox3.Text = "0" : TextBox9.Text = "0" : TextBox11.Text = "0" : TextBox13.Text = "0"
129
+        收入_單_tb.Text = "0" : 支出_單_tb.Text = "0" : 損益_單_tb.Text = "0" : 零用金_單_tb.Text = "0" : 已兌現支票_單_tb.Text = "0" : 支票_單_tb.Text = "0"
147 130
         For i As Integer = 0 To 清單_dgv.Rows.Count - 1
148
-            If 清單_dgv.Rows(i).Cells("收支單號").Value = TextBox1.Text Then
131
+            If 清單_dgv.Rows(i).Cells("收支單號").Value = 收支單號_tb.Text Then
149 132
                 FFGG = Val(FFGG) + 清單_dgv.Rows(i).Cells("現金").Value * 清單_dgv.Rows(i).Cells("匯率").Value
150 133
                 GGHH = Val(GGHH) + 清單_dgv.Rows(i).Cells("支出").Value * 清單_dgv.Rows(i).Cells("匯率").Value
151 134
                 HHJJ = Val(HHJJ) + 清單_dgv.Rows(i).Cells("零用金").Value * 清單_dgv.Rows(i).Cells("匯率").Value
@@ -156,19 +139,19 @@ Public Class 財務_對帳單
156 139
                 End If
157 140
             End If
158 141
         Next i
159
-        TextBox7.Text = FFGG : TextBox2.Text = GGHH : TextBox9.Text = HHJJ : TextBox11.Text = JJKK : TextBox13.Text = KKLL
160
-        TextBox3.Text = JJKK + HHJJ + FFGG - GGHH
161
-        If Val(TextBox3.Text) > 0 Then : TextBox3.ForeColor = Color.Blue : Else : TextBox3.ForeColor = Color.Red : End If
162
-        TextBox7.Text = Strings.Format(Val(TextBox7.Text), "#,##0") : TextBox2.Text = Strings.Format(Val(TextBox2.Text), "#,##0") : TextBox3.Text = Strings.Format(Val(TextBox3.Text), "#,##0")
163
-        TextBox9.Text = Strings.Format(Val(TextBox9.Text), "#,##0") : TextBox11.Text = Strings.Format(Val(TextBox11.Text), "#,##0") : TextBox13.Text = Strings.Format(Val(TextBox13.Text), "#,##0")
164
-    End Sub
165
-    Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 清單_dgv.CellClick
142
+        收入_單_tb.Text = FFGG : 支出_單_tb.Text = GGHH : 零用金_單_tb.Text = HHJJ : 已兌現支票_單_tb.Text = JJKK : 支票_單_tb.Text = KKLL
143
+        損益_單_tb.Text = JJKK + HHJJ + FFGG - GGHH
144
+        If CLng(損益_單_tb.Text) > 0 Then : 損益_單_tb.ForeColor = Color.Blue : Else : 損益_單_tb.ForeColor = Color.Red : End If
145
+        收入_單_tb.Text = Strings.Format(Val(收入_單_tb.Text), "#,##0") : 支出_單_tb.Text = Strings.Format(Val(支出_單_tb.Text), "#,##0")
146
+        損益_單_tb.Text = Strings.Format(Val(損益_單_tb.Text), "#,##0") : 支票_單_tb.Text = Strings.Format(Val(支票_單_tb.Text), "#,##0")
147
+        零用金_單_tb.Text = Strings.Format(Val(零用金_單_tb.Text), "#,##0") : 已兌現支票_單_tb.Text = Strings.Format(Val(已兌現支票_單_tb.Text), "#,##0")
148
+    End Sub
149
+    Private Sub 清單_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 清單_dgv.CellClick
166 150
         If e.RowIndex = -1 Then : Else
167
-            TextBox1.Text = 清單_dgv.Rows(e.RowIndex).Cells("收支單號").Value
168
-            總金額計算()
151
+            收支單號_tb.Text = 清單_dgv.Rows(e.RowIndex).Cells("收支單號").Value : 總金額計算()
169 152
         End If
170 153
     End Sub
171
-    Private Sub DataGridView1_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 清單_dgv.RowPostPaint
154
+    Private Sub 清單_dgv_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 清單_dgv.RowPostPaint
172 155
         Dim linePen As New Pen(Color.Blue, 2)
173 156
         If e.RowIndex = 清單_dgv.Rows.Count - 1 Then
174 157
             Exit Sub
@@ -189,40 +172,23 @@ Public Class 財務_對帳單
189 172
             End If
190 173
         Next
191 174
     End Sub
192
-    Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged
193
-        KKK3 = ComboBox1.Text
194
-        If KKK3 = "" Or KKK4 = "" Then
195
-        Else
196
-            KKKJJ3 = "AND (財務控制表.審核日期 LIKE '" & KKK3 & "/" & KKK4 & "%') "
197
-            Set_清單1()
198
-        End If
175
+    Private Sub 年_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 年_cb.SelectedIndexChanged
176
+        KKK3 = 年_cb.Text : If KKK3 = "" Or KKK4 = "" Then : Else : KKKJJ3 = "AND (財務控制表.審核日期 LIKE '" & KKK3 & "/" & KKK4 & "%') " : Set_清單1() : End If
199 177
     End Sub
200
-    Private Sub ComboBox2_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox2.SelectedIndexChanged
201
-        KKK4 = ComboBox2.Text
202
-        If KKK3 = "" Or KKK4 = "" Then
203
-        Else
204
-            KKKJJ3 = "AND (財務控制表.審核日期 LIKE '" & KKK3 & "/" & KKK4 & "%') "
205
-            Set_清單1()
206
-        End If
178
+    Private Sub 月_ch_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 月_ch.SelectedIndexChanged
179
+        KKK4 = 月_ch.Text : If KKK3 = "" Or KKK4 = "" Then : Else : KKKJJ3 = "AND (財務控制表.審核日期 LIKE '" & KKK3 & "/" & KKK4 & "%') " : Set_清單1() : End If
207 180
     End Sub
208
-    Private Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox1.Click
209
-        If CheckBox1.Checked = False Then
210
-            KKKJJ = ""
211
-            Set_清單1()
212
-        Else
213
-            KKKJJ = " AND (財務流水帳.支票數 <> 0) "
214
-            Set_清單1()
215
-        End If
181
+    Private Sub 只顯示支票資料_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 只顯示支票資料_ch.Click
182
+        If 只顯示支票資料_ch.Checked = False Then : KKKJJ = "" : Set_清單1() : Else : KKKJJ = " AND (財務流水帳.支票數 <> 0) " : Set_清單1() : End If
216 183
     End Sub
217
-    Private Sub CheckBox4_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox4.Click
184
+    Private Sub 隱藏申請_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 隱藏申請_ch.Click
218 185
         Set_grid()
219 186
     End Sub
220
-    Private Sub CheckBox5_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox5.Click
187
+    Private Sub 隱藏作帳_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 隱藏作帳_ch.Click
221 188
         Set_grid()
222 189
     End Sub
223 190
     '-----------------------------滑鼠右鍵--------------------------------------------------------------------------------------------------------------------------------------
224 191
     Private Sub 對帳記錄存檔ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 對帳記錄存檔ToolStripMenuItem.Click
225
-        Timer1.Enabled = False : Label62.Visible = False
226 192
         For i As Integer = 0 To 清單_dgv.Rows.Count - 1
227 193
             資料數 = 清單_dgv.Rows.Count : MyMoule.進度條()
228 194
             ConnOpen()
@@ -245,9 +211,9 @@ Public Class 財務_對帳單
245 211
     End Sub
246 212
     Private Sub 清除ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 清除ToolStripMenuItem.Click
247 213
         ComboBox1下拉表單資料載入()
248
-        ComboBox2.Items.Clear()
249
-        ComboBox2.Items.Add("01") : ComboBox2.Items.Add("02") : ComboBox2.Items.Add("03") : ComboBox2.Items.Add("04") : ComboBox2.Items.Add("05") : ComboBox2.Items.Add("06")
250
-        ComboBox2.Items.Add("07") : ComboBox2.Items.Add("08") : ComboBox2.Items.Add("09") : ComboBox2.Items.Add("10") : ComboBox2.Items.Add("11") : ComboBox2.Items.Add("12")
214
+        月_ch.Items.Clear()
215
+        月_ch.Items.Add("01") : 月_ch.Items.Add("02") : 月_ch.Items.Add("03") : 月_ch.Items.Add("04") : 月_ch.Items.Add("05") : 月_ch.Items.Add("06")
216
+        月_ch.Items.Add("07") : 月_ch.Items.Add("08") : 月_ch.Items.Add("09") : 月_ch.Items.Add("10") : 月_ch.Items.Add("11") : 月_ch.Items.Add("12")
251 217
         KKK3 = "" : KKK4 = "" : KKKJJ3 = ""
252 218
         清單_dgv.DataSource = Nothing : ds.Clear()
253 219
     End Sub

工巧明智能管理系統/我的系統/財務系統管理/財務_彙總表.Designer.vb → 工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_彙總表_GCM.Designer.vb ファイルの表示

@@ -1,5 +1,5 @@
1 1
 <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
2
-Partial Class 財務_彙總表
2
+Partial Class 財務_彙總表_GCM
3 3
     Inherits System.Windows.Forms.Form
4 4
 
5 5
     'Form 覆寫 Dispose 以清除元件清單。
@@ -88,6 +88,7 @@ Partial Class 財務_彙總表
88 88
         Me.Chart2 = New System.Windows.Forms.DataVisualization.Charting.Chart()
89 89
         Me.Chart4 = New System.Windows.Forms.DataVisualization.Charting.Chart()
90 90
         Me.年份_cb = New System.Windows.Forms.ComboBox()
91
+        Me.Panel1 = New System.Windows.Forms.Panel()
91 92
         CType(Me.主表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
92 93
         CType(Me.主表1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
93 94
         CType(Me.主表2_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -102,6 +103,7 @@ Partial Class 財務_彙總表
102 103
         CType(Me.Chart3, System.ComponentModel.ISupportInitialize).BeginInit()
103 104
         CType(Me.Chart2, System.ComponentModel.ISupportInitialize).BeginInit()
104 105
         CType(Me.Chart4, System.ComponentModel.ISupportInitialize).BeginInit()
106
+        Me.Panel1.SuspendLayout()
105 107
         Me.SuspendLayout()
106 108
         '
107 109
         '主表_dgv
@@ -109,6 +111,7 @@ Partial Class 財務_彙總表
109 111
         DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
110 112
         Me.主表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
111 113
         Me.主表_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
114
+        Me.主表_dgv.BackgroundColor = System.Drawing.Color.White
112 115
         Me.主表_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
113 116
         Me.主表_dgv.Location = New System.Drawing.Point(7, 30)
114 117
         Me.主表_dgv.Name = "主表_dgv"
@@ -124,6 +127,7 @@ Partial Class 財務_彙總表
124 127
         DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
125 128
         Me.主表1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
126 129
         Me.主表1_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
130
+        Me.主表1_dgv.BackgroundColor = System.Drawing.Color.White
127 131
         Me.主表1_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
128 132
         Me.主表1_dgv.Location = New System.Drawing.Point(7, 229)
129 133
         Me.主表1_dgv.Name = "主表1_dgv"
@@ -149,7 +153,7 @@ Partial Class 財務_彙總表
149 153
         Me.Label1.AutoSize = True
150 154
         Me.Label1.Location = New System.Drawing.Point(9, 7)
151 155
         Me.Label1.Name = "Label1"
152
-        Me.Label1.Size = New System.Drawing.Size(32, 16)
156
+        Me.Label1.Size = New System.Drawing.Size(31, 16)
153 157
         Me.Label1.TabIndex = 1101
154 158
         Me.Label1.Text = "項目"
155 159
         '
@@ -158,7 +162,7 @@ Partial Class 財務_彙總表
158 162
         Me.Label2.AutoSize = True
159 163
         Me.Label2.Location = New System.Drawing.Point(260, 8)
160 164
         Me.Label2.Name = "Label2"
161
-        Me.Label2.Size = New System.Drawing.Size(32, 16)
165
+        Me.Label2.Size = New System.Drawing.Size(31, 16)
162 166
         Me.Label2.TabIndex = 1102
163 167
         Me.Label2.Text = "加總"
164 168
         '
@@ -176,6 +180,7 @@ Partial Class 財務_彙總表
176 180
         DataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
177 181
         Me.主表2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
178 182
         Me.主表2_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
183
+        Me.主表2_dgv.BackgroundColor = System.Drawing.Color.White
179 184
         Me.主表2_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
180 185
         Me.主表2_dgv.Location = New System.Drawing.Point(444, 30)
181 186
         Me.主表2_dgv.Name = "主表2_dgv"
@@ -191,6 +196,7 @@ Partial Class 財務_彙總表
191 196
         DataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
192 197
         Me.主表5_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle7
193 198
         Me.主表5_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
199
+        Me.主表5_dgv.BackgroundColor = System.Drawing.Color.White
194 200
         Me.主表5_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
195 201
         Me.主表5_dgv.Location = New System.Drawing.Point(1070, 30)
196 202
         Me.主表5_dgv.Name = "主表5_dgv"
@@ -215,7 +221,7 @@ Partial Class 財務_彙總表
215 221
         Me.Label3.AutoSize = True
216 222
         Me.Label3.Location = New System.Drawing.Point(886, 8)
217 223
         Me.Label3.Name = "Label3"
218
-        Me.Label3.Size = New System.Drawing.Size(32, 16)
224
+        Me.Label3.Size = New System.Drawing.Size(31, 16)
219 225
         Me.Label3.TabIndex = 1121
220 226
         Me.Label3.Text = "加總"
221 227
         '
@@ -224,7 +230,7 @@ Partial Class 財務_彙總表
224 230
         Me.Label4.AutoSize = True
225 231
         Me.Label4.Location = New System.Drawing.Point(635, 7)
226 232
         Me.Label4.Name = "Label4"
227
-        Me.Label4.Size = New System.Drawing.Size(32, 16)
233
+        Me.Label4.Size = New System.Drawing.Size(31, 16)
228 234
         Me.Label4.TabIndex = 1120
229 235
         Me.Label4.Text = "項目"
230 236
         '
@@ -243,6 +249,7 @@ Partial Class 財務_彙總表
243 249
         DataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
244 250
         Me.主表4_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle9
245 251
         Me.主表4_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
252
+        Me.主表4_dgv.BackgroundColor = System.Drawing.Color.White
246 253
         Me.主表4_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
247 254
         Me.主表4_dgv.Location = New System.Drawing.Point(633, 229)
248 255
         Me.主表4_dgv.Name = "主表4_dgv"
@@ -258,6 +265,7 @@ Partial Class 財務_彙總表
258 265
         DataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
259 266
         Me.主表3_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle11
260 267
         Me.主表3_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
268
+        Me.主表3_dgv.BackgroundColor = System.Drawing.Color.White
261 269
         Me.主表3_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
262 270
         Me.主表3_dgv.Location = New System.Drawing.Point(633, 30)
263 271
         Me.主表3_dgv.Name = "主表3_dgv"
@@ -273,6 +281,7 @@ Partial Class 財務_彙總表
273 281
         DataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
274 282
         Me.主表8_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle13
275 283
         Me.主表8_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
284
+        Me.主表8_dgv.BackgroundColor = System.Drawing.Color.White
276 285
         Me.主表8_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
277 286
         Me.主表8_dgv.Location = New System.Drawing.Point(1696, 30)
278 287
         Me.主表8_dgv.Name = "主表8_dgv"
@@ -297,7 +306,7 @@ Partial Class 財務_彙總表
297 306
         Me.Label5.AutoSize = True
298 307
         Me.Label5.Location = New System.Drawing.Point(1512, 8)
299 308
         Me.Label5.Name = "Label5"
300
-        Me.Label5.Size = New System.Drawing.Size(32, 16)
309
+        Me.Label5.Size = New System.Drawing.Size(31, 16)
301 310
         Me.Label5.TabIndex = 1128
302 311
         Me.Label5.Text = "加總"
303 312
         '
@@ -306,7 +315,7 @@ Partial Class 財務_彙總表
306 315
         Me.Label6.AutoSize = True
307 316
         Me.Label6.Location = New System.Drawing.Point(1261, 7)
308 317
         Me.Label6.Name = "Label6"
309
-        Me.Label6.Size = New System.Drawing.Size(32, 16)
318
+        Me.Label6.Size = New System.Drawing.Size(31, 16)
310 319
         Me.Label6.TabIndex = 1127
311 320
         Me.Label6.Text = "項目"
312 321
         '
@@ -325,6 +334,7 @@ Partial Class 財務_彙總表
325 334
         DataGridViewCellStyle15.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
326 335
         Me.主表7_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle15
327 336
         Me.主表7_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
337
+        Me.主表7_dgv.BackgroundColor = System.Drawing.Color.White
328 338
         Me.主表7_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
329 339
         Me.主表7_dgv.Location = New System.Drawing.Point(1259, 229)
330 340
         Me.主表7_dgv.Name = "主表7_dgv"
@@ -340,6 +350,7 @@ Partial Class 財務_彙總表
340 350
         DataGridViewCellStyle17.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
341 351
         Me.主表6_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle17
342 352
         Me.主表6_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
353
+        Me.主表6_dgv.BackgroundColor = System.Drawing.Color.White
343 354
         Me.主表6_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
344 355
         Me.主表6_dgv.Location = New System.Drawing.Point(1259, 30)
345 356
         Me.主表6_dgv.Name = "主表6_dgv"
@@ -366,39 +377,36 @@ Partial Class 財務_彙總表
366 377
         Me.Label7.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
367 378
         Me.Label7.Location = New System.Drawing.Point(1461, 403)
368 379
         Me.Label7.Name = "Label7"
369
-        Me.Label7.Size = New System.Drawing.Size(56, 16)
380
+        Me.Label7.Size = New System.Drawing.Size(55, 16)
370 381
         Me.Label7.TabIndex = 1131
371 382
         Me.Label7.Text = "營運餘額"
372 383
         '
373 384
         '隱加總_tb
374 385
         '
375
-        Me.隱加總_tb.Location = New System.Drawing.Point(1094, 290)
386
+        Me.隱加總_tb.Location = New System.Drawing.Point(120, 3)
376 387
         Me.隱加總_tb.Name = "隱加總_tb"
377 388
         Me.隱加總_tb.Size = New System.Drawing.Size(146, 23)
378 389
         Me.隱加總_tb.TabIndex = 1133
379 390
         Me.隱加總_tb.Text = "0"
380 391
         Me.隱加總_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
381
-        Me.隱加總_tb.Visible = False
382 392
         '
383 393
         '隱加總1_tb
384 394
         '
385
-        Me.隱加總1_tb.Location = New System.Drawing.Point(1094, 319)
395
+        Me.隱加總1_tb.Location = New System.Drawing.Point(120, 32)
386 396
         Me.隱加總1_tb.Name = "隱加總1_tb"
387 397
         Me.隱加總1_tb.Size = New System.Drawing.Size(146, 23)
388 398
         Me.隱加總1_tb.TabIndex = 1134
389 399
         Me.隱加總1_tb.Text = "0"
390 400
         Me.隱加總1_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
391
-        Me.隱加總1_tb.Visible = False
392 401
         '
393 402
         '隱加總2_tb
394 403
         '
395
-        Me.隱加總2_tb.Location = New System.Drawing.Point(1094, 348)
404
+        Me.隱加總2_tb.Location = New System.Drawing.Point(120, 61)
396 405
         Me.隱加總2_tb.Name = "隱加總2_tb"
397 406
         Me.隱加總2_tb.Size = New System.Drawing.Size(146, 23)
398 407
         Me.隱加總2_tb.TabIndex = 1135
399 408
         Me.隱加總2_tb.Text = "0"
400 409
         Me.隱加總2_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
401
-        Me.隱加總2_tb.Visible = False
402 410
         '
403 411
         '加總4_tb
404 412
         '
@@ -416,7 +424,7 @@ Partial Class 財務_彙總表
416 424
         Me.Label8.ForeColor = System.Drawing.Color.Green
417 425
         Me.Label8.Location = New System.Drawing.Point(1671, 403)
418 426
         Me.Label8.Name = "Label8"
419
-        Me.Label8.Size = New System.Drawing.Size(56, 16)
427
+        Me.Label8.Size = New System.Drawing.Size(55, 16)
420 428
         Me.Label8.TabIndex = 1136
421 429
         Me.Label8.Text = "營運利潤"
422 430
         '
@@ -462,15 +470,14 @@ Partial Class 財務_彙總表
462 470
         Me.主表9_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle19
463 471
         Me.主表9_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
464 472
         Me.主表9_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
465
-        Me.主表9_dgv.Location = New System.Drawing.Point(633, 399)
473
+        Me.主表9_dgv.Location = New System.Drawing.Point(3, 3)
466 474
         Me.主表9_dgv.Name = "主表9_dgv"
467 475
         Me.主表9_dgv.RowHeadersWidth = 5
468 476
         DataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
469 477
         Me.主表9_dgv.RowsDefaultCellStyle = DataGridViewCellStyle20
470 478
         Me.主表9_dgv.RowTemplate.Height = 24
471
-        Me.主表9_dgv.Size = New System.Drawing.Size(617, 259)
479
+        Me.主表9_dgv.Size = New System.Drawing.Size(111, 84)
472 480
         Me.主表9_dgv.TabIndex = 1139
473
-        Me.主表9_dgv.Visible = False
474 481
         '
475 482
         'Chart3
476 483
         '
@@ -593,7 +600,19 @@ Partial Class 財務_彙總表
593 600
         Me.年份_cb.Size = New System.Drawing.Size(70, 24)
594 601
         Me.年份_cb.TabIndex = 1143
595 602
         '
596
-        '財務_彙總表
603
+        'Panel1
604
+        '
605
+        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
606
+        Me.Panel1.Controls.Add(Me.主表9_dgv)
607
+        Me.Panel1.Controls.Add(Me.隱加總_tb)
608
+        Me.Panel1.Controls.Add(Me.隱加總1_tb)
609
+        Me.Panel1.Controls.Add(Me.隱加總2_tb)
610
+        Me.Panel1.Location = New System.Drawing.Point(435, 424)
611
+        Me.Panel1.Name = "Panel1"
612
+        Me.Panel1.Size = New System.Drawing.Size(278, 96)
613
+        Me.Panel1.TabIndex = 1144
614
+        '
615
+        '財務_彙總表_GCM
597 616
         '
598 617
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
599 618
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
@@ -602,12 +621,8 @@ Partial Class 財務_彙總表
602 621
         Me.Controls.Add(Me.Chart4)
603 622
         Me.Controls.Add(Me.Chart2)
604 623
         Me.Controls.Add(Me.Chart3)
605
-        Me.Controls.Add(Me.主表9_dgv)
606 624
         Me.Controls.Add(Me.加總4_tb)
607 625
         Me.Controls.Add(Me.Label8)
608
-        Me.Controls.Add(Me.隱加總2_tb)
609
-        Me.Controls.Add(Me.隱加總1_tb)
610
-        Me.Controls.Add(Me.隱加總_tb)
611 626
         Me.Controls.Add(Me.加總3_tb)
612 627
         Me.Controls.Add(Me.Label7)
613 628
         Me.Controls.Add(Me.主表8_dgv)
@@ -632,10 +647,11 @@ Partial Class 財務_彙總表
632 647
         Me.Controls.Add(Me.主表1_dgv)
633 648
         Me.Controls.Add(Me.主表_dgv)
634 649
         Me.Controls.Add(Me.Chart1)
650
+        Me.Controls.Add(Me.Panel1)
635 651
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
636 652
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
637
-        Me.Name = "財務_彙總表"
638
-        Me.Text = "財務彙總表"
653
+        Me.Name = "財務_彙總表_GCM"
654
+        Me.Text = "財務_彙總表_GCM"
639 655
         CType(Me.主表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
640 656
         CType(Me.主表1_dgv, System.ComponentModel.ISupportInitialize).EndInit()
641 657
         CType(Me.主表2_dgv, System.ComponentModel.ISupportInitialize).EndInit()
@@ -650,6 +666,8 @@ Partial Class 財務_彙總表
650 666
         CType(Me.Chart3, System.ComponentModel.ISupportInitialize).EndInit()
651 667
         CType(Me.Chart2, System.ComponentModel.ISupportInitialize).EndInit()
652 668
         CType(Me.Chart4, System.ComponentModel.ISupportInitialize).EndInit()
669
+        Me.Panel1.ResumeLayout(False)
670
+        Me.Panel1.PerformLayout()
653 671
         Me.ResumeLayout(False)
654 672
         Me.PerformLayout()
655 673
 
@@ -689,4 +707,5 @@ Partial Class 財務_彙總表
689 707
     Friend WithEvents Chart2 As DataVisualization.Charting.Chart
690 708
     Friend WithEvents Chart4 As DataVisualization.Charting.Chart
691 709
     Friend WithEvents 年份_cb As ComboBox
710
+    Friend WithEvents Panel1 As Panel
692 711
 End Class

工巧明智能管理系統/我的系統/Bom表管理/機台-零件BOM表.resx → 工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_彙總表_GCM.resx ファイルの表示


工巧明智能管理系統/我的系統/財務系統管理/財務_彙總表.vb → 工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_彙總表_GCM.vb ファイルの表示

@@ -1,5 +1,5 @@
1 1
 Imports System.Windows.Forms.DataVisualization.Charting
2
-Public Class 財務_彙總表
2
+Public Class 財務_彙總表_GCM
3 3
     ReadOnly ds, ds1, ds2, ds3, ds4, ds5, ds6, ds7, ds8, ds9 As New DataSet
4 4
     '-----------------------------第一區-----------------------------------------------------------------------------------------------------------------------
5 5
     Private Sub Set_清單()

工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單一覽表_GCM.Designer.vb
ファイル差分が大きすぎるため省略します
ファイルの表示


工巧明智能管理系統/我的系統/財務系統管理/財務_對帳單.resx → 工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單一覽表_GCM.resx ファイルの表示

@@ -120,7 +120,4 @@
120 120
   <metadata name="ContextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121 121
     <value>17, 17</value>
122 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, 17</value>
125
-  </metadata>
126 123
 </root>

工巧明智能管理系統/我的系統/財務系統管理/財務_收支單一覽表.vb → 工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單一覽表_GCM.vb ファイルの表示

@@ -1,5 +1,4 @@
1 1
 Option Strict Off
2
-Imports System.Data.SqlClient
3 2
 Imports System.IO
4 3
 Imports Microsoft.Office.Interop.Excel.XlUnderlineStyle
5 4
 Imports Microsoft.Office.Interop.Excel.Constants
@@ -10,26 +9,26 @@ Imports Microsoft.Office.Interop.Excel.XlThemeFont
10 9
 Imports Microsoft.Office.Interop.Excel.XlThemeColor
11 10
 Imports Microsoft.Office.Interop.Excel.XlWindowState
12 11
 Imports Microsoft.Office.Interop.Excel
13
-Public Class 財務_收支單一覽表
12
+Public Class 財務_收支單一覽表_GCM
14 13
     ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet
15 14
     Dim DTP As String : Dim N1 As Integer : Dim N2 As Integer : Dim 匯率1 As Double
16 15
     Dim xlApp As Application
17 16
     Dim xlBook As Workbook
18 17
     Dim xlSheet As Worksheet
19 18
     Private Sub Set_清單1()
20
-        DataGridView4.DataSource = Nothing : ds1.Clear()
21
-        DataGridView4.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
22
-        DataGridView4.ColumnHeadersHeight = 25
23
-        DataGridView4.AllowUserToAddRows = False
19
+        收支單_dgv.DataSource = Nothing : ds1.Clear()
20
+        收支單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
21
+        收支單_dgv.ColumnHeadersHeight = 25
22
+        收支單_dgv.AllowUserToAddRows = False
24 23
         ConnOpen()
25 24
         SQL1 = "SELECT 支付單號 AS 收支單號, 申請人, 申請日期, 審核人, 審核日期, 核准圖檔,  簽名編碼 FROM 財務控制表 
26 25
                 WHERE (審核人 NOT LIKE '') AND (審核人 NOT LIKE '作廢%') AND 
27 26
                 審核日期 BETWEEN '" & Strings.Format(開始日期_dtp.Value, "yyyy/MM/dd") & "' AND '" & Strings.Format(結束日期_dtp.Value, "yyyy/MM/dd") & "'
28 27
                 ORDER BY 審核日期 DESC"
29
-        CmdSet_For_DGV() : da.Fill(ds1) : DataGridView4.DataSource = ds1.Tables(0) : conn.Close()
28
+        CmdSet_For_DGV() : da.Fill(ds1) : 收支單_dgv.DataSource = ds1.Tables(0) : conn.Close()
30 29
 
31
-        DataGridView4.Columns(0).FillWeight = 160 : DataGridView4.Columns(1).Visible = False : DataGridView4.Columns(2).FillWeight = 100 : DataGridView4.Columns(3).Visible = False
32
-        DataGridView4.Columns(4).FillWeight = 100 : DataGridView4.Columns(5).Visible = False : DataGridView4.Columns(6).Visible = False
30
+        收支單_dgv.Columns(0).FillWeight = 160 : 收支單_dgv.Columns(1).Visible = False : 收支單_dgv.Columns(2).FillWeight = 100 : 收支單_dgv.Columns(3).Visible = False
31
+        收支單_dgv.Columns(4).FillWeight = 100 : 收支單_dgv.Columns(5).Visible = False : 收支單_dgv.Columns(6).Visible = False
33 32
     End Sub
34 33
     Private Sub Set_清單2()
35 34
         彙總_dgv.DataSource = Nothing : ds2.Clear()
@@ -46,7 +45,7 @@ Public Class 財務_收支單一覽表
46 45
         End If
47 46
         SQL1 = "SELECT      LEFT(財務控制表.審核日期, 7) AS 日期, 會計科目.第一階 AS 主項, 會計科目.第二階 AS 子項, 
48 47
                             會計科目.會計科目 AS 子細項, SUM(財務流水帳.零用金) AS 零用金, SUM(財務流水帳.支票數) 
49
-                            AS 支票, SUM(Cast(財務流水帳.收入 AS money)) AS 現金, SUM(Cast(財務流水帳.支出 AS money)) AS 支出, 財務流水帳.銀行 AS 幣別, 財務流水帳.匯率
48
+                            AS 支票, SUM(Cast(財務流水帳.收入 AS money)) AS 收入, SUM(Cast(財務流水帳.支出 AS money)) AS 支出, 財務流水帳.銀行 AS 幣別, 財務流水帳.匯率
50 49
                 FROM        財務控制表 RIGHT OUTER JOIN
51 50
                             財務流水帳 ON 財務控制表.支付單號 = 財務流水帳.支付單號 RIGHT OUTER JOIN
52 51
                             會計科目 ON 財務流水帳.類別 = 會計科目.編號
@@ -86,12 +85,12 @@ Public Class 財務_收支單一覽表
86 85
             SQL2 = " AND (財務流水帳.含稅 = 0 OR 財務流水帳.含稅 IS NULL)"
87 86
         End If
88 87
         SQL1 = "SELECT      財務流水帳.支付單號, 財務流水帳.項次, 會計科目.會計科目, 財務流水帳.明細 AS 用途, 
89
-                            Cast(財務流水帳.零用金 AS money) AS 零用金, Cast(財務流水帳.支票數 AS money) AS 支票, Cast(財務流水帳.收入 AS money) AS 現金, 
88
+                            Cast(財務流水帳.零用金 AS money) AS 零用金, Cast(財務流水帳.支票數 AS money) AS 支票, Cast(財務流水帳.收入 AS money) AS 收入, 
90 89
                             Cast(財務流水帳.支出 AS money) AS 支出, 財務流水帳.備註 AS 票期, 財務流水帳.匯率, 財務流水帳.銀行 AS 幣別, 財務流水帳.類別, 
91 90
                             財務流水帳.流水號, 財務流水帳.含稅
92 91
                 FROM        財務流水帳 INNER JOIN
93 92
                             會計科目 ON 財務流水帳.類別 = 會計科目.編號
94
-                WHERE      (財務流水帳.支付單號 LIKE '" & TextBox1.Text & "') " & SQL2 & "
93
+                WHERE      (財務流水帳.支付單號 LIKE '" & 收支單號_tb.Text & "') " & SQL2 & "
95 94
                 ORDER BY    財務流水帳.項次"
96 95
         CmdSet_For_DGV() : da.Fill(ds) : 明細_dgv.DataSource = ds.Tables(0) : conn.Close()
97 96
 
@@ -115,40 +114,41 @@ Public Class 財務_收支單一覽表
115 114
         現1_tb.Text = "0.00" : 出1_tb.Text = "0.00" : 合1_tb.Text = "0.00" : 零1_tb.Text = "0.00" : 支1_tb.Text = "0.00"
116 115
         零2_tb.Text = "0.00" : 支2_tb.Text = "0.00" : 現2_tb.Text = "0.00" : 出2_tb.Text = "0.00" : 合2_tb.Text = "0.00"
117 116
         零3_tb.Text = "0.00" : 支3_tb.Text = "0.00" : 現3_tb.Text = "0.00" : 出3_tb.Text = "0.00" : 合3_tb.Text = "0.00"
117
+        零4_tb.Text = "0.00" : 支4_tb.Text = "0.00" : 現4_tb.Text = "0.00" : 出4_tb.Text = "0.00" : 合4_tb.Text = "0.00"
118 118
         For i As Integer = 0 To 明細_dgv.Rows.Count - 1
119
-            If 明細_dgv.Rows(i).Cells("幣別").Value = "台幣現金" Or 明細_dgv.Rows(i).Cells("幣別").Value = "印尼盾" Then
120
-                現1_tb.Text = Val(現1_tb.Text) + 明細_dgv.Rows(i).Cells("現金").Value * 明細_dgv.Rows(i).Cells("匯率").Value
119
+            If 明細_dgv.Rows(i).Cells("幣別").Value = "台幣現金" Then
120
+                現1_tb.Text = Val(現1_tb.Text) + 明細_dgv.Rows(i).Cells("收入").Value * 明細_dgv.Rows(i).Cells("匯率").Value
121 121
                 出1_tb.Text = Val(出1_tb.Text) + 明細_dgv.Rows(i).Cells("支出").Value * 明細_dgv.Rows(i).Cells("匯率").Value
122 122
                 零1_tb.Text = Val(零1_tb.Text) + 明細_dgv.Rows(i).Cells("零用金").Value * 明細_dgv.Rows(i).Cells("匯率").Value
123 123
                 支1_tb.Text = Val(支1_tb.Text) + 明細_dgv.Rows(i).Cells("支票").Value * 明細_dgv.Rows(i).Cells("匯率").Value
124 124
             End If
125 125
             If 明細_dgv.Rows(i).Cells("幣別").Value = "人民幣現金" Then
126
-                現2_tb.Text = Val(現2_tb.Text) + 明細_dgv.Rows(i).Cells("現金").Value
127
-                出2_tb.Text = Val(出2_tb.Text) + 明細_dgv.Rows(i).Cells("支出").Value
128
-
129
-                零2_tb.Text = Val(零2_tb.Text) + 明細_dgv.Rows(i).Cells("零用金").Value
130
-                支2_tb.Text = Val(支2_tb.Text) + 明細_dgv.Rows(i).Cells("支票").Value
126
+                現2_tb.Text = Val(現2_tb.Text) + 明細_dgv.Rows(i).Cells("收入").Value : 出2_tb.Text = Val(出2_tb.Text) + 明細_dgv.Rows(i).Cells("支出").Value
127
+                零2_tb.Text = Val(零2_tb.Text) + 明細_dgv.Rows(i).Cells("零用金").Value : 支2_tb.Text = Val(支2_tb.Text) + 明細_dgv.Rows(i).Cells("支票").Value
131 128
             End If
132 129
             If 明細_dgv.Rows(i).Cells("幣別").Value = "美金" Then
133
-                現3_tb.Text = Val(現3_tb.Text) + 明細_dgv.Rows(i).Cells("現金").Value
134
-                出3_tb.Text = Val(出3_tb.Text) + 明細_dgv.Rows(i).Cells("支出").Value
135
-
136
-                零3_tb.Text = Val(零3_tb.Text) + 明細_dgv.Rows(i).Cells("零用金").Value
137
-                支3_tb.Text = Val(支3_tb.Text) + 明細_dgv.Rows(i).Cells("支票").Value
130
+                現3_tb.Text = Val(現3_tb.Text) + 明細_dgv.Rows(i).Cells("收入").Value : 出3_tb.Text = Val(出3_tb.Text) + 明細_dgv.Rows(i).Cells("支出").Value
131
+                零3_tb.Text = Val(零3_tb.Text) + 明細_dgv.Rows(i).Cells("零用金").Value : 支3_tb.Text = Val(支3_tb.Text) + 明細_dgv.Rows(i).Cells("支票").Value
132
+            End If
133
+            If 明細_dgv.Rows(i).Cells("幣別").Value = "印尼盾" Then
134
+                現4_tb.Text = Val(現4_tb.Text) + 明細_dgv.Rows(i).Cells("收入").Value : 出4_tb.Text = Val(出4_tb.Text) + 明細_dgv.Rows(i).Cells("支出").Value
135
+                零4_tb.Text = Val(零4_tb.Text) + 明細_dgv.Rows(i).Cells("零用金").Value : 支4_tb.Text = Val(支4_tb.Text) + 明細_dgv.Rows(i).Cells("支票").Value
138 136
             End If
139 137
         Next i
140
-        合1_tb.Text = Val(零1_tb.Text) + Val(現1_tb.Text) - Val(出1_tb.Text)
141
-        合2_tb.Text = Val(零2_tb.Text) + Val(現2_tb.Text) - Val(出2_tb.Text)
142
-        合3_tb.Text = Val(零3_tb.Text) + Val(現3_tb.Text) - Val(出3_tb.Text)
143
-        If Val(合1_tb.Text) > 0 Then : 合1_tb.ForeColor = Color.Blue : Else : 合1_tb.ForeColor = Color.Red : End If
144
-        If Val(合2_tb.Text) > 0 Then : 合2_tb.ForeColor = Color.Blue : Else : 合2_tb.ForeColor = Color.Red : End If
145
-        If Val(合3_tb.Text) > 0 Then : 合3_tb.ForeColor = Color.Blue : Else : 合3_tb.ForeColor = Color.Red : End If
138
+        合1_tb.Text = Val(零1_tb.Text) + Val(現1_tb.Text) - Val(出1_tb.Text) : 合2_tb.Text = Val(零2_tb.Text) + Val(現2_tb.Text) - Val(出2_tb.Text)
139
+        合3_tb.Text = Val(零3_tb.Text) + Val(現3_tb.Text) - Val(出3_tb.Text) : 合4_tb.Text = Val(零4_tb.Text) + Val(現4_tb.Text) - Val(出4_tb.Text)
140
+        If CLng(合1_tb.Text) >= 0 Then : 合1_tb.ForeColor = Color.Black : Else : 合1_tb.ForeColor = Color.Red : End If
141
+        If CLng(合2_tb.Text) >= 0 Then : 合2_tb.ForeColor = Color.Black : Else : 合2_tb.ForeColor = Color.Red : End If
142
+        If CLng(合3_tb.Text) >= 0 Then : 合3_tb.ForeColor = Color.Black : Else : 合3_tb.ForeColor = Color.Red : End If
143
+        If CLng(合4_tb.Text) >= 0 Then : 合4_tb.ForeColor = Color.Black : Else : 合4_tb.ForeColor = Color.Red : End If
146 144
         現1_tb.Text = Strings.Format(Val(現1_tb.Text), "#,##0.00") : 出1_tb.Text = Strings.Format(Val(出1_tb.Text), "#,##0.00") : 合1_tb.Text = Strings.Format(Val(合1_tb.Text), "#,##0.00")
147 145
         零1_tb.Text = Strings.Format(Val(零1_tb.Text), "#,##0.00") : 支1_tb.Text = Strings.Format(Val(支1_tb.Text), "#,##0.00")
148 146
         零2_tb.Text = Strings.Format(Val(零2_tb.Text), "#,##0.00") : 支2_tb.Text = Strings.Format(Val(支2_tb.Text), "#,##0.00") : 現2_tb.Text = Strings.Format(Val(現2_tb.Text), "#,##0.00")
149 147
         出2_tb.Text = Strings.Format(Val(出2_tb.Text), "#,##0.00") : 合2_tb.Text = Strings.Format(Val(合2_tb.Text), "#,##0.00")
150 148
         零3_tb.Text = Strings.Format(Val(零3_tb.Text), "#,##0.00") : 支3_tb.Text = Strings.Format(Val(支3_tb.Text), "#,##0.00") : 現3_tb.Text = Strings.Format(Val(現3_tb.Text), "#,##0.00")
151 149
         出3_tb.Text = Strings.Format(Val(出3_tb.Text), "#,##0.00") : 合3_tb.Text = Strings.Format(Val(合3_tb.Text), "#,##0.00")
150
+        零4_tb.Text = Strings.Format(Val(零4_tb.Text), "#,##0.00") : 支4_tb.Text = Strings.Format(Val(支4_tb.Text), "#,##0.00") : 現4_tb.Text = Strings.Format(Val(現4_tb.Text), "#,##0.00")
151
+        出4_tb.Text = Strings.Format(Val(出4_tb.Text), "#,##0.00") : 合4_tb.Text = Strings.Format(Val(合4_tb.Text), "#,##0.00")
152 152
     End Sub
153 153
     Private Sub 日期格式()
154 154
         If 會計月_ch.Checked = True Then
@@ -170,8 +170,8 @@ Public Class 財務_收支單一覽表
170 170
     Private Sub 匯率()
171 171
         ConnOpen()
172 172
         SQL1 = "SELECT 中心匯率, 美金匯率, 印尼匯率 FROM 歷史匯率表 
173
-                WHERE (年 LIKE '" & Strings.Left(Strings.Format(DateTimePicker1.Value, "yyyyMMdd"), 4) & "%') AND 
174
-                      (月 LIKE '" & Strings.Mid(Strings.Format(DateTimePicker1.Value, "yyyyMMdd"), 5, 2) & "%')"
173
+                WHERE (年 LIKE '" & Strings.Left(Strings.Format(申請日期_dtp.Value, "yyyyMMdd"), 4) & "%') AND 
174
+                      (月 LIKE '" & Strings.Mid(Strings.Format(申請日期_dtp.Value, "yyyyMMdd"), 5, 2) & "%')"
175 175
         cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
176 176
         If dr.Read() Then
177 177
             人民幣匯率_tb.Text = dr("中心匯率").ToString : 美金匯率_tb.Text = dr("美金匯率").ToString : 印尼匯率_tb.Text = dr("印尼匯率").ToString : conn.Close() : dr.Close()
@@ -183,7 +183,7 @@ Public Class 財務_收支單一覽表
183 183
         Me.MdiParent = GCM_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
184 184
         DTP = Strings.Left(Strings.Format(Today(), "yyyy/MM/dd"), 8) & "01"
185 185
         匯率() : 開始日期_dtp.Value = DTP : 結束日期_dtp.Value = Today()
186
-        日期格式() : 開始日期_dtp.Value = 開始日期_dtp.Value.AddMonths(-1) : 彙總_dgv.Visible = False : RadioButton1.Checked = True
186
+        日期格式() : 開始日期_dtp.Value = 開始日期_dtp.Value.AddMonths(-1) : 彙總_dgv.Visible = False : 明細_rb.Checked = True
187 187
     End Sub
188 188
     Dim 已超出 As Boolean
189 189
     Private Sub 明細_dgv_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 明細_dgv.MouseUp
@@ -216,12 +216,12 @@ Public Class 財務_收支單一覽表
216 216
             End If
217 217
         End If
218 218
     End Sub
219
-    Private Sub DataGridView4_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView4.CellClick
219
+    Private Sub DataGridView4_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles 收支單_dgv.CellClick
220 220
         If e.RowIndex = -1 Then : Else
221
-            TextBox1.Text = DataGridView4(0, e.RowIndex).Value.ToString : TextBox13.Text = DataGridView4(6, e.RowIndex).Value.ToString
222
-            TextBox3.Text = DataGridView4(1, e.RowIndex).Value.ToString : DateTimePicker1.Value = DataGridView4(2, e.RowIndex).Value.ToString
223
-            TextBox4.Text = DataGridView4(3, e.RowIndex).Value.ToString : DateTimePicker2.Value = DataGridView4(4, e.RowIndex).Value.ToString
224
-            TextBox14.Text = DataGridView4(5, e.RowIndex).Value.ToString
221
+            收支單號_tb.Text = 收支單_dgv(0, e.RowIndex).Value.ToString : TextBox13.Text = 收支單_dgv(6, e.RowIndex).Value.ToString
222
+            申請人_tb.Text = 收支單_dgv(1, e.RowIndex).Value.ToString : 申請日期_dtp.Value = 收支單_dgv(2, e.RowIndex).Value.ToString
223
+            審核人_tb.Text = 收支單_dgv(3, e.RowIndex).Value.ToString : 審核日期_dtp.Value = 收支單_dgv(4, e.RowIndex).Value.ToString
224
+            TextBox14.Text = 收支單_dgv(5, e.RowIndex).Value.ToString
225 225
             Set_費用清單()
226 226
         End If
227 227
     End Sub
@@ -262,57 +262,60 @@ Public Class 財務_收支單一覽表
262 262
     Private Sub 非稅_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 非稅_ch.Click
263 263
         全部_ch.Checked = False : 含稅_ch.Checked = False : 非稅_ch.Checked = True : Set_費用清單() : Set_清單2() : 彙總計算()
264 264
     End Sub
265
-    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
265
+    Private Sub 當日_tb_Click(sender As Object, e As EventArgs) Handles 當日_tb.Click
266 266
         DTP = Strings.Format(Today(), "yyyy/MM/dd")
267 267
         開始日期_dtp.Value = DTP : 結束日期_dtp.Value = DTP
268 268
     End Sub
269
-    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
269
+    Private Sub B當月_tb_Click(sender As Object, e As EventArgs) Handles 當月_tb.Click
270 270
         DTP = Strings.Left(Strings.Format(Today(), "yyyy/MM/dd"), 8) & "01"
271 271
         開始日期_dtp.Value = DTP : 結束日期_dtp.Value = Today()
272 272
     End Sub
273 273
     Private Sub 彙總計算()
274
-        If RadioButton1.Checked = False And RadioButton2.Checked = True Then
274
+        If 明細_rb.Checked = False And 彙總_rb.Checked = True Then
275 275
             現1_tb.Text = "0.00" : 出1_tb.Text = "0.00" : 合1_tb.Text = "0.00" : 零1_tb.Text = "0.00" : 支1_tb.Text = "0.00"
276 276
             零2_tb.Text = "0.00" : 支2_tb.Text = "0.00" : 現2_tb.Text = "0.00" : 出2_tb.Text = "0.00" : 合2_tb.Text = "0.00"
277 277
             零3_tb.Text = "0.00" : 支3_tb.Text = "0.00" : 現3_tb.Text = "0.00" : 出3_tb.Text = "0.00" : 合3_tb.Text = "0.00"
278
+            零4_tb.Text = "0.00" : 支4_tb.Text = "0.00" : 現4_tb.Text = "0.00" : 出4_tb.Text = "0.00" : 合4_tb.Text = "0.00"
278 279
             For i As Integer = 0 To 彙總_dgv.Rows.Count - 1
279 280
                 If 彙總_dgv.Rows(i).Cells("幣別").Value = "台幣現金" Then
280 281
                     If 彙總_dgv.Rows(i).Cells("主項").Value <> "上月結存" Then
281
-                        現1_tb.Text = Val(現1_tb.Text) + 彙總_dgv.Rows(i).Cells("現金").Value
282
-                        出1_tb.Text = Val(出1_tb.Text) + 彙總_dgv.Rows(i).Cells("支出").Value
283
-                        零1_tb.Text = Val(零1_tb.Text) + 彙總_dgv.Rows(i).Cells("零用金").Value
284
-                        支1_tb.Text = Val(支1_tb.Text) + 彙總_dgv.Rows(i).Cells("支票").Value
282
+                        現1_tb.Text = Val(現1_tb.Text) + 彙總_dgv.Rows(i).Cells("收入").Value : 出1_tb.Text = Val(出1_tb.Text) + 彙總_dgv.Rows(i).Cells("支出").Value
283
+                        零1_tb.Text = Val(零1_tb.Text) + 彙總_dgv.Rows(i).Cells("零用金").Value : 支1_tb.Text = Val(支1_tb.Text) + 彙總_dgv.Rows(i).Cells("支票").Value
285 284
                     End If
286 285
                 End If
287 286
                 If 彙總_dgv.Rows(i).Cells("幣別").Value = "人民幣現金" Then
288 287
                     If 彙總_dgv.Rows(i).Cells("主項").Value <> "上月結存" Then
289
-                        現2_tb.Text = Val(現2_tb.Text) + 彙總_dgv.Rows(i).Cells("現金").Value
290
-                        出2_tb.Text = Val(出2_tb.Text) + 彙總_dgv.Rows(i).Cells("支出").Value
291
-                        零2_tb.Text = Val(零2_tb.Text) + 彙總_dgv.Rows(i).Cells("零用金").Value
292
-                        支2_tb.Text = Val(支2_tb.Text) + 彙總_dgv.Rows(i).Cells("支票").Value
288
+                        現2_tb.Text = Val(現2_tb.Text) + 彙總_dgv.Rows(i).Cells("收入").Value : 出2_tb.Text = Val(出2_tb.Text) + 彙總_dgv.Rows(i).Cells("支出").Value
289
+                        零2_tb.Text = Val(零2_tb.Text) + 彙總_dgv.Rows(i).Cells("零用金").Value : 支2_tb.Text = Val(支2_tb.Text) + 彙總_dgv.Rows(i).Cells("支票").Value
293 290
                     End If
294 291
                 End If
295 292
                 If 彙總_dgv.Rows(i).Cells("幣別").Value = "美金" Then
296 293
                     If 彙總_dgv.Rows(i).Cells("主項").Value <> "上月結存" Then
297
-                        現3_tb.Text = Val(現3_tb.Text) + 彙總_dgv.Rows(i).Cells("現金").Value
298
-                        出3_tb.Text = Val(出3_tb.Text) + 彙總_dgv.Rows(i).Cells("支出").Value
299
-                        零3_tb.Text = Val(零3_tb.Text) + 彙總_dgv.Rows(i).Cells("零用金").Value
300
-                        支3_tb.Text = Val(支3_tb.Text) + 彙總_dgv.Rows(i).Cells("支票").Value
294
+                        現3_tb.Text = Val(現3_tb.Text) + 彙總_dgv.Rows(i).Cells("收入").Value : 出3_tb.Text = Val(出3_tb.Text) + 彙總_dgv.Rows(i).Cells("支出").Value
295
+                        零3_tb.Text = Val(零3_tb.Text) + 彙總_dgv.Rows(i).Cells("零用金").Value : 支3_tb.Text = Val(支3_tb.Text) + 彙總_dgv.Rows(i).Cells("支票").Value
296
+                    End If
297
+                End If
298
+                If 彙總_dgv.Rows(i).Cells("幣別").Value = "印尼盾" Then
299
+                    If 彙總_dgv.Rows(i).Cells("主項").Value <> "上月結存" Then
300
+                        現4_tb.Text = Val(現4_tb.Text) + 彙總_dgv.Rows(i).Cells("收入").Value : 出4_tb.Text = Val(出4_tb.Text) + 彙總_dgv.Rows(i).Cells("支出").Value
301
+                        零4_tb.Text = Val(零4_tb.Text) + 彙總_dgv.Rows(i).Cells("零用金").Value : 支4_tb.Text = Val(支4_tb.Text) + 彙總_dgv.Rows(i).Cells("支票").Value
301 302
                     End If
302 303
                 End If
303 304
             Next i
304
-            合1_tb.Text = Val(零1_tb.Text) + Val(現1_tb.Text) - Val(出1_tb.Text)
305
-            合2_tb.Text = Val(零2_tb.Text) + Val(現2_tb.Text) - Val(出2_tb.Text)
306
-            合3_tb.Text = Val(零3_tb.Text) + Val(現3_tb.Text) - Val(出3_tb.Text)
307
-            If Val(合1_tb.Text) > 0 Then : 合1_tb.ForeColor = Color.Blue : Else : 合1_tb.ForeColor = Color.Red : End If
308
-            If Val(合2_tb.Text) > 0 Then : 合2_tb.ForeColor = Color.Blue : Else : 合2_tb.ForeColor = Color.Red : End If
309
-            If Val(合3_tb.Text) > 0 Then : 合3_tb.ForeColor = Color.Blue : Else : 合3_tb.ForeColor = Color.Red : End If
305
+            合1_tb.Text = Val(零1_tb.Text) + Val(現1_tb.Text) - Val(出1_tb.Text) : 合2_tb.Text = Val(零2_tb.Text) + Val(現2_tb.Text) - Val(出2_tb.Text)
306
+            合3_tb.Text = Val(零3_tb.Text) + Val(現3_tb.Text) - Val(出3_tb.Text) : 合4_tb.Text = Val(零4_tb.Text) + Val(現4_tb.Text) - Val(出4_tb.Text)
307
+            If CLng(合1_tb.Text) >= 0 Then : 合1_tb.ForeColor = Color.Black : Else : 合1_tb.ForeColor = Color.Red : End If
308
+            If CLng(合2_tb.Text) >= 0 Then : 合2_tb.ForeColor = Color.Black : Else : 合2_tb.ForeColor = Color.Red : End If
309
+            If CLng(合3_tb.Text) >= 0 Then : 合3_tb.ForeColor = Color.Black : Else : 合3_tb.ForeColor = Color.Red : End If
310
+            If CLng(合4_tb.Text) >= 0 Then : 合4_tb.ForeColor = Color.Black : Else : 合4_tb.ForeColor = Color.Red : End If
310 311
             現1_tb.Text = Strings.Format(Val(現1_tb.Text), "#,##0.00") : 出1_tb.Text = Strings.Format(Val(出1_tb.Text), "#,##0.00") : 合1_tb.Text = Strings.Format(Val(合1_tb.Text), "#,##0.00")
311 312
             零1_tb.Text = Strings.Format(Val(零1_tb.Text), "#,##0.00") : 支1_tb.Text = Strings.Format(Val(支1_tb.Text), "#,##0.00")
312 313
             零2_tb.Text = Strings.Format(Val(零2_tb.Text), "#,##0.00") : 支2_tb.Text = Strings.Format(Val(支2_tb.Text), "#,##0.00") : 現2_tb.Text = Strings.Format(Val(現2_tb.Text), "#,##0.00")
313 314
             出2_tb.Text = Strings.Format(Val(出2_tb.Text), "#,##0.00") : 合2_tb.Text = Strings.Format(Val(合2_tb.Text), "#,##0.00")
314 315
             零3_tb.Text = Strings.Format(Val(零3_tb.Text), "#,##0.00") : 支3_tb.Text = Strings.Format(Val(支3_tb.Text), "#,##0.00") : 現3_tb.Text = Strings.Format(Val(現3_tb.Text), "#,##0.00")
315 316
             出3_tb.Text = Strings.Format(Val(出3_tb.Text), "#,##0.00") : 合3_tb.Text = Strings.Format(Val(合3_tb.Text), "#,##0.00")
317
+            零4_tb.Text = Strings.Format(Val(零4_tb.Text), "#,##0.00") : 支4_tb.Text = Strings.Format(Val(支4_tb.Text), "#,##0.00") : 現4_tb.Text = Strings.Format(Val(現4_tb.Text), "#,##0.00")
318
+            出4_tb.Text = Strings.Format(Val(出4_tb.Text), "#,##0.00") : 合4_tb.Text = Strings.Format(Val(合4_tb.Text), "#,##0.00")
316 319
         End If
317 320
     End Sub
318 321
     Private Sub 上個月_bt_Click(sender As Object, e As EventArgs) Handles 上個月_bt.Click
@@ -339,10 +342,10 @@ Public Class 財務_收支單一覽表
339 342
         End If
340 343
         日期格式()
341 344
     End Sub
342
-    Private Sub DateTimePicker4_ValueChanged(sender As Object, e As EventArgs) Handles 開始日期_dtp.ValueChanged
345
+    Private Sub 開始日期_dtp_ValueChanged(sender As Object, e As EventArgs) Handles 開始日期_dtp.ValueChanged
343 346
         Set_清單1() : Set_清單2() : 彙總計算()
344 347
     End Sub
345
-    Private Sub DateTimePicker3_ValueChanged(sender As Object, e As EventArgs) Handles 結束日期_dtp.ValueChanged
348
+    Private Sub 結束日期_dtp_ValueChanged(sender As Object, e As EventArgs) Handles 結束日期_dtp.ValueChanged
346 349
         Set_清單1() : Set_清單2() : 彙總計算()
347 350
     End Sub
348 351
     Private Sub 會計月_CheckedChanged(sender As Object, e As EventArgs) Handles 會計月_ch.Click
@@ -351,13 +354,13 @@ Public Class 財務_收支單一覽表
351 354
     Private Sub 一般月_CheckedChanged(sender As Object, e As EventArgs) Handles 一般月_ch.Click
352 355
         會計月_ch.Checked = False : 一般月_ch.Checked = True : 日期格式()
353 356
     End Sub
354
-    Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton1.Click
355
-        明細_dgv.Visible = True : 彙總_dgv.Visible = False : RadioButton1.Checked = True : RadioButton2.Checked = False
356
-        現1_tb.Text = "0.00" : 出1_tb.Text = "0.00" : 合1_tb.Text = "0.00" : 零1_tb.Text = "0.00" : 支1_tb.Text = "0.00" : DataGridView4.Enabled = True
357
+    Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles 明細_rb.Click
358
+        明細_dgv.Visible = True : 彙總_dgv.Visible = False : 明細_rb.Checked = True : 彙總_rb.Checked = False
359
+        現1_tb.Text = "0.00" : 出1_tb.Text = "0.00" : 合1_tb.Text = "0.00" : 零1_tb.Text = "0.00" : 支1_tb.Text = "0.00" : 收支單_dgv.Enabled = True
357 360
     End Sub
358
-    Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton2.Click
359
-        明細_dgv.Visible = False : 彙總_dgv.Visible = True : RadioButton1.Checked = False : RadioButton2.Checked = True
360
-        TextBox1.Text = "" : TextBox3.Text = "" : TextBox4.Text = "" : 明細_dgv.DataSource = Nothing : ds.Clear() : DataGridView4.Enabled = False
361
+    Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles 彙總_rb.Click
362
+        明細_dgv.Visible = False : 彙總_dgv.Visible = True : 明細_rb.Checked = False : 彙總_rb.Checked = True
363
+        收支單號_tb.Text = "" : 申請人_tb.Text = "" : 審核人_tb.Text = "" : 明細_dgv.DataSource = Nothing : ds.Clear() : 收支單_dgv.Enabled = False
361 364
         彙總計算()
362 365
     End Sub
363 366
     Private Sub TextBox14_TextChanged(sender As Object, e As EventArgs) Handles TextBox14.TextChanged
@@ -373,7 +376,7 @@ Public Class 財務_收支單一覽表
373 376
         conn.Close()
374 377
         PictureBox1.SizeMode = 4
375 378
     End Sub
376
-    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
379
+    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles 列印_bt.Click
377 380
         xlApp = CType(CreateObject("Excel.Application"), Application)
378 381
         xlBook = xlApp.Workbooks.Add
379 382
         xlApp.DisplayAlerts = True
@@ -384,15 +387,16 @@ Public Class 財務_收支單一覽表
384 387
         xlApp.Application.WindowState = xlMaximized
385 388
 
386 389
         xlSheet.Cells(1, 1) = "年度" : xlSheet.Cells(1, 2) = Year(Today) - 1911
387
-        If RadioButton1.Checked = True And RadioButton2.Checked = False Then
390
+        If 明細_rb.Checked = True And 彙總_rb.Checked = False Then
388 391
             xlSheet.Cells(1, 3) = "工巧明智能企業有限公司-營運費用收支明細表"
389 392
             xlSheet.Cells(2, 1) = "收款日期" : xlSheet.Cells(2, 2) = "會計科目" : xlSheet.Cells(2, 3) = "客戶或用途"
390
-            xlSheet.Cells(2, 4) = "零用金" : xlSheet.Cells(2, 5) = "支票" : xlSheet.Cells(2, 6) = "現金" : xlSheet.Cells(2, 7) = "支出" : xlSheet.Cells(2, 8) = "現金餘額" : xlSheet.Cells(2, 9) = "票期"
393
+            xlSheet.Cells(2, 4) = "零用金" : xlSheet.Cells(2, 5) = "支票" : xlSheet.Cells(2, 6) = "收入" : xlSheet.Cells(2, 7) = "支出" : xlSheet.Cells(2, 8) = "現金餘額"
394
+            xlSheet.Cells(2, 9) = "票期"
391 395
 
392 396
             For i As Integer = 0 To 明細_dgv.Rows.Count - 1
393
-                xlSheet.Cells(i + 3, 1) = DateTimePicker1.Value : xlSheet.Cells(i + 3, 2) = 明細_dgv.Rows(i).Cells("會計科目").Value
397
+                xlSheet.Cells(i + 3, 1) = 申請日期_dtp.Value : xlSheet.Cells(i + 3, 2) = 明細_dgv.Rows(i).Cells("會計科目").Value
394 398
                 xlSheet.Cells(i + 3, 3) = 明細_dgv.Rows(i).Cells("用途").Value : xlSheet.Cells(i + 3, 4) = 明細_dgv.Rows(i).Cells("零用金").Value
395
-                xlSheet.Cells(i + 3, 5) = 明細_dgv.Rows(i).Cells("支票").Value : xlSheet.Cells(i + 3, 6) = 明細_dgv.Rows(i).Cells("現金").Value
399
+                xlSheet.Cells(i + 3, 5) = 明細_dgv.Rows(i).Cells("支票").Value : xlSheet.Cells(i + 3, 6) = 明細_dgv.Rows(i).Cells("收入").Value
396 400
                 xlSheet.Cells(i + 3, 7) = 明細_dgv.Rows(i).Cells("支出").Value : xlSheet.Cells(i + 3, 9) = 明細_dgv.Rows(i).Cells("票期").Value
397 401
                 If i = 0 Then
398 402
                     xlSheet.Cells(i + 3, 8) = "=D3+F3-G3"
@@ -404,15 +408,15 @@ Public Class 財務_收支單一覽表
404 408
                 End With
405 409
                 N1 = i + 3 : N2 = i + 3
406 410
             Next i
407
-            xlSheet.Cells(N1 + 1, 3) = "以下空白" : xlSheet.Cells(N1 + 3, 1) = "簽核(點交)" : xlSheet.Cells(N1 + 3, 7) = "製表 : " & TextBox3.Text & " - " & DateTimePicker1.Value
411
+            xlSheet.Cells(N1 + 1, 3) = "以下空白" : xlSheet.Cells(N1 + 3, 1) = "簽核(點交)" : xlSheet.Cells(N1 + 3, 7) = "製表 : " & 申請人_tb.Text & " - " & 申請日期_dtp.Value
408 412
             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 & ")"
409 413
             xlSheet.Cells(N1 + 2, 7) = "=SUM(G3:G" & N1 + 1 & ")" : xlSheet.Cells(N1 + 2, 8) = "=H" & N1 : xlSheet.Cells(N1 + 2, 1) = "合計"
410 414
 
411 415
             AA(xlApp, xlSheet) : BB(xlApp, xlSheet)
412
-        ElseIf RadioButton1.Checked = False And RadioButton2.Checked = True Then
416
+        ElseIf 明細_rb.Checked = False And 彙總_rb.Checked = True Then
413 417
             xlSheet.Cells(1, 3) = "工巧明智能企業有限公司-營運費用收支彙總簡表"
414 418
             xlSheet.Cells(2, 1) = "日期" : xlSheet.Cells(2, 2) = "主項" : xlSheet.Cells(2, 3) = "子項" : xlSheet.Cells(2, 4) = "子細項" : xlSheet.Cells(2, 5) = "零用金"
415
-            xlSheet.Cells(2, 6) = "支票" : xlSheet.Cells(2, 7) = "現金" : xlSheet.Cells(2, 8) = "支出" : xlSheet.Cells(2, 9) = "現金餘額"
419
+            xlSheet.Cells(2, 6) = "支票" : xlSheet.Cells(2, 7) = "收入" : xlSheet.Cells(2, 8) = "支出" : xlSheet.Cells(2, 9) = "現金餘額"
416 420
 
417 421
             For i As Integer = 0 To 彙總_dgv.Rows.Count - 1
418 422
                 xlSheet.Cells(i + 3, 1) = 彙總_dgv.Rows(i).Cells("日期").Value
@@ -421,7 +425,7 @@ Public Class 財務_收支單一覽表
421 425
                 xlSheet.Cells(i + 3, 4) = 彙總_dgv.Rows(i).Cells("子細項").Value
422 426
                 xlSheet.Cells(i + 3, 5) = 彙總_dgv.Rows(i).Cells("零用金").Value
423 427
                 xlSheet.Cells(i + 3, 6) = 彙總_dgv.Rows(i).Cells("支票").Value
424
-                xlSheet.Cells(i + 3, 7) = 彙總_dgv.Rows(i).Cells("現金").Value
428
+                xlSheet.Cells(i + 3, 7) = 彙總_dgv.Rows(i).Cells("收入").Value
425 429
                 xlSheet.Cells(i + 3, 8) = 彙總_dgv.Rows(i).Cells("支出").Value
426 430
                 If i = 0 Then
427 431
                     xlSheet.Cells(i + 3, 9) = "=E3+G3-H3"

工巧明智能管理系統/我的系統/財務系統管理/財務_收支單審核.Designer.vb → 工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單審核_GCM.Designer.vb ファイルの表示

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

工巧明智能管理系統/我的系統/財務系統管理/財務_收支單審核.resx → 工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單審核_GCM.resx ファイルの表示


工巧明智能管理系統/我的系統/財務系統管理/財務_收支單審核.vb → 工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單審核_GCM.vb ファイルの表示

@@ -1,25 +1,24 @@
1 1
 Option Strict Off
2
-Imports System.Data.SqlClient
3 2
 Imports System.IO
4
-Public Class 財務_收支單審核
3
+Public Class 財務_收支單審核_GCM
5 4
     ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet
6 5
     Private ReadOnly QQW(11) As String
7 6
     Dim DTP As String : Dim WWEE As String : Private II As Integer : Dim 匯率1 As Double
8 7
     Private Sub Set_清單1()
9
-        DataGridView2.DataSource = Nothing : ds1.Clear()
10
-        DataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
11
-        DataGridView2.ColumnHeadersHeight = 25
12
-        DataGridView2.AllowUserToAddRows = False
8
+        收支單_dgv.DataSource = Nothing : ds1.Clear()
9
+        收支單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
10
+        收支單_dgv.ColumnHeadersHeight = 25
11
+        收支單_dgv.AllowUserToAddRows = False
13 12
         ConnOpen()
14
-        If RadioButton1.Checked = True And RadioButton2.Checked = False Then
13
+        If 未核准的收支單_rb.Checked = True And 作廢的收支單_rb.Checked = False Then
15 14
             WWEE = "WHERE (審核人 LIKE '') "
16
-        ElseIf RadioButton1.Checked = False And RadioButton2.Checked = True Then
15
+        ElseIf 未核准的收支單_rb.Checked = False And 作廢的收支單_rb.Checked = True Then
17 16
             WWEE = "WHERE (審核人 LIKE '作廢%') "
18 17
         End If
19 18
         SQL1 = "SELECT 支付單號 AS 收支單號, 申請日期, 審核日期, 申請人 FROM 財務控制表 " & WWEE & " ORDER BY 支付單號 DESC"
20
-        CmdSet_For_DGV() : da.Fill(ds1) : DataGridView2.DataSource = ds1.Tables(0) : conn.Close()
19
+        CmdSet_For_DGV() : da.Fill(ds1) : 收支單_dgv.DataSource = ds1.Tables(0) : conn.Close()
21 20
 
22
-        DataGridView2.Columns(0).FillWeight = 160 : DataGridView2.Columns(1).FillWeight = 100 : DataGridView2.Columns(2).FillWeight = 100 : DataGridView2.Columns(3).Visible = False
21
+        收支單_dgv.Columns(0).FillWeight = 160 : 收支單_dgv.Columns(1).FillWeight = 100 : 收支單_dgv.Columns(2).FillWeight = 100 : 收支單_dgv.Columns(3).Visible = False
23 22
     End Sub
24 23
     Private Sub Set_費用清單()
25 24
         明細_dgv.DataSource = Nothing : ds.Clear()
@@ -29,12 +28,12 @@ Public Class 財務_收支單審核
29 28
         明細_dgv.RowTemplate.Height = 35
30 29
         ConnOpen()
31 30
         SQL1 = "SELECT      財務流水帳.支付單號, 財務流水帳.項次, 會計科目.會計科目, 財務流水帳.明細 AS 用途, 
32
-                            Cast(財務流水帳.零用金 AS money) AS 零用金, Cast(財務流水帳.支票數 AS money) AS 支票, Cast(財務流水帳.收入 AS money) AS 現金, 
31
+                            Cast(財務流水帳.零用金 AS money) AS 零用金, Cast(財務流水帳.支票數 AS money) AS 支票, Cast(財務流水帳.收入 AS money) AS 收入, 
33 32
                             Cast(財務流水帳.支出 AS money) AS 支出, 財務流水帳.備註 AS 票期, 財務流水帳.匯率, 財務流水帳.銀行 AS 幣別, 財務流水帳.類別, 
34 33
                             財務流水帳.流水號, 財務流水帳.含稅
35 34
                 FROM        財務流水帳 INNER JOIN
36 35
                             會計科目 ON 財務流水帳.類別 = 會計科目.編號
37
-                WHERE      (財務流水帳.支付單號 LIKE '" & TextBox1.Text & "')
36
+                WHERE      (財務流水帳.支付單號 LIKE '" & 收支單號_tb.Text & "')
38 37
                 ORDER BY    財務流水帳.項次"
39 38
         CmdSet_For_DGV() : da.Fill(ds) : 明細_dgv.DataSource = ds.Tables(0) : conn.Close()
40 39
 
@@ -56,30 +55,30 @@ Public Class 財務_收支單審核
56 55
         明細_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 明細_dgv.Columns(1).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
57 56
         明細_dgv.EditMode = DataGridViewEditMode.EditOnEnter
58 57
 
59
-        TextBox5.Text = "0" : TextBox2.Text = "0" : TextBox6.Text = "0" : TextBox7.Text = "0" : TextBox8.Text = "0"
58
+        收入_tb.Text = "0" : 支出_tb.Text = "0" : 餘額_tb.Text = "0" : 零用金_tb.Text = "0" : 支票_tb.Text = "0"
60 59
         For i As Integer = 0 To 明細_dgv.Rows.Count - 1
61
-            TextBox5.Text = Val(TextBox5.Text) + 明細_dgv.Rows(i).Cells("現金").Value * 明細_dgv.Rows(i).Cells("匯率").Value
62
-            TextBox2.Text = Val(TextBox2.Text) + 明細_dgv.Rows(i).Cells("支出").Value * 明細_dgv.Rows(i).Cells("匯率").Value
63
-            TextBox7.Text = Val(TextBox7.Text) + 明細_dgv.Rows(i).Cells("零用金").Value * 明細_dgv.Rows(i).Cells("匯率").Value
64
-            TextBox8.Text = Val(TextBox8.Text) + 明細_dgv.Rows(i).Cells("支票").Value * 明細_dgv.Rows(i).Cells("匯率").Value
60
+            收入_tb.Text = Val(收入_tb.Text) + 明細_dgv.Rows(i).Cells("收入").Value * 明細_dgv.Rows(i).Cells("匯率").Value
61
+            支出_tb.Text = Val(支出_tb.Text) + 明細_dgv.Rows(i).Cells("支出").Value * 明細_dgv.Rows(i).Cells("匯率").Value
62
+            零用金_tb.Text = Val(零用金_tb.Text) + 明細_dgv.Rows(i).Cells("零用金").Value * 明細_dgv.Rows(i).Cells("匯率").Value
63
+            支票_tb.Text = Val(支票_tb.Text) + 明細_dgv.Rows(i).Cells("支票").Value * 明細_dgv.Rows(i).Cells("匯率").Value
65 64
         Next i
66
-        TextBox6.Text = Val(TextBox7.Text) + Val(TextBox5.Text) - Val(TextBox2.Text)
67
-        If Val(TextBox6.Text) > 0 Then : TextBox6.ForeColor = Color.Blue : Else : TextBox6.ForeColor = Color.Red : End If
68
-        TextBox5.Text = Format(Val(TextBox5.Text), "#,##0.00") : TextBox2.Text = Format(Val(TextBox2.Text), "#,##0.00") : TextBox6.Text = Format(Val(TextBox6.Text), "#,##0.00")
69
-        TextBox7.Text = Format(Val(TextBox7.Text), "#,##0.00") : TextBox8.Text = Format(Val(TextBox8.Text), "#,##0.00")
65
+        餘額_tb.Text = Val(零用金_tb.Text) + Val(收入_tb.Text) - Val(支出_tb.Text)
66
+        If Val(餘額_tb.Text) > 0 Then : 餘額_tb.ForeColor = Color.Blue : Else : 餘額_tb.ForeColor = Color.Red : End If
67
+        收入_tb.Text = Format(Val(收入_tb.Text), "#,##0.00") : 支出_tb.Text = Format(Val(支出_tb.Text), "#,##0.00") : 餘額_tb.Text = Format(Val(餘額_tb.Text), "#,##0.00")
68
+        零用金_tb.Text = Format(Val(零用金_tb.Text), "#,##0.00") : 支票_tb.Text = Format(Val(支票_tb.Text), "#,##0.00")
70 69
     End Sub
71 70
     Private Sub Set_清單()
72
-        DataGridView3.DataSource = Nothing : ds2.Clear()
73
-        DataGridView3.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
74
-        DataGridView3.ColumnHeadersHeight = 25
75
-        DataGridView3.AllowUserToAddRows = False
71
+        簽名檔_dgv.DataSource = Nothing : ds2.Clear()
72
+        簽名檔_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
73
+        簽名檔_dgv.ColumnHeadersHeight = 25
74
+        簽名檔_dgv.AllowUserToAddRows = False
76 75
         ConnOpen()
77 76
         SQL1 = "SELECT 圖片流水號 AS 圖檔編碼, 簽名檔人名 FROM GCM主管簽名檔管理 ORDER BY 圖片流水號 DESC"
78
-        CmdSet_For_DGV() : da.Fill(ds2) : DataGridView3.DataSource = ds2.Tables(0) : conn.Close()
77
+        CmdSet_For_DGV() : da.Fill(ds2) : 簽名檔_dgv.DataSource = ds2.Tables(0) : conn.Close()
79 78
 
80
-        DataGridView3.Columns(0).FillWeight = 173 : DataGridView3.Columns(1).Visible = False
81
-        If DataGridView3.Rows.Count = 0 Then : Else
82
-            TextBox14.Text = DataGridView3(0, 0).Value.ToString
79
+        簽名檔_dgv.Columns(0).FillWeight = 173 : 簽名檔_dgv.Columns(1).Visible = False
80
+        If 簽名檔_dgv.Rows.Count = 0 Then : Else
81
+            TextBox14.Text = 簽名檔_dgv(0, 0).Value.ToString
83 82
             ConnOpen()
84 83
             SQL1 = "SELECT 簽名檔圖片 FROM GCM主管簽名檔管理 WHERE 圖片流水號 LIKE '" & TextBox14.Text & "'"
85 84
             cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
@@ -92,7 +91,7 @@ Public Class 財務_收支單審核
92 91
             conn.Close()
93 92
             PictureBox1.SizeMode = 4
94 93
             For QAZ = 0 To 999
95
-                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
94
+                QQW(0) = Strings.Right(簽名檔_dgv(0, 0).Value.ToString, 2) : QQW(1) = Strings.Right(Year(Today), 2) : QQW(2) = Strings.Left(Year(Today), 2) : QQW(3) = Month(Today) + 9
96 95
                 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)
97 96
                 QQW(9) = Strings.Left(QQW(2), 1) : QQW(10) = Strings.Right(QQW(3), 1) : QQW(11) = Strings.Left(QQW(3), 1)
98 97
                 For RT = 4 To 11
@@ -127,7 +126,7 @@ Public Class 財務_收支單審核
127 126
     Private Sub 匯率()
128 127
         ConnOpen()
129 128
         SQL1 = "SELECT 中心匯率, 美金匯率, 印尼匯率 FROM 歷史匯率表 
130
-                WHERE (年 LIKE '" & Strings.Left(Format(DateTimePicker1.Value, "yyyyMMdd"), 4) & "%') AND (月 LIKE '" & Strings.Mid(Format(DateTimePicker1.Value, "yyyyMMdd"), 5, 2) & "%')"
129
+                WHERE (年 LIKE '" & Strings.Left(Format(日期_dtp.Value, "yyyyMMdd"), 4) & "%') AND (月 LIKE '" & Strings.Mid(Format(日期_dtp.Value, "yyyyMMdd"), 5, 2) & "%')"
131 130
         cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
132 131
         If dr.Read() Then
133 132
             人民幣匯率_tb.Text = dr("中心匯率").ToString : 美金匯率_tb.Text = dr("美金匯率").ToString : 印尼匯率_tb.Text = dr("印尼匯率").ToString : conn.Close() : dr.Close()
@@ -137,18 +136,18 @@ Public Class 財務_收支單審核
137 136
     End Sub
138 137
     Private Sub 營運費用支付審核_Load(sender As Object, e As EventArgs) Handles MyBase.Load
139 138
         Me.MdiParent = GCM_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
140
-        RadioButton1.Checked = True : DataGridView2.Visible = True
139
+        未核准的收支單_rb.Checked = True : 收支單_dgv.Visible = True
141 140
         匯率() : Set_清單1() : Set_清單()
142 141
     End Sub
143
-    Private Sub DataGridView2_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView2.CellClick
142
+    Private Sub 收支單_dgv_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles 收支單_dgv.CellClick
144 143
         If e.RowIndex = -1 Then : Else
145
-            TextBox1.Text = DataGridView2(0, e.RowIndex).Value.ToString : DateTimePicker1.Value = DataGridView2(1, e.RowIndex).Value.ToString : Set_費用清單()
146
-            TextBox3.Text = DataGridView2(3, e.RowIndex).Value.ToString
144
+            收支單號_tb.Text = 收支單_dgv(0, e.RowIndex).Value.ToString : 日期_dtp.Value = 收支單_dgv(1, e.RowIndex).Value.ToString : Set_費用清單()
145
+            申請人_tb.Text = 收支單_dgv(3, e.RowIndex).Value.ToString
147 146
         End If
148 147
     End Sub
149
-    Private Sub DataGridView3_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView3.CellClick
148
+    Private Sub 簽名檔_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 簽名檔_dgv.CellClick
150 149
         If e.RowIndex = -1 Then : Else
151
-            TextBox14.Text = DataGridView3(0, e.RowIndex).Value.ToString
150
+            TextBox14.Text = 簽名檔_dgv(0, e.RowIndex).Value.ToString
152 151
             ConnOpen()
153 152
             SQL1 = "SELECT 簽名檔圖片 FROM GCM主管簽名檔管理 WHERE 圖片流水號 LIKE '" & TextBox14.Text & "'"
154 153
             cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
@@ -161,7 +160,7 @@ Public Class 財務_收支單審核
161 160
             conn.Close()
162 161
             PictureBox1.SizeMode = 4
163 162
             For QAZ = 0 To 999
164
-                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
163
+                QQW(0) = Strings.Right(簽名檔_dgv(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
165 164
                 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)
166 165
                 QQW(9) = Strings.Left(QQW(2), 1) : QQW(10) = Strings.Right(QQW(3), 1) : QQW(11) = Strings.Left(QQW(3), 1)
167 166
                 For RT = 4 To 11
@@ -185,84 +184,84 @@ Public Class 財務_收支單審核
185 184
         End If
186 185
     End Sub
187 186
     Private Sub Set_切換格式()
188
-        明細_dgv.DataSource = Nothing : ds.Clear() : TextBox1.Text = "" : TextBox3.Text = "" : TextBox5.Text = "" : TextBox2.Text = "" : TextBox6.Text = ""
189
-        TextBox7.Text = "" : TextBox8.Text = "" : Set_清單1()
187
+        明細_dgv.DataSource = Nothing : ds.Clear() : 收支單號_tb.Text = "" : 申請人_tb.Text = "" : 收入_tb.Text = "" : 支出_tb.Text = "" : 餘額_tb.Text = ""
188
+        零用金_tb.Text = "" : 支票_tb.Text = "" : Set_清單1()
190 189
     End Sub
191
-    Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton1.Click
192
-        RadioButton1.Checked = True : RadioButton2.Checked = False
193
-        明細_dgv.DataSource = Nothing : ds.Clear() : TextBox1.Text = "" : TextBox3.Text = "" : TextBox5.Text = "" : TextBox2.Text = "" : TextBox6.Text = ""
194
-        Button1.Enabled = True : Button2.Enabled = True : 審核通過ToolStripMenuItem.Enabled = True : 單據作廢ToolStripMenuItem.Enabled = True : Set_切換格式()
190
+    Private Sub 未核准的收支單_rb_CheckedChanged(sender As Object, e As EventArgs) Handles 未核准的收支單_rb.Click
191
+        未核准的收支單_rb.Checked = True : 作廢的收支單_rb.Checked = False
192
+        明細_dgv.DataSource = Nothing : ds.Clear() : 收支單號_tb.Text = "" : 申請人_tb.Text = "" : 收入_tb.Text = "" : 支出_tb.Text = "" : 餘額_tb.Text = ""
193
+        審核通過_bt.Enabled = True : 單據作廢_bt.Enabled = True : 審核通過ToolStripMenuItem.Enabled = True : 單據作廢ToolStripMenuItem.Enabled = True : Set_切換格式()
195 194
     End Sub
196
-    Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton2.Click
197
-        RadioButton1.Checked = False : RadioButton2.Checked = True
198
-        明細_dgv.DataSource = Nothing : ds.Clear() : TextBox1.Text = "" : TextBox3.Text = "" : TextBox5.Text = "" : TextBox2.Text = "" : TextBox6.Text = ""
199
-        Button1.Enabled = False : Button2.Enabled = False : 審核通過ToolStripMenuItem.Enabled = False : 單據作廢ToolStripMenuItem.Enabled = False : Set_切換格式()
195
+    Private Sub 作廢的收支單_rb_CheckedChanged(sender As Object, e As EventArgs) Handles 作廢的收支單_rb.Click
196
+        未核准的收支單_rb.Checked = False : 作廢的收支單_rb.Checked = True
197
+        明細_dgv.DataSource = Nothing : ds.Clear() : 收支單號_tb.Text = "" : 申請人_tb.Text = "" : 收入_tb.Text = "" : 支出_tb.Text = "" : 餘額_tb.Text = ""
198
+        審核通過_bt.Enabled = False : 單據作廢_bt.Enabled = False : 審核通過ToolStripMenuItem.Enabled = False : 單據作廢ToolStripMenuItem.Enabled = False : Set_切換格式()
200 199
     End Sub
201 200
     Private Sub Set_日期格式轉換()
202 201
         DTP = Format(Today(), "yyyy/MM/dd")
203 202
     End Sub
204
-    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
205
-        If TextBox1.Text = "" Then
203
+    Private Sub 審核通過_bt_Click(sender As Object, e As EventArgs) Handles 審核通過_bt.Click
204
+        If 收支單號_tb.Text = "" Then
206 205
             MsgBox("請選擇需要審核的單據。")
207 206
         Else
208
-            If CheckBox1.Checked = False Then
207
+            If 補單_ch.Checked = False Then
209 208
                 Set_日期格式轉換()
210 209
             Else
211
-                DTP = Format(DateTimePicker1.Value, "yyyy/MM/dd")
210
+                DTP = Format(日期_dtp.Value, "yyyy/MM/dd")
212 211
             End If
213 212
             conn.Close()
214 213
             ConnOpen()
215 214
             SQL1 = "UPDATE 財務控制表 SET 審核人 = N'" & gUserName & "', 審核日期 = N'" & DTP & "', 核准圖檔 = N'" & TextBox14.Text & "', 簽名編碼 = N'" & TextBox13.Text &
216 215
                                           "', 出納 = '" & gUserName & "', 出納日期 = N'" & DTP & "'
217
-                    WHERE (支付單號 = N'" & TextBox1.Text & "')"
216
+                    WHERE (支付單號 = N'" & 收支單號_tb.Text & "')"
218 217
             CmdSet_For_dr() : conn.Close()
219 218
 
220 219
             ConnOpen()
221 220
             SQL1 = "UPDATE 財務流水帳 SET 出納 = '1', 出納日期 = N'" & DTP & "'
222
-                   WHERE (支付單號 LIKE '" & TextBox1.Text & "')"
221
+                   WHERE (支付單號 LIKE '" & 收支單號_tb.Text & "')"
223 222
             CmdSet_For_dr() : conn.Close()
224 223
 
225 224
             For i As Integer = 0 To 明細_dgv.Rows.Count - 1
226 225
                 If 明細_dgv.Rows(i).Cells("零用金").Value <> 0 Then
227 226
                     ConnOpen()
228
-                    SQL1 = "UPDATE 財務流水帳 SET  備用金 = N'1' WHERE (支付單號 LIKE '" & TextBox1.Text & "' AND 項次 LIKE '" & 明細_dgv.Rows(i).Cells("項次").Value & "')"
227
+                    SQL1 = "UPDATE 財務流水帳 SET  備用金 = N'1' WHERE (支付單號 LIKE '" & 收支單號_tb.Text & "' AND 項次 LIKE '" & 明細_dgv.Rows(i).Cells("項次").Value & "')"
229 228
                     CmdSet_For_dr() : conn.Close()
230
-                ElseIf 明細_dgv.Rows(i).Cells("現金").Value <> 0 Then
229
+                ElseIf 明細_dgv.Rows(i).Cells("收入").Value <> 0 Then
231 230
                     ConnOpen()
232
-                    SQL1 = "UPDATE 財務流水帳 SET  現金 = N'1' WHERE (支付單號 LIKE '" & TextBox1.Text & "' AND 項次 LIKE '" & 明細_dgv.Rows(i).Cells("項次").Value & "')"
231
+                    SQL1 = "UPDATE 財務流水帳 SET  現金 = N'1' WHERE (支付單號 LIKE '" & 收支單號_tb.Text & "' AND 項次 LIKE '" & 明細_dgv.Rows(i).Cells("項次").Value & "')"
233 232
                     CmdSet_For_dr() : conn.Close()
234 233
                 ElseIf 明細_dgv.Rows(i).Cells("支出").Value <> 0 Then
235 234
                     ConnOpen()
236
-                    SQL1 = "UPDATE 財務流水帳 SET  公帳 = N'1' WHERE (支付單號 LIKE '" & TextBox1.Text & "' AND 項次 LIKE '" & 明細_dgv.Rows(i).Cells("項次").Value & "')"
235
+                    SQL1 = "UPDATE 財務流水帳 SET  公帳 = N'1' WHERE (支付單號 LIKE '" & 收支單號_tb.Text & "' AND 項次 LIKE '" & 明細_dgv.Rows(i).Cells("項次").Value & "')"
237 236
                     CmdSet_For_dr() : conn.Close()
238 237
                 End If
239 238
             Next
240 239
             MsgBox("審核完畢。")
241
-            TextBox1.Text = "" : TextBox3.Text = ""
240
+            收支單號_tb.Text = "" : 申請人_tb.Text = ""
242 241
             明細_dgv.DataSource = Nothing : ds.Clear()
243 242
             Set_清單1() : Set_清單()
244 243
         End If
245 244
     End Sub
246
-    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
247
-        If TextBox1.Text = "" Then
245
+    Private Sub 單據作廢_bt_Click(sender As Object, e As EventArgs) Handles 單據作廢_bt.Click
246
+        If 收支單號_tb.Text = "" Then
248 247
             MsgBox("請選擇需要審核的單據。")
249 248
         Else
250 249
             PA = InputBox("請輸入作廢原因。")
251 250
             If PA = "" Then
252 251
                 MsgBox("請輸入作廢原因,不可空白。")
253 252
             Else
254
-                If CheckBox1.Checked = False Then
253
+                If 補單_ch.Checked = False Then
255 254
                     Set_日期格式轉換()
256 255
                 Else
257
-                    DTP = Format(DateTimePicker1.Value, "yyyy/MM/dd")
256
+                    DTP = Format(日期_dtp.Value, "yyyy/MM/dd")
258 257
                 End If
259 258
                 conn.Close()
260 259
                 ConnOpen()
261
-                SQL1 = "UPDATE 財務控制表 SET 審核人 = N'作廢-" & gUserName & "', 審核日期 = N'" & DTP & "', 備註 = N'" & PA & "' WHERE (支付單號 = N'" & TextBox1.Text & "')"
260
+                SQL1 = "UPDATE 財務控制表 SET 審核人 = N'作廢-" & gUserName & "', 審核日期 = N'" & DTP & "', 備註 = N'" & PA & "' WHERE (支付單號 = N'" & 收支單號_tb.Text & "')"
262 261
                 CmdSet_For_dr()
263 262
                 conn.Close()
264 263
                 MsgBox("審核完畢。") : PA = ""
265
-                TextBox1.Text = "" : TextBox3.Text = ""
264
+                收支單號_tb.Text = "" : 申請人_tb.Text = ""
266 265
                 明細_dgv.DataSource = Nothing : ds.Clear()
267 266
                 Set_清單1()
268 267
             End If
@@ -273,9 +272,9 @@ Public Class 財務_收支單審核
273 272
         Set_清單1()
274 273
     End Sub
275 274
     Private Sub 審核通過ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 審核通過ToolStripMenuItem.Click
276
-        Me.Button1.PerformClick()
275
+        Me.審核通過_bt.PerformClick()
277 276
     End Sub
278 277
     Private Sub 單據作廢ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 單據作廢ToolStripMenuItem.Click
279
-        Me.Button2.PerformClick()
278
+        Me.單據作廢_bt.PerformClick()
280 279
     End Sub
281 280
 End Class

+ 974
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單申請_GCM.Designer.vb ファイルの表示

@@ -0,0 +1,974 @@
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
+Partial Class 財務_收支單申請_GCM
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.科目3_名_cb = New System.Windows.Forms.ComboBox()
30
+        Me.收入_tb = New System.Windows.Forms.TextBox()
31
+        Me.Label8 = New System.Windows.Forms.Label()
32
+        Me.Label62 = New System.Windows.Forms.Label()
33
+        Me.項次_tb = New System.Windows.Forms.TextBox()
34
+        Me.Label28 = New System.Windows.Forms.Label()
35
+        Me.Label27 = New System.Windows.Forms.Label()
36
+        Me.明細表_dgv = New System.Windows.Forms.DataGridView()
37
+        Me.Label3 = New System.Windows.Forms.Label()
38
+        Me.申請人_tb = New System.Windows.Forms.TextBox()
39
+        Me.收支單號_tb = New System.Windows.Forms.TextBox()
40
+        Me.Label1 = New System.Windows.Forms.Label()
41
+        Me.作廢的收支單_rb = New System.Windows.Forms.RadioButton()
42
+        Me.未核准的收支單_rb = New System.Windows.Forms.RadioButton()
43
+        Me.收支單_dgv = New System.Windows.Forms.DataGridView()
44
+        Me.申請_bt = 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.日期_dtp = New System.Windows.Forms.DateTimePicker()
60
+        Me.補單_ch = New System.Windows.Forms.CheckBox()
61
+        Me.支出_tb = New System.Windows.Forms.TextBox()
62
+        Me.Label5 = New System.Windows.Forms.Label()
63
+        Me.合計_tb = New System.Windows.Forms.TextBox()
64
+        Me.Label9 = New System.Windows.Forms.Label()
65
+        Me.零用金_tb = New System.Windows.Forms.TextBox()
66
+        Me.Label10 = New System.Windows.Forms.Label()
67
+        Me.支票_tb = New System.Windows.Forms.TextBox()
68
+        Me.Label11 = New System.Windows.Forms.Label()
69
+        Me.已核准的收支單_rb = New System.Windows.Forms.RadioButton()
70
+        Me.DateTimePicker2 = New System.Windows.Forms.DateTimePicker()
71
+        Me.複製歷史單據重新開立_bt = New System.Windows.Forms.Button()
72
+        Me.科目2_號_cb = New System.Windows.Forms.ComboBox()
73
+        Me.科目2_名_cb = New System.Windows.Forms.ComboBox()
74
+        Me.科目1_號_cb = New System.Windows.Forms.ComboBox()
75
+        Me.科目1_名_cb = New System.Windows.Forms.ComboBox()
76
+        Me.關鍵字查詢會計科目_tb = New System.Windows.Forms.TextBox()
77
+        Me.科目3_號_cb = New System.Windows.Forms.ComboBox()
78
+        Me.幣別_cb = New System.Windows.Forms.ComboBox()
79
+        Me.人民幣匯率_tb = New System.Windows.Forms.TextBox()
80
+        Me.美金匯率_tb = New System.Windows.Forms.TextBox()
81
+        Me.印尼匯率_tb = New System.Windows.Forms.TextBox()
82
+        Me.Label16 = New System.Windows.Forms.Label()
83
+        Me.刪除選中的營運成本收支單_bt = New System.Windows.Forms.Button()
84
+        Me.開立營運成本收支單_bt = New System.Windows.Forms.Button()
85
+        Me.Label13 = New System.Windows.Forms.Label()
86
+        Me.Label12 = New System.Windows.Forms.Label()
87
+        Me.Label7 = New System.Windows.Forms.Label()
88
+        Me.Label6 = New System.Windows.Forms.Label()
89
+        Me.Label14 = New System.Windows.Forms.Label()
90
+        Me.Label15 = New System.Windows.Forms.Label()
91
+        Me.刪除選中的一筆資料_bt = New System.Windows.Forms.Button()
92
+        Me.收支單中新增一筆空白資料_bt = New System.Windows.Forms.Button()
93
+        Me.Panel1 = New System.Windows.Forms.Panel()
94
+        Me.視窗1_pl = New System.Windows.Forms.Panel()
95
+        Me.物料群組_Panel = New System.Windows.Forms.Panel()
96
+        Me.支出_cb = New System.Windows.Forms.CheckBox()
97
+        Me.收入_cb = New System.Windows.Forms.CheckBox()
98
+        Me.指定_ndp = New System.Windows.Forms.NumericUpDown()
99
+        Me.窗口說明1_lb = New System.Windows.Forms.Label()
100
+        Me.確定_bt = New System.Windows.Forms.Button()
101
+        Me.窗口表頭_lb = New System.Windows.Forms.Label()
102
+        Me.Cancel_bt = New System.Windows.Forms.Button()
103
+        CType(Me.明細表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
104
+        CType(Me.收支單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
105
+        Me.ContextMenuStrip1.SuspendLayout()
106
+        Me.Panel1.SuspendLayout()
107
+        Me.視窗1_pl.SuspendLayout()
108
+        Me.物料群組_Panel.SuspendLayout()
109
+        CType(Me.指定_ndp, System.ComponentModel.ISupportInitialize).BeginInit()
110
+        Me.SuspendLayout()
111
+        '
112
+        '科目3_名_cb
113
+        '
114
+        Me.科目3_名_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
115
+        Me.科目3_名_cb.FormattingEnabled = True
116
+        Me.科目3_名_cb.Location = New System.Drawing.Point(773, 71)
117
+        Me.科目3_名_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
118
+        Me.科目3_名_cb.Name = "科目3_名_cb"
119
+        Me.科目3_名_cb.Size = New System.Drawing.Size(184, 24)
120
+        Me.科目3_名_cb.TabIndex = 845
121
+        '
122
+        '收入_tb
123
+        '
124
+        Me.收入_tb.Location = New System.Drawing.Point(714, 102)
125
+        Me.收入_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
126
+        Me.收入_tb.Name = "收入_tb"
127
+        Me.收入_tb.Size = New System.Drawing.Size(100, 23)
128
+        Me.收入_tb.TabIndex = 844
129
+        Me.收入_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
130
+        '
131
+        'Label8
132
+        '
133
+        Me.Label8.AutoSize = True
134
+        Me.Label8.Location = New System.Drawing.Point(681, 106)
135
+        Me.Label8.Name = "Label8"
136
+        Me.Label8.Size = New System.Drawing.Size(31, 16)
137
+        Me.Label8.TabIndex = 843
138
+        Me.Label8.Text = "收入"
139
+        '
140
+        'Label62
141
+        '
142
+        Me.Label62.AutoSize = True
143
+        Me.Label62.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
144
+        Me.Label62.ForeColor = System.Drawing.Color.Red
145
+        Me.Label62.Location = New System.Drawing.Point(1134, 1)
146
+        Me.Label62.Name = "Label62"
147
+        Me.Label62.Size = New System.Drawing.Size(109, 16)
148
+        Me.Label62.TabIndex = 842
149
+        Me.Label62.Text = "資  料  尚  未  存  檔"
150
+        Me.Label62.Visible = False
151
+        '
152
+        '項次_tb
153
+        '
154
+        Me.項次_tb.Location = New System.Drawing.Point(353, 102)
155
+        Me.項次_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
156
+        Me.項次_tb.Name = "項次_tb"
157
+        Me.項次_tb.Size = New System.Drawing.Size(61, 23)
158
+        Me.項次_tb.TabIndex = 841
159
+        Me.項次_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
160
+        '
161
+        'Label28
162
+        '
163
+        Me.Label28.AutoSize = True
164
+        Me.Label28.Location = New System.Drawing.Point(413, 106)
165
+        Me.Label28.Name = "Label28"
166
+        Me.Label28.Size = New System.Drawing.Size(43, 16)
167
+        Me.Label28.TabIndex = 840
168
+        Me.Label28.Text = "項次。"
169
+        '
170
+        'Label27
171
+        '
172
+        Me.Label27.AutoSize = True
173
+        Me.Label27.Location = New System.Drawing.Point(321, 105)
174
+        Me.Label27.Name = "Label27"
175
+        Me.Label27.Size = New System.Drawing.Size(31, 16)
176
+        Me.Label27.TabIndex = 839
177
+        Me.Label27.Text = "選擇"
178
+        '
179
+        '明細表_dgv
180
+        '
181
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
182
+        Me.明細表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
183
+        Me.明細表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
184
+            Or System.Windows.Forms.AnchorStyles.Left) _
185
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
186
+        Me.明細表_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
187
+        Me.明細表_dgv.BackgroundColor = System.Drawing.Color.White
188
+        Me.明細表_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
189
+        Me.明細表_dgv.Location = New System.Drawing.Point(318, 127)
190
+        Me.明細表_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
191
+        Me.明細表_dgv.Name = "明細表_dgv"
192
+        Me.明細表_dgv.RowHeadersWidth = 5
193
+        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
194
+        Me.明細表_dgv.RowsDefaultCellStyle = DataGridViewCellStyle2
195
+        Me.明細表_dgv.RowTemplate.Height = 24
196
+        Me.明細表_dgv.Size = New System.Drawing.Size(925, 482)
197
+        Me.明細表_dgv.TabIndex = 838
198
+        '
199
+        'Label3
200
+        '
201
+        Me.Label3.AutoSize = True
202
+        Me.Label3.Location = New System.Drawing.Point(502, 21)
203
+        Me.Label3.Name = "Label3"
204
+        Me.Label3.Size = New System.Drawing.Size(43, 16)
205
+        Me.Label3.TabIndex = 837
206
+        Me.Label3.Text = "申請人"
207
+        '
208
+        '申請人_tb
209
+        '
210
+        Me.申請人_tb.Location = New System.Drawing.Point(546, 18)
211
+        Me.申請人_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
212
+        Me.申請人_tb.Name = "申請人_tb"
213
+        Me.申請人_tb.Size = New System.Drawing.Size(92, 23)
214
+        Me.申請人_tb.TabIndex = 836
215
+        Me.申請人_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
216
+        '
217
+        '收支單號_tb
218
+        '
219
+        Me.收支單號_tb.Location = New System.Drawing.Point(379, 18)
220
+        Me.收支單號_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
221
+        Me.收支單號_tb.Name = "收支單號_tb"
222
+        Me.收支單號_tb.Size = New System.Drawing.Size(122, 23)
223
+        Me.收支單號_tb.TabIndex = 832
224
+        Me.收支單號_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
225
+        '
226
+        'Label1
227
+        '
228
+        Me.Label1.AutoSize = True
229
+        Me.Label1.Location = New System.Drawing.Point(322, 22)
230
+        Me.Label1.Name = "Label1"
231
+        Me.Label1.Size = New System.Drawing.Size(55, 16)
232
+        Me.Label1.TabIndex = 833
233
+        Me.Label1.Text = "收支單號"
234
+        '
235
+        '作廢的收支單_rb
236
+        '
237
+        Me.作廢的收支單_rb.AutoSize = True
238
+        Me.作廢的收支單_rb.Location = New System.Drawing.Point(225, 2)
239
+        Me.作廢的收支單_rb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
240
+        Me.作廢的收支單_rb.Name = "作廢的收支單_rb"
241
+        Me.作廢的收支單_rb.Size = New System.Drawing.Size(97, 20)
242
+        Me.作廢的收支單_rb.TabIndex = 829
243
+        Me.作廢的收支單_rb.TabStop = True
244
+        Me.作廢的收支單_rb.Text = "作廢的收支單"
245
+        Me.作廢的收支單_rb.UseVisualStyleBackColor = True
246
+        '
247
+        '未核准的收支單_rb
248
+        '
249
+        Me.未核准的收支單_rb.AutoSize = True
250
+        Me.未核准的收支單_rb.Location = New System.Drawing.Point(3, 2)
251
+        Me.未核准的收支單_rb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
252
+        Me.未核准的收支單_rb.Name = "未核准的收支單_rb"
253
+        Me.未核准的收支單_rb.Size = New System.Drawing.Size(109, 20)
254
+        Me.未核准的收支單_rb.TabIndex = 828
255
+        Me.未核准的收支單_rb.TabStop = True
256
+        Me.未核准的收支單_rb.Text = "未核准的收支單"
257
+        Me.未核准的收支單_rb.UseVisualStyleBackColor = True
258
+        '
259
+        '收支單_dgv
260
+        '
261
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
262
+        Me.收支單_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
263
+        Me.收支單_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
264
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
265
+        Me.收支單_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
266
+        Me.收支單_dgv.BackgroundColor = System.Drawing.Color.White
267
+        Me.收支單_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
268
+        Me.收支單_dgv.Location = New System.Drawing.Point(4, 22)
269
+        Me.收支單_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
270
+        Me.收支單_dgv.Name = "收支單_dgv"
271
+        Me.收支單_dgv.RowHeadersWidth = 5
272
+        Me.收支單_dgv.RowTemplate.Height = 24
273
+        Me.收支單_dgv.Size = New System.Drawing.Size(315, 587)
274
+        Me.收支單_dgv.TabIndex = 820
275
+        '
276
+        '申請_bt
277
+        '
278
+        Me.申請_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
279
+        Me.申請_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
280
+        Me.申請_bt.Location = New System.Drawing.Point(1083, 101)
281
+        Me.申請_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
282
+        Me.申請_bt.Name = "申請_bt"
283
+        Me.申請_bt.Size = New System.Drawing.Size(160, 25)
284
+        Me.申請_bt.TabIndex = 846
285
+        Me.申請_bt.Text = "申請完成"
286
+        Me.申請_bt.UseVisualStyleBackColor = True
287
+        '
288
+        'Label2
289
+        '
290
+        Me.Label2.AutoSize = True
291
+        Me.Label2.Location = New System.Drawing.Point(327, 75)
292
+        Me.Label2.Name = "Label2"
293
+        Me.Label2.Size = New System.Drawing.Size(55, 16)
294
+        Me.Label2.TabIndex = 847
295
+        Me.Label2.Text = "會計科目"
296
+        '
297
+        'ContextMenuStrip1
298
+        '
299
+        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})
300
+        Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
301
+        Me.ContextMenuStrip1.Size = New System.Drawing.Size(231, 176)
302
+        '
303
+        '重新讀取ToolStripMenuItem
304
+        '
305
+        Me.重新讀取ToolStripMenuItem.Name = "重新讀取ToolStripMenuItem"
306
+        Me.重新讀取ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
307
+        Me.重新讀取ToolStripMenuItem.Text = "重新讀取"
308
+        '
309
+        'ToolStripSeparator6
310
+        '
311
+        Me.ToolStripSeparator6.Name = "ToolStripSeparator6"
312
+        Me.ToolStripSeparator6.Size = New System.Drawing.Size(227, 6)
313
+        '
314
+        '開立零用金支付單ToolStripMenuItem
315
+        '
316
+        Me.開立零用金支付單ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
317
+        Me.開立零用金支付單ToolStripMenuItem.Name = "開立零用金支付單ToolStripMenuItem"
318
+        Me.開立零用金支付單ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
319
+        Me.開立零用金支付單ToolStripMenuItem.Text = "開立營運成本收支單"
320
+        '
321
+        '複製單據開單ToolStripMenuItem
322
+        '
323
+        Me.複製單據開單ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
324
+        Me.複製單據開單ToolStripMenuItem.Name = "複製單據開單ToolStripMenuItem"
325
+        Me.複製單據開單ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
326
+        Me.複製單據開單ToolStripMenuItem.Text = "複製歷史單據重新開立"
327
+        '
328
+        '申請完成ToolStripMenuItem
329
+        '
330
+        Me.申請完成ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
331
+        Me.申請完成ToolStripMenuItem.Name = "申請完成ToolStripMenuItem"
332
+        Me.申請完成ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
333
+        Me.申請完成ToolStripMenuItem.Text = "申請完成"
334
+        '
335
+        'ToolStripSeparator1
336
+        '
337
+        Me.ToolStripSeparator1.Name = "ToolStripSeparator1"
338
+        Me.ToolStripSeparator1.Size = New System.Drawing.Size(227, 6)
339
+        '
340
+        '新增一筆資料ToolStripMenuItem
341
+        '
342
+        Me.新增一筆資料ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer))
343
+        Me.新增一筆資料ToolStripMenuItem.Name = "新增一筆資料ToolStripMenuItem"
344
+        Me.新增一筆資料ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
345
+        Me.新增一筆資料ToolStripMenuItem.Text = "收支單中新增一筆空白資料"
346
+        '
347
+        '刪除支付單中選中的資料ToolStripMenuItem
348
+        '
349
+        Me.刪除支付單中選中的資料ToolStripMenuItem.ForeColor = System.Drawing.Color.Red
350
+        Me.刪除支付單中選中的資料ToolStripMenuItem.Name = "刪除支付單中選中的資料ToolStripMenuItem"
351
+        Me.刪除支付單中選中的資料ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
352
+        Me.刪除支付單中選中的資料ToolStripMenuItem.Text = "刪除一筆收支單中選中的資料"
353
+        '
354
+        'ToolStripSeparator2
355
+        '
356
+        Me.ToolStripSeparator2.Name = "ToolStripSeparator2"
357
+        Me.ToolStripSeparator2.Size = New System.Drawing.Size(227, 6)
358
+        '
359
+        '刪除選中的零用金支付單ToolStripMenuItem
360
+        '
361
+        Me.刪除選中的零用金支付單ToolStripMenuItem.ForeColor = System.Drawing.Color.Red
362
+        Me.刪除選中的零用金支付單ToolStripMenuItem.Name = "刪除選中的零用金支付單ToolStripMenuItem"
363
+        Me.刪除選中的零用金支付單ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
364
+        Me.刪除選中的零用金支付單ToolStripMenuItem.Text = "刪除選中的營運成本收支單"
365
+        '
366
+        'Timer1
367
+        '
368
+        Me.Timer1.Interval = 500
369
+        '
370
+        'Label4
371
+        '
372
+        Me.Label4.AutoSize = True
373
+        Me.Label4.ForeColor = System.Drawing.Color.Blue
374
+        Me.Label4.Location = New System.Drawing.Point(644, 21)
375
+        Me.Label4.Name = "Label4"
376
+        Me.Label4.Size = New System.Drawing.Size(31, 16)
377
+        Me.Label4.TabIndex = 878
378
+        Me.Label4.Text = "日期"
379
+        '
380
+        '日期_dtp
381
+        '
382
+        Me.日期_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
383
+        Me.日期_dtp.Location = New System.Drawing.Point(676, 18)
384
+        Me.日期_dtp.Name = "日期_dtp"
385
+        Me.日期_dtp.Size = New System.Drawing.Size(90, 23)
386
+        Me.日期_dtp.TabIndex = 877
387
+        '
388
+        '補單_ch
389
+        '
390
+        Me.補單_ch.AutoSize = True
391
+        Me.補單_ch.Checked = True
392
+        Me.補單_ch.CheckState = System.Windows.Forms.CheckState.Checked
393
+        Me.補單_ch.Location = New System.Drawing.Point(775, 20)
394
+        Me.補單_ch.Name = "補單_ch"
395
+        Me.補單_ch.Size = New System.Drawing.Size(38, 20)
396
+        Me.補單_ch.TabIndex = 879
397
+        Me.補單_ch.Text = "補"
398
+        Me.補單_ch.UseVisualStyleBackColor = True
399
+        '
400
+        '支出_tb
401
+        '
402
+        Me.支出_tb.Location = New System.Drawing.Point(849, 102)
403
+        Me.支出_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
404
+        Me.支出_tb.Name = "支出_tb"
405
+        Me.支出_tb.Size = New System.Drawing.Size(100, 23)
406
+        Me.支出_tb.TabIndex = 881
407
+        Me.支出_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
408
+        '
409
+        'Label5
410
+        '
411
+        Me.Label5.AutoSize = True
412
+        Me.Label5.Location = New System.Drawing.Point(816, 106)
413
+        Me.Label5.Name = "Label5"
414
+        Me.Label5.Size = New System.Drawing.Size(31, 16)
415
+        Me.Label5.TabIndex = 880
416
+        Me.Label5.Text = "支出"
417
+        '
418
+        '合計_tb
419
+        '
420
+        Me.合計_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
421
+        Me.合計_tb.Location = New System.Drawing.Point(979, 102)
422
+        Me.合計_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
423
+        Me.合計_tb.Name = "合計_tb"
424
+        Me.合計_tb.Size = New System.Drawing.Size(100, 23)
425
+        Me.合計_tb.TabIndex = 883
426
+        Me.合計_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
427
+        '
428
+        'Label9
429
+        '
430
+        Me.Label9.AutoSize = True
431
+        Me.Label9.Location = New System.Drawing.Point(948, 106)
432
+        Me.Label9.Name = "Label9"
433
+        Me.Label9.Size = New System.Drawing.Size(31, 16)
434
+        Me.Label9.TabIndex = 882
435
+        Me.Label9.Text = "合計"
436
+        '
437
+        '零用金_tb
438
+        '
439
+        Me.零用金_tb.Location = New System.Drawing.Point(514, 102)
440
+        Me.零用金_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
441
+        Me.零用金_tb.Name = "零用金_tb"
442
+        Me.零用金_tb.Size = New System.Drawing.Size(65, 23)
443
+        Me.零用金_tb.TabIndex = 885
444
+        Me.零用金_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
445
+        '
446
+        'Label10
447
+        '
448
+        Me.Label10.AutoSize = True
449
+        Me.Label10.Location = New System.Drawing.Point(468, 105)
450
+        Me.Label10.Name = "Label10"
451
+        Me.Label10.Size = New System.Drawing.Size(43, 16)
452
+        Me.Label10.TabIndex = 884
453
+        Me.Label10.Text = "零用金"
454
+        '
455
+        '支票_tb
456
+        '
457
+        Me.支票_tb.Location = New System.Drawing.Point(614, 102)
458
+        Me.支票_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
459
+        Me.支票_tb.Name = "支票_tb"
460
+        Me.支票_tb.Size = New System.Drawing.Size(65, 23)
461
+        Me.支票_tb.TabIndex = 887
462
+        Me.支票_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
463
+        '
464
+        'Label11
465
+        '
466
+        Me.Label11.AutoSize = True
467
+        Me.Label11.Location = New System.Drawing.Point(581, 105)
468
+        Me.Label11.Name = "Label11"
469
+        Me.Label11.Size = New System.Drawing.Size(31, 16)
470
+        Me.Label11.TabIndex = 886
471
+        Me.Label11.Text = "支票"
472
+        '
473
+        '已核准的收支單_rb
474
+        '
475
+        Me.已核准的收支單_rb.AutoSize = True
476
+        Me.已核准的收支單_rb.Location = New System.Drawing.Point(116, 2)
477
+        Me.已核准的收支單_rb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
478
+        Me.已核准的收支單_rb.Name = "已核准的收支單_rb"
479
+        Me.已核准的收支單_rb.Size = New System.Drawing.Size(109, 20)
480
+        Me.已核准的收支單_rb.TabIndex = 888
481
+        Me.已核准的收支單_rb.TabStop = True
482
+        Me.已核准的收支單_rb.Text = "已核准的收支單"
483
+        Me.已核准的收支單_rb.UseVisualStyleBackColor = True
484
+        '
485
+        'DateTimePicker2
486
+        '
487
+        Me.DateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
488
+        Me.DateTimePicker2.Location = New System.Drawing.Point(3, 128)
489
+        Me.DateTimePicker2.Name = "DateTimePicker2"
490
+        Me.DateTimePicker2.Size = New System.Drawing.Size(175, 23)
491
+        Me.DateTimePicker2.TabIndex = 889
492
+        '
493
+        '複製歷史單據重新開立_bt
494
+        '
495
+        Me.複製歷史單據重新開立_bt.ForeColor = System.Drawing.Color.Green
496
+        Me.複製歷史單據重新開立_bt.Location = New System.Drawing.Point(1014, 17)
497
+        Me.複製歷史單據重新開立_bt.Name = "複製歷史單據重新開立_bt"
498
+        Me.複製歷史單據重新開立_bt.Size = New System.Drawing.Size(114, 25)
499
+        Me.複製歷史單據重新開立_bt.TabIndex = 890
500
+        Me.複製歷史單據重新開立_bt.Text = "複製歷史單據"
501
+        Me.複製歷史單據重新開立_bt.UseVisualStyleBackColor = True
502
+        '
503
+        '科目2_號_cb
504
+        '
505
+        Me.科目2_號_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
506
+        Me.科目2_號_cb.FormattingEnabled = True
507
+        Me.科目2_號_cb.Location = New System.Drawing.Point(696, 71)
508
+        Me.科目2_號_cb.Name = "科目2_號_cb"
509
+        Me.科目2_號_cb.Size = New System.Drawing.Size(75, 24)
510
+        Me.科目2_號_cb.TabIndex = 894
511
+        '
512
+        '科目2_名_cb
513
+        '
514
+        Me.科目2_名_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
515
+        Me.科目2_名_cb.FormattingEnabled = True
516
+        Me.科目2_名_cb.Location = New System.Drawing.Point(571, 71)
517
+        Me.科目2_名_cb.Name = "科目2_名_cb"
518
+        Me.科目2_名_cb.Size = New System.Drawing.Size(123, 24)
519
+        Me.科目2_名_cb.TabIndex = 893
520
+        '
521
+        '科目1_號_cb
522
+        '
523
+        Me.科目1_號_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
524
+        Me.科目1_號_cb.FormattingEnabled = True
525
+        Me.科目1_號_cb.Location = New System.Drawing.Point(509, 71)
526
+        Me.科目1_號_cb.Name = "科目1_號_cb"
527
+        Me.科目1_號_cb.Size = New System.Drawing.Size(61, 24)
528
+        Me.科目1_號_cb.TabIndex = 892
529
+        '
530
+        '科目1_名_cb
531
+        '
532
+        Me.科目1_名_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
533
+        Me.科目1_名_cb.FormattingEnabled = True
534
+        Me.科目1_名_cb.Location = New System.Drawing.Point(385, 71)
535
+        Me.科目1_名_cb.Name = "科目1_名_cb"
536
+        Me.科目1_名_cb.Size = New System.Drawing.Size(123, 24)
537
+        Me.科目1_名_cb.TabIndex = 891
538
+        '
539
+        '關鍵字查詢會計科目_tb
540
+        '
541
+        Me.關鍵字查詢會計科目_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
542
+        Me.關鍵字查詢會計科目_tb.Location = New System.Drawing.Point(960, 47)
543
+        Me.關鍵字查詢會計科目_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
544
+        Me.關鍵字查詢會計科目_tb.Name = "關鍵字查詢會計科目_tb"
545
+        Me.關鍵字查詢會計科目_tb.Size = New System.Drawing.Size(119, 23)
546
+        Me.關鍵字查詢會計科目_tb.TabIndex = 895
547
+        Me.關鍵字查詢會計科目_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
548
+        '
549
+        '科目3_號_cb
550
+        '
551
+        Me.科目3_號_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
552
+        Me.科目3_號_cb.FormattingEnabled = True
553
+        Me.科目3_號_cb.Location = New System.Drawing.Point(3, 4)
554
+        Me.科目3_號_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
555
+        Me.科目3_號_cb.Name = "科目3_號_cb"
556
+        Me.科目3_號_cb.Size = New System.Drawing.Size(175, 24)
557
+        Me.科目3_號_cb.TabIndex = 896
558
+        '
559
+        '幣別_cb
560
+        '
561
+        Me.幣別_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
562
+        Me.幣別_cb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
563
+        Me.幣別_cb.FormattingEnabled = True
564
+        Me.幣別_cb.Items.AddRange(New Object() {"台幣現金", "人民幣現金", "美金", "印尼盾"})
565
+        Me.幣別_cb.Location = New System.Drawing.Point(960, 71)
566
+        Me.幣別_cb.Name = "幣別_cb"
567
+        Me.幣別_cb.Size = New System.Drawing.Size(119, 24)
568
+        Me.幣別_cb.TabIndex = 898
569
+        '
570
+        '人民幣匯率_tb
571
+        '
572
+        Me.人民幣匯率_tb.Location = New System.Drawing.Point(3, 36)
573
+        Me.人民幣匯率_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
574
+        Me.人民幣匯率_tb.Name = "人民幣匯率_tb"
575
+        Me.人民幣匯率_tb.Size = New System.Drawing.Size(175, 23)
576
+        Me.人民幣匯率_tb.TabIndex = 899
577
+        Me.人民幣匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
578
+        '
579
+        '美金匯率_tb
580
+        '
581
+        Me.美金匯率_tb.Location = New System.Drawing.Point(3, 67)
582
+        Me.美金匯率_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
583
+        Me.美金匯率_tb.Name = "美金匯率_tb"
584
+        Me.美金匯率_tb.Size = New System.Drawing.Size(175, 23)
585
+        Me.美金匯率_tb.TabIndex = 900
586
+        Me.美金匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
587
+        '
588
+        '印尼匯率_tb
589
+        '
590
+        Me.印尼匯率_tb.Location = New System.Drawing.Point(3, 98)
591
+        Me.印尼匯率_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
592
+        Me.印尼匯率_tb.Name = "印尼匯率_tb"
593
+        Me.印尼匯率_tb.Size = New System.Drawing.Size(175, 23)
594
+        Me.印尼匯率_tb.TabIndex = 901
595
+        Me.印尼匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
596
+        '
597
+        'Label16
598
+        '
599
+        Me.Label16.AutoSize = True
600
+        Me.Label16.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
601
+        Me.Label16.Location = New System.Drawing.Point(323, 1)
602
+        Me.Label16.Name = "Label16"
603
+        Me.Label16.Size = New System.Drawing.Size(218, 16)
604
+        Me.Label16.TabIndex = 1502
605
+        Me.Label16.Text = "1、先開立財務收支單,在選會計科目。"
606
+        '
607
+        '刪除選中的營運成本收支單_bt
608
+        '
609
+        Me.刪除選中的營運成本收支單_bt.ForeColor = System.Drawing.Color.Red
610
+        Me.刪除選中的營運成本收支單_bt.Location = New System.Drawing.Point(1128, 17)
611
+        Me.刪除選中的營運成本收支單_bt.Name = "刪除選中的營運成本收支單_bt"
612
+        Me.刪除選中的營運成本收支單_bt.Size = New System.Drawing.Size(115, 25)
613
+        Me.刪除選中的營運成本收支單_bt.TabIndex = 1504
614
+        Me.刪除選中的營運成本收支單_bt.Text = "刪除選中的財務單"
615
+        Me.刪除選中的營運成本收支單_bt.UseVisualStyleBackColor = True
616
+        '
617
+        '開立營運成本收支單_bt
618
+        '
619
+        Me.開立營運成本收支單_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
620
+        Me.開立營運成本收支單_bt.Location = New System.Drawing.Point(899, 17)
621
+        Me.開立營運成本收支單_bt.Name = "開立營運成本收支單_bt"
622
+        Me.開立營運成本收支單_bt.Size = New System.Drawing.Size(115, 25)
623
+        Me.開立營運成本收支單_bt.TabIndex = 1503
624
+        Me.開立營運成本收支單_bt.Text = "開立財務收支單"
625
+        Me.開立營運成本收支單_bt.UseVisualStyleBackColor = True
626
+        '
627
+        'Label13
628
+        '
629
+        Me.Label13.AutoSize = True
630
+        Me.Label13.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
631
+        Me.Label13.Location = New System.Drawing.Point(323, 55)
632
+        Me.Label13.Name = "Label13"
633
+        Me.Label13.Size = New System.Drawing.Size(218, 16)
634
+        Me.Label13.TabIndex = 1506
635
+        Me.Label13.Text = "2、選擇會計科目後再新增一筆空白資料"
636
+        '
637
+        'Label12
638
+        '
639
+        Me.Label12.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
640
+        Me.Label12.AutoSize = True
641
+        Me.Label12.Location = New System.Drawing.Point(375, 30)
642
+        Me.Label12.Name = "Label12"
643
+        Me.Label12.Size = New System.Drawing.Size(872, 16)
644
+        Me.Label12.TabIndex = 1508
645
+        Me.Label12.Text = "_________________________________________________________________________________" &
646
+    "________________________________________________________________________________" &
647
+    "____________"
648
+        '
649
+        'Label7
650
+        '
651
+        Me.Label7.AutoSize = True
652
+        Me.Label7.Location = New System.Drawing.Point(318, 30)
653
+        Me.Label7.Name = "Label7"
654
+        Me.Label7.Size = New System.Drawing.Size(872, 16)
655
+        Me.Label7.TabIndex = 1507
656
+        Me.Label7.Text = "_________________________________________________________________________________" &
657
+    "________________________________________________________________________________" &
658
+    "____________"
659
+        '
660
+        'Label6
661
+        '
662
+        Me.Label6.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
663
+        Me.Label6.AutoSize = True
664
+        Me.Label6.Location = New System.Drawing.Point(375, 85)
665
+        Me.Label6.Name = "Label6"
666
+        Me.Label6.Size = New System.Drawing.Size(872, 16)
667
+        Me.Label6.TabIndex = 1510
668
+        Me.Label6.Text = "_________________________________________________________________________________" &
669
+    "________________________________________________________________________________" &
670
+    "____________"
671
+        '
672
+        'Label14
673
+        '
674
+        Me.Label14.AutoSize = True
675
+        Me.Label14.Location = New System.Drawing.Point(318, 85)
676
+        Me.Label14.Name = "Label14"
677
+        Me.Label14.Size = New System.Drawing.Size(872, 16)
678
+        Me.Label14.TabIndex = 1509
679
+        Me.Label14.Text = "_________________________________________________________________________________" &
680
+    "________________________________________________________________________________" &
681
+    "____________"
682
+        '
683
+        'Label15
684
+        '
685
+        Me.Label15.AutoSize = True
686
+        Me.Label15.Location = New System.Drawing.Point(837, 51)
687
+        Me.Label15.Name = "Label15"
688
+        Me.Label15.Size = New System.Drawing.Size(120, 16)
689
+        Me.Label15.TabIndex = 1511
690
+        Me.Label15.Text = "關鍵字查詢-會計科目"
691
+        '
692
+        '刪除選中的一筆資料_bt
693
+        '
694
+        Me.刪除選中的一筆資料_bt.ForeColor = System.Drawing.Color.Red
695
+        Me.刪除選中的一筆資料_bt.Location = New System.Drawing.Point(1083, 71)
696
+        Me.刪除選中的一筆資料_bt.Name = "刪除選中的一筆資料_bt"
697
+        Me.刪除選中的一筆資料_bt.Size = New System.Drawing.Size(160, 25)
698
+        Me.刪除選中的一筆資料_bt.TabIndex = 1513
699
+        Me.刪除選中的一筆資料_bt.Text = "刪除選中的一筆資料"
700
+        Me.刪除選中的一筆資料_bt.UseVisualStyleBackColor = True
701
+        '
702
+        '收支單中新增一筆空白資料_bt
703
+        '
704
+        Me.收支單中新增一筆空白資料_bt.ForeColor = System.Drawing.Color.Green
705
+        Me.收支單中新增一筆空白資料_bt.Location = New System.Drawing.Point(1083, 46)
706
+        Me.收支單中新增一筆空白資料_bt.Name = "收支單中新增一筆空白資料_bt"
707
+        Me.收支單中新增一筆空白資料_bt.Size = New System.Drawing.Size(160, 25)
708
+        Me.收支單中新增一筆空白資料_bt.TabIndex = 1512
709
+        Me.收支單中新增一筆空白資料_bt.Text = "收支單中新增一筆空白資料"
710
+        Me.收支單中新增一筆空白資料_bt.UseVisualStyleBackColor = True
711
+        '
712
+        'Panel1
713
+        '
714
+        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
715
+        Me.Panel1.Controls.Add(Me.科目3_號_cb)
716
+        Me.Panel1.Controls.Add(Me.人民幣匯率_tb)
717
+        Me.Panel1.Controls.Add(Me.美金匯率_tb)
718
+        Me.Panel1.Controls.Add(Me.印尼匯率_tb)
719
+        Me.Panel1.Controls.Add(Me.DateTimePicker2)
720
+        Me.Panel1.Location = New System.Drawing.Point(81, 211)
721
+        Me.Panel1.Name = "Panel1"
722
+        Me.Panel1.Size = New System.Drawing.Size(188, 159)
723
+        Me.Panel1.TabIndex = 1514
724
+        '
725
+        '視窗1_pl
726
+        '
727
+        Me.視窗1_pl.BackColor = System.Drawing.Color.White
728
+        Me.視窗1_pl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
729
+        Me.視窗1_pl.Controls.Add(Me.物料群組_Panel)
730
+        Me.視窗1_pl.Controls.Add(Me.窗口表頭_lb)
731
+        Me.視窗1_pl.Controls.Add(Me.Cancel_bt)
732
+        Me.視窗1_pl.Location = New System.Drawing.Point(647, 279)
733
+        Me.視窗1_pl.Name = "視窗1_pl"
734
+        Me.視窗1_pl.Size = New System.Drawing.Size(199, 124)
735
+        Me.視窗1_pl.TabIndex = 1515
736
+        '
737
+        '物料群組_Panel
738
+        '
739
+        Me.物料群組_Panel.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
740
+            Or System.Windows.Forms.AnchorStyles.Left) _
741
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
742
+        Me.物料群組_Panel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
743
+        Me.物料群組_Panel.Controls.Add(Me.支出_cb)
744
+        Me.物料群組_Panel.Controls.Add(Me.收入_cb)
745
+        Me.物料群組_Panel.Controls.Add(Me.指定_ndp)
746
+        Me.物料群組_Panel.Controls.Add(Me.窗口說明1_lb)
747
+        Me.物料群組_Panel.Controls.Add(Me.確定_bt)
748
+        Me.物料群組_Panel.Location = New System.Drawing.Point(3, 28)
749
+        Me.物料群組_Panel.Name = "物料群組_Panel"
750
+        Me.物料群組_Panel.Size = New System.Drawing.Size(192, 92)
751
+        Me.物料群組_Panel.TabIndex = 1367
752
+        '
753
+        '支出_cb
754
+        '
755
+        Me.支出_cb.AutoSize = True
756
+        Me.支出_cb.Location = New System.Drawing.Point(103, 32)
757
+        Me.支出_cb.Name = "支出_cb"
758
+        Me.支出_cb.Size = New System.Drawing.Size(50, 20)
759
+        Me.支出_cb.TabIndex = 1376
760
+        Me.支出_cb.Text = "支出"
761
+        Me.支出_cb.UseVisualStyleBackColor = True
762
+        '
763
+        '收入_cb
764
+        '
765
+        Me.收入_cb.AutoSize = True
766
+        Me.收入_cb.Location = New System.Drawing.Point(8, 32)
767
+        Me.收入_cb.Name = "收入_cb"
768
+        Me.收入_cb.Size = New System.Drawing.Size(50, 20)
769
+        Me.收入_cb.TabIndex = 1375
770
+        Me.收入_cb.Text = "收入"
771
+        Me.收入_cb.UseVisualStyleBackColor = True
772
+        '
773
+        '指定_ndp
774
+        '
775
+        Me.指定_ndp.Location = New System.Drawing.Point(53, 4)
776
+        Me.指定_ndp.Maximum = New Decimal(New Integer() {100000000, 0, 0, 0})
777
+        Me.指定_ndp.Minimum = New Decimal(New Integer() {100000000, 0, 0, -2147483648})
778
+        Me.指定_ndp.Name = "指定_ndp"
779
+        Me.指定_ndp.Size = New System.Drawing.Size(120, 23)
780
+        Me.指定_ndp.TabIndex = 1374
781
+        Me.指定_ndp.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
782
+        Me.指定_ndp.ThousandsSeparator = True
783
+        '
784
+        '窗口說明1_lb
785
+        '
786
+        Me.窗口說明1_lb.AutoSize = True
787
+        Me.窗口說明1_lb.Location = New System.Drawing.Point(3, 6)
788
+        Me.窗口說明1_lb.Name = "窗口說明1_lb"
789
+        Me.窗口說明1_lb.Size = New System.Drawing.Size(43, 16)
790
+        Me.窗口說明1_lb.TabIndex = 1373
791
+        Me.窗口說明1_lb.Text = "零用金"
792
+        '
793
+        '確定_bt
794
+        '
795
+        Me.確定_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
796
+        Me.確定_bt.ForeColor = System.Drawing.Color.Blue
797
+        Me.確定_bt.Location = New System.Drawing.Point(6, 51)
798
+        Me.確定_bt.Name = "確定_bt"
799
+        Me.確定_bt.Size = New System.Drawing.Size(175, 33)
800
+        Me.確定_bt.TabIndex = 1363
801
+        Me.確定_bt.Text = "確定"
802
+        Me.確定_bt.UseVisualStyleBackColor = True
803
+        '
804
+        '窗口表頭_lb
805
+        '
806
+        Me.窗口表頭_lb.AutoSize = True
807
+        Me.窗口表頭_lb.Location = New System.Drawing.Point(5, 7)
808
+        Me.窗口表頭_lb.Name = "窗口表頭_lb"
809
+        Me.窗口表頭_lb.Size = New System.Drawing.Size(55, 16)
810
+        Me.窗口表頭_lb.TabIndex = 1375
811
+        Me.窗口表頭_lb.Text = "編輯指定"
812
+        '
813
+        'Cancel_bt
814
+        '
815
+        Me.Cancel_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
816
+        Me.Cancel_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(128, Byte), Integer), CType(CType(128, Byte), Integer))
817
+        Me.Cancel_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
818
+        Me.Cancel_bt.ForeColor = System.Drawing.Color.Black
819
+        Me.Cancel_bt.Location = New System.Drawing.Point(167, 2)
820
+        Me.Cancel_bt.Name = "Cancel_bt"
821
+        Me.Cancel_bt.Size = New System.Drawing.Size(26, 26)
822
+        Me.Cancel_bt.TabIndex = 1374
823
+        Me.Cancel_bt.Text = "X"
824
+        Me.Cancel_bt.UseVisualStyleBackColor = False
825
+        '
826
+        '財務_收支單申請_GCM
827
+        '
828
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
829
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
830
+        Me.ClientSize = New System.Drawing.Size(1249, 611)
831
+        Me.ContextMenuStrip = Me.ContextMenuStrip1
832
+        Me.Controls.Add(Me.收支單_dgv)
833
+        Me.Controls.Add(Me.視窗1_pl)
834
+        Me.Controls.Add(Me.刪除選中的一筆資料_bt)
835
+        Me.Controls.Add(Me.收支單中新增一筆空白資料_bt)
836
+        Me.Controls.Add(Me.Label15)
837
+        Me.Controls.Add(Me.刪除選中的營運成本收支單_bt)
838
+        Me.Controls.Add(Me.開立營運成本收支單_bt)
839
+        Me.Controls.Add(Me.Label16)
840
+        Me.Controls.Add(Me.幣別_cb)
841
+        Me.Controls.Add(Me.關鍵字查詢會計科目_tb)
842
+        Me.Controls.Add(Me.科目2_號_cb)
843
+        Me.Controls.Add(Me.科目2_名_cb)
844
+        Me.Controls.Add(Me.科目1_號_cb)
845
+        Me.Controls.Add(Me.科目1_名_cb)
846
+        Me.Controls.Add(Me.複製歷史單據重新開立_bt)
847
+        Me.Controls.Add(Me.支票_tb)
848
+        Me.Controls.Add(Me.Label11)
849
+        Me.Controls.Add(Me.零用金_tb)
850
+        Me.Controls.Add(Me.Label10)
851
+        Me.Controls.Add(Me.合計_tb)
852
+        Me.Controls.Add(Me.支出_tb)
853
+        Me.Controls.Add(Me.Label5)
854
+        Me.Controls.Add(Me.補單_ch)
855
+        Me.Controls.Add(Me.Label4)
856
+        Me.Controls.Add(Me.日期_dtp)
857
+        Me.Controls.Add(Me.申請_bt)
858
+        Me.Controls.Add(Me.科目3_名_cb)
859
+        Me.Controls.Add(Me.收入_tb)
860
+        Me.Controls.Add(Me.Label8)
861
+        Me.Controls.Add(Me.Label62)
862
+        Me.Controls.Add(Me.項次_tb)
863
+        Me.Controls.Add(Me.Label28)
864
+        Me.Controls.Add(Me.Label27)
865
+        Me.Controls.Add(Me.Label3)
866
+        Me.Controls.Add(Me.申請人_tb)
867
+        Me.Controls.Add(Me.收支單號_tb)
868
+        Me.Controls.Add(Me.Label1)
869
+        Me.Controls.Add(Me.Label2)
870
+        Me.Controls.Add(Me.Label13)
871
+        Me.Controls.Add(Me.Label12)
872
+        Me.Controls.Add(Me.Label7)
873
+        Me.Controls.Add(Me.Label6)
874
+        Me.Controls.Add(Me.Label9)
875
+        Me.Controls.Add(Me.明細表_dgv)
876
+        Me.Controls.Add(Me.Label14)
877
+        Me.Controls.Add(Me.作廢的收支單_rb)
878
+        Me.Controls.Add(Me.已核准的收支單_rb)
879
+        Me.Controls.Add(Me.未核准的收支單_rb)
880
+        Me.Controls.Add(Me.Panel1)
881
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
882
+        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
883
+        Me.Name = "財務_收支單申請_GCM"
884
+        Me.Text = "財務_收支單申請_GCM"
885
+        CType(Me.明細表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
886
+        CType(Me.收支單_dgv, System.ComponentModel.ISupportInitialize).EndInit()
887
+        Me.ContextMenuStrip1.ResumeLayout(False)
888
+        Me.Panel1.ResumeLayout(False)
889
+        Me.Panel1.PerformLayout()
890
+        Me.視窗1_pl.ResumeLayout(False)
891
+        Me.視窗1_pl.PerformLayout()
892
+        Me.物料群組_Panel.ResumeLayout(False)
893
+        Me.物料群組_Panel.PerformLayout()
894
+        CType(Me.指定_ndp, System.ComponentModel.ISupportInitialize).EndInit()
895
+        Me.ResumeLayout(False)
896
+        Me.PerformLayout()
897
+
898
+    End Sub
899
+
900
+    Friend WithEvents 科目3_名_cb As ComboBox
901
+    Friend WithEvents 收入_tb As TextBox
902
+    Friend WithEvents Label8 As Label
903
+    Friend WithEvents Label62 As Label
904
+    Friend WithEvents 項次_tb As TextBox
905
+    Friend WithEvents Label28 As Label
906
+    Friend WithEvents Label27 As Label
907
+    Friend WithEvents 明細表_dgv As DataGridView
908
+    Friend WithEvents Label3 As Label
909
+    Friend WithEvents 申請人_tb As TextBox
910
+    Friend WithEvents 收支單號_tb As TextBox
911
+    Friend WithEvents Label1 As Label
912
+    Friend WithEvents 作廢的收支單_rb As RadioButton
913
+    Friend WithEvents 未核准的收支單_rb As RadioButton
914
+    Friend WithEvents 收支單_dgv As DataGridView
915
+    Friend WithEvents 申請_bt As Button
916
+    Friend WithEvents Label2 As Label
917
+    Friend WithEvents ContextMenuStrip1 As ContextMenuStrip
918
+    Friend WithEvents 重新讀取ToolStripMenuItem As ToolStripMenuItem
919
+    Friend WithEvents ToolStripSeparator6 As ToolStripSeparator
920
+    Friend WithEvents 開立零用金支付單ToolStripMenuItem As ToolStripMenuItem
921
+    Friend WithEvents 申請完成ToolStripMenuItem As ToolStripMenuItem
922
+    Friend WithEvents ToolStripSeparator1 As ToolStripSeparator
923
+    Friend WithEvents 新增一筆資料ToolStripMenuItem As ToolStripMenuItem
924
+    Friend WithEvents 刪除支付單中選中的資料ToolStripMenuItem As ToolStripMenuItem
925
+    Friend WithEvents ToolStripSeparator2 As ToolStripSeparator
926
+    Friend WithEvents 刪除選中的零用金支付單ToolStripMenuItem As ToolStripMenuItem
927
+    Friend WithEvents Timer1 As Timer
928
+    Friend WithEvents Label4 As Label
929
+    Friend WithEvents 日期_dtp As DateTimePicker
930
+    Friend WithEvents 補單_ch As CheckBox
931
+    Friend WithEvents 支出_tb As TextBox
932
+    Friend WithEvents Label5 As Label
933
+    Friend WithEvents 合計_tb As TextBox
934
+    Friend WithEvents Label9 As Label
935
+    Friend WithEvents 零用金_tb As TextBox
936
+    Friend WithEvents Label10 As Label
937
+    Friend WithEvents 支票_tb As TextBox
938
+    Friend WithEvents Label11 As Label
939
+    Friend WithEvents 已核准的收支單_rb As RadioButton
940
+    Friend WithEvents DateTimePicker2 As DateTimePicker
941
+    Friend WithEvents 複製單據開單ToolStripMenuItem As ToolStripMenuItem
942
+    Friend WithEvents 複製歷史單據重新開立_bt As Button
943
+    Friend WithEvents 科目2_號_cb As ComboBox
944
+    Friend WithEvents 科目2_名_cb As ComboBox
945
+    Friend WithEvents 科目1_號_cb As ComboBox
946
+    Friend WithEvents 科目1_名_cb As ComboBox
947
+    Friend WithEvents 關鍵字查詢會計科目_tb As TextBox
948
+    Friend WithEvents 科目3_號_cb As ComboBox
949
+    Friend WithEvents 幣別_cb As ComboBox
950
+    Friend WithEvents 人民幣匯率_tb As TextBox
951
+    Friend WithEvents 美金匯率_tb As TextBox
952
+    Friend WithEvents 印尼匯率_tb As TextBox
953
+    Friend WithEvents Label16 As Label
954
+    Friend WithEvents 刪除選中的營運成本收支單_bt As Button
955
+    Friend WithEvents 開立營運成本收支單_bt As Button
956
+    Friend WithEvents Label13 As Label
957
+    Friend WithEvents Label12 As Label
958
+    Friend WithEvents Label7 As Label
959
+    Friend WithEvents Label6 As Label
960
+    Friend WithEvents Label14 As Label
961
+    Friend WithEvents Label15 As Label
962
+    Friend WithEvents 刪除選中的一筆資料_bt As Button
963
+    Friend WithEvents 收支單中新增一筆空白資料_bt As Button
964
+    Friend WithEvents Panel1 As Panel
965
+    Friend WithEvents 視窗1_pl As Panel
966
+    Friend WithEvents 物料群組_Panel As Panel
967
+    Friend WithEvents 支出_cb As CheckBox
968
+    Friend WithEvents 收入_cb As CheckBox
969
+    Friend WithEvents 指定_ndp As NumericUpDown
970
+    Friend WithEvents 窗口說明1_lb As Label
971
+    Friend WithEvents 確定_bt As Button
972
+    Friend WithEvents 窗口表頭_lb As Label
973
+    Friend WithEvents Cancel_bt As Button
974
+End Class

工巧明智能管理系統/我的系統/財務系統管理/財務_收支單申請.resx → 工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單申請_GCM.resx ファイルの表示


+ 453
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_收支單申請_GCM.vb ファイルの表示

@@ -0,0 +1,453 @@
1
+Option Strict Off
2
+Public Class 財務_收支單申請_GCM
3
+    ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet
4
+    Private DTP As String
5
+    Private DTP1 As String
6
+    Private WWEE As String
7
+    Private 新流水1 As String
8
+    Private 新項次 As String
9
+    Private ReadOnly 新流水2 As String
10
+    Dim NUM1, NUM2 As Integer : Dim 匯率1 As Double
11
+    Private Sub Set_清單1()
12
+        收支單_dgv.DataSource = Nothing : ds1.Clear()
13
+        收支單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
14
+        收支單_dgv.ColumnHeadersHeight = 25
15
+        收支單_dgv.AllowUserToAddRows = False
16
+        ConnOpen()
17
+        If 未核准的收支單_rb.Checked = True And 作廢的收支單_rb.Checked = False And 已核准的收支單_rb.Checked = False Then
18
+            WWEE = "WHERE (審核人 LIKE '') "
19
+        ElseIf 未核准的收支單_rb.Checked = False And 作廢的收支單_rb.Checked = True And 已核准的收支單_rb.Checked = False Then
20
+            WWEE = "WHERE (審核人 LIKE '作廢%') "
21
+        ElseIf 未核准的收支單_rb.Checked = False And 作廢的收支單_rb.Checked = False And 已核准的收支單_rb.Checked = True Then
22
+            WWEE = "WHERE (審核人 NOT LIKE '作廢%') AND (審核人 NOT LIKE '') "
23
+        End If
24
+        SQL1 = "SELECT 支付單號 AS 收支單號, 申請日期, 審核日期, 申請人 FROM 財務控制表 " & WWEE & " ORDER BY 申請日期 DESC"
25
+        CmdSet_For_DGV() : da.Fill(ds1) : 收支單_dgv.DataSource = ds1.Tables(0) : conn.Close()
26
+
27
+        收支單_dgv.Columns(0).FillWeight = 160 : 收支單_dgv.Columns(1).FillWeight = 100 : 收支單_dgv.Columns(2).FillWeight = 100 : 收支單_dgv.Columns(3).Visible = False
28
+    End Sub
29
+    Private Sub Set_費用清單()
30
+        明細表_dgv.DataSource = Nothing : ds.Clear()
31
+        明細表_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
32
+        明細表_dgv.ColumnHeadersHeight = 25
33
+        明細表_dgv.AllowUserToAddRows = False
34
+        明細表_dgv.RowTemplate.Height = 35
35
+        ConnOpen()
36
+        SQL1 = "SELECT      財務流水帳.支付單號, 財務流水帳.項次, 會計科目.會計科目, 財務流水帳.明細 AS 用途, 
37
+                            財務流水帳.零用金, 財務流水帳.支票數 AS 支票, Cast(財務流水帳.收入 AS money) AS 收入, 
38
+                            Cast(財務流水帳.支出 AS money) AS 支出, 財務流水帳.備註 AS 票期, 財務流水帳.匯率, 
39
+                            財務流水帳.銀行 AS 幣別, 財務流水帳.類別, 財務流水帳.流水號, 財務流水帳.含稅
40
+                FROM        財務流水帳 INNER JOIN
41
+                            會計科目 ON 財務流水帳.類別 = 會計科目.編號
42
+                WHERE      (財務流水帳.支付單號 LIKE '" & 收支單號_tb.Text & "')
43
+                ORDER BY    財務流水帳.項次"
44
+        CmdSet_For_DGV() : da.Fill(ds) : 明細表_dgv.DataSource = ds.Tables(0) : conn.Close()
45
+
46
+        明細表_dgv.Columns(0).Visible = False : 明細表_dgv.Columns(1).FillWeight = 80 : 明細表_dgv.Columns(2).FillWeight = 250 : 明細表_dgv.Columns(3).FillWeight = 400
47
+        明細表_dgv.Columns(4).Visible = False : 明細表_dgv.Columns(5).FillWeight = 120 : 明細表_dgv.Columns(6).FillWeight = 165 : 明細表_dgv.Columns(7).FillWeight = 165
48
+        明細表_dgv.Columns(8).FillWeight = 150 : 明細表_dgv.Columns(9).FillWeight = 130 : 明細表_dgv.Columns(10).FillWeight = 140 : 明細表_dgv.Columns(11).Visible = False
49
+        明細表_dgv.Columns(12).Visible = False : 明細表_dgv.Columns(13).FillWeight = 80
50
+
51
+        明細表_dgv.Columns(1).ReadOnly = True : 明細表_dgv.Columns(2).ReadOnly = True : 明細表_dgv.Columns(9).ReadOnly = True : 明細表_dgv.Columns(10).ReadOnly = True
52
+
53
+        明細表_dgv.Columns(4).DefaultCellStyle.Format = "#,##0.00" : 明細表_dgv.Columns(5).DefaultCellStyle.Format = "#,##0.00" : 明細表_dgv.Columns(6).DefaultCellStyle.Format = "#,##0.00"
54
+        明細表_dgv.Columns(7).DefaultCellStyle.Format = "#,##0.00" : 明細表_dgv.Columns(8).DefaultCellStyle.Format = "#,##0.00"
55
+        明細表_dgv.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 明細表_dgv.Columns(4).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
56
+        明細表_dgv.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 明細表_dgv.Columns(5).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
57
+        明細表_dgv.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 明細表_dgv.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
58
+        明細表_dgv.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 明細表_dgv.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
59
+        明細表_dgv.Columns(9).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 明細表_dgv.Columns(9).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
60
+        明細表_dgv.Columns(10).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 明細表_dgv.Columns(10).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
61
+        明細表_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 明細表_dgv.Columns(1).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
62
+        明細表_dgv.EditMode = DataGridViewEditMode.EditOnEnter
63
+
64
+        收入_tb.Text = "0.00" : 支出_tb.Text = "0.00" : 合計_tb.Text = "0.00" : 零用金_tb.Text = "0" : 支票_tb.Text = "0.00"
65
+        For i As Integer = 0 To 明細表_dgv.Rows.Count - 1
66
+            收入_tb.Text = Val(收入_tb.Text) + Val(明細表_dgv.Rows(i).Cells("收入").Value) * 明細表_dgv.Rows(i).Cells("匯率").Value
67
+            支出_tb.Text = Val(支出_tb.Text) + Val(明細表_dgv.Rows(i).Cells("支出").Value) * 明細表_dgv.Rows(i).Cells("匯率").Value
68
+            零用金_tb.Text = Val(零用金_tb.Text) + 明細表_dgv.Rows(i).Cells("零用金").Value * 明細表_dgv.Rows(i).Cells("匯率").Value
69
+            支票_tb.Text = Val(支票_tb.Text) + 明細表_dgv.Rows(i).Cells("支票").Value * 明細表_dgv.Rows(i).Cells("匯率").Value
70
+        Next i
71
+        合計_tb.Text = Val(零用金_tb.Text) + Val(收入_tb.Text) - Val(支出_tb.Text)
72
+        If Val(合計_tb.Text) > 0 Then : 合計_tb.ForeColor = Color.Blue : Else : 合計_tb.ForeColor = Color.Red : End If
73
+        收入_tb.Text = Format(Val(收入_tb.Text), "#,##0.00") : 支出_tb.Text = Format(Val(支出_tb.Text), "#,##0.00") : 合計_tb.Text = Format(Val(合計_tb.Text), "#,##0.00")
74
+        零用金_tb.Text = Format(Val(零用金_tb.Text), "#,##0.00") : 支票_tb.Text = Format(Val(支票_tb.Text), "#,##0.00")
75
+    End Sub
76
+    Private Sub ComboBox1下拉表單資料載入()
77
+        conn.Close()
78
+        ConnOpen()
79
+        SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 WHERE (LEFT(編號, 7) LIKE N'" & 科目2_號_cb.Text & "') AND (停用 = 0) AND (統制科目 = 0) AND (顯示 = 1) ORDER BY 編號"
80
+        CmdSet_For_dr() : 科目3_名_cb.Items.Clear() : 科目3_號_cb.Items.Clear()
81
+        While (dr.Read()) : 科目3_名_cb.Items.Add(dr("會計科目")) : 科目3_號_cb.Items.Add(dr("編號")) : End While : conn.Close()
82
+        If 科目3_名_cb.Items.Count <> 0 Then : 科目3_名_cb.SelectedIndex = 0 : End If
83
+    End Sub
84
+    Private Sub ComboBox2下拉表單資料載入()
85
+        conn.Close()
86
+        ConnOpen()
87
+        SQL1 = "SELECT 第一階, LEFT(編號, 4) AS 編號 FROM 會計科目  WHERE (停用 = 0) AND (顯示 = 1) GROUP BY 第一階, LEFT(編號, 4) ORDER BY 編號"
88
+        CmdSet_For_dr() : 科目1_名_cb.Items.Clear() : 科目1_號_cb.Items.Clear() : 科目1_名_cb.Text = "" : 科目1_號_cb.Text = ""
89
+        While (dr.Read()) : 科目1_名_cb.Items.Add(dr("第一階")) : 科目1_號_cb.Items.Add(dr("編號")) : End While : conn.Close()
90
+    End Sub
91
+    Private Sub ComboBox3下拉表單資料載入()
92
+        conn.Close()
93
+        ConnOpen()
94
+        SQL1 = "SELECT LEFT(編號, 7) AS 編號, 第二階, 層級 FROM  會計科目 WHERE (LEFT(編號, 4) LIKE N'" & 科目1_號_cb.Text & "') AND (層級 NOT LIKE '3') AND (停用 = 0) AND (顯示 = 1)
95
+                GROUP BY   LEFT(編號, 7), 第二階, 層級 ORDER BY   編號"
96
+        CmdSet_For_dr() : 科目2_名_cb.Items.Clear() : 科目2_號_cb.Items.Clear() : 科目2_名_cb.Text = "" : 科目2_號_cb.Text = ""
97
+        While (dr.Read()) : 科目2_名_cb.Items.Add(dr("第二階")) : 科目2_號_cb.Items.Add(dr("編號")) : End While : conn.Close()
98
+    End Sub
99
+    Private Sub 匯率()
100
+        ConnOpen()
101
+        SQL1 = "SELECT 中心匯率, 美金匯率, 印尼匯率 FROM 歷史匯率表 
102
+                WHERE (年 LIKE '" & Strings.Left(Format(日期_dtp.Value, "yyyyMMdd"), 4) & "%') AND (月 LIKE '" & Strings.Mid(Format(日期_dtp.Value, "yyyyMMdd"), 5, 2) & "%')"
103
+        cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
104
+        If dr.Read() Then
105
+            人民幣匯率_tb.Text = dr("中心匯率").ToString : 美金匯率_tb.Text = dr("美金匯率").ToString : 印尼匯率_tb.Text = dr("印尼匯率").ToString : conn.Close() : dr.Close()
106
+        Else
107
+            conn.Close() : dr.Close() : 匯率修改.Close() : 匯率修改.Show() : 匯率修改.BringToFront()
108
+        End If
109
+    End Sub
110
+    Private Sub 營運成本支付申請_Load(sender As Object, e As EventArgs) Handles MyBase.Load
111
+        Me.MdiParent = GCM_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
112
+        未核准的收支單_rb.Checked = True : DateTimePicker2.Visible = False : 複製單據開單ToolStripMenuItem.Enabled = False : 科目3_號_cb.Visible = False
113
+        收支單_dgv.Visible = True : 視窗1_pl.Visible = False : Set_清單1() : ComboBox2下拉表單資料載入()
114
+        匯率()
115
+    End Sub
116
+    Private Sub 明細表_dgv_CellContentCl(sender As Object, e As DataGridViewCellEventArgs) Handles 明細表_dgv.CellEndEdit
117
+        收入_tb.Text = "0" : 支出_tb.Text = "0" : 合計_tb.Text = "0" : 零用金_tb.Text = "0" : 支票_tb.Text = "0"
118
+        For i As Integer = 0 To 明細表_dgv.Rows.Count - 1
119
+            收入_tb.Text = Val(收入_tb.Text) + 明細表_dgv.Rows(i).Cells("收入").Value * 明細表_dgv.Rows(i).Cells("匯率").Value
120
+            支出_tb.Text = Val(支出_tb.Text) + 明細表_dgv.Rows(i).Cells("支出").Value * 明細表_dgv.Rows(i).Cells("匯率").Value
121
+            零用金_tb.Text = Val(零用金_tb.Text) + 明細表_dgv.Rows(i).Cells("零用金").Value * 明細表_dgv.Rows(i).Cells("匯率").Value
122
+            支票_tb.Text = Val(支票_tb.Text) + 明細表_dgv.Rows(i).Cells("支票").Value * 明細表_dgv.Rows(i).Cells("匯率").Value
123
+        Next i
124
+        合計_tb.Text = Val(零用金_tb.Text) + Val(收入_tb.Text) - Val(支出_tb.Text)
125
+        If Val(合計_tb.Text) > 0 Then : 合計_tb.ForeColor = Color.Blue : Else : 合計_tb.ForeColor = Color.Red : End If
126
+        收入_tb.Text = Format(Val(收入_tb.Text), "#,##0") : 支出_tb.Text = Format(Val(支出_tb.Text), "#,##0") : 合計_tb.Text = Format(Val(合計_tb.Text), "#,##0")
127
+        零用金_tb.Text = Format(Val(零用金_tb.Text), "#,##0") : 支票_tb.Text = Format(Val(支票_tb.Text), "#,##0")
128
+        Dim EU As String
129
+        EU = 明細表_dgv("票期", e.RowIndex).Value.ToString
130
+        If EU = "" Then
131
+        Else
132
+            DateTimePicker2.Text = EU
133
+            明細表_dgv.Rows(e.RowIndex).Cells("票期").Value = Format(DateTimePicker2.Value, "yyyy/MM/dd")
134
+        End If
135
+    End Sub
136
+    Private Sub 營運收支單_dgv_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles 收支單_dgv.CellClick
137
+        If e.RowIndex = -1 Then : Else
138
+            收支單號_tb.Text = 收支單_dgv(0, e.RowIndex).Value.ToString : 日期_dtp.Value = 收支單_dgv(1, e.RowIndex).Value.ToString : Set_費用清單()
139
+            申請人_tb.Text = 收支單_dgv(3, e.RowIndex).Value.ToString
140
+        End If
141
+    End Sub
142
+    Private Sub 明細表_dgv_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles 明細表_dgv.CellClick
143
+        If e.RowIndex = -1 Then : Else
144
+            If 明細表_dgv.SelectedCells.Count = 1 Then
145
+                If 明細表_dgv.SelectedCells(0).ColumnIndex = 4 Then
146
+                    窗口表頭_lb.Text = "零用金-編輯指定" : 窗口說明1_lb.Text = "零用金" : NUM2 = 明細表_dgv.SelectedCells(0).RowIndex
147
+                    If 視窗1_pl.Visible = False Then : 視窗1_pl.Visible = True : 視窗1_pl.BringToFront() : Else : 視窗1_pl.Visible = False : End If
148
+                ElseIf 明細表_dgv.SelectedCells(0).ColumnIndex = 5 Then
149
+                    窗口表頭_lb.Text = "支票-編輯指定" : 窗口說明1_lb.Text = "支票" : NUM2 = 明細表_dgv.SelectedCells(0).RowIndex
150
+                    If 視窗1_pl.Visible = False Then : 視窗1_pl.Visible = True : 視窗1_pl.BringToFront() : Else : 視窗1_pl.Visible = False : End If
151
+                End If
152
+            End If
153
+            項次_tb.Text = 明細表_dgv(1, e.RowIndex).Value.ToString : 幣別_cb.Text = 明細表_dgv("幣別", e.RowIndex).Value.ToString
154
+            科目1_號_cb.Text = Strings.Left(明細表_dgv("類別", e.RowIndex).Value.ToString, 4) : 科目2_號_cb.Text = Strings.Left(明細表_dgv("類別", e.RowIndex).Value.ToString, 7)
155
+            科目3_號_cb.Text = 明細表_dgv("類別", e.RowIndex).Value.ToString
156
+        End If
157
+    End Sub
158
+    Private Sub ComboBox5_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 科目1_名_cb.TextChanged
159
+        科目1_號_cb.SelectedIndex = 科目1_名_cb.SelectedIndex : 關鍵字查詢會計科目_tb.Text = "" : ComboBox3下拉表單資料載入() : ComboBox1下拉表單資料載入()
160
+    End Sub
161
+    Private Sub ComboBox2_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 科目1_號_cb.TextChanged
162
+        科目1_名_cb.SelectedIndex = 科目1_號_cb.SelectedIndex : ComboBox3下拉表單資料載入() : ComboBox1下拉表單資料載入()
163
+    End Sub
164
+    Private Sub ComboBox3_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 科目2_名_cb.TextChanged
165
+        科目2_號_cb.SelectedIndex = 科目2_名_cb.SelectedIndex : ComboBox1下拉表單資料載入()
166
+    End Sub
167
+    Private Sub ComboBox4_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 科目2_號_cb.TextChanged
168
+        科目2_名_cb.SelectedIndex = 科目2_號_cb.SelectedIndex : ComboBox1下拉表單資料載入()
169
+    End Sub
170
+    Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 科目3_名_cb.SelectedIndexChanged
171
+        科目3_號_cb.SelectedIndex = 科目3_名_cb.SelectedIndex
172
+    End Sub
173
+    Private Sub ComboBox6_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 科目3_號_cb.SelectedIndexChanged
174
+        科目3_名_cb.SelectedIndex = 科目3_號_cb.SelectedIndex
175
+    End Sub
176
+    Private Sub 關鍵字查詢會計科目_tb_TextChanged(sender As Object, e As EventArgs) Handles 關鍵字查詢會計科目_tb.TextChanged
177
+        conn.Close()
178
+        ConnOpen()
179
+        SQL1 = "SELECT 會計科目, 編號 FROM 會計科目 WHERE (會計科目 LIKE N'%" & 關鍵字查詢會計科目_tb.Text & "%') AND (停用 = 0) AND (統制科目 = 0) ORDER BY 編號"
180
+        CmdSet_For_dr() : 科目3_名_cb.Items.Clear() : 科目3_號_cb.Items.Clear()
181
+        While (dr.Read()) : 科目3_名_cb.Items.Add(dr("會計科目")) : 科目3_號_cb.Items.Add(dr("編號")) : End While : conn.Close()
182
+        If 科目3_名_cb.Items.Count <> 0 Then : 科目3_名_cb.SelectedIndex = 0 : End If
183
+    End Sub
184
+    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
185
+        If Label62.Visible = True Then : Label62.Visible = False : Else : Label62.Visible = True : End If
186
+    End Sub
187
+    Private Sub Set_切換格式()
188
+        明細表_dgv.DataSource = Nothing : ds.Clear() : 收支單號_tb.Text = "" : 申請人_tb.Text = "" : 項次_tb.Text = "" : 收入_tb.Text = "" : 支出_tb.Text = "" : 合計_tb.Text = ""
189
+        零用金_tb.Text = "" : 支票_tb.Text = "" : ComboBox1下拉表單資料載入() : Set_清單1()
190
+    End Sub
191
+    Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles 未核准的收支單_rb.Click
192
+        未核准的收支單_rb.Checked = True : 作廢的收支單_rb.Checked = False : 已核准的收支單_rb.Checked = False
193
+        申請完成ToolStripMenuItem.Enabled = True : 複製單據開單ToolStripMenuItem.Enabled = False
194
+        開立零用金支付單ToolStripMenuItem.Enabled = True : 申請_bt.Enabled = True : 新增一筆資料ToolStripMenuItem.Enabled = True
195
+        刪除支付單中選中的資料ToolStripMenuItem.Enabled = True : 刪除選中的零用金支付單ToolStripMenuItem.Enabled = True : Set_切換格式()
196
+    End Sub
197
+    Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles 作廢的收支單_rb.Click
198
+        未核准的收支單_rb.Checked = False : 作廢的收支單_rb.Checked = True : 已核准的收支單_rb.Checked = False
199
+        申請完成ToolStripMenuItem.Enabled = False : 複製單據開單ToolStripMenuItem.Enabled = False
200
+        開立零用金支付單ToolStripMenuItem.Enabled = False : 申請_bt.Enabled = False : 新增一筆資料ToolStripMenuItem.Enabled = False
201
+        刪除支付單中選中的資料ToolStripMenuItem.Enabled = False : 刪除選中的零用金支付單ToolStripMenuItem.Enabled = False : Set_切換格式()
202
+    End Sub
203
+    Private Sub RadioButton3_CheckedChanged(sender As Object, e As EventArgs) Handles 已核准的收支單_rb.Click
204
+        If CC(28) = False Then
205
+            未核准的收支單_rb.Checked = False : 作廢的收支單_rb.Checked = False : 已核准的收支單_rb.Checked = True
206
+            申請完成ToolStripMenuItem.Enabled = False : 複製單據開單ToolStripMenuItem.Enabled = True
207
+            開立零用金支付單ToolStripMenuItem.Enabled = False : 申請_bt.Enabled = False : 新增一筆資料ToolStripMenuItem.Enabled = False
208
+            刪除支付單中選中的資料ToolStripMenuItem.Enabled = False : 刪除選中的零用金支付單ToolStripMenuItem.Enabled = False : Set_切換格式()
209
+        Else
210
+            未核准的收支單_rb.Checked = False : 作廢的收支單_rb.Checked = False : 已核准的收支單_rb.Checked = True
211
+            申請完成ToolStripMenuItem.Enabled = True : 複製單據開單ToolStripMenuItem.Enabled = True
212
+            開立零用金支付單ToolStripMenuItem.Enabled = True : 申請_bt.Enabled = True : 新增一筆資料ToolStripMenuItem.Enabled = True
213
+            刪除支付單中選中的資料ToolStripMenuItem.Enabled = True : 刪除選中的零用金支付單ToolStripMenuItem.Enabled = True : Set_切換格式()
214
+        End If
215
+    End Sub
216
+    Private Sub 存檔()
217
+        For i As Integer = 0 To 明細表_dgv.Rows.Count - 1
218
+            ConnOpen()
219
+            SQL1 = "UPDATE 財務流水帳 SET  明細 = N'" & 明細表_dgv.Rows(i).Cells("用途").Value & "', 支出 = N'" & 明細表_dgv.Rows(i).Cells("支出").Value &
220
+                   "', 備註 = N'" & 明細表_dgv.Rows(i).Cells("票期").Value & "' , 類別 = N'" & 明細表_dgv.Rows(i).Cells("類別").Value &
221
+                   "', 收入 = N'" & 明細表_dgv.Rows(i).Cells("收入").Value & "', 零用金 = N'" & 明細表_dgv.Rows(i).Cells("零用金").Value &
222
+                   "', 支票數 = N'" & 明細表_dgv.Rows(i).Cells("支票").Value & "', 匯率 = N'" & 明細表_dgv.Rows(i).Cells("匯率").Value &
223
+                   "', 含稅 = N'" & 明細表_dgv.Rows(i).Cells("含稅").Value & "'
224
+                   WHERE (支付單號 LIKE '" & 收支單號_tb.Text & "' AND 項次 LIKE '" & 明細表_dgv.Rows(i).Cells("項次").Value & "')"
225
+            cmd.CommandText = SQL1 : cmd.ExecuteNonQuery() : conn.Close()
226
+        Next
227
+    End Sub
228
+    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles 申請_bt.Click
229
+        Timer1.Enabled = False : Label62.Visible = False
230
+        開立零用金支付單ToolStripMenuItem.Enabled = True : 未核准的收支單_rb.Enabled = True : 作廢的收支單_rb.Enabled = True
231
+        收支單_dgv.Enabled = True : 已核准的收支單_rb.Enabled = True : 存檔() : Set_清單1() : MsgBox("申請完成,請通知主管審核。")
232
+    End Sub
233
+    Private Sub Set_日期格式轉換()
234
+        If 補單_ch.Checked = False Then
235
+            DTP = Format(Today(), "yyyy/MM/dd") : DTP1 = Format(Today(), "yyyyMMdd")
236
+        Else
237
+            DTP1 = Format(日期_dtp.Value, "yyyyMMdd") : DTP = Format(日期_dtp.Value, "yyyy/MM/dd")
238
+        End If
239
+    End Sub
240
+    Private Sub Set_流水號()
241
+        conn.Close() : dr.Close()
242
+        Dim NUM1 As Integer
243
+        For NUM1 = 0 To 99
244
+            Dim d As String : Dim f As String : Dim g As Integer = 1
245
+            If Month(Now) < 10 Then : d = "0" & CStr(Month(Now))
246
+            Else : d = CStr(Month(Now))
247
+            End If
248
+            If Now.Day() < 10 Then : f = "0" & CStr(Now.Day())
249
+            Else : f = CStr(Now.Day())
250
+            End If
251
+            If NUM1 < 10 Then : 新流水1 = "B" & Microsoft.VisualBasic.Right(CStr(Year(Now)), 2) & d & f & "0" & NUM1
252
+            Else : 新流水1 = "B" & Microsoft.VisualBasic.Right(CStr(Year(Now)), 2) & d & f & NUM1
253
+            End If
254
+
255
+            ConnOpen()
256
+            SQL1 = "SELECT 流水號 FROM 財務流水帳 WHERE (流水號 ='" & 新流水1 & "')"
257
+            cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
258
+            If dr.Read() Then : conn.Close() : Else : conn.Close() : NUM1 = 99 : End If
259
+        Next
260
+    End Sub
261
+    Private Sub 開立零用金支付單()
262
+        Dim NUM1 As Integer : Timer1.Enabled = True
263
+        Set_日期格式轉換()
264
+        For i As Integer = 1 To 999
265
+            NUM1 = 0 + i
266
+            If NUM1 < 10 Then : 收支單號_tb.Text = "OE-" & DTP1 & "-00" & NUM1
267
+            ElseIf NUM1 > 9 And NUM1 < 100 Then : 收支單號_tb.Text = "OE-" & DTP1 & "-0" & NUM1
268
+            ElseIf NUM1 > 99 Then : 收支單號_tb.Text = "OE-" & DTP1 & "-" & NUM1
269
+            End If
270
+            conn.Close()
271
+            ConnOpen()
272
+            SQL1 = "SELECT TOP (1)  支付單號 FROM 財務控制表 WHERE ( 支付單號 LIKE '" & 收支單號_tb.Text & "')"
273
+            cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
274
+            If dr.Read() Then : Else : i = 999 : conn.Close() : End If : conn.Close()
275
+        Next
276
+        ConnOpen()
277
+        SQL1 = "INSERT INTO 財務控制表 (支付單號, 申請人, 申請日期, 審核人, 審核日期, 會計, 作帳日期, 出納, 出納日期, 備註, 公司編號) " &
278
+               "VALUES (N'" & 收支單號_tb.Text & "', N'" & gUserName & "', N'" & DTP & "', N'', N'', N'', N'', N'', N'', N'', N'工巧明')"
279
+        CmdSet_For_dr()
280
+        申請人_tb.Text = gUserName
281
+    End Sub
282
+    Private Sub 複製歷史單據重新開立_bt_Click(sender As Object, e As EventArgs) Handles 複製歷史單據重新開立_bt.Click
283
+        開立零用金支付單() : 開立零用金支付單ToolStripMenuItem.Enabled = False : 未核准的收支單_rb.Enabled = False : 作廢的收支單_rb.Enabled = False
284
+        已核准的收支單_rb.Enabled = False
285
+        收支單_dgv.Enabled = False : 未核准的收支單_rb.Checked = True : 作廢的收支單_rb.Checked = False : 已核准的收支單_rb.Checked = False
286
+        申請完成ToolStripMenuItem.Enabled = True
287
+        複製單據開單ToolStripMenuItem.Enabled = False : 開立零用金支付單ToolStripMenuItem.Enabled = True : 申請_bt.Enabled = True : 新增一筆資料ToolStripMenuItem.Enabled = True
288
+        刪除支付單中選中的資料ToolStripMenuItem.Enabled = True : 刪除選中的零用金支付單ToolStripMenuItem.Enabled = True
289
+        Set_清單1()
290
+        For i As Integer = 0 To 明細表_dgv.Rows.Count - 1
291
+            Set_流水號()
292
+            ConnOpen()
293
+            SQL1 = "INSERT INTO 財務流水帳 (流水號, 銀行, 日期, 類別, 收入, 支出, 明細, 人員, 支付單號, 項次, 會計, 出納, 現金, 備用金, 公帳, 支票, 
294
+                            出納日期, 零用金, 支票數, 匯率, 備註) 
295
+                    VALUES (N'" & 新流水1 & "', N'" & 明細表_dgv.Rows(i).Cells("幣別").Value & "'', N'" & DTP & "', N'" & 明細表_dgv.Rows(i).Cells("類別").Value &
296
+                        "', N'" & 明細表_dgv.Rows(i).Cells("收入").Value & "', N'" & 明細表_dgv.Rows(i).Cells("支出").Value & "', N'" & 明細表_dgv.Rows(i).Cells("用途").Value &
297
+                        "', N'', N'" & gUserName & "', N'" & 收支單號_tb.Text & "', N'" & 明細表_dgv.Rows(i).Cells("項次").Value & "', N'1', N'0', N'0', N'0', N'0', N'0', N'" & DTP &
298
+                        "', N'" & 明細表_dgv.Rows(i).Cells("零用金").Value & "', N'" & 明細表_dgv.Rows(i).Cells("支票").Value & "', N'" & 明細表_dgv.Rows(i).Cells("匯率").Value &
299
+                        "', N'" & 明細表_dgv.Rows(i).Cells("票期").Value & "')"
300
+            CmdSet_For_dr()
301
+        Next
302
+        Set_費用清單() : MsgBox("複製單據開立完成。")
303
+    End Sub
304
+    Private Sub DateTimePicker1_ValueChanged(sender As Object, e As EventArgs) Handles 日期_dtp.ValueChanged
305
+        匯率()
306
+    End Sub
307
+    Private Sub 開立營運成本收支單_bt_Click(sender As Object, e As EventArgs) Handles 開立營運成本收支單_bt.Click
308
+        開立零用金支付單() : 開立零用金支付單ToolStripMenuItem.Enabled = False
309
+        未核准的收支單_rb.Enabled = False : 作廢的收支單_rb.Enabled = False
310
+        已核准的收支單_rb.Enabled = False : 收支單_dgv.Enabled = False
311
+        明細表_dgv.DataSource = Nothing : ds.Clear() : conn.Close()
312
+        Set_清單1()
313
+    End Sub
314
+    Private Sub 刪除選中的營運成本收支單_bt_Click(sender As Object, e As EventArgs) Handles 刪除選中的營運成本收支單_bt.Click
315
+        Dim aa As MsgBoxResult
316
+        aa = MsgBox("確定要刪除該筆資料?", MsgBoxStyle.OkCancel)
317
+        If aa = MsgBoxResult.Ok Then
318
+            ConnOpen()
319
+            SQL1 = "DELETE FROM 財務控制表 WHERE (支付單號 LIKE '" & 收支單號_tb.Text & "')"
320
+            cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : conn.Close()
321
+            ConnOpen()
322
+            SQL1 = "DELETE FROM 財務流水帳 WHERE (支付單號 LIKE '" & 收支單號_tb.Text & "')"
323
+            cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : conn.Close()
324
+            收支單號_tb.Text = "" : 申請人_tb.Text = "" : 項次_tb.Text = ""
325
+            明細表_dgv.DataSource = Nothing : ds.Clear()
326
+            Set_清單1()
327
+        End If
328
+    End Sub
329
+    Private Sub 收支單中新增一筆空白資料_bt_Click(sender As Object, e As EventArgs) Handles 收支單中新增一筆空白資料_bt.Click
330
+        If 科目3_號_cb.Text = "" Or 幣別_cb.Text = "" Then
331
+            MsgBox("沒有選擇會計科目或幣別。")
332
+        Else
333
+            If 收支單號_tb.Text = "" Then
334
+                開立零用金支付單()
335
+            End If
336
+            Set_日期格式轉換() : Set_流水號()
337
+            存檔()
338
+            ConnOpen()
339
+            SQL1 = "SELECT TOP(1) 項次 FROM 財務流水帳 WHERE 支付單號 LIKE '" & 收支單號_tb.Text & "' ORDER BY 項次 DESC"
340
+            cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
341
+            If dr.Read() Then : 新項次 = dr("項次") : Else : 新項次 = "00" : End If : conn.Close()
342
+            NUM1 = Double.Parse(新項次) + 1
343
+            If NUM1 < 10 Then : 新項次 = "0" & NUM1
344
+            ElseIf NUM1 > 9 And NUM1 < 100 Then : 新項次 = NUM1
345
+            End If
346
+            ConnOpen()
347
+
348
+            If 幣別_cb.Text = "台幣現金" Then : 匯率1 = 1
349
+            ElseIf 幣別_cb.Text = "人民幣現金" Then : 匯率1 = 人民幣匯率_tb.Text
350
+            ElseIf 幣別_cb.Text = "美金" Then : 匯率1 = 美金匯率_tb.Text
351
+            ElseIf 幣別_cb.Text = "印尼盾" Then : 匯率1 = 印尼匯率_tb.Text
352
+            End If
353
+
354
+            SQL1 = "INSERT INTO 財務流水帳 (流水號, 銀行, 日期, 類別, 收入, 支出, 明細, 人員, 支付單號, 項次, 會計, 出納, 現金, 備用金, 公帳, 支票, 
355
+                            出納日期, 零用金, 支票數, 匯率, 備註) " &
356
+                   "VALUES (N'" & 新流水1 & "', N'" & 幣別_cb.Text & "', N'" & DTP & "', N'" & 科目3_號_cb.Text & "', N'0', N'0', N'', N'" & gUserName & "', N'" & 收支單號_tb.Text & "', N'" & 新項次 &
357
+                        "', N'0', N'0', N'0', N'0', N'0', N'0', N'" & DTP & "', N'0', N'0', N'" & 匯率1 & "', N'')"
358
+            CmdSet_For_dr()
359
+            Set_費用清單()
360
+        End If
361
+    End Sub
362
+    Private Sub 刪除選中的一筆資料_bt_Click(sender As Object, e As EventArgs) Handles 刪除選中的一筆資料_bt.Click
363
+        If 項次_tb.Text = "" Then
364
+            MsgBox("未選擇需要刪除的資料。")
365
+        Else
366
+            存檔()
367
+            ConnOpen()
368
+            SQL1 = "DELETE FROM 財務流水帳 WHERE (支付單號 LIKE '" & 收支單號_tb.Text & "' AND 項次 LIKE '" & 項次_tb.Text & "')"
369
+            cmd.CommandText = SQL1 : cmd.Connection = conn : cmd.ExecuteNonQuery() : conn.Close()
370
+            Set_費用清單()
371
+            Dim NUM1 As Integer = 0
372
+            For i As Integer = 0 To 明細表_dgv.Rows.Count - 1
373
+                NUM1 += 1 : If NUM1 < 10 Then : 新項次 = "0" & NUM1 : ElseIf NUM1 > 9 And NUM1 < 100 Then : 新項次 = NUM1 : End If
374
+                ConnOpen()
375
+                SQL1 = "UPDATE 財務流水帳 SET 項次 = N'" & 新項次 & "' WHERE (支付單號 LIKE '" & 收支單號_tb.Text & "' AND 項次 LIKE '" & 明細表_dgv.Rows(i).Cells("項次").Value & "')"
376
+                cmd.CommandText = SQL1 : cmd.ExecuteNonQuery()
377
+                conn.Close()
378
+            Next
379
+            Set_費用清單()
380
+        End If
381
+    End Sub
382
+    '----------------------滑鼠右鍵--------------------------------------------------------------------------------------------------------------------------------------------------------------------
383
+    Private Sub 重新讀取ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 重新讀取ToolStripMenuItem.Click
384
+        Set_清單1()
385
+    End Sub
386
+    Private Sub 開立零用金支付單ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 開立零用金支付單ToolStripMenuItem.Click
387
+        開立營運成本收支單_bt.PerformClick()
388
+    End Sub
389
+    Private Sub 刪除選中的零用金支付單ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 刪除選中的零用金支付單ToolStripMenuItem.Click
390
+        刪除選中的營運成本收支單_bt.PerformClick()
391
+    End Sub
392
+    Private Sub 刪除支付單中選中的資料ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 刪除支付單中選中的資料ToolStripMenuItem.Click
393
+        刪除選中的一筆資料_bt.PerformClick()
394
+    End Sub
395
+    Private Sub 新增一筆資料ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 新增一筆資料ToolStripMenuItem.Click
396
+        收支單中新增一筆空白資料_bt.PerformClick()
397
+    End Sub
398
+    Private Sub 申請完成ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 申請完成ToolStripMenuItem.Click
399
+        申請_bt.PerformClick()
400
+    End Sub
401
+    Private Sub 複製單據開單ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 複製單據開單ToolStripMenuItem.Click
402
+        複製歷史單據重新開立_bt.PerformClick()
403
+    End Sub
404
+    '----------------------自創視窗滑鼠拖曳功能---------------------------------------------------------------------------------------------------------
405
+    Dim OldX, OldY As Long : Dim drag As Boolean
406
+    Private Sub 收入_cb_CheckedChanged(sender As Object, e As EventArgs) Handles 收入_cb.Click
407
+        If 收入_cb.Checked = True Then
408
+            收入_cb.Checked = True : 支出_cb.Checked = False
409
+        Else
410
+            收入_cb.Checked = False : 支出_cb.Checked = True
411
+        End If
412
+    End Sub
413
+    Private Sub 支出_cb_CheckedChanged(sender As Object, e As EventArgs) Handles 支出_cb.Click
414
+        If 支出_cb.Checked = True Then
415
+            收入_cb.Checked = False : 支出_cb.Checked = True
416
+        Else
417
+            收入_cb.Checked = True : 支出_cb.Checked = False
418
+        End If
419
+    End Sub
420
+    Private Sub 確定_bt_Click(sender As Object, e As EventArgs) Handles 確定_bt.Click
421
+        If 收入_cb.Checked = False And 支出_cb.Checked = False Then
422
+            MsgBox("請先選擇這筆資料是收入還是支出!!!")
423
+        Else
424
+            If 收入_cb.Checked = True Then
425
+                明細表_dgv.Rows(NUM2).Cells("收入").Value = 指定_ndp.Value
426
+                If 窗口說明1_lb.Text = "支票" Then
427
+                    明細表_dgv.Rows(NUM2).Cells("支票").Value = 指定_ndp.Value
428
+                ElseIf 窗口說明1_lb.Text = "零用金" Then
429
+                    明細表_dgv.Rows(NUM2).Cells("零用金").Value = 指定_ndp.Value
430
+                End If
431
+            Else
432
+                明細表_dgv.Rows(NUM2).Cells("支出").Value = 指定_ndp.Value
433
+                If 窗口說明1_lb.Text = "支票" Then
434
+                    明細表_dgv.Rows(NUM2).Cells("支票").Value = 指定_ndp.Value
435
+                ElseIf 窗口說明1_lb.Text = "零用金" Then
436
+                    明細表_dgv.Rows(NUM2).Cells("零用金").Value = 指定_ndp.Value
437
+                End If
438
+            End If : 指定_ndp.Value = 0 : 收入_cb.Checked = False : 支出_cb.Checked = False : Cancel_bt.PerformClick()
439
+        End If
440
+    End Sub
441
+    Private Sub Cancel_bt_Click(sender As Object, e As EventArgs) Handles Cancel_bt.Click
442
+        If 視窗1_pl.Visible = False Then : 視窗1_pl.Visible = True : 視窗1_pl.BringToFront() : Else : 視窗1_pl.Visible = False : End If
443
+    End Sub
444
+    Private Sub 物料群組1_Panel_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 視窗1_pl.MouseDown
445
+        If e.Button = MouseButtons.Left Then : OldX = e.X : OldY = e.Y : drag = True : End If
446
+    End Sub
447
+    Private Sub 物料群組1_Panel_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 視窗1_pl.MouseMove
448
+        If drag Then : 視窗1_pl.Left = 視窗1_pl.Left + e.X - OldX : 視窗1_pl.Top = 視窗1_pl.Top + e.Y - OldY : End If
449
+    End Sub
450
+    Private Sub 物料群組1_Panel_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 視窗1_pl.MouseUp
451
+        drag = False
452
+    End Sub
453
+End Class

+ 2073
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_決算表_GCM.Designer.vb
ファイル差分が大きすぎるため省略します
ファイルの表示


工巧明智能管理系統/我的系統/Bom表管理/機構件-零件BOM表.resx → 工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_決算表_GCM.resx ファイルの表示


工巧明智能管理系統/我的系統/02-財務系統管理/GCM/財務_決算表_GCM.vb
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 628
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_對帳單_ICS.Designer.vb ファイルの表示

@@ -0,0 +1,628 @@
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
+Partial Class 財務_對帳單_ICS
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 DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Me.清單_dgv = New System.Windows.Forms.DataGridView()
28
+        Me.Label15 = New System.Windows.Forms.Label()
29
+        Me.Label16 = New System.Windows.Forms.Label()
30
+        Me.非稅_ch = New System.Windows.Forms.CheckBox()
31
+        Me.含稅_ch = New System.Windows.Forms.CheckBox()
32
+        Me.全部_ch = New System.Windows.Forms.CheckBox()
33
+        Me.ProgressBar1 = New System.Windows.Forms.ProgressBar()
34
+        Me.支票_總_tb = New System.Windows.Forms.TextBox()
35
+        Me.Label13 = New System.Windows.Forms.Label()
36
+        Me.支票_單_tb = New System.Windows.Forms.TextBox()
37
+        Me.Label14 = New System.Windows.Forms.Label()
38
+        Me.零用金_總_tb = New System.Windows.Forms.TextBox()
39
+        Me.Label1 = New System.Windows.Forms.Label()
40
+        Me.零用金_單_tb = New System.Windows.Forms.TextBox()
41
+        Me.Label3 = New System.Windows.Forms.Label()
42
+        Me.只顯示支票資料_ch = New System.Windows.Forms.CheckBox()
43
+        Me.隱藏作帳_ch = New System.Windows.Forms.CheckBox()
44
+        Me.隱藏申請_ch = New System.Windows.Forms.CheckBox()
45
+        Me.損益_總_tb = New System.Windows.Forms.TextBox()
46
+        Me.Label7 = New System.Windows.Forms.Label()
47
+        Me.支出_總_tb = New System.Windows.Forms.TextBox()
48
+        Me.Label8 = New System.Windows.Forms.Label()
49
+        Me.收入_總_tb = New System.Windows.Forms.TextBox()
50
+        Me.Label10 = New System.Windows.Forms.Label()
51
+        Me.損益_單_tb = New System.Windows.Forms.TextBox()
52
+        Me.Label6 = New System.Windows.Forms.Label()
53
+        Me.支出_單_tb = New System.Windows.Forms.TextBox()
54
+        Me.Label5 = New System.Windows.Forms.Label()
55
+        Me.Label4 = New System.Windows.Forms.Label()
56
+        Me.收支單號_tb = New System.Windows.Forms.TextBox()
57
+        Me.收入_單_tb = New System.Windows.Forms.TextBox()
58
+        Me.Label9 = New System.Windows.Forms.Label()
59
+        Me.月_ch = New System.Windows.Forms.ComboBox()
60
+        Me.年_cb = New System.Windows.Forms.ComboBox()
61
+        Me.Label2 = New System.Windows.Forms.Label()
62
+        Me.Panel1 = New System.Windows.Forms.Panel()
63
+        Me.已兌現支票_單_tb = New System.Windows.Forms.TextBox()
64
+        Me.Label12 = New System.Windows.Forms.Label()
65
+        Me.Label11 = New System.Windows.Forms.Label()
66
+        Me.TextBox10 = New System.Windows.Forms.TextBox()
67
+        Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
68
+        Me.重新整理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
69
+        Me.關鍵字查詢ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
70
+        Me.清除ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
71
+        Me.對帳記錄存檔ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
72
+        Me.ToolStripSeparator2 = New System.Windows.Forms.ToolStripSeparator()
73
+        Me.BBBToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
74
+        CType(Me.清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
75
+        Me.Panel1.SuspendLayout()
76
+        Me.ContextMenuStrip1.SuspendLayout()
77
+        Me.SuspendLayout()
78
+        '
79
+        '清單_dgv
80
+        '
81
+        Me.清單_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
82
+            Or System.Windows.Forms.AnchorStyles.Left) _
83
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
84
+        Me.清單_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
85
+        Me.清單_dgv.BackgroundColor = System.Drawing.Color.White
86
+        Me.清單_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
87
+        Me.清單_dgv.Location = New System.Drawing.Point(2, 53)
88
+        Me.清單_dgv.Name = "清單_dgv"
89
+        Me.清單_dgv.RowHeadersWidth = 5
90
+        DataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
91
+        Me.清單_dgv.RowsDefaultCellStyle = DataGridViewCellStyle3
92
+        Me.清單_dgv.RowTemplate.Height = 24
93
+        Me.清單_dgv.Size = New System.Drawing.Size(1245, 535)
94
+        Me.清單_dgv.TabIndex = 1196
95
+        '
96
+        'Label15
97
+        '
98
+        Me.Label15.AutoSize = True
99
+        Me.Label15.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
100
+        Me.Label15.Location = New System.Drawing.Point(505, 31)
101
+        Me.Label15.Name = "Label15"
102
+        Me.Label15.Size = New System.Drawing.Size(91, 16)
103
+        Me.Label15.TabIndex = 1228
104
+        Me.Label15.Text = "整月收支單總和"
105
+        '
106
+        'Label16
107
+        '
108
+        Me.Label16.AutoSize = True
109
+        Me.Label16.ForeColor = System.Drawing.Color.Green
110
+        Me.Label16.Location = New System.Drawing.Point(505, 7)
111
+        Me.Label16.Name = "Label16"
112
+        Me.Label16.Size = New System.Drawing.Size(91, 16)
113
+        Me.Label16.TabIndex = 1227
114
+        Me.Label16.Text = "單筆收支單總和"
115
+        '
116
+        '非稅_ch
117
+        '
118
+        Me.非稅_ch.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
119
+        Me.非稅_ch.AutoSize = True
120
+        Me.非稅_ch.Location = New System.Drawing.Point(1193, 589)
121
+        Me.非稅_ch.Name = "非稅_ch"
122
+        Me.非稅_ch.Size = New System.Drawing.Size(50, 20)
123
+        Me.非稅_ch.TabIndex = 1225
124
+        Me.非稅_ch.Text = "非稅"
125
+        Me.非稅_ch.UseVisualStyleBackColor = True
126
+        '
127
+        '含稅_ch
128
+        '
129
+        Me.含稅_ch.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
130
+        Me.含稅_ch.AutoSize = True
131
+        Me.含稅_ch.Location = New System.Drawing.Point(1136, 589)
132
+        Me.含稅_ch.Name = "含稅_ch"
133
+        Me.含稅_ch.Size = New System.Drawing.Size(50, 20)
134
+        Me.含稅_ch.TabIndex = 1224
135
+        Me.含稅_ch.Text = "含稅"
136
+        Me.含稅_ch.UseVisualStyleBackColor = True
137
+        '
138
+        '全部_ch
139
+        '
140
+        Me.全部_ch.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
141
+        Me.全部_ch.AutoSize = True
142
+        Me.全部_ch.Checked = True
143
+        Me.全部_ch.CheckState = System.Windows.Forms.CheckState.Checked
144
+        Me.全部_ch.Location = New System.Drawing.Point(1079, 589)
145
+        Me.全部_ch.Name = "全部_ch"
146
+        Me.全部_ch.Size = New System.Drawing.Size(50, 20)
147
+        Me.全部_ch.TabIndex = 1223
148
+        Me.全部_ch.Text = "全部"
149
+        Me.全部_ch.UseVisualStyleBackColor = True
150
+        '
151
+        'ProgressBar1
152
+        '
153
+        Me.ProgressBar1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
154
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
155
+        Me.ProgressBar1.Location = New System.Drawing.Point(3, 591)
156
+        Me.ProgressBar1.Name = "ProgressBar1"
157
+        Me.ProgressBar1.Size = New System.Drawing.Size(1065, 17)
158
+        Me.ProgressBar1.TabIndex = 1222
159
+        '
160
+        '支票_總_tb
161
+        '
162
+        Me.支票_總_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
163
+        Me.支票_總_tb.Location = New System.Drawing.Point(635, 28)
164
+        Me.支票_總_tb.Name = "支票_總_tb"
165
+        Me.支票_總_tb.Size = New System.Drawing.Size(90, 23)
166
+        Me.支票_總_tb.TabIndex = 1221
167
+        Me.支票_總_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
168
+        '
169
+        'Label13
170
+        '
171
+        Me.Label13.AutoSize = True
172
+        Me.Label13.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
173
+        Me.Label13.Location = New System.Drawing.Point(602, 32)
174
+        Me.Label13.Name = "Label13"
175
+        Me.Label13.Size = New System.Drawing.Size(31, 16)
176
+        Me.Label13.TabIndex = 1220
177
+        Me.Label13.Text = "支票"
178
+        '
179
+        '支票_單_tb
180
+        '
181
+        Me.支票_單_tb.ForeColor = System.Drawing.Color.Green
182
+        Me.支票_單_tb.Location = New System.Drawing.Point(635, 3)
183
+        Me.支票_單_tb.Name = "支票_單_tb"
184
+        Me.支票_單_tb.Size = New System.Drawing.Size(90, 23)
185
+        Me.支票_單_tb.TabIndex = 1219
186
+        Me.支票_單_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
187
+        '
188
+        'Label14
189
+        '
190
+        Me.Label14.AutoSize = True
191
+        Me.Label14.ForeColor = System.Drawing.Color.Green
192
+        Me.Label14.Location = New System.Drawing.Point(602, 7)
193
+        Me.Label14.Name = "Label14"
194
+        Me.Label14.Size = New System.Drawing.Size(31, 16)
195
+        Me.Label14.TabIndex = 1218
196
+        Me.Label14.Text = "支票"
197
+        '
198
+        '零用金_總_tb
199
+        '
200
+        Me.零用金_總_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
201
+        Me.零用金_總_tb.Location = New System.Drawing.Point(774, 27)
202
+        Me.零用金_總_tb.Name = "零用金_總_tb"
203
+        Me.零用金_總_tb.Size = New System.Drawing.Size(90, 23)
204
+        Me.零用金_總_tb.TabIndex = 1217
205
+        Me.零用金_總_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
206
+        '
207
+        'Label1
208
+        '
209
+        Me.Label1.AutoSize = True
210
+        Me.Label1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
211
+        Me.Label1.Location = New System.Drawing.Point(728, 31)
212
+        Me.Label1.Name = "Label1"
213
+        Me.Label1.Size = New System.Drawing.Size(43, 16)
214
+        Me.Label1.TabIndex = 1216
215
+        Me.Label1.Text = "零用金"
216
+        '
217
+        '零用金_單_tb
218
+        '
219
+        Me.零用金_單_tb.ForeColor = System.Drawing.Color.Green
220
+        Me.零用金_單_tb.Location = New System.Drawing.Point(774, 2)
221
+        Me.零用金_單_tb.Name = "零用金_單_tb"
222
+        Me.零用金_單_tb.Size = New System.Drawing.Size(90, 23)
223
+        Me.零用金_單_tb.TabIndex = 1215
224
+        Me.零用金_單_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
225
+        '
226
+        'Label3
227
+        '
228
+        Me.Label3.AutoSize = True
229
+        Me.Label3.ForeColor = System.Drawing.Color.Green
230
+        Me.Label3.Location = New System.Drawing.Point(728, 6)
231
+        Me.Label3.Name = "Label3"
232
+        Me.Label3.Size = New System.Drawing.Size(43, 16)
233
+        Me.Label3.TabIndex = 1214
234
+        Me.Label3.Text = "零用金"
235
+        '
236
+        '只顯示支票資料_ch
237
+        '
238
+        Me.只顯示支票資料_ch.AutoSize = True
239
+        Me.只顯示支票資料_ch.Location = New System.Drawing.Point(285, 31)
240
+        Me.只顯示支票資料_ch.Name = "只顯示支票資料_ch"
241
+        Me.只顯示支票資料_ch.Size = New System.Drawing.Size(110, 20)
242
+        Me.只顯示支票資料_ch.TabIndex = 1213
243
+        Me.只顯示支票資料_ch.Text = "只顯示支票資料"
244
+        Me.只顯示支票資料_ch.UseVisualStyleBackColor = True
245
+        '
246
+        '隱藏作帳_ch
247
+        '
248
+        Me.隱藏作帳_ch.AutoSize = True
249
+        Me.隱藏作帳_ch.Checked = True
250
+        Me.隱藏作帳_ch.CheckState = System.Windows.Forms.CheckState.Checked
251
+        Me.隱藏作帳_ch.Location = New System.Drawing.Point(144, 31)
252
+        Me.隱藏作帳_ch.Name = "隱藏作帳_ch"
253
+        Me.隱藏作帳_ch.Size = New System.Drawing.Size(134, 20)
254
+        Me.隱藏作帳_ch.TabIndex = 1212
255
+        Me.隱藏作帳_ch.Text = "隱藏作帳、點交資訊"
256
+        Me.隱藏作帳_ch.UseVisualStyleBackColor = True
257
+        '
258
+        '隱藏申請_ch
259
+        '
260
+        Me.隱藏申請_ch.AutoSize = True
261
+        Me.隱藏申請_ch.Checked = True
262
+        Me.隱藏申請_ch.CheckState = System.Windows.Forms.CheckState.Checked
263
+        Me.隱藏申請_ch.Location = New System.Drawing.Point(3, 31)
264
+        Me.隱藏申請_ch.Name = "隱藏申請_ch"
265
+        Me.隱藏申請_ch.Size = New System.Drawing.Size(134, 20)
266
+        Me.隱藏申請_ch.TabIndex = 1211
267
+        Me.隱藏申請_ch.Text = "隱藏申請、審核資訊"
268
+        Me.隱藏申請_ch.UseVisualStyleBackColor = True
269
+        '
270
+        '損益_總_tb
271
+        '
272
+        Me.損益_總_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
273
+        Me.損益_總_tb.Location = New System.Drawing.Point(1149, 27)
274
+        Me.損益_總_tb.Name = "損益_總_tb"
275
+        Me.損益_總_tb.Size = New System.Drawing.Size(90, 23)
276
+        Me.損益_總_tb.TabIndex = 1210
277
+        Me.損益_總_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
278
+        '
279
+        'Label7
280
+        '
281
+        Me.Label7.AutoSize = True
282
+        Me.Label7.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
283
+        Me.Label7.Location = New System.Drawing.Point(1115, 30)
284
+        Me.Label7.Name = "Label7"
285
+        Me.Label7.Size = New System.Drawing.Size(31, 16)
286
+        Me.Label7.TabIndex = 1209
287
+        Me.Label7.Text = "損益"
288
+        '
289
+        '支出_總_tb
290
+        '
291
+        Me.支出_總_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
292
+        Me.支出_總_tb.Location = New System.Drawing.Point(1023, 27)
293
+        Me.支出_總_tb.Name = "支出_總_tb"
294
+        Me.支出_總_tb.Size = New System.Drawing.Size(90, 23)
295
+        Me.支出_總_tb.TabIndex = 1208
296
+        Me.支出_總_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
297
+        '
298
+        'Label8
299
+        '
300
+        Me.Label8.AutoSize = True
301
+        Me.Label8.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
302
+        Me.Label8.Location = New System.Drawing.Point(990, 31)
303
+        Me.Label8.Name = "Label8"
304
+        Me.Label8.Size = New System.Drawing.Size(31, 16)
305
+        Me.Label8.TabIndex = 1207
306
+        Me.Label8.Text = "支出"
307
+        '
308
+        '收入_總_tb
309
+        '
310
+        Me.收入_總_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
311
+        Me.收入_總_tb.Location = New System.Drawing.Point(898, 27)
312
+        Me.收入_總_tb.Name = "收入_總_tb"
313
+        Me.收入_總_tb.Size = New System.Drawing.Size(90, 23)
314
+        Me.收入_總_tb.TabIndex = 1206
315
+        Me.收入_總_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
316
+        '
317
+        'Label10
318
+        '
319
+        Me.Label10.AutoSize = True
320
+        Me.Label10.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
321
+        Me.Label10.Location = New System.Drawing.Point(866, 31)
322
+        Me.Label10.Name = "Label10"
323
+        Me.Label10.Size = New System.Drawing.Size(31, 16)
324
+        Me.Label10.TabIndex = 1205
325
+        Me.Label10.Text = "收入"
326
+        '
327
+        '損益_單_tb
328
+        '
329
+        Me.損益_單_tb.ForeColor = System.Drawing.Color.Green
330
+        Me.損益_單_tb.Location = New System.Drawing.Point(1149, 2)
331
+        Me.損益_單_tb.Name = "損益_單_tb"
332
+        Me.損益_單_tb.Size = New System.Drawing.Size(90, 23)
333
+        Me.損益_單_tb.TabIndex = 1204
334
+        Me.損益_單_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
335
+        '
336
+        'Label6
337
+        '
338
+        Me.Label6.AutoSize = True
339
+        Me.Label6.ForeColor = System.Drawing.Color.Green
340
+        Me.Label6.Location = New System.Drawing.Point(1115, 6)
341
+        Me.Label6.Name = "Label6"
342
+        Me.Label6.Size = New System.Drawing.Size(31, 16)
343
+        Me.Label6.TabIndex = 1203
344
+        Me.Label6.Text = "損益"
345
+        '
346
+        '支出_單_tb
347
+        '
348
+        Me.支出_單_tb.ForeColor = System.Drawing.Color.Green
349
+        Me.支出_單_tb.Location = New System.Drawing.Point(1023, 2)
350
+        Me.支出_單_tb.Name = "支出_單_tb"
351
+        Me.支出_單_tb.Size = New System.Drawing.Size(90, 23)
352
+        Me.支出_單_tb.TabIndex = 1202
353
+        Me.支出_單_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
354
+        '
355
+        'Label5
356
+        '
357
+        Me.Label5.AutoSize = True
358
+        Me.Label5.ForeColor = System.Drawing.Color.Green
359
+        Me.Label5.Location = New System.Drawing.Point(990, 6)
360
+        Me.Label5.Name = "Label5"
361
+        Me.Label5.Size = New System.Drawing.Size(31, 16)
362
+        Me.Label5.TabIndex = 1201
363
+        Me.Label5.Text = "支出"
364
+        '
365
+        'Label4
366
+        '
367
+        Me.Label4.AutoSize = True
368
+        Me.Label4.ForeColor = System.Drawing.Color.Green
369
+        Me.Label4.Location = New System.Drawing.Point(210, 6)
370
+        Me.Label4.Name = "Label4"
371
+        Me.Label4.Size = New System.Drawing.Size(31, 16)
372
+        Me.Label4.TabIndex = 1200
373
+        Me.Label4.Text = "單號"
374
+        '
375
+        '收支單號_tb
376
+        '
377
+        Me.收支單號_tb.ForeColor = System.Drawing.Color.Green
378
+        Me.收支單號_tb.Location = New System.Drawing.Point(242, 3)
379
+        Me.收支單號_tb.Name = "收支單號_tb"
380
+        Me.收支單號_tb.Size = New System.Drawing.Size(148, 23)
381
+        Me.收支單號_tb.TabIndex = 1199
382
+        Me.收支單號_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
383
+        '
384
+        '收入_單_tb
385
+        '
386
+        Me.收入_單_tb.ForeColor = System.Drawing.Color.Green
387
+        Me.收入_單_tb.Location = New System.Drawing.Point(898, 2)
388
+        Me.收入_單_tb.Name = "收入_單_tb"
389
+        Me.收入_單_tb.Size = New System.Drawing.Size(90, 23)
390
+        Me.收入_單_tb.TabIndex = 1198
391
+        Me.收入_單_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
392
+        '
393
+        'Label9
394
+        '
395
+        Me.Label9.AutoSize = True
396
+        Me.Label9.ForeColor = System.Drawing.Color.Green
397
+        Me.Label9.Location = New System.Drawing.Point(866, 6)
398
+        Me.Label9.Name = "Label9"
399
+        Me.Label9.Size = New System.Drawing.Size(31, 16)
400
+        Me.Label9.TabIndex = 1197
401
+        Me.Label9.Text = "收入"
402
+        '
403
+        '月_ch
404
+        '
405
+        Me.月_ch.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
406
+        Me.月_ch.FormattingEnabled = True
407
+        Me.月_ch.Items.AddRange(New Object() {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"})
408
+        Me.月_ch.Location = New System.Drawing.Point(149, 3)
409
+        Me.月_ch.Name = "月_ch"
410
+        Me.月_ch.Size = New System.Drawing.Size(55, 24)
411
+        Me.月_ch.TabIndex = 1194
412
+        '
413
+        '年_cb
414
+        '
415
+        Me.年_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
416
+        Me.年_cb.FormattingEnabled = True
417
+        Me.年_cb.Items.AddRange(New Object() {"2019"})
418
+        Me.年_cb.Location = New System.Drawing.Point(73, 3)
419
+        Me.年_cb.Name = "年_cb"
420
+        Me.年_cb.Size = New System.Drawing.Size(70, 24)
421
+        Me.年_cb.TabIndex = 1193
422
+        '
423
+        'Label2
424
+        '
425
+        Me.Label2.AutoSize = True
426
+        Me.Label2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
427
+        Me.Label2.Location = New System.Drawing.Point(11, 8)
428
+        Me.Label2.Name = "Label2"
429
+        Me.Label2.Size = New System.Drawing.Size(55, 16)
430
+        Me.Label2.TabIndex = 1192
431
+        Me.Label2.Text = "查詢日期"
432
+        '
433
+        'Panel1
434
+        '
435
+        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
436
+        Me.Panel1.Controls.Add(Me.已兌現支票_單_tb)
437
+        Me.Panel1.Controls.Add(Me.Label12)
438
+        Me.Panel1.Controls.Add(Me.Label11)
439
+        Me.Panel1.Controls.Add(Me.TextBox10)
440
+        Me.Panel1.Location = New System.Drawing.Point(602, 140)
441
+        Me.Panel1.Name = "Panel1"
442
+        Me.Panel1.Size = New System.Drawing.Size(200, 134)
443
+        Me.Panel1.TabIndex = 1226
444
+        '
445
+        '已兌現支票_單_tb
446
+        '
447
+        Me.已兌現支票_單_tb.ForeColor = System.Drawing.Color.Green
448
+        Me.已兌現支票_單_tb.Location = New System.Drawing.Point(78, 3)
449
+        Me.已兌現支票_單_tb.Name = "已兌現支票_單_tb"
450
+        Me.已兌現支票_單_tb.Size = New System.Drawing.Size(90, 23)
451
+        Me.已兌現支票_單_tb.TabIndex = 1034
452
+        Me.已兌現支票_單_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
453
+        '
454
+        'Label12
455
+        '
456
+        Me.Label12.AutoSize = True
457
+        Me.Label12.ForeColor = System.Drawing.Color.Green
458
+        Me.Label12.Location = New System.Drawing.Point(8, 7)
459
+        Me.Label12.Name = "Label12"
460
+        Me.Label12.Size = New System.Drawing.Size(67, 16)
461
+        Me.Label12.TabIndex = 1033
462
+        Me.Label12.Text = "已兌現支票"
463
+        '
464
+        'Label11
465
+        '
466
+        Me.Label11.AutoSize = True
467
+        Me.Label11.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
468
+        Me.Label11.Location = New System.Drawing.Point(8, 32)
469
+        Me.Label11.Name = "Label11"
470
+        Me.Label11.Size = New System.Drawing.Size(67, 16)
471
+        Me.Label11.TabIndex = 1035
472
+        Me.Label11.Text = "已兌現支票"
473
+        '
474
+        'TextBox10
475
+        '
476
+        Me.TextBox10.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
477
+        Me.TextBox10.Location = New System.Drawing.Point(78, 28)
478
+        Me.TextBox10.Name = "TextBox10"
479
+        Me.TextBox10.Size = New System.Drawing.Size(90, 23)
480
+        Me.TextBox10.TabIndex = 1036
481
+        Me.TextBox10.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
482
+        '
483
+        'ContextMenuStrip1
484
+        '
485
+        Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.重新整理ToolStripMenuItem, Me.關鍵字查詢ToolStripMenuItem, Me.清除ToolStripMenuItem, Me.對帳記錄存檔ToolStripMenuItem, Me.ToolStripSeparator2, Me.BBBToolStripMenuItem})
486
+        Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
487
+        Me.ContextMenuStrip1.Size = New System.Drawing.Size(171, 120)
488
+        '
489
+        '重新整理ToolStripMenuItem
490
+        '
491
+        Me.重新整理ToolStripMenuItem.Name = "重新整理ToolStripMenuItem"
492
+        Me.重新整理ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
493
+        Me.重新整理ToolStripMenuItem.Text = "重新整理"
494
+        '
495
+        '關鍵字查詢ToolStripMenuItem
496
+        '
497
+        Me.關鍵字查詢ToolStripMenuItem.Name = "關鍵字查詢ToolStripMenuItem"
498
+        Me.關鍵字查詢ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
499
+        Me.關鍵字查詢ToolStripMenuItem.Text = "關鍵字查詢"
500
+        '
501
+        '清除ToolStripMenuItem
502
+        '
503
+        Me.清除ToolStripMenuItem.Name = "清除ToolStripMenuItem"
504
+        Me.清除ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
505
+        Me.清除ToolStripMenuItem.Text = "清除介面查詢資料"
506
+        Me.清除ToolStripMenuItem.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
507
+        '
508
+        '對帳記錄存檔ToolStripMenuItem
509
+        '
510
+        Me.對帳記錄存檔ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
511
+        Me.對帳記錄存檔ToolStripMenuItem.Name = "對帳記錄存檔ToolStripMenuItem"
512
+        Me.對帳記錄存檔ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
513
+        Me.對帳記錄存檔ToolStripMenuItem.Text = "對帳記錄存檔"
514
+        '
515
+        'ToolStripSeparator2
516
+        '
517
+        Me.ToolStripSeparator2.Name = "ToolStripSeparator2"
518
+        Me.ToolStripSeparator2.Size = New System.Drawing.Size(177, 6)
519
+        '
520
+        'BBBToolStripMenuItem
521
+        '
522
+        Me.BBBToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
523
+        Me.BBBToolStripMenuItem.Name = "BBBToolStripMenuItem"
524
+        Me.BBBToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
525
+        Me.BBBToolStripMenuItem.Text = "列印成EXCEL"
526
+        '
527
+        '財務_對帳單_ICS
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.Controls.Add(Me.清單_dgv)
533
+        Me.Controls.Add(Me.Label15)
534
+        Me.Controls.Add(Me.Label16)
535
+        Me.Controls.Add(Me.非稅_ch)
536
+        Me.Controls.Add(Me.含稅_ch)
537
+        Me.Controls.Add(Me.全部_ch)
538
+        Me.Controls.Add(Me.ProgressBar1)
539
+        Me.Controls.Add(Me.支票_總_tb)
540
+        Me.Controls.Add(Me.Label13)
541
+        Me.Controls.Add(Me.支票_單_tb)
542
+        Me.Controls.Add(Me.Label14)
543
+        Me.Controls.Add(Me.零用金_總_tb)
544
+        Me.Controls.Add(Me.Label1)
545
+        Me.Controls.Add(Me.零用金_單_tb)
546
+        Me.Controls.Add(Me.Label3)
547
+        Me.Controls.Add(Me.只顯示支票資料_ch)
548
+        Me.Controls.Add(Me.隱藏作帳_ch)
549
+        Me.Controls.Add(Me.隱藏申請_ch)
550
+        Me.Controls.Add(Me.損益_總_tb)
551
+        Me.Controls.Add(Me.Label7)
552
+        Me.Controls.Add(Me.支出_總_tb)
553
+        Me.Controls.Add(Me.Label8)
554
+        Me.Controls.Add(Me.收入_總_tb)
555
+        Me.Controls.Add(Me.Label10)
556
+        Me.Controls.Add(Me.損益_單_tb)
557
+        Me.Controls.Add(Me.Label6)
558
+        Me.Controls.Add(Me.支出_單_tb)
559
+        Me.Controls.Add(Me.Label5)
560
+        Me.Controls.Add(Me.Label4)
561
+        Me.Controls.Add(Me.收支單號_tb)
562
+        Me.Controls.Add(Me.收入_單_tb)
563
+        Me.Controls.Add(Me.Label9)
564
+        Me.Controls.Add(Me.月_ch)
565
+        Me.Controls.Add(Me.年_cb)
566
+        Me.Controls.Add(Me.Label2)
567
+        Me.Controls.Add(Me.Panel1)
568
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
569
+        Me.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4)
570
+        Me.Name = "財務_對帳單_ICS"
571
+        Me.Text = "財務_對帳單_ICS"
572
+        CType(Me.清單_dgv, System.ComponentModel.ISupportInitialize).EndInit()
573
+        Me.Panel1.ResumeLayout(False)
574
+        Me.Panel1.PerformLayout()
575
+        Me.ContextMenuStrip1.ResumeLayout(False)
576
+        Me.ResumeLayout(False)
577
+        Me.PerformLayout()
578
+
579
+    End Sub
580
+
581
+    Friend WithEvents 清單_dgv As DataGridView
582
+    Friend WithEvents Label15 As Label
583
+    Friend WithEvents Label16 As Label
584
+    Friend WithEvents 非稅_ch As CheckBox
585
+    Friend WithEvents 含稅_ch As CheckBox
586
+    Friend WithEvents 全部_ch As CheckBox
587
+    Friend WithEvents ProgressBar1 As ProgressBar
588
+    Friend WithEvents 支票_總_tb As TextBox
589
+    Friend WithEvents Label13 As Label
590
+    Friend WithEvents 支票_單_tb As TextBox
591
+    Friend WithEvents Label14 As Label
592
+    Friend WithEvents 零用金_總_tb As TextBox
593
+    Friend WithEvents Label1 As Label
594
+    Friend WithEvents 零用金_單_tb As TextBox
595
+    Friend WithEvents Label3 As Label
596
+    Friend WithEvents 只顯示支票資料_ch As CheckBox
597
+    Friend WithEvents 隱藏作帳_ch As CheckBox
598
+    Friend WithEvents 隱藏申請_ch As CheckBox
599
+    Friend WithEvents 損益_總_tb As TextBox
600
+    Friend WithEvents Label7 As Label
601
+    Friend WithEvents 支出_總_tb As TextBox
602
+    Friend WithEvents Label8 As Label
603
+    Friend WithEvents 收入_總_tb As TextBox
604
+    Friend WithEvents Label10 As Label
605
+    Friend WithEvents 損益_單_tb As TextBox
606
+    Friend WithEvents Label6 As Label
607
+    Friend WithEvents 支出_單_tb As TextBox
608
+    Friend WithEvents Label5 As Label
609
+    Friend WithEvents Label4 As Label
610
+    Friend WithEvents 收支單號_tb As TextBox
611
+    Friend WithEvents 收入_單_tb As TextBox
612
+    Friend WithEvents Label9 As Label
613
+    Friend WithEvents 月_ch As ComboBox
614
+    Friend WithEvents 年_cb As ComboBox
615
+    Friend WithEvents Label2 As Label
616
+    Friend WithEvents Panel1 As Panel
617
+    Friend WithEvents 已兌現支票_單_tb As TextBox
618
+    Friend WithEvents Label12 As Label
619
+    Friend WithEvents Label11 As Label
620
+    Friend WithEvents TextBox10 As TextBox
621
+    Friend WithEvents ContextMenuStrip1 As ContextMenuStrip
622
+    Friend WithEvents 重新整理ToolStripMenuItem As ToolStripMenuItem
623
+    Friend WithEvents 關鍵字查詢ToolStripMenuItem As ToolStripMenuItem
624
+    Friend WithEvents 清除ToolStripMenuItem As ToolStripMenuItem
625
+    Friend WithEvents 對帳記錄存檔ToolStripMenuItem As ToolStripMenuItem
626
+    Friend WithEvents ToolStripSeparator2 As ToolStripSeparator
627
+    Friend WithEvents BBBToolStripMenuItem As ToolStripMenuItem
628
+End Class

+ 123
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_對帳單_ICS.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>

+ 223
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_對帳單_ICS.vb ファイルの表示

@@ -0,0 +1,223 @@
1
+Option Strict Off
2
+Public Class 財務_對帳單_ICS
3
+    ReadOnly ds As New DataSet
4
+    Dim KKKJJ As String : Dim KKKJJ2 As String : Dim KKKJJ3 As String : Dim KKK3 As String : Dim KKK4 As String : Dim 匯率1 As Double
5
+    Private Sub Set_清單1()
6
+        清單_dgv.DataSource = Nothing : ds.Clear()
7
+        清單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
8
+        清單_dgv.ColumnHeadersHeight = 25
9
+        清單_dgv.AllowUserToAddRows = False
10
+        ConnOpen()
11
+        If 全部_ch.Checked = True And 含稅_ch.Checked = False And 非稅_ch.Checked = False Then
12
+            SQL2 = ""
13
+        ElseIf 全部_ch.Checked = False And 含稅_ch.Checked = True And 非稅_ch.Checked = False Then
14
+            SQL2 = " AND (財務流水帳_ICS.含稅 = 1)"
15
+        ElseIf 全部_ch.Checked = False And 含稅_ch.Checked = False And 非稅_ch.Checked = True Then
16
+            SQL2 = " AND (財務流水帳_ICS.含稅 = 0 OR 財務流水帳_ICS.含稅 IS NULL)"
17
+        End If
18
+        SQL1 = "SELECT      財務控制表_ICS.支付單號 AS 收支單號, 財務控制表_ICS.申請人, 財務控制表_ICS.申請日期, 財務控制表_ICS.審核人, 
19
+                            財務控制表_ICS.審核日期, 財務流水帳_ICS.項次, 會計科目.會計科目, 財務流水帳_ICS.明細 AS 用途與內容, 
20
+                            財務流水帳_ICS.零用金, 財務流水帳_ICS.支票數 AS 支票, Cast(財務流水帳_ICS.收入 AS money) AS 現金, 
21
+                            Cast(財務流水帳_ICS.支出 AS money) AS 支出, 財務流水帳_ICS.備註 AS 票期, 財務流水帳_ICS.會計, 財務流水帳_ICS.日期 AS 作帳日期, 
22
+                            財務流水帳_ICS.出納 AS 點交, 財務流水帳_ICS.出納日期 AS 點交日期, 財務流水帳_ICS.備用金 AS 零用金點交, 
23
+                            財務流水帳_ICS.支票 AS 支票兌現, 財務流水帳_ICS.現金 AS 現金點交, 財務流水帳_ICS.公帳 AS 支出點交, 財務流水帳_ICS.匯率, 財務流水帳_ICS.銀行 AS 幣別
24
+                FROM        財務流水帳_ICS INNER JOIN
25
+                            會計科目 ON 財務流水帳_ICS.類別 = 會計科目.編號 FULL OUTER JOIN
26
+                            財務控制表_ICS ON 財務流水帳_ICS.支付單號 = 財務控制表_ICS.支付單號
27
+                WHERE      (財務控制表_ICS.審核人 NOT LIKE '') AND (會計科目.編號 NOT LIKE 'D%') AND
28
+                           (財務控制表_ICS.審核人 NOT LIKE '作廢%') " & KKKJJ3 & KKKJJ & KKKJJ2 & SQL2 & " 
29
+                ORDER BY    收支單號 DESC, 財務流水帳_ICS.項次"
30
+        列印用SQL1 = SQL1
31
+        CmdSet_For_DGV() : da.Fill(ds) : 清單_dgv.DataSource = ds.Tables(0) : conn.Close() : Set_grid()
32
+    End Sub
33
+    Private Sub Set_grid()
34
+        清單_dgv.Columns(0).FillWeight = 120 : 清單_dgv.Columns(1).FillWeight = 60 : 清單_dgv.Columns(2).FillWeight = 80 : 清單_dgv.Columns(3).FillWeight = 60
35
+        清單_dgv.Columns(4).FillWeight = 80 : 清單_dgv.Columns(5).FillWeight = 50 : 清單_dgv.Columns(6).FillWeight = 150 : 清單_dgv.Columns(7).FillWeight = 233
36
+        清單_dgv.Columns(8).FillWeight = 80 : 清單_dgv.Columns(9).FillWeight = 80 : 清單_dgv.Columns(10).FillWeight = 80 : 清單_dgv.Columns(11).FillWeight = 80
37
+        清單_dgv.Columns(12).FillWeight = 80 : 清單_dgv.Columns(13).FillWeight = 50 : 清單_dgv.Columns(14).FillWeight = 85 : 清單_dgv.Columns(15).FillWeight = 50
38
+        清單_dgv.Columns(16).FillWeight = 85 : 清單_dgv.Columns(17).Visible = False : 清單_dgv.Columns(18).Visible = False : 清單_dgv.Columns(19).Visible = False
39
+        清單_dgv.Columns(20).Visible = False : 清單_dgv.Columns(21).FillWeight = 70 : 清單_dgv.Columns(22).FillWeight = 100
40
+
41
+        If 隱藏申請_ch.Checked = False Then
42
+            清單_dgv.Columns(1).Visible = True : 清單_dgv.Columns(2).Visible = True : 清單_dgv.Columns(3).Visible = True : 清單_dgv.Columns(4).Visible = True
43
+        Else
44
+            清單_dgv.Columns(1).Visible = False : 清單_dgv.Columns(2).Visible = False : 清單_dgv.Columns(3).Visible = False : 清單_dgv.Columns(4).Visible = False
45
+        End If
46
+
47
+        If 隱藏作帳_ch.Checked = False Then
48
+            清單_dgv.Columns(13).Visible = True : 清單_dgv.Columns(14).Visible = True : 清單_dgv.Columns(15).Visible = True : 清單_dgv.Columns(16).Visible = True
49
+        Else
50
+            清單_dgv.Columns(13).Visible = False : 清單_dgv.Columns(14).Visible = False : 清單_dgv.Columns(15).Visible = False : 清單_dgv.Columns(16).Visible = False
51
+        End If
52
+
53
+        清單_dgv.Columns(8).DefaultCellStyle.Format = "#,##0" : 清單_dgv.Columns(9).DefaultCellStyle.Format = "#,##0" : 清單_dgv.Columns(10).DefaultCellStyle.Format = "#,##0"
54
+        清單_dgv.Columns(11).DefaultCellStyle.Format = "#,##0"
55
+        清單_dgv.Columns(8).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 清單_dgv.Columns(8).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
56
+        清單_dgv.Columns(9).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 清單_dgv.Columns(9).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
57
+        清單_dgv.Columns(10).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 清單_dgv.Columns(10).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
58
+        清單_dgv.Columns(11).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 清單_dgv.Columns(11).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
59
+        清單_dgv.Columns(21).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 清單_dgv.Columns(21).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
60
+        清單_dgv.Columns(22).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 清單_dgv.Columns(22).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
61
+
62
+        支出_總_tb.Text = "0" : 收入_總_tb.Text = "0" : 損益_總_tb.Text = "0" : 零用金_總_tb.Text = "0" : TextBox10.Text = "0" : 支票_總_tb.Text = "0"
63
+        For i As Integer = 0 To 清單_dgv.Rows.Count - 1
64
+            收入_總_tb.Text = Val(收入_總_tb.Text) + 清單_dgv.Rows(i).Cells("現金").Value * 清單_dgv.Rows(i).Cells("匯率").Value
65
+            支出_總_tb.Text = Val(支出_總_tb.Text) + 清單_dgv.Rows(i).Cells("支出").Value * 清單_dgv.Rows(i).Cells("匯率").Value
66
+            零用金_總_tb.Text = Val(零用金_總_tb.Text) + 清單_dgv.Rows(i).Cells("零用金").Value * 清單_dgv.Rows(i).Cells("匯率").Value
67
+            If 清單_dgv(9, i).Value <> 0 And 清單_dgv(18, i).Value = True Then
68
+                TextBox10.Text = Val(TextBox10.Text) + 清單_dgv.Rows(i).Cells("支票").Value * 清單_dgv.Rows(i).Cells("匯率").Value
69
+            ElseIf 清單_dgv(9, i).Value <> 0 And 清單_dgv(18, i).Value = False Then
70
+                支票_總_tb.Text = Val(支票_總_tb.Text) + 清單_dgv.Rows(i).Cells("支票").Value * 清單_dgv.Rows(i).Cells("匯率").Value
71
+            End If
72
+        Next i
73
+        損益_總_tb.Text = Val(TextBox10.Text) + Val(零用金_總_tb.Text) + Val(收入_總_tb.Text) - Val(支出_總_tb.Text)
74
+        If CLng(損益_總_tb.Text) > 0 Then : 損益_總_tb.ForeColor = Color.Blue : Else : 損益_總_tb.ForeColor = Color.Red : End If
75
+        支出_總_tb.Text = Format(Val(支出_總_tb.Text), "#,##0") : 損益_總_tb.Text = Format(Val(損益_總_tb.Text), "#,##0") : 收入_總_tb.Text = Format(Val(收入_總_tb.Text), "#,##0")
76
+        零用金_總_tb.Text = Format(Val(零用金_總_tb.Text), "#,##0") : TextBox10.Text = Format(Val(TextBox10.Text), "#,##0") : 支票_總_tb.Text = Format(Val(支票_總_tb.Text), "#,##0")
77
+    End Sub
78
+    Private Sub ComboBox1下拉表單資料載入()
79
+        conn.Close()
80
+        ConnOpen()
81
+        SQL1 = "SELECT  年份 FROM 年份清單 ORDER BY 年份 DESC"
82
+        CmdSet_For_dr()
83
+        年_cb.Items.Clear()
84
+        While (dr.Read()) : 年_cb.Items.Add(dr("年份")) : End While
85
+        conn.Close()
86
+    End Sub
87
+    Private Sub 財務_對帳單_ICS_Load(sender As Object, e As EventArgs) Handles MyBase.Load
88
+        Me.MdiParent = GCM_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
89
+        收入_單_tb.Text = "0" : 支出_單_tb.Text = "0" : 損益_單_tb.Text = "0" : 零用金_單_tb.Text = "0" : 已兌現支票_單_tb.Text = "0" : 支票_單_tb.Text = "0"
90
+        ConnOpen() : SQL1 = "UPDATE 財務流水帳_ICS SET 會計 = N'0' WHERE (會計 IS NULL)" : CmdSet_For_dr() : conn.Close()
91
+        ConnOpen() : SQL1 = "UPDATE 財務流水帳_ICS SET 出納 = N'0' WHERE (出納 IS NULL)" : CmdSet_For_dr() : conn.Close()
92
+        ConnOpen() : SQL1 = "UPDATE 財務流水帳_ICS SET 現金 = N'0' WHERE (現金 IS NULL)" : CmdSet_For_dr() : conn.Close()
93
+        ConnOpen() : SQL1 = "UPDATE 財務流水帳_ICS SET 備用金 = N'0' WHERE (備用金 IS NULL)" : CmdSet_For_dr() : conn.Close()
94
+        ConnOpen() : SQL1 = "UPDATE 財務流水帳_ICS SET 公帳 = N'0' WHERE (公帳 IS NULL)" : CmdSet_For_dr() : conn.Close()
95
+        ConnOpen() : SQL1 = "UPDATE 財務流水帳_ICS SET 支票 = N'0' WHERE (支票 IS NULL)" : CmdSet_For_dr() : conn.Close()
96
+        ConnOpen() : SQL1 = "UPDATE 財務流水帳_ICS SET 日期 = N'' WHERE (日期 IS NULL)" : CmdSet_For_dr() : conn.Close()
97
+        ConnOpen() : SQL1 = "UPDATE 財務流水帳_ICS SET 出納日期 = N'' WHERE (出納日期 IS NULL)" : CmdSet_For_dr() : conn.Close()
98
+        ComboBox1下拉表單資料載入()
99
+        年_cb.Text = Year(Today) : 月_ch.SelectedIndex = Month(Today) - 1
100
+        KKKJJ3 = "AND (財務控制表_ICS.審核日期 LIKE '" & KKK3 & "/" & KKK4 & "%') "
101
+    End Sub
102
+    Dim 已超出 As Boolean
103
+    Private Sub 清單_dgv_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 清單_dgv.MouseUp
104
+        'If 清單_dgv.SelectedCells.Count = 1 Then : MsgBox(清單_dgv.SelectedCells(0).ColumnIndex & "  " & 清單_dgv.SelectedCells(0).RowIndex) : End If
105
+        If 清單_dgv.SelectedCells.Count = 1 Then : 已超出 = False : End If
106
+        If 清單_dgv.SelectedCells.Count > 0 Then
107
+            If 清單_dgv.SelectedCells(0).ColumnIndex >= 8 And 清單_dgv.SelectedCells(0).ColumnIndex <= 11 Then
108
+                If 已超出 = False Then
109
+                    Dim x As Double = 0
110
+                    For i As Integer = 0 To 清單_dgv.SelectedCells.Count - 1
111
+                        x += Val(清單_dgv.Rows(清單_dgv.SelectedCells.Item(i).RowIndex).Cells(清單_dgv.SelectedCells.Item(i).ColumnIndex).Value)
112
+                    Next i : GCM_ERP_SYS.合計_TSSL.Text = "合計 : " & Strings.Format(x, "#,##0")
113
+                Else : GCM_ERP_SYS.合計_TSSL.Text = "合計 : " & Strings.Format(0, "#,##0") : End If
114
+            Else : 已超出 = True : GCM_ERP_SYS.合計_TSSL.Text = "合計 : " & Strings.Format(0, "#,##0")
115
+            End If
116
+        End If
117
+    End Sub
118
+    Private Sub 全部_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 全部_ch.Click
119
+        全部_ch.Checked = True : 含稅_ch.Checked = False : 非稅_ch.Checked = False : Set_清單1()
120
+    End Sub
121
+    Private Sub 含稅_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 含稅_ch.Click
122
+        全部_ch.Checked = False : 含稅_ch.Checked = True : 非稅_ch.Checked = False : Set_清單1()
123
+    End Sub
124
+    Private Sub 非稅_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 非稅_ch.Click
125
+        全部_ch.Checked = False : 含稅_ch.Checked = False : 非稅_ch.Checked = True : Set_清單1()
126
+    End Sub
127
+    Private Sub 總金額計算()
128
+        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
129
+        收入_單_tb.Text = "0" : 支出_單_tb.Text = "0" : 損益_單_tb.Text = "0" : 零用金_單_tb.Text = "0" : 已兌現支票_單_tb.Text = "0" : 支票_單_tb.Text = "0"
130
+        For i As Integer = 0 To 清單_dgv.Rows.Count - 1
131
+            If 清單_dgv.Rows(i).Cells("收支單號").Value = 收支單號_tb.Text Then
132
+                FFGG = Val(FFGG) + 清單_dgv.Rows(i).Cells("現金").Value * 清單_dgv.Rows(i).Cells("匯率").Value
133
+                GGHH = Val(GGHH) + 清單_dgv.Rows(i).Cells("支出").Value * 清單_dgv.Rows(i).Cells("匯率").Value
134
+                HHJJ = Val(HHJJ) + 清單_dgv.Rows(i).Cells("零用金").Value * 清單_dgv.Rows(i).Cells("匯率").Value
135
+                If 清單_dgv(9, i).Value <> 0 And 清單_dgv(18, i).Value = True Then
136
+                    JJKK = Val(JJKK) + 清單_dgv.Rows(i).Cells("支票").Value * 清單_dgv.Rows(i).Cells("匯率").Value
137
+                ElseIf 清單_dgv(9, i).Value <> 0 And 清單_dgv(18, i).Value = False Then
138
+                    KKLL = Val(KKLL) + 清單_dgv.Rows(i).Cells("支票").Value * 清單_dgv.Rows(i).Cells("匯率").Value
139
+                End If
140
+            End If
141
+        Next i
142
+        收入_單_tb.Text = FFGG : 支出_單_tb.Text = GGHH : 零用金_單_tb.Text = HHJJ : 已兌現支票_單_tb.Text = JJKK : 支票_單_tb.Text = KKLL
143
+        損益_單_tb.Text = JJKK + HHJJ + FFGG - GGHH
144
+        If CLng(損益_單_tb.Text) > 0 Then : 損益_單_tb.ForeColor = Color.Blue : Else : 損益_單_tb.ForeColor = Color.Red : End If
145
+        收入_單_tb.Text = Strings.Format(Val(收入_單_tb.Text), "#,##0") : 支出_單_tb.Text = Strings.Format(Val(支出_單_tb.Text), "#,##0")
146
+        損益_單_tb.Text = Strings.Format(Val(損益_單_tb.Text), "#,##0") : 支票_單_tb.Text = Strings.Format(Val(支票_單_tb.Text), "#,##0")
147
+        零用金_單_tb.Text = Strings.Format(Val(零用金_單_tb.Text), "#,##0") : 已兌現支票_單_tb.Text = Strings.Format(Val(已兌現支票_單_tb.Text), "#,##0")
148
+    End Sub
149
+    Private Sub 清單_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 清單_dgv.CellClick
150
+        If e.RowIndex = -1 Then : Else
151
+            收支單號_tb.Text = 清單_dgv.Rows(e.RowIndex).Cells("收支單號").Value : 總金額計算()
152
+        End If
153
+    End Sub
154
+    Private Sub 清單_dgv_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 清單_dgv.RowPostPaint
155
+        Dim linePen As New Pen(Color.Blue, 2)
156
+        If e.RowIndex = 清單_dgv.Rows.Count - 1 Then
157
+            Exit Sub
158
+        Else
159
+            If 清單_dgv(0, e.RowIndex).Value.ToString <> 清單_dgv(0, e.RowIndex + 1).Value.ToString Then
160
+                Dim startX As Integer = IIf(清單_dgv.RowHeadersVisible, 清單_dgv.RowHeadersWidth, 0)
161
+                Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
162
+                Dim endX As Integer = startX + 清單_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 清單_dgv.HorizontalScrollingOffset
163
+                e.Graphics.DrawLine(linePen, startX, startY, endX, startY)
164
+                Exit Sub
165
+            End If
166
+        End If
167
+        For i As Integer = 0 To 清單_dgv.Rows.Count - 1
168
+            If 清單_dgv(9, i).Value <> 0 And 清單_dgv(18, i).Value = True Then
169
+                清單_dgv.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
170
+            ElseIf 清單_dgv(9, i).Value <> 0 And 清單_dgv(18, i).Value = False Then
171
+                清單_dgv.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow
172
+            End If
173
+        Next
174
+    End Sub
175
+    Private Sub 年_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 年_cb.SelectedIndexChanged
176
+        KKK3 = 年_cb.Text : If KKK3 = "" Or KKK4 = "" Then : Else : KKKJJ3 = "AND (財務控制表_ICS.審核日期 LIKE '" & KKK3 & "/" & KKK4 & "%') " : Set_清單1() : End If
177
+    End Sub
178
+    Private Sub 月_ch_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 月_ch.SelectedIndexChanged
179
+        KKK4 = 月_ch.Text : If KKK3 = "" Or KKK4 = "" Then : Else : KKKJJ3 = "AND (財務控制表_ICS.審核日期 LIKE '" & KKK3 & "/" & KKK4 & "%') " : Set_清單1() : End If
180
+    End Sub
181
+    Private Sub 只顯示支票資料_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 只顯示支票資料_ch.Click
182
+        If 只顯示支票資料_ch.Checked = False Then : KKKJJ = "" : Set_清單1() : Else : KKKJJ = " AND (財務流水帳_ICS.支票數 <> 0) " : Set_清單1() : End If
183
+    End Sub
184
+    Private Sub 隱藏申請_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 隱藏申請_ch.Click
185
+        Set_grid()
186
+    End Sub
187
+    Private Sub 隱藏作帳_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 隱藏作帳_ch.Click
188
+        Set_grid()
189
+    End Sub
190
+    '-----------------------------滑鼠右鍵--------------------------------------------------------------------------------------------------------------------------------------
191
+    Private Sub 對帳記錄存檔ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 對帳記錄存檔ToolStripMenuItem.Click
192
+        For i As Integer = 0 To 清單_dgv.Rows.Count - 1
193
+            資料數 = 清單_dgv.Rows.Count : MyMoule.進度條()
194
+            ConnOpen()
195
+            SQL1 = "UPDATE 財務流水帳_ICS SET 現金 = '" & 清單_dgv.Rows(i).Cells("現金點交").Value & "', 備用金 = '" & 清單_dgv.Rows(i).Cells("零用金點交").Value &
196
+                   "', 公帳 = '" & 清單_dgv.Rows(i).Cells("支出點交").Value & "', 支票 = '" & 清單_dgv.Rows(i).Cells("支票兌現").Value & "' 
197
+                    WHERE 支付單號 LIKE '" & 清單_dgv.Rows(i).Cells("收支單號").Value & "' AND 項次 Like '" & 清單_dgv.Rows(i).Cells("項次").Value & "'"
198
+            cmd.Connection = conn : cmd.CommandText = SQL1 : cmd.ExecuteNonQuery() : conn.Close()
199
+        Next
200
+        MsgBox("存檔完成。") : Set_清單1() : ProgressBar1.Value = 0 : 最終數 = 0
201
+    End Sub
202
+    Private Sub 關鍵字查詢ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 關鍵字查詢ToolStripMenuItem.Click
203
+        PA = InputBox("請輸入要查詢的關鍵字。")
204
+        KKKJJ2 = " AND (財務控制表_ICS.支付單號 LIKE N'%" & PA & "%' OR 財務控制表_ICS.申請人 LIKE N'%" & PA & "%' OR 財務控制表_ICS.審核人 LIKE N'%" & PA &
205
+                 "%' OR 財務流水帳_ICS.明細 LIKE N'%" & PA & "%' OR 財務控制表_ICS.備註 LIKE N'%" & PA & "%' OR 財務流水帳_ICS.備註 LIKE N'%" & PA & "%')" : Set_清單1()
206
+        KKKJJ2 = "" : PA = ""
207
+    End Sub
208
+    Private Sub BBBToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles BBBToolStripMenuItem.Click
209
+        MsgBox("待開發。")
210
+        ' 列印_零用金支付明細.ShowDialog()
211
+    End Sub
212
+    Private Sub 清除ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 清除ToolStripMenuItem.Click
213
+        ComboBox1下拉表單資料載入()
214
+        月_ch.Items.Clear()
215
+        月_ch.Items.Add("01") : 月_ch.Items.Add("02") : 月_ch.Items.Add("03") : 月_ch.Items.Add("04") : 月_ch.Items.Add("05") : 月_ch.Items.Add("06")
216
+        月_ch.Items.Add("07") : 月_ch.Items.Add("08") : 月_ch.Items.Add("09") : 月_ch.Items.Add("10") : 月_ch.Items.Add("11") : 月_ch.Items.Add("12")
217
+        KKK3 = "" : KKK4 = "" : KKKJJ3 = ""
218
+        清單_dgv.DataSource = Nothing : ds.Clear()
219
+    End Sub
220
+    Private Sub 重新整理ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 重新整理ToolStripMenuItem.Click
221
+        Set_清單1()
222
+    End Sub
223
+End Class

+ 711
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_彙總表_ICS.Designer.vb ファイルの表示

@@ -0,0 +1,711 @@
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
+Partial Class 財務_彙總表_ICS
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 ChartArea5 As System.Windows.Forms.DataVisualization.Charting.ChartArea = New System.Windows.Forms.DataVisualization.Charting.ChartArea()
26
+        Dim Legend5 As System.Windows.Forms.DataVisualization.Charting.Legend = New System.Windows.Forms.DataVisualization.Charting.Legend()
27
+        Dim Series5 As System.Windows.Forms.DataVisualization.Charting.Series = New System.Windows.Forms.DataVisualization.Charting.Series()
28
+        Dim ChartArea6 As System.Windows.Forms.DataVisualization.Charting.ChartArea = New System.Windows.Forms.DataVisualization.Charting.ChartArea()
29
+        Dim Legend6 As System.Windows.Forms.DataVisualization.Charting.Legend = New System.Windows.Forms.DataVisualization.Charting.Legend()
30
+        Dim Series6 As System.Windows.Forms.DataVisualization.Charting.Series = New System.Windows.Forms.DataVisualization.Charting.Series()
31
+        Dim ChartArea7 As System.Windows.Forms.DataVisualization.Charting.ChartArea = New System.Windows.Forms.DataVisualization.Charting.ChartArea()
32
+        Dim Legend7 As System.Windows.Forms.DataVisualization.Charting.Legend = New System.Windows.Forms.DataVisualization.Charting.Legend()
33
+        Dim Series7 As System.Windows.Forms.DataVisualization.Charting.Series = New System.Windows.Forms.DataVisualization.Charting.Series()
34
+        Dim DataGridViewCellStyle21 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
35
+        Dim DataGridViewCellStyle22 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
36
+        Dim DataGridViewCellStyle23 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
37
+        Dim DataGridViewCellStyle24 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
38
+        Dim DataGridViewCellStyle25 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
39
+        Dim DataGridViewCellStyle26 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
40
+        Dim DataGridViewCellStyle27 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
41
+        Dim DataGridViewCellStyle28 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
42
+        Dim DataGridViewCellStyle29 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
43
+        Dim DataGridViewCellStyle30 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
44
+        Dim DataGridViewCellStyle31 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
45
+        Dim DataGridViewCellStyle32 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
46
+        Dim DataGridViewCellStyle33 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
47
+        Dim DataGridViewCellStyle34 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
48
+        Dim DataGridViewCellStyle35 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
49
+        Dim DataGridViewCellStyle36 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
50
+        Dim DataGridViewCellStyle37 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
51
+        Dim DataGridViewCellStyle38 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
52
+        Dim ChartArea8 As System.Windows.Forms.DataVisualization.Charting.ChartArea = New System.Windows.Forms.DataVisualization.Charting.ChartArea()
53
+        Dim Legend8 As System.Windows.Forms.DataVisualization.Charting.Legend = New System.Windows.Forms.DataVisualization.Charting.Legend()
54
+        Dim Series8 As System.Windows.Forms.DataVisualization.Charting.Series = New System.Windows.Forms.DataVisualization.Charting.Series()
55
+        Dim DataGridViewCellStyle39 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
56
+        Dim DataGridViewCellStyle40 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
57
+        Me.年份_cb = New System.Windows.Forms.ComboBox()
58
+        Me.Chart4 = New System.Windows.Forms.DataVisualization.Charting.Chart()
59
+        Me.Chart2 = New System.Windows.Forms.DataVisualization.Charting.Chart()
60
+        Me.Chart3 = New System.Windows.Forms.DataVisualization.Charting.Chart()
61
+        Me.加總4_tb = New System.Windows.Forms.TextBox()
62
+        Me.Label8 = New System.Windows.Forms.Label()
63
+        Me.加總3_tb = New System.Windows.Forms.TextBox()
64
+        Me.Label7 = New System.Windows.Forms.Label()
65
+        Me.主表8_dgv = New System.Windows.Forms.DataGridView()
66
+        Me.加總2_tb = New System.Windows.Forms.TextBox()
67
+        Me.Label5 = New System.Windows.Forms.Label()
68
+        Me.Label6 = New System.Windows.Forms.Label()
69
+        Me.主項2_cb = New System.Windows.Forms.ComboBox()
70
+        Me.主表7_dgv = New System.Windows.Forms.DataGridView()
71
+        Me.主表6_dgv = New System.Windows.Forms.DataGridView()
72
+        Me.主表5_dgv = New System.Windows.Forms.DataGridView()
73
+        Me.加總1_tb = New System.Windows.Forms.TextBox()
74
+        Me.Label3 = New System.Windows.Forms.Label()
75
+        Me.Label4 = New System.Windows.Forms.Label()
76
+        Me.主項1_cb = New System.Windows.Forms.ComboBox()
77
+        Me.主表4_dgv = New System.Windows.Forms.DataGridView()
78
+        Me.主表3_dgv = New System.Windows.Forms.DataGridView()
79
+        Me.主表2_dgv = New System.Windows.Forms.DataGridView()
80
+        Me.加總_tb = New System.Windows.Forms.TextBox()
81
+        Me.Label2 = New System.Windows.Forms.Label()
82
+        Me.Label1 = New System.Windows.Forms.Label()
83
+        Me.主項_cb = New System.Windows.Forms.ComboBox()
84
+        Me.主表1_dgv = New System.Windows.Forms.DataGridView()
85
+        Me.主表_dgv = New System.Windows.Forms.DataGridView()
86
+        Me.Chart1 = New System.Windows.Forms.DataVisualization.Charting.Chart()
87
+        Me.Panel1 = New System.Windows.Forms.Panel()
88
+        Me.主表9_dgv = New System.Windows.Forms.DataGridView()
89
+        Me.隱加總_tb = New System.Windows.Forms.TextBox()
90
+        Me.隱加總1_tb = New System.Windows.Forms.TextBox()
91
+        Me.隱加總2_tb = New System.Windows.Forms.TextBox()
92
+        CType(Me.Chart4, System.ComponentModel.ISupportInitialize).BeginInit()
93
+        CType(Me.Chart2, System.ComponentModel.ISupportInitialize).BeginInit()
94
+        CType(Me.Chart3, System.ComponentModel.ISupportInitialize).BeginInit()
95
+        CType(Me.主表8_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
96
+        CType(Me.主表7_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
97
+        CType(Me.主表6_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
98
+        CType(Me.主表5_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
99
+        CType(Me.主表4_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
100
+        CType(Me.主表3_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
101
+        CType(Me.主表2_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
102
+        CType(Me.主表1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
103
+        CType(Me.主表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
104
+        CType(Me.Chart1, System.ComponentModel.ISupportInitialize).BeginInit()
105
+        Me.Panel1.SuspendLayout()
106
+        CType(Me.主表9_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
107
+        Me.SuspendLayout()
108
+        '
109
+        '年份_cb
110
+        '
111
+        Me.年份_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
112
+        Me.年份_cb.FormattingEnabled = True
113
+        Me.年份_cb.Items.AddRange(New Object() {"2019"})
114
+        Me.年份_cb.Location = New System.Drawing.Point(1805, 4)
115
+        Me.年份_cb.Name = "年份_cb"
116
+        Me.年份_cb.Size = New System.Drawing.Size(70, 24)
117
+        Me.年份_cb.TabIndex = 1174
118
+        '
119
+        'Chart4
120
+        '
121
+        Me.Chart4.BackColor = System.Drawing.SystemColors.Control
122
+        ChartArea5.AlignmentOrientation = CType((System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations.Vertical Or System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations.Horizontal), System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations)
123
+        ChartArea5.Area3DStyle.Inclination = 60
124
+        ChartArea5.AxisX.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount
125
+        ChartArea5.AxisX.IsLabelAutoFit = False
126
+        ChartArea5.AxisX.LabelAutoFitStyle = CType((((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont) _
127
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) _
128
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) _
129
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep45) _
130
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap), System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)
131
+        ChartArea5.AxisX.LabelStyle.IsStaggered = True
132
+        ChartArea5.AxisX.MaximumAutoSize = 100.0!
133
+        ChartArea5.AxisX.TitleFont = New System.Drawing.Font("微軟正黑體", 6.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
134
+        ChartArea5.AxisX2.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount
135
+        ChartArea5.AxisX2.MaximumAutoSize = 100.0!
136
+        ChartArea5.AxisY.MaximumAutoSize = 100.0!
137
+        ChartArea5.AxisY2.MaximumAutoSize = 100.0!
138
+        ChartArea5.Name = "ChartArea1"
139
+        Me.Chart4.ChartAreas.Add(ChartArea5)
140
+        Legend5.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
141
+        Legend5.IsTextAutoFit = False
142
+        Legend5.Name = "Legend1"
143
+        Me.Chart4.Legends.Add(Legend5)
144
+        Me.Chart4.Location = New System.Drawing.Point(1321, 697)
145
+        Me.Chart4.Name = "Chart4"
146
+        Series5.ChartArea = "ChartArea1"
147
+        Series5.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Pie
148
+        Series5.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
149
+        Series5.Legend = "Legend1"
150
+        Series5.Name = "Series1"
151
+        Me.Chart4.Series.Add(Series5)
152
+        Me.Chart4.Size = New System.Drawing.Size(554, 270)
153
+        Me.Chart4.TabIndex = 1173
154
+        Me.Chart4.Text = "Chart4"
155
+        '
156
+        'Chart2
157
+        '
158
+        Me.Chart2.BackColor = System.Drawing.SystemColors.Control
159
+        ChartArea6.AlignmentOrientation = CType((System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations.Vertical Or System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations.Horizontal), System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations)
160
+        ChartArea6.Area3DStyle.Inclination = 60
161
+        ChartArea6.AxisX.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount
162
+        ChartArea6.AxisX.IsLabelAutoFit = False
163
+        ChartArea6.AxisX.LabelAutoFitStyle = CType((((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont) _
164
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) _
165
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) _
166
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep45) _
167
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap), System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)
168
+        ChartArea6.AxisX.LabelStyle.IsStaggered = True
169
+        ChartArea6.AxisX.MaximumAutoSize = 100.0!
170
+        ChartArea6.AxisX.TitleFont = New System.Drawing.Font("微軟正黑體", 6.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
171
+        ChartArea6.AxisX2.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount
172
+        ChartArea6.AxisX2.MaximumAutoSize = 100.0!
173
+        ChartArea6.AxisY.MaximumAutoSize = 100.0!
174
+        ChartArea6.AxisY2.MaximumAutoSize = 100.0!
175
+        ChartArea6.Name = "ChartArea1"
176
+        Me.Chart2.ChartAreas.Add(ChartArea6)
177
+        Legend6.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
178
+        Legend6.IsTextAutoFit = False
179
+        Legend6.Name = "Legend1"
180
+        Me.Chart2.Legends.Add(Legend6)
181
+        Me.Chart2.Location = New System.Drawing.Point(695, 697)
182
+        Me.Chart2.Name = "Chart2"
183
+        Series6.ChartArea = "ChartArea1"
184
+        Series6.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Pie
185
+        Series6.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
186
+        Series6.Legend = "Legend1"
187
+        Series6.Name = "Series1"
188
+        Me.Chart2.Series.Add(Series6)
189
+        Me.Chart2.Size = New System.Drawing.Size(554, 270)
190
+        Me.Chart2.TabIndex = 1172
191
+        Me.Chart2.Text = "Chart2"
192
+        '
193
+        'Chart3
194
+        '
195
+        Me.Chart3.BackColor = System.Drawing.SystemColors.Control
196
+        ChartArea7.AlignmentOrientation = CType((System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations.Vertical Or System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations.Horizontal), System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations)
197
+        ChartArea7.Area3DStyle.Inclination = 60
198
+        ChartArea7.AxisX.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount
199
+        ChartArea7.AxisX.IsLabelAutoFit = False
200
+        ChartArea7.AxisX.LabelAutoFitStyle = CType((((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont) _
201
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) _
202
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) _
203
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep45) _
204
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap), System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)
205
+        ChartArea7.AxisX.LabelStyle.IsStaggered = True
206
+        ChartArea7.AxisX.MaximumAutoSize = 100.0!
207
+        ChartArea7.AxisX.TitleFont = New System.Drawing.Font("微軟正黑體", 6.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
208
+        ChartArea7.AxisX2.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount
209
+        ChartArea7.AxisX2.MaximumAutoSize = 100.0!
210
+        ChartArea7.AxisY.MaximumAutoSize = 100.0!
211
+        ChartArea7.AxisY2.MaximumAutoSize = 100.0!
212
+        ChartArea7.Name = "ChartArea1"
213
+        Me.Chart3.ChartAreas.Add(ChartArea7)
214
+        Legend7.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
215
+        Legend7.IsTextAutoFit = False
216
+        Legend7.Name = "Legend1"
217
+        Me.Chart3.Legends.Add(Legend7)
218
+        Me.Chart3.Location = New System.Drawing.Point(69, 697)
219
+        Me.Chart3.Name = "Chart3"
220
+        Series7.ChartArea = "ChartArea1"
221
+        Series7.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Pie
222
+        Series7.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
223
+        Series7.Legend = "Legend1"
224
+        Series7.Name = "Series1"
225
+        Me.Chart3.Series.Add(Series7)
226
+        Me.Chart3.Size = New System.Drawing.Size(554, 270)
227
+        Me.Chart3.TabIndex = 1171
228
+        Me.Chart3.Text = "Chart3"
229
+        '
230
+        '加總4_tb
231
+        '
232
+        Me.加總4_tb.ForeColor = System.Drawing.Color.Green
233
+        Me.加總4_tb.Location = New System.Drawing.Point(1729, 400)
234
+        Me.加總4_tb.Name = "加總4_tb"
235
+        Me.加總4_tb.Size = New System.Drawing.Size(146, 23)
236
+        Me.加總4_tb.TabIndex = 1169
237
+        Me.加總4_tb.Text = "0"
238
+        Me.加總4_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
239
+        '
240
+        'Label8
241
+        '
242
+        Me.Label8.AutoSize = True
243
+        Me.Label8.ForeColor = System.Drawing.Color.Green
244
+        Me.Label8.Location = New System.Drawing.Point(1670, 404)
245
+        Me.Label8.Name = "Label8"
246
+        Me.Label8.Size = New System.Drawing.Size(55, 16)
247
+        Me.Label8.TabIndex = 1168
248
+        Me.Label8.Text = "營運利潤"
249
+        '
250
+        '加總3_tb
251
+        '
252
+        Me.加總3_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
253
+        Me.加總3_tb.Location = New System.Drawing.Point(1519, 400)
254
+        Me.加總3_tb.Name = "加總3_tb"
255
+        Me.加總3_tb.Size = New System.Drawing.Size(146, 23)
256
+        Me.加總3_tb.TabIndex = 1167
257
+        Me.加總3_tb.Text = "0"
258
+        Me.加總3_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
259
+        '
260
+        'Label7
261
+        '
262
+        Me.Label7.AutoSize = True
263
+        Me.Label7.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
264
+        Me.Label7.Location = New System.Drawing.Point(1460, 404)
265
+        Me.Label7.Name = "Label7"
266
+        Me.Label7.Size = New System.Drawing.Size(55, 16)
267
+        Me.Label7.TabIndex = 1166
268
+        Me.Label7.Text = "營運餘額"
269
+        '
270
+        '主表8_dgv
271
+        '
272
+        DataGridViewCellStyle21.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
273
+        Me.主表8_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle21
274
+        Me.主表8_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
275
+        Me.主表8_dgv.BackgroundColor = System.Drawing.Color.White
276
+        Me.主表8_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
277
+        Me.主表8_dgv.Location = New System.Drawing.Point(1695, 31)
278
+        Me.主表8_dgv.Name = "主表8_dgv"
279
+        Me.主表8_dgv.RowHeadersWidth = 5
280
+        DataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
281
+        Me.主表8_dgv.RowsDefaultCellStyle = DataGridViewCellStyle22
282
+        Me.主表8_dgv.RowTemplate.Height = 24
283
+        Me.主表8_dgv.Size = New System.Drawing.Size(180, 366)
284
+        Me.主表8_dgv.TabIndex = 1165
285
+        '
286
+        '加總2_tb
287
+        '
288
+        Me.加總2_tb.Location = New System.Drawing.Point(1545, 5)
289
+        Me.加總2_tb.Name = "加總2_tb"
290
+        Me.加總2_tb.Size = New System.Drawing.Size(146, 23)
291
+        Me.加總2_tb.TabIndex = 1164
292
+        Me.加總2_tb.Text = "0"
293
+        Me.加總2_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
294
+        '
295
+        'Label5
296
+        '
297
+        Me.Label5.AutoSize = True
298
+        Me.Label5.Location = New System.Drawing.Point(1511, 9)
299
+        Me.Label5.Name = "Label5"
300
+        Me.Label5.Size = New System.Drawing.Size(31, 16)
301
+        Me.Label5.TabIndex = 1163
302
+        Me.Label5.Text = "加總"
303
+        '
304
+        'Label6
305
+        '
306
+        Me.Label6.AutoSize = True
307
+        Me.Label6.Location = New System.Drawing.Point(1260, 8)
308
+        Me.Label6.Name = "Label6"
309
+        Me.Label6.Size = New System.Drawing.Size(31, 16)
310
+        Me.Label6.TabIndex = 1162
311
+        Me.Label6.Text = "項目"
312
+        '
313
+        '主項2_cb
314
+        '
315
+        Me.主項2_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
316
+        Me.主項2_cb.FormattingEnabled = True
317
+        Me.主項2_cb.Items.AddRange(New Object() {"2019"})
318
+        Me.主項2_cb.Location = New System.Drawing.Point(1292, 4)
319
+        Me.主項2_cb.Name = "主項2_cb"
320
+        Me.主項2_cb.Size = New System.Drawing.Size(107, 24)
321
+        Me.主項2_cb.TabIndex = 1161
322
+        '
323
+        '主表7_dgv
324
+        '
325
+        DataGridViewCellStyle23.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
326
+        Me.主表7_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle23
327
+        Me.主表7_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
328
+        Me.主表7_dgv.BackgroundColor = System.Drawing.Color.White
329
+        Me.主表7_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
330
+        Me.主表7_dgv.Location = New System.Drawing.Point(1258, 230)
331
+        Me.主表7_dgv.Name = "主表7_dgv"
332
+        Me.主表7_dgv.RowHeadersWidth = 5
333
+        DataGridViewCellStyle24.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
334
+        Me.主表7_dgv.RowsDefaultCellStyle = DataGridViewCellStyle24
335
+        Me.主表7_dgv.RowTemplate.Height = 24
336
+        Me.主表7_dgv.Size = New System.Drawing.Size(435, 167)
337
+        Me.主表7_dgv.TabIndex = 1160
338
+        '
339
+        '主表6_dgv
340
+        '
341
+        DataGridViewCellStyle25.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
342
+        Me.主表6_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle25
343
+        Me.主表6_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
344
+        Me.主表6_dgv.BackgroundColor = System.Drawing.Color.White
345
+        Me.主表6_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
346
+        Me.主表6_dgv.Location = New System.Drawing.Point(1258, 31)
347
+        Me.主表6_dgv.Name = "主表6_dgv"
348
+        Me.主表6_dgv.RowHeadersWidth = 5
349
+        DataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
350
+        Me.主表6_dgv.RowsDefaultCellStyle = DataGridViewCellStyle26
351
+        Me.主表6_dgv.RowTemplate.Height = 24
352
+        Me.主表6_dgv.Size = New System.Drawing.Size(435, 197)
353
+        Me.主表6_dgv.TabIndex = 1159
354
+        '
355
+        '主表5_dgv
356
+        '
357
+        DataGridViewCellStyle27.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
358
+        Me.主表5_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle27
359
+        Me.主表5_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
360
+        Me.主表5_dgv.BackgroundColor = System.Drawing.Color.White
361
+        Me.主表5_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
362
+        Me.主表5_dgv.Location = New System.Drawing.Point(1069, 31)
363
+        Me.主表5_dgv.Name = "主表5_dgv"
364
+        Me.主表5_dgv.RowHeadersWidth = 5
365
+        DataGridViewCellStyle28.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
366
+        Me.主表5_dgv.RowsDefaultCellStyle = DataGridViewCellStyle28
367
+        Me.主表5_dgv.RowTemplate.Height = 24
368
+        Me.主表5_dgv.Size = New System.Drawing.Size(180, 366)
369
+        Me.主表5_dgv.TabIndex = 1158
370
+        '
371
+        '加總1_tb
372
+        '
373
+        Me.加總1_tb.Location = New System.Drawing.Point(919, 5)
374
+        Me.加總1_tb.Name = "加總1_tb"
375
+        Me.加總1_tb.Size = New System.Drawing.Size(146, 23)
376
+        Me.加總1_tb.TabIndex = 1157
377
+        Me.加總1_tb.Text = "0"
378
+        Me.加總1_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
379
+        '
380
+        'Label3
381
+        '
382
+        Me.Label3.AutoSize = True
383
+        Me.Label3.Location = New System.Drawing.Point(885, 9)
384
+        Me.Label3.Name = "Label3"
385
+        Me.Label3.Size = New System.Drawing.Size(31, 16)
386
+        Me.Label3.TabIndex = 1156
387
+        Me.Label3.Text = "加總"
388
+        '
389
+        'Label4
390
+        '
391
+        Me.Label4.AutoSize = True
392
+        Me.Label4.Location = New System.Drawing.Point(634, 8)
393
+        Me.Label4.Name = "Label4"
394
+        Me.Label4.Size = New System.Drawing.Size(31, 16)
395
+        Me.Label4.TabIndex = 1155
396
+        Me.Label4.Text = "項目"
397
+        '
398
+        '主項1_cb
399
+        '
400
+        Me.主項1_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
401
+        Me.主項1_cb.FormattingEnabled = True
402
+        Me.主項1_cb.Items.AddRange(New Object() {"2019"})
403
+        Me.主項1_cb.Location = New System.Drawing.Point(666, 4)
404
+        Me.主項1_cb.Name = "主項1_cb"
405
+        Me.主項1_cb.Size = New System.Drawing.Size(107, 24)
406
+        Me.主項1_cb.TabIndex = 1154
407
+        '
408
+        '主表4_dgv
409
+        '
410
+        DataGridViewCellStyle29.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
411
+        Me.主表4_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle29
412
+        Me.主表4_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
413
+        Me.主表4_dgv.BackgroundColor = System.Drawing.Color.White
414
+        Me.主表4_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
415
+        Me.主表4_dgv.Location = New System.Drawing.Point(632, 230)
416
+        Me.主表4_dgv.Name = "主表4_dgv"
417
+        Me.主表4_dgv.RowHeadersWidth = 5
418
+        DataGridViewCellStyle30.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
419
+        Me.主表4_dgv.RowsDefaultCellStyle = DataGridViewCellStyle30
420
+        Me.主表4_dgv.RowTemplate.Height = 24
421
+        Me.主表4_dgv.Size = New System.Drawing.Size(435, 167)
422
+        Me.主表4_dgv.TabIndex = 1153
423
+        '
424
+        '主表3_dgv
425
+        '
426
+        DataGridViewCellStyle31.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
427
+        Me.主表3_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle31
428
+        Me.主表3_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
429
+        Me.主表3_dgv.BackgroundColor = System.Drawing.Color.White
430
+        Me.主表3_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
431
+        Me.主表3_dgv.Location = New System.Drawing.Point(632, 31)
432
+        Me.主表3_dgv.Name = "主表3_dgv"
433
+        Me.主表3_dgv.RowHeadersWidth = 5
434
+        DataGridViewCellStyle32.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
435
+        Me.主表3_dgv.RowsDefaultCellStyle = DataGridViewCellStyle32
436
+        Me.主表3_dgv.RowTemplate.Height = 24
437
+        Me.主表3_dgv.Size = New System.Drawing.Size(435, 197)
438
+        Me.主表3_dgv.TabIndex = 1152
439
+        '
440
+        '主表2_dgv
441
+        '
442
+        DataGridViewCellStyle33.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
443
+        Me.主表2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle33
444
+        Me.主表2_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
445
+        Me.主表2_dgv.BackgroundColor = System.Drawing.Color.White
446
+        Me.主表2_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
447
+        Me.主表2_dgv.Location = New System.Drawing.Point(443, 31)
448
+        Me.主表2_dgv.Name = "主表2_dgv"
449
+        Me.主表2_dgv.RowHeadersWidth = 5
450
+        DataGridViewCellStyle34.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
451
+        Me.主表2_dgv.RowsDefaultCellStyle = DataGridViewCellStyle34
452
+        Me.主表2_dgv.RowTemplate.Height = 24
453
+        Me.主表2_dgv.Size = New System.Drawing.Size(180, 366)
454
+        Me.主表2_dgv.TabIndex = 1151
455
+        '
456
+        '加總_tb
457
+        '
458
+        Me.加總_tb.Location = New System.Drawing.Point(293, 5)
459
+        Me.加總_tb.Name = "加總_tb"
460
+        Me.加總_tb.Size = New System.Drawing.Size(146, 23)
461
+        Me.加總_tb.TabIndex = 1150
462
+        Me.加總_tb.Text = "0"
463
+        Me.加總_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
464
+        '
465
+        'Label2
466
+        '
467
+        Me.Label2.AutoSize = True
468
+        Me.Label2.Location = New System.Drawing.Point(259, 9)
469
+        Me.Label2.Name = "Label2"
470
+        Me.Label2.Size = New System.Drawing.Size(31, 16)
471
+        Me.Label2.TabIndex = 1149
472
+        Me.Label2.Text = "加總"
473
+        '
474
+        'Label1
475
+        '
476
+        Me.Label1.AutoSize = True
477
+        Me.Label1.Location = New System.Drawing.Point(8, 8)
478
+        Me.Label1.Name = "Label1"
479
+        Me.Label1.Size = New System.Drawing.Size(31, 16)
480
+        Me.Label1.TabIndex = 1148
481
+        Me.Label1.Text = "項目"
482
+        '
483
+        '主項_cb
484
+        '
485
+        Me.主項_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
486
+        Me.主項_cb.FormattingEnabled = True
487
+        Me.主項_cb.Items.AddRange(New Object() {"2019"})
488
+        Me.主項_cb.Location = New System.Drawing.Point(40, 4)
489
+        Me.主項_cb.Name = "主項_cb"
490
+        Me.主項_cb.Size = New System.Drawing.Size(107, 24)
491
+        Me.主項_cb.TabIndex = 1147
492
+        '
493
+        '主表1_dgv
494
+        '
495
+        DataGridViewCellStyle35.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
496
+        Me.主表1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle35
497
+        Me.主表1_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
498
+        Me.主表1_dgv.BackgroundColor = System.Drawing.Color.White
499
+        Me.主表1_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
500
+        Me.主表1_dgv.Location = New System.Drawing.Point(6, 230)
501
+        Me.主表1_dgv.Name = "主表1_dgv"
502
+        Me.主表1_dgv.RowHeadersWidth = 5
503
+        DataGridViewCellStyle36.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
504
+        Me.主表1_dgv.RowsDefaultCellStyle = DataGridViewCellStyle36
505
+        Me.主表1_dgv.RowTemplate.Height = 24
506
+        Me.主表1_dgv.Size = New System.Drawing.Size(435, 167)
507
+        Me.主表1_dgv.TabIndex = 1146
508
+        '
509
+        '主表_dgv
510
+        '
511
+        DataGridViewCellStyle37.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
512
+        Me.主表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle37
513
+        Me.主表_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
514
+        Me.主表_dgv.BackgroundColor = System.Drawing.Color.White
515
+        Me.主表_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
516
+        Me.主表_dgv.Location = New System.Drawing.Point(6, 31)
517
+        Me.主表_dgv.Name = "主表_dgv"
518
+        Me.主表_dgv.RowHeadersWidth = 5
519
+        DataGridViewCellStyle38.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
520
+        Me.主表_dgv.RowsDefaultCellStyle = DataGridViewCellStyle38
521
+        Me.主表_dgv.RowTemplate.Height = 24
522
+        Me.主表_dgv.Size = New System.Drawing.Size(435, 197)
523
+        Me.主表_dgv.TabIndex = 1145
524
+        '
525
+        'Chart1
526
+        '
527
+        Me.Chart1.BackColor = System.Drawing.SystemColors.Control
528
+        ChartArea8.AlignmentOrientation = CType((System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations.Vertical Or System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations.Horizontal), System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations)
529
+        ChartArea8.AxisX.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount
530
+        ChartArea8.AxisX.IsLabelAutoFit = False
531
+        ChartArea8.AxisX.LabelAutoFitStyle = CType((((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont) _
532
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) _
533
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) _
534
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep45) _
535
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap), System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)
536
+        ChartArea8.AxisX.LabelStyle.IsStaggered = True
537
+        ChartArea8.AxisX.MaximumAutoSize = 100.0!
538
+        ChartArea8.AxisX.TitleFont = New System.Drawing.Font("微軟正黑體", 6.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
539
+        ChartArea8.AxisX2.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount
540
+        ChartArea8.AxisX2.MaximumAutoSize = 100.0!
541
+        ChartArea8.AxisY.MaximumAutoSize = 100.0!
542
+        ChartArea8.AxisY2.MaximumAutoSize = 100.0!
543
+        ChartArea8.Name = "ChartArea1"
544
+        Me.Chart1.ChartAreas.Add(ChartArea8)
545
+        Legend8.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
546
+        Legend8.IsTextAutoFit = False
547
+        Legend8.Name = "Legend1"
548
+        Me.Chart1.Legends.Add(Legend8)
549
+        Me.Chart1.Location = New System.Drawing.Point(5, 420)
550
+        Me.Chart1.Name = "Chart1"
551
+        Series8.ChartArea = "ChartArea1"
552
+        Series8.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line
553
+        Series8.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
554
+        Series8.Legend = "Legend1"
555
+        Series8.Name = "Series1"
556
+        Me.Chart1.Series.Add(Series8)
557
+        Me.Chart1.Size = New System.Drawing.Size(1890, 275)
558
+        Me.Chart1.TabIndex = 1170
559
+        Me.Chart1.Text = "Chart1"
560
+        '
561
+        'Panel1
562
+        '
563
+        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
564
+        Me.Panel1.Controls.Add(Me.主表9_dgv)
565
+        Me.Panel1.Controls.Add(Me.隱加總_tb)
566
+        Me.Panel1.Controls.Add(Me.隱加總1_tb)
567
+        Me.Panel1.Controls.Add(Me.隱加總2_tb)
568
+        Me.Panel1.Location = New System.Drawing.Point(434, 425)
569
+        Me.Panel1.Name = "Panel1"
570
+        Me.Panel1.Size = New System.Drawing.Size(278, 96)
571
+        Me.Panel1.TabIndex = 1175
572
+        '
573
+        '主表9_dgv
574
+        '
575
+        DataGridViewCellStyle39.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
576
+        Me.主表9_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle39
577
+        Me.主表9_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
578
+        Me.主表9_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
579
+        Me.主表9_dgv.Location = New System.Drawing.Point(3, 3)
580
+        Me.主表9_dgv.Name = "主表9_dgv"
581
+        Me.主表9_dgv.RowHeadersWidth = 5
582
+        DataGridViewCellStyle40.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
583
+        Me.主表9_dgv.RowsDefaultCellStyle = DataGridViewCellStyle40
584
+        Me.主表9_dgv.RowTemplate.Height = 24
585
+        Me.主表9_dgv.Size = New System.Drawing.Size(111, 84)
586
+        Me.主表9_dgv.TabIndex = 1139
587
+        '
588
+        '隱加總_tb
589
+        '
590
+        Me.隱加總_tb.Location = New System.Drawing.Point(120, 3)
591
+        Me.隱加總_tb.Name = "隱加總_tb"
592
+        Me.隱加總_tb.Size = New System.Drawing.Size(146, 23)
593
+        Me.隱加總_tb.TabIndex = 1133
594
+        Me.隱加總_tb.Text = "0"
595
+        Me.隱加總_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
596
+        '
597
+        '隱加總1_tb
598
+        '
599
+        Me.隱加總1_tb.Location = New System.Drawing.Point(120, 32)
600
+        Me.隱加總1_tb.Name = "隱加總1_tb"
601
+        Me.隱加總1_tb.Size = New System.Drawing.Size(146, 23)
602
+        Me.隱加總1_tb.TabIndex = 1134
603
+        Me.隱加總1_tb.Text = "0"
604
+        Me.隱加總1_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
605
+        '
606
+        '隱加總2_tb
607
+        '
608
+        Me.隱加總2_tb.Location = New System.Drawing.Point(120, 61)
609
+        Me.隱加總2_tb.Name = "隱加總2_tb"
610
+        Me.隱加總2_tb.Size = New System.Drawing.Size(146, 23)
611
+        Me.隱加總2_tb.TabIndex = 1135
612
+        Me.隱加總2_tb.Text = "0"
613
+        Me.隱加總2_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
614
+        '
615
+        '財務_彙總表_ICS
616
+        '
617
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
618
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
619
+        Me.ClientSize = New System.Drawing.Size(1900, 971)
620
+        Me.Controls.Add(Me.年份_cb)
621
+        Me.Controls.Add(Me.Chart4)
622
+        Me.Controls.Add(Me.Chart2)
623
+        Me.Controls.Add(Me.Chart3)
624
+        Me.Controls.Add(Me.加總4_tb)
625
+        Me.Controls.Add(Me.Label8)
626
+        Me.Controls.Add(Me.加總3_tb)
627
+        Me.Controls.Add(Me.Label7)
628
+        Me.Controls.Add(Me.主表8_dgv)
629
+        Me.Controls.Add(Me.加總2_tb)
630
+        Me.Controls.Add(Me.Label5)
631
+        Me.Controls.Add(Me.Label6)
632
+        Me.Controls.Add(Me.主項2_cb)
633
+        Me.Controls.Add(Me.主表7_dgv)
634
+        Me.Controls.Add(Me.主表6_dgv)
635
+        Me.Controls.Add(Me.主表5_dgv)
636
+        Me.Controls.Add(Me.加總1_tb)
637
+        Me.Controls.Add(Me.Label3)
638
+        Me.Controls.Add(Me.Label4)
639
+        Me.Controls.Add(Me.主項1_cb)
640
+        Me.Controls.Add(Me.主表4_dgv)
641
+        Me.Controls.Add(Me.主表3_dgv)
642
+        Me.Controls.Add(Me.主表2_dgv)
643
+        Me.Controls.Add(Me.加總_tb)
644
+        Me.Controls.Add(Me.Label2)
645
+        Me.Controls.Add(Me.Label1)
646
+        Me.Controls.Add(Me.主項_cb)
647
+        Me.Controls.Add(Me.主表1_dgv)
648
+        Me.Controls.Add(Me.主表_dgv)
649
+        Me.Controls.Add(Me.Chart1)
650
+        Me.Controls.Add(Me.Panel1)
651
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
652
+        Me.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4)
653
+        Me.Name = "財務_彙總表_ICS"
654
+        Me.Text = "財務_彙總表_ICS"
655
+        CType(Me.Chart4, System.ComponentModel.ISupportInitialize).EndInit()
656
+        CType(Me.Chart2, System.ComponentModel.ISupportInitialize).EndInit()
657
+        CType(Me.Chart3, System.ComponentModel.ISupportInitialize).EndInit()
658
+        CType(Me.主表8_dgv, System.ComponentModel.ISupportInitialize).EndInit()
659
+        CType(Me.主表7_dgv, System.ComponentModel.ISupportInitialize).EndInit()
660
+        CType(Me.主表6_dgv, System.ComponentModel.ISupportInitialize).EndInit()
661
+        CType(Me.主表5_dgv, System.ComponentModel.ISupportInitialize).EndInit()
662
+        CType(Me.主表4_dgv, System.ComponentModel.ISupportInitialize).EndInit()
663
+        CType(Me.主表3_dgv, System.ComponentModel.ISupportInitialize).EndInit()
664
+        CType(Me.主表2_dgv, System.ComponentModel.ISupportInitialize).EndInit()
665
+        CType(Me.主表1_dgv, System.ComponentModel.ISupportInitialize).EndInit()
666
+        CType(Me.主表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
667
+        CType(Me.Chart1, System.ComponentModel.ISupportInitialize).EndInit()
668
+        Me.Panel1.ResumeLayout(False)
669
+        Me.Panel1.PerformLayout()
670
+        CType(Me.主表9_dgv, System.ComponentModel.ISupportInitialize).EndInit()
671
+        Me.ResumeLayout(False)
672
+        Me.PerformLayout()
673
+
674
+    End Sub
675
+
676
+    Friend WithEvents 年份_cb As ComboBox
677
+    Friend WithEvents Chart4 As DataVisualization.Charting.Chart
678
+    Friend WithEvents Chart2 As DataVisualization.Charting.Chart
679
+    Friend WithEvents Chart3 As DataVisualization.Charting.Chart
680
+    Friend WithEvents 加總4_tb As TextBox
681
+    Friend WithEvents Label8 As Label
682
+    Friend WithEvents 加總3_tb As TextBox
683
+    Friend WithEvents Label7 As Label
684
+    Friend WithEvents 主表8_dgv As DataGridView
685
+    Friend WithEvents 加總2_tb As TextBox
686
+    Friend WithEvents Label5 As Label
687
+    Friend WithEvents Label6 As Label
688
+    Friend WithEvents 主項2_cb As ComboBox
689
+    Friend WithEvents 主表7_dgv As DataGridView
690
+    Friend WithEvents 主表6_dgv As DataGridView
691
+    Friend WithEvents 主表5_dgv As DataGridView
692
+    Friend WithEvents 加總1_tb As TextBox
693
+    Friend WithEvents Label3 As Label
694
+    Friend WithEvents Label4 As Label
695
+    Friend WithEvents 主項1_cb As ComboBox
696
+    Friend WithEvents 主表4_dgv As DataGridView
697
+    Friend WithEvents 主表3_dgv As DataGridView
698
+    Friend WithEvents 主表2_dgv As DataGridView
699
+    Friend WithEvents 加總_tb As TextBox
700
+    Friend WithEvents Label2 As Label
701
+    Friend WithEvents Label1 As Label
702
+    Friend WithEvents 主項_cb As ComboBox
703
+    Friend WithEvents 主表1_dgv As DataGridView
704
+    Friend WithEvents 主表_dgv As DataGridView
705
+    Friend WithEvents Chart1 As DataVisualization.Charting.Chart
706
+    Friend WithEvents Panel1 As Panel
707
+    Friend WithEvents 主表9_dgv As DataGridView
708
+    Friend WithEvents 隱加總_tb As TextBox
709
+    Friend WithEvents 隱加總1_tb As TextBox
710
+    Friend WithEvents 隱加總2_tb As TextBox
711
+End Class

工巧明智能管理系統/我的系統/Bom表管理/機構組件-零件BOM表.resx → 工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_彙總表_ICS.resx ファイルの表示


+ 342
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_彙總表_ICS.vb ファイルの表示

@@ -0,0 +1,342 @@
1
+Imports System.Windows.Forms.DataVisualization.Charting
2
+Public Class 財務_彙總表_ICS
3
+    ReadOnly ds, ds1, ds2, ds3, ds4, ds5, ds6, ds7, ds8, ds9 As New DataSet
4
+    '-----------------------------第一區-----------------------------------------------------------------------------------------------------------------------
5
+    Private Sub Set_清單()
6
+        主表_dgv.DataSource = Nothing : ds.Clear() : 主表_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
7
+        主表_dgv.ColumnHeadersHeight = 30 : 主表_dgv.AllowUserToAddRows = False
8
+        ConnOpen()
9
+        SQL1 = "SELECT 日期, 子項, 子細項, SUM(金額) AS 金額 FROM 財務彙總紀錄_ICS 
10
+                WHERE (主項 LIKE '" & 主項_cb.Text & "') AND 日期 LIKE '%" & 年份_cb.Text & "%' GROUP BY 日期, 子項, 子細項 ORDER BY 日期, 子項, 子細項"
11
+        CmdSet_For_DGV() : da.Fill(ds) : 主表_dgv.DataSource = ds.Tables(0) : conn.Close()
12
+
13
+        主表_dgv.Columns(0).FillWeight = 70 : 主表_dgv.Columns(1).FillWeight = 100 : 主表_dgv.Columns(2).FillWeight = 120 : 主表_dgv.Columns(3).FillWeight = 80
14
+        主表_dgv.Columns(3).DefaultCellStyle.Format = "#,##0"
15
+        主表_dgv.Columns(3).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
16
+        Set_清單2() : Set_清單1()
17
+    End Sub
18
+    Private Sub Set_清單1()
19
+        主表1_dgv.DataSource = Nothing : ds1.Clear() : 主表1_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
20
+        主表1_dgv.ColumnHeadersHeight = 30 : 主表1_dgv.AllowUserToAddRows = False
21
+        ConnOpen()
22
+        SQL1 = "SELECT TOP(10) 子細項, SUM(金額) AS 金額, ABS(SUM(金額)) AS 比例 FROM 財務彙總紀錄_ICS 
23
+                WHERE (主項 LIKE '" & 主項_cb.Text & "') AND 子細項 NOT LIKE '%借款%' AND 子細項 NOT LIKE '%還款%' AND 日期 LIKE '%" & 年份_cb.Text & "%'
24
+                GROUP BY 子細項 ORDER BY 金額"
25
+        CmdSet_For_DGV() : da.Fill(ds1) : 主表1_dgv.DataSource = ds1.Tables(0) : conn.Close()
26
+
27
+        主表1_dgv.Columns(1).FillWeight = 130 : 主表1_dgv.Columns(1).FillWeight = 80 : 主表1_dgv.Columns(2).Visible = False
28
+        主表1_dgv.Columns(1).DefaultCellStyle.Format = "#,##0"
29
+        主表1_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
30
+        主表1_dgv.Columns(2).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
31
+
32
+        主表1_dgv.Sort(主表1_dgv.Columns("比例"), System.ComponentModel.ListSortDirection.Descending)
33
+    End Sub
34
+    Private Sub Set_清單2()
35
+        主表2_dgv.DataSource = Nothing : ds2.Clear() : 主表2_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
36
+        主表2_dgv.ColumnHeadersHeight = 30 : 主表2_dgv.AllowUserToAddRows = False
37
+        ConnOpen()
38
+        SQL1 = "SELECT 日期, SUM(金額) AS 金額 FROM 財務彙總紀錄_ICS 
39
+                WHERE (主項 LIKE '" & 主項_cb.Text & "') AND 日期 LIKE '%" & 年份_cb.Text & "%' GROUP BY 日期 ORDER BY 日期"
40
+        CmdSet_For_DGV() : da.Fill(ds2) : 主表2_dgv.DataSource = ds2.Tables(0) : conn.Close()
41
+
42
+        主表2_dgv.Columns(0).FillWeight = 70
43
+        主表2_dgv.Columns(1).DefaultCellStyle.Format = "#,##0"
44
+        主表2_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
45
+
46
+        加總_tb.Text = "0" : 隱加總_tb.Text = "0"
47
+        For I As Integer = 0 To 主表2_dgv.Rows.Count - 1
48
+            加總_tb.Text = Val(加總_tb.Text) + 主表2_dgv.Rows(I).Cells("金額").Value
49
+            隱加總_tb.Text = Val(隱加總_tb.Text) + 主表2_dgv.Rows(I).Cells("金額").Value
50
+        Next
51
+
52
+        加總_tb.Text = Format(Val(加總_tb.Text), "#,##0")
53
+
54
+        For I As Integer = 0 To 主表2_dgv.Rows.Count - 1
55
+            If 主項_cb.Text = "歲出合計" Then
56
+                主表2_dgv.Rows(I).Cells("金額").Value = 主表2_dgv.Rows(I).Cells("金額").Value * -1
57
+            End If
58
+        Next
59
+    End Sub
60
+    '-----------------------------第二區-----------------------------------------------------------------------------------------------------------------------
61
+    Private Sub Set_清單3()
62
+        主表3_dgv.DataSource = Nothing : ds3.Clear() : 主表3_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
63
+        主表3_dgv.ColumnHeadersHeight = 30 : 主表3_dgv.AllowUserToAddRows = False
64
+        ConnOpen()
65
+        SQL1 = "SELECT 日期, 子項, 子細項, SUM(金額) AS 金額 FROM 財務彙總紀錄_ICS 
66
+                WHERE (主項 LIKE '" & 主項1_cb.Text & "') AND 日期 LIKE '%" & 年份_cb.Text & "%' GROUP BY 日期, 子項, 子細項 ORDER BY 日期, 子項, 子細項"
67
+        CmdSet_For_DGV() : da.Fill(ds3) : 主表3_dgv.DataSource = ds3.Tables(0) : conn.Close()
68
+
69
+        主表3_dgv.Columns(0).FillWeight = 70 : 主表3_dgv.Columns(1).FillWeight = 100 : 主表3_dgv.Columns(2).FillWeight = 120 : 主表3_dgv.Columns(3).FillWeight = 80
70
+        主表3_dgv.Columns(3).DefaultCellStyle.Format = "#,##0"
71
+        主表3_dgv.Columns(3).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
72
+        Set_清單5() : Set_清單4()
73
+    End Sub
74
+    Private Sub Set_清單4()
75
+        主表4_dgv.DataSource = Nothing : ds4.Clear() : 主表4_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
76
+        主表4_dgv.ColumnHeadersHeight = 30 : 主表4_dgv.AllowUserToAddRows = False
77
+        ConnOpen()
78
+        SQL1 = "SELECT TOP(10) 子細項, SUM(金額) AS 金額, ABS(SUM(金額)) AS 比例 FROM 財務彙總紀錄_ICS 
79
+                WHERE (主項 LIKE '" & 主項1_cb.Text & "') AND 子細項 NOT LIKE '%借款%' AND 子細項 NOT LIKE '%還款%' AND 日期 LIKE '%" & 年份_cb.Text & "%' 
80
+                GROUP BY 子細項 ORDER BY 金額"
81
+        CmdSet_For_DGV() : da.Fill(ds4) : 主表4_dgv.DataSource = ds4.Tables(0) : conn.Close()
82
+
83
+        主表4_dgv.Columns(1).FillWeight = 130 : 主表4_dgv.Columns(1).FillWeight = 80 : 主表4_dgv.Columns(2).Visible = False
84
+        主表4_dgv.Columns(1).DefaultCellStyle.Format = "#,##0" : 主表4_dgv.Columns(2).DefaultCellStyle.Format = "#,##0"
85
+        主表4_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
86
+        主表4_dgv.Columns(2).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
87
+
88
+        主表4_dgv.Sort(主表4_dgv.Columns("比例"), System.ComponentModel.ListSortDirection.Descending)
89
+    End Sub
90
+    Private Sub Set_清單5()
91
+        主表5_dgv.DataSource = Nothing : ds5.Clear() : 主表5_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
92
+        主表5_dgv.ColumnHeadersHeight = 30 : 主表5_dgv.AllowUserToAddRows = False
93
+        ConnOpen()
94
+        SQL1 = "SELECT 日期, SUM(金額) AS 金額 FROM 財務彙總紀錄_ICS 
95
+                WHERE (主項 LIKE '" & 主項1_cb.Text & "') AND 日期 LIKE '%" & 年份_cb.Text & "%' GROUP BY 日期 ORDER BY 日期"
96
+        CmdSet_For_DGV() : da.Fill(ds5) : 主表5_dgv.DataSource = ds5.Tables(0) : conn.Close()
97
+
98
+        主表5_dgv.Columns(0).FillWeight = 70
99
+        主表5_dgv.Columns(1).DefaultCellStyle.Format = "#,##0"
100
+        主表5_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
101
+
102
+        加總1_tb.Text = "0" : 隱加總1_tb.Text = "0"
103
+        For I As Integer = 0 To 主表5_dgv.Rows.Count - 1
104
+            加總1_tb.Text = Val(加總1_tb.Text) + 主表5_dgv.Rows(I).Cells("金額").Value
105
+            隱加總1_tb.Text = Val(隱加總1_tb.Text) + 主表5_dgv.Rows(I).Cells("金額").Value
106
+        Next
107
+
108
+        加總1_tb.Text = Format(Val(加總1_tb.Text), "#,##0")
109
+
110
+        For I As Integer = 0 To 主表5_dgv.Rows.Count - 1
111
+            If 主項1_cb.Text = "歲出合計" Then
112
+                主表5_dgv.Rows(I).Cells("金額").Value = 主表5_dgv.Rows(I).Cells("金額").Value * -1
113
+            End If
114
+        Next
115
+    End Sub
116
+    '-----------------------------第三區-----------------------------------------------------------------------------------------------------------------------
117
+    Private Sub Set_清單6()
118
+        主表6_dgv.DataSource = Nothing : ds6.Clear() : 主表6_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
119
+        主表6_dgv.ColumnHeadersHeight = 30 : 主表6_dgv.AllowUserToAddRows = False
120
+        ConnOpen()
121
+        SQL1 = "SELECT 日期, 子項, 子細項, SUM(金額) AS 金額 FROM 財務彙總紀錄_ICS 
122
+                WHERE (主項 LIKE '" & 主項2_cb.Text & "') AND 日期 LIKE '%" & 年份_cb.Text & "%' GROUP BY 日期, 子項, 子細項 ORDER BY 日期, 子項, 子細項"
123
+        CmdSet_For_DGV() : da.Fill(ds6) : 主表6_dgv.DataSource = ds6.Tables(0) : conn.Close()
124
+
125
+        主表6_dgv.Columns(0).FillWeight = 70 : 主表6_dgv.Columns(1).FillWeight = 100 : 主表6_dgv.Columns(2).FillWeight = 120 : 主表6_dgv.Columns(3).FillWeight = 80
126
+        主表6_dgv.Columns(3).DefaultCellStyle.Format = "#,##0"
127
+        主表6_dgv.Columns(3).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
128
+        Set_清單8() : Set_清單7()
129
+    End Sub
130
+    Private Sub Set_清單7()
131
+        主表7_dgv.DataSource = Nothing : ds7.Clear() : 主表7_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
132
+        主表7_dgv.ColumnHeadersHeight = 30 : 主表7_dgv.AllowUserToAddRows = False
133
+        ConnOpen()
134
+        SQL1 = "SELECT TOP(10) 子細項, SUM(金額) AS 金額, ABS(SUM(金額)) AS 比例 FROM 財務彙總紀錄_ICS 
135
+                WHERE (主項 LIKE '" & 主項2_cb.Text & "') AND 子細項 NOT LIKE '%借款%' AND 子細項 NOT LIKE '%還款%' AND 日期 LIKE '%" & 年份_cb.Text & "%'
136
+                GROUP BY 子細項 ORDER BY 金額"
137
+        CmdSet_For_DGV() : da.Fill(ds7) : 主表7_dgv.DataSource = ds7.Tables(0) : conn.Close()
138
+
139
+        主表7_dgv.Columns(1).FillWeight = 130 : 主表7_dgv.Columns(1).FillWeight = 80 : 主表7_dgv.Columns(2).Visible = False
140
+        主表7_dgv.Columns(1).DefaultCellStyle.Format = "#,##0" : 主表7_dgv.Columns(2).DefaultCellStyle.Format = "#,##0"
141
+        主表7_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
142
+        主表7_dgv.Columns(2).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
143
+
144
+        主表7_dgv.Sort(主表7_dgv.Columns("比例"), System.ComponentModel.ListSortDirection.Descending)
145
+    End Sub
146
+    Private Sub Set_清單8()
147
+        主表8_dgv.DataSource = Nothing : ds8.Clear() : 主表8_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
148
+        主表8_dgv.ColumnHeadersHeight = 30 : 主表8_dgv.AllowUserToAddRows = False
149
+        ConnOpen()
150
+        SQL1 = "SELECT 日期, SUM(金額) AS 金額 FROM 財務彙總紀錄_ICS 
151
+                WHERE (主項 LIKE '" & 主項2_cb.Text & "') AND 日期 LIKE '%" & 年份_cb.Text & "%' GROUP BY 日期 ORDER BY 日期"
152
+        CmdSet_For_DGV() : da.Fill(ds8) : 主表8_dgv.DataSource = ds8.Tables(0) : conn.Close()
153
+
154
+        主表8_dgv.Columns(0).FillWeight = 70
155
+        主表8_dgv.Columns(1).DefaultCellStyle.Format = "#,##0"
156
+        主表8_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
157
+
158
+        加總2_tb.Text = "0" : 隱加總2_tb.Text = "0"
159
+        For I As Integer = 0 To 主表8_dgv.Rows.Count - 1
160
+            加總2_tb.Text = Val(加總2_tb.Text) + 主表8_dgv.Rows(I).Cells("金額").Value
161
+            隱加總2_tb.Text = Val(隱加總2_tb.Text) + 主表8_dgv.Rows(I).Cells("金額").Value
162
+        Next
163
+
164
+        加總2_tb.Text = Format(Val(加總2_tb.Text), "#,##0")
165
+
166
+        For I As Integer = 0 To 主表8_dgv.Rows.Count - 1
167
+            If 主項2_cb.Text = "歲出合計" Then
168
+                主表8_dgv.Rows(I).Cells("金額").Value = 主表8_dgv.Rows(I).Cells("金額").Value * -1
169
+            End If
170
+        Next
171
+    End Sub
172
+    Private Sub Set_清單9()
173
+        主表9_dgv.DataSource = Nothing : ds9.Clear() : 主表9_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
174
+        主表9_dgv.ColumnHeadersHeight = 30 : 主表9_dgv.AllowUserToAddRows = False
175
+        ConnOpen()
176
+        SQL1 = "SELECT 日期, 日期 AS 金額1, 日期 AS 金額2, 日期 AS 金額3 FROM 財務彙總紀錄_ICS WHERE 日期 LIKE '%" & 年份_cb.Text & "%' GROUP BY 日期 ORDER BY 日期"
177
+        CmdSet_For_DGV() : da.Fill(ds9) : 主表9_dgv.DataSource = ds9.Tables(0) : conn.Close()
178
+
179
+        For I As Integer = 0 To 主表9_dgv.Rows.Count - 1
180
+            主表9_dgv.Rows(I).Cells("金額1").Value = "0" : 主表9_dgv.Rows(I).Cells("金額2").Value = "0" : 主表9_dgv.Rows(I).Cells("金額3").Value = "0"
181
+        Next
182
+        For I As Integer = 0 To 主表9_dgv.Rows.Count - 1
183
+            For II As Integer = 0 To 主表2_dgv.Rows.Count - 1
184
+                If 主表9_dgv.Rows(I).Cells("日期").Value = 主表2_dgv.Rows(II).Cells("日期").Value Then
185
+                    主表9_dgv.Rows(I).Cells("金額1").Value = 主表2_dgv.Rows(II).Cells("金額").Value
186
+                End If
187
+            Next
188
+            For II As Integer = 0 To 主表5_dgv.Rows.Count - 1
189
+                If 主表9_dgv.Rows(I).Cells("日期").Value = 主表5_dgv.Rows(II).Cells("日期").Value Then
190
+                    主表9_dgv.Rows(I).Cells("金額2").Value = 主表5_dgv.Rows(II).Cells("金額").Value
191
+                End If
192
+            Next
193
+            For II As Integer = 0 To 主表8_dgv.Rows.Count - 1
194
+                If 主表9_dgv.Rows(I).Cells("日期").Value = 主表8_dgv.Rows(II).Cells("日期").Value Then
195
+                    主表9_dgv.Rows(I).Cells("金額3").Value = 主表8_dgv.Rows(II).Cells("金額").Value
196
+                End If
197
+            Next
198
+        Next
199
+    End Sub
200
+    Private Sub 彙總()
201
+        加總3_tb.Text = Val(隱加總_tb.Text) + Val(隱加總1_tb.Text) + Val(隱加總2_tb.Text)
202
+        If 主項_cb.Text = "資本" Then : 加總4_tb.Text = Val(隱加總1_tb.Text) + Val(隱加總2_tb.Text)
203
+        ElseIf 主項1_cb.Text = "資本" Then : 加總4_tb.Text = Val(隱加總_tb.Text) + Val(隱加總2_tb.Text)
204
+        ElseIf 主項2_cb.Text = "資本" Then : 加總4_tb.Text = Val(隱加總_tb.Text) + Val(隱加總1_tb.Text)
205
+        End If
206
+
207
+        加總4_tb.Text = Format(Val(加總4_tb.Text), "#,##0") : 加總3_tb.Text = Format(Val(加總3_tb.Text), "#,##0")
208
+        Set_清單9()
209
+
210
+        Chart1.Series.Clear() : Chart1.ChartAreas(0).AxisX.Minimum = 0
211
+        If 主項2_cb.Text <> "" Then
212
+            Chart1.Series.Add(主項2_cb.Text)
213
+            If 主項2_cb.Text = "資本" Then : Chart1.Series(主項2_cb.Text).ChartType = SeriesChartType.Line
214
+            Else : Chart1.Series(主項2_cb.Text).ChartType = SeriesChartType.Column : End If
215
+            For i As Integer = 0 To 主表9_dgv.Rows.Count - 1
216
+                Chart1.Series(主項2_cb.Text).Points.AddXY(主表9_dgv.Rows(i).Cells("日期").Value.ToString, 主表9_dgv.Rows(i).Cells("金額3").Value.ToString)
217
+            Next
218
+
219
+            Chart4.Series.Clear()
220
+            Chart4.Series.Add(主項2_cb.Text) : Chart4.Series(主項2_cb.Text).ChartType = SeriesChartType.Pie
221
+            Chart4.Series(主項2_cb.Text).IsValueShownAsLabel = True
222
+            Chart4.Series(主項2_cb.Text).IsVisibleInLegend = True
223
+            Chart4.Series(主項2_cb.Text).IsXValueIndexed = True
224
+            For i As Integer = 0 To 主表7_dgv.Rows.Count - 1
225
+                Chart4.Series(主項2_cb.Text).Points.AddXY(主表7_dgv.Rows(i).Cells("子細項").Value.ToString, Format(主表7_dgv.Rows(i).Cells("金額").Value, "#,##0"))
226
+            Next
227
+        End If
228
+
229
+        If 主項1_cb.Text <> "" Then
230
+            Chart1.Series.Add(主項1_cb.Text)
231
+            If 主項1_cb.Text = "資本" Then : Chart1.Series(主項1_cb.Text).ChartType = SeriesChartType.Line
232
+            Else : Chart1.Series(主項1_cb.Text).ChartType = SeriesChartType.Column : End If
233
+            For i As Integer = 0 To 主表9_dgv.Rows.Count - 1
234
+                Chart1.Series(主項1_cb.Text).Points.AddXY(主表9_dgv.Rows(i).Cells("日期").Value.ToString, 主表9_dgv.Rows(i).Cells("金額2").Value.ToString)
235
+            Next
236
+
237
+            Chart2.Series.Clear()
238
+            Chart2.Series.Add(主項1_cb.Text) : Chart2.Series(主項1_cb.Text).ChartType = SeriesChartType.Pie
239
+            Chart2.Series(主項1_cb.Text).IsValueShownAsLabel = True
240
+            Chart2.Series(主項1_cb.Text).IsVisibleInLegend = True
241
+            Chart2.Series(主項1_cb.Text).IsXValueIndexed = True
242
+            For i As Integer = 0 To 主表4_dgv.Rows.Count - 1
243
+                Chart2.Series(主項1_cb.Text).Points.AddXY(主表4_dgv.Rows(i).Cells("子細項").Value.ToString, Format(主表4_dgv.Rows(i).Cells("金額").Value, "#,##0"))
244
+            Next
245
+        End If
246
+
247
+        If 主項_cb.Text <> "" Then
248
+            Chart1.Series.Add(主項_cb.Text)
249
+            If 主項_cb.Text = "資本" Then : Chart1.Series(主項_cb.Text).ChartType = SeriesChartType.Line
250
+            Else : Chart1.Series(主項_cb.Text).ChartType = SeriesChartType.Column : End If
251
+            For i As Integer = 0 To 主表9_dgv.Rows.Count - 1
252
+                Chart1.Series(主項_cb.Text).Points.AddXY(主表9_dgv.Rows(i).Cells("日期").Value.ToString, 主表9_dgv.Rows(i).Cells("金額1").Value.ToString)
253
+            Next
254
+
255
+            Chart3.Series.Clear()
256
+            Chart3.Series.Add(主項_cb.Text) : Chart3.Series(主項_cb.Text).ChartType = SeriesChartType.Pie
257
+            Chart3.Series(主項_cb.Text).IsValueShownAsLabel = True
258
+            Chart3.Series(主項_cb.Text).IsVisibleInLegend = True
259
+            Chart3.Series(主項_cb.Text).IsXValueIndexed = True
260
+            For i As Integer = 0 To 主表1_dgv.Rows.Count - 1
261
+                Chart3.Series(主項_cb.Text).Points.AddXY(主表1_dgv.Rows(i).Cells("子細項").Value.ToString, Format(主表1_dgv.Rows(i).Cells("金額").Value, "#,##0"))
262
+            Next
263
+        End If
264
+    End Sub
265
+    Private Sub 主項下拉()
266
+        ConnOpen() : SQL1 = "SELECT  主項 FROM 財務彙總紀錄_ICS WHERE 主項 NOT LIKE '上月結存' GROUP BY 主項 ORDER BY 主項 DESC" : CmdSet_For_dr()
267
+        主項_cb.Items.Clear() : 主項1_cb.Items.Clear() : 主項2_cb.Items.Clear()
268
+        While (dr.Read()) : 主項_cb.Items.Add(dr("主項")) : 主項1_cb.Items.Add(dr("主項")) : 主項2_cb.Items.Add(dr("主項")) : End While : conn.Close()
269
+    End Sub
270
+    Private Sub ComboBox1下拉表單資料載入()
271
+        ConnOpen() : SQL1 = "SELECT  年份 FROM 年份清單 ORDER BY 年份 DESC" : CmdSet_For_dr()
272
+        年份_cb.Items.Clear() : 年份_cb.Items.Add("") : While (dr.Read()) : 年份_cb.Items.Add(dr("年份")) : End While : conn.Close()
273
+    End Sub
274
+    Private Sub 財務_彙總表_ICS_Load(sender As Object, e As EventArgs) Handles MyBase.Load
275
+        Me.MdiParent = GCM_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
276
+        GCM_ERP_SYS.WindowState = 2
277
+        ComboBox1下拉表單資料載入() : 主項下拉()
278
+        If 主項_cb.Items.Count >= 1 Then : 主項_cb.SelectedIndex = 0 : End If
279
+        If 主項_cb.Items.Count >= 2 Then : 主項1_cb.SelectedIndex = 1 : End If
280
+        If 主項_cb.Items.Count >= 3 Then : 主項2_cb.SelectedIndex = 2 : End If
281
+    End Sub
282
+    Private Sub 財務_彙總表_Closed(sender As Object, e As EventArgs) Handles MyBase.Closed
283
+        GCM_ERP_SYS.WindowState = 0
284
+    End Sub
285
+    Private Sub 主表_dgv_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 主表_dgv.RowPostPaint
286
+        Dim linePen As New Pen(Color.Blue, 2) : Dim linePen1 As New Pen(Color.Red, 2)
287
+        If e.RowIndex = 主表_dgv.Rows.Count - 1 Then : Exit Sub : Else
288
+            If 主表_dgv(0, e.RowIndex).Value.ToString <> 主表_dgv(0, e.RowIndex + 1).Value.ToString Then
289
+                Dim startX As Integer = IIf(主表_dgv.RowHeadersVisible, 主表_dgv.RowHeadersWidth, 0) : Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
290
+                Dim endX As Integer = startX + 主表_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 主表_dgv.HorizontalScrollingOffset
291
+                e.Graphics.DrawLine(linePen, startX, startY, endX, startY) : Exit Sub
292
+            End If
293
+            If 主表_dgv(1, e.RowIndex).Value.ToString <> 主表_dgv(1, e.RowIndex + 1).Value.ToString Then
294
+                Dim startX As Integer = IIf(主表_dgv.RowHeadersVisible, 主表_dgv.RowHeadersWidth, 0) : Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
295
+                Dim endX As Integer = startX + 主表_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 主表_dgv.HorizontalScrollingOffset
296
+                e.Graphics.DrawLine(linePen1, startX, startY, endX, startY) : Exit Sub
297
+            End If
298
+        End If
299
+    End Sub
300
+    Private Sub 主表3_dgv_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 主表3_dgv.RowPostPaint
301
+        Dim linePen As New Pen(Color.Blue, 2) : Dim linePen1 As New Pen(Color.Red, 2)
302
+        If e.RowIndex = 主表3_dgv.Rows.Count - 1 Then : Exit Sub : Else
303
+            If 主表3_dgv(0, e.RowIndex).Value.ToString <> 主表3_dgv(0, e.RowIndex + 1).Value.ToString Then
304
+                Dim startX As Integer = IIf(主表3_dgv.RowHeadersVisible, 主表3_dgv.RowHeadersWidth, 0) : Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
305
+                Dim endX As Integer = startX + 主表3_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 主表3_dgv.HorizontalScrollingOffset
306
+                e.Graphics.DrawLine(linePen, startX, startY, endX, startY) : Exit Sub
307
+            End If
308
+            If 主表3_dgv(1, e.RowIndex).Value.ToString <> 主表3_dgv(1, e.RowIndex + 1).Value.ToString Then
309
+                Dim startX As Integer = IIf(主表3_dgv.RowHeadersVisible, 主表3_dgv.RowHeadersWidth, 0) : Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
310
+                Dim endX As Integer = startX + 主表3_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 主表3_dgv.HorizontalScrollingOffset
311
+                e.Graphics.DrawLine(linePen1, startX, startY, endX, startY) : Exit Sub
312
+            End If
313
+        End If
314
+    End Sub
315
+    Private Sub 主表6_dgv_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 主表6_dgv.RowPostPaint
316
+        Dim linePen As New Pen(Color.Blue, 2) : Dim linePen1 As New Pen(Color.Red, 2)
317
+        If e.RowIndex = 主表6_dgv.Rows.Count - 1 Then : Exit Sub : Else
318
+            If 主表6_dgv(0, e.RowIndex).Value.ToString <> 主表6_dgv(0, e.RowIndex + 1).Value.ToString Then
319
+                Dim startX As Integer = IIf(主表6_dgv.RowHeadersVisible, 主表6_dgv.RowHeadersWidth, 0) : Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
320
+                Dim endX As Integer = startX + 主表6_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 主表6_dgv.HorizontalScrollingOffset
321
+                e.Graphics.DrawLine(linePen, startX, startY, endX, startY) : Exit Sub
322
+            End If
323
+            If 主表6_dgv(1, e.RowIndex).Value.ToString <> 主表6_dgv(1, e.RowIndex + 1).Value.ToString Then
324
+                Dim startX As Integer = IIf(主表6_dgv.RowHeadersVisible, 主表6_dgv.RowHeadersWidth, 0) : Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
325
+                Dim endX As Integer = startX + 主表6_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 主表6_dgv.HorizontalScrollingOffset
326
+                e.Graphics.DrawLine(linePen1, startX, startY, endX, startY) : Exit Sub
327
+            End If
328
+        End If
329
+    End Sub
330
+    Private Sub 主項_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 主項_cb.SelectedIndexChanged
331
+        Set_清單() : 彙總()
332
+    End Sub
333
+    Private Sub 主項1_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 主項1_cb.SelectedIndexChanged
334
+        Set_清單3() : 彙總()
335
+    End Sub
336
+    Private Sub 主項2_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 主項2_cb.SelectedIndexChanged
337
+        Set_清單6() : 彙總()
338
+    End Sub
339
+    Private Sub 年份_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 年份_cb.SelectedIndexChanged
340
+        Set_清單() : 彙總() : Set_清單3() : 彙總() : Set_清單6() : 彙總()
341
+    End Sub
342
+End Class

+ 1111
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單一覽表_ICS.Designer.vb
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 123
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單一覽表_ICS.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>

+ 580
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單一覽表_ICS.vb ファイルの表示

@@ -0,0 +1,580 @@
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 財務_收支單一覽表_ICS
13
+    ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet
14
+    Dim DTP As String : Dim N1 As Integer : Dim N2 As Integer : Dim 匯率1 As Double
15
+    Dim xlApp As Application
16
+    Dim xlBook As Workbook
17
+    Dim xlSheet As Worksheet
18
+    Private Sub Set_清單1()
19
+        收支單_dgv.DataSource = Nothing : ds1.Clear()
20
+        收支單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
21
+        收支單_dgv.ColumnHeadersHeight = 25
22
+        收支單_dgv.AllowUserToAddRows = False
23
+        ConnOpen()
24
+        SQL1 = "SELECT 支付單號 AS 收支單號, 申請人, 申請日期, 審核人, 審核日期, 核准圖檔,  簽名編碼 FROM 財務控制表_ICS 
25
+                WHERE (審核人 NOT LIKE '') AND (審核人 NOT LIKE '作廢%') AND 
26
+                審核日期 BETWEEN '" & Strings.Format(開始日期_dtp.Value, "yyyy/MM/dd") & "' AND '" & Strings.Format(結束日期_dtp.Value, "yyyy/MM/dd") & "'
27
+                ORDER BY 審核日期 DESC"
28
+        CmdSet_For_DGV() : da.Fill(ds1) : 收支單_dgv.DataSource = ds1.Tables(0) : conn.Close()
29
+
30
+        收支單_dgv.Columns(0).FillWeight = 160 : 收支單_dgv.Columns(1).Visible = False : 收支單_dgv.Columns(2).FillWeight = 100 : 收支單_dgv.Columns(3).Visible = False
31
+        收支單_dgv.Columns(4).FillWeight = 100 : 收支單_dgv.Columns(5).Visible = False : 收支單_dgv.Columns(6).Visible = False
32
+    End Sub
33
+    Private Sub Set_清單2()
34
+        彙總_dgv.DataSource = Nothing : ds2.Clear()
35
+        彙總_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
36
+        彙總_dgv.ColumnHeadersHeight = 25
37
+        彙總_dgv.AllowUserToAddRows = False
38
+        ConnOpen()
39
+        If 全部_ch.Checked = True And 含稅_ch.Checked = False And 非稅_ch.Checked = False Then
40
+            SQL2 = ""
41
+        ElseIf 全部_ch.Checked = False And 含稅_ch.Checked = True And 非稅_ch.Checked = False Then
42
+            SQL2 = " AND (財務流水帳_ICS.含稅 = 1)"
43
+        ElseIf 全部_ch.Checked = False And 含稅_ch.Checked = False And 非稅_ch.Checked = True Then
44
+            SQL2 = " AND (財務流水帳_ICS.含稅 = 0 OR 財務流水帳_ICS.含稅 IS NULL)"
45
+        End If
46
+        SQL1 = "SELECT      LEFT(財務控制表_ICS.審核日期, 7) AS 日期, 會計科目.第一階 AS 主項, 會計科目.第二階 AS 子項, 
47
+                            會計科目.會計科目 AS 子細項, SUM(財務流水帳_ICS.零用金) AS 零用金, SUM(財務流水帳_ICS.支票數) 
48
+                            AS 支票, SUM(Cast(財務流水帳_ICS.收入 AS money)) AS 收入, SUM(Cast(財務流水帳_ICS.支出 AS money)) AS 支出, 財務流水帳_ICS.銀行 AS 幣別, 財務流水帳_ICS.匯率
49
+                FROM        財務控制表_ICS RIGHT OUTER JOIN
50
+                            財務流水帳_ICS ON 財務控制表_ICS.支付單號 = 財務流水帳_ICS.支付單號 RIGHT OUTER JOIN
51
+                            會計科目 ON 財務流水帳_ICS.類別 = 會計科目.編號
52
+                WHERE      (財務控制表_ICS.審核日期 BETWEEN '" & Strings.Format(開始日期_dtp.Value, "yyyy/MM/dd") & "' AND '" & Strings.Format(結束日期_dtp.Value, "yyyy/MM/dd") & "') " & SQL2 & "
53
+                GROUP BY    會計科目.第一階, 會計科目.第二階, 會計科目.會計科目, LEFT(會計科目.編號, 7), 
54
+                            LEFT(財務控制表_ICS.審核日期, 7), 財務流水帳_ICS.銀行, 財務流水帳_ICS.匯率
55
+                ORDER BY    幣別, LEFT(財務控制表_ICS.審核日期, 7), LEFT(會計科目.編號, 7)"
56
+        CmdSet_For_DGV() : da.Fill(ds2) : 彙總_dgv.DataSource = ds2.Tables(0) : conn.Close()
57
+
58
+        彙總_dgv.Columns(0).FillWeight = 100 : 彙總_dgv.Columns(1).FillWeight = 140 : 彙總_dgv.Columns(2).FillWeight = 140 : 彙總_dgv.Columns(3).FillWeight = 140
59
+        彙總_dgv.Columns(4).FillWeight = 100 : 彙總_dgv.Columns(5).FillWeight = 100 : 彙總_dgv.Columns(6).FillWeight = 100 : 彙總_dgv.Columns(7).FillWeight = 100
60
+        彙總_dgv.Columns(8).FillWeight = 100 : 彙總_dgv.Columns(9).FillWeight = 100
61
+        彙總_dgv.Columns(6).DefaultCellStyle.Format = "#,##0.00" : 彙總_dgv.Columns(7).DefaultCellStyle.Format = "#,##0.00" : 彙總_dgv.Columns(4).DefaultCellStyle.Format = "#,##0.00"
62
+        彙總_dgv.Columns(5).DefaultCellStyle.Format = "#,##0.00"
63
+        彙總_dgv.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 彙總_dgv.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
64
+        彙總_dgv.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 彙總_dgv.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
65
+        彙總_dgv.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 彙總_dgv.Columns(4).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
66
+        彙總_dgv.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 彙總_dgv.Columns(5).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
67
+        彙總_dgv.Columns(8).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 彙總_dgv.Columns(8).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
68
+        彙總_dgv.Columns(9).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 彙總_dgv.Columns(9).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
69
+
70
+        彙總_dgv.Columns(0).ReadOnly = True : 彙總_dgv.Columns(1).ReadOnly = True : 彙總_dgv.Columns(2).ReadOnly = True : 彙總_dgv.Columns(3).ReadOnly = True
71
+        彙總_dgv.Columns(4).ReadOnly = True : 彙總_dgv.Columns(5).ReadOnly = True : 彙總_dgv.Columns(6).ReadOnly = True : 彙總_dgv.Columns(7).ReadOnly = True
72
+    End Sub
73
+    Private Sub Set_費用清單()
74
+        明細_dgv.DataSource = Nothing : ds.Clear()
75
+        明細_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
76
+        明細_dgv.ColumnHeadersHeight = 25
77
+        明細_dgv.AllowUserToAddRows = False
78
+        明細_dgv.RowTemplate.Height = 35
79
+        ConnOpen()
80
+        If 全部_ch.Checked = True And 含稅_ch.Checked = False And 非稅_ch.Checked = False Then
81
+            SQL2 = ""
82
+        ElseIf 全部_ch.Checked = False And 含稅_ch.Checked = True And 非稅_ch.Checked = False Then
83
+            SQL2 = " AND (財務流水帳_ICS.含稅 = 1)"
84
+        ElseIf 全部_ch.Checked = False And 含稅_ch.Checked = False And 非稅_ch.Checked = True Then
85
+            SQL2 = " AND (財務流水帳_ICS.含稅 = 0 OR 財務流水帳_ICS.含稅 IS NULL)"
86
+        End If
87
+        SQL1 = "SELECT      財務流水帳_ICS.支付單號, 財務流水帳_ICS.項次, 會計科目.會計科目, 財務流水帳_ICS.明細 AS 用途, 
88
+                            Cast(財務流水帳_ICS.零用金 AS money) AS 零用金, Cast(財務流水帳_ICS.支票數 AS money) AS 支票, Cast(財務流水帳_ICS.收入 AS money) AS 收入, 
89
+                            Cast(財務流水帳_ICS.支出 AS money) AS 支出, 財務流水帳_ICS.備註 AS 票期, 財務流水帳_ICS.匯率, 財務流水帳_ICS.銀行 AS 幣別, 財務流水帳_ICS.類別, 
90
+                            財務流水帳_ICS.流水號, 財務流水帳_ICS.含稅
91
+                FROM        財務流水帳_ICS INNER JOIN
92
+                            會計科目 ON 財務流水帳_ICS.類別 = 會計科目.編號
93
+                WHERE      (財務流水帳_ICS.支付單號 LIKE '" & 收支單號_tb.Text & "') " & SQL2 & "
94
+                ORDER BY    財務流水帳_ICS.項次"
95
+        CmdSet_For_DGV() : da.Fill(ds) : 明細_dgv.DataSource = ds.Tables(0) : conn.Close()
96
+
97
+        明細_dgv.Columns(0).Visible = False : 明細_dgv.Columns(1).FillWeight = 80 : 明細_dgv.Columns(2).FillWeight = 250 : 明細_dgv.Columns(3).FillWeight = 400
98
+        明細_dgv.Columns(4).Visible = False : 明細_dgv.Columns(5).FillWeight = 120 : 明細_dgv.Columns(6).FillWeight = 165 : 明細_dgv.Columns(7).FillWeight = 165
99
+        明細_dgv.Columns(8).FillWeight = 150 : 明細_dgv.Columns(9).FillWeight = 130 : 明細_dgv.Columns(10).FillWeight = 140 : 明細_dgv.Columns(11).Visible = False
100
+        明細_dgv.Columns(12).Visible = False : 明細_dgv.Columns(13).FillWeight = 80
101
+
102
+        明細_dgv.Columns(1).ReadOnly = True : 明細_dgv.Columns(2).ReadOnly = True : 明細_dgv.Columns(9).ReadOnly = True : 明細_dgv.Columns(10).ReadOnly = True
103
+
104
+        明細_dgv.Columns(4).DefaultCellStyle.Format = "#,##0.00" : 明細_dgv.Columns(5).DefaultCellStyle.Format = "#,##0.00" : 明細_dgv.Columns(6).DefaultCellStyle.Format = "#,##0.00"
105
+        明細_dgv.Columns(7).DefaultCellStyle.Format = "#,##0.00"
106
+        明細_dgv.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 明細_dgv.Columns(4).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
107
+        明細_dgv.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 明細_dgv.Columns(5).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
108
+        明細_dgv.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 明細_dgv.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
109
+        明細_dgv.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 明細_dgv.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
110
+        明細_dgv.Columns(9).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 明細_dgv.Columns(9).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
111
+        明細_dgv.Columns(10).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 明細_dgv.Columns(10).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
112
+        明細_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 明細_dgv.Columns(1).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
113
+
114
+        現1_tb.Text = "0.00" : 出1_tb.Text = "0.00" : 合1_tb.Text = "0.00" : 零1_tb.Text = "0.00" : 支1_tb.Text = "0.00"
115
+        零2_tb.Text = "0.00" : 支2_tb.Text = "0.00" : 現2_tb.Text = "0.00" : 出2_tb.Text = "0.00" : 合2_tb.Text = "0.00"
116
+        零3_tb.Text = "0.00" : 支3_tb.Text = "0.00" : 現3_tb.Text = "0.00" : 出3_tb.Text = "0.00" : 合3_tb.Text = "0.00"
117
+        零4_tb.Text = "0.00" : 支4_tb.Text = "0.00" : 現4_tb.Text = "0.00" : 出4_tb.Text = "0.00" : 合4_tb.Text = "0.00"
118
+        For i As Integer = 0 To 明細_dgv.Rows.Count - 1
119
+            If 明細_dgv.Rows(i).Cells("幣別").Value = "台幣現金" Then
120
+                現1_tb.Text = Val(現1_tb.Text) + 明細_dgv.Rows(i).Cells("收入").Value * 明細_dgv.Rows(i).Cells("匯率").Value
121
+                出1_tb.Text = Val(出1_tb.Text) + 明細_dgv.Rows(i).Cells("支出").Value * 明細_dgv.Rows(i).Cells("匯率").Value
122
+                零1_tb.Text = Val(零1_tb.Text) + 明細_dgv.Rows(i).Cells("零用金").Value * 明細_dgv.Rows(i).Cells("匯率").Value
123
+                支1_tb.Text = Val(支1_tb.Text) + 明細_dgv.Rows(i).Cells("支票").Value * 明細_dgv.Rows(i).Cells("匯率").Value
124
+            End If
125
+            If 明細_dgv.Rows(i).Cells("幣別").Value = "人民幣現金" Then
126
+                現2_tb.Text = Val(現2_tb.Text) + 明細_dgv.Rows(i).Cells("收入").Value : 出2_tb.Text = Val(出2_tb.Text) + 明細_dgv.Rows(i).Cells("支出").Value
127
+                零2_tb.Text = Val(零2_tb.Text) + 明細_dgv.Rows(i).Cells("零用金").Value : 支2_tb.Text = Val(支2_tb.Text) + 明細_dgv.Rows(i).Cells("支票").Value
128
+            End If
129
+            If 明細_dgv.Rows(i).Cells("幣別").Value = "美金" Then
130
+                現3_tb.Text = Val(現3_tb.Text) + 明細_dgv.Rows(i).Cells("收入").Value : 出3_tb.Text = Val(出3_tb.Text) + 明細_dgv.Rows(i).Cells("支出").Value
131
+                零3_tb.Text = Val(零3_tb.Text) + 明細_dgv.Rows(i).Cells("零用金").Value : 支3_tb.Text = Val(支3_tb.Text) + 明細_dgv.Rows(i).Cells("支票").Value
132
+            End If
133
+            If 明細_dgv.Rows(i).Cells("幣別").Value = "印尼盾" Then
134
+                現4_tb.Text = Val(現4_tb.Text) + 明細_dgv.Rows(i).Cells("收入").Value : 出4_tb.Text = Val(出4_tb.Text) + 明細_dgv.Rows(i).Cells("支出").Value
135
+                零4_tb.Text = Val(零4_tb.Text) + 明細_dgv.Rows(i).Cells("零用金").Value : 支4_tb.Text = Val(支4_tb.Text) + 明細_dgv.Rows(i).Cells("支票").Value
136
+            End If
137
+        Next i
138
+        合1_tb.Text = Val(零1_tb.Text) + Val(現1_tb.Text) - Val(出1_tb.Text) : 合2_tb.Text = Val(零2_tb.Text) + Val(現2_tb.Text) - Val(出2_tb.Text)
139
+        合3_tb.Text = Val(零3_tb.Text) + Val(現3_tb.Text) - Val(出3_tb.Text) : 合4_tb.Text = Val(零4_tb.Text) + Val(現4_tb.Text) - Val(出4_tb.Text)
140
+        If CLng(合1_tb.Text) >= 0 Then : 合1_tb.ForeColor = Color.Black : Else : 合1_tb.ForeColor = Color.Red : End If
141
+        If CLng(合2_tb.Text) >= 0 Then : 合2_tb.ForeColor = Color.Black : Else : 合2_tb.ForeColor = Color.Red : End If
142
+        If CLng(合3_tb.Text) >= 0 Then : 合3_tb.ForeColor = Color.Black : Else : 合3_tb.ForeColor = Color.Red : End If
143
+        If CLng(合4_tb.Text) >= 0 Then : 合4_tb.ForeColor = Color.Black : Else : 合4_tb.ForeColor = Color.Red : End If
144
+        現1_tb.Text = Strings.Format(Val(現1_tb.Text), "#,##0.00") : 出1_tb.Text = Strings.Format(Val(出1_tb.Text), "#,##0.00") : 合1_tb.Text = Strings.Format(Val(合1_tb.Text), "#,##0.00")
145
+        零1_tb.Text = Strings.Format(Val(零1_tb.Text), "#,##0.00") : 支1_tb.Text = Strings.Format(Val(支1_tb.Text), "#,##0.00")
146
+        零2_tb.Text = Strings.Format(Val(零2_tb.Text), "#,##0.00") : 支2_tb.Text = Strings.Format(Val(支2_tb.Text), "#,##0.00") : 現2_tb.Text = Strings.Format(Val(現2_tb.Text), "#,##0.00")
147
+        出2_tb.Text = Strings.Format(Val(出2_tb.Text), "#,##0.00") : 合2_tb.Text = Strings.Format(Val(合2_tb.Text), "#,##0.00")
148
+        零3_tb.Text = Strings.Format(Val(零3_tb.Text), "#,##0.00") : 支3_tb.Text = Strings.Format(Val(支3_tb.Text), "#,##0.00") : 現3_tb.Text = Strings.Format(Val(現3_tb.Text), "#,##0.00")
149
+        出3_tb.Text = Strings.Format(Val(出3_tb.Text), "#,##0.00") : 合3_tb.Text = Strings.Format(Val(合3_tb.Text), "#,##0.00")
150
+        零4_tb.Text = Strings.Format(Val(零4_tb.Text), "#,##0.00") : 支4_tb.Text = Strings.Format(Val(支4_tb.Text), "#,##0.00") : 現4_tb.Text = Strings.Format(Val(現4_tb.Text), "#,##0.00")
151
+        出4_tb.Text = Strings.Format(Val(出4_tb.Text), "#,##0.00") : 合4_tb.Text = Strings.Format(Val(合4_tb.Text), "#,##0.00")
152
+    End Sub
153
+    Private Sub 日期格式()
154
+        If 會計月_ch.Checked = True Then
155
+            '-------------日期一----------------------------------------------------------------------------------------
156
+            DTP = Strings.Left(Strings.Format(開始日期_dtp.Value, "yyyy/MM/dd"), 8) & "01" : 開始日期_dtp.Value = DTP
157
+            開始日期_dtp.Value = 開始日期_dtp.Value.AddMonths(-1)
158
+            DTP = Strings.Left(Strings.Format(開始日期_dtp.Value, "yyyy/MM/dd"), 8) & "26" : 開始日期_dtp.Value = DTP
159
+            '-------------日期二----------------------------------------------------------------------------------------
160
+            DTP = Strings.Left(Strings.Format(結束日期_dtp.Value, "yyyy/MM/dd"), 8) & "25" : 結束日期_dtp.Value = DTP
161
+        Else
162
+            '-------------日期一----------------------------------------------------------------------------------------
163
+            開始日期_dtp.Value = 開始日期_dtp.Value.AddMonths(1)
164
+            DTP = Strings.Left(Strings.Format(開始日期_dtp.Value, "yyyy/MM/dd"), 8) & "01" : 開始日期_dtp.Value = DTP
165
+            '-------------日期二----------------------------------------------------------------------------------------
166
+            DTP = Strings.Left(Strings.Format(結束日期_dtp.Value, "yyyy/MM/dd"), 8) & "01" : 結束日期_dtp.Value = DTP
167
+            結束日期_dtp.Value = 結束日期_dtp.Value.AddMonths(1) : 結束日期_dtp.Value = 結束日期_dtp.Value.AddDays(-1)
168
+        End If
169
+    End Sub
170
+    Private Sub 匯率()
171
+        ConnOpen()
172
+        SQL1 = "SELECT 中心匯率, 美金匯率, 印尼匯率 FROM 歷史匯率表 
173
+                WHERE (年 LIKE '" & Strings.Left(Strings.Format(申請日期_dtp.Value, "yyyyMMdd"), 4) & "%') AND 
174
+                      (月 LIKE '" & Strings.Mid(Strings.Format(申請日期_dtp.Value, "yyyyMMdd"), 5, 2) & "%')"
175
+        cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
176
+        If dr.Read() Then
177
+            人民幣匯率_tb.Text = dr("中心匯率").ToString : 美金匯率_tb.Text = dr("美金匯率").ToString : 印尼匯率_tb.Text = dr("印尼匯率").ToString : conn.Close() : dr.Close()
178
+        Else
179
+            conn.Close() : dr.Close() : 匯率修改.Close() : 匯率修改.Show() : 匯率修改.BringToFront()
180
+        End If
181
+    End Sub
182
+
183
+    Private Sub 財務_收支單一覽表_ICS_Load(sender As Object, e As EventArgs) Handles MyBase.Load
184
+        Me.MdiParent = GCM_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
185
+        DTP = Strings.Left(Strings.Format(Today(), "yyyy/MM/dd"), 8) & "01"
186
+        匯率() : 開始日期_dtp.Value = DTP : 結束日期_dtp.Value = Today()
187
+        日期格式() : 開始日期_dtp.Value = 開始日期_dtp.Value.AddMonths(-1) : 彙總_dgv.Visible = False : 明細_rb.Checked = True
188
+    End Sub
189
+    Dim 已超出 As Boolean
190
+    Private Sub 明細_dgv_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 明細_dgv.MouseUp
191
+        'If 明細_dgv.SelectedCells.Count = 1 Then : MsgBox(明細_dgv.SelectedCells(0).ColumnIndex & "  " & 明細_dgv.SelectedCells(0).RowIndex) : End If
192
+        If 明細_dgv.SelectedCells.Count = 1 Then : 已超出 = False : End If
193
+        If 明細_dgv.SelectedCells.Count > 0 Then
194
+            If 明細_dgv.SelectedCells(0).ColumnIndex >= 4 And 明細_dgv.SelectedCells(0).ColumnIndex <= 7 Then
195
+                If 已超出 = False Then
196
+                    Dim x As Double = 0
197
+                    For i As Integer = 0 To 明細_dgv.SelectedCells.Count - 1
198
+                        x += Val(明細_dgv.Rows(明細_dgv.SelectedCells.Item(i).RowIndex).Cells(明細_dgv.SelectedCells.Item(i).ColumnIndex).Value)
199
+                    Next i : GCM_ERP_SYS.合計_TSSL.Text = "合計 : " & Strings.Format(x, "#,##0")
200
+                Else : GCM_ERP_SYS.合計_TSSL.Text = "合計 : " & Strings.Format(0, "#,##0") : End If
201
+            Else : 已超出 = True : GCM_ERP_SYS.合計_TSSL.Text = "合計 : " & Strings.Format(0, "#,##0")
202
+            End If
203
+        End If
204
+    End Sub
205
+    Private Sub 彙總_dgv_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 彙總_dgv.MouseUp
206
+        'If 彙總_dgv.SelectedCells.Count = 1 Then : MsgBox(彙總_dgv.SelectedCells(0).ColumnIndex & "  " & 彙總_dgv.SelectedCells(0).RowIndex) : End If
207
+        If 彙總_dgv.SelectedCells.Count = 1 Then : 已超出 = False : End If
208
+        If 彙總_dgv.SelectedCells.Count > 0 Then
209
+            If 彙總_dgv.SelectedCells(0).ColumnIndex >= 4 And 彙總_dgv.SelectedCells(0).ColumnIndex <= 7 Then
210
+                If 已超出 = False Then
211
+                    Dim x As Double = 0
212
+                    For i As Integer = 0 To 彙總_dgv.SelectedCells.Count - 1
213
+                        x += Val(彙總_dgv.Rows(彙總_dgv.SelectedCells.Item(i).RowIndex).Cells(彙總_dgv.SelectedCells.Item(i).ColumnIndex).Value)
214
+                    Next i : GCM_ERP_SYS.合計_TSSL.Text = "合計 : " & Strings.Format(x, "#,##0")
215
+                Else : GCM_ERP_SYS.合計_TSSL.Text = "合計 : " & Strings.Format(0, "#,##0") : End If
216
+            Else : 已超出 = True : GCM_ERP_SYS.合計_TSSL.Text = "合計 : " & Strings.Format(0, "#,##0")
217
+            End If
218
+        End If
219
+    End Sub
220
+    Private Sub DataGridView4_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles 收支單_dgv.CellClick
221
+        If e.RowIndex = -1 Then : Else
222
+            收支單號_tb.Text = 收支單_dgv(0, e.RowIndex).Value.ToString : TextBox13.Text = 收支單_dgv(6, e.RowIndex).Value.ToString
223
+            申請人_tb.Text = 收支單_dgv(1, e.RowIndex).Value.ToString : 申請日期_dtp.Value = 收支單_dgv(2, e.RowIndex).Value.ToString
224
+            審核人_tb.Text = 收支單_dgv(3, e.RowIndex).Value.ToString : 審核日期_dtp.Value = 收支單_dgv(4, e.RowIndex).Value.ToString
225
+            TextBox14.Text = 收支單_dgv(5, e.RowIndex).Value.ToString
226
+            Set_費用清單()
227
+        End If
228
+    End Sub
229
+    Private Sub DataGridView2_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 彙總_dgv.RowPostPaint
230
+        Dim linePen As New Pen(Color.Blue, 2) : Dim linePen1 As New Pen(Color.Red, 2) : Dim linePen2 As New Pen(Color.Green, 2)
231
+        If e.RowIndex = 彙總_dgv.Rows.Count - 1 Then
232
+            Exit Sub
233
+        Else
234
+            If 彙總_dgv(0, e.RowIndex).Value.ToString <> 彙總_dgv(0, e.RowIndex + 1).Value.ToString Then
235
+                Dim startX As Integer = IIf(彙總_dgv.RowHeadersVisible, 彙總_dgv.RowHeadersWidth, 0)
236
+                Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
237
+                Dim endX As Integer = startX + 彙總_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 彙總_dgv.HorizontalScrollingOffset
238
+                e.Graphics.DrawLine(linePen, startX, startY, endX, startY)
239
+                Exit Sub
240
+            End If
241
+            If 彙總_dgv(8, e.RowIndex).Value.ToString <> 彙總_dgv(8, e.RowIndex + 1).Value.ToString Then
242
+                Dim startX As Integer = IIf(彙總_dgv.RowHeadersVisible, 彙總_dgv.RowHeadersWidth, 0)
243
+                Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
244
+                Dim endX As Integer = startX + 彙總_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 彙總_dgv.HorizontalScrollingOffset
245
+                e.Graphics.DrawLine(linePen2, startX, startY, endX, startY)
246
+                Exit Sub
247
+            End If
248
+            If 彙總_dgv(1, e.RowIndex).Value.ToString <> 彙總_dgv(1, e.RowIndex + 1).Value.ToString Then
249
+                Dim startX As Integer = IIf(彙總_dgv.RowHeadersVisible, 彙總_dgv.RowHeadersWidth, 0)
250
+                Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
251
+                Dim endX As Integer = startX + 彙總_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 彙總_dgv.HorizontalScrollingOffset
252
+                e.Graphics.DrawLine(linePen1, startX, startY, endX, startY)
253
+                Exit Sub
254
+            End If
255
+        End If
256
+    End Sub
257
+    Private Sub 全部_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 全部_ch.Click
258
+        全部_ch.Checked = True : 含稅_ch.Checked = False : 非稅_ch.Checked = False : Set_費用清單() : Set_清單2() : 彙總計算()
259
+    End Sub
260
+    Private Sub 含稅_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 含稅_ch.Click
261
+        全部_ch.Checked = False : 含稅_ch.Checked = True : 非稅_ch.Checked = False : Set_費用清單() : Set_清單2() : 彙總計算()
262
+    End Sub
263
+    Private Sub 非稅_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 非稅_ch.Click
264
+        全部_ch.Checked = False : 含稅_ch.Checked = False : 非稅_ch.Checked = True : Set_費用清單() : Set_清單2() : 彙總計算()
265
+    End Sub
266
+    Private Sub 當日_tb_Click(sender As Object, e As EventArgs) Handles 當日_tb.Click
267
+        DTP = Strings.Format(Today(), "yyyy/MM/dd")
268
+        開始日期_dtp.Value = DTP : 結束日期_dtp.Value = DTP
269
+    End Sub
270
+    Private Sub B當月_tb_Click(sender As Object, e As EventArgs) Handles 當月_tb.Click
271
+        DTP = Strings.Left(Strings.Format(Today(), "yyyy/MM/dd"), 8) & "01"
272
+        開始日期_dtp.Value = DTP : 結束日期_dtp.Value = Today()
273
+    End Sub
274
+    Private Sub 彙總計算()
275
+        If 明細_rb.Checked = False And 彙總_rb.Checked = True Then
276
+            現1_tb.Text = "0.00" : 出1_tb.Text = "0.00" : 合1_tb.Text = "0.00" : 零1_tb.Text = "0.00" : 支1_tb.Text = "0.00"
277
+            零2_tb.Text = "0.00" : 支2_tb.Text = "0.00" : 現2_tb.Text = "0.00" : 出2_tb.Text = "0.00" : 合2_tb.Text = "0.00"
278
+            零3_tb.Text = "0.00" : 支3_tb.Text = "0.00" : 現3_tb.Text = "0.00" : 出3_tb.Text = "0.00" : 合3_tb.Text = "0.00"
279
+            零4_tb.Text = "0.00" : 支4_tb.Text = "0.00" : 現4_tb.Text = "0.00" : 出4_tb.Text = "0.00" : 合4_tb.Text = "0.00"
280
+            For i As Integer = 0 To 彙總_dgv.Rows.Count - 1
281
+                If 彙總_dgv.Rows(i).Cells("幣別").Value = "台幣現金" Then
282
+                    If 彙總_dgv.Rows(i).Cells("主項").Value <> "上月結存" Then
283
+                        現1_tb.Text = Val(現1_tb.Text) + 彙總_dgv.Rows(i).Cells("收入").Value : 出1_tb.Text = Val(出1_tb.Text) + 彙總_dgv.Rows(i).Cells("支出").Value
284
+                        零1_tb.Text = Val(零1_tb.Text) + 彙總_dgv.Rows(i).Cells("零用金").Value : 支1_tb.Text = Val(支1_tb.Text) + 彙總_dgv.Rows(i).Cells("支票").Value
285
+                    End If
286
+                End If
287
+                If 彙總_dgv.Rows(i).Cells("幣別").Value = "人民幣現金" Then
288
+                    If 彙總_dgv.Rows(i).Cells("主項").Value <> "上月結存" Then
289
+                        現2_tb.Text = Val(現2_tb.Text) + 彙總_dgv.Rows(i).Cells("收入").Value : 出2_tb.Text = Val(出2_tb.Text) + 彙總_dgv.Rows(i).Cells("支出").Value
290
+                        零2_tb.Text = Val(零2_tb.Text) + 彙總_dgv.Rows(i).Cells("零用金").Value : 支2_tb.Text = Val(支2_tb.Text) + 彙總_dgv.Rows(i).Cells("支票").Value
291
+                    End If
292
+                End If
293
+                If 彙總_dgv.Rows(i).Cells("幣別").Value = "美金" Then
294
+                    If 彙總_dgv.Rows(i).Cells("主項").Value <> "上月結存" Then
295
+                        現3_tb.Text = Val(現3_tb.Text) + 彙總_dgv.Rows(i).Cells("收入").Value : 出3_tb.Text = Val(出3_tb.Text) + 彙總_dgv.Rows(i).Cells("支出").Value
296
+                        零3_tb.Text = Val(零3_tb.Text) + 彙總_dgv.Rows(i).Cells("零用金").Value : 支3_tb.Text = Val(支3_tb.Text) + 彙總_dgv.Rows(i).Cells("支票").Value
297
+                    End If
298
+                End If
299
+                If 彙總_dgv.Rows(i).Cells("幣別").Value = "印尼盾" Then
300
+                    If 彙總_dgv.Rows(i).Cells("主項").Value <> "上月結存" Then
301
+                        現4_tb.Text = Val(現4_tb.Text) + 彙總_dgv.Rows(i).Cells("收入").Value : 出4_tb.Text = Val(出4_tb.Text) + 彙總_dgv.Rows(i).Cells("支出").Value
302
+                        零4_tb.Text = Val(零4_tb.Text) + 彙總_dgv.Rows(i).Cells("零用金").Value : 支4_tb.Text = Val(支4_tb.Text) + 彙總_dgv.Rows(i).Cells("支票").Value
303
+                    End If
304
+                End If
305
+            Next i
306
+            合1_tb.Text = Val(零1_tb.Text) + Val(現1_tb.Text) - Val(出1_tb.Text) : 合2_tb.Text = Val(零2_tb.Text) + Val(現2_tb.Text) - Val(出2_tb.Text)
307
+            合3_tb.Text = Val(零3_tb.Text) + Val(現3_tb.Text) - Val(出3_tb.Text) : 合4_tb.Text = Val(零4_tb.Text) + Val(現4_tb.Text) - Val(出4_tb.Text)
308
+            If CLng(合1_tb.Text) >= 0 Then : 合1_tb.ForeColor = Color.Black : Else : 合1_tb.ForeColor = Color.Red : End If
309
+            If CLng(合2_tb.Text) >= 0 Then : 合2_tb.ForeColor = Color.Black : Else : 合2_tb.ForeColor = Color.Red : End If
310
+            If CLng(合3_tb.Text) >= 0 Then : 合3_tb.ForeColor = Color.Black : Else : 合3_tb.ForeColor = Color.Red : End If
311
+            If CLng(合4_tb.Text) >= 0 Then : 合4_tb.ForeColor = Color.Black : Else : 合4_tb.ForeColor = Color.Red : End If
312
+            現1_tb.Text = Strings.Format(Val(現1_tb.Text), "#,##0.00") : 出1_tb.Text = Strings.Format(Val(出1_tb.Text), "#,##0.00") : 合1_tb.Text = Strings.Format(Val(合1_tb.Text), "#,##0.00")
313
+            零1_tb.Text = Strings.Format(Val(零1_tb.Text), "#,##0.00") : 支1_tb.Text = Strings.Format(Val(支1_tb.Text), "#,##0.00")
314
+            零2_tb.Text = Strings.Format(Val(零2_tb.Text), "#,##0.00") : 支2_tb.Text = Strings.Format(Val(支2_tb.Text), "#,##0.00") : 現2_tb.Text = Strings.Format(Val(現2_tb.Text), "#,##0.00")
315
+            出2_tb.Text = Strings.Format(Val(出2_tb.Text), "#,##0.00") : 合2_tb.Text = Strings.Format(Val(合2_tb.Text), "#,##0.00")
316
+            零3_tb.Text = Strings.Format(Val(零3_tb.Text), "#,##0.00") : 支3_tb.Text = Strings.Format(Val(支3_tb.Text), "#,##0.00") : 現3_tb.Text = Strings.Format(Val(現3_tb.Text), "#,##0.00")
317
+            出3_tb.Text = Strings.Format(Val(出3_tb.Text), "#,##0.00") : 合3_tb.Text = Strings.Format(Val(合3_tb.Text), "#,##0.00")
318
+            零4_tb.Text = Strings.Format(Val(零4_tb.Text), "#,##0.00") : 支4_tb.Text = Strings.Format(Val(支4_tb.Text), "#,##0.00") : 現4_tb.Text = Strings.Format(Val(現4_tb.Text), "#,##0.00")
319
+            出4_tb.Text = Strings.Format(Val(出4_tb.Text), "#,##0.00") : 合4_tb.Text = Strings.Format(Val(合4_tb.Text), "#,##0.00")
320
+        End If
321
+    End Sub
322
+    Private Sub 上個月_bt_Click(sender As Object, e As EventArgs) Handles 上個月_bt.Click
323
+        If 會計月_ch.Checked = True Then
324
+            中間日期_dtp.Value = 中間日期_dtp.Value.AddMonths(-1)
325
+            開始日期_dtp.Value = 中間日期_dtp.Value
326
+            結束日期_dtp.Value = 中間日期_dtp.Value
327
+        Else
328
+            中間日期_dtp.Value = 中間日期_dtp.Value.AddMonths(-1)
329
+            開始日期_dtp.Value = 中間日期_dtp.Value.AddMonths(-1)
330
+            結束日期_dtp.Value = 中間日期_dtp.Value
331
+        End If
332
+        日期格式()
333
+    End Sub
334
+    Private Sub 下個月_bt_Click(sender As Object, e As EventArgs) Handles 下個月_bt.Click
335
+        If 會計月_ch.Checked = True Then
336
+            中間日期_dtp.Value = 中間日期_dtp.Value.AddMonths(1)
337
+            開始日期_dtp.Value = 中間日期_dtp.Value
338
+            結束日期_dtp.Value = 中間日期_dtp.Value
339
+        Else
340
+            中間日期_dtp.Value = 中間日期_dtp.Value.AddMonths(1)
341
+            開始日期_dtp.Value = 中間日期_dtp.Value.AddMonths(-1)
342
+            結束日期_dtp.Value = 中間日期_dtp.Value
343
+        End If
344
+        日期格式()
345
+    End Sub
346
+    Private Sub 開始日期_dtp_ValueChanged(sender As Object, e As EventArgs) Handles 開始日期_dtp.ValueChanged
347
+        Set_清單1() : Set_清單2() : 彙總計算()
348
+    End Sub
349
+    Private Sub 結束日期_dtp_ValueChanged(sender As Object, e As EventArgs) Handles 結束日期_dtp.ValueChanged
350
+        Set_清單1() : Set_清單2() : 彙總計算()
351
+    End Sub
352
+    Private Sub 會計月_CheckedChanged(sender As Object, e As EventArgs) Handles 會計月_ch.Click
353
+        會計月_ch.Checked = True : 一般月_ch.Checked = False : 日期格式()
354
+    End Sub
355
+    Private Sub 一般月_CheckedChanged(sender As Object, e As EventArgs) Handles 一般月_ch.Click
356
+        會計月_ch.Checked = False : 一般月_ch.Checked = True : 日期格式()
357
+    End Sub
358
+    Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles 明細_rb.Click
359
+        明細_dgv.Visible = True : 彙總_dgv.Visible = False : 明細_rb.Checked = True : 彙總_rb.Checked = False
360
+        現1_tb.Text = "0.00" : 出1_tb.Text = "0.00" : 合1_tb.Text = "0.00" : 零1_tb.Text = "0.00" : 支1_tb.Text = "0.00" : 收支單_dgv.Enabled = True
361
+    End Sub
362
+    Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles 彙總_rb.Click
363
+        明細_dgv.Visible = False : 彙總_dgv.Visible = True : 明細_rb.Checked = False : 彙總_rb.Checked = True
364
+        收支單號_tb.Text = "" : 申請人_tb.Text = "" : 審核人_tb.Text = "" : 明細_dgv.DataSource = Nothing : ds.Clear() : 收支單_dgv.Enabled = False
365
+        彙總計算()
366
+    End Sub
367
+    Private Sub TextBox14_TextChanged(sender As Object, e As EventArgs) Handles TextBox14.TextChanged
368
+        ConnOpen()
369
+        SQL1 = "SELECT 簽名檔圖片 FROM GCM主管簽名檔管理 WHERE 圖片流水號 LIKE '" & TextBox14.Text & "'"
370
+        cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
371
+        While dr.Read() = True
372
+            Dim unused As Byte() = New Byte(-1) {}
373
+            Dim bytes As Byte() = DirectCast(dr.Item("簽名檔圖片"), Byte())
374
+            Dim oStream As New MemoryStream(bytes)
375
+            PictureBox1.Image = Bitmap.FromStream(oStream)
376
+        End While
377
+        conn.Close()
378
+        PictureBox1.SizeMode = 4
379
+    End Sub
380
+    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles 列印_bt.Click
381
+        xlApp = CType(CreateObject("Excel.Application"), Application)
382
+        xlBook = xlApp.Workbooks.Add
383
+        xlApp.DisplayAlerts = True
384
+        xlBook.Activate()
385
+        xlSheet = NewMethod(xlBook)
386
+        xlSheet.Activate()
387
+        xlApp.Visible = True
388
+        xlApp.Application.WindowState = xlMaximized
389
+
390
+        xlSheet.Cells(1, 1) = "年度" : xlSheet.Cells(1, 2) = Year(Today) - 1911
391
+        If 明細_rb.Checked = True And 彙總_rb.Checked = False Then
392
+            xlSheet.Cells(1, 3) = "工巧明智能企業有限公司-營運費用收支明細表"
393
+            xlSheet.Cells(2, 1) = "收款日期" : xlSheet.Cells(2, 2) = "會計科目" : xlSheet.Cells(2, 3) = "客戶或用途"
394
+            xlSheet.Cells(2, 4) = "零用金" : xlSheet.Cells(2, 5) = "支票" : xlSheet.Cells(2, 6) = "收入" : xlSheet.Cells(2, 7) = "支出" : xlSheet.Cells(2, 8) = "現金餘額"
395
+            xlSheet.Cells(2, 9) = "票期"
396
+
397
+            For i As Integer = 0 To 明細_dgv.Rows.Count - 1
398
+                xlSheet.Cells(i + 3, 1) = 申請日期_dtp.Value : xlSheet.Cells(i + 3, 2) = 明細_dgv.Rows(i).Cells("會計科目").Value
399
+                xlSheet.Cells(i + 3, 3) = 明細_dgv.Rows(i).Cells("用途").Value : xlSheet.Cells(i + 3, 4) = 明細_dgv.Rows(i).Cells("零用金").Value
400
+                xlSheet.Cells(i + 3, 5) = 明細_dgv.Rows(i).Cells("支票").Value : xlSheet.Cells(i + 3, 6) = 明細_dgv.Rows(i).Cells("收入").Value
401
+                xlSheet.Cells(i + 3, 7) = 明細_dgv.Rows(i).Cells("支出").Value : xlSheet.Cells(i + 3, 9) = 明細_dgv.Rows(i).Cells("票期").Value
402
+                If i = 0 Then
403
+                    xlSheet.Cells(i + 3, 8) = "=D3+F3-G3"
404
+                Else
405
+                    xlSheet.Cells(i + 3, 8) = "=H" & i + 2 & "+D" & i + 3 & "+F" & i + 3 & "-G" & i + 3 & ""
406
+                End If
407
+                With xlApp.Selection
408
+                    .Font.Bold = True
409
+                End With
410
+                N1 = i + 3 : N2 = i + 3
411
+            Next i
412
+            xlSheet.Cells(N1 + 1, 3) = "以下空白" : xlSheet.Cells(N1 + 3, 1) = "簽核(點交)" : xlSheet.Cells(N1 + 3, 7) = "製表 : " & 申請人_tb.Text & " - " & 申請日期_dtp.Value
413
+            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 & ")"
414
+            xlSheet.Cells(N1 + 2, 7) = "=SUM(G3:G" & N1 + 1 & ")" : xlSheet.Cells(N1 + 2, 8) = "=H" & N1 : xlSheet.Cells(N1 + 2, 1) = "合計"
415
+
416
+            AA(xlApp, xlSheet) : BB(xlApp, xlSheet)
417
+        ElseIf 明細_rb.Checked = False And 彙總_rb.Checked = True Then
418
+            xlSheet.Cells(1, 3) = "工巧明智能企業有限公司-營運費用收支彙總簡表"
419
+            xlSheet.Cells(2, 1) = "日期" : xlSheet.Cells(2, 2) = "主項" : xlSheet.Cells(2, 3) = "子項" : xlSheet.Cells(2, 4) = "子細項" : xlSheet.Cells(2, 5) = "零用金"
420
+            xlSheet.Cells(2, 6) = "支票" : xlSheet.Cells(2, 7) = "收入" : xlSheet.Cells(2, 8) = "支出" : xlSheet.Cells(2, 9) = "現金餘額"
421
+
422
+            For i As Integer = 0 To 彙總_dgv.Rows.Count - 1
423
+                xlSheet.Cells(i + 3, 1) = 彙總_dgv.Rows(i).Cells("日期").Value
424
+                xlSheet.Cells(i + 3, 2) = 彙總_dgv.Rows(i).Cells("主項").Value
425
+                xlSheet.Cells(i + 3, 3) = 彙總_dgv.Rows(i).Cells("子項").Value
426
+                xlSheet.Cells(i + 3, 4) = 彙總_dgv.Rows(i).Cells("子細項").Value
427
+                xlSheet.Cells(i + 3, 5) = 彙總_dgv.Rows(i).Cells("零用金").Value
428
+                xlSheet.Cells(i + 3, 6) = 彙總_dgv.Rows(i).Cells("支票").Value
429
+                xlSheet.Cells(i + 3, 7) = 彙總_dgv.Rows(i).Cells("收入").Value
430
+                xlSheet.Cells(i + 3, 8) = 彙總_dgv.Rows(i).Cells("支出").Value
431
+                If i = 0 Then
432
+                    xlSheet.Cells(i + 3, 9) = "=E3+G3-H3"
433
+                Else
434
+                    xlSheet.Cells(i + 3, 9) = "=I" & i + 2 & "+E" & i + 3 & "+G" & i + 3 & "-H" & i + 3 & ""
435
+                End If
436
+                With xlApp.Selection
437
+                    .Font.Bold = True
438
+                End With
439
+                N1 = i + 3 : N2 = i + 3
440
+            Next i
441
+            xlSheet.Cells(N1 + 1, 2) = "以下空白" : xlSheet.Cells(N1 + 3, 1) = "簽核" : xlSheet.Cells(N1 + 3, 5) = "製表 : " & gUserName & " - " & Today()
442
+            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 & ")"
443
+            xlSheet.Cells(N1 + 2, 8) = "=SUM(H3:H" & N1 + 1 & ")" : xlSheet.Cells(N1 + 2, 9) = "=I" & N1 : xlSheet.Cells(N1 + 2, 1) = "合計"
444
+
445
+            CC(xlApp, xlSheet)
446
+        End If
447
+
448
+        xlSheet.PageSetup.PrintArea = ""
449
+        xlApp.Cells.Select()
450
+        xlSheet.Range("B1").Select()
451
+        xlApp.Application.WindowState = xlMinimized
452
+        xlSheet.Cells.Select()
453
+        xlApp.ActiveSheet.Protect(DrawingObjects:=True, Contents:=True, Scenarios:=True, Password:="0911274990")
454
+        xlApp.ActiveSheet.EnableSelection = 1
455
+        MsgBox("列印完成。")
456
+    End Sub
457
+    Private Shared Function NewMethod(xlBook As Workbook) As Worksheet
458
+        Return CType(xlBook.Worksheets.Add, Worksheet)
459
+    End Function
460
+    Private Sub AA(ByVal myExcel As Application, ByVal xlSheet As Worksheet)
461
+        xlSheet.Cells.Select()
462
+        With myExcel.Selection.Font : .Name = "微軟正黑體" : .Size = 10 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False
463
+            .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
464
+        End With
465
+
466
+        xlSheet.Columns("A:A").Select : myExcel.Selection.NumberFormatLocal = "m/d;@"
467
+        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
468
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
469
+        End With
470
+
471
+        xlSheet.Range("B1").Select()
472
+        With myExcel.Selection : .HorizontalAlignment = xlLeft : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
473
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
474
+        End With
475
+
476
+        xlSheet.Columns("B:B").Select : myExcel.Selection.ColumnWidth = 25
477
+        xlSheet.Columns("C:C").Select : myExcel.Selection.ColumnWidth = 30
478
+        xlSheet.Columns("D:H").Select : myExcel.Selection.ColumnWidth = 10 : myExcel.Selection.NumberFormatLocal = "#,##0;[紅色]-#,##0"
479
+        xlSheet.Columns("I:I").Select : myExcel.Selection.ColumnWidth = 10 : myExcel.Selection.NumberFormatLocal = "[$-zh-TW]e/m/d;@"
480
+        xlSheet.Rows("2:2").Select : myExcel.Selection.RowHeight = 25
481
+
482
+        xlSheet.Range("A2:I2").Select()
483
+        With myExcel.Selection : .HorizontalAlignment = xlGeneral : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
484
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
485
+        End With
486
+        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
487
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
488
+        End With
489
+
490
+        xlSheet.Range("A2:I" & N1 + 2).Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
491
+        With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
492
+        With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
493
+        With myExcel.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
494
+        With myExcel.Selection.Borders(xlEdgeRight) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
495
+        With myExcel.Selection.Borders(xlInsideVertical) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
496
+        With myExcel.Selection.Borders(xlInsideHorizontal) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
497
+        myExcel.ActiveWindow.DisplayGridlines = False
498
+
499
+        xlSheet.Rows("3:" & N1 + 2).Select : myExcel.Selection.RowHeight = 20
500
+        xlSheet.Rows(N1 + 3 & ":" & N1 + 3).Select : myExcel.Selection.RowHeight = 40
501
+
502
+        xlSheet.Columns("I:I").Select
503
+        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
504
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
505
+        End With
506
+
507
+        xlSheet.Range("A" & N1 + 2 & ":C" & N1 + 2).Select() : myExcel.Selection.Merge
508
+        With myExcel.Selection : .HorizontalAlignment = xlRight : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
509
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = True
510
+        End With
511
+
512
+        xlSheet.Rows("1:1").Select : myExcel.Selection.RowHeight = 25
513
+        With myExcel.Selection.Font : .Name = "微軟正黑體" : .Size = 14 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False
514
+            .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
515
+        End With
516
+    End Sub
517
+    Private Sub BB(ByVal myExcel As Application, ByVal xlSheet As Worksheet)
518
+        Clipboard.SetDataObject(PictureBox1.Image)
519
+        xlSheet.Range("B" & N2 + 3).Select()
520
+        myExcel.ActiveSheet.Pictures.Paste.Select
521
+        myExcel.Selection.ShapeRange.Height = 43
522
+        myExcel.Selection.ShapeRange.IncrementTop(3)
523
+    End Sub
524
+    Private Sub CC(ByVal myExcel As Application, ByVal xlSheet As Worksheet)
525
+        xlSheet.Cells.Select()
526
+        With myExcel.Selection.Font : .Name = "微軟正黑體" : .Size = 10 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False
527
+            .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
528
+        End With
529
+
530
+        xlSheet.Columns("A:A").Select : myExcel.Selection.ColumnWidth = 8
531
+        xlSheet.Columns("B:C").Select : myExcel.Selection.ColumnWidth = 15
532
+        xlSheet.Columns("D:D").Select : myExcel.Selection.ColumnWidth = 20
533
+        xlSheet.Columns("E:I").Select : myExcel.Selection.ColumnWidth = 10 : myExcel.Selection.NumberFormatLocal = "#,##0.00;[紅色]-#,##0.00"
534
+        xlSheet.Rows("1:1").Select : myExcel.Selection.RowHeight = 25
535
+        xlSheet.Rows("2:2").Select : myExcel.Selection.RowHeight = 25
536
+        xlSheet.Rows("3:" & N1 + 2).Select : myExcel.Selection.RowHeight = 20
537
+        xlSheet.Rows(N1 + 3 & ":" & N1 + 3).Select : myExcel.Selection.RowHeight = 40
538
+
539
+        xlSheet.Rows("2:2").Select
540
+        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
541
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
542
+        End With
543
+
544
+        xlSheet.Range("A1").Select()
545
+        With myExcel.Selection : .HorizontalAlignment = xlRight : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
546
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
547
+        End With
548
+
549
+        xlSheet.Range("B1").Select()
550
+        With myExcel.Selection : .HorizontalAlignment = xlLeft : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
551
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
552
+        End With
553
+
554
+        xlSheet.Rows("1:1").Select
555
+        With myExcel.Selection.Font : .Name = "微軟正黑體" : .Size = 16 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False
556
+            .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
557
+        End With
558
+
559
+        xlSheet.Range("A2:I" & N1 + 2).Select() : myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
560
+        With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
561
+        With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
562
+        With myExcel.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
563
+        With myExcel.Selection.Borders(xlEdgeRight) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
564
+        With myExcel.Selection.Borders(xlInsideVertical) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
565
+        With myExcel.Selection.Borders(xlInsideHorizontal) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
566
+
567
+        xlSheet.Range("A" & N1 + 2 & ":D" & N1 + 2).Select() : myExcel.Selection.Merge
568
+        With myExcel.Selection : .HorizontalAlignment = xlRight : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
569
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = True
570
+        End With
571
+
572
+        xlSheet.Columns("E:I").Select : myExcel.Selection.NumberFormatLocal = "#,##0.00;[紅色]-#,##0.00"
573
+        myExcel.ActiveWindow.DisplayGridlines = False
574
+    End Sub
575
+    '----------------------滑鼠右鍵--------------------------------------------------------------------------------------------------------------------------------------------------------------------
576
+    Private Sub 重新讀取ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 重新讀取ToolStripMenuItem.Click
577
+        Set_清單1() : Set_清單2() : 彙總計算()
578
+    End Sub
579
+
580
+End Class

+ 521
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單審核_ICS.Designer.vb ファイルの表示

@@ -0,0 +1,521 @@
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
+Partial Class 財務_收支單審核_ICS
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.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
30
+        Me.重新讀取ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
31
+        Me.ToolStripSeparator6 = New System.Windows.Forms.ToolStripSeparator()
32
+        Me.審核通過ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
33
+        Me.單據作廢ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
34
+        Me.印尼匯率_tb = New System.Windows.Forms.TextBox()
35
+        Me.美金匯率_tb = New System.Windows.Forms.TextBox()
36
+        Me.人民幣匯率_tb = New System.Windows.Forms.TextBox()
37
+        Me.TextBox14 = New System.Windows.Forms.TextBox()
38
+        Me.TextBox13 = New System.Windows.Forms.TextBox()
39
+        Me.Label20 = New System.Windows.Forms.Label()
40
+        Me.Label19 = New System.Windows.Forms.Label()
41
+        Me.PictureBox1 = New System.Windows.Forms.PictureBox()
42
+        Me.簽名檔_dgv = New System.Windows.Forms.DataGridView()
43
+        Me.Label11 = New System.Windows.Forms.Label()
44
+        Me.零用金_tb = New System.Windows.Forms.TextBox()
45
+        Me.餘額_tb = New System.Windows.Forms.TextBox()
46
+        Me.Label9 = New System.Windows.Forms.Label()
47
+        Me.支出_tb = New System.Windows.Forms.TextBox()
48
+        Me.Label6 = New System.Windows.Forms.Label()
49
+        Me.補單_ch = New System.Windows.Forms.CheckBox()
50
+        Me.Label2 = New System.Windows.Forms.Label()
51
+        Me.日期_dtp = New System.Windows.Forms.DateTimePicker()
52
+        Me.收入_tb = New System.Windows.Forms.TextBox()
53
+        Me.Label8 = New System.Windows.Forms.Label()
54
+        Me.Label3 = New System.Windows.Forms.Label()
55
+        Me.申請人_tb = New System.Windows.Forms.TextBox()
56
+        Me.收支單號_tb = New System.Windows.Forms.TextBox()
57
+        Me.單據作廢_bt = New System.Windows.Forms.Button()
58
+        Me.審核通過_bt = New System.Windows.Forms.Button()
59
+        Me.作廢的收支單_rb = New System.Windows.Forms.RadioButton()
60
+        Me.未核准的收支單_rb = New System.Windows.Forms.RadioButton()
61
+        Me.收支單_dgv = New System.Windows.Forms.DataGridView()
62
+        Me.支票_tb = New System.Windows.Forms.TextBox()
63
+        Me.明細_dgv = New System.Windows.Forms.DataGridView()
64
+        Me.Label10 = New System.Windows.Forms.Label()
65
+        Me.Label1 = New System.Windows.Forms.Label()
66
+        Me.ContextMenuStrip1.SuspendLayout()
67
+        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
68
+        CType(Me.簽名檔_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
69
+        CType(Me.收支單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
70
+        CType(Me.明細_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
71
+        Me.SuspendLayout()
72
+        '
73
+        'ContextMenuStrip1
74
+        '
75
+        Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.重新讀取ToolStripMenuItem, Me.ToolStripSeparator6, Me.審核通過ToolStripMenuItem, Me.單據作廢ToolStripMenuItem})
76
+        Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
77
+        Me.ContextMenuStrip1.Size = New System.Drawing.Size(123, 76)
78
+        '
79
+        '重新讀取ToolStripMenuItem
80
+        '
81
+        Me.重新讀取ToolStripMenuItem.Name = "重新讀取ToolStripMenuItem"
82
+        Me.重新讀取ToolStripMenuItem.Size = New System.Drawing.Size(122, 22)
83
+        Me.重新讀取ToolStripMenuItem.Text = "重新讀取"
84
+        '
85
+        'ToolStripSeparator6
86
+        '
87
+        Me.ToolStripSeparator6.Name = "ToolStripSeparator6"
88
+        Me.ToolStripSeparator6.Size = New System.Drawing.Size(119, 6)
89
+        '
90
+        '審核通過ToolStripMenuItem
91
+        '
92
+        Me.審核通過ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
93
+        Me.審核通過ToolStripMenuItem.Name = "審核通過ToolStripMenuItem"
94
+        Me.審核通過ToolStripMenuItem.Size = New System.Drawing.Size(122, 22)
95
+        Me.審核通過ToolStripMenuItem.Text = "審核通過"
96
+        '
97
+        '單據作廢ToolStripMenuItem
98
+        '
99
+        Me.單據作廢ToolStripMenuItem.ForeColor = System.Drawing.Color.Red
100
+        Me.單據作廢ToolStripMenuItem.Name = "單據作廢ToolStripMenuItem"
101
+        Me.單據作廢ToolStripMenuItem.Size = New System.Drawing.Size(122, 22)
102
+        Me.單據作廢ToolStripMenuItem.Text = "單據作廢"
103
+        '
104
+        '印尼匯率_tb
105
+        '
106
+        Me.印尼匯率_tb.Location = New System.Drawing.Point(894, 258)
107
+        Me.印尼匯率_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
108
+        Me.印尼匯率_tb.Name = "印尼匯率_tb"
109
+        Me.印尼匯率_tb.Size = New System.Drawing.Size(175, 23)
110
+        Me.印尼匯率_tb.TabIndex = 1032
111
+        Me.印尼匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
112
+        Me.印尼匯率_tb.Visible = False
113
+        '
114
+        '美金匯率_tb
115
+        '
116
+        Me.美金匯率_tb.Location = New System.Drawing.Point(894, 227)
117
+        Me.美金匯率_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
118
+        Me.美金匯率_tb.Name = "美金匯率_tb"
119
+        Me.美金匯率_tb.Size = New System.Drawing.Size(175, 23)
120
+        Me.美金匯率_tb.TabIndex = 1031
121
+        Me.美金匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
122
+        Me.美金匯率_tb.Visible = False
123
+        '
124
+        '人民幣匯率_tb
125
+        '
126
+        Me.人民幣匯率_tb.Location = New System.Drawing.Point(894, 196)
127
+        Me.人民幣匯率_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
128
+        Me.人民幣匯率_tb.Name = "人民幣匯率_tb"
129
+        Me.人民幣匯率_tb.Size = New System.Drawing.Size(175, 23)
130
+        Me.人民幣匯率_tb.TabIndex = 1030
131
+        Me.人民幣匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
132
+        Me.人民幣匯率_tb.Visible = False
133
+        '
134
+        'TextBox14
135
+        '
136
+        Me.TextBox14.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
137
+        Me.TextBox14.ForeColor = System.Drawing.Color.Blue
138
+        Me.TextBox14.Location = New System.Drawing.Point(219, 532)
139
+        Me.TextBox14.Name = "TextBox14"
140
+        Me.TextBox14.Size = New System.Drawing.Size(99, 23)
141
+        Me.TextBox14.TabIndex = 1029
142
+        Me.TextBox14.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
143
+        '
144
+        'TextBox13
145
+        '
146
+        Me.TextBox13.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
147
+        Me.TextBox13.ForeColor = System.Drawing.Color.Blue
148
+        Me.TextBox13.Location = New System.Drawing.Point(46, 532)
149
+        Me.TextBox13.Name = "TextBox13"
150
+        Me.TextBox13.Size = New System.Drawing.Size(120, 23)
151
+        Me.TextBox13.TabIndex = 1028
152
+        Me.TextBox13.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
153
+        '
154
+        'Label20
155
+        '
156
+        Me.Label20.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
157
+        Me.Label20.AutoSize = True
158
+        Me.Label20.ForeColor = System.Drawing.Color.Blue
159
+        Me.Label20.Location = New System.Drawing.Point(165, 535)
160
+        Me.Label20.Name = "Label20"
161
+        Me.Label20.Size = New System.Drawing.Size(55, 16)
162
+        Me.Label20.TabIndex = 1027
163
+        Me.Label20.Text = "圖片編碼"
164
+        '
165
+        'Label19
166
+        '
167
+        Me.Label19.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
168
+        Me.Label19.AutoSize = True
169
+        Me.Label19.ForeColor = System.Drawing.Color.Blue
170
+        Me.Label19.Location = New System.Drawing.Point(4, 535)
171
+        Me.Label19.Name = "Label19"
172
+        Me.Label19.Size = New System.Drawing.Size(43, 16)
173
+        Me.Label19.TabIndex = 1026
174
+        Me.Label19.Text = "驗證碼"
175
+        '
176
+        'PictureBox1
177
+        '
178
+        Me.PictureBox1.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
179
+        Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
180
+        Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
181
+        Me.PictureBox1.Location = New System.Drawing.Point(187, 559)
182
+        Me.PictureBox1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
183
+        Me.PictureBox1.Name = "PictureBox1"
184
+        Me.PictureBox1.Size = New System.Drawing.Size(129, 47)
185
+        Me.PictureBox1.TabIndex = 1025
186
+        Me.PictureBox1.TabStop = False
187
+        '
188
+        '簽名檔_dgv
189
+        '
190
+        Me.簽名檔_dgv.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
191
+        Me.簽名檔_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
192
+        Me.簽名檔_dgv.BackgroundColor = System.Drawing.Color.White
193
+        Me.簽名檔_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
194
+        Me.簽名檔_dgv.Location = New System.Drawing.Point(5, 559)
195
+        Me.簽名檔_dgv.Name = "簽名檔_dgv"
196
+        Me.簽名檔_dgv.RowHeadersWidth = 5
197
+        Me.簽名檔_dgv.RowTemplate.Height = 24
198
+        Me.簽名檔_dgv.Size = New System.Drawing.Size(180, 47)
199
+        Me.簽名檔_dgv.TabIndex = 1024
200
+        '
201
+        'Label11
202
+        '
203
+        Me.Label11.AutoSize = True
204
+        Me.Label11.Location = New System.Drawing.Point(490, 34)
205
+        Me.Label11.Name = "Label11"
206
+        Me.Label11.Size = New System.Drawing.Size(31, 16)
207
+        Me.Label11.TabIndex = 1022
208
+        Me.Label11.Text = "支票"
209
+        '
210
+        '零用金_tb
211
+        '
212
+        Me.零用金_tb.Location = New System.Drawing.Point(375, 31)
213
+        Me.零用金_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
214
+        Me.零用金_tb.Name = "零用金_tb"
215
+        Me.零用金_tb.Size = New System.Drawing.Size(113, 23)
216
+        Me.零用金_tb.TabIndex = 1021
217
+        Me.零用金_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
218
+        '
219
+        '餘額_tb
220
+        '
221
+        Me.餘額_tb.Location = New System.Drawing.Point(970, 31)
222
+        Me.餘額_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
223
+        Me.餘額_tb.Name = "餘額_tb"
224
+        Me.餘額_tb.Size = New System.Drawing.Size(113, 23)
225
+        Me.餘額_tb.TabIndex = 1019
226
+        Me.餘額_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
227
+        '
228
+        'Label9
229
+        '
230
+        Me.Label9.AutoSize = True
231
+        Me.Label9.Location = New System.Drawing.Point(937, 34)
232
+        Me.Label9.Name = "Label9"
233
+        Me.Label9.Size = New System.Drawing.Size(31, 16)
234
+        Me.Label9.TabIndex = 1018
235
+        Me.Label9.Text = "餘額"
236
+        '
237
+        '支出_tb
238
+        '
239
+        Me.支出_tb.Location = New System.Drawing.Point(822, 31)
240
+        Me.支出_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
241
+        Me.支出_tb.Name = "支出_tb"
242
+        Me.支出_tb.Size = New System.Drawing.Size(113, 23)
243
+        Me.支出_tb.TabIndex = 1017
244
+        Me.支出_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
245
+        '
246
+        'Label6
247
+        '
248
+        Me.Label6.AutoSize = True
249
+        Me.Label6.Location = New System.Drawing.Point(788, 34)
250
+        Me.Label6.Name = "Label6"
251
+        Me.Label6.Size = New System.Drawing.Size(31, 16)
252
+        Me.Label6.TabIndex = 1016
253
+        Me.Label6.Text = "支出"
254
+        '
255
+        '補單_ch
256
+        '
257
+        Me.補單_ch.AutoSize = True
258
+        Me.補單_ch.Checked = True
259
+        Me.補單_ch.CheckState = System.Windows.Forms.CheckState.Checked
260
+        Me.補單_ch.Location = New System.Drawing.Point(778, 7)
261
+        Me.補單_ch.Name = "補單_ch"
262
+        Me.補單_ch.Size = New System.Drawing.Size(38, 20)
263
+        Me.補單_ch.TabIndex = 1015
264
+        Me.補單_ch.Text = "補"
265
+        Me.補單_ch.UseVisualStyleBackColor = True
266
+        '
267
+        'Label2
268
+        '
269
+        Me.Label2.AutoSize = True
270
+        Me.Label2.ForeColor = System.Drawing.Color.Blue
271
+        Me.Label2.Location = New System.Drawing.Point(636, 8)
272
+        Me.Label2.Name = "Label2"
273
+        Me.Label2.Size = New System.Drawing.Size(31, 16)
274
+        Me.Label2.TabIndex = 1014
275
+        Me.Label2.Text = "日期"
276
+        '
277
+        '日期_dtp
278
+        '
279
+        Me.日期_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
280
+        Me.日期_dtp.Location = New System.Drawing.Point(675, 5)
281
+        Me.日期_dtp.Name = "日期_dtp"
282
+        Me.日期_dtp.Size = New System.Drawing.Size(97, 23)
283
+        Me.日期_dtp.TabIndex = 1013
284
+        '
285
+        '收入_tb
286
+        '
287
+        Me.收入_tb.Location = New System.Drawing.Point(673, 31)
288
+        Me.收入_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
289
+        Me.收入_tb.Name = "收入_tb"
290
+        Me.收入_tb.Size = New System.Drawing.Size(113, 23)
291
+        Me.收入_tb.TabIndex = 1012
292
+        Me.收入_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
293
+        '
294
+        'Label8
295
+        '
296
+        Me.Label8.AutoSize = True
297
+        Me.Label8.Location = New System.Drawing.Point(639, 34)
298
+        Me.Label8.Name = "Label8"
299
+        Me.Label8.Size = New System.Drawing.Size(31, 16)
300
+        Me.Label8.TabIndex = 1011
301
+        Me.Label8.Text = "收入"
302
+        '
303
+        'Label3
304
+        '
305
+        Me.Label3.AutoSize = True
306
+        Me.Label3.Location = New System.Drawing.Point(497, 8)
307
+        Me.Label3.Name = "Label3"
308
+        Me.Label3.Size = New System.Drawing.Size(43, 16)
309
+        Me.Label3.TabIndex = 1010
310
+        Me.Label3.Text = "申請人"
311
+        '
312
+        '申請人_tb
313
+        '
314
+        Me.申請人_tb.Location = New System.Drawing.Point(542, 5)
315
+        Me.申請人_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
316
+        Me.申請人_tb.Name = "申請人_tb"
317
+        Me.申請人_tb.Size = New System.Drawing.Size(92, 23)
318
+        Me.申請人_tb.TabIndex = 1009
319
+        '
320
+        '收支單號_tb
321
+        '
322
+        Me.收支單號_tb.Location = New System.Drawing.Point(374, 5)
323
+        Me.收支單號_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
324
+        Me.收支單號_tb.Name = "收支單號_tb"
325
+        Me.收支單號_tb.Size = New System.Drawing.Size(122, 23)
326
+        Me.收支單號_tb.TabIndex = 1007
327
+        '
328
+        '單據作廢_bt
329
+        '
330
+        Me.單據作廢_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
331
+        Me.單據作廢_bt.ForeColor = System.Drawing.Color.Red
332
+        Me.單據作廢_bt.Location = New System.Drawing.Point(1180, 5)
333
+        Me.單據作廢_bt.Name = "單據作廢_bt"
334
+        Me.單據作廢_bt.Size = New System.Drawing.Size(65, 49)
335
+        Me.單據作廢_bt.TabIndex = 1006
336
+        Me.單據作廢_bt.Text = "單據作廢"
337
+        Me.單據作廢_bt.UseVisualStyleBackColor = True
338
+        '
339
+        '審核通過_bt
340
+        '
341
+        Me.審核通過_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
342
+        Me.審核通過_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
343
+        Me.審核通過_bt.Location = New System.Drawing.Point(1112, 5)
344
+        Me.審核通過_bt.Name = "審核通過_bt"
345
+        Me.審核通過_bt.Size = New System.Drawing.Size(65, 49)
346
+        Me.審核通過_bt.TabIndex = 1005
347
+        Me.審核通過_bt.Text = "審核通過"
348
+        Me.審核通過_bt.UseVisualStyleBackColor = True
349
+        '
350
+        '作廢的收支單_rb
351
+        '
352
+        Me.作廢的收支單_rb.AutoSize = True
353
+        Me.作廢的收支單_rb.Location = New System.Drawing.Point(169, 5)
354
+        Me.作廢的收支單_rb.Name = "作廢的收支單_rb"
355
+        Me.作廢的收支單_rb.Size = New System.Drawing.Size(97, 20)
356
+        Me.作廢的收支單_rb.TabIndex = 1003
357
+        Me.作廢的收支單_rb.TabStop = True
358
+        Me.作廢的收支單_rb.Text = "作廢的收支單"
359
+        Me.作廢的收支單_rb.UseVisualStyleBackColor = True
360
+        '
361
+        '未核准的收支單_rb
362
+        '
363
+        Me.未核准的收支單_rb.AutoSize = True
364
+        Me.未核准的收支單_rb.Location = New System.Drawing.Point(5, 5)
365
+        Me.未核准的收支單_rb.Name = "未核准的收支單_rb"
366
+        Me.未核准的收支單_rb.Size = New System.Drawing.Size(109, 20)
367
+        Me.未核准的收支單_rb.TabIndex = 1002
368
+        Me.未核准的收支單_rb.TabStop = True
369
+        Me.未核准的收支單_rb.Text = "未核准的收支單"
370
+        Me.未核准的收支單_rb.UseVisualStyleBackColor = True
371
+        '
372
+        '收支單_dgv
373
+        '
374
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
375
+        Me.收支單_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
376
+        Me.收支單_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
377
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
378
+        Me.收支單_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
379
+        Me.收支單_dgv.BackgroundColor = System.Drawing.Color.White
380
+        Me.收支單_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
381
+        Me.收支單_dgv.Location = New System.Drawing.Point(5, 29)
382
+        Me.收支單_dgv.Name = "收支單_dgv"
383
+        Me.收支單_dgv.RowHeadersWidth = 5
384
+        Me.收支單_dgv.RowTemplate.Height = 24
385
+        Me.收支單_dgv.Size = New System.Drawing.Size(315, 499)
386
+        Me.收支單_dgv.TabIndex = 1001
387
+        '
388
+        '支票_tb
389
+        '
390
+        Me.支票_tb.Location = New System.Drawing.Point(524, 31)
391
+        Me.支票_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
392
+        Me.支票_tb.Name = "支票_tb"
393
+        Me.支票_tb.Size = New System.Drawing.Size(113, 23)
394
+        Me.支票_tb.TabIndex = 1023
395
+        Me.支票_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
396
+        '
397
+        '明細_dgv
398
+        '
399
+        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
400
+        Me.明細_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
401
+        Me.明細_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
402
+            Or System.Windows.Forms.AnchorStyles.Left) _
403
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
404
+        Me.明細_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
405
+        Me.明細_dgv.BackgroundColor = System.Drawing.Color.White
406
+        Me.明細_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
407
+        Me.明細_dgv.Location = New System.Drawing.Point(319, 57)
408
+        Me.明細_dgv.Name = "明細_dgv"
409
+        Me.明細_dgv.RowHeadersWidth = 5
410
+        DataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
411
+        Me.明細_dgv.RowsDefaultCellStyle = DataGridViewCellStyle3
412
+        Me.明細_dgv.RowTemplate.Height = 24
413
+        Me.明細_dgv.Size = New System.Drawing.Size(926, 549)
414
+        Me.明細_dgv.TabIndex = 1004
415
+        '
416
+        'Label10
417
+        '
418
+        Me.Label10.AutoSize = True
419
+        Me.Label10.Location = New System.Drawing.Point(323, 34)
420
+        Me.Label10.Name = "Label10"
421
+        Me.Label10.Size = New System.Drawing.Size(43, 16)
422
+        Me.Label10.TabIndex = 1020
423
+        Me.Label10.Text = "零用金"
424
+        '
425
+        'Label1
426
+        '
427
+        Me.Label1.AutoSize = True
428
+        Me.Label1.Location = New System.Drawing.Point(320, 9)
429
+        Me.Label1.Name = "Label1"
430
+        Me.Label1.Size = New System.Drawing.Size(55, 16)
431
+        Me.Label1.TabIndex = 1008
432
+        Me.Label1.Text = "收支單號"
433
+        '
434
+        '財務_收支單審核_ICS
435
+        '
436
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
437
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
438
+        Me.ClientSize = New System.Drawing.Size(1249, 611)
439
+        Me.Controls.Add(Me.印尼匯率_tb)
440
+        Me.Controls.Add(Me.美金匯率_tb)
441
+        Me.Controls.Add(Me.人民幣匯率_tb)
442
+        Me.Controls.Add(Me.TextBox14)
443
+        Me.Controls.Add(Me.TextBox13)
444
+        Me.Controls.Add(Me.Label20)
445
+        Me.Controls.Add(Me.Label19)
446
+        Me.Controls.Add(Me.PictureBox1)
447
+        Me.Controls.Add(Me.簽名檔_dgv)
448
+        Me.Controls.Add(Me.Label11)
449
+        Me.Controls.Add(Me.零用金_tb)
450
+        Me.Controls.Add(Me.餘額_tb)
451
+        Me.Controls.Add(Me.Label9)
452
+        Me.Controls.Add(Me.支出_tb)
453
+        Me.Controls.Add(Me.Label6)
454
+        Me.Controls.Add(Me.補單_ch)
455
+        Me.Controls.Add(Me.Label2)
456
+        Me.Controls.Add(Me.日期_dtp)
457
+        Me.Controls.Add(Me.收入_tb)
458
+        Me.Controls.Add(Me.Label8)
459
+        Me.Controls.Add(Me.Label3)
460
+        Me.Controls.Add(Me.申請人_tb)
461
+        Me.Controls.Add(Me.收支單號_tb)
462
+        Me.Controls.Add(Me.單據作廢_bt)
463
+        Me.Controls.Add(Me.審核通過_bt)
464
+        Me.Controls.Add(Me.作廢的收支單_rb)
465
+        Me.Controls.Add(Me.未核准的收支單_rb)
466
+        Me.Controls.Add(Me.收支單_dgv)
467
+        Me.Controls.Add(Me.支票_tb)
468
+        Me.Controls.Add(Me.明細_dgv)
469
+        Me.Controls.Add(Me.Label10)
470
+        Me.Controls.Add(Me.Label1)
471
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
472
+        Me.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4)
473
+        Me.Name = "財務_收支單審核_ICS"
474
+        Me.Text = "財務_收支單審核_ICS"
475
+        Me.ContextMenuStrip1.ResumeLayout(False)
476
+        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
477
+        CType(Me.簽名檔_dgv, System.ComponentModel.ISupportInitialize).EndInit()
478
+        CType(Me.收支單_dgv, System.ComponentModel.ISupportInitialize).EndInit()
479
+        CType(Me.明細_dgv, System.ComponentModel.ISupportInitialize).EndInit()
480
+        Me.ResumeLayout(False)
481
+        Me.PerformLayout()
482
+
483
+    End Sub
484
+    Friend WithEvents ContextMenuStrip1 As ContextMenuStrip
485
+    Friend WithEvents 重新讀取ToolStripMenuItem As ToolStripMenuItem
486
+    Friend WithEvents ToolStripSeparator6 As ToolStripSeparator
487
+    Friend WithEvents 審核通過ToolStripMenuItem As ToolStripMenuItem
488
+    Friend WithEvents 單據作廢ToolStripMenuItem As ToolStripMenuItem
489
+    Friend WithEvents 印尼匯率_tb As TextBox
490
+    Friend WithEvents 美金匯率_tb As TextBox
491
+    Friend WithEvents 人民幣匯率_tb As TextBox
492
+    Friend WithEvents TextBox14 As TextBox
493
+    Friend WithEvents TextBox13 As TextBox
494
+    Friend WithEvents Label20 As Label
495
+    Friend WithEvents Label19 As Label
496
+    Friend WithEvents PictureBox1 As PictureBox
497
+    Friend WithEvents 簽名檔_dgv As DataGridView
498
+    Friend WithEvents Label11 As Label
499
+    Friend WithEvents 零用金_tb As TextBox
500
+    Friend WithEvents 餘額_tb As TextBox
501
+    Friend WithEvents Label9 As Label
502
+    Friend WithEvents 支出_tb As TextBox
503
+    Friend WithEvents Label6 As Label
504
+    Friend WithEvents 補單_ch As CheckBox
505
+    Friend WithEvents Label2 As Label
506
+    Friend WithEvents 日期_dtp As DateTimePicker
507
+    Friend WithEvents 收入_tb As TextBox
508
+    Friend WithEvents Label8 As Label
509
+    Friend WithEvents Label3 As Label
510
+    Friend WithEvents 申請人_tb As TextBox
511
+    Friend WithEvents 收支單號_tb As TextBox
512
+    Friend WithEvents 單據作廢_bt As Button
513
+    Friend WithEvents 審核通過_bt As Button
514
+    Friend WithEvents 作廢的收支單_rb As RadioButton
515
+    Friend WithEvents 未核准的收支單_rb As RadioButton
516
+    Friend WithEvents 收支單_dgv As DataGridView
517
+    Friend WithEvents 支票_tb As TextBox
518
+    Friend WithEvents 明細_dgv As DataGridView
519
+    Friend WithEvents Label10 As Label
520
+    Friend WithEvents Label1 As Label
521
+End Class

+ 123
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單審核_ICS.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>

+ 281
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單審核_ICS.vb ファイルの表示

@@ -0,0 +1,281 @@
1
+Option Strict Off
2
+Imports System.IO
3
+Public Class 財務_收支單審核_ICS
4
+    ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet
5
+    Private ReadOnly QQW(11) As String
6
+    Dim DTP As String : Dim WWEE As String : Private II As Integer : Dim 匯率1 As Double
7
+    Private Sub Set_清單1()
8
+        收支單_dgv.DataSource = Nothing : ds1.Clear()
9
+        收支單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
10
+        收支單_dgv.ColumnHeadersHeight = 25
11
+        收支單_dgv.AllowUserToAddRows = False
12
+        ConnOpen()
13
+        If 未核准的收支單_rb.Checked = True And 作廢的收支單_rb.Checked = False Then
14
+            WWEE = "WHERE (審核人 LIKE '') "
15
+        ElseIf 未核准的收支單_rb.Checked = False And 作廢的收支單_rb.Checked = True Then
16
+            WWEE = "WHERE (審核人 LIKE '作廢%') "
17
+        End If
18
+        SQL1 = "SELECT 支付單號 AS 收支單號, 申請日期, 審核日期, 申請人 FROM 財務控制表_ICS " & WWEE & " ORDER BY 支付單號 DESC"
19
+        CmdSet_For_DGV() : da.Fill(ds1) : 收支單_dgv.DataSource = ds1.Tables(0) : conn.Close()
20
+
21
+        收支單_dgv.Columns(0).FillWeight = 160 : 收支單_dgv.Columns(1).FillWeight = 100 : 收支單_dgv.Columns(2).FillWeight = 100 : 收支單_dgv.Columns(3).Visible = False
22
+    End Sub
23
+    Private Sub Set_費用清單()
24
+        明細_dgv.DataSource = Nothing : ds.Clear()
25
+        明細_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
26
+        明細_dgv.ColumnHeadersHeight = 25
27
+        明細_dgv.AllowUserToAddRows = False
28
+        明細_dgv.RowTemplate.Height = 35
29
+        ConnOpen()
30
+        SQL1 = "SELECT      財務流水帳_ICS.支付單號, 財務流水帳_ICS.項次, 會計科目.會計科目, 財務流水帳_ICS.明細 AS 用途, 
31
+                            Cast(財務流水帳_ICS.零用金 AS money) AS 零用金, Cast(財務流水帳_ICS.支票數 AS money) AS 支票, Cast(財務流水帳_ICS.收入 AS money) AS 收入, 
32
+                            Cast(財務流水帳_ICS.支出 AS money) AS 支出, 財務流水帳_ICS.備註 AS 票期, 財務流水帳_ICS.匯率, 財務流水帳_ICS.銀行 AS 幣別, 財務流水帳_ICS.類別, 
33
+                            財務流水帳_ICS.流水號, 財務流水帳_ICS.含稅
34
+                FROM        財務流水帳_ICS INNER JOIN
35
+                            會計科目 ON 財務流水帳_ICS.類別 = 會計科目.編號
36
+                WHERE      (財務流水帳_ICS.支付單號 LIKE '" & 收支單號_tb.Text & "')
37
+                ORDER BY    財務流水帳_ICS.項次"
38
+        CmdSet_For_DGV() : da.Fill(ds) : 明細_dgv.DataSource = ds.Tables(0) : conn.Close()
39
+
40
+        明細_dgv.Columns(0).Visible = False : 明細_dgv.Columns(1).FillWeight = 80 : 明細_dgv.Columns(2).FillWeight = 250 : 明細_dgv.Columns(3).FillWeight = 400
41
+        明細_dgv.Columns(4).Visible = False : 明細_dgv.Columns(5).FillWeight = 120 : 明細_dgv.Columns(6).FillWeight = 165 : 明細_dgv.Columns(7).FillWeight = 165
42
+        明細_dgv.Columns(8).FillWeight = 150 : 明細_dgv.Columns(9).FillWeight = 130 : 明細_dgv.Columns(10).FillWeight = 140 : 明細_dgv.Columns(11).Visible = False
43
+        明細_dgv.Columns(12).Visible = False : 明細_dgv.Columns(13).FillWeight = 80
44
+
45
+        明細_dgv.Columns(1).ReadOnly = True : 明細_dgv.Columns(2).ReadOnly = True : 明細_dgv.Columns(9).ReadOnly = True : 明細_dgv.Columns(10).ReadOnly = True
46
+
47
+        明細_dgv.Columns(4).DefaultCellStyle.Format = "#,##0.00" : 明細_dgv.Columns(5).DefaultCellStyle.Format = "#,##0.00" : 明細_dgv.Columns(6).DefaultCellStyle.Format = "#,##0.00"
48
+        明細_dgv.Columns(7).DefaultCellStyle.Format = "#,##0.00" : 明細_dgv.Columns(8).DefaultCellStyle.Format = "#,##0.00"
49
+        明細_dgv.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 明細_dgv.Columns(4).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
50
+        明細_dgv.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 明細_dgv.Columns(5).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
51
+        明細_dgv.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 明細_dgv.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
52
+        明細_dgv.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 明細_dgv.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
53
+        明細_dgv.Columns(9).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 明細_dgv.Columns(9).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
54
+        明細_dgv.Columns(10).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 明細_dgv.Columns(10).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
55
+        明細_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 明細_dgv.Columns(1).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
56
+        明細_dgv.EditMode = DataGridViewEditMode.EditOnEnter
57
+
58
+        收入_tb.Text = "0" : 支出_tb.Text = "0" : 餘額_tb.Text = "0" : 零用金_tb.Text = "0" : 支票_tb.Text = "0"
59
+        For i As Integer = 0 To 明細_dgv.Rows.Count - 1
60
+            收入_tb.Text = Val(收入_tb.Text) + 明細_dgv.Rows(i).Cells("收入").Value * 明細_dgv.Rows(i).Cells("匯率").Value
61
+            支出_tb.Text = Val(支出_tb.Text) + 明細_dgv.Rows(i).Cells("支出").Value * 明細_dgv.Rows(i).Cells("匯率").Value
62
+            零用金_tb.Text = Val(零用金_tb.Text) + 明細_dgv.Rows(i).Cells("零用金").Value * 明細_dgv.Rows(i).Cells("匯率").Value
63
+            支票_tb.Text = Val(支票_tb.Text) + 明細_dgv.Rows(i).Cells("支票").Value * 明細_dgv.Rows(i).Cells("匯率").Value
64
+        Next i
65
+        餘額_tb.Text = Val(零用金_tb.Text) + Val(收入_tb.Text) - Val(支出_tb.Text)
66
+        If Val(餘額_tb.Text) > 0 Then : 餘額_tb.ForeColor = Color.Blue : Else : 餘額_tb.ForeColor = Color.Red : End If
67
+        收入_tb.Text = Format(Val(收入_tb.Text), "#,##0.00") : 支出_tb.Text = Format(Val(支出_tb.Text), "#,##0.00") : 餘額_tb.Text = Format(Val(餘額_tb.Text), "#,##0.00")
68
+        零用金_tb.Text = Format(Val(零用金_tb.Text), "#,##0.00") : 支票_tb.Text = Format(Val(支票_tb.Text), "#,##0.00")
69
+    End Sub
70
+    Private Sub Set_清單()
71
+        簽名檔_dgv.DataSource = Nothing : ds2.Clear()
72
+        簽名檔_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
73
+        簽名檔_dgv.ColumnHeadersHeight = 25
74
+        簽名檔_dgv.AllowUserToAddRows = False
75
+        ConnOpen()
76
+        SQL1 = "SELECT 圖片流水號 AS 圖檔編碼, 簽名檔人名 FROM GCM主管簽名檔管理 ORDER BY 圖片流水號 DESC"
77
+        CmdSet_For_DGV() : da.Fill(ds2) : 簽名檔_dgv.DataSource = ds2.Tables(0) : conn.Close()
78
+
79
+        簽名檔_dgv.Columns(0).FillWeight = 173 : 簽名檔_dgv.Columns(1).Visible = False
80
+        If 簽名檔_dgv.Rows.Count = 0 Then : Else
81
+            TextBox14.Text = 簽名檔_dgv(0, 0).Value.ToString
82
+            ConnOpen()
83
+            SQL1 = "SELECT 簽名檔圖片 FROM GCM主管簽名檔管理 WHERE 圖片流水號 LIKE '" & TextBox14.Text & "'"
84
+            cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
85
+            While dr.Read() = True
86
+                Dim unused As Byte() = New Byte(-1) {}
87
+                Dim bytes As Byte() = DirectCast(dr.Item("簽名檔圖片"), Byte())
88
+                Dim oStream As New MemoryStream(bytes)
89
+                PictureBox1.Image = Bitmap.FromStream(oStream)
90
+            End While
91
+            conn.Close()
92
+            PictureBox1.SizeMode = 4
93
+            For QAZ = 0 To 999
94
+                QQW(0) = Strings.Right(簽名檔_dgv(0, 0).Value.ToString, 2) : QQW(1) = Strings.Right(Year(Today), 2) : QQW(2) = Strings.Left(Year(Today), 2) : QQW(3) = Month(Today) + 9
95
+                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)
96
+                QQW(9) = Strings.Left(QQW(2), 1) : QQW(10) = Strings.Right(QQW(3), 1) : QQW(11) = Strings.Left(QQW(3), 1)
97
+                For RT = 4 To 11
98
+                    Delay(3)
99
+                    Dim ran = New Random(DateTime.Now.Millisecond) : Dim NUM1 As Integer = ran.Next(1, 4096)
100
+                    For I = 0 To 4096 : If NUM1 > 9 Then : NUM1 -= 9 : ElseIf NUM1 < 9 Then : I = 4096 : End If : Next
101
+                    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
102
+                    ElseIf NUM1 = 6 Then : II = RT : 轉換() : ElseIf NUM1 = 7 Then : ElseIf NUM1 = 8 Then : II = RT : 轉換() : ElseIf NUM1 = 9 Then : II = RT : 轉換() : End If
103
+                Next
104
+
105
+                Dim ran1 = New Random(DateTime.Now.Millisecond) : Dim NUM2 As Integer = ran1.Next(1, 4096)
106
+                For I = 0 To 4096 : If NUM2 > 99 Then : NUM2 -= 49 : ElseIf NUM2 < 99 Then : I = 4096 : End If : Next
107
+
108
+                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
109
+
110
+                ConnOpen()
111
+                SQL1 = "SELECT 簽名編碼 FROM 財務控制表_ICS WHERE 簽名編碼 LIKE '" & TextBox13.Text & "'"
112
+                cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
113
+                If dr.Read() = True Then : Else : QAZ = 999 : End If : conn.Close()
114
+            Next
115
+        End If
116
+    End Sub
117
+    Private Sub 轉換()
118
+        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"
119
+        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"
120
+        ElseIf QQW(II) = "9" Then : QQW(II) = "I" : ElseIf QQW(II) = "0" Then : QQW(II) = "J"
121
+        End If
122
+    End Sub
123
+    Public Sub Delay(ByRef Interval As Double)  'Interval单位为毫秒
124
+        Dim time As DateTime = DateTime.Now : Dim Span As Double = Interval * 1234 : While ((DateTime.Now.Ticks - time.Ticks) < Span) : Application.DoEvents() : End While
125
+    End Sub
126
+    Private Sub 匯率()
127
+        ConnOpen()
128
+        SQL1 = "SELECT 中心匯率, 美金匯率, 印尼匯率 FROM 歷史匯率表 
129
+                WHERE (年 LIKE '" & Strings.Left(Format(日期_dtp.Value, "yyyyMMdd"), 4) & "%') AND (月 LIKE '" & Strings.Mid(Format(日期_dtp.Value, "yyyyMMdd"), 5, 2) & "%')"
130
+        cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
131
+        If dr.Read() Then
132
+            人民幣匯率_tb.Text = dr("中心匯率").ToString : 美金匯率_tb.Text = dr("美金匯率").ToString : 印尼匯率_tb.Text = dr("印尼匯率").ToString : conn.Close() : dr.Close()
133
+        Else
134
+            conn.Close() : dr.Close() : 匯率修改.Close() : 匯率修改.Show() : 匯率修改.BringToFront()
135
+        End If
136
+    End Sub
137
+    Private Sub 財務_收支單審核_ICS_Load(sender As Object, e As EventArgs) Handles MyBase.Load
138
+        Me.MdiParent = GCM_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
139
+        未核准的收支單_rb.Checked = True : 收支單_dgv.Visible = True
140
+        匯率() : Set_清單1() : Set_清單()
141
+    End Sub
142
+    Private Sub 收支單_dgv_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles 收支單_dgv.CellClick
143
+        If e.RowIndex = -1 Then : Else
144
+            收支單號_tb.Text = 收支單_dgv(0, e.RowIndex).Value.ToString : 日期_dtp.Value = 收支單_dgv(1, e.RowIndex).Value.ToString : Set_費用清單()
145
+            申請人_tb.Text = 收支單_dgv(3, e.RowIndex).Value.ToString
146
+        End If
147
+    End Sub
148
+    Private Sub 簽名檔_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 簽名檔_dgv.CellClick
149
+        If e.RowIndex = -1 Then : Else
150
+            TextBox14.Text = 簽名檔_dgv(0, e.RowIndex).Value.ToString
151
+            ConnOpen()
152
+            SQL1 = "SELECT 簽名檔圖片 FROM GCM主管簽名檔管理 WHERE 圖片流水號 LIKE '" & TextBox14.Text & "'"
153
+            cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
154
+            While dr.Read() = True
155
+                Dim unused As Byte() = New Byte(-1) {}
156
+                Dim bytes As Byte() = DirectCast(dr.Item("簽名檔圖片"), Byte())
157
+                Dim oStream As New MemoryStream(bytes)
158
+                PictureBox1.Image = Bitmap.FromStream(oStream)
159
+            End While
160
+            conn.Close()
161
+            PictureBox1.SizeMode = 4
162
+            For QAZ = 0 To 999
163
+                QQW(0) = Strings.Right(簽名檔_dgv(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
164
+                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)
165
+                QQW(9) = Strings.Left(QQW(2), 1) : QQW(10) = Strings.Right(QQW(3), 1) : QQW(11) = Strings.Left(QQW(3), 1)
166
+                For RT = 4 To 11
167
+                    Delay(3)
168
+                    Dim ran = New Random(DateTime.Now.Millisecond) : Dim NUM1 As Integer = ran.Next(1, 4096)
169
+                    For I = 0 To 4096 : If NUM1 > 9 Then : NUM1 -= 9 : ElseIf NUM1 < 9 Then : I = 4096 : End If : Next
170
+                    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
171
+                    ElseIf NUM1 = 6 Then : II = RT : 轉換() : ElseIf NUM1 = 7 Then : ElseIf NUM1 = 8 Then : II = RT : 轉換() : ElseIf NUM1 = 9 Then : II = RT : 轉換() : End If
172
+                Next
173
+
174
+                Dim ran1 = New Random(DateTime.Now.Millisecond) : Dim NUM2 As Integer = ran1.Next(1, 4096)
175
+                For I = 0 To 4096 : If NUM2 > 99 Then : NUM2 -= 49 : ElseIf NUM2 < 99 Then : I = 4096 : End If : Next
176
+
177
+                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
178
+
179
+                ConnOpen()
180
+                SQL1 = "SELECT 簽名編碼 FROM 財務控制表_ICS WHERE 簽名編碼 LIKE '" & TextBox13.Text & "'"
181
+                cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
182
+                If dr.Read() = True Then : Else : QAZ = 999 : End If : conn.Close()
183
+            Next
184
+        End If
185
+    End Sub
186
+    Private Sub Set_切換格式()
187
+        明細_dgv.DataSource = Nothing : ds.Clear() : 收支單號_tb.Text = "" : 申請人_tb.Text = "" : 收入_tb.Text = "" : 支出_tb.Text = "" : 餘額_tb.Text = ""
188
+        零用金_tb.Text = "" : 支票_tb.Text = "" : Set_清單1()
189
+    End Sub
190
+    Private Sub 未核准的收支單_rb_CheckedChanged(sender As Object, e As EventArgs) Handles 未核准的收支單_rb.Click
191
+        未核准的收支單_rb.Checked = True : 作廢的收支單_rb.Checked = False
192
+        明細_dgv.DataSource = Nothing : ds.Clear() : 收支單號_tb.Text = "" : 申請人_tb.Text = "" : 收入_tb.Text = "" : 支出_tb.Text = "" : 餘額_tb.Text = ""
193
+        審核通過_bt.Enabled = True : 單據作廢_bt.Enabled = True : 審核通過ToolStripMenuItem.Enabled = True : 單據作廢ToolStripMenuItem.Enabled = True : Set_切換格式()
194
+    End Sub
195
+    Private Sub 作廢的收支單_rb_CheckedChanged(sender As Object, e As EventArgs) Handles 作廢的收支單_rb.Click
196
+        未核准的收支單_rb.Checked = False : 作廢的收支單_rb.Checked = True
197
+        明細_dgv.DataSource = Nothing : ds.Clear() : 收支單號_tb.Text = "" : 申請人_tb.Text = "" : 收入_tb.Text = "" : 支出_tb.Text = "" : 餘額_tb.Text = ""
198
+        審核通過_bt.Enabled = False : 單據作廢_bt.Enabled = False : 審核通過ToolStripMenuItem.Enabled = False : 單據作廢ToolStripMenuItem.Enabled = False : Set_切換格式()
199
+    End Sub
200
+    Private Sub Set_日期格式轉換()
201
+        DTP = Format(Today(), "yyyy/MM/dd")
202
+    End Sub
203
+    Private Sub 審核通過_bt_Click(sender As Object, e As EventArgs) Handles 審核通過_bt.Click
204
+        If 收支單號_tb.Text = "" Then
205
+            MsgBox("請選擇需要審核的單據。")
206
+        Else
207
+            If 補單_ch.Checked = False Then
208
+                Set_日期格式轉換()
209
+            Else
210
+                DTP = Format(日期_dtp.Value, "yyyy/MM/dd")
211
+            End If
212
+            conn.Close()
213
+            ConnOpen()
214
+            SQL1 = "UPDATE 財務控制表_ICS SET 審核人 = N'" & gUserName & "', 審核日期 = N'" & DTP & "', 核准圖檔 = N'" & TextBox14.Text & "', 簽名編碼 = N'" & TextBox13.Text &
215
+                                          "', 出納 = '" & gUserName & "', 出納日期 = N'" & DTP & "'
216
+                    WHERE (支付單號 = N'" & 收支單號_tb.Text & "')"
217
+            CmdSet_For_dr() : conn.Close()
218
+
219
+            ConnOpen()
220
+            SQL1 = "UPDATE 財務流水帳_ICS SET 出納 = '1', 出納日期 = N'" & DTP & "'
221
+                   WHERE (支付單號 LIKE '" & 收支單號_tb.Text & "')"
222
+            CmdSet_For_dr() : conn.Close()
223
+
224
+            For i As Integer = 0 To 明細_dgv.Rows.Count - 1
225
+                If 明細_dgv.Rows(i).Cells("零用金").Value <> 0 Then
226
+                    ConnOpen()
227
+                    SQL1 = "UPDATE 財務流水帳_ICS SET  備用金 = N'1' WHERE (支付單號 LIKE '" & 收支單號_tb.Text & "' AND 項次 LIKE '" & 明細_dgv.Rows(i).Cells("項次").Value & "')"
228
+                    CmdSet_For_dr() : conn.Close()
229
+                ElseIf 明細_dgv.Rows(i).Cells("收入").Value <> 0 Then
230
+                    ConnOpen()
231
+                    SQL1 = "UPDATE 財務流水帳_ICS SET  現金 = N'1' WHERE (支付單號 LIKE '" & 收支單號_tb.Text & "' AND 項次 LIKE '" & 明細_dgv.Rows(i).Cells("項次").Value & "')"
232
+                    CmdSet_For_dr() : conn.Close()
233
+                ElseIf 明細_dgv.Rows(i).Cells("支出").Value <> 0 Then
234
+                    ConnOpen()
235
+                    SQL1 = "UPDATE 財務流水帳_ICS SET  公帳 = N'1' WHERE (支付單號 LIKE '" & 收支單號_tb.Text & "' AND 項次 LIKE '" & 明細_dgv.Rows(i).Cells("項次").Value & "')"
236
+                    CmdSet_For_dr() : conn.Close()
237
+                End If
238
+            Next
239
+            MsgBox("審核完畢。")
240
+            收支單號_tb.Text = "" : 申請人_tb.Text = ""
241
+            明細_dgv.DataSource = Nothing : ds.Clear()
242
+            Set_清單1() : Set_清單()
243
+        End If
244
+    End Sub
245
+    Private Sub 單據作廢_bt_Click(sender As Object, e As EventArgs) Handles 單據作廢_bt.Click
246
+        If 收支單號_tb.Text = "" Then
247
+            MsgBox("請選擇需要審核的單據。")
248
+        Else
249
+            PA = InputBox("請輸入作廢原因。")
250
+            If PA = "" Then
251
+                MsgBox("請輸入作廢原因,不可空白。")
252
+            Else
253
+                If 補單_ch.Checked = False Then
254
+                    Set_日期格式轉換()
255
+                Else
256
+                    DTP = Format(日期_dtp.Value, "yyyy/MM/dd")
257
+                End If
258
+                conn.Close()
259
+                ConnOpen()
260
+                SQL1 = "UPDATE 財務控制表_ICS SET 審核人 = N'作廢-" & gUserName & "', 審核日期 = N'" & DTP & "', 備註 = N'" & PA & "' WHERE (支付單號 = N'" & 收支單號_tb.Text & "')"
261
+                CmdSet_For_dr()
262
+                conn.Close()
263
+                MsgBox("審核完畢。") : PA = ""
264
+                收支單號_tb.Text = "" : 申請人_tb.Text = ""
265
+                明細_dgv.DataSource = Nothing : ds.Clear()
266
+                Set_清單1()
267
+            End If
268
+        End If
269
+    End Sub
270
+    '----------------------滑鼠右鍵--------------------------------------------------------------------------------------------------------------------------------------------------------------------
271
+    Private Sub 重新讀取ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 重新讀取ToolStripMenuItem.Click
272
+        Set_清單1()
273
+    End Sub
274
+    Private Sub 審核通過ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 審核通過ToolStripMenuItem.Click
275
+        Me.審核通過_bt.PerformClick()
276
+    End Sub
277
+    Private Sub 單據作廢ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 單據作廢ToolStripMenuItem.Click
278
+        Me.單據作廢_bt.PerformClick()
279
+    End Sub
280
+
281
+End Class

+ 973
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單申請_ICS.Designer.vb ファイルの表示

@@ -0,0 +1,973 @@
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
+Partial Class 財務_收支單申請_ICS
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.視窗1_pl = New System.Windows.Forms.Panel()
30
+        Me.物料群組_Panel = New System.Windows.Forms.Panel()
31
+        Me.支出_cb = New System.Windows.Forms.CheckBox()
32
+        Me.收入_cb = New System.Windows.Forms.CheckBox()
33
+        Me.指定_ndp = New System.Windows.Forms.NumericUpDown()
34
+        Me.窗口說明1_lb = New System.Windows.Forms.Label()
35
+        Me.確定_bt = New System.Windows.Forms.Button()
36
+        Me.窗口表頭_lb = New System.Windows.Forms.Label()
37
+        Me.Cancel_bt = New System.Windows.Forms.Button()
38
+        Me.刪除選中的一筆資料_bt = New System.Windows.Forms.Button()
39
+        Me.收支單中新增一筆空白資料_bt = New System.Windows.Forms.Button()
40
+        Me.Label15 = New System.Windows.Forms.Label()
41
+        Me.刪除選中的營運成本收支單_bt = New System.Windows.Forms.Button()
42
+        Me.開立營運成本收支單_bt = New System.Windows.Forms.Button()
43
+        Me.Label16 = New System.Windows.Forms.Label()
44
+        Me.幣別_cb = New System.Windows.Forms.ComboBox()
45
+        Me.關鍵字查詢會計科目_tb = New System.Windows.Forms.TextBox()
46
+        Me.科目2_號_cb = New System.Windows.Forms.ComboBox()
47
+        Me.科目2_名_cb = New System.Windows.Forms.ComboBox()
48
+        Me.科目1_號_cb = New System.Windows.Forms.ComboBox()
49
+        Me.科目1_名_cb = New System.Windows.Forms.ComboBox()
50
+        Me.複製歷史單據重新開立_bt = New System.Windows.Forms.Button()
51
+        Me.已核准的收支單_rb = New System.Windows.Forms.RadioButton()
52
+        Me.支票_tb = New System.Windows.Forms.TextBox()
53
+        Me.Label11 = New System.Windows.Forms.Label()
54
+        Me.零用金_tb = New System.Windows.Forms.TextBox()
55
+        Me.Label10 = New System.Windows.Forms.Label()
56
+        Me.合計_tb = New System.Windows.Forms.TextBox()
57
+        Me.支出_tb = New System.Windows.Forms.TextBox()
58
+        Me.Label5 = New System.Windows.Forms.Label()
59
+        Me.補單_ch = New System.Windows.Forms.CheckBox()
60
+        Me.Label4 = New System.Windows.Forms.Label()
61
+        Me.日期_dtp = New System.Windows.Forms.DateTimePicker()
62
+        Me.申請_bt = New System.Windows.Forms.Button()
63
+        Me.科目3_名_cb = New System.Windows.Forms.ComboBox()
64
+        Me.收入_tb = New System.Windows.Forms.TextBox()
65
+        Me.Label8 = New System.Windows.Forms.Label()
66
+        Me.Label62 = New System.Windows.Forms.Label()
67
+        Me.項次_tb = New System.Windows.Forms.TextBox()
68
+        Me.Label28 = New System.Windows.Forms.Label()
69
+        Me.Label27 = New System.Windows.Forms.Label()
70
+        Me.Label3 = New System.Windows.Forms.Label()
71
+        Me.申請人_tb = New System.Windows.Forms.TextBox()
72
+        Me.收支單號_tb = New System.Windows.Forms.TextBox()
73
+        Me.Label1 = New System.Windows.Forms.Label()
74
+        Me.作廢的收支單_rb = New System.Windows.Forms.RadioButton()
75
+        Me.未核准的收支單_rb = New System.Windows.Forms.RadioButton()
76
+        Me.Label2 = New System.Windows.Forms.Label()
77
+        Me.Label13 = New System.Windows.Forms.Label()
78
+        Me.Label12 = New System.Windows.Forms.Label()
79
+        Me.Label7 = New System.Windows.Forms.Label()
80
+        Me.Label6 = New System.Windows.Forms.Label()
81
+        Me.Label9 = New System.Windows.Forms.Label()
82
+        Me.明細表_dgv = New System.Windows.Forms.DataGridView()
83
+        Me.營運收支單_dgv = New System.Windows.Forms.DataGridView()
84
+        Me.Panel1 = New System.Windows.Forms.Panel()
85
+        Me.科目3_號_cb = New System.Windows.Forms.ComboBox()
86
+        Me.人民幣匯率_tb = New System.Windows.Forms.TextBox()
87
+        Me.美金匯率_tb = New System.Windows.Forms.TextBox()
88
+        Me.印尼匯率_tb = New System.Windows.Forms.TextBox()
89
+        Me.DateTimePicker2 = New System.Windows.Forms.DateTimePicker()
90
+        Me.Label14 = New System.Windows.Forms.Label()
91
+        Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
92
+        Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
93
+        Me.重新讀取ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
94
+        Me.ToolStripSeparator6 = New System.Windows.Forms.ToolStripSeparator()
95
+        Me.開立零用金支付單ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
96
+        Me.複製單據開單ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
97
+        Me.申請完成ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
98
+        Me.ToolStripSeparator1 = New System.Windows.Forms.ToolStripSeparator()
99
+        Me.新增一筆資料ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
100
+        Me.刪除支付單中選中的資料ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
101
+        Me.ToolStripSeparator2 = New System.Windows.Forms.ToolStripSeparator()
102
+        Me.刪除選中的零用金支付單ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
103
+        Me.視窗1_pl.SuspendLayout()
104
+        Me.物料群組_Panel.SuspendLayout()
105
+        CType(Me.指定_ndp, System.ComponentModel.ISupportInitialize).BeginInit()
106
+        CType(Me.明細表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
107
+        CType(Me.營運收支單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
108
+        Me.Panel1.SuspendLayout()
109
+        Me.ContextMenuStrip1.SuspendLayout()
110
+        Me.SuspendLayout()
111
+        '
112
+        '視窗1_pl
113
+        '
114
+        Me.視窗1_pl.BackColor = System.Drawing.Color.White
115
+        Me.視窗1_pl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
116
+        Me.視窗1_pl.Controls.Add(Me.物料群組_Panel)
117
+        Me.視窗1_pl.Controls.Add(Me.窗口表頭_lb)
118
+        Me.視窗1_pl.Controls.Add(Me.Cancel_bt)
119
+        Me.視窗1_pl.Location = New System.Drawing.Point(646, 279)
120
+        Me.視窗1_pl.Name = "視窗1_pl"
121
+        Me.視窗1_pl.Size = New System.Drawing.Size(199, 124)
122
+        Me.視窗1_pl.TabIndex = 1564
123
+        '
124
+        '物料群組_Panel
125
+        '
126
+        Me.物料群組_Panel.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
127
+            Or System.Windows.Forms.AnchorStyles.Left) _
128
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
129
+        Me.物料群組_Panel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
130
+        Me.物料群組_Panel.Controls.Add(Me.支出_cb)
131
+        Me.物料群組_Panel.Controls.Add(Me.收入_cb)
132
+        Me.物料群組_Panel.Controls.Add(Me.指定_ndp)
133
+        Me.物料群組_Panel.Controls.Add(Me.窗口說明1_lb)
134
+        Me.物料群組_Panel.Controls.Add(Me.確定_bt)
135
+        Me.物料群組_Panel.Location = New System.Drawing.Point(3, 28)
136
+        Me.物料群組_Panel.Name = "物料群組_Panel"
137
+        Me.物料群組_Panel.Size = New System.Drawing.Size(192, 92)
138
+        Me.物料群組_Panel.TabIndex = 1367
139
+        '
140
+        '支出_cb
141
+        '
142
+        Me.支出_cb.AutoSize = True
143
+        Me.支出_cb.Location = New System.Drawing.Point(103, 32)
144
+        Me.支出_cb.Name = "支出_cb"
145
+        Me.支出_cb.Size = New System.Drawing.Size(50, 20)
146
+        Me.支出_cb.TabIndex = 1376
147
+        Me.支出_cb.Text = "支出"
148
+        Me.支出_cb.UseVisualStyleBackColor = True
149
+        '
150
+        '收入_cb
151
+        '
152
+        Me.收入_cb.AutoSize = True
153
+        Me.收入_cb.Location = New System.Drawing.Point(8, 32)
154
+        Me.收入_cb.Name = "收入_cb"
155
+        Me.收入_cb.Size = New System.Drawing.Size(50, 20)
156
+        Me.收入_cb.TabIndex = 1375
157
+        Me.收入_cb.Text = "收入"
158
+        Me.收入_cb.UseVisualStyleBackColor = True
159
+        '
160
+        '指定_ndp
161
+        '
162
+        Me.指定_ndp.Location = New System.Drawing.Point(53, 4)
163
+        Me.指定_ndp.Maximum = New Decimal(New Integer() {100000000, 0, 0, 0})
164
+        Me.指定_ndp.Minimum = New Decimal(New Integer() {100000000, 0, 0, -2147483648})
165
+        Me.指定_ndp.Name = "指定_ndp"
166
+        Me.指定_ndp.Size = New System.Drawing.Size(120, 23)
167
+        Me.指定_ndp.TabIndex = 1374
168
+        Me.指定_ndp.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
169
+        Me.指定_ndp.ThousandsSeparator = True
170
+        '
171
+        '窗口說明1_lb
172
+        '
173
+        Me.窗口說明1_lb.AutoSize = True
174
+        Me.窗口說明1_lb.Location = New System.Drawing.Point(3, 6)
175
+        Me.窗口說明1_lb.Name = "窗口說明1_lb"
176
+        Me.窗口說明1_lb.Size = New System.Drawing.Size(43, 16)
177
+        Me.窗口說明1_lb.TabIndex = 1373
178
+        Me.窗口說明1_lb.Text = "零用金"
179
+        '
180
+        '確定_bt
181
+        '
182
+        Me.確定_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
183
+        Me.確定_bt.ForeColor = System.Drawing.Color.Blue
184
+        Me.確定_bt.Location = New System.Drawing.Point(6, 51)
185
+        Me.確定_bt.Name = "確定_bt"
186
+        Me.確定_bt.Size = New System.Drawing.Size(175, 33)
187
+        Me.確定_bt.TabIndex = 1363
188
+        Me.確定_bt.Text = "確定"
189
+        Me.確定_bt.UseVisualStyleBackColor = True
190
+        '
191
+        '窗口表頭_lb
192
+        '
193
+        Me.窗口表頭_lb.AutoSize = True
194
+        Me.窗口表頭_lb.Location = New System.Drawing.Point(5, 7)
195
+        Me.窗口表頭_lb.Name = "窗口表頭_lb"
196
+        Me.窗口表頭_lb.Size = New System.Drawing.Size(55, 16)
197
+        Me.窗口表頭_lb.TabIndex = 1375
198
+        Me.窗口表頭_lb.Text = "編輯指定"
199
+        '
200
+        'Cancel_bt
201
+        '
202
+        Me.Cancel_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
203
+        Me.Cancel_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(128, Byte), Integer), CType(CType(128, Byte), Integer))
204
+        Me.Cancel_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
205
+        Me.Cancel_bt.ForeColor = System.Drawing.Color.Black
206
+        Me.Cancel_bt.Location = New System.Drawing.Point(167, 2)
207
+        Me.Cancel_bt.Name = "Cancel_bt"
208
+        Me.Cancel_bt.Size = New System.Drawing.Size(26, 26)
209
+        Me.Cancel_bt.TabIndex = 1374
210
+        Me.Cancel_bt.Text = "X"
211
+        Me.Cancel_bt.UseVisualStyleBackColor = False
212
+        '
213
+        '刪除選中的一筆資料_bt
214
+        '
215
+        Me.刪除選中的一筆資料_bt.ForeColor = System.Drawing.Color.Red
216
+        Me.刪除選中的一筆資料_bt.Location = New System.Drawing.Point(1082, 71)
217
+        Me.刪除選中的一筆資料_bt.Name = "刪除選中的一筆資料_bt"
218
+        Me.刪除選中的一筆資料_bt.Size = New System.Drawing.Size(160, 25)
219
+        Me.刪除選中的一筆資料_bt.TabIndex = 1562
220
+        Me.刪除選中的一筆資料_bt.Text = "刪除選中的一筆資料"
221
+        Me.刪除選中的一筆資料_bt.UseVisualStyleBackColor = True
222
+        '
223
+        '收支單中新增一筆空白資料_bt
224
+        '
225
+        Me.收支單中新增一筆空白資料_bt.ForeColor = System.Drawing.Color.Green
226
+        Me.收支單中新增一筆空白資料_bt.Location = New System.Drawing.Point(1082, 46)
227
+        Me.收支單中新增一筆空白資料_bt.Name = "收支單中新增一筆空白資料_bt"
228
+        Me.收支單中新增一筆空白資料_bt.Size = New System.Drawing.Size(160, 25)
229
+        Me.收支單中新增一筆空白資料_bt.TabIndex = 1561
230
+        Me.收支單中新增一筆空白資料_bt.Text = "收支單中新增一筆空白資料"
231
+        Me.收支單中新增一筆空白資料_bt.UseVisualStyleBackColor = True
232
+        '
233
+        'Label15
234
+        '
235
+        Me.Label15.AutoSize = True
236
+        Me.Label15.Location = New System.Drawing.Point(836, 51)
237
+        Me.Label15.Name = "Label15"
238
+        Me.Label15.Size = New System.Drawing.Size(120, 16)
239
+        Me.Label15.TabIndex = 1560
240
+        Me.Label15.Text = "關鍵字查詢-會計科目"
241
+        '
242
+        '刪除選中的營運成本收支單_bt
243
+        '
244
+        Me.刪除選中的營運成本收支單_bt.ForeColor = System.Drawing.Color.Red
245
+        Me.刪除選中的營運成本收支單_bt.Location = New System.Drawing.Point(1127, 17)
246
+        Me.刪除選中的營運成本收支單_bt.Name = "刪除選中的營運成本收支單_bt"
247
+        Me.刪除選中的營運成本收支單_bt.Size = New System.Drawing.Size(115, 25)
248
+        Me.刪除選中的營運成本收支單_bt.TabIndex = 1554
249
+        Me.刪除選中的營運成本收支單_bt.Text = "刪除選中的財務單"
250
+        Me.刪除選中的營運成本收支單_bt.UseVisualStyleBackColor = True
251
+        '
252
+        '開立營運成本收支單_bt
253
+        '
254
+        Me.開立營運成本收支單_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
255
+        Me.開立營運成本收支單_bt.Location = New System.Drawing.Point(898, 17)
256
+        Me.開立營運成本收支單_bt.Name = "開立營運成本收支單_bt"
257
+        Me.開立營運成本收支單_bt.Size = New System.Drawing.Size(115, 25)
258
+        Me.開立營運成本收支單_bt.TabIndex = 1553
259
+        Me.開立營運成本收支單_bt.Text = "開立財務收支單"
260
+        Me.開立營運成本收支單_bt.UseVisualStyleBackColor = True
261
+        '
262
+        'Label16
263
+        '
264
+        Me.Label16.AutoSize = True
265
+        Me.Label16.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
266
+        Me.Label16.Location = New System.Drawing.Point(322, 1)
267
+        Me.Label16.Name = "Label16"
268
+        Me.Label16.Size = New System.Drawing.Size(218, 16)
269
+        Me.Label16.TabIndex = 1552
270
+        Me.Label16.Text = "1、先開立財務收支單,在選會計科目。"
271
+        '
272
+        '幣別_cb
273
+        '
274
+        Me.幣別_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
275
+        Me.幣別_cb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
276
+        Me.幣別_cb.FormattingEnabled = True
277
+        Me.幣別_cb.Items.AddRange(New Object() {"台幣現金", "人民幣現金", "美金", "印尼盾"})
278
+        Me.幣別_cb.Location = New System.Drawing.Point(959, 71)
279
+        Me.幣別_cb.Name = "幣別_cb"
280
+        Me.幣別_cb.Size = New System.Drawing.Size(119, 24)
281
+        Me.幣別_cb.TabIndex = 1551
282
+        '
283
+        '關鍵字查詢會計科目_tb
284
+        '
285
+        Me.關鍵字查詢會計科目_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
286
+        Me.關鍵字查詢會計科目_tb.Location = New System.Drawing.Point(959, 47)
287
+        Me.關鍵字查詢會計科目_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
288
+        Me.關鍵字查詢會計科目_tb.Name = "關鍵字查詢會計科目_tb"
289
+        Me.關鍵字查詢會計科目_tb.Size = New System.Drawing.Size(119, 23)
290
+        Me.關鍵字查詢會計科目_tb.TabIndex = 1550
291
+        Me.關鍵字查詢會計科目_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
292
+        '
293
+        '科目2_號_cb
294
+        '
295
+        Me.科目2_號_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
296
+        Me.科目2_號_cb.FormattingEnabled = True
297
+        Me.科目2_號_cb.Location = New System.Drawing.Point(695, 71)
298
+        Me.科目2_號_cb.Name = "科目2_號_cb"
299
+        Me.科目2_號_cb.Size = New System.Drawing.Size(75, 24)
300
+        Me.科目2_號_cb.TabIndex = 1549
301
+        '
302
+        '科目2_名_cb
303
+        '
304
+        Me.科目2_名_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
305
+        Me.科目2_名_cb.FormattingEnabled = True
306
+        Me.科目2_名_cb.Location = New System.Drawing.Point(570, 71)
307
+        Me.科目2_名_cb.Name = "科目2_名_cb"
308
+        Me.科目2_名_cb.Size = New System.Drawing.Size(123, 24)
309
+        Me.科目2_名_cb.TabIndex = 1548
310
+        '
311
+        '科目1_號_cb
312
+        '
313
+        Me.科目1_號_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
314
+        Me.科目1_號_cb.FormattingEnabled = True
315
+        Me.科目1_號_cb.Location = New System.Drawing.Point(508, 71)
316
+        Me.科目1_號_cb.Name = "科目1_號_cb"
317
+        Me.科目1_號_cb.Size = New System.Drawing.Size(61, 24)
318
+        Me.科目1_號_cb.TabIndex = 1547
319
+        '
320
+        '科目1_名_cb
321
+        '
322
+        Me.科目1_名_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
323
+        Me.科目1_名_cb.FormattingEnabled = True
324
+        Me.科目1_名_cb.Location = New System.Drawing.Point(384, 71)
325
+        Me.科目1_名_cb.Name = "科目1_名_cb"
326
+        Me.科目1_名_cb.Size = New System.Drawing.Size(123, 24)
327
+        Me.科目1_名_cb.TabIndex = 1546
328
+        '
329
+        '複製歷史單據重新開立_bt
330
+        '
331
+        Me.複製歷史單據重新開立_bt.ForeColor = System.Drawing.Color.Green
332
+        Me.複製歷史單據重新開立_bt.Location = New System.Drawing.Point(1013, 17)
333
+        Me.複製歷史單據重新開立_bt.Name = "複製歷史單據重新開立_bt"
334
+        Me.複製歷史單據重新開立_bt.Size = New System.Drawing.Size(114, 25)
335
+        Me.複製歷史單據重新開立_bt.TabIndex = 1545
336
+        Me.複製歷史單據重新開立_bt.Text = "複製歷史單據"
337
+        Me.複製歷史單據重新開立_bt.UseVisualStyleBackColor = True
338
+        '
339
+        '已核准的收支單_rb
340
+        '
341
+        Me.已核准的收支單_rb.AutoSize = True
342
+        Me.已核准的收支單_rb.Location = New System.Drawing.Point(112, 2)
343
+        Me.已核准的收支單_rb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
344
+        Me.已核准的收支單_rb.Name = "已核准的收支單_rb"
345
+        Me.已核准的收支單_rb.Size = New System.Drawing.Size(109, 20)
346
+        Me.已核准的收支單_rb.TabIndex = 1544
347
+        Me.已核准的收支單_rb.TabStop = True
348
+        Me.已核准的收支單_rb.Text = "已核准的收支單"
349
+        Me.已核准的收支單_rb.UseVisualStyleBackColor = True
350
+        '
351
+        '支票_tb
352
+        '
353
+        Me.支票_tb.Location = New System.Drawing.Point(613, 102)
354
+        Me.支票_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
355
+        Me.支票_tb.Name = "支票_tb"
356
+        Me.支票_tb.Size = New System.Drawing.Size(65, 23)
357
+        Me.支票_tb.TabIndex = 1543
358
+        Me.支票_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
359
+        '
360
+        'Label11
361
+        '
362
+        Me.Label11.AutoSize = True
363
+        Me.Label11.Location = New System.Drawing.Point(580, 105)
364
+        Me.Label11.Name = "Label11"
365
+        Me.Label11.Size = New System.Drawing.Size(31, 16)
366
+        Me.Label11.TabIndex = 1542
367
+        Me.Label11.Text = "支票"
368
+        '
369
+        '零用金_tb
370
+        '
371
+        Me.零用金_tb.Location = New System.Drawing.Point(513, 102)
372
+        Me.零用金_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
373
+        Me.零用金_tb.Name = "零用金_tb"
374
+        Me.零用金_tb.Size = New System.Drawing.Size(65, 23)
375
+        Me.零用金_tb.TabIndex = 1541
376
+        Me.零用金_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
377
+        '
378
+        'Label10
379
+        '
380
+        Me.Label10.AutoSize = True
381
+        Me.Label10.Location = New System.Drawing.Point(467, 105)
382
+        Me.Label10.Name = "Label10"
383
+        Me.Label10.Size = New System.Drawing.Size(43, 16)
384
+        Me.Label10.TabIndex = 1540
385
+        Me.Label10.Text = "零用金"
386
+        '
387
+        '合計_tb
388
+        '
389
+        Me.合計_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
390
+        Me.合計_tb.Location = New System.Drawing.Point(978, 102)
391
+        Me.合計_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
392
+        Me.合計_tb.Name = "合計_tb"
393
+        Me.合計_tb.Size = New System.Drawing.Size(100, 23)
394
+        Me.合計_tb.TabIndex = 1539
395
+        Me.合計_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
396
+        '
397
+        '支出_tb
398
+        '
399
+        Me.支出_tb.Location = New System.Drawing.Point(848, 102)
400
+        Me.支出_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
401
+        Me.支出_tb.Name = "支出_tb"
402
+        Me.支出_tb.Size = New System.Drawing.Size(100, 23)
403
+        Me.支出_tb.TabIndex = 1537
404
+        Me.支出_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
405
+        '
406
+        'Label5
407
+        '
408
+        Me.Label5.AutoSize = True
409
+        Me.Label5.Location = New System.Drawing.Point(815, 106)
410
+        Me.Label5.Name = "Label5"
411
+        Me.Label5.Size = New System.Drawing.Size(31, 16)
412
+        Me.Label5.TabIndex = 1536
413
+        Me.Label5.Text = "支出"
414
+        '
415
+        '補單_ch
416
+        '
417
+        Me.補單_ch.AutoSize = True
418
+        Me.補單_ch.Checked = True
419
+        Me.補單_ch.CheckState = System.Windows.Forms.CheckState.Checked
420
+        Me.補單_ch.Location = New System.Drawing.Point(774, 20)
421
+        Me.補單_ch.Name = "補單_ch"
422
+        Me.補單_ch.Size = New System.Drawing.Size(38, 20)
423
+        Me.補單_ch.TabIndex = 1535
424
+        Me.補單_ch.Text = "補"
425
+        Me.補單_ch.UseVisualStyleBackColor = True
426
+        '
427
+        'Label4
428
+        '
429
+        Me.Label4.AutoSize = True
430
+        Me.Label4.ForeColor = System.Drawing.Color.Blue
431
+        Me.Label4.Location = New System.Drawing.Point(643, 21)
432
+        Me.Label4.Name = "Label4"
433
+        Me.Label4.Size = New System.Drawing.Size(31, 16)
434
+        Me.Label4.TabIndex = 1534
435
+        Me.Label4.Text = "日期"
436
+        '
437
+        '日期_dtp
438
+        '
439
+        Me.日期_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
440
+        Me.日期_dtp.Location = New System.Drawing.Point(675, 18)
441
+        Me.日期_dtp.Name = "日期_dtp"
442
+        Me.日期_dtp.Size = New System.Drawing.Size(90, 23)
443
+        Me.日期_dtp.TabIndex = 1533
444
+        '
445
+        '申請_bt
446
+        '
447
+        Me.申請_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
448
+        Me.申請_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
449
+        Me.申請_bt.Location = New System.Drawing.Point(1082, 101)
450
+        Me.申請_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
451
+        Me.申請_bt.Name = "申請_bt"
452
+        Me.申請_bt.Size = New System.Drawing.Size(160, 25)
453
+        Me.申請_bt.TabIndex = 1531
454
+        Me.申請_bt.Text = "申請完成"
455
+        Me.申請_bt.UseVisualStyleBackColor = True
456
+        '
457
+        '科目3_名_cb
458
+        '
459
+        Me.科目3_名_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
460
+        Me.科目3_名_cb.FormattingEnabled = True
461
+        Me.科目3_名_cb.Location = New System.Drawing.Point(772, 71)
462
+        Me.科目3_名_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
463
+        Me.科目3_名_cb.Name = "科目3_名_cb"
464
+        Me.科目3_名_cb.Size = New System.Drawing.Size(184, 24)
465
+        Me.科目3_名_cb.TabIndex = 1530
466
+        '
467
+        '收入_tb
468
+        '
469
+        Me.收入_tb.Location = New System.Drawing.Point(713, 102)
470
+        Me.收入_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
471
+        Me.收入_tb.Name = "收入_tb"
472
+        Me.收入_tb.Size = New System.Drawing.Size(100, 23)
473
+        Me.收入_tb.TabIndex = 1529
474
+        Me.收入_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
475
+        '
476
+        'Label8
477
+        '
478
+        Me.Label8.AutoSize = True
479
+        Me.Label8.Location = New System.Drawing.Point(680, 106)
480
+        Me.Label8.Name = "Label8"
481
+        Me.Label8.Size = New System.Drawing.Size(31, 16)
482
+        Me.Label8.TabIndex = 1528
483
+        Me.Label8.Text = "收入"
484
+        '
485
+        'Label62
486
+        '
487
+        Me.Label62.AutoSize = True
488
+        Me.Label62.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
489
+        Me.Label62.ForeColor = System.Drawing.Color.Red
490
+        Me.Label62.Location = New System.Drawing.Point(1133, 1)
491
+        Me.Label62.Name = "Label62"
492
+        Me.Label62.Size = New System.Drawing.Size(109, 16)
493
+        Me.Label62.TabIndex = 1527
494
+        Me.Label62.Text = "資  料  尚  未  存  檔"
495
+        Me.Label62.Visible = False
496
+        '
497
+        '項次_tb
498
+        '
499
+        Me.項次_tb.Location = New System.Drawing.Point(352, 102)
500
+        Me.項次_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
501
+        Me.項次_tb.Name = "項次_tb"
502
+        Me.項次_tb.Size = New System.Drawing.Size(61, 23)
503
+        Me.項次_tb.TabIndex = 1526
504
+        Me.項次_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
505
+        '
506
+        'Label28
507
+        '
508
+        Me.Label28.AutoSize = True
509
+        Me.Label28.Location = New System.Drawing.Point(412, 106)
510
+        Me.Label28.Name = "Label28"
511
+        Me.Label28.Size = New System.Drawing.Size(43, 16)
512
+        Me.Label28.TabIndex = 1525
513
+        Me.Label28.Text = "項次。"
514
+        '
515
+        'Label27
516
+        '
517
+        Me.Label27.AutoSize = True
518
+        Me.Label27.Location = New System.Drawing.Point(320, 105)
519
+        Me.Label27.Name = "Label27"
520
+        Me.Label27.Size = New System.Drawing.Size(31, 16)
521
+        Me.Label27.TabIndex = 1524
522
+        Me.Label27.Text = "選擇"
523
+        '
524
+        'Label3
525
+        '
526
+        Me.Label3.AutoSize = True
527
+        Me.Label3.Location = New System.Drawing.Point(501, 21)
528
+        Me.Label3.Name = "Label3"
529
+        Me.Label3.Size = New System.Drawing.Size(43, 16)
530
+        Me.Label3.TabIndex = 1522
531
+        Me.Label3.Text = "申請人"
532
+        '
533
+        '申請人_tb
534
+        '
535
+        Me.申請人_tb.Location = New System.Drawing.Point(545, 18)
536
+        Me.申請人_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
537
+        Me.申請人_tb.Name = "申請人_tb"
538
+        Me.申請人_tb.Size = New System.Drawing.Size(92, 23)
539
+        Me.申請人_tb.TabIndex = 1521
540
+        Me.申請人_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
541
+        '
542
+        '收支單號_tb
543
+        '
544
+        Me.收支單號_tb.Location = New System.Drawing.Point(378, 18)
545
+        Me.收支單號_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
546
+        Me.收支單號_tb.Name = "收支單號_tb"
547
+        Me.收支單號_tb.Size = New System.Drawing.Size(122, 23)
548
+        Me.收支單號_tb.TabIndex = 1519
549
+        Me.收支單號_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
550
+        '
551
+        'Label1
552
+        '
553
+        Me.Label1.AutoSize = True
554
+        Me.Label1.Location = New System.Drawing.Point(321, 22)
555
+        Me.Label1.Name = "Label1"
556
+        Me.Label1.Size = New System.Drawing.Size(55, 16)
557
+        Me.Label1.TabIndex = 1520
558
+        Me.Label1.Text = "收支單號"
559
+        '
560
+        '作廢的收支單_rb
561
+        '
562
+        Me.作廢的收支單_rb.AutoSize = True
563
+        Me.作廢的收支單_rb.Location = New System.Drawing.Point(224, 2)
564
+        Me.作廢的收支單_rb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
565
+        Me.作廢的收支單_rb.Name = "作廢的收支單_rb"
566
+        Me.作廢的收支單_rb.Size = New System.Drawing.Size(97, 20)
567
+        Me.作廢的收支單_rb.TabIndex = 1518
568
+        Me.作廢的收支單_rb.TabStop = True
569
+        Me.作廢的收支單_rb.Text = "作廢的收支單"
570
+        Me.作廢的收支單_rb.UseVisualStyleBackColor = True
571
+        '
572
+        '未核准的收支單_rb
573
+        '
574
+        Me.未核准的收支單_rb.AutoSize = True
575
+        Me.未核准的收支單_rb.Location = New System.Drawing.Point(4, 2)
576
+        Me.未核准的收支單_rb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
577
+        Me.未核准的收支單_rb.Name = "未核准的收支單_rb"
578
+        Me.未核准的收支單_rb.Size = New System.Drawing.Size(109, 20)
579
+        Me.未核准的收支單_rb.TabIndex = 1517
580
+        Me.未核准的收支單_rb.TabStop = True
581
+        Me.未核准的收支單_rb.Text = "未核准的收支單"
582
+        Me.未核准的收支單_rb.UseVisualStyleBackColor = True
583
+        '
584
+        'Label2
585
+        '
586
+        Me.Label2.AutoSize = True
587
+        Me.Label2.Location = New System.Drawing.Point(326, 75)
588
+        Me.Label2.Name = "Label2"
589
+        Me.Label2.Size = New System.Drawing.Size(55, 16)
590
+        Me.Label2.TabIndex = 1532
591
+        Me.Label2.Text = "會計科目"
592
+        '
593
+        'Label13
594
+        '
595
+        Me.Label13.AutoSize = True
596
+        Me.Label13.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
597
+        Me.Label13.Location = New System.Drawing.Point(322, 55)
598
+        Me.Label13.Name = "Label13"
599
+        Me.Label13.Size = New System.Drawing.Size(218, 16)
600
+        Me.Label13.TabIndex = 1555
601
+        Me.Label13.Text = "2、選擇會計科目後再新增一筆空白資料"
602
+        '
603
+        'Label12
604
+        '
605
+        Me.Label12.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
606
+        Me.Label12.AutoSize = True
607
+        Me.Label12.Location = New System.Drawing.Point(374, 30)
608
+        Me.Label12.Name = "Label12"
609
+        Me.Label12.Size = New System.Drawing.Size(872, 16)
610
+        Me.Label12.TabIndex = 1557
611
+        Me.Label12.Text = "_________________________________________________________________________________" &
612
+    "________________________________________________________________________________" &
613
+    "____________"
614
+        '
615
+        'Label7
616
+        '
617
+        Me.Label7.AutoSize = True
618
+        Me.Label7.Location = New System.Drawing.Point(317, 30)
619
+        Me.Label7.Name = "Label7"
620
+        Me.Label7.Size = New System.Drawing.Size(872, 16)
621
+        Me.Label7.TabIndex = 1556
622
+        Me.Label7.Text = "_________________________________________________________________________________" &
623
+    "________________________________________________________________________________" &
624
+    "____________"
625
+        '
626
+        'Label6
627
+        '
628
+        Me.Label6.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
629
+        Me.Label6.AutoSize = True
630
+        Me.Label6.Location = New System.Drawing.Point(374, 85)
631
+        Me.Label6.Name = "Label6"
632
+        Me.Label6.Size = New System.Drawing.Size(872, 16)
633
+        Me.Label6.TabIndex = 1559
634
+        Me.Label6.Text = "_________________________________________________________________________________" &
635
+    "________________________________________________________________________________" &
636
+    "____________"
637
+        '
638
+        'Label9
639
+        '
640
+        Me.Label9.AutoSize = True
641
+        Me.Label9.Location = New System.Drawing.Point(947, 106)
642
+        Me.Label9.Name = "Label9"
643
+        Me.Label9.Size = New System.Drawing.Size(31, 16)
644
+        Me.Label9.TabIndex = 1538
645
+        Me.Label9.Text = "合計"
646
+        '
647
+        '明細表_dgv
648
+        '
649
+        DataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
650
+        Me.明細表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4
651
+        Me.明細表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
652
+            Or System.Windows.Forms.AnchorStyles.Left) _
653
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
654
+        Me.明細表_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
655
+        Me.明細表_dgv.BackgroundColor = System.Drawing.Color.White
656
+        Me.明細表_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
657
+        Me.明細表_dgv.Location = New System.Drawing.Point(317, 127)
658
+        Me.明細表_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
659
+        Me.明細表_dgv.Name = "明細表_dgv"
660
+        Me.明細表_dgv.RowHeadersWidth = 5
661
+        DataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
662
+        Me.明細表_dgv.RowsDefaultCellStyle = DataGridViewCellStyle5
663
+        Me.明細表_dgv.RowTemplate.Height = 24
664
+        Me.明細表_dgv.Size = New System.Drawing.Size(925, 482)
665
+        Me.明細表_dgv.TabIndex = 1523
666
+        '
667
+        '營運收支單_dgv
668
+        '
669
+        DataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
670
+        Me.營運收支單_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle6
671
+        Me.營運收支單_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
672
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
673
+        Me.營運收支單_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
674
+        Me.營運收支單_dgv.BackgroundColor = System.Drawing.Color.White
675
+        Me.營運收支單_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
676
+        Me.營運收支單_dgv.Location = New System.Drawing.Point(3, 22)
677
+        Me.營運收支單_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
678
+        Me.營運收支單_dgv.Name = "營運收支單_dgv"
679
+        Me.營運收支單_dgv.RowHeadersWidth = 5
680
+        Me.營運收支單_dgv.RowTemplate.Height = 24
681
+        Me.營運收支單_dgv.Size = New System.Drawing.Size(315, 587)
682
+        Me.營運收支單_dgv.TabIndex = 1516
683
+        '
684
+        'Panel1
685
+        '
686
+        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
687
+        Me.Panel1.Controls.Add(Me.科目3_號_cb)
688
+        Me.Panel1.Controls.Add(Me.人民幣匯率_tb)
689
+        Me.Panel1.Controls.Add(Me.美金匯率_tb)
690
+        Me.Panel1.Controls.Add(Me.印尼匯率_tb)
691
+        Me.Panel1.Controls.Add(Me.DateTimePicker2)
692
+        Me.Panel1.Location = New System.Drawing.Point(80, 211)
693
+        Me.Panel1.Name = "Panel1"
694
+        Me.Panel1.Size = New System.Drawing.Size(188, 159)
695
+        Me.Panel1.TabIndex = 1563
696
+        '
697
+        '科目3_號_cb
698
+        '
699
+        Me.科目3_號_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
700
+        Me.科目3_號_cb.FormattingEnabled = True
701
+        Me.科目3_號_cb.Location = New System.Drawing.Point(3, 4)
702
+        Me.科目3_號_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
703
+        Me.科目3_號_cb.Name = "科目3_號_cb"
704
+        Me.科目3_號_cb.Size = New System.Drawing.Size(175, 24)
705
+        Me.科目3_號_cb.TabIndex = 896
706
+        '
707
+        '人民幣匯率_tb
708
+        '
709
+        Me.人民幣匯率_tb.Location = New System.Drawing.Point(3, 36)
710
+        Me.人民幣匯率_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
711
+        Me.人民幣匯率_tb.Name = "人民幣匯率_tb"
712
+        Me.人民幣匯率_tb.Size = New System.Drawing.Size(175, 23)
713
+        Me.人民幣匯率_tb.TabIndex = 899
714
+        Me.人民幣匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
715
+        '
716
+        '美金匯率_tb
717
+        '
718
+        Me.美金匯率_tb.Location = New System.Drawing.Point(3, 67)
719
+        Me.美金匯率_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
720
+        Me.美金匯率_tb.Name = "美金匯率_tb"
721
+        Me.美金匯率_tb.Size = New System.Drawing.Size(175, 23)
722
+        Me.美金匯率_tb.TabIndex = 900
723
+        Me.美金匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
724
+        '
725
+        '印尼匯率_tb
726
+        '
727
+        Me.印尼匯率_tb.Location = New System.Drawing.Point(3, 98)
728
+        Me.印尼匯率_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
729
+        Me.印尼匯率_tb.Name = "印尼匯率_tb"
730
+        Me.印尼匯率_tb.Size = New System.Drawing.Size(175, 23)
731
+        Me.印尼匯率_tb.TabIndex = 901
732
+        Me.印尼匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
733
+        '
734
+        'DateTimePicker2
735
+        '
736
+        Me.DateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
737
+        Me.DateTimePicker2.Location = New System.Drawing.Point(3, 128)
738
+        Me.DateTimePicker2.Name = "DateTimePicker2"
739
+        Me.DateTimePicker2.Size = New System.Drawing.Size(175, 23)
740
+        Me.DateTimePicker2.TabIndex = 889
741
+        '
742
+        'Label14
743
+        '
744
+        Me.Label14.AutoSize = True
745
+        Me.Label14.Location = New System.Drawing.Point(317, 85)
746
+        Me.Label14.Name = "Label14"
747
+        Me.Label14.Size = New System.Drawing.Size(872, 16)
748
+        Me.Label14.TabIndex = 1558
749
+        Me.Label14.Text = "_________________________________________________________________________________" &
750
+    "________________________________________________________________________________" &
751
+    "____________"
752
+        '
753
+        'Timer1
754
+        '
755
+        Me.Timer1.Interval = 500
756
+        '
757
+        'ContextMenuStrip1
758
+        '
759
+        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})
760
+        Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
761
+        Me.ContextMenuStrip1.Size = New System.Drawing.Size(231, 176)
762
+        '
763
+        '重新讀取ToolStripMenuItem
764
+        '
765
+        Me.重新讀取ToolStripMenuItem.Name = "重新讀取ToolStripMenuItem"
766
+        Me.重新讀取ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
767
+        Me.重新讀取ToolStripMenuItem.Text = "重新讀取"
768
+        '
769
+        'ToolStripSeparator6
770
+        '
771
+        Me.ToolStripSeparator6.Name = "ToolStripSeparator6"
772
+        Me.ToolStripSeparator6.Size = New System.Drawing.Size(227, 6)
773
+        '
774
+        '開立零用金支付單ToolStripMenuItem
775
+        '
776
+        Me.開立零用金支付單ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
777
+        Me.開立零用金支付單ToolStripMenuItem.Name = "開立零用金支付單ToolStripMenuItem"
778
+        Me.開立零用金支付單ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
779
+        Me.開立零用金支付單ToolStripMenuItem.Text = "開立營運成本收支單"
780
+        '
781
+        '複製單據開單ToolStripMenuItem
782
+        '
783
+        Me.複製單據開單ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
784
+        Me.複製單據開單ToolStripMenuItem.Name = "複製單據開單ToolStripMenuItem"
785
+        Me.複製單據開單ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
786
+        Me.複製單據開單ToolStripMenuItem.Text = "複製歷史單據重新開立"
787
+        '
788
+        '申請完成ToolStripMenuItem
789
+        '
790
+        Me.申請完成ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
791
+        Me.申請完成ToolStripMenuItem.Name = "申請完成ToolStripMenuItem"
792
+        Me.申請完成ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
793
+        Me.申請完成ToolStripMenuItem.Text = "申請完成"
794
+        '
795
+        'ToolStripSeparator1
796
+        '
797
+        Me.ToolStripSeparator1.Name = "ToolStripSeparator1"
798
+        Me.ToolStripSeparator1.Size = New System.Drawing.Size(227, 6)
799
+        '
800
+        '新增一筆資料ToolStripMenuItem
801
+        '
802
+        Me.新增一筆資料ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer))
803
+        Me.新增一筆資料ToolStripMenuItem.Name = "新增一筆資料ToolStripMenuItem"
804
+        Me.新增一筆資料ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
805
+        Me.新增一筆資料ToolStripMenuItem.Text = "收支單中新增一筆空白資料"
806
+        '
807
+        '刪除支付單中選中的資料ToolStripMenuItem
808
+        '
809
+        Me.刪除支付單中選中的資料ToolStripMenuItem.ForeColor = System.Drawing.Color.Red
810
+        Me.刪除支付單中選中的資料ToolStripMenuItem.Name = "刪除支付單中選中的資料ToolStripMenuItem"
811
+        Me.刪除支付單中選中的資料ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
812
+        Me.刪除支付單中選中的資料ToolStripMenuItem.Text = "刪除一筆收支單中選中的資料"
813
+        '
814
+        'ToolStripSeparator2
815
+        '
816
+        Me.ToolStripSeparator2.Name = "ToolStripSeparator2"
817
+        Me.ToolStripSeparator2.Size = New System.Drawing.Size(227, 6)
818
+        '
819
+        '刪除選中的零用金支付單ToolStripMenuItem
820
+        '
821
+        Me.刪除選中的零用金支付單ToolStripMenuItem.ForeColor = System.Drawing.Color.Red
822
+        Me.刪除選中的零用金支付單ToolStripMenuItem.Name = "刪除選中的零用金支付單ToolStripMenuItem"
823
+        Me.刪除選中的零用金支付單ToolStripMenuItem.Size = New System.Drawing.Size(230, 22)
824
+        Me.刪除選中的零用金支付單ToolStripMenuItem.Text = "刪除選中的營運成本收支單"
825
+        '
826
+        '財務_收支單申請_ICS
827
+        '
828
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
829
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
830
+        Me.ClientSize = New System.Drawing.Size(1249, 611)
831
+        Me.Controls.Add(Me.營運收支單_dgv)
832
+        Me.Controls.Add(Me.視窗1_pl)
833
+        Me.Controls.Add(Me.刪除選中的一筆資料_bt)
834
+        Me.Controls.Add(Me.收支單中新增一筆空白資料_bt)
835
+        Me.Controls.Add(Me.Label15)
836
+        Me.Controls.Add(Me.刪除選中的營運成本收支單_bt)
837
+        Me.Controls.Add(Me.開立營運成本收支單_bt)
838
+        Me.Controls.Add(Me.Label16)
839
+        Me.Controls.Add(Me.幣別_cb)
840
+        Me.Controls.Add(Me.關鍵字查詢會計科目_tb)
841
+        Me.Controls.Add(Me.科目2_號_cb)
842
+        Me.Controls.Add(Me.科目2_名_cb)
843
+        Me.Controls.Add(Me.科目1_號_cb)
844
+        Me.Controls.Add(Me.科目1_名_cb)
845
+        Me.Controls.Add(Me.複製歷史單據重新開立_bt)
846
+        Me.Controls.Add(Me.支票_tb)
847
+        Me.Controls.Add(Me.Label11)
848
+        Me.Controls.Add(Me.零用金_tb)
849
+        Me.Controls.Add(Me.Label10)
850
+        Me.Controls.Add(Me.合計_tb)
851
+        Me.Controls.Add(Me.支出_tb)
852
+        Me.Controls.Add(Me.Label5)
853
+        Me.Controls.Add(Me.補單_ch)
854
+        Me.Controls.Add(Me.Label4)
855
+        Me.Controls.Add(Me.日期_dtp)
856
+        Me.Controls.Add(Me.申請_bt)
857
+        Me.Controls.Add(Me.科目3_名_cb)
858
+        Me.Controls.Add(Me.收入_tb)
859
+        Me.Controls.Add(Me.Label8)
860
+        Me.Controls.Add(Me.Label62)
861
+        Me.Controls.Add(Me.項次_tb)
862
+        Me.Controls.Add(Me.Label28)
863
+        Me.Controls.Add(Me.Label27)
864
+        Me.Controls.Add(Me.Label3)
865
+        Me.Controls.Add(Me.申請人_tb)
866
+        Me.Controls.Add(Me.收支單號_tb)
867
+        Me.Controls.Add(Me.Label1)
868
+        Me.Controls.Add(Me.作廢的收支單_rb)
869
+        Me.Controls.Add(Me.Label2)
870
+        Me.Controls.Add(Me.Label13)
871
+        Me.Controls.Add(Me.Label12)
872
+        Me.Controls.Add(Me.Label7)
873
+        Me.Controls.Add(Me.Label6)
874
+        Me.Controls.Add(Me.Label9)
875
+        Me.Controls.Add(Me.明細表_dgv)
876
+        Me.Controls.Add(Me.Panel1)
877
+        Me.Controls.Add(Me.Label14)
878
+        Me.Controls.Add(Me.已核准的收支單_rb)
879
+        Me.Controls.Add(Me.未核准的收支單_rb)
880
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
881
+        Me.Margin = New System.Windows.Forms.Padding(4)
882
+        Me.Name = "財務_收支單申請_ICS"
883
+        Me.Text = "財務_收支單申請_ICS"
884
+        Me.視窗1_pl.ResumeLayout(False)
885
+        Me.視窗1_pl.PerformLayout()
886
+        Me.物料群組_Panel.ResumeLayout(False)
887
+        Me.物料群組_Panel.PerformLayout()
888
+        CType(Me.指定_ndp, System.ComponentModel.ISupportInitialize).EndInit()
889
+        CType(Me.明細表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
890
+        CType(Me.營運收支單_dgv, System.ComponentModel.ISupportInitialize).EndInit()
891
+        Me.Panel1.ResumeLayout(False)
892
+        Me.Panel1.PerformLayout()
893
+        Me.ContextMenuStrip1.ResumeLayout(False)
894
+        Me.ResumeLayout(False)
895
+        Me.PerformLayout()
896
+
897
+    End Sub
898
+
899
+    Friend WithEvents 視窗1_pl As Panel
900
+    Friend WithEvents 物料群組_Panel As Panel
901
+    Friend WithEvents 支出_cb As CheckBox
902
+    Friend WithEvents 收入_cb As CheckBox
903
+    Friend WithEvents 指定_ndp As NumericUpDown
904
+    Friend WithEvents 窗口說明1_lb As Label
905
+    Friend WithEvents 確定_bt As Button
906
+    Friend WithEvents 窗口表頭_lb As Label
907
+    Friend WithEvents Cancel_bt As Button
908
+    Friend WithEvents 刪除選中的一筆資料_bt As Button
909
+    Friend WithEvents 收支單中新增一筆空白資料_bt As Button
910
+    Friend WithEvents Label15 As Label
911
+    Friend WithEvents 刪除選中的營運成本收支單_bt As Button
912
+    Friend WithEvents 開立營運成本收支單_bt As Button
913
+    Friend WithEvents Label16 As Label
914
+    Friend WithEvents 幣別_cb As ComboBox
915
+    Friend WithEvents 關鍵字查詢會計科目_tb As TextBox
916
+    Friend WithEvents 科目2_號_cb As ComboBox
917
+    Friend WithEvents 科目2_名_cb As ComboBox
918
+    Friend WithEvents 科目1_號_cb As ComboBox
919
+    Friend WithEvents 科目1_名_cb As ComboBox
920
+    Friend WithEvents 複製歷史單據重新開立_bt As Button
921
+    Friend WithEvents 已核准的收支單_rb As RadioButton
922
+    Friend WithEvents 支票_tb As TextBox
923
+    Friend WithEvents Label11 As Label
924
+    Friend WithEvents 零用金_tb As TextBox
925
+    Friend WithEvents Label10 As Label
926
+    Friend WithEvents 合計_tb As TextBox
927
+    Friend WithEvents 支出_tb As TextBox
928
+    Friend WithEvents Label5 As Label
929
+    Friend WithEvents 補單_ch As CheckBox
930
+    Friend WithEvents Label4 As Label
931
+    Friend WithEvents 日期_dtp As DateTimePicker
932
+    Friend WithEvents 申請_bt As Button
933
+    Friend WithEvents 科目3_名_cb As ComboBox
934
+    Friend WithEvents 收入_tb As TextBox
935
+    Friend WithEvents Label8 As Label
936
+    Friend WithEvents Label62 As Label
937
+    Friend WithEvents 項次_tb As TextBox
938
+    Friend WithEvents Label28 As Label
939
+    Friend WithEvents Label27 As Label
940
+    Friend WithEvents Label3 As Label
941
+    Friend WithEvents 申請人_tb As TextBox
942
+    Friend WithEvents 收支單號_tb As TextBox
943
+    Friend WithEvents Label1 As Label
944
+    Friend WithEvents 作廢的收支單_rb As RadioButton
945
+    Friend WithEvents 未核准的收支單_rb As RadioButton
946
+    Friend WithEvents Label2 As Label
947
+    Friend WithEvents Label13 As Label
948
+    Friend WithEvents Label12 As Label
949
+    Friend WithEvents Label7 As Label
950
+    Friend WithEvents Label6 As Label
951
+    Friend WithEvents Label9 As Label
952
+    Friend WithEvents 明細表_dgv As DataGridView
953
+    Friend WithEvents 營運收支單_dgv As DataGridView
954
+    Friend WithEvents Panel1 As Panel
955
+    Friend WithEvents 科目3_號_cb As ComboBox
956
+    Friend WithEvents 人民幣匯率_tb As TextBox
957
+    Friend WithEvents 美金匯率_tb As TextBox
958
+    Friend WithEvents 印尼匯率_tb As TextBox
959
+    Friend WithEvents DateTimePicker2 As DateTimePicker
960
+    Friend WithEvents Label14 As Label
961
+    Friend WithEvents Timer1 As Timer
962
+    Friend WithEvents ContextMenuStrip1 As ContextMenuStrip
963
+    Friend WithEvents 重新讀取ToolStripMenuItem As ToolStripMenuItem
964
+    Friend WithEvents ToolStripSeparator6 As ToolStripSeparator
965
+    Friend WithEvents 開立零用金支付單ToolStripMenuItem As ToolStripMenuItem
966
+    Friend WithEvents 複製單據開單ToolStripMenuItem As ToolStripMenuItem
967
+    Friend WithEvents 申請完成ToolStripMenuItem As ToolStripMenuItem
968
+    Friend WithEvents ToolStripSeparator1 As ToolStripSeparator
969
+    Friend WithEvents 新增一筆資料ToolStripMenuItem As ToolStripMenuItem
970
+    Friend WithEvents 刪除支付單中選中的資料ToolStripMenuItem As ToolStripMenuItem
971
+    Friend WithEvents ToolStripSeparator2 As ToolStripSeparator
972
+    Friend WithEvents 刪除選中的零用金支付單ToolStripMenuItem As ToolStripMenuItem
973
+End Class

+ 129
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單申請_ICS.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>24, 5</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>116, 5</value>
125
+  </metadata>
126
+  <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
127
+    <value>38</value>
128
+  </metadata>
129
+</root>

+ 0
- 0
工巧明智能管理系統/我的系統/02-財務系統管理/ISC/財務_收支單申請_ICS.vb ファイルの表示


変更されたファイルが多すぎるため、一部のファイルは表示されません

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