B70340 2 gadus atpakaļ
vecāks
revīzija
432fe2c261

Binārs
.vs/YD-ERP-SYS/FileContentIndex/610fd93c-399f-432f-bfeb-9957443319af.vsidx Parādīt failu


Binārs
.vs/YD-ERP-SYS/FileContentIndex/61b32861-1c0c-48e8-9b32-22b613a48955.vsidx Parādīt failu


Binārs
.vs/YD-ERP-SYS/v17/.suo Parādīt failu


+ 1
- 1
YD-ERP-SYS/Module/SQL_Module.vb Parādīt failu

1
 Imports System.Data.SqlClient
1
 Imports System.Data.SqlClient
2
 Module SQL_Module
2
 Module SQL_Module
3
-    Public ConString As String : Public SQL1 As String : Public SQL2 As String : Public SQL3 As String : Public SQL4 As String
3
+    Public ConString As String : Public SQL1, SQL2, SQL3, SQL4, SQL5 As String
4
     Public conn As New SqlConnection : Public cmd As New SqlCommand : Public dr As SqlDataReader : Public da As New SqlDataAdapter
4
     Public conn As New SqlConnection : Public cmd As New SqlCommand : Public dr As SqlDataReader : Public da As New SqlDataAdapter
5
     Public DTP As String : Public DTP1 As String : Public DTP2 As String : Public DTP3 As String : Public DTP4 As String
5
     Public DTP As String : Public DTP1 As String : Public DTP2 As String : Public DTP3 As String : Public DTP4 As String
6
     Public 登入權限 As String = "姓名, 帳號, 密碼, 職稱, 級別, CC01, CC02, CC03, CC04, CC05, CC06, CC07, CC08, CC09, CC10, CC11, CC12, CC13, CC14, CC15, CC16, CC17, CC18, CC19, CC20, CC21,
6
     Public 登入權限 As String = "姓名, 帳號, 密碼, 職稱, 級別, CC01, CC02, CC03, CC04, CC05, CC06, CC07, CC08, CC09, CC10, CC11, CC12, CC13, CC14, CC15, CC16, CC17, CC18, CC19, CC20, CC21,

+ 3
- 3
YD-ERP-SYS/Module/SQL_倉儲系統管理.vb Parādīt failu

110
         ConnOpen()
110
         ConnOpen()
111
         SQL1 = "SELECT      RR.倉名, BB.料號, BB.供應商, BB.品名, BB.訂製, BB.狀態, RR.庫存, WW.未出庫, QQ.未入庫, RR.庫存 AS 可領用, 
111
         SQL1 = "SELECT      RR.倉名, BB.料號, BB.供應商, BB.品名, BB.訂製, BB.狀態, RR.庫存, WW.未出庫, QQ.未入庫, RR.庫存 AS 可領用, 
112
                             BB.最低庫存量, 系統比例用空白圖片.圖片 AS 庫存比例, BB.圖片, 倉儲分區控制表.倉名 AS 倉名1, 
112
                             BB.最低庫存量, 系統比例用空白圖片.圖片 AS 庫存比例, BB.圖片, 倉儲分區控制表.倉名 AS 倉名1, 
113
-                            倉儲分區控制表_4.倉名 AS 倉名2, 倉儲分區控制表_5.倉名 AS 倉名3, BB.物料狀態
113
+                            倉儲分區控制表_4.倉名 AS 倉名2, 倉儲分區控制表_5.倉名 AS 倉名3, BB.物料狀態 " & SQL5 & "
114
                 FROM              系統比例用空白圖片 RIGHT OUTER JOIN
114
                 FROM              系統比例用空白圖片 RIGHT OUTER JOIN
115
                             倉儲分區控制表 AS 倉儲分區控制表_4 INNER JOIN
115
                             倉儲分區控制表 AS 倉儲分區控制表_4 INNER JOIN
116
                                 (SELECT          SUM(倉儲明細表_1.入庫) AS 未入庫, 倉儲明細表_1.料號, 倉儲分區控制表_1.倉名編號, 
116
                                 (SELECT          SUM(倉儲明細表_1.入庫) AS 未入庫, 倉儲明細表_1.料號, 倉儲分區控制表_1.倉名編號, 
134
                             AS WW ON 倉儲分區控制表_5.倉名編號 = WW.倉名編號 RIGHT OUTER JOIN
134
                             AS WW ON 倉儲分區控制表_5.倉名編號 = WW.倉名編號 RIGHT OUTER JOIN
135
                                 (SELECT          供應商資料表.編號, 物料資料庫.料號, 供應商資料表.簡稱 AS 供應商, 物料資料庫.品名, 
135
                                 (SELECT          供應商資料表.編號, 物料資料庫.料號, 供應商資料表.簡稱 AS 供應商, 物料資料庫.品名, 
136
                                                               物料訂製狀態.訂製, 倉儲狀態.狀態, AA.物料狀態, AA.訂製狀態, 物料資料庫.是否有圖 AS 圖片, 
136
                                                               物料訂製狀態.訂製, 倉儲狀態.狀態, AA.物料狀態, AA.訂製狀態, 物料資料庫.是否有圖 AS 圖片, 
137
-                                                              物料資料庫.最低庫存量, 物料資料庫.進度條用空白
137
+                                                              物料資料庫.最低庫存量, 物料資料庫.進度條用空白, 物料資料庫.成本
138
                                   FROM               物料訂製狀態 RIGHT OUTER JOIN
138
                                   FROM               物料訂製狀態 RIGHT OUTER JOIN
139
                                                               倉儲狀態 RIGHT OUTER JOIN
139
                                                               倉儲狀態 RIGHT OUTER JOIN
140
                                                                   (SELECT          料號, 物料狀態, 訂製狀態
140
                                                                   (SELECT          料號, 物料狀態, 訂製狀態
146
                                                               物料資料庫 ON 供應商資料表.編號 = 物料資料庫.供應商編號 ON AA.料號 = 物料資料庫.料號
146
                                                               物料資料庫 ON 供應商資料表.編號 = 物料資料庫.供應商編號 ON AA.料號 = 物料資料庫.料號
147
                                   GROUP BY    供應商資料表.編號, 物料資料庫.料號, 供應商資料表.簡稱, 物料資料庫.品名, 物料訂製狀態.訂製, 
147
                                   GROUP BY    供應商資料表.編號, 物料資料庫.料號, 供應商資料表.簡稱, 物料資料庫.品名, 物料訂製狀態.訂製, 
148
                                                               倉儲狀態.狀態, AA.物料狀態, AA.訂製狀態, 物料資料庫.是否有圖, 物料資料庫.最低庫存量, 
148
                                                               倉儲狀態.狀態, AA.物料狀態, AA.訂製狀態, 物料資料庫.是否有圖, 物料資料庫.最低庫存量, 
149
-                                                              物料資料庫.進度條用空白) AS BB ON WW.訂製狀態 = BB.訂製狀態 AND 
149
+                                                              物料資料庫.進度條用空白, 物料資料庫.成本) AS BB ON WW.訂製狀態 = BB.訂製狀態 AND 
150
                             WW.物料狀態 = BB.物料狀態 AND WW.料號 = BB.料號 LEFT OUTER JOIN
150
                             WW.物料狀態 = BB.物料狀態 AND WW.料號 = BB.料號 LEFT OUTER JOIN
151
                                 (SELECT          SUM(倉儲明細表_3.入庫) - SUM(倉儲明細表_3.出庫) AS 庫存, 倉儲明細表_3.料號, 
151
                                 (SELECT          SUM(倉儲明細表_3.入庫) - SUM(倉儲明細表_3.出庫) AS 庫存, 倉儲明細表_3.料號, 
152
                                                               倉儲分區控制表_3.倉名編號, 倉儲明細表_3.物料狀態, 倉儲明細表_3.訂製狀態, 
152
                                                               倉儲分區控制表_3.倉名編號, 倉儲明細表_3.物料狀態, 倉儲明細表_3.訂製狀態, 

+ 21
- 1
YD-ERP-SYS/Module/SQL_財務系統管理.vb Parādīt failu

467
         CmdSet_For_dr()
467
         CmdSet_For_dr()
468
     End Sub
468
     End Sub
469
     '---------------------營運成本收支單_對帳表.----------------------------------------------------------------------------------------------------------------------------------------------
469
     '---------------------營運成本收支單_對帳表.----------------------------------------------------------------------------------------------------------------------------------------------
470
+    Friend Sub SQL_剔除存檔新增()
471
+        ConnOpen() : SQL1 = "INSERT INTO  剔除會科存檔 (剔除會科) VALUES (N'" & PA1 & "')" : CmdSet_For_dr()
472
+    End Sub
473
+    Friend Sub SQL_剔除存檔比對()
474
+        ConnOpen() : SQL1 = "SELECT  剔除會科  FROM  剔除會科存檔 WHERE 剔除會科 LIKE N'" & PA1 & "'" : CmdSet_For_dr()
475
+    End Sub
476
+    Friend Sub SQL_剔除存檔()
477
+        ConnOpen() : SQL1 = "SELECT  剔除會科  FROM  剔除會科存檔" : CmdSet_For_DGV()
478
+    End Sub
479
+    Friend Sub SQL_剔除會科()
480
+        ConnOpen()
481
+        SQL1 = "SELECT  系統選擇按鈕.選擇, QQ.會計科目, QQ.類別
482
+                FROM    系統選擇按鈕 RIGHT OUTER JOIN
483
+                       (SELECT       TOP (100) PERCENT 會計科目.會計科目, 公帳流水帳.類別
484
+                        FROM        公帳流水帳 INNER JOIN 會計科目 ON 公帳流水帳.類別 = 會計科目.編號 INNER JOIN
485
+                                    公帳控制表 ON 公帳流水帳.支付單號 = 公帳控制表.支付單號
486
+                        WHERE      (公帳控制表.審核日期 LIKE '" & PA & "%')
487
+                        GROUP BY    會計科目.會計科目, 公帳流水帳.類別  ORDER BY  公帳流水帳.類別) AS QQ ON 系統選擇按鈕.按鈕 = QQ.會計科目"
488
+        CmdSet_For_DGV()
489
+    End Sub
470
     Friend Sub SQL_營運成本收支單對帳表()
490
     Friend Sub SQL_營運成本收支單對帳表()
471
         ConnOpen()
491
         ConnOpen()
472
         SQL1 = "SELECT      公帳控制表.支付單號 AS 收支單號, 公帳控制表.申請人, 公帳控制表.申請日期, 公帳控制表.審核人, 
492
         SQL1 = "SELECT      公帳控制表.支付單號 AS 收支單號, 公帳控制表.申請人, 公帳控制表.申請日期, 公帳控制表.審核人, 
473
                             公帳控制表.審核日期, 公帳流水帳.項次, 會計科目.會計科目, 公帳流水帳.明細 AS 用途與內容, 
493
                             公帳控制表.審核日期, 公帳流水帳.項次, 會計科目.會計科目, 公帳流水帳.明細 AS 用途與內容, 
474
                             公帳流水帳.零用金, 公帳流水帳.支票數 AS 支票, Cast(公帳流水帳.收入 AS money) AS 收入, 
494
                             公帳流水帳.零用金, 公帳流水帳.支票數 AS 支票, Cast(公帳流水帳.收入 AS money) AS 收入, 
475
-                            Cast(公帳流水帳.支出 AS money) AS 支出, 公帳流水帳.備註 AS 票期, 公帳流水帳.會計, 公帳流水帳.日期 AS 作帳日期, 
495
+                            Cast(公帳流水帳.支出 AS money) AS 支出, 公帳流水帳.備註, 公帳流水帳.會計, 公帳流水帳.日期 AS 作帳日期, 
476
                             公帳流水帳.出納 AS 點交, 公帳流水帳.出納日期 AS 點交日期, 公帳流水帳.備用金 AS 零用金點交, 
496
                             公帳流水帳.出納 AS 點交, 公帳流水帳.出納日期 AS 點交日期, 公帳流水帳.備用金 AS 零用金點交, 
477
                             公帳流水帳.支票 AS 支票兌現, 公帳流水帳.現金 AS 現金點交, 公帳流水帳.公帳 AS 支出點交, 公帳流水帳.匯率, 公帳流水帳.銀行 AS 幣別
497
                             公帳流水帳.支票 AS 支票兌現, 公帳流水帳.現金 AS 現金點交, 公帳流水帳.公帳 AS 支出點交, 公帳流水帳.匯率, 公帳流水帳.銀行 AS 幣別
478
                 FROM        公帳流水帳 INNER JOIN
498
                 FROM        公帳流水帳 INNER JOIN

+ 14
- 2
YD-ERP-SYS/Module/SQL_資料庫系統管理.vb Parādīt failu

223
     End Sub
223
     End Sub
224
     Friend Sub SQL_主資料庫LOG檔案截斷()
224
     Friend Sub SQL_主資料庫LOG檔案截斷()
225
         ConnOpen() : SQL1 = "USE [" & PA & "]" : CmdSet_For_dr()
225
         ConnOpen() : SQL1 = "USE [" & PA & "]" : CmdSet_For_dr()
226
+        ConnOpen() : SQL1 = "select name from sys.database_files where name not like '%_log';" : CmdSet_For_dr()
227
+        If dr.Read Then : PA1 = dr("name").ToString : End If
228
+        If PA = PA1 Then : Else
229
+            ConnOpen() : SQL1 = "alter database [" & PA & "] modify file(name=[" & PA1 & "], newname =[" & PA & "])" : CmdSet_For_dr()
230
+        End If
231
+
232
+        ConnOpen() : SQL1 = "select name from sys.database_files where name like '%_log';" : CmdSet_For_dr()
233
+        If dr.Read Then : PA1 = dr("name").ToString : End If
234
+        If PA & "_log" = PA1 Then : Else
235
+            ConnOpen() : SQL1 = "alter database [" & PA & "] modify file(name=[" & PA1 & "], newname=[" & PA & "_log])" : CmdSet_For_dr()
236
+        End If
237
+
226
         ConnOpen() : SQL1 = "ALTER DATABASE [" & PA & "]
238
         ConnOpen() : SQL1 = "ALTER DATABASE [" & PA & "]
227
-                             SET RECOVERY SIMPLE;" : CmdSet_For_dr()
239
+                                   SET RECOVERY SIMPLE;" : CmdSet_For_dr()
228
         ConnOpen() : SQL1 = "DBCC SHRINKFILE ([" & PA & "_Log], 1);" : CmdSet_For_dr()
240
         ConnOpen() : SQL1 = "DBCC SHRINKFILE ([" & PA & "_Log], 1);" : CmdSet_For_dr()
229
         ConnOpen() : SQL1 = "ALTER DATABASE [" & PA & "]
241
         ConnOpen() : SQL1 = "ALTER DATABASE [" & PA & "]
230
-                             SET RECOVERY FULL;" : CmdSet_For_dr()
242
+                                   SET RECOVERY FULL;" : CmdSet_For_dr()
231
     End Sub
243
     End Sub
232
     '---------------------個人帳號管理-----------------------------------------------------------------------------------------------------------------
244
     '---------------------個人帳號管理-----------------------------------------------------------------------------------------------------------------
233
     Friend Sub SQL_個人帳號管理_使用者資料查詢()
245
     Friend Sub SQL_個人帳號管理_使用者資料查詢()

+ 1
- 1
YD-ERP-SYS/Module/全域變數.vb Parādīt failu

3
     Public g_conn_type, gUserName, 登入人職稱, 登入人級別, 登入人組別, 登入人IP, 版本號, Target, Target1, Target2, FTP帳號, FTP密碼, FTP物理位置, 業務號碼, AA(99), 類別 As String
3
     Public g_conn_type, gUserName, 登入人職稱, 登入人級別, 登入人組別, 登入人IP, 版本號, Target, Target1, Target2, FTP帳號, FTP密碼, FTP物理位置, 業務號碼, AA(99), 類別 As String
4
     Public BB(99), CC(99), 登入判斷 As Boolean
4
     Public BB(99), CC(99), 登入判斷 As Boolean
5
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6
-    Public 版本 As String = "2022120101"
6
+    Public 版本 As String = "2022121701"
7
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8
     Public 列印用SQL, 列印用SQL2, 公司編號, 公司電話, 公司統編, 公司地址, 關鍵字編號, 進度條後墜 As String
8
     Public 列印用SQL, 列印用SQL2, 公司編號, 公司電話, 公司統編, 公司地址, 關鍵字編號, 進度條後墜 As String
9
     '----系統閒置-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9
     '----系統閒置-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Binārs
YD-ERP-SYS/bin/Debug/YD-ERP-SYS.exe Parādīt failu


Binārs
YD-ERP-SYS/bin/Debug/YD-ERP-SYS.pdb Parādīt failu


Binārs
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.exe Parādīt failu


Binārs
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.pdb Parādīt failu


Binārs
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbproj.GenerateResource.cache Parādīt failu


+ 25
- 17
YD-ERP-SYS/倉儲系統管理/倉儲控制表.vb Parādīt failu

22
             控制表_dgv.ColumnHeadersHeight = 40
22
             控制表_dgv.ColumnHeadersHeight = 40
23
             控制表_dgv.AllowUserToAddRows = False
23
             控制表_dgv.AllowUserToAddRows = False
24
             控制表_dgv.RowTemplate.Height = 30
24
             控制表_dgv.RowTemplate.Height = 30
25
+            If 登入人級別 = "00" Or 登入人級別 = "01" Or 登入人級別 = "02" Then : SQL5 = ", BB.成本" : Else : SQL5 = "" : End If
25
 
26
 
26
             SQL_倉儲控制表_控制表()
27
             SQL_倉儲控制表_控制表()
27
             da.Fill(ds) : 控制表_dgv.DataSource = ds.Tables(0) : conn.Close()
28
             da.Fill(ds) : 控制表_dgv.DataSource = ds.Tables(0) : conn.Close()
32
             控制表_dgv.Columns(12).FillWeight = 50 : 控制表_dgv.Columns(13).Visible = False : 控制表_dgv.Columns(14).Visible = False : 控制表_dgv.Columns(15).Visible = False
33
             控制表_dgv.Columns(12).FillWeight = 50 : 控制表_dgv.Columns(13).Visible = False : 控制表_dgv.Columns(14).Visible = False : 控制表_dgv.Columns(15).Visible = False
33
             控制表_dgv.Columns(16).Visible = False
34
             控制表_dgv.Columns(16).Visible = False
34
 
35
 
36
+            If 登入人級別 = "00" Or 登入人級別 = "01" Or 登入人級別 = "02" Then
37
+                控制表_dgv.Columns("成本").FillWeight = 70 : 控制表_dgv.Columns("成本").DefaultCellStyle.Format = "#,##0"
38
+                控制表_dgv.Columns("成本").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
39
+                控制表_dgv.Columns("成本").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
40
+            Else : End If
41
+
35
             控制表_dgv.Columns("庫存").DefaultCellStyle.Format = "#,##0" : 控制表_dgv.Columns("未入庫").DefaultCellStyle.Format = "#,##0"
42
             控制表_dgv.Columns("庫存").DefaultCellStyle.Format = "#,##0" : 控制表_dgv.Columns("未入庫").DefaultCellStyle.Format = "#,##0"
36
             控制表_dgv.Columns("未出庫").DefaultCellStyle.Format = "#,##0" : 控制表_dgv.Columns("可領用").DefaultCellStyle.Format = "#,##0"
43
             控制表_dgv.Columns("未出庫").DefaultCellStyle.Format = "#,##0" : 控制表_dgv.Columns("可領用").DefaultCellStyle.Format = "#,##0"
37
             控制表_dgv.Columns("最低庫存量").DefaultCellStyle.Format = "#,##0"
44
             控制表_dgv.Columns("最低庫存量").DefaultCellStyle.Format = "#,##0"
303
         狀態_ch.Items.Add("") : While (dr.Read()) : 狀態_ch.Items.Add(dr("狀態")) : End While : conn.Close()
310
         狀態_ch.Items.Add("") : While (dr.Read()) : 狀態_ch.Items.Add(dr("狀態")) : End While : conn.Close()
304
     End Sub
311
     End Sub
305
     Private Sub 倉儲控制表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
312
     Private Sub 倉儲控制表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
306
-        Try
307
-            Me.MdiParent = YD_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
308
-            小間距_ch.Checked = True : 不顯示歸零_ch.Checked = True
309
-            首次開啟 = False
310
-            指定倉庫_cb_下拉表單資料載入() : 倉儲狀態_cb_下拉表單資料載入() : 狀態_cb_下拉表單資料載入() : Set_清單() : 首次開啟 = True '--------------------資料讀取
311
-            If CC(52) = False Then
312
-                刪除_bt.Enabled = False : 新增_bt.Enabled = False
313
-            End If
314
-            If YD_ERP_SYS.Size.Width > 1440 And YD_ERP_SYS.Size.Height > 900 Then
315
-                字體_NUD.Value = 9
316
-            ElseIf YD_ERP_SYS.Size.Width <= 1440 And YD_ERP_SYS.Size.Height <= 900 Then
317
-                字體_NUD.Value = 7.6
318
-            End If
319
-        Catch ex As Exception
320
-            MsgBox(ex.Message)
321
-        End Try
313
+        Me.MdiParent = YD_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
314
+        小間距_ch.Checked = True : 不顯示歸零_ch.Checked = True
315
+        首次開啟 = False
316
+        指定倉庫_cb_下拉表單資料載入() : 倉儲狀態_cb_下拉表單資料載入() : 狀態_cb_下拉表單資料載入() : Set_清單() : 首次開啟 = True '--------------------資料讀取
317
+        If CC(52) = False Then
318
+            刪除_bt.Enabled = False : 新增_bt.Enabled = False
319
+        End If
320
+        If YD_ERP_SYS.Size.Width > 1440 And YD_ERP_SYS.Size.Height > 900 Then
321
+            字體_NUD.Value = 9
322
+        ElseIf YD_ERP_SYS.Size.Width <= 1440 And YD_ERP_SYS.Size.Height <= 900 Then
323
+            字體_NUD.Value = 7.6
324
+        End If
322
     End Sub
325
     End Sub
323
     Private Sub 倉儲控制表_SizeChanged(sender As Object, e As EventArgs) Handles MyBase.SizeChanged
326
     Private Sub 倉儲控制表_SizeChanged(sender As Object, e As EventArgs) Handles MyBase.SizeChanged
324
         If YD_ERP_SYS.Size.Width > 1440 And YD_ERP_SYS.Size.Height > 900 Then
327
         If YD_ERP_SYS.Size.Width > 1440 And YD_ERP_SYS.Size.Height > 900 Then
472
 
475
 
473
             xlSheet.Cells(1, 1) = "雅邸家具有限公司-倉儲控制表 " : xlSheet.Cells(2, 1) = "倉名" : xlSheet.Cells(2, 2) = "料號" : xlSheet.Cells(2, 3) = "供應商"
476
             xlSheet.Cells(1, 1) = "雅邸家具有限公司-倉儲控制表 " : xlSheet.Cells(2, 1) = "倉名" : xlSheet.Cells(2, 2) = "料號" : xlSheet.Cells(2, 3) = "供應商"
474
             xlSheet.Cells(2, 4) = "品名" : xlSheet.Cells(2, 5) = "訂製" : xlSheet.Cells(2, 6) = "狀態" : xlSheet.Cells(2, 7) = "庫存" : xlSheet.Cells(2, 8) = "備註"
477
             xlSheet.Cells(2, 4) = "品名" : xlSheet.Cells(2, 5) = "訂製" : xlSheet.Cells(2, 6) = "狀態" : xlSheet.Cells(2, 7) = "庫存" : xlSheet.Cells(2, 8) = "備註"
475
-
478
+            If 登入人級別 = "00" Or 登入人級別 = "01" Or 登入人級別 = "02" Then
479
+                xlSheet.Cells(2, 9) = "成本"
480
+            Else : End If
476
             For i As Integer = 0 To 控制表_dgv.Rows.Count - 1
481
             For i As Integer = 0 To 控制表_dgv.Rows.Count - 1
477
                 xlSheet.Cells(i + 3, 1) = 控制表_dgv.Rows(i).Cells("倉名").Value : xlSheet.Cells(i + 3, 2) = 控制表_dgv.Rows(i).Cells("料號").Value
482
                 xlSheet.Cells(i + 3, 1) = 控制表_dgv.Rows(i).Cells("倉名").Value : xlSheet.Cells(i + 3, 2) = 控制表_dgv.Rows(i).Cells("料號").Value
478
                 xlSheet.Cells(i + 3, 3) = 控制表_dgv.Rows(i).Cells("供應商").Value : xlSheet.Cells(i + 3, 4) = 控制表_dgv.Rows(i).Cells("品名").Value
483
                 xlSheet.Cells(i + 3, 3) = 控制表_dgv.Rows(i).Cells("供應商").Value : xlSheet.Cells(i + 3, 4) = 控制表_dgv.Rows(i).Cells("品名").Value
479
                 xlSheet.Cells(i + 3, 5) = 控制表_dgv.Rows(i).Cells("訂製").Value : xlSheet.Cells(i + 3, 6) = 控制表_dgv.Rows(i).Cells("狀態").Value
484
                 xlSheet.Cells(i + 3, 5) = 控制表_dgv.Rows(i).Cells("訂製").Value : xlSheet.Cells(i + 3, 6) = 控制表_dgv.Rows(i).Cells("狀態").Value
480
                 xlSheet.Cells(i + 3, 7) = 控制表_dgv.Rows(i).Cells("庫存").Value
485
                 xlSheet.Cells(i + 3, 7) = 控制表_dgv.Rows(i).Cells("庫存").Value
486
+                If 登入人級別 = "00" Or 登入人級別 = "01" Or 登入人級別 = "02" Then
487
+                    xlSheet.Cells(i + 3, 9) = 控制表_dgv.Rows(i).Cells("成本").Value
488
+                Else : End If
481
                 N2 = i + 3
489
                 N2 = i + 3
482
             Next i
490
             Next i
483
 
491
 

+ 2
- 2
YD-ERP-SYS/財務系統管理/業績運費明細表.vb Parādīt failu

195
             xlApp.Application.WindowState = xlMaximized
195
             xlApp.Application.WindowState = xlMaximized
196
 
196
 
197
             xlSheet.Cells(1, 1) = "雅邸家居" : xlSheet.Cells(2, 1) = "司 機 運 費 (明細表)" : xlSheet.Cells(3, 1) = "日期區間:" & 開始日期_dtp.Value & " ~ " & 結束日期_dtp.Value
197
             xlSheet.Cells(1, 1) = "雅邸家居" : xlSheet.Cells(2, 1) = "司 機 運 費 (明細表)" : xlSheet.Cells(3, 1) = "日期區間:" & 開始日期_dtp.Value & " ~ " & 結束日期_dtp.Value
198
-            xlSheet.Cells(4, 1) = "完單日期" : xlSheet.Cells(4, 2) = "單據號碼" : xlSheet.Cells(4, 3) = "客戶名稱" : xlSheet.Cells(4, 4) = "運費總計" : xlSheet.Cells(4, 5) = "已付"
198
+            xlSheet.Cells(4, 1) = "完單日期" : xlSheet.Cells(4, 2) = "單據號碼" : xlSheet.Cells(4, 3) = "地址" : xlSheet.Cells(4, 4) = "運費總計" : xlSheet.Cells(4, 5) = "已付"
199
             xlSheet.Cells(4, 6) = "銷售小計" : xlSheet.Cells(4, 7) = "運費" : xlSheet.Cells(4, 8) = "衍伸運費"
199
             xlSheet.Cells(4, 6) = "銷售小計" : xlSheet.Cells(4, 7) = "運費" : xlSheet.Cells(4, 8) = "衍伸運費"
200
             For I As Integer = 0 To 運費明細表_dgv.Rows.Count - 1
200
             For I As Integer = 0 To 運費明細表_dgv.Rows.Count - 1
201
                 xlSheet.Cells(I + 5, 1) = 運費明細表_dgv.Rows(I).Cells("完單日期").Value
201
                 xlSheet.Cells(I + 5, 1) = 運費明細表_dgv.Rows(I).Cells("完單日期").Value
202
                 xlSheet.Cells(I + 5, 2) = 運費明細表_dgv.Rows(I).Cells("單號").Value
202
                 xlSheet.Cells(I + 5, 2) = 運費明細表_dgv.Rows(I).Cells("單號").Value
203
-                xlSheet.Cells(I + 5, 3) = 運費明細表_dgv.Rows(I).Cells("名稱").Value
203
+                xlSheet.Cells(I + 5, 3) = 運費明細表_dgv.Rows(I).Cells("地址").Value
204
                 xlSheet.Cells(I + 5, 4) = 運費明細表_dgv.Rows(I).Cells("運費").Value
204
                 xlSheet.Cells(I + 5, 4) = 運費明細表_dgv.Rows(I).Cells("運費").Value
205
                 xlSheet.Cells(I + 5, 5) = 運費明細表_dgv.Rows(I).Cells("已付運費").Value
205
                 xlSheet.Cells(I + 5, 5) = 運費明細表_dgv.Rows(I).Cells("已付運費").Value
206
                 xlSheet.Cells(I + 5, 6) = 運費明細表_dgv.Rows(I).Cells("銷售小計").Value
206
                 xlSheet.Cells(I + 5, 6) = 運費明細表_dgv.Rows(I).Cells("銷售小計").Value

+ 305
- 65
YD-ERP-SYS/財務系統管理/財務_對帳表.Designer.vb Parādīt failu

23
     <System.Diagnostics.DebuggerStepThrough()> _
23
     <System.Diagnostics.DebuggerStepThrough()> _
24
     Private Sub InitializeComponent()
24
     Private Sub InitializeComponent()
25
         Me.components = New System.ComponentModel.Container()
25
         Me.components = New System.ComponentModel.Container()
26
-        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
         Me.未兌現支票1_tb = New System.Windows.Forms.TextBox()
27
         Me.未兌現支票1_tb = New System.Windows.Forms.TextBox()
28
         Me.Label13 = New System.Windows.Forms.Label()
28
         Me.Label13 = New System.Windows.Forms.Label()
29
         Me.未兌現支票_tb = New System.Windows.Forms.TextBox()
29
         Me.未兌現支票_tb = New System.Windows.Forms.TextBox()
72
         Me.全部_ch = New System.Windows.Forms.CheckBox()
72
         Me.全部_ch = New System.Windows.Forms.CheckBox()
73
         Me.只有收入_cb = New System.Windows.Forms.CheckBox()
73
         Me.只有收入_cb = New System.Windows.Forms.CheckBox()
74
         Me.只有支出_cb = New System.Windows.Forms.CheckBox()
74
         Me.只有支出_cb = New System.Windows.Forms.CheckBox()
75
+        Me.特別計算_bt = New System.Windows.Forms.Button()
76
+        Me.視窗2_pl = New System.Windows.Forms.Panel()
77
+        Me.Panel3 = New System.Windows.Forms.Panel()
78
+        Me.剔除後總和_tb = New System.Windows.Forms.TextBox()
79
+        Me.Label18 = New System.Windows.Forms.Label()
80
+        Me.剔除後支出_tb = New System.Windows.Forms.TextBox()
81
+        Me.Label17 = New System.Windows.Forms.Label()
82
+        Me.剔除後收入_tb = New System.Windows.Forms.TextBox()
83
+        Me.Label15 = New System.Windows.Forms.Label()
84
+        Me.剃除計算_bt = New System.Windows.Forms.Button()
85
+        Me.存檔_bt = New System.Windows.Forms.Button()
86
+        Me.會科_dgv = New System.Windows.Forms.DataGridView()
87
+        Me.Label16 = New System.Windows.Forms.Label()
88
+        Me.CanceL2_bt = New System.Windows.Forms.Button()
89
+        Me.Panel1 = New System.Windows.Forms.Panel()
90
+        Me.剔除存檔_dgv = New System.Windows.Forms.DataGridView()
75
         CType(Me.明細_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
91
         CType(Me.明細_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
76
         Me.ContextMenuStrip1.SuspendLayout()
92
         Me.ContextMenuStrip1.SuspendLayout()
77
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).BeginInit()
93
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).BeginInit()
94
+        Me.視窗2_pl.SuspendLayout()
95
+        Me.Panel3.SuspendLayout()
96
+        CType(Me.會科_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
97
+        Me.Panel1.SuspendLayout()
98
+        CType(Me.剔除存檔_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
78
         Me.SuspendLayout()
99
         Me.SuspendLayout()
79
         '
100
         '
80
         '未兌現支票1_tb
101
         '未兌現支票1_tb
81
         '
102
         '
82
         Me.未兌現支票1_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
103
         Me.未兌現支票1_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
83
         Me.未兌現支票1_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
104
         Me.未兌現支票1_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
84
-        Me.未兌現支票1_tb.Location = New System.Drawing.Point(285, 56)
105
+        Me.未兌現支票1_tb.Location = New System.Drawing.Point(256, 56)
85
         Me.未兌現支票1_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
106
         Me.未兌現支票1_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
86
         Me.未兌現支票1_tb.Name = "未兌現支票1_tb"
107
         Me.未兌現支票1_tb.Name = "未兌現支票1_tb"
87
         Me.未兌現支票1_tb.Size = New System.Drawing.Size(100, 23)
108
         Me.未兌現支票1_tb.Size = New System.Drawing.Size(100, 23)
93
         Me.Label13.AutoSize = True
114
         Me.Label13.AutoSize = True
94
         Me.Label13.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
115
         Me.Label13.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
95
         Me.Label13.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
116
         Me.Label13.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
96
-        Me.Label13.Location = New System.Drawing.Point(215, 59)
117
+        Me.Label13.Location = New System.Drawing.Point(186, 59)
97
         Me.Label13.Name = "Label13"
118
         Me.Label13.Name = "Label13"
98
-        Me.Label13.Size = New System.Drawing.Size(68, 16)
119
+        Me.Label13.Size = New System.Drawing.Size(67, 16)
99
         Me.Label13.TabIndex = 1071
120
         Me.Label13.TabIndex = 1071
100
         Me.Label13.Text = "未兌現支票"
121
         Me.Label13.Text = "未兌現支票"
101
         '
122
         '
103
         '
124
         '
104
         Me.未兌現支票_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
125
         Me.未兌現支票_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
105
         Me.未兌現支票_tb.ForeColor = System.Drawing.Color.Green
126
         Me.未兌現支票_tb.ForeColor = System.Drawing.Color.Green
106
-        Me.未兌現支票_tb.Location = New System.Drawing.Point(285, 30)
127
+        Me.未兌現支票_tb.Location = New System.Drawing.Point(256, 30)
107
         Me.未兌現支票_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
128
         Me.未兌現支票_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
108
         Me.未兌現支票_tb.Name = "未兌現支票_tb"
129
         Me.未兌現支票_tb.Name = "未兌現支票_tb"
109
         Me.未兌現支票_tb.Size = New System.Drawing.Size(100, 23)
130
         Me.未兌現支票_tb.Size = New System.Drawing.Size(100, 23)
115
         Me.Label14.AutoSize = True
136
         Me.Label14.AutoSize = True
116
         Me.Label14.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
137
         Me.Label14.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
117
         Me.Label14.ForeColor = System.Drawing.Color.Green
138
         Me.Label14.ForeColor = System.Drawing.Color.Green
118
-        Me.Label14.Location = New System.Drawing.Point(215, 35)
139
+        Me.Label14.Location = New System.Drawing.Point(186, 35)
119
         Me.Label14.Name = "Label14"
140
         Me.Label14.Name = "Label14"
120
-        Me.Label14.Size = New System.Drawing.Size(68, 16)
141
+        Me.Label14.Size = New System.Drawing.Size(67, 16)
121
         Me.Label14.TabIndex = 1069
142
         Me.Label14.TabIndex = 1069
122
         Me.Label14.Text = "未兌現支票"
143
         Me.Label14.Text = "未兌現支票"
123
         '
144
         '
125
         '
146
         '
126
         Me.已兌現支票1_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
147
         Me.已兌現支票1_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
127
         Me.已兌現支票1_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
148
         Me.已兌現支票1_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
128
-        Me.已兌現支票1_tb.Location = New System.Drawing.Point(457, 56)
149
+        Me.已兌現支票1_tb.Location = New System.Drawing.Point(428, 56)
129
         Me.已兌現支票1_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
150
         Me.已兌現支票1_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
130
         Me.已兌現支票1_tb.Name = "已兌現支票1_tb"
151
         Me.已兌現支票1_tb.Name = "已兌現支票1_tb"
131
         Me.已兌現支票1_tb.Size = New System.Drawing.Size(100, 23)
152
         Me.已兌現支票1_tb.Size = New System.Drawing.Size(100, 23)
137
         Me.Label11.AutoSize = True
158
         Me.Label11.AutoSize = True
138
         Me.Label11.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
159
         Me.Label11.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
139
         Me.Label11.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
160
         Me.Label11.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
140
-        Me.Label11.Location = New System.Drawing.Point(387, 60)
161
+        Me.Label11.Location = New System.Drawing.Point(358, 60)
141
         Me.Label11.Name = "Label11"
162
         Me.Label11.Name = "Label11"
142
-        Me.Label11.Size = New System.Drawing.Size(68, 16)
163
+        Me.Label11.Size = New System.Drawing.Size(67, 16)
143
         Me.Label11.TabIndex = 1067
164
         Me.Label11.TabIndex = 1067
144
         Me.Label11.Text = "已兌現支票"
165
         Me.Label11.Text = "已兌現支票"
145
         '
166
         '
147
         '
168
         '
148
         Me.已兌現支票_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
169
         Me.已兌現支票_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
149
         Me.已兌現支票_tb.ForeColor = System.Drawing.Color.Green
170
         Me.已兌現支票_tb.ForeColor = System.Drawing.Color.Green
150
-        Me.已兌現支票_tb.Location = New System.Drawing.Point(457, 29)
171
+        Me.已兌現支票_tb.Location = New System.Drawing.Point(428, 29)
151
         Me.已兌現支票_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
172
         Me.已兌現支票_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
152
         Me.已兌現支票_tb.Name = "已兌現支票_tb"
173
         Me.已兌現支票_tb.Name = "已兌現支票_tb"
153
         Me.已兌現支票_tb.Size = New System.Drawing.Size(100, 23)
174
         Me.已兌現支票_tb.Size = New System.Drawing.Size(100, 23)
159
         Me.Label12.AutoSize = True
180
         Me.Label12.AutoSize = True
160
         Me.Label12.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
181
         Me.Label12.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
161
         Me.Label12.ForeColor = System.Drawing.Color.Green
182
         Me.Label12.ForeColor = System.Drawing.Color.Green
162
-        Me.Label12.Location = New System.Drawing.Point(387, 34)
183
+        Me.Label12.Location = New System.Drawing.Point(358, 34)
163
         Me.Label12.Name = "Label12"
184
         Me.Label12.Name = "Label12"
164
-        Me.Label12.Size = New System.Drawing.Size(68, 16)
185
+        Me.Label12.Size = New System.Drawing.Size(67, 16)
165
         Me.Label12.TabIndex = 1065
186
         Me.Label12.TabIndex = 1065
166
         Me.Label12.Text = "已兌現支票"
187
         Me.Label12.Text = "已兌現支票"
167
         '
188
         '
169
         '
190
         '
170
         Me.零用金1_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
191
         Me.零用金1_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
171
         Me.零用金1_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
192
         Me.零用金1_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
172
-        Me.零用金1_tb.Location = New System.Drawing.Point(604, 56)
193
+        Me.零用金1_tb.Location = New System.Drawing.Point(575, 56)
173
         Me.零用金1_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
194
         Me.零用金1_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
174
         Me.零用金1_tb.Name = "零用金1_tb"
195
         Me.零用金1_tb.Name = "零用金1_tb"
175
         Me.零用金1_tb.Size = New System.Drawing.Size(100, 23)
196
         Me.零用金1_tb.Size = New System.Drawing.Size(100, 23)
181
         Me.Label1.AutoSize = True
202
         Me.Label1.AutoSize = True
182
         Me.Label1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
203
         Me.Label1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
183
         Me.Label1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
204
         Me.Label1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
184
-        Me.Label1.Location = New System.Drawing.Point(558, 59)
205
+        Me.Label1.Location = New System.Drawing.Point(529, 59)
185
         Me.Label1.Name = "Label1"
206
         Me.Label1.Name = "Label1"
186
-        Me.Label1.Size = New System.Drawing.Size(44, 16)
207
+        Me.Label1.Size = New System.Drawing.Size(43, 16)
187
         Me.Label1.TabIndex = 1063
208
         Me.Label1.TabIndex = 1063
188
         Me.Label1.Text = "零用金"
209
         Me.Label1.Text = "零用金"
189
         '
210
         '
191
         '
212
         '
192
         Me.零用金_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
213
         Me.零用金_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
193
         Me.零用金_tb.ForeColor = System.Drawing.Color.Green
214
         Me.零用金_tb.ForeColor = System.Drawing.Color.Green
194
-        Me.零用金_tb.Location = New System.Drawing.Point(604, 29)
215
+        Me.零用金_tb.Location = New System.Drawing.Point(575, 29)
195
         Me.零用金_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
216
         Me.零用金_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
196
         Me.零用金_tb.Name = "零用金_tb"
217
         Me.零用金_tb.Name = "零用金_tb"
197
         Me.零用金_tb.Size = New System.Drawing.Size(100, 23)
218
         Me.零用金_tb.Size = New System.Drawing.Size(100, 23)
203
         Me.Label3.AutoSize = True
224
         Me.Label3.AutoSize = True
204
         Me.Label3.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
225
         Me.Label3.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
205
         Me.Label3.ForeColor = System.Drawing.Color.Green
226
         Me.Label3.ForeColor = System.Drawing.Color.Green
206
-        Me.Label3.Location = New System.Drawing.Point(558, 34)
227
+        Me.Label3.Location = New System.Drawing.Point(529, 34)
207
         Me.Label3.Name = "Label3"
228
         Me.Label3.Name = "Label3"
208
-        Me.Label3.Size = New System.Drawing.Size(44, 16)
229
+        Me.Label3.Size = New System.Drawing.Size(43, 16)
209
         Me.Label3.TabIndex = 1061
230
         Me.Label3.TabIndex = 1061
210
         Me.Label3.Text = "零用金"
231
         Me.Label3.Text = "零用金"
211
         '
232
         '
213
         '
234
         '
214
         Me.只顯示支票資料_cb.AutoSize = True
235
         Me.只顯示支票資料_cb.AutoSize = True
215
         Me.只顯示支票資料_cb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
236
         Me.只顯示支票資料_cb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
216
-        Me.只顯示支票資料_cb.Location = New System.Drawing.Point(486, 5)
237
+        Me.只顯示支票資料_cb.Location = New System.Drawing.Point(457, 5)
217
         Me.只顯示支票資料_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
238
         Me.只顯示支票資料_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
218
         Me.只顯示支票資料_cb.Name = "只顯示支票資料_cb"
239
         Me.只顯示支票資料_cb.Name = "只顯示支票資料_cb"
219
-        Me.只顯示支票資料_cb.Size = New System.Drawing.Size(111, 20)
240
+        Me.只顯示支票資料_cb.Size = New System.Drawing.Size(110, 20)
220
         Me.只顯示支票資料_cb.TabIndex = 1060
241
         Me.只顯示支票資料_cb.TabIndex = 1060
221
         Me.只顯示支票資料_cb.Text = "只顯示支票資料"
242
         Me.只顯示支票資料_cb.Text = "只顯示支票資料"
222
         Me.只顯示支票資料_cb.UseVisualStyleBackColor = True
243
         Me.只顯示支票資料_cb.UseVisualStyleBackColor = True
227
         Me.隱藏作帳點交資訊_cb.Checked = True
248
         Me.隱藏作帳點交資訊_cb.Checked = True
228
         Me.隱藏作帳點交資訊_cb.CheckState = System.Windows.Forms.CheckState.Checked
249
         Me.隱藏作帳點交資訊_cb.CheckState = System.Windows.Forms.CheckState.Checked
229
         Me.隱藏作帳點交資訊_cb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
250
         Me.隱藏作帳點交資訊_cb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
230
-        Me.隱藏作帳點交資訊_cb.Location = New System.Drawing.Point(351, 6)
251
+        Me.隱藏作帳點交資訊_cb.Location = New System.Drawing.Point(322, 6)
231
         Me.隱藏作帳點交資訊_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
252
         Me.隱藏作帳點交資訊_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
232
         Me.隱藏作帳點交資訊_cb.Name = "隱藏作帳點交資訊_cb"
253
         Me.隱藏作帳點交資訊_cb.Name = "隱藏作帳點交資訊_cb"
233
-        Me.隱藏作帳點交資訊_cb.Size = New System.Drawing.Size(135, 20)
254
+        Me.隱藏作帳點交資訊_cb.Size = New System.Drawing.Size(134, 20)
234
         Me.隱藏作帳點交資訊_cb.TabIndex = 1059
255
         Me.隱藏作帳點交資訊_cb.TabIndex = 1059
235
         Me.隱藏作帳點交資訊_cb.Text = "隱藏作帳、點交資訊"
256
         Me.隱藏作帳點交資訊_cb.Text = "隱藏作帳、點交資訊"
236
         Me.隱藏作帳點交資訊_cb.UseVisualStyleBackColor = True
257
         Me.隱藏作帳點交資訊_cb.UseVisualStyleBackColor = True
239
         '
260
         '
240
         Me.隱藏申請審核資訊_cb.AutoSize = True
261
         Me.隱藏申請審核資訊_cb.AutoSize = True
241
         Me.隱藏申請審核資訊_cb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
262
         Me.隱藏申請審核資訊_cb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
242
-        Me.隱藏申請審核資訊_cb.Location = New System.Drawing.Point(216, 6)
263
+        Me.隱藏申請審核資訊_cb.Location = New System.Drawing.Point(187, 6)
243
         Me.隱藏申請審核資訊_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
264
         Me.隱藏申請審核資訊_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
244
         Me.隱藏申請審核資訊_cb.Name = "隱藏申請審核資訊_cb"
265
         Me.隱藏申請審核資訊_cb.Name = "隱藏申請審核資訊_cb"
245
-        Me.隱藏申請審核資訊_cb.Size = New System.Drawing.Size(135, 20)
266
+        Me.隱藏申請審核資訊_cb.Size = New System.Drawing.Size(134, 20)
246
         Me.隱藏申請審核資訊_cb.TabIndex = 1058
267
         Me.隱藏申請審核資訊_cb.TabIndex = 1058
247
         Me.隱藏申請審核資訊_cb.Text = "隱藏申請、審核資訊"
268
         Me.隱藏申請審核資訊_cb.Text = "隱藏申請、審核資訊"
248
         Me.隱藏申請審核資訊_cb.UseVisualStyleBackColor = True
269
         Me.隱藏申請審核資訊_cb.UseVisualStyleBackColor = True
251
         '
272
         '
252
         Me.損益1_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
273
         Me.損益1_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
253
         Me.損益1_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
274
         Me.損益1_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
254
-        Me.損益1_tb.Location = New System.Drawing.Point(1013, 56)
275
+        Me.損益1_tb.Location = New System.Drawing.Point(984, 56)
255
         Me.損益1_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
276
         Me.損益1_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
256
         Me.損益1_tb.Name = "損益1_tb"
277
         Me.損益1_tb.Name = "損益1_tb"
257
         Me.損益1_tb.Size = New System.Drawing.Size(100, 23)
278
         Me.損益1_tb.Size = New System.Drawing.Size(100, 23)
263
         Me.Label7.AutoSize = True
284
         Me.Label7.AutoSize = True
264
         Me.Label7.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
285
         Me.Label7.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
265
         Me.Label7.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
286
         Me.Label7.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
266
-        Me.Label7.Location = New System.Drawing.Point(979, 59)
287
+        Me.Label7.Location = New System.Drawing.Point(950, 59)
267
         Me.Label7.Name = "Label7"
288
         Me.Label7.Name = "Label7"
268
-        Me.Label7.Size = New System.Drawing.Size(32, 16)
289
+        Me.Label7.Size = New System.Drawing.Size(31, 16)
269
         Me.Label7.TabIndex = 1056
290
         Me.Label7.TabIndex = 1056
270
         Me.Label7.Text = "損益"
291
         Me.Label7.Text = "損益"
271
         '
292
         '
273
         '
294
         '
274
         Me.支出1_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
295
         Me.支出1_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
275
         Me.支出1_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
296
         Me.支出1_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
276
-        Me.支出1_tb.Location = New System.Drawing.Point(877, 56)
297
+        Me.支出1_tb.Location = New System.Drawing.Point(848, 56)
277
         Me.支出1_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
298
         Me.支出1_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
278
         Me.支出1_tb.Name = "支出1_tb"
299
         Me.支出1_tb.Name = "支出1_tb"
279
         Me.支出1_tb.Size = New System.Drawing.Size(100, 23)
300
         Me.支出1_tb.Size = New System.Drawing.Size(100, 23)
285
         Me.Label8.AutoSize = True
306
         Me.Label8.AutoSize = True
286
         Me.Label8.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
307
         Me.Label8.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
287
         Me.Label8.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
308
         Me.Label8.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
288
-        Me.Label8.Location = New System.Drawing.Point(843, 60)
309
+        Me.Label8.Location = New System.Drawing.Point(814, 60)
289
         Me.Label8.Name = "Label8"
310
         Me.Label8.Name = "Label8"
290
-        Me.Label8.Size = New System.Drawing.Size(32, 16)
311
+        Me.Label8.Size = New System.Drawing.Size(31, 16)
291
         Me.Label8.TabIndex = 1054
312
         Me.Label8.TabIndex = 1054
292
         Me.Label8.Text = "支出"
313
         Me.Label8.Text = "支出"
293
         '
314
         '
295
         '
316
         '
296
         Me.現金1_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
317
         Me.現金1_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
297
         Me.現金1_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
318
         Me.現金1_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
298
-        Me.現金1_tb.Location = New System.Drawing.Point(741, 56)
319
+        Me.現金1_tb.Location = New System.Drawing.Point(712, 56)
299
         Me.現金1_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
320
         Me.現金1_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
300
         Me.現金1_tb.Name = "現金1_tb"
321
         Me.現金1_tb.Name = "現金1_tb"
301
         Me.現金1_tb.Size = New System.Drawing.Size(100, 23)
322
         Me.現金1_tb.Size = New System.Drawing.Size(100, 23)
307
         Me.Label10.AutoSize = True
328
         Me.Label10.AutoSize = True
308
         Me.Label10.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
329
         Me.Label10.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
309
         Me.Label10.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
330
         Me.Label10.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
310
-        Me.Label10.Location = New System.Drawing.Point(706, 60)
331
+        Me.Label10.Location = New System.Drawing.Point(677, 60)
311
         Me.Label10.Name = "Label10"
332
         Me.Label10.Name = "Label10"
312
-        Me.Label10.Size = New System.Drawing.Size(32, 16)
333
+        Me.Label10.Size = New System.Drawing.Size(31, 16)
313
         Me.Label10.TabIndex = 1052
334
         Me.Label10.TabIndex = 1052
314
         Me.Label10.Text = "收入"
335
         Me.Label10.Text = "收入"
315
         '
336
         '
317
         '
338
         '
318
         Me.損益_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
339
         Me.損益_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
319
         Me.損益_tb.ForeColor = System.Drawing.Color.Green
340
         Me.損益_tb.ForeColor = System.Drawing.Color.Green
320
-        Me.損益_tb.Location = New System.Drawing.Point(1013, 29)
341
+        Me.損益_tb.Location = New System.Drawing.Point(984, 29)
321
         Me.損益_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
342
         Me.損益_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
322
         Me.損益_tb.Name = "損益_tb"
343
         Me.損益_tb.Name = "損益_tb"
323
         Me.損益_tb.Size = New System.Drawing.Size(100, 23)
344
         Me.損益_tb.Size = New System.Drawing.Size(100, 23)
329
         Me.Label6.AutoSize = True
350
         Me.Label6.AutoSize = True
330
         Me.Label6.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
351
         Me.Label6.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
331
         Me.Label6.ForeColor = System.Drawing.Color.Green
352
         Me.Label6.ForeColor = System.Drawing.Color.Green
332
-        Me.Label6.Location = New System.Drawing.Point(979, 34)
353
+        Me.Label6.Location = New System.Drawing.Point(950, 34)
333
         Me.Label6.Name = "Label6"
354
         Me.Label6.Name = "Label6"
334
-        Me.Label6.Size = New System.Drawing.Size(32, 16)
355
+        Me.Label6.Size = New System.Drawing.Size(31, 16)
335
         Me.Label6.TabIndex = 1050
356
         Me.Label6.TabIndex = 1050
336
         Me.Label6.Text = "損益"
357
         Me.Label6.Text = "損益"
337
         '
358
         '
339
         '
360
         '
340
         Me.支出_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
361
         Me.支出_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
341
         Me.支出_tb.ForeColor = System.Drawing.Color.Green
362
         Me.支出_tb.ForeColor = System.Drawing.Color.Green
342
-        Me.支出_tb.Location = New System.Drawing.Point(877, 29)
363
+        Me.支出_tb.Location = New System.Drawing.Point(848, 29)
343
         Me.支出_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
364
         Me.支出_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
344
         Me.支出_tb.Name = "支出_tb"
365
         Me.支出_tb.Name = "支出_tb"
345
         Me.支出_tb.Size = New System.Drawing.Size(100, 23)
366
         Me.支出_tb.Size = New System.Drawing.Size(100, 23)
351
         Me.Label5.AutoSize = True
372
         Me.Label5.AutoSize = True
352
         Me.Label5.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
373
         Me.Label5.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
353
         Me.Label5.ForeColor = System.Drawing.Color.Green
374
         Me.Label5.ForeColor = System.Drawing.Color.Green
354
-        Me.Label5.Location = New System.Drawing.Point(843, 34)
375
+        Me.Label5.Location = New System.Drawing.Point(814, 34)
355
         Me.Label5.Name = "Label5"
376
         Me.Label5.Name = "Label5"
356
-        Me.Label5.Size = New System.Drawing.Size(32, 16)
377
+        Me.Label5.Size = New System.Drawing.Size(31, 16)
357
         Me.Label5.TabIndex = 1048
378
         Me.Label5.TabIndex = 1048
358
         Me.Label5.Text = "支出"
379
         Me.Label5.Text = "支出"
359
         '
380
         '
364
         Me.Label4.ForeColor = System.Drawing.Color.Green
385
         Me.Label4.ForeColor = System.Drawing.Color.Green
365
         Me.Label4.Location = New System.Drawing.Point(2, 35)
386
         Me.Label4.Location = New System.Drawing.Point(2, 35)
366
         Me.Label4.Name = "Label4"
387
         Me.Label4.Name = "Label4"
367
-        Me.Label4.Size = New System.Drawing.Size(32, 16)
388
+        Me.Label4.Size = New System.Drawing.Size(31, 16)
368
         Me.Label4.TabIndex = 1047
389
         Me.Label4.TabIndex = 1047
369
         Me.Label4.Text = "單號"
390
         Me.Label4.Text = "單號"
370
         '
391
         '
375
         Me.收支單號_tb.Location = New System.Drawing.Point(36, 31)
396
         Me.收支單號_tb.Location = New System.Drawing.Point(36, 31)
376
         Me.收支單號_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
397
         Me.收支單號_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
377
         Me.收支單號_tb.Name = "收支單號_tb"
398
         Me.收支單號_tb.Name = "收支單號_tb"
378
-        Me.收支單號_tb.Size = New System.Drawing.Size(172, 23)
399
+        Me.收支單號_tb.Size = New System.Drawing.Size(149, 23)
379
         Me.收支單號_tb.TabIndex = 1046
400
         Me.收支單號_tb.TabIndex = 1046
380
         Me.收支單號_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
401
         Me.收支單號_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
381
         '
402
         '
383
         '
404
         '
384
         Me.現金_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
405
         Me.現金_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
385
         Me.現金_tb.ForeColor = System.Drawing.Color.Green
406
         Me.現金_tb.ForeColor = System.Drawing.Color.Green
386
-        Me.現金_tb.Location = New System.Drawing.Point(741, 29)
407
+        Me.現金_tb.Location = New System.Drawing.Point(712, 29)
387
         Me.現金_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
408
         Me.現金_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
388
         Me.現金_tb.Name = "現金_tb"
409
         Me.現金_tb.Name = "現金_tb"
389
         Me.現金_tb.Size = New System.Drawing.Size(100, 23)
410
         Me.現金_tb.Size = New System.Drawing.Size(100, 23)
395
         Me.Label9.AutoSize = True
416
         Me.Label9.AutoSize = True
396
         Me.Label9.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
417
         Me.Label9.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
397
         Me.Label9.ForeColor = System.Drawing.Color.Green
418
         Me.Label9.ForeColor = System.Drawing.Color.Green
398
-        Me.Label9.Location = New System.Drawing.Point(706, 34)
419
+        Me.Label9.Location = New System.Drawing.Point(677, 34)
399
         Me.Label9.Name = "Label9"
420
         Me.Label9.Name = "Label9"
400
-        Me.Label9.Size = New System.Drawing.Size(32, 16)
421
+        Me.Label9.Size = New System.Drawing.Size(31, 16)
401
         Me.Label9.TabIndex = 1044
422
         Me.Label9.TabIndex = 1044
402
         Me.Label9.Text = "收入"
423
         Me.Label9.Text = "收入"
403
         '
424
         '
410
         Me.查詢日期1_cb.Location = New System.Drawing.Point(143, 4)
431
         Me.查詢日期1_cb.Location = New System.Drawing.Point(143, 4)
411
         Me.查詢日期1_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
432
         Me.查詢日期1_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
412
         Me.查詢日期1_cb.Name = "查詢日期1_cb"
433
         Me.查詢日期1_cb.Name = "查詢日期1_cb"
413
-        Me.查詢日期1_cb.Size = New System.Drawing.Size(63, 24)
434
+        Me.查詢日期1_cb.Size = New System.Drawing.Size(42, 24)
414
         Me.查詢日期1_cb.TabIndex = 1043
435
         Me.查詢日期1_cb.TabIndex = 1043
415
         '
436
         '
416
         '查詢日期_cb
437
         '查詢日期_cb
432
         Me.Label2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
453
         Me.Label2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
433
         Me.Label2.Location = New System.Drawing.Point(2, 8)
454
         Me.Label2.Location = New System.Drawing.Point(2, 8)
434
         Me.Label2.Name = "Label2"
455
         Me.Label2.Name = "Label2"
435
-        Me.Label2.Size = New System.Drawing.Size(56, 16)
456
+        Me.Label2.Size = New System.Drawing.Size(55, 16)
436
         Me.Label2.TabIndex = 1041
457
         Me.Label2.TabIndex = 1041
437
         Me.Label2.Text = "查詢日期"
458
         Me.Label2.Text = "查詢日期"
438
         '
459
         '
442
             Or System.Windows.Forms.AnchorStyles.Left) _
463
             Or System.Windows.Forms.AnchorStyles.Left) _
443
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
464
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
444
         Me.明細_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
465
         Me.明細_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
466
+        Me.明細_dgv.BackgroundColor = System.Drawing.Color.White
445
         Me.明細_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
467
         Me.明細_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
446
         Me.明細_dgv.Location = New System.Drawing.Point(6, 82)
468
         Me.明細_dgv.Location = New System.Drawing.Point(6, 82)
447
         Me.明細_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
469
         Me.明細_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
448
         Me.明細_dgv.Name = "明細_dgv"
470
         Me.明細_dgv.Name = "明細_dgv"
449
         Me.明細_dgv.RowHeadersWidth = 5
471
         Me.明細_dgv.RowHeadersWidth = 5
450
-        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
451
-        Me.明細_dgv.RowsDefaultCellStyle = DataGridViewCellStyle2
472
+        DataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
473
+        Me.明細_dgv.RowsDefaultCellStyle = DataGridViewCellStyle1
452
         Me.明細_dgv.RowTemplate.Height = 24
474
         Me.明細_dgv.RowTemplate.Height = 24
453
         Me.明細_dgv.Size = New System.Drawing.Size(1243, 524)
475
         Me.明細_dgv.Size = New System.Drawing.Size(1243, 524)
454
         Me.明細_dgv.TabIndex = 1073
476
         Me.明細_dgv.TabIndex = 1073
472
         '
494
         '
473
         '關鍵字查詢_bt
495
         '關鍵字查詢_bt
474
         '
496
         '
475
-        Me.關鍵字查詢_bt.Location = New System.Drawing.Point(753, 1)
497
+        Me.關鍵字查詢_bt.Location = New System.Drawing.Point(724, 1)
476
         Me.關鍵字查詢_bt.Name = "關鍵字查詢_bt"
498
         Me.關鍵字查詢_bt.Name = "關鍵字查詢_bt"
477
         Me.關鍵字查詢_bt.Size = New System.Drawing.Size(90, 26)
499
         Me.關鍵字查詢_bt.Size = New System.Drawing.Size(90, 26)
478
         Me.關鍵字查詢_bt.TabIndex = 1076
500
         Me.關鍵字查詢_bt.TabIndex = 1076
484
         Me.對帳記錄存檔_bt.ForeColor = System.Drawing.Color.Green
506
         Me.對帳記錄存檔_bt.ForeColor = System.Drawing.Color.Green
485
         Me.對帳記錄存檔_bt.Location = New System.Drawing.Point(6, 56)
507
         Me.對帳記錄存檔_bt.Location = New System.Drawing.Point(6, 56)
486
         Me.對帳記錄存檔_bt.Name = "對帳記錄存檔_bt"
508
         Me.對帳記錄存檔_bt.Name = "對帳記錄存檔_bt"
487
-        Me.對帳記錄存檔_bt.Size = New System.Drawing.Size(202, 23)
509
+        Me.對帳記錄存檔_bt.Size = New System.Drawing.Size(179, 23)
488
         Me.對帳記錄存檔_bt.TabIndex = 1077
510
         Me.對帳記錄存檔_bt.TabIndex = 1077
489
         Me.對帳記錄存檔_bt.Text = "對帳記錄存檔"
511
         Me.對帳記錄存檔_bt.Text = "對帳記錄存檔"
490
         Me.對帳記錄存檔_bt.UseVisualStyleBackColor = True
512
         Me.對帳記錄存檔_bt.UseVisualStyleBackColor = True
491
         '
513
         '
492
         '清除查詢資料_bt
514
         '清除查詢資料_bt
493
         '
515
         '
494
-        Me.清除查詢資料_bt.Location = New System.Drawing.Point(844, 1)
516
+        Me.清除查詢資料_bt.Location = New System.Drawing.Point(815, 1)
495
         Me.清除查詢資料_bt.Name = "清除查詢資料_bt"
517
         Me.清除查詢資料_bt.Name = "清除查詢資料_bt"
496
         Me.清除查詢資料_bt.Size = New System.Drawing.Size(90, 26)
518
         Me.清除查詢資料_bt.Size = New System.Drawing.Size(90, 26)
497
         Me.清除查詢資料_bt.TabIndex = 1078
519
         Me.清除查詢資料_bt.TabIndex = 1078
503
         Me.匯出EXCEL_bt.AutoSize = True
525
         Me.匯出EXCEL_bt.AutoSize = True
504
         Me.匯出EXCEL_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
526
         Me.匯出EXCEL_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
505
         Me.匯出EXCEL_bt.ForeColor = System.Drawing.Color.DarkRed
527
         Me.匯出EXCEL_bt.ForeColor = System.Drawing.Color.DarkRed
506
-        Me.匯出EXCEL_bt.Location = New System.Drawing.Point(935, 1)
528
+        Me.匯出EXCEL_bt.Location = New System.Drawing.Point(906, 1)
507
         Me.匯出EXCEL_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
529
         Me.匯出EXCEL_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
508
         Me.匯出EXCEL_bt.Name = "匯出EXCEL_bt"
530
         Me.匯出EXCEL_bt.Name = "匯出EXCEL_bt"
509
         Me.匯出EXCEL_bt.Size = New System.Drawing.Size(90, 26)
531
         Me.匯出EXCEL_bt.Size = New System.Drawing.Size(90, 26)
524
         Me.字體大小調整_lb.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
546
         Me.字體大小調整_lb.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
525
         Me.字體大小調整_lb.ForeColor = System.Drawing.Color.Red
547
         Me.字體大小調整_lb.ForeColor = System.Drawing.Color.Red
526
         Me.字體大小調整_lb.ImeMode = System.Windows.Forms.ImeMode.NoControl
548
         Me.字體大小調整_lb.ImeMode = System.Windows.Forms.ImeMode.NoControl
527
-        Me.字體大小調整_lb.Location = New System.Drawing.Point(1026, 5)
549
+        Me.字體大小調整_lb.Location = New System.Drawing.Point(997, 5)
528
         Me.字體大小調整_lb.Name = "字體大小調整_lb"
550
         Me.字體大小調整_lb.Name = "字體大小調整_lb"
529
         Me.字體大小調整_lb.Size = New System.Drawing.Size(34, 17)
551
         Me.字體大小調整_lb.Size = New System.Drawing.Size(34, 17)
530
         Me.字體大小調整_lb.TabIndex = 1495
552
         Me.字體大小調整_lb.TabIndex = 1495
534
         '
556
         '
535
         Me.字體_NUD.DecimalPlaces = 1
557
         Me.字體_NUD.DecimalPlaces = 1
536
         Me.字體_NUD.Increment = New Decimal(New Integer() {1, 0, 0, 65536})
558
         Me.字體_NUD.Increment = New Decimal(New Integer() {1, 0, 0, 65536})
537
-        Me.字體_NUD.Location = New System.Drawing.Point(1061, 3)
559
+        Me.字體_NUD.Location = New System.Drawing.Point(1032, 3)
538
         Me.字體_NUD.Maximum = New Decimal(New Integer() {18, 0, 0, 0})
560
         Me.字體_NUD.Maximum = New Decimal(New Integer() {18, 0, 0, 0})
539
         Me.字體_NUD.Minimum = New Decimal(New Integer() {6, 0, 0, 0})
561
         Me.字體_NUD.Minimum = New Decimal(New Integer() {6, 0, 0, 0})
540
         Me.字體_NUD.Name = "字體_NUD"
562
         Me.字體_NUD.Name = "字體_NUD"
545
         '非稅_ch
567
         '非稅_ch
546
         '
568
         '
547
         Me.非稅_ch.AutoSize = True
569
         Me.非稅_ch.AutoSize = True
548
-        Me.非稅_ch.Location = New System.Drawing.Point(1121, 58)
570
+        Me.非稅_ch.Location = New System.Drawing.Point(1092, 58)
549
         Me.非稅_ch.Name = "非稅_ch"
571
         Me.非稅_ch.Name = "非稅_ch"
550
-        Me.非稅_ch.Size = New System.Drawing.Size(51, 20)
572
+        Me.非稅_ch.Size = New System.Drawing.Size(50, 20)
551
         Me.非稅_ch.TabIndex = 1501
573
         Me.非稅_ch.TabIndex = 1501
552
         Me.非稅_ch.Text = "非稅"
574
         Me.非稅_ch.Text = "非稅"
553
         Me.非稅_ch.UseVisualStyleBackColor = True
575
         Me.非稅_ch.UseVisualStyleBackColor = True
555
         '含稅_ch
577
         '含稅_ch
556
         '
578
         '
557
         Me.含稅_ch.AutoSize = True
579
         Me.含稅_ch.AutoSize = True
558
-        Me.含稅_ch.Location = New System.Drawing.Point(1120, 32)
580
+        Me.含稅_ch.Location = New System.Drawing.Point(1091, 32)
559
         Me.含稅_ch.Name = "含稅_ch"
581
         Me.含稅_ch.Name = "含稅_ch"
560
-        Me.含稅_ch.Size = New System.Drawing.Size(51, 20)
582
+        Me.含稅_ch.Size = New System.Drawing.Size(50, 20)
561
         Me.含稅_ch.TabIndex = 1500
583
         Me.含稅_ch.TabIndex = 1500
562
         Me.含稅_ch.Text = "含稅"
584
         Me.含稅_ch.Text = "含稅"
563
         Me.含稅_ch.UseVisualStyleBackColor = True
585
         Me.含稅_ch.UseVisualStyleBackColor = True
567
         Me.全部_ch.AutoSize = True
589
         Me.全部_ch.AutoSize = True
568
         Me.全部_ch.Checked = True
590
         Me.全部_ch.Checked = True
569
         Me.全部_ch.CheckState = System.Windows.Forms.CheckState.Checked
591
         Me.全部_ch.CheckState = System.Windows.Forms.CheckState.Checked
570
-        Me.全部_ch.Location = New System.Drawing.Point(1120, 6)
592
+        Me.全部_ch.Location = New System.Drawing.Point(1091, 6)
571
         Me.全部_ch.Name = "全部_ch"
593
         Me.全部_ch.Name = "全部_ch"
572
-        Me.全部_ch.Size = New System.Drawing.Size(51, 20)
594
+        Me.全部_ch.Size = New System.Drawing.Size(50, 20)
573
         Me.全部_ch.TabIndex = 1499
595
         Me.全部_ch.TabIndex = 1499
574
         Me.全部_ch.Text = "全部"
596
         Me.全部_ch.Text = "全部"
575
         Me.全部_ch.UseVisualStyleBackColor = True
597
         Me.全部_ch.UseVisualStyleBackColor = True
577
         '只有收入_cb
599
         '只有收入_cb
578
         '
600
         '
579
         Me.只有收入_cb.AutoSize = True
601
         Me.只有收入_cb.AutoSize = True
580
-        Me.只有收入_cb.Location = New System.Drawing.Point(597, 5)
602
+        Me.只有收入_cb.Location = New System.Drawing.Point(568, 5)
581
         Me.只有收入_cb.Name = "只有收入_cb"
603
         Me.只有收入_cb.Name = "只有收入_cb"
582
-        Me.只有收入_cb.Size = New System.Drawing.Size(75, 20)
604
+        Me.只有收入_cb.Size = New System.Drawing.Size(74, 20)
583
         Me.只有收入_cb.TabIndex = 1502
605
         Me.只有收入_cb.TabIndex = 1502
584
         Me.只有收入_cb.Text = "只有收入"
606
         Me.只有收入_cb.Text = "只有收入"
585
         Me.只有收入_cb.UseVisualStyleBackColor = True
607
         Me.只有收入_cb.UseVisualStyleBackColor = True
587
         '只有支出_cb
609
         '只有支出_cb
588
         '
610
         '
589
         Me.只有支出_cb.AutoSize = True
611
         Me.只有支出_cb.AutoSize = True
590
-        Me.只有支出_cb.Location = New System.Drawing.Point(672, 5)
612
+        Me.只有支出_cb.Location = New System.Drawing.Point(643, 5)
591
         Me.只有支出_cb.Name = "只有支出_cb"
613
         Me.只有支出_cb.Name = "只有支出_cb"
592
-        Me.只有支出_cb.Size = New System.Drawing.Size(75, 20)
614
+        Me.只有支出_cb.Size = New System.Drawing.Size(74, 20)
593
         Me.只有支出_cb.TabIndex = 1503
615
         Me.只有支出_cb.TabIndex = 1503
594
         Me.只有支出_cb.Text = "只有支出"
616
         Me.只有支出_cb.Text = "只有支出"
595
         Me.只有支出_cb.UseVisualStyleBackColor = True
617
         Me.只有支出_cb.UseVisualStyleBackColor = True
596
         '
618
         '
619
+        '特別計算_bt
620
+        '
621
+        Me.特別計算_bt.Location = New System.Drawing.Point(1147, 2)
622
+        Me.特別計算_bt.Name = "特別計算_bt"
623
+        Me.特別計算_bt.Size = New System.Drawing.Size(73, 77)
624
+        Me.特別計算_bt.TabIndex = 1504
625
+        Me.特別計算_bt.Text = "特別計算"
626
+        Me.特別計算_bt.UseVisualStyleBackColor = True
627
+        '
628
+        '視窗2_pl
629
+        '
630
+        Me.視窗2_pl.BackColor = System.Drawing.Color.White
631
+        Me.視窗2_pl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
632
+        Me.視窗2_pl.Controls.Add(Me.Panel3)
633
+        Me.視窗2_pl.Controls.Add(Me.Label16)
634
+        Me.視窗2_pl.Controls.Add(Me.CanceL2_bt)
635
+        Me.視窗2_pl.Location = New System.Drawing.Point(831, 12)
636
+        Me.視窗2_pl.Name = "視窗2_pl"
637
+        Me.視窗2_pl.Size = New System.Drawing.Size(227, 550)
638
+        Me.視窗2_pl.TabIndex = 1505
639
+        '
640
+        'Panel3
641
+        '
642
+        Me.Panel3.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
643
+            Or System.Windows.Forms.AnchorStyles.Left) _
644
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
645
+        Me.Panel3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
646
+        Me.Panel3.Controls.Add(Me.剔除後總和_tb)
647
+        Me.Panel3.Controls.Add(Me.Label18)
648
+        Me.Panel3.Controls.Add(Me.剔除後支出_tb)
649
+        Me.Panel3.Controls.Add(Me.Label17)
650
+        Me.Panel3.Controls.Add(Me.剔除後收入_tb)
651
+        Me.Panel3.Controls.Add(Me.Label15)
652
+        Me.Panel3.Controls.Add(Me.剃除計算_bt)
653
+        Me.Panel3.Controls.Add(Me.存檔_bt)
654
+        Me.Panel3.Controls.Add(Me.會科_dgv)
655
+        Me.Panel3.Location = New System.Drawing.Point(3, 28)
656
+        Me.Panel3.Name = "Panel3"
657
+        Me.Panel3.Size = New System.Drawing.Size(220, 518)
658
+        Me.Panel3.TabIndex = 1367
659
+        '
660
+        '剔除後總和_tb
661
+        '
662
+        Me.剔除後總和_tb.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
663
+        Me.剔除後總和_tb.BorderStyle = System.Windows.Forms.BorderStyle.None
664
+        Me.剔除後總和_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
665
+        Me.剔除後總和_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
666
+        Me.剔除後總和_tb.Location = New System.Drawing.Point(80, 75)
667
+        Me.剔除後總和_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
668
+        Me.剔除後總和_tb.Name = "剔除後總和_tb"
669
+        Me.剔除後總和_tb.Size = New System.Drawing.Size(130, 16)
670
+        Me.剔除後總和_tb.TabIndex = 1393
671
+        Me.剔除後總和_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
672
+        '
673
+        'Label18
674
+        '
675
+        Me.Label18.AutoSize = True
676
+        Me.Label18.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
677
+        Me.Label18.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
678
+        Me.Label18.Location = New System.Drawing.Point(7, 75)
679
+        Me.Label18.Name = "Label18"
680
+        Me.Label18.Size = New System.Drawing.Size(67, 16)
681
+        Me.Label18.TabIndex = 1392
682
+        Me.Label18.Text = "剔除後總和"
683
+        '
684
+        '剔除後支出_tb
685
+        '
686
+        Me.剔除後支出_tb.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
687
+        Me.剔除後支出_tb.BorderStyle = System.Windows.Forms.BorderStyle.None
688
+        Me.剔除後支出_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
689
+        Me.剔除後支出_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
690
+        Me.剔除後支出_tb.Location = New System.Drawing.Point(80, 53)
691
+        Me.剔除後支出_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
692
+        Me.剔除後支出_tb.Name = "剔除後支出_tb"
693
+        Me.剔除後支出_tb.Size = New System.Drawing.Size(130, 16)
694
+        Me.剔除後支出_tb.TabIndex = 1391
695
+        Me.剔除後支出_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
696
+        '
697
+        'Label17
698
+        '
699
+        Me.Label17.AutoSize = True
700
+        Me.Label17.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
701
+        Me.Label17.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
702
+        Me.Label17.Location = New System.Drawing.Point(7, 53)
703
+        Me.Label17.Name = "Label17"
704
+        Me.Label17.Size = New System.Drawing.Size(67, 16)
705
+        Me.Label17.TabIndex = 1390
706
+        Me.Label17.Text = "剔除後支出"
707
+        '
708
+        '剔除後收入_tb
709
+        '
710
+        Me.剔除後收入_tb.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
711
+        Me.剔除後收入_tb.BorderStyle = System.Windows.Forms.BorderStyle.None
712
+        Me.剔除後收入_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
713
+        Me.剔除後收入_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
714
+        Me.剔除後收入_tb.Location = New System.Drawing.Point(80, 32)
715
+        Me.剔除後收入_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
716
+        Me.剔除後收入_tb.Name = "剔除後收入_tb"
717
+        Me.剔除後收入_tb.Size = New System.Drawing.Size(130, 16)
718
+        Me.剔除後收入_tb.TabIndex = 1389
719
+        Me.剔除後收入_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
720
+        '
721
+        'Label15
722
+        '
723
+        Me.Label15.AutoSize = True
724
+        Me.Label15.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
725
+        Me.Label15.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
726
+        Me.Label15.Location = New System.Drawing.Point(7, 32)
727
+        Me.Label15.Name = "Label15"
728
+        Me.Label15.Size = New System.Drawing.Size(67, 16)
729
+        Me.Label15.TabIndex = 1388
730
+        Me.Label15.Text = "剔除後收入"
731
+        '
732
+        '剃除計算_bt
733
+        '
734
+        Me.剃除計算_bt.Location = New System.Drawing.Point(123, 3)
735
+        Me.剃除計算_bt.Name = "剃除計算_bt"
736
+        Me.剃除計算_bt.Size = New System.Drawing.Size(90, 26)
737
+        Me.剃除計算_bt.TabIndex = 1387
738
+        Me.剃除計算_bt.Text = "剃除計算"
739
+        Me.剃除計算_bt.UseVisualStyleBackColor = True
740
+        '
741
+        '存檔_bt
742
+        '
743
+        Me.存檔_bt.Location = New System.Drawing.Point(3, 3)
744
+        Me.存檔_bt.Name = "存檔_bt"
745
+        Me.存檔_bt.Size = New System.Drawing.Size(90, 26)
746
+        Me.存檔_bt.TabIndex = 1386
747
+        Me.存檔_bt.Text = "存檔"
748
+        Me.存檔_bt.UseVisualStyleBackColor = True
749
+        '
750
+        '會科_dgv
751
+        '
752
+        Me.會科_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
753
+            Or System.Windows.Forms.AnchorStyles.Left) _
754
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
755
+        Me.會科_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
756
+        Me.會科_dgv.BackgroundColor = System.Drawing.Color.White
757
+        Me.會科_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
758
+        Me.會科_dgv.Location = New System.Drawing.Point(3, 95)
759
+        Me.會科_dgv.Name = "會科_dgv"
760
+        Me.會科_dgv.RowHeadersWidth = 5
761
+        Me.會科_dgv.RowTemplate.Height = 24
762
+        Me.會科_dgv.Size = New System.Drawing.Size(210, 415)
763
+        Me.會科_dgv.TabIndex = 1385
764
+        '
765
+        'Label16
766
+        '
767
+        Me.Label16.AutoSize = True
768
+        Me.Label16.Location = New System.Drawing.Point(5, 7)
769
+        Me.Label16.Name = "Label16"
770
+        Me.Label16.Size = New System.Drawing.Size(103, 16)
771
+        Me.Label16.TabIndex = 1375
772
+        Me.Label16.Text = "會計科目剃除計算"
773
+        '
774
+        'CanceL2_bt
775
+        '
776
+        Me.CanceL2_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
777
+        Me.CanceL2_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(128, Byte), Integer), CType(CType(128, Byte), Integer))
778
+        Me.CanceL2_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
779
+        Me.CanceL2_bt.ForeColor = System.Drawing.Color.Black
780
+        Me.CanceL2_bt.Location = New System.Drawing.Point(195, 2)
781
+        Me.CanceL2_bt.Name = "CanceL2_bt"
782
+        Me.CanceL2_bt.Size = New System.Drawing.Size(26, 26)
783
+        Me.CanceL2_bt.TabIndex = 1374
784
+        Me.CanceL2_bt.Text = "X"
785
+        Me.CanceL2_bt.UseVisualStyleBackColor = False
786
+        '
787
+        'Panel1
788
+        '
789
+        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
790
+        Me.Panel1.Controls.Add(Me.剔除存檔_dgv)
791
+        Me.Panel1.Location = New System.Drawing.Point(256, 138)
792
+        Me.Panel1.Name = "Panel1"
793
+        Me.Panel1.Size = New System.Drawing.Size(200, 100)
794
+        Me.Panel1.TabIndex = 1506
795
+        '
796
+        '剔除存檔_dgv
797
+        '
798
+        Me.剔除存檔_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
799
+            Or System.Windows.Forms.AnchorStyles.Left) _
800
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
801
+        Me.剔除存檔_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
802
+        Me.剔除存檔_dgv.BackgroundColor = System.Drawing.Color.White
803
+        Me.剔除存檔_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
804
+        Me.剔除存檔_dgv.Location = New System.Drawing.Point(3, 3)
805
+        Me.剔除存檔_dgv.Name = "剔除存檔_dgv"
806
+        Me.剔除存檔_dgv.RowHeadersWidth = 5
807
+        Me.剔除存檔_dgv.RowTemplate.Height = 24
808
+        Me.剔除存檔_dgv.Size = New System.Drawing.Size(192, 92)
809
+        Me.剔除存檔_dgv.TabIndex = 1386
810
+        '
597
         '營運成本收支單_對帳表
811
         '營運成本收支單_對帳表
598
         '
812
         '
599
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
813
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
600
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
814
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
601
         Me.ClientSize = New System.Drawing.Size(1254, 611)
815
         Me.ClientSize = New System.Drawing.Size(1254, 611)
602
         Me.ContextMenuStrip = Me.ContextMenuStrip1
816
         Me.ContextMenuStrip = Me.ContextMenuStrip1
817
+        Me.Controls.Add(Me.Panel1)
818
+        Me.Controls.Add(Me.視窗2_pl)
819
+        Me.Controls.Add(Me.特別計算_bt)
603
         Me.Controls.Add(Me.只有支出_cb)
820
         Me.Controls.Add(Me.只有支出_cb)
604
         Me.Controls.Add(Me.只有收入_cb)
821
         Me.Controls.Add(Me.只有收入_cb)
605
         Me.Controls.Add(Me.非稅_ch)
822
         Me.Controls.Add(Me.非稅_ch)
651
         CType(Me.明細_dgv, System.ComponentModel.ISupportInitialize).EndInit()
868
         CType(Me.明細_dgv, System.ComponentModel.ISupportInitialize).EndInit()
652
         Me.ContextMenuStrip1.ResumeLayout(False)
869
         Me.ContextMenuStrip1.ResumeLayout(False)
653
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).EndInit()
870
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).EndInit()
871
+        Me.視窗2_pl.ResumeLayout(False)
872
+        Me.視窗2_pl.PerformLayout()
873
+        Me.Panel3.ResumeLayout(False)
874
+        Me.Panel3.PerformLayout()
875
+        CType(Me.會科_dgv, System.ComponentModel.ISupportInitialize).EndInit()
876
+        Me.Panel1.ResumeLayout(False)
877
+        CType(Me.剔除存檔_dgv, System.ComponentModel.ISupportInitialize).EndInit()
654
         Me.ResumeLayout(False)
878
         Me.ResumeLayout(False)
655
         Me.PerformLayout()
879
         Me.PerformLayout()
656
 
880
 
704
     Friend WithEvents 全部_ch As CheckBox
928
     Friend WithEvents 全部_ch As CheckBox
705
     Friend WithEvents 只有收入_cb As CheckBox
929
     Friend WithEvents 只有收入_cb As CheckBox
706
     Friend WithEvents 只有支出_cb As CheckBox
930
     Friend WithEvents 只有支出_cb As CheckBox
931
+    Friend WithEvents 特別計算_bt As Button
932
+    Friend WithEvents 視窗2_pl As Panel
933
+    Friend WithEvents Panel3 As Panel
934
+    Friend WithEvents 會科_dgv As DataGridView
935
+    Friend WithEvents Label16 As Label
936
+    Friend WithEvents CanceL2_bt As Button
937
+    Friend WithEvents 剔除後總和_tb As TextBox
938
+    Friend WithEvents Label18 As Label
939
+    Friend WithEvents 剔除後支出_tb As TextBox
940
+    Friend WithEvents Label17 As Label
941
+    Friend WithEvents 剔除後收入_tb As TextBox
942
+    Friend WithEvents Label15 As Label
943
+    Friend WithEvents 剃除計算_bt As Button
944
+    Friend WithEvents 存檔_bt As Button
945
+    Friend WithEvents Panel1 As Panel
946
+    Friend WithEvents 剔除存檔_dgv As DataGridView
707
 End Class
947
 End Class

+ 115
- 48
YD-ERP-SYS/財務系統管理/財務_對帳表.vb Parādīt failu

11
 Public Class 營運成本收支單_對帳表
11
 Public Class 營運成本收支單_對帳表
12
     ReadOnly conn1 As New SqlConnection
12
     ReadOnly conn1 As New SqlConnection
13
     ReadOnly cmd As New SqlCommand : ReadOnly cmd1 As New SqlCommand
13
     ReadOnly cmd As New SqlCommand : ReadOnly cmd1 As New SqlCommand
14
-    ReadOnly ds As New DataSet
14
+    ReadOnly ds, ds1, ds2 As New DataSet
15
     Dim N2 As Integer
15
     Dim N2 As Integer
16
     Dim xlApp As Microsoft.Office.Interop.Excel.Application
16
     Dim xlApp As Microsoft.Office.Interop.Excel.Application
17
     Dim xlBook As Microsoft.Office.Interop.Excel.Workbook
17
     Dim xlBook As Microsoft.Office.Interop.Excel.Workbook
24
             明細_dgv.ColumnHeadersHeight = 25
24
             明細_dgv.ColumnHeadersHeight = 25
25
             明細_dgv.AllowUserToAddRows = False
25
             明細_dgv.AllowUserToAddRows = False
26
             明細_dgv.RowTemplate.Height = 30
26
             明細_dgv.RowTemplate.Height = 30
27
-            If 只有收入_cb.Checked = False And 只有支出_cb.Checked = False Then
28
-                SQL3 = ""
29
-            ElseIf 只有收入_cb.Checked = True And 只有支出_cb.Checked = False Then
30
-                SQL3 = " AND (Cast(公帳流水帳.支出 AS money) = 0)"
31
-            ElseIf 只有收入_cb.Checked = False And 只有支出_cb.Checked = True Then
32
-                SQL3 = " AND (Cast(公帳流水帳.收入 AS money) = 0)"
33
-            End If
27
+            If 只有收入_cb.Checked = False And 只有支出_cb.Checked = False Then : SQL3 = ""
28
+            ElseIf 只有收入_cb.Checked = True And 只有支出_cb.Checked = False Then : SQL3 = " AND (Cast(公帳流水帳.支出 AS money) = 0)"
29
+            ElseIf 只有收入_cb.Checked = False And 只有支出_cb.Checked = True Then : SQL3 = " AND (Cast(公帳流水帳.收入 AS money) = 0)" : End If
34
 
30
 
35
-            If 全部_ch.Checked = True And 含稅_ch.Checked = False And 非稅_ch.Checked = False Then
36
-                SQL2 = "" & SQL3
37
-            ElseIf 全部_ch.Checked = False And 含稅_ch.Checked = True And 非稅_ch.Checked = False Then
38
-                SQL2 = " AND (公帳流水帳.含稅 = 1)" & SQL3
39
-            ElseIf 全部_ch.Checked = False And 含稅_ch.Checked = False And 非稅_ch.Checked = True Then
40
-                SQL2 = " AND (公帳流水帳.含稅 = 0 OR 公帳流水帳.含稅 IS NULL)" & SQL3
41
-            End If
31
+            If 全部_ch.Checked = True And 含稅_ch.Checked = False And 非稅_ch.Checked = False Then : SQL2 = "" & SQL3
32
+            ElseIf 全部_ch.Checked = False And 含稅_ch.Checked = True And 非稅_ch.Checked = False Then : SQL2 = " AND (公帳流水帳.含稅 = 1)" & SQL3
33
+            ElseIf 全部_ch.Checked = False And 含稅_ch.Checked = False And 非稅_ch.Checked = True Then : SQL2 = " AND (公帳流水帳.含稅 = 0 OR 公帳流水帳.含稅 IS NULL)" & SQL3 : End If
42
 
34
 
43
             SQL_營運成本收支單對帳表()
35
             SQL_營運成本收支單對帳表()
44
             da.Fill(ds) : 明細_dgv.DataSource = ds.Tables(0) : conn.Close() : Set_grid()
36
             da.Fill(ds) : 明細_dgv.DataSource = ds.Tables(0) : conn.Close() : Set_grid()
37
+
38
+            If 視窗2_pl.Visible = True Then
39
+                Set_特別計算() : 剃除預設() : 剃除計算()
40
+            End If
45
         Catch ex As Exception
41
         Catch ex As Exception
46
             MsgBox(ex.Message)
42
             MsgBox(ex.Message)
47
         End Try
43
         End Try
112
         End Try
108
         End Try
113
     End Sub
109
     End Sub
114
     Private Sub 營運成本收支單_對帳表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
110
     Private Sub 營運成本收支單_對帳表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
115
-        Try
116
-            Me.MdiParent = YD_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
117
-            現金_tb.Text = "0" : 支出_tb.Text = "0" : 損益_tb.Text = "0" : 零用金_tb.Text = "0" : 已兌現支票_tb.Text = "0" : 未兌現支票_tb.Text = "0"
118
-            現金1_tb.Text = "0" : 支出1_tb.Text = "0" : 損益1_tb.Text = "0" : 零用金1_tb.Text = "0" : 已兌現支票1_tb.Text = "0" : 未兌現支票1_tb.Text = "0"
119
-            SQL_營運成本收支單對帳表_修改會計() : conn.Close()
120
-            SQL_營運成本收支單對帳表_修改出納() : conn.Close()
121
-            SQL_營運成本收支單對帳表_修改現金() : conn.Close()
122
-            SQL_營運成本收支單對帳表_修改備用金() : conn.Close()
123
-            SQL_營運成本收支單對帳表_修改公帳() : conn.Close()
124
-            SQL_營運成本收支單對帳表_修改支票() : conn.Close()
125
-            SQL_營運成本收支單對帳表_修改日期() : conn.Close()
126
-            SQL_營運成本收支單對帳表_修改出納日期() : conn.Close()
111
+        Me.MdiParent = YD_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
112
+        視窗2_pl.Visible = False : Panel1.SendToBack()
113
+        現金_tb.Text = "0" : 支出_tb.Text = "0" : 損益_tb.Text = "0" : 零用金_tb.Text = "0" : 已兌現支票_tb.Text = "0" : 未兌現支票_tb.Text = "0"
114
+        現金1_tb.Text = "0" : 支出1_tb.Text = "0" : 損益1_tb.Text = "0" : 零用金1_tb.Text = "0" : 已兌現支票1_tb.Text = "0" : 未兌現支票1_tb.Text = "0"
115
+        SQL_營運成本收支單對帳表_修改會計() : conn.Close() : SQL_營運成本收支單對帳表_修改出納() : conn.Close() : SQL_營運成本收支單對帳表_修改現金() : conn.Close()
116
+        SQL_營運成本收支單對帳表_修改備用金() : conn.Close() : SQL_營運成本收支單對帳表_修改公帳() : conn.Close() : SQL_營運成本收支單對帳表_修改支票() : conn.Close()
117
+        SQL_營運成本收支單對帳表_修改日期() : conn.Close() : SQL_營運成本收支單對帳表_修改出納日期() : conn.Close()
127
 
118
 
128
-            ComboBox1下拉表單資料載入()
129
-            查詢日期_cb.Text = Year(Today) : 查詢日期1_cb.SelectedIndex = Month(Today) - 1
130
-            PA20 = "" : PA19 = "" : PA18 = "" : PA17 = 查詢日期_cb.Text : PA16 = 查詢日期1_cb.Text
131
-            PA20 = "AND (公帳控制表.審核日期 LIKE '" & PA17 & "/" & PA16 & "%') "
132
-            If YD_ERP_SYS.Size.Width > 1440 And YD_ERP_SYS.Size.Height > 900 Then
133
-                字體_NUD.Value = 9 : 隱藏申請審核資訊_cb.Checked = False
134
-            ElseIf YD_ERP_SYS.Size.Width <= 1440 And YD_ERP_SYS.Size.Height <= 900 Then
135
-                字體_NUD.Value = 7.6 : 隱藏申請審核資訊_cb.Checked = True
136
-            End If
137
-        Catch ex As Exception
138
-            MsgBox(ex.Message)
139
-        End Try
119
+        ComboBox1下拉表單資料載入()
120
+        查詢日期_cb.Text = Year(Today) : 查詢日期1_cb.SelectedIndex = Month(Today) - 1
121
+        PA20 = "" : PA19 = "" : PA18 = "" : PA17 = 查詢日期_cb.Text : PA16 = 查詢日期1_cb.Text
122
+        PA20 = "AND (公帳控制表.審核日期 LIKE '" & PA17 & "/" & PA16 & "%') "
123
+        If YD_ERP_SYS.Size.Width > 1440 And YD_ERP_SYS.Size.Height > 900 Then : 字體_NUD.Value = 9 : 隱藏申請審核資訊_cb.Checked = False
124
+        ElseIf YD_ERP_SYS.Size.Width <= 1440 And YD_ERP_SYS.Size.Height <= 900 Then : 字體_NUD.Value = 7.6 : 隱藏申請審核資訊_cb.Checked = True : End If
140
     End Sub
125
     End Sub
141
     Private Sub 營運成本收支單_對帳表_SizeChanged(sender As Object, e As EventArgs) Handles MyBase.SizeChanged
126
     Private Sub 營運成本收支單_對帳表_SizeChanged(sender As Object, e As EventArgs) Handles MyBase.SizeChanged
142
-        Try
143
-            If YD_ERP_SYS.Size.Width > 1440 And YD_ERP_SYS.Size.Height > 900 Then
144
-                字體_NUD.Value = 9 : 隱藏申請審核資訊_cb.Checked = False
145
-            ElseIf YD_ERP_SYS.Size.Width <= 1440 And YD_ERP_SYS.Size.Height <= 900 Then
146
-                字體_NUD.Value = 7.6 : 隱藏申請審核資訊_cb.Checked = True
147
-            End If
148
-        Catch ex As Exception
149
-            MsgBox(ex.Message)
150
-        End Try
127
+        If YD_ERP_SYS.Size.Width > 1440 And YD_ERP_SYS.Size.Height > 900 Then : 字體_NUD.Value = 9 : 隱藏申請審核資訊_cb.Checked = False
128
+        ElseIf YD_ERP_SYS.Size.Width <= 1440 And YD_ERP_SYS.Size.Height <= 900 Then : 字體_NUD.Value = 7.6 : 隱藏申請審核資訊_cb.Checked = True : End If
151
     End Sub
129
     End Sub
152
     Dim 已超出 As Boolean
130
     Dim 已超出 As Boolean
153
     Private Sub 明細_dgv_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 明細_dgv.MouseUp
131
     Private Sub 明細_dgv_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 明細_dgv.MouseUp
451
     Private Sub 字體_NUD_ValueChanged(sender As Object, e As EventArgs) Handles 字體_NUD.ValueChanged
429
     Private Sub 字體_NUD_ValueChanged(sender As Object, e As EventArgs) Handles 字體_NUD.ValueChanged
452
         明細_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", 字體_NUD.Value)
430
         明細_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", 字體_NUD.Value)
453
     End Sub
431
     End Sub
432
+    '----------------------自創視窗滑鼠拖曳功能---------------------------------------------------------------------------------------------------------
433
+    Dim OldX, OldY As Long : Dim drag As Boolean
434
+    Private Sub CanceL2_bt_Click(sender As Object, e As EventArgs) Handles CanceL2_bt.Click
435
+        If 視窗2_pl.Visible = False Then
436
+            視窗2_pl.Visible = True : 視窗2_pl.BringToFront()
437
+        Else : 視窗2_pl.Visible = False
438
+            For i As Integer = 0 To 明細_dgv.Rows.Count - 1 : 明細_dgv.Rows(i).Cells("備註").Value = "" : 明細_dgv.Rows(i).DefaultCellStyle.BackColor = Color.White : Next
439
+        End If
440
+    End Sub
441
+    Private Sub 視窗2_pl_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 視窗2_pl.MouseDown
442
+        If e.Button = MouseButtons.Left Then : OldX = e.X : OldY = e.Y : drag = True : End If
443
+    End Sub
444
+    Private Sub 視窗2_pl_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 視窗2_pl.MouseMove
445
+        If drag Then : 視窗2_pl.Left = 視窗2_pl.Left + e.X - OldX : 視窗2_pl.Top = 視窗2_pl.Top + e.Y - OldY : End If
446
+    End Sub
447
+    Private Sub 視窗2_pl_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 視窗2_pl.MouseUp
448
+        drag = False
449
+    End Sub
450
+    Private Sub Set_特別計算()
451
+        剔除存檔_dgv.DataSource = Nothing : ds2.Clear()
452
+        剔除存檔_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
453
+        剔除存檔_dgv.ColumnHeadersHeight = 25 : 剔除存檔_dgv.AllowUserToAddRows = False : 剔除存檔_dgv.RowTemplate.Height = 25
454
+        SQL_剔除存檔()
455
+        da.Fill(ds2) : 剔除存檔_dgv.DataSource = ds2.Tables(0) : conn.Close()
456
+
457
+        會科_dgv.DataSource = Nothing : ds1.Clear()
458
+        會科_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
459
+        會科_dgv.ColumnHeadersHeight = 25 : 會科_dgv.AllowUserToAddRows = False : 會科_dgv.RowTemplate.Height = 25
460
+        PA = 查詢日期_cb.Text & "/" & 查詢日期1_cb.Text : SQL_剔除會科()
461
+        da.Fill(ds1) : 會科_dgv.DataSource = ds1.Tables(0) : conn.Close()
462
+        會科_dgv.Columns(0).FillWeight = 30 : 會科_dgv.Columns(2).Visible = False
463
+        For i As Integer = 0 To 會科_dgv.Rows.Count - 1
464
+            會科_dgv.Rows(i).Cells("選擇").Value = False
465
+            For II As Integer = 0 To 剔除存檔_dgv.Rows.Count - 1
466
+                If 會科_dgv.Rows(i).Cells("會計科目").Value.ToString = 剔除存檔_dgv.Rows(II).Cells("剔除會科").Value.ToString Then : 會科_dgv.Rows(i).Cells("選擇").Value = True : End If
467
+            Next
468
+        Next
469
+    End Sub
470
+    Private Sub 特別計算_bt_Click_1(sender As Object, e As EventArgs) Handles 特別計算_bt.Click
471
+        If 視窗2_pl.Visible = True Then : 視窗2_pl.Visible = False
472
+            For i As Integer = 0 To 明細_dgv.Rows.Count - 1 : 明細_dgv.Rows(i).Cells("備註").Value = "" : 明細_dgv.Rows(i).DefaultCellStyle.BackColor = Color.White : Next
473
+        Else : 視窗2_pl.Visible = True : 視窗2_pl.BringToFront() : Set_特別計算() : 剃除預設() : 剃除計算() : End If
474
+    End Sub
475
+    Private Sub 會科_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 會科_dgv.CellClick
476
+        If e.RowIndex = -1 Then : Else
477
+            If 會科_dgv.Rows(e.RowIndex).Cells("選擇").Value = False Then : 會科_dgv.Rows(e.RowIndex).Cells("選擇").Value = True
478
+            Else : 會科_dgv.Rows(e.RowIndex).Cells("選擇").Value = False : End If
479
+        End If
480
+    End Sub
481
+    Private Sub 存檔_bt_Click(sender As Object, e As EventArgs) Handles 存檔_bt.Click
482
+        For i As Integer = 0 To 會科_dgv.Rows.Count - 1
483
+            If 會科_dgv.Rows(i).Cells("選擇").Value = True Then
484
+                PA1 = 會科_dgv.Rows(i).Cells("會計科目").Value.ToString : SQL_剔除存檔比對() : If dr.Read Then : Else : SQL_剔除存檔新增() : End If
485
+            End If
486
+        Next : 剃除預設() : 剃除計算()
487
+    End Sub
488
+    Private Sub 剃除計算_bt_Click(sender As Object, e As EventArgs) Handles 剃除計算_bt.Click
489
+        For i As Integer = 0 To 明細_dgv.Rows.Count - 1 : 明細_dgv.Rows(i).Cells("備註").Value = "" : 明細_dgv.Rows(i).DefaultCellStyle.BackColor = Color.White : Next
490
+        剃除預設() : 剃除計算()
491
+    End Sub
492
+    Private Sub 剃除預設()
493
+        For i As Integer = 0 To 會科_dgv.Rows.Count - 1
494
+            For II As Integer = 0 To 明細_dgv.Rows.Count - 1
495
+                If 會科_dgv.Rows(i).Cells("會計科目").Value.ToString = 明細_dgv.Rows(II).Cells("會計科目").Value.ToString And 會科_dgv.Rows(i).Cells("選擇").Value = True Then
496
+                    明細_dgv.Rows(II).Cells("備註").Value = "剔除" : 明細_dgv.Rows(II).DefaultCellStyle.BackColor = Color.Blue
497
+                End If
498
+            Next
499
+        Next
500
+    End Sub
501
+    Private Sub 剃除計算()
502
+        剔除後收入_tb.Text = "0" : 剔除後支出_tb.Text = "0" : 剔除後總和_tb.Text = "0"
503
+        For I As Integer = 0 To 明細_dgv.Rows.Count - 1
504
+            If 明細_dgv.Rows(I).Cells("備註").Value.ToString <> "剔除" Then
505
+                剔除後收入_tb.Text = Strings.Format(CInt(剔除後收入_tb.Text) + CInt(明細_dgv.Rows(I).Cells("收入").Value.ToString), "#,##0")
506
+                剔除後支出_tb.Text = Strings.Format(CInt(剔除後支出_tb.Text) + CInt(明細_dgv.Rows(I).Cells("支出").Value.ToString), "#,##0")
507
+            End If
508
+        Next : 剔除後總和_tb.Text = Strings.Format(CInt(剔除後支出_tb.Text) - CInt(剔除後收入_tb.Text), "#,##0")
509
+    End Sub
510
+    Private Sub 明細_dgv_CellDoubleClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 明細_dgv.CellDoubleClick
511
+        If e.RowIndex = -1 Then : Else
512
+            If 視窗2_pl.Visible = True Then
513
+                If 明細_dgv.Rows(e.RowIndex).Cells("備註").Value.ToString <> "剔除" Then
514
+                    明細_dgv.Rows(e.RowIndex).Cells("備註").Value = "剔除" : 明細_dgv.Rows(e.RowIndex).DefaultCellStyle.BackColor = Color.Blue
515
+                ElseIf 明細_dgv.Rows(e.RowIndex).Cells("備註").Value.ToString = "剔除" Then
516
+                    明細_dgv.Rows(e.RowIndex).Cells("備註").Value = "" : 明細_dgv.Rows(e.RowIndex).DefaultCellStyle.BackColor = Color.White
517
+                End If : 剃除計算()
518
+            End If
519
+        End If
520
+    End Sub
454
 End Class
521
 End Class

Notiek ielāde…
Atcelt
Saglabāt