Преглед изворни кода

雅邸系統

版本號 : 2021040601
更新內容如下
1、新增財務管理系統,其中包含,薪轉資料表、財務流水帳申請、財務流水帳審核、帳務一欄表、財務對帳表、財務決算表、匯率功能、會計科目設定。
2、人事資料表新增薪轉帳戶記錄功能。
3、供應商資料表新增供應商付款相關資料。
B70340 пре 4 година
родитељ
комит
cf05adde4d
44 измењених фајлова са 3757 додато и 289 уклоњено
  1. BIN
      .vs/YD-ERP-SYS/v16/.suo
  2. 2
    2
      YD-ERP-SYS/Module/SQL_Module.vb
  3. 73
    1
      YD-ERP-SYS/Module/SQL_財務系統管理.vb
  4. 8
    2
      YD-ERP-SYS/Module/SQL_資料庫系統管理.vb
  5. 1
    1
      YD-ERP-SYS/Module/全域變數.vb
  6. 30
    0
      YD-ERP-SYS/My Project/Resources.Designer.vb
  7. 67
    58
      YD-ERP-SYS/My Project/Resources.resx
  8. 81
    64
      YD-ERP-SYS/YD-ERP-SYS.Designer.vb
  9. 13
    16
      YD-ERP-SYS/YD-ERP-SYS.vb
  10. 27
    0
      YD-ERP-SYS/YD-ERP-SYS.vbproj
  11. BIN
      YD-ERP-SYS/bin/Debug/YD-ERP-SYS.exe
  12. BIN
      YD-ERP-SYS/bin/Debug/YD-ERP-SYS.pdb
  13. 15
    0
      YD-ERP-SYS/bin/Debug/YD-ERP-SYS.xml
  14. BIN
      YD-ERP-SYS/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  15. BIN
      YD-ERP-SYS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  16. BIN
      YD-ERP-SYS/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll
  17. BIN
      YD-ERP-SYS/obj/Debug/YD-ERP-SYS.exe
  18. BIN
      YD-ERP-SYS/obj/Debug/YD-ERP-SYS.pdb
  19. 1
    1
      YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbproj.CoreCompileInputs.cache
  20. 59
    0
      YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbproj.FileListAbsolute.txt
  21. BIN
      YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbproj.GenerateResource.cache
  22. BIN
      YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbprojAssemblyReference.cache
  23. 15
    0
      YD-ERP-SYS/obj/Debug/YD-ERP-SYS.xml
  24. BIN
      YD-ERP-SYS/obj/Debug/YD_ERP_SYS.Resources.resources
  25. BIN
      YD-ERP-SYS/obj/Debug/YD_ERP_SYS.匯入EXCEL.resources
  26. BIN
      YD-ERP-SYS/obj/Debug/YD_ERP_SYS.匯出EXCEL.resources
  27. BIN
      YD-ERP-SYS/obj/Debug/YD_ERP_SYS.薪資轉帳表.resources
  28. 29
    7
      YD-ERP-SYS/人事系統管理/人事資料表.Designer.vb
  29. 3
    3
      YD-ERP-SYS/人事系統管理/人事資料表.vb
  30. 181
    53
      YD-ERP-SYS/採購系統管理/供應商資料表.Designer.vb
  31. 10
    4
      YD-ERP-SYS/採購系統管理/供應商資料表.vb
  32. 291
    0
      YD-ERP-SYS/財務系統管理/匯入EXCEL.Designer.vb
  33. 123
    0
      YD-ERP-SYS/財務系統管理/匯入EXCEL.resx
  34. 299
    0
      YD-ERP-SYS/財務系統管理/匯入EXCEL.vb
  35. 389
    0
      YD-ERP-SYS/財務系統管理/匯出EXCEL.Designer.vb
  36. 123
    0
      YD-ERP-SYS/財務系統管理/匯出EXCEL.resx
  37. 326
    0
      YD-ERP-SYS/財務系統管理/匯出EXCEL.vb
  38. 37
    21
      YD-ERP-SYS/財務系統管理/營運成本收支單 - 對帳表.Designer.vb
  39. 236
    8
      YD-ERP-SYS/財務系統管理/營運成本收支單 - 對帳表.vb
  40. 709
    0
      YD-ERP-SYS/財務系統管理/薪資轉帳表.Designer.vb
  41. 135
    0
      YD-ERP-SYS/財務系統管理/薪資轉帳表.resx
  42. 274
    0
      YD-ERP-SYS/財務系統管理/薪資轉帳表.vb
  43. 173
    48
      YD-ERP-SYS/資料庫系統管理/系統使用者管理.Designer.vb
  44. 27
    0
      YD-ERP-SYS/資料庫系統管理/系統使用者管理.vb

BIN
.vs/YD-ERP-SYS/v16/.suo Прегледај датотеку


+ 2
- 2
YD-ERP-SYS/Module/SQL_Module.vb Прегледај датотеку

@@ -4,8 +4,8 @@ Module SQL_Module
4 4
     Public conn As New SqlConnection : Public cmd As New SqlCommand : Public dr As SqlDataReader : Public da As New SqlDataAdapter
5 5
     Public DTP As String : Public DTP1 As String : Public DTP2 As String : Public DTP3 As String
6 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,
7
-                                 CC22, CC23, CC24, CC25, CC26, CC27, CC28, CC29, CC30, CC31, CC32, CC33, CC34, CC35, CC36, CC37 "
8
-    Public 權限數量 As Integer = 37
7
+                                 CC22, CC23, CC24, CC25, CC26, CC27, CC28, CC29, CC30, CC31, CC32, CC33, CC34, CC35, CC36, CC37, CC38, CC39, CC40, CC41, CC42, CC43, CC44, CC45, CC46 "
8
+    Public 權限數量 As Integer = 46
9 9
     Friend Sub ConnOpen()
10 10
         conn.Close() : If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
11 11
     End Sub

+ 73
- 1
YD-ERP-SYS/Module/SQL_財務系統管理.vb Прегледај датотеку

@@ -410,7 +410,7 @@
410 410
         SQL1 = "UPDATE 公帳流水帳 SET 現金 = '" & PA15 & "', 備用金 = '" & PA14 & "', 
411 411
                                       公帳 = '" & PA13 & "', 支票 = '" & PA12 & "' 
412 412
                 WHERE  支付單號   LIKE       '" & PA11 & "' AND 項次 Like '" & PA10 & "'"
413
-        CmdSet_For_DGV()
413
+        CmdSet_For_dr()
414 414
     End Sub
415 415
     '---------------------營運報表.-------------------------------------------------------------------------------------------------------------------------------------------------------------
416 416
     Friend Sub SQL_營運報表_年份查詢()
@@ -777,5 +777,77 @@
777 777
                 ORDER BY   LEFT(會計科目.編號, 1) DESC, 會計科目.編號"
778 778
         CmdSet_For_DGV()
779 779
     End Sub
780
+    '---------------------匯入EXCEL.------------------------------------------------------------------------------------------------------------------------------------------
781
+    Friend Sub SQL_薪資轉帳表_流水號_最後一筆資料()
782
+        ConnOpen() : SQL1 = "SELECT TOP (1) 流水號 FROM 薪資轉帳表 ORDER BY 流水號 DESC" : CmdSet_For_dr()
783
+    End Sub
784
+    Friend Sub SQL_薪資轉帳表_匯入EXCEL_新增(ByVal NoColumns As Integer)
785
+        ConnOpen()
786
+        SQL1 = "INSERT INTO 薪資轉帳表 (流水號, 姓名, 身分證, 結算日期, 獎金, 薪資, 領現, 薪資合計, 領現合計, 給付方式, 人事資料流水號) 
787
+                VALUES (N'" & 匯入EXCEL.流水號_tb.Text & "', N'" & 匯入EXCEL.薪資匯入EXCEL_dgv(7, NoColumns).Value & "',
788
+                        N'" & 匯入EXCEL.薪資匯入EXCEL_dgv(2, NoColumns).Value & "', N'" & 匯入EXCEL.薪資匯入EXCEL_dgv(8, NoColumns).Value & "',
789
+                        N'" & 匯入EXCEL.薪資匯入EXCEL_dgv(3, NoColumns).Value & "', N'" & 匯入EXCEL.薪資匯入EXCEL_dgv(4, NoColumns).Value & "', 
790
+                        N'" & 匯入EXCEL.薪資匯入EXCEL_dgv(5, NoColumns).Value & "', N'" & 匯入EXCEL.薪資匯入EXCEL_dgv(6, NoColumns).Value & "', 
791
+                        N'" & 匯入EXCEL.薪資匯入EXCEL_dgv(5, NoColumns).Value & "', N'" & 匯入EXCEL.薪資匯入EXCEL_dgv(9, NoColumns).Value & "', 
792
+                        N'" & 匯入EXCEL.人事流水號_tb.Text & "')"
793
+        CmdSet_For_dr()
794
+    End Sub
795
+    '---------------------匯出EXCEL.------------------------------------------------------------------------------------------------------------------------------------------
796
+    Friend Sub 薪資轉帳表_匯出EXCEL_月份清單(ByVal Str_Date As String)
797
+        ConnOpen()
798
+        SQL1 = "SELECT      薪資轉帳表.流水號, 人事資料表.舊編, 人事資料表.薪資帳號, 人事資料表.身分證, 薪資轉帳表.獎金, 薪資轉帳表.薪資, 
799
+                            薪資轉帳表.領現, 薪資轉帳表.薪資合計, 人事資料表.姓名, 薪資轉帳表.結算日期, 薪資轉帳表.給付方式, 薪資轉帳表.人事資料流水號
800
+                FROM        薪資轉帳表  LEFT OUTER JOIN
801
+                            人事資料表 ON 薪資轉帳表.人事資料流水號 = 人事資料表.流水號
802
+                WHERE      (薪資轉帳表.結算日期 NOT LIKE '')  
803
+                           AND (薪資轉帳表.結算日期 LIKE '" & Str_Date & "%" & "')
804
+               ORDER BY    薪資轉帳表.流水號"
805
+        CmdSet_For_DGV()
806
+    End Sub
807
+    '---------------------薪資轉帳.------------------------------------------------------------------------------------------------------------------------------------------
808
+    Friend Sub 薪資轉帳表_月份清單()
809
+        ConnOpen()
810
+        SQL1 = "SELECT      薪資轉帳表.流水號, 人事資料表.姓名, 人事資料表.身分證, 薪資轉帳表.結算日期, 薪資轉帳表.獎金, 薪資轉帳表.薪資, 薪資轉帳表.領現, 
811
+                            薪資轉帳表.薪資合計, 薪資轉帳表.領現合計, 薪資轉帳表.給付方式, 薪資轉帳表.人事資料流水號, 
812
+                            人事資料表.薪資帳號, 人事資料表.職務, 人事資料表.電話, 人事資料表.手機
813
+                FROM        薪資轉帳表  LEFT OUTER JOIN
814
+                            人事資料表 ON 薪資轉帳表.人事資料流水號 = 人事資料表.流水號
815
+                WHERE      (薪資轉帳表.結算日期 NOT LIKE '')  
816
+                           AND (薪資轉帳表.結算日期 LIKE '" & Strings.Left(Format(薪資轉帳表.結束日期_dtp.Value, "yyyy/MM/dd"), 8) & "%" & "')
817
+               ORDER BY    薪資轉帳表.流水號"
818
+        CmdSet_For_DGV()
819
+    End Sub
820
+    Friend Sub 薪資轉帳表_姓名選擇()
821
+        ConnOpen() : SQL1 = "SELECT  姓名 FROM 人事資料表 GROUP BY 姓名" : CmdSet_For_dr()
822
+    End Sub
823
+    Friend Sub SQL_薪資轉帳表_新增()
824
+        ConnOpen()
825
+        SQL1 = "INSERT INTO 薪資轉帳表 (流水號, 身分證, 結算日期, 獎金, 薪資, 領現, 薪資合計, 領現合計, 給付方式, 人事資料流水號) 
826
+                VALUES (N'" & 薪資轉帳表.流水號_tb.Text & "', N'" & 薪資轉帳表.身分證_tb.Text & "', N'" & 薪資轉帳表.結束日期_dtp.Value.ToString("yyyy/MM/dd") & "', N'', N'', N'', N'', N'', N'', N'" & 薪資轉帳表.人事流水號_tb.Text & "')"
827
+        CmdSet_For_dr()
828
+    End Sub
829
+    Friend Sub SQL_薪資轉帳表_修改()
830
+        ConnOpen()
831
+        SQL1 = "UPDATE 薪資轉帳表 SET 結算日期 = N'" & 薪資轉帳表.結束日期_dtp.Value.ToString("yyyy/MM/dd") & "', 姓名 = N'" & 薪資轉帳表.姓名_cb.Text & "',
832
+                                      身分證 = N'" & 薪資轉帳表.身分證_tb.Text & "', 獎金 = N'" & 薪資轉帳表.獎金_tb.Text & "',
833
+                                      薪資 = N'" & 薪資轉帳表.薪資_tb.Text & "', 領現 = N'" & 薪資轉帳表.領現_tb.Text & "', 
834
+                                      薪資合計 = N'" & 薪資轉帳表.薪資總金額_tb.Text & "', 領現合計 = N'" & 薪資轉帳表.領現總金額_tb.Text & "',
835
+                                      給付方式 = N'" & 薪資轉帳表.給付方式_cb.Text & "', 人事資料流水號 = N'" & 薪資轉帳表.人事流水號_tb.Text & "'
836
+                        WHERE (流水號 = N'" & 薪資轉帳表.流水號_tb.Text & "')"
837
+        CmdSet_For_dr()
838
+    End Sub
839
+    Friend Sub SQL_薪資轉帳表_刪除()
840
+        ConnOpen() : SQL1 = "DELETE 薪資轉帳表 WHERE (流水號 = N'" & 薪資轉帳表.流水號_tb.Text & "')" : CmdSet_For_dr()
841
+    End Sub
842
+    Friend Sub SQL_薪資轉帳表_批量存檔薪轉資料()
843
+        ConnOpen()
844
+        SQL1 = "UPDATE 會計科目       SET 流水號 = N'" & PA1 & "', 姓名 = N'" & PA2 & "', 身分證 = N'" & PA3 & "', 結算日期 = N'" & PA4 &
845
+                                      "', 獎金 = N'" & PA5 & "', 薪资 = N'" & PA6 & "', 領現 = N'" & PA7 & "', 薪資合計 = N'" & PA8 &
846
+                                      "', 領現合計 = N'" & PA9 & "' , 給付方式 = N'" & PA10 & "', 薪資帳號 = N'" & PA11 &
847
+                                      "', 職務 = N'" & PA12 & "', 電話 = N'" & PA13 & "', 手機 = N'" & PA14 & "'
848
+                WHERE  流水號         LIKE N'" & PA15 & "'"
849
+        CmdSet_For_DGV()
850
+    End Sub
851
+    '將SQL_薪資轉帳表_批量存檔薪轉資料()SQL語法的key做更動
780 852
 End Module
781 853
 

+ 8
- 2
YD-ERP-SYS/Module/SQL_資料庫系統管理.vb Прегледај датотеку

@@ -41,7 +41,10 @@
41 41
                         N'" & 系統使用者管理.CheckBox26.Checked & "',N'" & 系統使用者管理.CheckBox27.Checked & "',N'" & 系統使用者管理.CheckBox28.Checked & "',
42 42
                         N'" & 系統使用者管理.CheckBox29.Checked & "',N'" & 系統使用者管理.CheckBox30.Checked & "',N'" & 系統使用者管理.CheckBox31.Checked & "',
43 43
                         N'" & 系統使用者管理.CheckBox32.Checked & "',N'" & 系統使用者管理.CheckBox33.Checked & "',N'" & 系統使用者管理.CheckBox34.Checked & "',
44
-                        N'" & 系統使用者管理.CheckBox35.Checked & "',N'" & 系統使用者管理.CheckBox36.Checked & "',N'" & 系統使用者管理.CheckBox37.Checked & "')"
44
+                        N'" & 系統使用者管理.CheckBox35.Checked & "',N'" & 系統使用者管理.CheckBox36.Checked & "',N'" & 系統使用者管理.CheckBox37.Checked & "',
45
+                        N'" & 系統使用者管理.CheckBox38.Checked & "',N'" & 系統使用者管理.CheckBox39.Checked & "',N'" & 系統使用者管理.CheckBox40.Checked & "',
46
+                        N'" & 系統使用者管理.CheckBox41.Checked & "',N'" & 系統使用者管理.CheckBox42.Checked & "',N'" & 系統使用者管理.CheckBox43.Checked & "',
47
+                        N'" & 系統使用者管理.CheckBox44.Checked & "',N'" & 系統使用者管理.CheckBox45.Checked & "',N'" & 系統使用者管理.CheckBox46.Checked & "')"
45 48
         CmdSet_For_dr()
46 49
     End Sub
47 50
     Friend Sub SQL_系統使用者密碼顯示()
@@ -62,7 +65,10 @@
62 65
                                        CC27 = N'" & 系統使用者管理.CheckBox27.Checked & "', CC28 = N'" & 系統使用者管理.CheckBox28.Checked & "', CC29 = N'" & 系統使用者管理.CheckBox29.Checked & "', 
63 66
                                        CC30 = N'" & 系統使用者管理.CheckBox30.Checked & "', CC31 = N'" & 系統使用者管理.CheckBox31.Checked & "', CC32 = N'" & 系統使用者管理.CheckBox32.Checked & "', 
64 67
                                        CC33 = N'" & 系統使用者管理.CheckBox33.Checked & "', CC34 = N'" & 系統使用者管理.CheckBox34.Checked & "', CC35 = N'" & 系統使用者管理.CheckBox35.Checked & "', 
65
-                                       CC36 = N'" & 系統使用者管理.CheckBox36.Checked & "', CC37 = N'" & 系統使用者管理.CheckBox37.Checked & "'
68
+                                       CC36 = N'" & 系統使用者管理.CheckBox36.Checked & "', CC37 = N'" & 系統使用者管理.CheckBox37.Checked & "', CC38 = N'" & 系統使用者管理.CheckBox38.Checked & "', 
69
+                                       CC39 = N'" & 系統使用者管理.CheckBox39.Checked & "', CC40 = N'" & 系統使用者管理.CheckBox40.Checked & "', CC41 = N'" & 系統使用者管理.CheckBox41.Checked & "', 
70
+                                       CC42 = N'" & 系統使用者管理.CheckBox42.Checked & "', CC43 = N'" & 系統使用者管理.CheckBox43.Checked & "', CC44 = N'" & 系統使用者管理.CheckBox44.Checked & "', 
71
+                                       CC45 = N'" & 系統使用者管理.CheckBox45.Checked & "', CC46 = N'" & 系統使用者管理.CheckBox46.Checked & "'
66 72
                 WHERE (帳號 = '" & 系統使用者管理.帳號_tb.Text & "')"
67 73
         CmdSet_For_dr()
68 74
     End Sub

+ 1
- 1
YD-ERP-SYS/Module/全域變數.vb Прегледај датотеку

@@ -4,7 +4,7 @@
4 4
     Public 版本號 As String : Public Target As String : Public Target1 As String : Public Target2 As String : Public FTP帳號 As String : Public FTP密碼 As String : Public FTP物理位置 As String
5 5
     Public AA(99) As String : Public BB(99) As Boolean : Public CC(99) As Boolean : Public 登入判斷 As Boolean : Public 業務號碼 As String
6 6
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7
-    Public 版本 As String = "2021010601"
7
+    Public 版本 As String = "2021040601"
8 8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9 9
     Public 列印用SQL As String = "" : Public 列印用SQL2 As String : Public 公司編號 As String : Public 公司電話 As String : Public 公司統編 As String : Public 公司地址 As String
10 10
     Public 關鍵字編號 As String

+ 30
- 0
YD-ERP-SYS/My Project/Resources.Designer.vb Прегледај датотеку

@@ -1170,6 +1170,16 @@ Namespace My.Resources
1170 1170
             End Get
1171 1171
         End Property
1172 1172
         
1173
+        '''<summary>
1174
+        '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
1175
+        '''</summary>
1176
+        Friend ReadOnly Property Payment2() As System.Drawing.Bitmap
1177
+            Get
1178
+                Dim obj As Object = ResourceManager.GetObject("Payment2", resourceCulture)
1179
+                Return CType(obj,System.Drawing.Bitmap)
1180
+            End Get
1181
+        End Property
1182
+        
1173 1183
         '''<summary>
1174 1184
         '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
1175 1185
         '''</summary>
@@ -1280,6 +1290,26 @@ Namespace My.Resources
1280 1290
             End Get
1281 1291
         End Property
1282 1292
         
1293
+        '''<summary>
1294
+        '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
1295
+        '''</summary>
1296
+        Friend ReadOnly Property Report7() As System.Drawing.Bitmap
1297
+            Get
1298
+                Dim obj As Object = ResourceManager.GetObject("Report7", resourceCulture)
1299
+                Return CType(obj,System.Drawing.Bitmap)
1300
+            End Get
1301
+        End Property
1302
+        
1303
+        '''<summary>
1304
+        '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
1305
+        '''</summary>
1306
+        Friend ReadOnly Property Report8() As System.Drawing.Bitmap
1307
+            Get
1308
+                Dim obj As Object = ResourceManager.GetObject("Report8", resourceCulture)
1309
+                Return CType(obj,System.Drawing.Bitmap)
1310
+            End Get
1311
+        End Property
1312
+        
1283 1313
         '''<summary>
1284 1314
         '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
1285 1315
         '''</summary>

+ 67
- 58
YD-ERP-SYS/My Project/Resources.resx Прегледај датотеку

@@ -118,6 +118,9 @@
118 118
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119 119
   </resheader>
120 120
   <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
121
+  <data name="check1" type="System.Resources.ResXFileRef, System.Windows.Forms">
122
+    <value>..\圖片\check.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
123
+  </data>
121 124
   <data name="068" type="System.Resources.ResXFileRef, System.Windows.Forms">
122 125
     <value>..\圖片比例用\068.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
123 126
   </data>
@@ -142,11 +145,11 @@
142 145
   <data name="Report3" type="System.Resources.ResXFileRef, System.Windows.Forms">
143 146
     <value>..\圖片\Report.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
144 147
   </data>
145
-  <data name="008" type="System.Resources.ResXFileRef, System.Windows.Forms">
146
-    <value>..\圖片比例用\008.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
148
+  <data name="027" type="System.Resources.ResXFileRef, System.Windows.Forms">
149
+    <value>..\圖片比例用\027.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
147 150
   </data>
148
-  <data name="017" type="System.Resources.ResXFileRef, System.Windows.Forms">
149
-    <value>..\圖片比例用\017.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
151
+  <data name="Sys-Command1" type="System.Resources.ResXFileRef, System.Windows.Forms">
152
+    <value>..\圖片\Sys-Command.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
150 153
   </data>
151 154
   <data name="065" type="System.Resources.ResXFileRef, System.Windows.Forms">
152 155
     <value>..\圖片比例用\065.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -154,26 +157,32 @@
154 157
   <data name="018" type="System.Resources.ResXFileRef, System.Windows.Forms">
155 158
     <value>..\圖片比例用\018.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
156 159
   </data>
160
+  <data name="064" type="System.Resources.ResXFileRef, System.Windows.Forms">
161
+    <value>..\圖片比例用\064.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
162
+  </data>
157 163
   <data name="087" type="System.Resources.ResXFileRef, System.Windows.Forms">
158 164
     <value>..\圖片比例用\087.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
159 165
   </data>
160 166
   <data name="033" type="System.Resources.ResXFileRef, System.Windows.Forms">
161 167
     <value>..\圖片比例用\033.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
162 168
   </data>
163
-  <data name="069" type="System.Resources.ResXFileRef, System.Windows.Forms">
164
-    <value>..\圖片比例用\069.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
169
+  <data name="008" type="System.Resources.ResXFileRef, System.Windows.Forms">
170
+    <value>..\圖片比例用\008.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
165 171
   </data>
166 172
   <data name="067" type="System.Resources.ResXFileRef, System.Windows.Forms">
167 173
     <value>..\圖片比例用\067.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
168 174
   </data>
169
-  <data name="056" type="System.Resources.ResXFileRef, System.Windows.Forms">
170
-    <value>..\圖片比例用\056.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
175
+  <data name="Payment2" type="System.Resources.ResXFileRef, System.Windows.Forms">
176
+    <value>..\圖片\Payment.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
177
+  </data>
178
+  <data name="032" type="System.Resources.ResXFileRef, System.Windows.Forms">
179
+    <value>..\圖片比例用\032.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
171 180
   </data>
172 181
   <data name="timg02" type="System.Resources.ResXFileRef, System.Windows.Forms">
173 182
     <value>..\圖片\timg02.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
174 183
   </data>
175
-  <data name="Sys-Command13" type="System.Resources.ResXFileRef, System.Windows.Forms">
176
-    <value>..\圖片\Sys-Command1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
184
+  <data name="029" type="System.Resources.ResXFileRef, System.Windows.Forms">
185
+    <value>..\圖片比例用\029.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
177 186
   </data>
178 187
   <data name="061" type="System.Resources.ResXFileRef, System.Windows.Forms">
179 188
     <value>..\圖片比例用\061.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -193,6 +202,9 @@
193 202
   <data name="pen" type="System.Resources.ResXFileRef, System.Windows.Forms">
194 203
     <value>..\圖片\pen.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
195 204
   </data>
205
+  <data name="check2" type="System.Resources.ResXFileRef, System.Windows.Forms">
206
+    <value>..\圖片\check.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
207
+  </data>
196 208
   <data name="023" type="System.Resources.ResXFileRef, System.Windows.Forms">
197 209
     <value>..\圖片比例用\023.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
198 210
   </data>
@@ -211,17 +223,14 @@
211 223
   <data name="028" type="System.Resources.ResXFileRef, System.Windows.Forms">
212 224
     <value>..\圖片比例用\028.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
213 225
   </data>
214
-  <data name="100" type="System.Resources.ResXFileRef, System.Windows.Forms">
215
-    <value>..\圖片比例用\100.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
216
-  </data>
217 226
   <data name="011" type="System.Resources.ResXFileRef, System.Windows.Forms">
218 227
     <value>..\圖片比例用\011.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
219 228
   </data>
220 229
   <data name="099" type="System.Resources.ResXFileRef, System.Windows.Forms">
221 230
     <value>..\圖片比例用\099.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
222 231
   </data>
223
-  <data name="060" type="System.Resources.ResXFileRef, System.Windows.Forms">
224
-    <value>..\圖片比例用\060.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
232
+  <data name="078" type="System.Resources.ResXFileRef, System.Windows.Forms">
233
+    <value>..\圖片比例用\078.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
225 234
   </data>
226 235
   <data name="045" type="System.Resources.ResXFileRef, System.Windows.Forms">
227 236
     <value>..\圖片比例用\045.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -238,9 +247,6 @@
238 247
   <data name="Report2" type="System.Resources.ResXFileRef, System.Windows.Forms">
239 248
     <value>..\圖片\Report.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
240 249
   </data>
241
-  <data name="052" type="System.Resources.ResXFileRef, System.Windows.Forms">
242
-    <value>..\圖片比例用\052.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
243
-  </data>
244 250
   <data name="pen2" type="System.Resources.ResXFileRef, System.Windows.Forms">
245 251
     <value>..\圖片\pen.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
246 252
   </data>
@@ -265,12 +271,6 @@
265 271
   <data name="timg03" type="System.Resources.ResXFileRef, System.Windows.Forms">
266 272
     <value>..\圖片\timg03.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
267 273
   </data>
268
-  <data name="078" type="System.Resources.ResXFileRef, System.Windows.Forms">
269
-    <value>..\圖片比例用\078.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
270
-  </data>
271
-  <data name="004" type="System.Resources.ResXFileRef, System.Windows.Forms">
272
-    <value>..\圖片比例用\004.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
273
-  </data>
274 274
   <data name="082" type="System.Resources.ResXFileRef, System.Windows.Forms">
275 275
     <value>..\圖片比例用\082.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
276 276
   </data>
@@ -286,8 +286,8 @@
286 286
   <data name="007" type="System.Resources.ResXFileRef, System.Windows.Forms">
287 287
     <value>..\圖片比例用\007.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
288 288
   </data>
289
-  <data name="051" type="System.Resources.ResXFileRef, System.Windows.Forms">
290
-    <value>..\圖片比例用\051.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
289
+  <data name="Sys-Command14" type="System.Resources.ResXFileRef, System.Windows.Forms">
290
+    <value>..\圖片\Sys-Command1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
291 291
   </data>
292 292
   <data name="020" type="System.Resources.ResXFileRef, System.Windows.Forms">
293 293
     <value>..\圖片比例用\020.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -304,6 +304,9 @@
304 304
   <data name="095" type="System.Resources.ResXFileRef, System.Windows.Forms">
305 305
     <value>..\圖片比例用\095.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
306 306
   </data>
307
+  <data name="Report4" type="System.Resources.ResXFileRef, System.Windows.Forms">
308
+    <value>..\圖片\Report.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
309
+  </data>
307 310
   <data name="049" type="System.Resources.ResXFileRef, System.Windows.Forms">
308 311
     <value>..\圖片比例用\049.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
309 312
   </data>
@@ -346,6 +349,9 @@
346 349
   <data name="050" type="System.Resources.ResXFileRef, System.Windows.Forms">
347 350
     <value>..\圖片比例用\050.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
348 351
   </data>
352
+  <data name="024" type="System.Resources.ResXFileRef, System.Windows.Forms">
353
+    <value>..\圖片比例用\024.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
354
+  </data>
349 355
   <data name="088" type="System.Resources.ResXFileRef, System.Windows.Forms">
350 356
     <value>..\圖片比例用\088.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
351 357
   </data>
@@ -373,23 +379,23 @@
373 379
   <data name="022" type="System.Resources.ResXFileRef, System.Windows.Forms">
374 380
     <value>..\圖片比例用\022.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
375 381
   </data>
382
+  <data name="042" type="System.Resources.ResXFileRef, System.Windows.Forms">
383
+    <value>..\圖片比例用\042.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
384
+  </data>
376 385
   <data name="054" type="System.Resources.ResXFileRef, System.Windows.Forms">
377 386
     <value>..\圖片比例用\054.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
378 387
   </data>
379
-  <data name="032" type="System.Resources.ResXFileRef, System.Windows.Forms">
380
-    <value>..\圖片比例用\032.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
381
-  </data>
382
-  <data name="024" type="System.Resources.ResXFileRef, System.Windows.Forms">
383
-    <value>..\圖片比例用\024.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
388
+  <data name="Sys-Command13" type="System.Resources.ResXFileRef, System.Windows.Forms">
389
+    <value>..\圖片\Sys-Command1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
384 390
   </data>
385
-  <data name="093" type="System.Resources.ResXFileRef, System.Windows.Forms">
386
-    <value>..\圖片比例用\093.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
391
+  <data name="051" type="System.Resources.ResXFileRef, System.Windows.Forms">
392
+    <value>..\圖片比例用\051.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
387 393
   </data>
388 394
   <data name="070" type="System.Resources.ResXFileRef, System.Windows.Forms">
389 395
     <value>..\圖片比例用\070.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
390 396
   </data>
391
-  <data name="Sys-Command1" type="System.Resources.ResXFileRef, System.Windows.Forms">
392
-    <value>..\圖片\Sys-Command.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
397
+  <data name="052" type="System.Resources.ResXFileRef, System.Windows.Forms">
398
+    <value>..\圖片比例用\052.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
393 399
   </data>
394 400
   <data name="062" type="System.Resources.ResXFileRef, System.Windows.Forms">
395 401
     <value>..\圖片比例用\062.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -397,6 +403,12 @@
397 403
   <data name="079" type="System.Resources.ResXFileRef, System.Windows.Forms">
398 404
     <value>..\圖片比例用\079.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
399 405
   </data>
406
+  <data name="Report7" type="System.Resources.ResXFileRef, System.Windows.Forms">
407
+    <value>..\圖片\Report.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
408
+  </data>
409
+  <data name="060" type="System.Resources.ResXFileRef, System.Windows.Forms">
410
+    <value>..\圖片比例用\060.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
411
+  </data>
400 412
   <data name="LOGO -01" type="System.Resources.ResXFileRef, System.Windows.Forms">
401 413
     <value>..\圖片\LOGO -01.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
402 414
   </data>
@@ -418,9 +430,6 @@
418 430
   <data name="015" type="System.Resources.ResXFileRef, System.Windows.Forms">
419 431
     <value>..\圖片比例用\015.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
420 432
   </data>
421
-  <data name="002" type="System.Resources.ResXFileRef, System.Windows.Forms">
422
-    <value>..\圖片比例用\002.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
423
-  </data>
424 433
   <data name="Payment" type="System.Resources.ResXFileRef, System.Windows.Forms">
425 434
     <value>..\圖片\Payment.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
426 435
   </data>
@@ -436,8 +445,8 @@
436 445
   <data name="048" type="System.Resources.ResXFileRef, System.Windows.Forms">
437 446
     <value>..\圖片比例用\048.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
438 447
   </data>
439
-  <data name="Report4" type="System.Resources.ResXFileRef, System.Windows.Forms">
440
-    <value>..\圖片\Report.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
448
+  <data name="093" type="System.Resources.ResXFileRef, System.Windows.Forms">
449
+    <value>..\圖片比例用\093.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
441 450
   </data>
442 451
   <data name="006" type="System.Resources.ResXFileRef, System.Windows.Forms">
443 452
     <value>..\圖片比例用\006.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -457,23 +466,23 @@
457 466
   <data name="063" type="System.Resources.ResXFileRef, System.Windows.Forms">
458 467
     <value>..\圖片比例用\063.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
459 468
   </data>
460
-  <data name="040" type="System.Resources.ResXFileRef, System.Windows.Forms">
461
-    <value>..\圖片比例用\040.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
469
+  <data name="017" type="System.Resources.ResXFileRef, System.Windows.Forms">
470
+    <value>..\圖片比例用\017.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
462 471
   </data>
463 472
   <data name="Report" type="System.Resources.ResXFileRef, System.Windows.Forms">
464 473
     <value>..\圖片\Report.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
465 474
   </data>
466
-  <data name="Report5" type="System.Resources.ResXFileRef, System.Windows.Forms">
467
-    <value>..\圖片\Report.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
475
+  <data name="069" type="System.Resources.ResXFileRef, System.Windows.Forms">
476
+    <value>..\圖片比例用\069.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
468 477
   </data>
469 478
   <data name="card_ipod" type="System.Resources.ResXFileRef, System.Windows.Forms">
470 479
     <value>..\圖片\card_ipod.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
471 480
   </data>
472
-  <data name="check1" type="System.Resources.ResXFileRef, System.Windows.Forms">
473
-    <value>..\圖片\check.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
481
+  <data name="004" type="System.Resources.ResXFileRef, System.Windows.Forms">
482
+    <value>..\圖片比例用\004.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
474 483
   </data>
475
-  <data name="042" type="System.Resources.ResXFileRef, System.Windows.Forms">
476
-    <value>..\圖片比例用\042.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
484
+  <data name="040" type="System.Resources.ResXFileRef, System.Windows.Forms">
485
+    <value>..\圖片比例用\040.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
477 486
   </data>
478 487
   <data name="000" type="System.Resources.ResXFileRef, System.Windows.Forms">
479 488
     <value>..\圖片比例用\000.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -484,20 +493,20 @@
484 493
   <data name="055" type="System.Resources.ResXFileRef, System.Windows.Forms">
485 494
     <value>..\圖片比例用\055.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
486 495
   </data>
487
-  <data name="check2" type="System.Resources.ResXFileRef, System.Windows.Forms">
488
-    <value>..\圖片\check.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
496
+  <data name="002" type="System.Resources.ResXFileRef, System.Windows.Forms">
497
+    <value>..\圖片比例用\002.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
489 498
   </data>
490 499
   <data name="046" type="System.Resources.ResXFileRef, System.Windows.Forms">
491 500
     <value>..\圖片比例用\046.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
492 501
   </data>
493
-  <data name="027" type="System.Resources.ResXFileRef, System.Windows.Forms">
494
-    <value>..\圖片比例用\027.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
502
+  <data name="056" type="System.Resources.ResXFileRef, System.Windows.Forms">
503
+    <value>..\圖片比例用\056.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
495 504
   </data>
496 505
   <data name="Sys-Command" type="System.Resources.ResXFileRef, System.Windows.Forms">
497 506
     <value>..\圖片\Sys-Command1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
498 507
   </data>
499
-  <data name="064" type="System.Resources.ResXFileRef, System.Windows.Forms">
500
-    <value>..\圖片比例用\064.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
508
+  <data name="Report5" type="System.Resources.ResXFileRef, System.Windows.Forms">
509
+    <value>..\圖片\Report.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
501 510
   </data>
502 511
   <data name="053" type="System.Resources.ResXFileRef, System.Windows.Forms">
503 512
     <value>..\圖片比例用\053.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -508,10 +517,10 @@
508 517
   <data name="094" type="System.Resources.ResXFileRef, System.Windows.Forms">
509 518
     <value>..\圖片比例用\094.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
510 519
   </data>
511
-  <data name="029" type="System.Resources.ResXFileRef, System.Windows.Forms">
512
-    <value>..\圖片比例用\029.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
520
+  <data name="100" type="System.Resources.ResXFileRef, System.Windows.Forms">
521
+    <value>..\圖片比例用\100.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
513 522
   </data>
514
-  <data name="Sys-Command14" type="System.Resources.ResXFileRef, System.Windows.Forms">
515
-    <value>..\圖片\Sys-Command1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
523
+  <data name="Report8" type="System.Resources.ResXFileRef, System.Windows.Forms">
524
+    <value>..\圖片\Report.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
516 525
   </data>
517 526
 </root>

+ 81
- 64
YD-ERP-SYS/YD-ERP-SYS.Designer.vb Прегледај датотеку

@@ -74,16 +74,18 @@ Partial Class YD_ERP_SYS
74 74
         Me.ToolStripSeparator2 = New System.Windows.Forms.ToolStripSeparator()
75 75
         Me.物料檔案_tsm = New System.Windows.Forms.ToolStripMenuItem()
76 76
         Me.倉儲分區控制表_tsm = New System.Windows.Forms.ToolStripMenuItem()
77
-        Me.財務系統管理ToolStripMenuItem1 = New System.Windows.Forms.ToolStripMenuItem()
78
-        Me.營運成本收支單申請ToolStripMenuItem1 = New System.Windows.Forms.ToolStripMenuItem()
79
-        Me.營運成本收支單審核ToolStripMenuItem1 = New System.Windows.Forms.ToolStripMenuItem()
80
-        Me.營運成本收支單一覽表ToolStripMenuItem1 = New System.Windows.Forms.ToolStripMenuItem()
77
+        Me.財務系統管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
78
+        Me.薪資轉帳表_tsm = New System.Windows.Forms.ToolStripMenuItem()
79
+        Me.ToolStripSeparator15 = New System.Windows.Forms.ToolStripSeparator()
80
+        Me.營運成本收支單申請_tsm = New System.Windows.Forms.ToolStripMenuItem()
81
+        Me.營運成本收支單審核_tsm = New System.Windows.Forms.ToolStripMenuItem()
82
+        Me.營運成本收支單一覽表_tsm = New System.Windows.Forms.ToolStripMenuItem()
81 83
         Me.ToolStripSeparator12 = New System.Windows.Forms.ToolStripSeparator()
82
-        Me.營運成本收支單對帳表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
84
+        Me.營運成本收支單對帳表_tsm = New System.Windows.Forms.ToolStripMenuItem()
83 85
         Me.營運報表_tsm = New System.Windows.Forms.ToolStripMenuItem()
84 86
         Me.ToolStripSeparator13 = New System.Windows.Forms.ToolStripSeparator()
85
-        Me.匯率管理ToolStripMenuItem1 = New System.Windows.Forms.ToolStripMenuItem()
86
-        Me.會計科目管理ToolStripMenuItem1 = New System.Windows.Forms.ToolStripMenuItem()
87
+        Me.匯率管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
88
+        Me.會計科目管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
87 89
         Me.資料庫系統管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
88 90
         Me.系統使用者管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
89 91
         Me.ToolStripSeparator5 = New System.Windows.Forms.ToolStripSeparator()
@@ -91,6 +93,7 @@ Partial Class YD_ERP_SYS
91 93
         Me.系統執行檔版本管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
92 94
         Me.ToolStripSeparator4 = New System.Windows.Forms.ToolStripSeparator()
93 95
         Me.FTP資料夾管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
96
+        Me.ToolStripSeparator14 = New System.Windows.Forms.ToolStripSeparator()
94 97
         Me.簽名檔管理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
95 98
         Me.StatusStrip = New System.Windows.Forms.StatusStrip()
96 99
         Me.著作權_tss = New System.Windows.Forms.ToolStripStatusLabel()
@@ -98,14 +101,13 @@ Partial Class YD_ERP_SYS
98 101
         Me.ToolStripProgressBar1 = New System.Windows.Forms.ToolStripProgressBar()
99 102
         Me.ToolTip = New System.Windows.Forms.ToolTip(Me.components)
100 103
         Me.使用者_cb = New System.Windows.Forms.ComboBox()
101
-        Me.ToolStripSeparator14 = New System.Windows.Forms.ToolStripSeparator()
102 104
         Me.MenuStrip.SuspendLayout()
103 105
         Me.StatusStrip.SuspendLayout()
104 106
         Me.SuspendLayout()
105 107
         '
106 108
         'MenuStrip
107 109
         '
108
-        Me.MenuStrip.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.FileMenu, Me.WindowsMenu, Me.人事系統管理_tsm, Me.業務系統管理_tsm, Me.採購系統管理_tsm, Me.倉儲系統管理_tsm, Me.財務系統管理ToolStripMenuItem1, Me.資料庫系統管理_tsm})
110
+        Me.MenuStrip.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.FileMenu, Me.WindowsMenu, Me.人事系統管理_tsm, Me.業務系統管理_tsm, Me.採購系統管理_tsm, Me.倉儲系統管理_tsm, Me.財務系統管理_tsm, Me.資料庫系統管理_tsm})
109 111
         Me.MenuStrip.Location = New System.Drawing.Point(0, 0)
110 112
         Me.MenuStrip.MdiWindowListItem = Me.WindowsMenu
111 113
         Me.MenuStrip.Name = "MenuStrip"
@@ -464,51 +466,64 @@ Partial Class YD_ERP_SYS
464 466
         Me.倉儲分區控制表_tsm.Size = New System.Drawing.Size(199, 22)
465 467
         Me.倉儲分區控制表_tsm.Text = "倉儲分區控制表"
466 468
         '
467
-        '財務系統管理ToolStripMenuItem1
469
+        '財務系統管理_tsm
470
+        '
471
+        Me.財務系統管理_tsm.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.薪資轉帳表_tsm, Me.ToolStripSeparator15, Me.營運成本收支單申請_tsm, Me.營運成本收支單審核_tsm, Me.營運成本收支單一覽表_tsm, Me.ToolStripSeparator12, Me.營運成本收支單對帳表_tsm, Me.營運報表_tsm, Me.ToolStripSeparator13, Me.匯率管理_tsm, Me.會計科目管理_tsm})
472
+        Me.財務系統管理_tsm.ForeColor = System.Drawing.Color.Red
473
+        Me.財務系統管理_tsm.Image = Global.YD_ERP_SYS.My.Resources.Resources.Payment1
474
+        Me.財務系統管理_tsm.Name = "財務系統管理_tsm"
475
+        Me.財務系統管理_tsm.Size = New System.Drawing.Size(107, 20)
476
+        Me.財務系統管理_tsm.Text = "財務系統管理"
477
+        '
478
+        '薪資轉帳表_tsm
468 479
         '
469
-        Me.財務系統管理ToolStripMenuItem1.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.營運成本收支單申請ToolStripMenuItem1, Me.營運成本收支單審核ToolStripMenuItem1, Me.營運成本收支單一覽表ToolStripMenuItem1, Me.ToolStripSeparator12, Me.營運成本收支單對帳表ToolStripMenuItem, Me.營運報表_tsm, Me.ToolStripSeparator13, Me.匯率管理ToolStripMenuItem1, Me.會計科目管理ToolStripMenuItem1})
470
-        Me.財務系統管理ToolStripMenuItem1.ForeColor = System.Drawing.Color.Red
471
-        Me.財務系統管理ToolStripMenuItem1.Image = Global.YD_ERP_SYS.My.Resources.Resources.Payment1
472
-        Me.財務系統管理ToolStripMenuItem1.Name = "財務系統管理ToolStripMenuItem1"
473
-        Me.財務系統管理ToolStripMenuItem1.Size = New System.Drawing.Size(107, 20)
474
-        Me.財務系統管理ToolStripMenuItem1.Text = "財務系統管理"
480
+        Me.薪資轉帳表_tsm.ForeColor = System.Drawing.Color.Red
481
+        Me.薪資轉帳表_tsm.Image = Global.YD_ERP_SYS.My.Resources.Resources.Payment2
482
+        Me.薪資轉帳表_tsm.Name = "薪資轉帳表_tsm"
483
+        Me.薪資轉帳表_tsm.Size = New System.Drawing.Size(205, 22)
484
+        Me.薪資轉帳表_tsm.Text = "薪資轉帳表"
475 485
         '
476
-        '營運成本收支單申請ToolStripMenuItem1
486
+        'ToolStripSeparator15
477 487
         '
478
-        Me.營運成本收支單申請ToolStripMenuItem1.ForeColor = System.Drawing.Color.Red
479
-        Me.營運成本收支單申請ToolStripMenuItem1.Image = Global.YD_ERP_SYS.My.Resources.Resources.pen2
480
-        Me.營運成本收支單申請ToolStripMenuItem1.Name = "營運成本收支單申請ToolStripMenuItem1"
481
-        Me.營運成本收支單申請ToolStripMenuItem1.Size = New System.Drawing.Size(205, 22)
482
-        Me.營運成本收支單申請ToolStripMenuItem1.Text = "營運成本收支單申請"
488
+        Me.ToolStripSeparator15.Name = "ToolStripSeparator15"
489
+        Me.ToolStripSeparator15.Size = New System.Drawing.Size(202, 6)
483 490
         '
484
-        '營運成本收支單審核ToolStripMenuItem1
491
+        '營運成本收支單申請_tsm
485 492
         '
486
-        Me.營運成本收支單審核ToolStripMenuItem1.ForeColor = System.Drawing.Color.Red
487
-        Me.營運成本收支單審核ToolStripMenuItem1.Image = Global.YD_ERP_SYS.My.Resources.Resources.check2
488
-        Me.營運成本收支單審核ToolStripMenuItem1.Name = "營運成本收支單審核ToolStripMenuItem1"
489
-        Me.營運成本收支單審核ToolStripMenuItem1.Size = New System.Drawing.Size(205, 22)
490
-        Me.營運成本收支單審核ToolStripMenuItem1.Text = "營運成本收支單審核"
493
+        Me.營運成本收支單申請_tsm.ForeColor = System.Drawing.Color.Red
494
+        Me.營運成本收支單申請_tsm.Image = Global.YD_ERP_SYS.My.Resources.Resources.pen2
495
+        Me.營運成本收支單申請_tsm.Name = "營運成本收支單申請_tsm"
496
+        Me.營運成本收支單申請_tsm.Size = New System.Drawing.Size(205, 22)
497
+        Me.營運成本收支單申請_tsm.Text = "營運成本收支單申請"
491 498
         '
492
-        '營運成本收支單一覽表ToolStripMenuItem1
499
+        '營運成本收支單審核_tsm
493 500
         '
494
-        Me.營運成本收支單一覽表ToolStripMenuItem1.ForeColor = System.Drawing.Color.Red
495
-        Me.營運成本收支單一覽表ToolStripMenuItem1.Image = Global.YD_ERP_SYS.My.Resources.Resources.Report4
496
-        Me.營運成本收支單一覽表ToolStripMenuItem1.Name = "營運成本收支單一覽表ToolStripMenuItem1"
497
-        Me.營運成本收支單一覽表ToolStripMenuItem1.Size = New System.Drawing.Size(205, 22)
498
-        Me.營運成本收支單一覽表ToolStripMenuItem1.Text = "營運成本收支單一覽表"
501
+        Me.營運成本收支單審核_tsm.ForeColor = System.Drawing.Color.Red
502
+        Me.營運成本收支單審核_tsm.Image = Global.YD_ERP_SYS.My.Resources.Resources.check2
503
+        Me.營運成本收支單審核_tsm.Name = "營運成本收支單審核_tsm"
504
+        Me.營運成本收支單審核_tsm.Size = New System.Drawing.Size(205, 22)
505
+        Me.營運成本收支單審核_tsm.Text = "營運成本收支單審核"
506
+        '
507
+        '營運成本收支單一覽表_tsm
508
+        '
509
+        Me.營運成本收支單一覽表_tsm.ForeColor = System.Drawing.Color.Red
510
+        Me.營運成本收支單一覽表_tsm.Image = Global.YD_ERP_SYS.My.Resources.Resources.Report4
511
+        Me.營運成本收支單一覽表_tsm.Name = "營運成本收支單一覽表_tsm"
512
+        Me.營運成本收支單一覽表_tsm.Size = New System.Drawing.Size(205, 22)
513
+        Me.營運成本收支單一覽表_tsm.Text = "營運成本收支單一覽表"
499 514
         '
500 515
         'ToolStripSeparator12
501 516
         '
502 517
         Me.ToolStripSeparator12.Name = "ToolStripSeparator12"
503 518
         Me.ToolStripSeparator12.Size = New System.Drawing.Size(202, 6)
504 519
         '
505
-        '營運成本收支單對帳表ToolStripMenuItem
520
+        '營運成本收支單對帳表_tsm
506 521
         '
507
-        Me.營運成本收支單對帳表ToolStripMenuItem.ForeColor = System.Drawing.Color.Red
508
-        Me.營運成本收支單對帳表ToolStripMenuItem.Image = Global.YD_ERP_SYS.My.Resources.Resources.Report5
509
-        Me.營運成本收支單對帳表ToolStripMenuItem.Name = "營運成本收支單對帳表ToolStripMenuItem"
510
-        Me.營運成本收支單對帳表ToolStripMenuItem.Size = New System.Drawing.Size(205, 22)
511
-        Me.營運成本收支單對帳表ToolStripMenuItem.Text = "營運成本收支單 - 對帳表"
522
+        Me.營運成本收支單對帳表_tsm.ForeColor = System.Drawing.Color.Red
523
+        Me.營運成本收支單對帳表_tsm.Image = Global.YD_ERP_SYS.My.Resources.Resources.Report5
524
+        Me.營運成本收支單對帳表_tsm.Name = "營運成本收支單對帳表_tsm"
525
+        Me.營運成本收支單對帳表_tsm.Size = New System.Drawing.Size(205, 22)
526
+        Me.營運成本收支單對帳表_tsm.Text = "營運成本收支單 - 對帳表"
512 527
         '
513 528
         '營運報表_tsm
514 529
         '
@@ -523,21 +538,21 @@ Partial Class YD_ERP_SYS
523 538
         Me.ToolStripSeparator13.Name = "ToolStripSeparator13"
524 539
         Me.ToolStripSeparator13.Size = New System.Drawing.Size(202, 6)
525 540
         '
526
-        '匯率管理ToolStripMenuItem1
541
+        '匯率管理_tsm
527 542
         '
528
-        Me.匯率管理ToolStripMenuItem1.ForeColor = System.Drawing.Color.Red
529
-        Me.匯率管理ToolStripMenuItem1.Image = Global.YD_ERP_SYS.My.Resources.Resources.Sys_Command13
530
-        Me.匯率管理ToolStripMenuItem1.Name = "匯率管理ToolStripMenuItem1"
531
-        Me.匯率管理ToolStripMenuItem1.Size = New System.Drawing.Size(205, 22)
532
-        Me.匯率管理ToolStripMenuItem1.Text = "匯率管理"
543
+        Me.匯率管理_tsm.ForeColor = System.Drawing.Color.Red
544
+        Me.匯率管理_tsm.Image = Global.YD_ERP_SYS.My.Resources.Resources.Sys_Command13
545
+        Me.匯率管理_tsm.Name = "匯率管理_tsm"
546
+        Me.匯率管理_tsm.Size = New System.Drawing.Size(205, 22)
547
+        Me.匯率管理_tsm.Text = "匯率管理"
533 548
         '
534
-        '會計科目管理ToolStripMenuItem1
549
+        '會計科目管理_tsm
535 550
         '
536
-        Me.會計科目管理ToolStripMenuItem1.ForeColor = System.Drawing.Color.Red
537
-        Me.會計科目管理ToolStripMenuItem1.Image = Global.YD_ERP_SYS.My.Resources.Resources.Sys_Command14
538
-        Me.會計科目管理ToolStripMenuItem1.Name = "會計科目管理ToolStripMenuItem1"
539
-        Me.會計科目管理ToolStripMenuItem1.Size = New System.Drawing.Size(205, 22)
540
-        Me.會計科目管理ToolStripMenuItem1.Text = "會計科目管理"
551
+        Me.會計科目管理_tsm.ForeColor = System.Drawing.Color.Red
552
+        Me.會計科目管理_tsm.Image = Global.YD_ERP_SYS.My.Resources.Resources.Sys_Command14
553
+        Me.會計科目管理_tsm.Name = "會計科目管理_tsm"
554
+        Me.會計科目管理_tsm.Size = New System.Drawing.Size(205, 22)
555
+        Me.會計科目管理_tsm.Text = "會計科目管理"
541 556
         '
542 557
         '資料庫系統管理_tsm
543 558
         '
@@ -585,6 +600,11 @@ Partial Class YD_ERP_SYS
585 600
         Me.FTP資料夾管理_tsm.Size = New System.Drawing.Size(182, 22)
586 601
         Me.FTP資料夾管理_tsm.Text = "FTP資料夾管理"
587 602
         '
603
+        'ToolStripSeparator14
604
+        '
605
+        Me.ToolStripSeparator14.Name = "ToolStripSeparator14"
606
+        Me.ToolStripSeparator14.Size = New System.Drawing.Size(179, 6)
607
+        '
588 608
         '簽名檔管理ToolStripMenuItem
589 609
         '
590 610
         Me.簽名檔管理ToolStripMenuItem.Name = "簽名檔管理ToolStripMenuItem"
@@ -632,11 +652,6 @@ Partial Class YD_ERP_SYS
632 652
         Me.使用者_cb.Size = New System.Drawing.Size(97, 23)
633 653
         Me.使用者_cb.TabIndex = 9
634 654
         '
635
-        'ToolStripSeparator14
636
-        '
637
-        Me.ToolStripSeparator14.Name = "ToolStripSeparator14"
638
-        Me.ToolStripSeparator14.Size = New System.Drawing.Size(179, 6)
639
-        '
640 655
         'YD_ERP_SYS
641 656
         '
642 657
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
@@ -726,16 +741,18 @@ Partial Class YD_ERP_SYS
726 741
     Friend WithEvents ToolStripSeparator11 As ToolStripSeparator
727 742
     Friend WithEvents 倉儲出庫_tsm As ToolStripMenuItem
728 743
     Friend WithEvents 單據狀態查詢_tsm As ToolStripMenuItem
729
-    Friend WithEvents 財務系統管理ToolStripMenuItem1 As ToolStripMenuItem
730
-    Friend WithEvents 營運成本收支單申請ToolStripMenuItem1 As ToolStripMenuItem
731
-    Friend WithEvents 營運成本收支單審核ToolStripMenuItem1 As ToolStripMenuItem
732
-    Friend WithEvents 營運成本收支單一覽表ToolStripMenuItem1 As ToolStripMenuItem
744
+    Friend WithEvents 財務系統管理_tsm As ToolStripMenuItem
745
+    Friend WithEvents 營運成本收支單申請_tsm As ToolStripMenuItem
746
+    Friend WithEvents 營運成本收支單審核_tsm As ToolStripMenuItem
747
+    Friend WithEvents 營運成本收支單一覽表_tsm As ToolStripMenuItem
733 748
     Friend WithEvents ToolStripSeparator12 As ToolStripSeparator
734
-    Friend WithEvents 營運成本收支單對帳表ToolStripMenuItem As ToolStripMenuItem
749
+    Friend WithEvents 營運成本收支單對帳表_tsm As ToolStripMenuItem
735 750
     Friend WithEvents 營運報表_tsm As ToolStripMenuItem
736 751
     Friend WithEvents ToolStripSeparator13 As ToolStripSeparator
737
-    Friend WithEvents 匯率管理ToolStripMenuItem1 As ToolStripMenuItem
738
-    Friend WithEvents 會計科目管理ToolStripMenuItem1 As ToolStripMenuItem
752
+    Friend WithEvents 匯率管理_tsm As ToolStripMenuItem
753
+    Friend WithEvents 會計科目管理_tsm As ToolStripMenuItem
739 754
     Friend WithEvents 簽名檔管理ToolStripMenuItem As ToolStripMenuItem
740 755
     Friend WithEvents ToolStripSeparator14 As ToolStripSeparator
756
+    Friend WithEvents 薪資轉帳表_tsm As ToolStripMenuItem
757
+    Friend WithEvents ToolStripSeparator15 As ToolStripSeparator
741 758
 End Class

+ 13
- 16
YD-ERP-SYS/YD-ERP-SYS.vb Прегледај датотеку

@@ -58,7 +58,10 @@ Public Class YD_ERP_SYS
58 58
         客戶資料表_tsm.Enabled = CC(27) : 銷售分析表_tsm.Enabled = CC(31) : 貨款試算表_tsm.Enabled = CC(32)
59 59
         '----------人事系統管理---------------------------------------------------------------------------------------------------------------
60 60
         人事系統管理_tsm.Enabled = CC(28) : 人事資料表_tsm.Enabled = CC(29) : 人員ID卡系統配置設定_tsm.Enabled = CC(30)
61
-
61
+        '----------財務系統管理---------------------------------------------------------------------------------------------------------------
62
+        財務系統管理_tsm.Enabled = CC(38) : 薪資轉帳表_tsm.Enabled = CC(39) : 營運成本收支單申請_tsm.Enabled = CC(40) : 營運成本收支單審核_tsm.Enabled = CC(41)
63
+        營運成本收支單一覽表_tsm.Enabled = CC(42) : 營運成本收支單對帳表_tsm.Enabled = CC(43) : 營運報表_tsm.Enabled = CC(44) : 匯率管理_tsm.Enabled = CC(45)
64
+        會計科目管理_tsm.Enabled = CC(46)
62 65
     End Sub
63 66
     Private Sub YD_ERP_SYS_Unload(sender As Object, e As EventArgs) Handles MyBase.Closing
64 67
         LoginForm1.Close()
@@ -128,10 +131,6 @@ Public Class YD_ERP_SYS
128 131
     Private Sub 個人資料管理_tsm_Click(sender As Object, e As EventArgs) Handles 個人帳號管理_tsm.Click
129 132
         PA = "" : 個人帳號管理.ShowDialog() : 個人帳號管理.BringToFront()
130 133
     End Sub
131
-
132
-
133
-
134
-
135 134
     Private Sub 銷售分析表_tsm_Click(sender As Object, e As EventArgs) Handles 銷售分析表_tsm.Click
136 135
         PA = "" : 銷售分析表.Show() : 銷售分析表.BringToFront()
137 136
     End Sub
@@ -159,33 +158,31 @@ Public Class YD_ERP_SYS
159 158
     Private Sub 單據狀態查詢_tsm_Click(sender As Object, e As EventArgs) Handles 單據狀態查詢_tsm.Click
160 159
         PA = "" : 單據狀態查詢.Show() : 單據狀態查詢.BringToFront()
161 160
     End Sub
162
-    Private Sub 會計科目管理ToolStripMenuItem1_Click(sender As Object, e As EventArgs) Handles 會計科目管理ToolStripMenuItem1.Click
161
+    Private Sub 會計科目管理ToolStripMenuItem1_Click(sender As Object, e As EventArgs) Handles 會計科目管理_tsm.Click
163 162
         PA = "" : 會計科目管理.Show() : 會計科目管理.BringToFront()
164 163
     End Sub
165
-
166
-    Private Sub 營運成本收支單申請ToolStripMenuItem1_Click(sender As Object, e As EventArgs) Handles 營運成本收支單申請ToolStripMenuItem1.Click
164
+    Private Sub 營運成本收支單申請ToolStripMenuItem1_Click(sender As Object, e As EventArgs) Handles 營運成本收支單申請_tsm.Click
167 165
         PA = "" : 營運成本收支單申請.Show() : 營運成本收支單申請.BringToFront()
168 166
     End Sub
169
-
170
-    Private Sub 營運成本收支單審核ToolStripMenuItem1_Click(sender As Object, e As EventArgs) Handles 營運成本收支單審核ToolStripMenuItem1.Click
167
+    Private Sub 營運成本收支單審核ToolStripMenuItem1_Click(sender As Object, e As EventArgs) Handles 營運成本收支單審核_tsm.Click
171 168
         PA = "" : 營運成本收支單審核.Show() : 營運成本收支單審核.BringToFront()
172 169
     End Sub
173
-
174
-    Private Sub 營運成本收支單一覽表ToolStripMenuItem1_Click(sender As Object, e As EventArgs) Handles 營運成本收支單一覽表ToolStripMenuItem1.Click
170
+    Private Sub 營運成本收支單一覽表ToolStripMenuItem1_Click(sender As Object, e As EventArgs) Handles 營運成本收支單一覽表_tsm.Click
175 171
         PA = "" : 營運成本收支單一覽表.Show() : 營運成本收支單一覽表.BringToFront()
176 172
     End Sub
177
-
178
-    Private Sub 營運成本收支單對帳表ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 營運成本收支單對帳表ToolStripMenuItem.Click
173
+    Private Sub 營運成本收支單對帳表ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 營運成本收支單對帳表_tsm.Click
179 174
         PA = "" : 營運成本收支單_對帳表.Show() : 營運成本收支單_對帳表.BringToFront()
180 175
     End Sub
181 176
     Private Sub 營運成本收支決算表ToolStripMenuItem1_Click(sender As Object, e As EventArgs) Handles 營運報表_tsm.Click
182 177
         PA = "" : 營運報表.Show() : 營運報表.BringToFront()
183 178
     End Sub
184
-
185
-    Private Sub 匯率管理ToolStripMenuItem1_Click(sender As Object, e As EventArgs) Handles 匯率管理ToolStripMenuItem1.Click
179
+    Private Sub 匯率管理ToolStripMenuItem1_Click(sender As Object, e As EventArgs) Handles 匯率管理_tsm.Click
186 180
         PA = "" : 匯率管理.Show() : 匯率管理.BringToFront()
187 181
     End Sub
188 182
     Private Sub 簽名檔管理ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 簽名檔管理ToolStripMenuItem.Click
189 183
         PA = "" : 簽名檔管理.Show() : 簽名檔管理.BringToFront()
190 184
     End Sub
185
+    Private Sub 薪資轉帳表ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 薪資轉帳表_tsm.Click
186
+        PA = "" : 薪資轉帳表.Show() : 薪資轉帳表.BringToFront()
187
+    End Sub
191 188
 End Class

+ 27
- 0
YD-ERP-SYS/YD-ERP-SYS.vbproj Прегледај датотеку

@@ -275,6 +275,18 @@
275 275
     <Compile Include="業務系統管理\銷售單申請.vb">
276 276
       <SubType>Form</SubType>
277 277
     </Compile>
278
+    <Compile Include="財務系統管理\匯入EXCEL.Designer.vb">
279
+      <DependentUpon>匯入EXCEL.vb</DependentUpon>
280
+    </Compile>
281
+    <Compile Include="財務系統管理\匯入EXCEL.vb">
282
+      <SubType>Form</SubType>
283
+    </Compile>
284
+    <Compile Include="財務系統管理\匯出EXCEL.Designer.vb">
285
+      <DependentUpon>匯出EXCEL.vb</DependentUpon>
286
+    </Compile>
287
+    <Compile Include="財務系統管理\匯出EXCEL.vb">
288
+      <SubType>Form</SubType>
289
+    </Compile>
278 290
     <Compile Include="財務系統管理\匯率管理.Designer.vb">
279 291
       <DependentUpon>匯率管理.vb</DependentUpon>
280 292
     </Compile>
@@ -317,6 +329,12 @@
317 329
     <Compile Include="財務系統管理\營運成本收支單申請.vb">
318 330
       <SubType>Form</SubType>
319 331
     </Compile>
332
+    <Compile Include="財務系統管理\薪資轉帳表.Designer.vb">
333
+      <DependentUpon>薪資轉帳表.vb</DependentUpon>
334
+    </Compile>
335
+    <Compile Include="財務系統管理\薪資轉帳表.vb">
336
+      <SubType>Form</SubType>
337
+    </Compile>
320 338
     <Compile Include="資料庫系統管理\FTP資料夾管理.Designer.vb">
321 339
       <DependentUpon>FTP資料夾管理.vb</DependentUpon>
322 340
     </Compile>
@@ -466,6 +484,12 @@
466 484
     <EmbeddedResource Include="業務系統管理\銷售單申請.resx">
467 485
       <DependentUpon>銷售單申請.vb</DependentUpon>
468 486
     </EmbeddedResource>
487
+    <EmbeddedResource Include="財務系統管理\匯入EXCEL.resx">
488
+      <DependentUpon>匯入EXCEL.vb</DependentUpon>
489
+    </EmbeddedResource>
490
+    <EmbeddedResource Include="財務系統管理\匯出EXCEL.resx">
491
+      <DependentUpon>匯出EXCEL.vb</DependentUpon>
492
+    </EmbeddedResource>
469 493
     <EmbeddedResource Include="財務系統管理\匯率管理.resx">
470 494
       <DependentUpon>匯率管理.vb</DependentUpon>
471 495
     </EmbeddedResource>
@@ -487,6 +511,9 @@
487 511
     <EmbeddedResource Include="財務系統管理\營運成本收支單申請.resx">
488 512
       <DependentUpon>營運成本收支單申請.vb</DependentUpon>
489 513
     </EmbeddedResource>
514
+    <EmbeddedResource Include="財務系統管理\薪資轉帳表.resx">
515
+      <DependentUpon>薪資轉帳表.vb</DependentUpon>
516
+    </EmbeddedResource>
490 517
     <EmbeddedResource Include="資料庫系統管理\FTP資料夾管理.resx">
491 518
       <DependentUpon>FTP資料夾管理.vb</DependentUpon>
492 519
     </EmbeddedResource>

BIN
YD-ERP-SYS/bin/Debug/YD-ERP-SYS.exe Прегледај датотеку


BIN
YD-ERP-SYS/bin/Debug/YD-ERP-SYS.pdb Прегледај датотеку


+ 15
- 0
YD-ERP-SYS/bin/Debug/YD-ERP-SYS.xml Прегледај датотеку

@@ -577,6 +577,11 @@ YD-ERP-SYS
577 577
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
578 578
 </summary>
579 579
 </member>
580
+<member name="P:YD_ERP_SYS.My.Resources.Resources.Payment2">
581
+<summary>
582
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
583
+</summary>
584
+</member>
580 585
 <member name="P:YD_ERP_SYS.My.Resources.Resources.pen">
581 586
 <summary>
582 587
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
@@ -632,6 +637,16 @@ YD-ERP-SYS
632 637
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
633 638
 </summary>
634 639
 </member>
640
+<member name="P:YD_ERP_SYS.My.Resources.Resources.Report7">
641
+<summary>
642
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
643
+</summary>
644
+</member>
645
+<member name="P:YD_ERP_SYS.My.Resources.Resources.Report8">
646
+<summary>
647
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
648
+</summary>
649
+</member>
635 650
 <member name="P:YD_ERP_SYS.My.Resources.Resources.Shipping5">
636 651
 <summary>
637 652
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。

BIN
YD-ERP-SYS/obj/Debug/DesignTimeResolveAssemblyReferences.cache Прегледај датотеку


BIN
YD-ERP-SYS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache Прегледај датотеку


BIN
YD-ERP-SYS/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll Прегледај датотеку


BIN
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.exe Прегледај датотеку


BIN
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.pdb Прегледај датотеку


+ 1
- 1
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbproj.CoreCompileInputs.cache Прегледај датотеку

@@ -1 +1 @@
1
-49988577c2bbadc38503a8e2d39e249a231d014f
1
+a4f6e87bc886a6a14ffb5949444fdd1a84718492

+ 59
- 0
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbproj.FileListAbsolute.txt Прегледај датотеку

@@ -96,3 +96,62 @@ D:\yd-erp-sys-team\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.營運成本收支單一覽
96 96
 D:\yd-erp-sys-team\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.營運成本收支單_對帳表.resources
97 97
 D:\yd-erp-sys-team\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.營運報表.resources
98 98
 D:\yd-erp-sys-team\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.簽名檔管理.resources
99
+D:\yd-erp-sys-team\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.匯入EXCEL.resources
100
+D:\yd-erp-sys-team\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.匯出EXCEL.resources
101
+D:\yd-erp-sys-team\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.薪資轉帳表.resources
102
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\bin\Debug\YD-ERP-SYS.exe.config
103
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\bin\Debug\YD-ERP-SYS.exe
104
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\bin\Debug\YD-ERP-SYS.pdb
105
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\bin\Debug\YD-ERP-SYS.xml
106
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\bin\Debug\PInvoke.Windows.Core.xml
107
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD-ERP-SYS.vbprojAssemblyReference.cache
108
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.人事資料表.resources
109
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.人員ID卡系統配置設定.resources
110
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.倉儲入庫.resources
111
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.倉儲出庫.resources
112
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.倉儲分區控制表.resources
113
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.倉儲控制表.resources
114
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.單據狀態查詢.resources
115
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.盤盈盤損控制表.resources
116
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.盤盈盤損申請.resources
117
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.盤盈盤損審核_倉儲調整.resources
118
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.一般性申請採購單.resources
119
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.依銷售申請採購單.resources
120
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.採購單審核.resources
121
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.採購對帳單.resources
122
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.採購控制表.resources
123
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.採購訂製大圖.resources
124
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.客戶資料表.resources
125
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.供應商資料表.resources
126
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.物料檔案.resources
127
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.訂單控制表.resources
128
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.貨款試算表.resources
129
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.銷售分析表.resources
130
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.銷售單審核.resources
131
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.銷售單申請.resources
132
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.匯入EXCEL.resources
133
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.匯出EXCEL.resources
134
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.匯率管理.resources
135
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.會計科目管理.resources
136
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.營運報表.resources
137
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.營運成本收支單_對帳表.resources
138
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.營運成本收支單一覽表.resources
139
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.營運成本收支單審核.resources
140
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.營運成本收支單申請.resources
141
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.薪資轉帳表.resources
142
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.FTP資料夾管理.resources
143
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.LoginForm1.resources
144
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.Resources.resources
145
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.YD_ERP_SYS.resources
146
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.個人帳號管理.resources
147
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.簽名檔管理.resources
148
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.系統使用者管理.resources
149
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.系統執行檔版本管理.resources
150
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.系統編碼規則.resources
151
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.網段.resources
152
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD-ERP-SYS.vbproj.GenerateResource.cache
153
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD-ERP-SYS.vbproj.CoreCompileInputs.cache
154
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD-ERP-SYS.vbproj.CopyComplete
155
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD-ERP-SYS.exe
156
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD-ERP-SYS.xml
157
+D:\工巧明\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD-ERP-SYS.pdb

BIN
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbproj.GenerateResource.cache Прегледај датотеку


BIN
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbprojAssemblyReference.cache Прегледај датотеку


+ 15
- 0
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.xml Прегледај датотеку

@@ -577,6 +577,11 @@ YD-ERP-SYS
577 577
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
578 578
 </summary>
579 579
 </member>
580
+<member name="P:YD_ERP_SYS.My.Resources.Resources.Payment2">
581
+<summary>
582
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
583
+</summary>
584
+</member>
580 585
 <member name="P:YD_ERP_SYS.My.Resources.Resources.pen">
581 586
 <summary>
582 587
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
@@ -632,6 +637,16 @@ YD-ERP-SYS
632 637
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
633 638
 </summary>
634 639
 </member>
640
+<member name="P:YD_ERP_SYS.My.Resources.Resources.Report7">
641
+<summary>
642
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
643
+</summary>
644
+</member>
645
+<member name="P:YD_ERP_SYS.My.Resources.Resources.Report8">
646
+<summary>
647
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
648
+</summary>
649
+</member>
635 650
 <member name="P:YD_ERP_SYS.My.Resources.Resources.Shipping5">
636 651
 <summary>
637 652
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。

BIN
YD-ERP-SYS/obj/Debug/YD_ERP_SYS.Resources.resources Прегледај датотеку


BIN
YD-ERP-SYS/obj/Debug/YD_ERP_SYS.匯入EXCEL.resources Прегледај датотеку


BIN
YD-ERP-SYS/obj/Debug/YD_ERP_SYS.匯出EXCEL.resources Прегледај датотеку


BIN
YD-ERP-SYS/obj/Debug/YD_ERP_SYS.薪資轉帳表.resources Прегледај датотеку


+ 29
- 7
YD-ERP-SYS/人事系統管理/人事資料表.Designer.vb Прегледај датотеку

@@ -23,7 +23,7 @@ Partial Class 人事資料表
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25 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 27
         Me.人事_dgv = New System.Windows.Forms.DataGridView()
28 28
         Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
29 29
         Me.重新整理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
@@ -56,14 +56,16 @@ Partial Class 人事資料表
56 56
         Me.刪除_bt = New System.Windows.Forms.Button()
57 57
         Me.流水號_tb = New System.Windows.Forms.TextBox()
58 58
         Me.狀態_lb = New System.Windows.Forms.Label()
59
+        Me.薪資帳號_tb = New System.Windows.Forms.TextBox()
60
+        Me.Label11 = New System.Windows.Forms.Label()
59 61
         CType(Me.人事_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
60 62
         Me.ContextMenuStrip1.SuspendLayout()
61 63
         Me.SuspendLayout()
62 64
         '
63 65
         '人事_dgv
64 66
         '
65
-        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
66
-        Me.人事_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
67
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
68
+        Me.人事_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
67 69
         Me.人事_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
68 70
             Or System.Windows.Forms.AnchorStyles.Left) _
69 71
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -168,7 +170,7 @@ Partial Class 人事資料表
168 170
         Me.Label6.Name = "Label6"
169 171
         Me.Label6.Size = New System.Drawing.Size(32, 16)
170 172
         Me.Label6.TabIndex = 230
171
-        Me.Label6.Text = "住址"
173
+        Me.Label6.Text = "帳號"
172 174
         '
173 175
         'Label7
174 176
         '
@@ -251,9 +253,9 @@ Partial Class 人事資料表
251 253
         '
252 254
         Me.住址_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
253 255
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
254
-        Me.住址_tb.Location = New System.Drawing.Point(662, 5)
256
+        Me.住址_tb.Location = New System.Drawing.Point(847, 6)
255 257
         Me.住址_tb.Name = "住址_tb"
256
-        Me.住址_tb.Size = New System.Drawing.Size(564, 23)
258
+        Me.住址_tb.Size = New System.Drawing.Size(379, 23)
257 259
         Me.住址_tb.TabIndex = 1008
258 260
         '
259 261
         '電話_tb
@@ -284,7 +286,7 @@ Partial Class 人事資料表
284 286
         '
285 287
         Me.備註_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
286 288
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
287
-        Me.備註_tb.Location = New System.Drawing.Point(662, 30)
289
+        Me.備註_tb.Location = New System.Drawing.Point(662, 31)
288 290
         Me.備註_tb.Name = "備註_tb"
289 291
         Me.備註_tb.Size = New System.Drawing.Size(564, 23)
290 292
         Me.備註_tb.TabIndex = 1012
@@ -341,12 +343,30 @@ Partial Class 人事資料表
341 343
         Me.狀態_lb.TabIndex = 1017
342 344
         Me.狀態_lb.Text = "編輯" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "狀態"
343 345
         '
346
+        '薪資帳號_tb
347
+        '
348
+        Me.薪資帳號_tb.Location = New System.Drawing.Point(662, 6)
349
+        Me.薪資帳號_tb.Name = "薪資帳號_tb"
350
+        Me.薪資帳號_tb.Size = New System.Drawing.Size(145, 23)
351
+        Me.薪資帳號_tb.TabIndex = 1018
352
+        '
353
+        'Label11
354
+        '
355
+        Me.Label11.AutoSize = True
356
+        Me.Label11.Location = New System.Drawing.Point(814, 9)
357
+        Me.Label11.Name = "Label11"
358
+        Me.Label11.Size = New System.Drawing.Size(32, 16)
359
+        Me.Label11.TabIndex = 1019
360
+        Me.Label11.Text = "住址"
361
+        '
344 362
         '人事資料表
345 363
         '
346 364
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
347 365
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
348 366
         Me.ClientSize = New System.Drawing.Size(1487, 691)
349 367
         Me.ContextMenuStrip = Me.ContextMenuStrip1
368
+        Me.Controls.Add(Me.Label11)
369
+        Me.Controls.Add(Me.薪資帳號_tb)
350 370
         Me.Controls.Add(Me.狀態_lb)
351 371
         Me.Controls.Add(Me.流水號_tb)
352 372
         Me.Controls.Add(Me.刪除_bt)
@@ -416,4 +436,6 @@ Partial Class 人事資料表
416 436
     Friend WithEvents 刪除ToolStripMenuItem As Windows.Forms.ToolStripMenuItem
417 437
     Friend WithEvents ToolStripSeparator3 As Windows.Forms.ToolStripSeparator
418 438
     Friend WithEvents 狀態_lb As Windows.Forms.Label
439
+    Friend WithEvents 薪資帳號_tb As TextBox
440
+    Friend WithEvents Label11 As Label
419 441
 End Class

+ 3
- 3
YD-ERP-SYS/人事系統管理/人事資料表.vb Прегледај датотеку

@@ -11,7 +11,7 @@ Public Class 人事資料表
11 11
         da.Fill(ds1) : 人事_dgv.DataSource = ds1.Tables(0) : conn.Close()
12 12
         人事_dgv.Columns(0).Visible = False : 人事_dgv.Columns(1).FillWeight = 50 : 人事_dgv.Columns(2).FillWeight = 100 : 人事_dgv.Columns(3).FillWeight = 80
13 13
         人事_dgv.Columns(4).FillWeight = 50 : 人事_dgv.Columns(5).FillWeight = 110 : 人事_dgv.Columns(6).FillWeight = 200 : 人事_dgv.Columns(7).FillWeight = 100
14
-        人事_dgv.Columns(8).FillWeight = 100 : 人事_dgv.Columns(9).FillWeight = 50 : 人事_dgv.Columns(10).FillWeight = 300
14
+        人事_dgv.Columns(8).FillWeight = 100 : 人事_dgv.Columns(9).FillWeight = 50 : 人事_dgv.Columns(10).FillWeight = 60 : 人事_dgv.Columns(11).FillWeight = 240
15 15
     End Sub
16 16
     Private Sub 職務_cb_下拉表單資料載入()
17 17
         SQL_職稱清單_下拉清單() : 職務_cb.Items.Clear() : While (dr.Read()) : 職務_cb.Items.Add(dr("職稱")) : End While : conn.Close()
@@ -47,7 +47,7 @@ Public Class 人事資料表
47 47
                 性別_cb.Text = 人事_dgv(4, e.RowIndex).Value.ToString : 身分證_tb.Text = 人事_dgv(5, e.RowIndex).Value.ToString
48 48
                 住址_tb.Text = 人事_dgv(6, e.RowIndex).Value.ToString : 電話_tb.Text = 人事_dgv(7, e.RowIndex).Value.ToString
49 49
                 手機_tb.Text = 人事_dgv(8, e.RowIndex).Value.ToString : 職務_cb.Text = 人事_dgv(9, e.RowIndex).Value.ToString
50
-                備註_tb.Text = 人事_dgv(10, e.RowIndex).Value.ToString
50
+                薪資帳號_tb.Text = 人事_dgv(10, e.RowIndex).Value.ToString : 備註_tb.Text = 人事_dgv(11, e.RowIndex).Value.ToString
51 51
             End If
52 52
         End If
53 53
     End Sub
@@ -56,7 +56,7 @@ Public Class 人事資料表
56 56
     End Sub
57 57
     Private Sub 新增準備_bt_Click(sender As Object, e As EventArgs) Handles 新增準備_bt.Click
58 58
         流水號_tb.Text = "" : 編號_tb.Text = "" : 到職日_dtp.Value = Today() : 姓名_tb.Text = "" : 性別_cb.Text = "" : 身分證_tb.Text = "" '--------------------控件清空
59
-        住址_tb.Text = "" : 電話_tb.Text = "" : 手機_tb.Text = "" : 職務_cb_下拉表單資料載入() : 備註_tb.Text = ""
59
+        住址_tb.Text = "" : 電話_tb.Text = "" : 手機_tb.Text = "" : 職務_cb_下拉表單資料載入() : 薪資帳號_tb.Text = "" : 備註_tb.Text = ""
60 60
 
61 61
         資料新增判斷 = True '--------------------目前的編輯狀態
62 62
         狀態_lb.Text = "編輯

+ 181
- 53
YD-ERP-SYS/採購系統管理/供應商資料表.Designer.vb Прегледај датотеку

@@ -95,12 +95,23 @@ Partial Class 供應商資料表
95 95
         Me.查詢_tb = New System.Windows.Forms.TextBox()
96 96
         Me.清空_bt = New System.Windows.Forms.Button()
97 97
         Me.精準查詢_ch = New System.Windows.Forms.CheckBox()
98
+        Me.Label30 = New System.Windows.Forms.Label()
99
+        Me.票期_nud = New System.Windows.Forms.NumericUpDown()
100
+        Me.Label31 = New System.Windows.Forms.Label()
101
+        Me.私人支票_tb = New System.Windows.Forms.TextBox()
102
+        Me.公司支票_tb = New System.Windows.Forms.TextBox()
103
+        Me.Label32 = New System.Windows.Forms.Label()
104
+        Me.稅金倍率_tb = New System.Windows.Forms.TextBox()
105
+        Me.Label33 = New System.Windows.Forms.Label()
106
+        Me.廣告費倍率_tb = New System.Windows.Forms.TextBox()
107
+        Me.Label34 = New System.Windows.Forms.Label()
98 108
         CType(Me.供應商_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
99 109
         CType(Me.結算日_nud, System.ComponentModel.ISupportInitialize).BeginInit()
100 110
         CType(Me.KR1_nud, System.ComponentModel.ISupportInitialize).BeginInit()
101 111
         CType(Me.KR2_nud, System.ComponentModel.ISupportInitialize).BeginInit()
102 112
         CType(Me.KR3_nud, System.ComponentModel.ISupportInitialize).BeginInit()
103 113
         Me.ContextMenuStrip1.SuspendLayout()
114
+        CType(Me.票期_nud, System.ComponentModel.ISupportInitialize).BeginInit()
104 115
         Me.SuspendLayout()
105 116
         '
106 117
         '供應商_dgv
@@ -116,7 +127,7 @@ Partial Class 供應商資料表
116 127
         Me.供應商_dgv.Name = "供應商_dgv"
117 128
         Me.供應商_dgv.RowHeadersWidth = 5
118 129
         Me.供應商_dgv.RowTemplate.Height = 24
119
-        Me.供應商_dgv.Size = New System.Drawing.Size(1506, 554)
130
+        Me.供應商_dgv.Size = New System.Drawing.Size(1563, 554)
120 131
         Me.供應商_dgv.TabIndex = 225
121 132
         '
122 133
         '地區編碼_cb
@@ -163,7 +174,7 @@ Partial Class 供應商資料表
163 174
         Me.Label3.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
164 175
         Me.Label3.AutoSize = True
165 176
         Me.Label3.ImeMode = System.Windows.Forms.ImeMode.NoControl
166
-        Me.Label3.Location = New System.Drawing.Point(1465, 108)
177
+        Me.Label3.Location = New System.Drawing.Point(1522, 108)
167 178
         Me.Label3.Name = "Label3"
168 179
         Me.Label3.Size = New System.Drawing.Size(44, 16)
169 180
         Me.Label3.TabIndex = 1014
@@ -172,7 +183,7 @@ Partial Class 供應商資料表
172 183
         '資料筆數_tb
173 184
         '
174 185
         Me.資料筆數_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
175
-        Me.資料筆數_tb.Location = New System.Drawing.Point(1398, 105)
186
+        Me.資料筆數_tb.Location = New System.Drawing.Point(1455, 105)
176 187
         Me.資料筆數_tb.Name = "資料筆數_tb"
177 188
         Me.資料筆數_tb.Size = New System.Drawing.Size(67, 23)
178 189
         Me.資料筆數_tb.TabIndex = 1013
@@ -183,7 +194,7 @@ Partial Class 供應商資料表
183 194
         Me.Label4.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
184 195
         Me.Label4.AutoSize = True
185 196
         Me.Label4.ImeMode = System.Windows.Forms.ImeMode.NoControl
186
-        Me.Label4.Location = New System.Drawing.Point(1376, 108)
197
+        Me.Label4.Location = New System.Drawing.Point(1433, 108)
187 198
         Me.Label4.Name = "Label4"
188 199
         Me.Label4.Size = New System.Drawing.Size(20, 16)
189 200
         Me.Label4.TabIndex = 1012
@@ -226,7 +237,7 @@ Partial Class 供應商資料表
226 237
         '
227 238
         '公司地址_tb
228 239
         '
229
-        Me.公司地址_tb.Location = New System.Drawing.Point(346, 5)
240
+        Me.公司地址_tb.Location = New System.Drawing.Point(328, 5)
230 241
         Me.公司地址_tb.Name = "公司地址_tb"
231 242
         Me.公司地址_tb.Size = New System.Drawing.Size(321, 23)
232 243
         Me.公司地址_tb.TabIndex = 1028
@@ -236,7 +247,7 @@ Partial Class 供應商資料表
236 247
         Me.Label7.AutoSize = True
237 248
         Me.Label7.ForeColor = System.Drawing.Color.Red
238 249
         Me.Label7.ImeMode = System.Windows.Forms.ImeMode.NoControl
239
-        Me.Label7.Location = New System.Drawing.Point(286, 7)
250
+        Me.Label7.Location = New System.Drawing.Point(268, 7)
240 251
         Me.Label7.Name = "Label7"
241 252
         Me.Label7.Size = New System.Drawing.Size(56, 16)
242 253
         Me.Label7.TabIndex = 1027
@@ -244,7 +255,7 @@ Partial Class 供應商資料表
244 255
         '
245 256
         '電話1_tb
246 257
         '
247
-        Me.電話1_tb.Location = New System.Drawing.Point(346, 30)
258
+        Me.電話1_tb.Location = New System.Drawing.Point(328, 30)
248 259
         Me.電話1_tb.Name = "電話1_tb"
249 260
         Me.電話1_tb.Size = New System.Drawing.Size(129, 23)
250 261
         Me.電話1_tb.TabIndex = 1030
@@ -254,7 +265,7 @@ Partial Class 供應商資料表
254 265
         Me.Label8.AutoSize = True
255 266
         Me.Label8.ForeColor = System.Drawing.Color.Red
256 267
         Me.Label8.ImeMode = System.Windows.Forms.ImeMode.NoControl
257
-        Me.Label8.Location = New System.Drawing.Point(286, 33)
268
+        Me.Label8.Location = New System.Drawing.Point(268, 33)
258 269
         Me.Label8.Name = "Label8"
259 270
         Me.Label8.Size = New System.Drawing.Size(63, 16)
260 271
         Me.Label8.TabIndex = 1029
@@ -262,7 +273,7 @@ Partial Class 供應商資料表
262 273
         '
263 274
         '電話2_tb
264 275
         '
265
-        Me.電話2_tb.Location = New System.Drawing.Point(346, 55)
276
+        Me.電話2_tb.Location = New System.Drawing.Point(328, 55)
266 277
         Me.電話2_tb.Name = "電話2_tb"
267 278
         Me.電話2_tb.Size = New System.Drawing.Size(129, 23)
268 279
         Me.電話2_tb.TabIndex = 1032
@@ -271,7 +282,7 @@ Partial Class 供應商資料表
271 282
         '
272 283
         Me.Label9.AutoSize = True
273 284
         Me.Label9.ImeMode = System.Windows.Forms.ImeMode.NoControl
274
-        Me.Label9.Location = New System.Drawing.Point(286, 58)
285
+        Me.Label9.Location = New System.Drawing.Point(268, 58)
275 286
         Me.Label9.Name = "Label9"
276 287
         Me.Label9.Size = New System.Drawing.Size(63, 16)
277 288
         Me.Label9.TabIndex = 1031
@@ -279,7 +290,7 @@ Partial Class 供應商資料表
279 290
         '
280 291
         '電話3_tb
281 292
         '
282
-        Me.電話3_tb.Location = New System.Drawing.Point(538, 30)
293
+        Me.電話3_tb.Location = New System.Drawing.Point(520, 30)
283 294
         Me.電話3_tb.Name = "電話3_tb"
284 295
         Me.電話3_tb.Size = New System.Drawing.Size(129, 23)
285 296
         Me.電話3_tb.TabIndex = 1034
@@ -288,7 +299,7 @@ Partial Class 供應商資料表
288 299
         '
289 300
         Me.Label10.AutoSize = True
290 301
         Me.Label10.ImeMode = System.Windows.Forms.ImeMode.NoControl
291
-        Me.Label10.Location = New System.Drawing.Point(477, 33)
302
+        Me.Label10.Location = New System.Drawing.Point(459, 33)
292 303
         Me.Label10.Name = "Label10"
293 304
         Me.Label10.Size = New System.Drawing.Size(63, 16)
294 305
         Me.Label10.TabIndex = 1033
@@ -296,7 +307,7 @@ Partial Class 供應商資料表
296 307
         '
297 308
         '電話4_tb
298 309
         '
299
-        Me.電話4_tb.Location = New System.Drawing.Point(538, 55)
310
+        Me.電話4_tb.Location = New System.Drawing.Point(520, 55)
300 311
         Me.電話4_tb.Name = "電話4_tb"
301 312
         Me.電話4_tb.Size = New System.Drawing.Size(129, 23)
302 313
         Me.電話4_tb.TabIndex = 1036
@@ -305,7 +316,7 @@ Partial Class 供應商資料表
305 316
         '
306 317
         Me.Label11.AutoSize = True
307 318
         Me.Label11.ImeMode = System.Windows.Forms.ImeMode.NoControl
308
-        Me.Label11.Location = New System.Drawing.Point(477, 58)
319
+        Me.Label11.Location = New System.Drawing.Point(459, 58)
309 320
         Me.Label11.Name = "Label11"
310 321
         Me.Label11.Size = New System.Drawing.Size(63, 16)
311 322
         Me.Label11.TabIndex = 1035
@@ -315,16 +326,16 @@ Partial Class 供應商資料表
315 326
         '
316 327
         Me.店面地址_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
317 328
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
318
-        Me.店面地址_tb.Location = New System.Drawing.Point(743, 5)
329
+        Me.店面地址_tb.Location = New System.Drawing.Point(716, 5)
319 330
         Me.店面地址_tb.Name = "店面地址_tb"
320
-        Me.店面地址_tb.Size = New System.Drawing.Size(530, 23)
331
+        Me.店面地址_tb.Size = New System.Drawing.Size(324, 23)
321 332
         Me.店面地址_tb.TabIndex = 1038
322 333
         '
323 334
         'Label12
324 335
         '
325 336
         Me.Label12.AutoSize = True
326 337
         Me.Label12.ImeMode = System.Windows.Forms.ImeMode.NoControl
327
-        Me.Label12.Location = New System.Drawing.Point(682, 8)
338
+        Me.Label12.Location = New System.Drawing.Point(655, 8)
328 339
         Me.Label12.Name = "Label12"
329 340
         Me.Label12.Size = New System.Drawing.Size(56, 16)
330 341
         Me.Label12.TabIndex = 1037
@@ -332,7 +343,7 @@ Partial Class 供應商資料表
332 343
         '
333 344
         '店面電話_tb
334 345
         '
335
-        Me.店面電話_tb.Location = New System.Drawing.Point(346, 105)
346
+        Me.店面電話_tb.Location = New System.Drawing.Point(328, 105)
336 347
         Me.店面電話_tb.Name = "店面電話_tb"
337 348
         Me.店面電話_tb.Size = New System.Drawing.Size(129, 23)
338 349
         Me.店面電話_tb.TabIndex = 1040
@@ -341,7 +352,7 @@ Partial Class 供應商資料表
341 352
         '
342 353
         Me.Label13.AutoSize = True
343 354
         Me.Label13.ImeMode = System.Windows.Forms.ImeMode.NoControl
344
-        Me.Label13.Location = New System.Drawing.Point(287, 108)
355
+        Me.Label13.Location = New System.Drawing.Point(269, 108)
345 356
         Me.Label13.Name = "Label13"
346 357
         Me.Label13.Size = New System.Drawing.Size(56, 16)
347 358
         Me.Label13.TabIndex = 1039
@@ -369,16 +380,16 @@ Partial Class 供應商資料表
369 380
         '
370 381
         Me.工廠地址_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
371 382
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
372
-        Me.工廠地址_tb.Location = New System.Drawing.Point(743, 30)
383
+        Me.工廠地址_tb.Location = New System.Drawing.Point(716, 30)
373 384
         Me.工廠地址_tb.Name = "工廠地址_tb"
374
-        Me.工廠地址_tb.Size = New System.Drawing.Size(530, 23)
385
+        Me.工廠地址_tb.Size = New System.Drawing.Size(324, 23)
375 386
         Me.工廠地址_tb.TabIndex = 1044
376 387
         '
377 388
         'Label15
378 389
         '
379 390
         Me.Label15.AutoSize = True
380 391
         Me.Label15.ImeMode = System.Windows.Forms.ImeMode.NoControl
381
-        Me.Label15.Location = New System.Drawing.Point(682, 33)
392
+        Me.Label15.Location = New System.Drawing.Point(655, 33)
382 393
         Me.Label15.Name = "Label15"
383 394
         Me.Label15.Size = New System.Drawing.Size(56, 16)
384 395
         Me.Label15.TabIndex = 1043
@@ -421,7 +432,7 @@ Partial Class 供應商資料表
421 432
         '
422 433
         '傳真_tb
423 434
         '
424
-        Me.傳真_tb.Location = New System.Drawing.Point(538, 80)
435
+        Me.傳真_tb.Location = New System.Drawing.Point(520, 80)
425 436
         Me.傳真_tb.Name = "傳真_tb"
426 437
         Me.傳真_tb.Size = New System.Drawing.Size(129, 23)
427 438
         Me.傳真_tb.TabIndex = 1050
@@ -430,7 +441,7 @@ Partial Class 供應商資料表
430 441
         '
431 442
         Me.Label18.AutoSize = True
432 443
         Me.Label18.ImeMode = System.Windows.Forms.ImeMode.NoControl
433
-        Me.Label18.Location = New System.Drawing.Point(477, 83)
444
+        Me.Label18.Location = New System.Drawing.Point(459, 83)
434 445
         Me.Label18.Name = "Label18"
435 446
         Me.Label18.Size = New System.Drawing.Size(62, 16)
436 447
         Me.Label18.TabIndex = 1049
@@ -438,7 +449,7 @@ Partial Class 供應商資料表
438 449
         '
439 450
         '手機_tb
440 451
         '
441
-        Me.手機_tb.Location = New System.Drawing.Point(346, 80)
452
+        Me.手機_tb.Location = New System.Drawing.Point(328, 80)
442 453
         Me.手機_tb.Name = "手機_tb"
443 454
         Me.手機_tb.Size = New System.Drawing.Size(129, 23)
444 455
         Me.手機_tb.TabIndex = 1052
@@ -447,7 +458,7 @@ Partial Class 供應商資料表
447 458
         '
448 459
         Me.Label19.AutoSize = True
449 460
         Me.Label19.ImeMode = System.Windows.Forms.ImeMode.NoControl
450
-        Me.Label19.Location = New System.Drawing.Point(286, 82)
461
+        Me.Label19.Location = New System.Drawing.Point(268, 82)
451 462
         Me.Label19.Name = "Label19"
452 463
         Me.Label19.Size = New System.Drawing.Size(62, 16)
453 464
         Me.Label19.TabIndex = 1051
@@ -455,7 +466,7 @@ Partial Class 供應商資料表
455 466
         '
456 467
         'POS_tb
457 468
         '
458
-        Me.POS_tb.Location = New System.Drawing.Point(1150, 105)
469
+        Me.POS_tb.Location = New System.Drawing.Point(1123, 105)
459 470
         Me.POS_tb.Name = "POS_tb"
460 471
         Me.POS_tb.Size = New System.Drawing.Size(46, 23)
461 472
         Me.POS_tb.TabIndex = 1054
@@ -464,7 +475,7 @@ Partial Class 供應商資料表
464 475
         '
465 476
         Me.Label20.AutoSize = True
466 477
         Me.Label20.ImeMode = System.Windows.Forms.ImeMode.NoControl
467
-        Me.Label20.Location = New System.Drawing.Point(1117, 108)
478
+        Me.Label20.Location = New System.Drawing.Point(1090, 108)
468 479
         Me.Label20.Name = "Label20"
469 480
         Me.Label20.Size = New System.Drawing.Size(32, 16)
470 481
         Me.Label20.TabIndex = 1053
@@ -474,16 +485,16 @@ Partial Class 供應商資料表
474 485
         '
475 486
         Me.備註1_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
476 487
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
477
-        Me.備註1_tb.Location = New System.Drawing.Point(743, 55)
488
+        Me.備註1_tb.Location = New System.Drawing.Point(716, 55)
478 489
         Me.備註1_tb.Name = "備註1_tb"
479
-        Me.備註1_tb.Size = New System.Drawing.Size(530, 23)
490
+        Me.備註1_tb.Size = New System.Drawing.Size(324, 23)
480 491
         Me.備註1_tb.TabIndex = 1056
481 492
         '
482 493
         'Label21
483 494
         '
484 495
         Me.Label21.AutoSize = True
485 496
         Me.Label21.ImeMode = System.Windows.Forms.ImeMode.NoControl
486
-        Me.Label21.Location = New System.Drawing.Point(682, 58)
497
+        Me.Label21.Location = New System.Drawing.Point(655, 58)
487 498
         Me.Label21.Name = "Label21"
488 499
         Me.Label21.Size = New System.Drawing.Size(60, 16)
489 500
         Me.Label21.TabIndex = 1055
@@ -493,16 +504,16 @@ Partial Class 供應商資料表
493 504
         '
494 505
         Me.備註2_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
495 506
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
496
-        Me.備註2_tb.Location = New System.Drawing.Point(743, 80)
507
+        Me.備註2_tb.Location = New System.Drawing.Point(716, 80)
497 508
         Me.備註2_tb.Name = "備註2_tb"
498
-        Me.備註2_tb.Size = New System.Drawing.Size(530, 23)
509
+        Me.備註2_tb.Size = New System.Drawing.Size(324, 23)
499 510
         Me.備註2_tb.TabIndex = 1058
500 511
         '
501 512
         'Label22
502 513
         '
503 514
         Me.Label22.AutoSize = True
504 515
         Me.Label22.ImeMode = System.Windows.Forms.ImeMode.NoControl
505
-        Me.Label22.Location = New System.Drawing.Point(682, 83)
516
+        Me.Label22.Location = New System.Drawing.Point(655, 83)
506 517
         Me.Label22.Name = "Label22"
507 518
         Me.Label22.Size = New System.Drawing.Size(60, 16)
508 519
         Me.Label22.TabIndex = 1057
@@ -511,7 +522,7 @@ Partial Class 供應商資料表
511 522
         '登入日期_dtp
512 523
         '
513 524
         Me.登入日期_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
514
-        Me.登入日期_dtp.Location = New System.Drawing.Point(538, 105)
525
+        Me.登入日期_dtp.Location = New System.Drawing.Point(520, 105)
515 526
         Me.登入日期_dtp.Name = "登入日期_dtp"
516 527
         Me.登入日期_dtp.Size = New System.Drawing.Size(129, 23)
517 528
         Me.登入日期_dtp.TabIndex = 1060
@@ -519,7 +530,7 @@ Partial Class 供應商資料表
519 530
         'Label23
520 531
         '
521 532
         Me.Label23.AutoSize = True
522
-        Me.Label23.Location = New System.Drawing.Point(480, 108)
533
+        Me.Label23.Location = New System.Drawing.Point(462, 108)
523 534
         Me.Label23.Name = "Label23"
524 535
         Me.Label23.Size = New System.Drawing.Size(56, 16)
525 536
         Me.Label23.TabIndex = 1059
@@ -527,7 +538,7 @@ Partial Class 供應商資料表
527 538
         '
528 539
         '結算日_nud
529 540
         '
530
-        Me.結算日_nud.Location = New System.Drawing.Point(1073, 105)
541
+        Me.結算日_nud.Location = New System.Drawing.Point(1046, 105)
531 542
         Me.結算日_nud.Maximum = New Decimal(New Integer() {31, 0, 0, 0})
532 543
         Me.結算日_nud.Name = "結算日_nud"
533 544
         Me.結算日_nud.Size = New System.Drawing.Size(40, 23)
@@ -537,7 +548,7 @@ Partial Class 供應商資料表
537 548
         'Label24
538 549
         '
539 550
         Me.Label24.AutoSize = True
540
-        Me.Label24.Location = New System.Drawing.Point(1023, 108)
551
+        Me.Label24.Location = New System.Drawing.Point(996, 108)
541 552
         Me.Label24.Name = "Label24"
542 553
         Me.Label24.Size = New System.Drawing.Size(44, 16)
543 554
         Me.Label24.TabIndex = 1062
@@ -546,7 +557,7 @@ Partial Class 供應商資料表
546 557
         'Label25
547 558
         '
548 559
         Me.Label25.AutoSize = True
549
-        Me.Label25.Location = New System.Drawing.Point(714, 108)
560
+        Me.Label25.Location = New System.Drawing.Point(687, 108)
550 561
         Me.Label25.Name = "Label25"
551 562
         Me.Label25.Size = New System.Drawing.Size(30, 16)
552 563
         Me.Label25.TabIndex = 1064
@@ -556,7 +567,7 @@ Partial Class 供應商資料表
556 567
         '
557 568
         Me.KR1_nud.DecimalPlaces = 4
558 569
         Me.KR1_nud.Increment = New Decimal(New Integer() {1, 0, 0, 262144})
559
-        Me.KR1_nud.Location = New System.Drawing.Point(743, 105)
570
+        Me.KR1_nud.Location = New System.Drawing.Point(716, 105)
560 571
         Me.KR1_nud.Maximum = New Decimal(New Integer() {31, 0, 0, 0})
561 572
         Me.KR1_nud.Name = "KR1_nud"
562 573
         Me.KR1_nud.Size = New System.Drawing.Size(68, 23)
@@ -565,7 +576,7 @@ Partial Class 供應商資料表
565 576
         'Label26
566 577
         '
567 578
         Me.Label26.AutoSize = True
568
-        Me.Label26.Location = New System.Drawing.Point(817, 108)
579
+        Me.Label26.Location = New System.Drawing.Point(790, 108)
569 580
         Me.Label26.Name = "Label26"
570 581
         Me.Label26.Size = New System.Drawing.Size(30, 16)
571 582
         Me.Label26.TabIndex = 1066
@@ -575,7 +586,7 @@ Partial Class 供應商資料表
575 586
         '
576 587
         Me.KR2_nud.DecimalPlaces = 4
577 588
         Me.KR2_nud.Increment = New Decimal(New Integer() {1, 0, 0, 262144})
578
-        Me.KR2_nud.Location = New System.Drawing.Point(846, 105)
589
+        Me.KR2_nud.Location = New System.Drawing.Point(819, 105)
579 590
         Me.KR2_nud.Maximum = New Decimal(New Integer() {31, 0, 0, 0})
580 591
         Me.KR2_nud.Name = "KR2_nud"
581 592
         Me.KR2_nud.Size = New System.Drawing.Size(68, 23)
@@ -584,7 +595,7 @@ Partial Class 供應商資料表
584 595
         'Label27
585 596
         '
586 597
         Me.Label27.AutoSize = True
587
-        Me.Label27.Location = New System.Drawing.Point(920, 108)
598
+        Me.Label27.Location = New System.Drawing.Point(893, 108)
588 599
         Me.Label27.Name = "Label27"
589 600
         Me.Label27.Size = New System.Drawing.Size(30, 16)
590 601
         Me.Label27.TabIndex = 1068
@@ -594,7 +605,7 @@ Partial Class 供應商資料表
594 605
         '
595 606
         Me.KR3_nud.DecimalPlaces = 4
596 607
         Me.KR3_nud.Increment = New Decimal(New Integer() {1, 0, 0, 262144})
597
-        Me.KR3_nud.Location = New System.Drawing.Point(949, 105)
608
+        Me.KR3_nud.Location = New System.Drawing.Point(922, 105)
598 609
         Me.KR3_nud.Maximum = New Decimal(New Integer() {31, 0, 0, 0})
599 610
         Me.KR3_nud.Name = "KR3_nud"
600 611
         Me.KR3_nud.Size = New System.Drawing.Size(68, 23)
@@ -607,7 +618,7 @@ Partial Class 供應商資料表
607 618
         Me.狀態_lb.Font = New System.Drawing.Font("微軟正黑體", 14.25!)
608 619
         Me.狀態_lb.ForeColor = System.Drawing.Color.Red
609 620
         Me.狀態_lb.ImeMode = System.Windows.Forms.ImeMode.NoControl
610
-        Me.狀態_lb.Location = New System.Drawing.Point(1284, 103)
621
+        Me.狀態_lb.Location = New System.Drawing.Point(1341, 103)
611 622
         Me.狀態_lb.Name = "狀態_lb"
612 623
         Me.狀態_lb.Size = New System.Drawing.Size(86, 24)
613 624
         Me.狀態_lb.TabIndex = 1072
@@ -618,7 +629,7 @@ Partial Class 供應商資料表
618 629
         Me.刪除_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
619 630
         Me.刪除_bt.ForeColor = System.Drawing.Color.Red
620 631
         Me.刪除_bt.ImeMode = System.Windows.Forms.ImeMode.NoControl
621
-        Me.刪除_bt.Location = New System.Drawing.Point(1436, 6)
632
+        Me.刪除_bt.Location = New System.Drawing.Point(1493, 6)
622 633
         Me.刪除_bt.Name = "刪除_bt"
623 634
         Me.刪除_bt.Size = New System.Drawing.Size(73, 72)
624 635
         Me.刪除_bt.TabIndex = 1071
@@ -630,7 +641,7 @@ Partial Class 供應商資料表
630 641
         Me.存檔_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
631 642
         Me.存檔_bt.ForeColor = System.Drawing.Color.Green
632 643
         Me.存檔_bt.ImeMode = System.Windows.Forms.ImeMode.NoControl
633
-        Me.存檔_bt.Location = New System.Drawing.Point(1360, 6)
644
+        Me.存檔_bt.Location = New System.Drawing.Point(1417, 6)
634 645
         Me.存檔_bt.Name = "存檔_bt"
635 646
         Me.存檔_bt.Size = New System.Drawing.Size(73, 72)
636 647
         Me.存檔_bt.TabIndex = 1070
@@ -642,7 +653,7 @@ Partial Class 供應商資料表
642 653
         Me.新增準備_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
643 654
         Me.新增準備_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
644 655
         Me.新增準備_bt.ImeMode = System.Windows.Forms.ImeMode.NoControl
645
-        Me.新增準備_bt.Location = New System.Drawing.Point(1284, 6)
656
+        Me.新增準備_bt.Location = New System.Drawing.Point(1341, 6)
646 657
         Me.新增準備_bt.Name = "新增準備_bt"
647 658
         Me.新增準備_bt.Size = New System.Drawing.Size(73, 72)
648 659
         Me.新增準備_bt.TabIndex = 1069
@@ -703,7 +714,7 @@ Partial Class 供應商資料表
703 714
         Me.PEC_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
704 715
         Me.PEC_cb.FormattingEnabled = True
705 716
         Me.PEC_cb.Items.AddRange(New Object() {"0", "6"})
706
-        Me.PEC_cb.Location = New System.Drawing.Point(1233, 104)
717
+        Me.PEC_cb.Location = New System.Drawing.Point(1206, 104)
707 718
         Me.PEC_cb.Name = "PEC_cb"
708 719
         Me.PEC_cb.Size = New System.Drawing.Size(40, 24)
709 720
         Me.PEC_cb.TabIndex = 1075
@@ -711,7 +722,7 @@ Partial Class 供應商資料表
711 722
         'Label28
712 723
         '
713 724
         Me.Label28.AutoSize = True
714
-        Me.Label28.Location = New System.Drawing.Point(1201, 108)
725
+        Me.Label28.Location = New System.Drawing.Point(1174, 108)
715 726
         Me.Label28.Name = "Label28"
716 727
         Me.Label28.Size = New System.Drawing.Size(30, 16)
717 728
         Me.Label28.TabIndex = 1074
@@ -722,7 +733,7 @@ Partial Class 供應商資料表
722 733
         Me.Label29.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
723 734
         Me.Label29.AutoSize = True
724 735
         Me.Label29.ImeMode = System.Windows.Forms.ImeMode.NoControl
725
-        Me.Label29.Location = New System.Drawing.Point(1289, 83)
736
+        Me.Label29.Location = New System.Drawing.Point(1346, 83)
726 737
         Me.Label29.Name = "Label29"
727 738
         Me.Label29.Size = New System.Drawing.Size(104, 16)
728 739
         Me.Label29.TabIndex = 1077
@@ -731,7 +742,7 @@ Partial Class 供應商資料表
731 742
         '查詢_tb
732 743
         '
733 744
         Me.查詢_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
734
-        Me.查詢_tb.Location = New System.Drawing.Point(1395, 80)
745
+        Me.查詢_tb.Location = New System.Drawing.Point(1452, 80)
735 746
         Me.查詢_tb.Name = "查詢_tb"
736 747
         Me.查詢_tb.Size = New System.Drawing.Size(114, 23)
737 748
         Me.查詢_tb.TabIndex = 1076
@@ -760,12 +771,117 @@ Partial Class 供應商資料表
760 771
         Me.精準查詢_ch.Text = "精準查詢"
761 772
         Me.精準查詢_ch.UseVisualStyleBackColor = True
762 773
         '
774
+        'Label30
775
+        '
776
+        Me.Label30.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
777
+        Me.Label30.AutoSize = True
778
+        Me.Label30.Location = New System.Drawing.Point(1263, 57)
779
+        Me.Label30.Name = "Label30"
780
+        Me.Label30.Size = New System.Drawing.Size(32, 16)
781
+        Me.Label30.TabIndex = 1135
782
+        Me.Label30.Text = "票期"
783
+        '
784
+        '票期_nud
785
+        '
786
+        Me.票期_nud.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
787
+        Me.票期_nud.Location = New System.Drawing.Point(1295, 54)
788
+        Me.票期_nud.Maximum = New Decimal(New Integer() {31, 0, 0, 0})
789
+        Me.票期_nud.Name = "票期_nud"
790
+        Me.票期_nud.Size = New System.Drawing.Size(40, 23)
791
+        Me.票期_nud.TabIndex = 1136
792
+        Me.票期_nud.Value = New Decimal(New Integer() {15, 0, 0, 0})
793
+        '
794
+        'Label31
795
+        '
796
+        Me.Label31.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
797
+        Me.Label31.AutoSize = True
798
+        Me.Label31.ImeMode = System.Windows.Forms.ImeMode.NoControl
799
+        Me.Label31.Location = New System.Drawing.Point(1046, 8)
800
+        Me.Label31.Name = "Label31"
801
+        Me.Label31.Size = New System.Drawing.Size(56, 16)
802
+        Me.Label31.TabIndex = 1137
803
+        Me.Label31.Text = "私人支票"
804
+        '
805
+        '私人支票_tb
806
+        '
807
+        Me.私人支票_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
808
+        Me.私人支票_tb.Location = New System.Drawing.Point(1101, 4)
809
+        Me.私人支票_tb.Name = "私人支票_tb"
810
+        Me.私人支票_tb.Size = New System.Drawing.Size(234, 23)
811
+        Me.私人支票_tb.TabIndex = 1138
812
+        '
813
+        '公司支票_tb
814
+        '
815
+        Me.公司支票_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
816
+        Me.公司支票_tb.Location = New System.Drawing.Point(1101, 29)
817
+        Me.公司支票_tb.Name = "公司支票_tb"
818
+        Me.公司支票_tb.Size = New System.Drawing.Size(234, 23)
819
+        Me.公司支票_tb.TabIndex = 1140
820
+        '
821
+        'Label32
822
+        '
823
+        Me.Label32.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
824
+        Me.Label32.AutoSize = True
825
+        Me.Label32.ImeMode = System.Windows.Forms.ImeMode.NoControl
826
+        Me.Label32.Location = New System.Drawing.Point(1046, 35)
827
+        Me.Label32.Name = "Label32"
828
+        Me.Label32.Size = New System.Drawing.Size(56, 16)
829
+        Me.Label32.TabIndex = 1139
830
+        Me.Label32.Text = "公司支票"
831
+        '
832
+        '稅金倍率_tb
833
+        '
834
+        Me.稅金倍率_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
835
+        Me.稅金倍率_tb.Location = New System.Drawing.Point(1101, 54)
836
+        Me.稅金倍率_tb.Name = "稅金倍率_tb"
837
+        Me.稅金倍率_tb.Size = New System.Drawing.Size(145, 23)
838
+        Me.稅金倍率_tb.TabIndex = 1141
839
+        '
840
+        'Label33
841
+        '
842
+        Me.Label33.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
843
+        Me.Label33.AutoSize = True
844
+        Me.Label33.ImeMode = System.Windows.Forms.ImeMode.NoControl
845
+        Me.Label33.Location = New System.Drawing.Point(1046, 57)
846
+        Me.Label33.Name = "Label33"
847
+        Me.Label33.Size = New System.Drawing.Size(56, 16)
848
+        Me.Label33.TabIndex = 1142
849
+        Me.Label33.Text = "稅金倍率"
850
+        '
851
+        '廣告費倍率_tb
852
+        '
853
+        Me.廣告費倍率_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
854
+        Me.廣告費倍率_tb.Location = New System.Drawing.Point(1101, 79)
855
+        Me.廣告費倍率_tb.Name = "廣告費倍率_tb"
856
+        Me.廣告費倍率_tb.Size = New System.Drawing.Size(145, 23)
857
+        Me.廣告費倍率_tb.TabIndex = 1143
858
+        '
859
+        'Label34
860
+        '
861
+        Me.Label34.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
862
+        Me.Label34.AutoSize = True
863
+        Me.Label34.ImeMode = System.Windows.Forms.ImeMode.NoControl
864
+        Me.Label34.Location = New System.Drawing.Point(1046, 82)
865
+        Me.Label34.Name = "Label34"
866
+        Me.Label34.Size = New System.Drawing.Size(56, 16)
867
+        Me.Label34.TabIndex = 1144
868
+        Me.Label34.Text = "廣告倍率"
869
+        '
763 870
         '供應商資料表
764 871
         '
765 872
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
766 873
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
767
-        Me.ClientSize = New System.Drawing.Size(1517, 691)
874
+        Me.ClientSize = New System.Drawing.Size(1574, 691)
768 875
         Me.ContextMenuStrip = Me.ContextMenuStrip1
876
+        Me.Controls.Add(Me.廣告費倍率_tb)
877
+        Me.Controls.Add(Me.Label34)
878
+        Me.Controls.Add(Me.稅金倍率_tb)
879
+        Me.Controls.Add(Me.公司支票_tb)
880
+        Me.Controls.Add(Me.Label32)
881
+        Me.Controls.Add(Me.私人支票_tb)
882
+        Me.Controls.Add(Me.Label31)
883
+        Me.Controls.Add(Me.票期_nud)
884
+        Me.Controls.Add(Me.Label30)
769 885
         Me.Controls.Add(Me.精準查詢_ch)
770 886
         Me.Controls.Add(Me.清空_bt)
771 887
         Me.Controls.Add(Me.Label29)
@@ -831,6 +947,7 @@ Partial Class 供應商資料表
831 947
         Me.Controls.Add(Me.Label25)
832 948
         Me.Controls.Add(Me.Label24)
833 949
         Me.Controls.Add(Me.停用_ch)
950
+        Me.Controls.Add(Me.Label33)
834 951
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
835 952
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
836 953
         Me.Name = "供應商資料表"
@@ -841,6 +958,7 @@ Partial Class 供應商資料表
841 958
         CType(Me.KR2_nud, System.ComponentModel.ISupportInitialize).EndInit()
842 959
         CType(Me.KR3_nud, System.ComponentModel.ISupportInitialize).EndInit()
843 960
         Me.ContextMenuStrip1.ResumeLayout(False)
961
+        CType(Me.票期_nud, System.ComponentModel.ISupportInitialize).EndInit()
844 962
         Me.ResumeLayout(False)
845 963
         Me.PerformLayout()
846 964
 
@@ -917,4 +1035,14 @@ Partial Class 供應商資料表
917 1035
     Friend WithEvents 查詢_tb As Windows.Forms.TextBox
918 1036
     Friend WithEvents 清空_bt As Windows.Forms.Button
919 1037
     Friend WithEvents 精準查詢_ch As Windows.Forms.CheckBox
1038
+    Friend WithEvents Label30 As Label
1039
+    Friend WithEvents 票期_nud As NumericUpDown
1040
+    Friend WithEvents Label31 As Label
1041
+    Friend WithEvents 私人支票_tb As TextBox
1042
+    Friend WithEvents 公司支票_tb As TextBox
1043
+    Friend WithEvents Label32 As Label
1044
+    Friend WithEvents 稅金倍率_tb As TextBox
1045
+    Friend WithEvents Label33 As Label
1046
+    Friend WithEvents 廣告費倍率_tb As TextBox
1047
+    Friend WithEvents Label34 As Label
920 1048
 End Class

+ 10
- 4
YD-ERP-SYS/採購系統管理/供應商資料表.vb Прегледај датотеку

@@ -8,7 +8,9 @@ Public Class 供應商資料表
8 8
         供應商_dgv.AllowUserToAddRows = False
9 9
 
10 10
         SQL_供應商資料表_清單()
11
-        da.Fill(ds1) : 供應商_dgv.DataSource = ds1.Tables(0) : conn.Close()
11
+        da.Fill(ds1)
12
+        供應商_dgv.DataSource = ds1.Tables(0)
13
+        conn.Close()
12 14
 
13 15
         供應商_dgv.Columns("編號").FillWeight = 20 : 供應商_dgv.Columns("簡稱").FillWeight = 35 : 供應商_dgv.Columns("供應商").FillWeight = 50
14 16
         供應商_dgv.Columns("公司地址").FillWeight = 100 : 供應商_dgv.Columns("電話1").FillWeight = 35 : 供應商_dgv.Columns("電話2").FillWeight = 35
@@ -18,7 +20,8 @@ Public Class 供應商資料表
18 20
         供應商_dgv.Columns("POS").Visible = False : 供應商_dgv.Columns("備註1").Visible = False : 供應商_dgv.Columns("備註2").Visible = False
19 21
         供應商_dgv.Columns("登入日期").Visible = False : 供應商_dgv.Columns("結算日").Visible = False : 供應商_dgv.Columns("KR1").Visible = False
20 22
         供應商_dgv.Columns("KR2").Visible = False : 供應商_dgv.Columns("KR3").Visible = False : 供應商_dgv.Columns("PEC").Visible = False
21
-        供應商_dgv.Columns("停用").FillWeight = 20
23
+        供應商_dgv.Columns("停用").FillWeight = 20 : 供應商_dgv.Columns("票期").Visible = False : 供應商_dgv.Columns("支票_私人").Visible = False
24
+        供應商_dgv.Columns("支票_公司").Visible = False : 供應商_dgv.Columns("稅金倍率").Visible = False : 供應商_dgv.Columns("廣告費倍率").Visible = False
22 25
         資料筆數_tb.Text = 供應商_dgv.Rows.Count
23 26
     End Sub
24 27
     Private Sub 地區碼_下拉表單資料載入()
@@ -63,7 +66,9 @@ Public Class 供應商資料表
63 66
                 登入日期_dtp.Value = 供應商_dgv("登入日期", e.RowIndex).Value : 結算日_nud.Value = 供應商_dgv("結算日", e.RowIndex).Value
64 67
                 KR1_nud.Value = 供應商_dgv("KR1", e.RowIndex).Value : KR2_nud.Value = 供應商_dgv("KR2", e.RowIndex).Value
65 68
                 KR3_nud.Value = 供應商_dgv("KR3", e.RowIndex).Value : PEC_cb.Text = 供應商_dgv("PEC", e.RowIndex).Value.ToString
66
-                停用_ch.Checked = 供應商_dgv("停用", e.RowIndex).Value
69
+                停用_ch.Checked = 供應商_dgv("停用", e.RowIndex).Value : 票期_nud.Value = 供應商_dgv("票期", e.RowIndex).Value
70
+                私人支票_tb.Text = 供應商_dgv("支票_私人", e.RowIndex).Value.ToString : 公司支票_tb.Text = 供應商_dgv("支票_公司", e.RowIndex).Value.ToString
71
+                稅金倍率_tb.Text = 供應商_dgv("稅金倍率", e.RowIndex).Value.ToString : 廣告費倍率_tb.Text = 供應商_dgv("廣告費倍率", e.RowIndex).Value.ToString
67 72
             End If
68 73
         End If
69 74
     End Sub
@@ -93,7 +98,7 @@ Public Class 供應商資料表
93 98
             工廠地址_tb.Text = "" : 聯繫人1_tb.Text = "" : 聯繫人2_tb.Text = "" : 手機_tb.Text = "" : 傳真_tb.Text = ""
94 99
             POS_tb.Text = "" : 備註1_tb.Text = "" : 備註2_tb.Text = "" : 登入日期_dtp.Value = Today() : 結算日_nud.Value = 25
95 100
             KR1_nud.Value = 0 : KR2_nud.Value = 0 : KR3_nud.Value = 0 : PEC_cb.Text = "0" : 停用_ch.Checked = False
96
-            查詢_tb.Text = ""
101
+            查詢_tb.Text = "" : 票期_nud.Value = 15 : 私人支票_tb.Text = "" : 公司支票_tb.Text = "" : 稅金倍率_tb.Text = "" : 廣告費倍率_tb.Text = ""
97 102
             資料新增判斷 = True '--------------------目前的編輯狀態
98 103
             狀態_lb.Text = "編輯狀態"
99 104
             供應商_dgv.Enabled = False : 查詢_tb.Enabled = False '--------------------關閉DGV與關鍵字查詢控件的點選控制功能
@@ -164,4 +169,5 @@ Public Class 供應商資料表
164 169
     Private Sub 刪除ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 刪除ToolStripMenuItem.Click
165 170
         刪除_bt.PerformClick()
166 171
     End Sub
172
+
167 173
 End Class

+ 291
- 0
YD-ERP-SYS/財務系統管理/匯入EXCEL.Designer.vb Прегледај датотеку

@@ -0,0 +1,291 @@
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
2
+Partial Class 匯入EXCEL
3
+    Inherits System.Windows.Forms.Form
4
+
5
+    'Form 覆寫 Dispose 以清除元件清單。
6
+    <System.Diagnostics.DebuggerNonUserCode()>
7
+    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
8
+        Try
9
+            If disposing AndAlso components IsNot Nothing Then
10
+                components.Dispose()
11
+            End If
12
+        Finally
13
+            MyBase.Dispose(disposing)
14
+        End Try
15
+    End Sub
16
+
17
+    '為 Windows Form 設計工具的必要項
18
+    Private components As System.ComponentModel.IContainer
19
+
20
+    '注意: 以下為 Windows Form 設計工具所需的程序
21
+    '可以使用 Windows Form 設計工具進行修改。
22
+    '請勿使用程式碼編輯器進行修改。
23
+    <System.Diagnostics.DebuggerStepThrough()>
24
+    Private Sub InitializeComponent()
25
+        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle9 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
+        Dim DataGridViewCellStyle10 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
+        Me.薪資匯入EXCEL_dgv = New System.Windows.Forms.DataGridView()
31
+        Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog()
32
+        Me.選擇_TreeView = New System.Windows.Forms.TreeView()
33
+        Me.紀錄Sheet年月_LBox = New System.Windows.Forms.ListBox()
34
+        Me.匯入EXCEL_bt = New System.Windows.Forms.Button()
35
+        Me.紀錄選擇月份_LBox = New System.Windows.Forms.ListBox()
36
+        Me.流水號_tb = New System.Windows.Forms.TextBox()
37
+        Me.人事流水號_tb = New System.Windows.Forms.TextBox()
38
+        Me.身分證_tb = New System.Windows.Forms.TextBox()
39
+        Me.Label5 = New System.Windows.Forms.Label()
40
+        Me.薪資帳號_tb = New System.Windows.Forms.TextBox()
41
+        Me.Label6 = New System.Windows.Forms.Label()
42
+        Me.Label11 = New System.Windows.Forms.Label()
43
+        Me.全選_bt = New System.Windows.Forms.Button()
44
+        Me.取消全選_bt = New System.Windows.Forms.Button()
45
+        Me.匯入Excel_PBar = New System.Windows.Forms.ProgressBar()
46
+        Me.匯入進度_Label = New System.Windows.Forms.Label()
47
+        CType(Me.薪資匯入EXCEL_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
48
+        Me.SuspendLayout()
49
+        '
50
+        '薪資匯入EXCEL_dgv
51
+        '
52
+        DataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
53
+        DataGridViewCellStyle6.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
54
+        Me.薪資匯入EXCEL_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle6
55
+        Me.薪資匯入EXCEL_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
56
+        DataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
57
+        DataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control
58
+        DataGridViewCellStyle7.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
59
+        DataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText
60
+        DataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight
61
+        DataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText
62
+        DataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
63
+        Me.薪資匯入EXCEL_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle7
64
+        Me.薪資匯入EXCEL_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
65
+        DataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
66
+        DataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Window
67
+        DataGridViewCellStyle8.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
68
+        DataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.ControlText
69
+        DataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight
70
+        DataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText
71
+        DataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
72
+        Me.薪資匯入EXCEL_dgv.DefaultCellStyle = DataGridViewCellStyle8
73
+        Me.薪資匯入EXCEL_dgv.Location = New System.Drawing.Point(130, 12)
74
+        Me.薪資匯入EXCEL_dgv.Margin = New System.Windows.Forms.Padding(2)
75
+        Me.薪資匯入EXCEL_dgv.Name = "薪資匯入EXCEL_dgv"
76
+        Me.薪資匯入EXCEL_dgv.ReadOnly = True
77
+        DataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
78
+        DataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control
79
+        DataGridViewCellStyle9.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
80
+        DataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText
81
+        DataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight
82
+        DataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText
83
+        DataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
84
+        Me.薪資匯入EXCEL_dgv.RowHeadersDefaultCellStyle = DataGridViewCellStyle9
85
+        Me.薪資匯入EXCEL_dgv.RowHeadersWidth = 5
86
+        DataGridViewCellStyle10.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
87
+        Me.薪資匯入EXCEL_dgv.RowsDefaultCellStyle = DataGridViewCellStyle10
88
+        Me.薪資匯入EXCEL_dgv.RowTemplate.Height = 27
89
+        Me.薪資匯入EXCEL_dgv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect
90
+        Me.薪資匯入EXCEL_dgv.Size = New System.Drawing.Size(1229, 656)
91
+        Me.薪資匯入EXCEL_dgv.TabIndex = 15
92
+        '
93
+        'OpenFileDialog1
94
+        '
95
+        Me.OpenFileDialog1.FileName = "OpenFileDialog1"
96
+        '
97
+        '選擇_TreeView
98
+        '
99
+        Me.選擇_TreeView.CheckBoxes = True
100
+        Me.選擇_TreeView.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
101
+        Me.選擇_TreeView.Indent = 22
102
+        Me.選擇_TreeView.ItemHeight = 18
103
+        Me.選擇_TreeView.Location = New System.Drawing.Point(12, 12)
104
+        Me.選擇_TreeView.Name = "選擇_TreeView"
105
+        Me.選擇_TreeView.Size = New System.Drawing.Size(110, 377)
106
+        Me.選擇_TreeView.TabIndex = 17
107
+        '
108
+        '紀錄Sheet年月_LBox
109
+        '
110
+        Me.紀錄Sheet年月_LBox.FormattingEnabled = True
111
+        Me.紀錄Sheet年月_LBox.ItemHeight = 12
112
+        Me.紀錄Sheet年月_LBox.Location = New System.Drawing.Point(138, 615)
113
+        Me.紀錄Sheet年月_LBox.Name = "紀錄Sheet年月_LBox"
114
+        Me.紀錄Sheet年月_LBox.Size = New System.Drawing.Size(100, 52)
115
+        Me.紀錄Sheet年月_LBox.TabIndex = 19
116
+        Me.紀錄Sheet年月_LBox.Visible = False
117
+        '
118
+        '匯入EXCEL_bt
119
+        '
120
+        Me.匯入EXCEL_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
121
+        Me.匯入EXCEL_bt.Location = New System.Drawing.Point(11, 488)
122
+        Me.匯入EXCEL_bt.Margin = New System.Windows.Forms.Padding(2)
123
+        Me.匯入EXCEL_bt.Name = "匯入EXCEL_bt"
124
+        Me.匯入EXCEL_bt.Size = New System.Drawing.Size(110, 180)
125
+        Me.匯入EXCEL_bt.TabIndex = 14
126
+        Me.匯入EXCEL_bt.Text = "匯入EXCEL"
127
+        Me.匯入EXCEL_bt.UseVisualStyleBackColor = True
128
+        '
129
+        '紀錄選擇月份_LBox
130
+        '
131
+        Me.紀錄選擇月份_LBox.FormattingEnabled = True
132
+        Me.紀錄選擇月份_LBox.ItemHeight = 12
133
+        Me.紀錄選擇月份_LBox.Location = New System.Drawing.Point(244, 615)
134
+        Me.紀錄選擇月份_LBox.Name = "紀錄選擇月份_LBox"
135
+        Me.紀錄選擇月份_LBox.Size = New System.Drawing.Size(100, 52)
136
+        Me.紀錄選擇月份_LBox.TabIndex = 21
137
+        Me.紀錄選擇月份_LBox.Visible = False
138
+        '
139
+        '流水號_tb
140
+        '
141
+        Me.流水號_tb.Location = New System.Drawing.Point(138, 586)
142
+        Me.流水號_tb.Name = "流水號_tb"
143
+        Me.流水號_tb.Size = New System.Drawing.Size(100, 22)
144
+        Me.流水號_tb.TabIndex = 1045
145
+        Me.流水號_tb.Visible = False
146
+        '
147
+        '人事流水號_tb
148
+        '
149
+        Me.人事流水號_tb.Location = New System.Drawing.Point(423, 583)
150
+        Me.人事流水號_tb.Name = "人事流水號_tb"
151
+        Me.人事流水號_tb.ReadOnly = True
152
+        Me.人事流水號_tb.Size = New System.Drawing.Size(100, 22)
153
+        Me.人事流水號_tb.TabIndex = 1422
154
+        Me.人事流水號_tb.Visible = False
155
+        '
156
+        '身分證_tb
157
+        '
158
+        Me.身分證_tb.Location = New System.Drawing.Point(423, 639)
159
+        Me.身分證_tb.Name = "身分證_tb"
160
+        Me.身分證_tb.ReadOnly = True
161
+        Me.身分證_tb.Size = New System.Drawing.Size(100, 22)
162
+        Me.身分證_tb.TabIndex = 1424
163
+        Me.身分證_tb.Visible = False
164
+        '
165
+        'Label5
166
+        '
167
+        Me.Label5.AutoSize = True
168
+        Me.Label5.Location = New System.Drawing.Point(364, 643)
169
+        Me.Label5.Name = "Label5"
170
+        Me.Label5.Size = New System.Drawing.Size(53, 12)
171
+        Me.Label5.TabIndex = 1423
172
+        Me.Label5.Text = "身分證號"
173
+        Me.Label5.Visible = False
174
+        '
175
+        '薪資帳號_tb
176
+        '
177
+        Me.薪資帳號_tb.Location = New System.Drawing.Point(423, 611)
178
+        Me.薪資帳號_tb.Name = "薪資帳號_tb"
179
+        Me.薪資帳號_tb.ReadOnly = True
180
+        Me.薪資帳號_tb.Size = New System.Drawing.Size(100, 22)
181
+        Me.薪資帳號_tb.TabIndex = 1426
182
+        Me.薪資帳號_tb.Visible = False
183
+        '
184
+        'Label6
185
+        '
186
+        Me.Label6.AutoSize = True
187
+        Me.Label6.Location = New System.Drawing.Point(392, 615)
188
+        Me.Label6.Name = "Label6"
189
+        Me.Label6.Size = New System.Drawing.Size(29, 12)
190
+        Me.Label6.TabIndex = 1425
191
+        Me.Label6.Text = "帳號"
192
+        Me.Label6.Visible = False
193
+        '
194
+        'Label11
195
+        '
196
+        Me.Label11.AutoSize = True
197
+        Me.Label11.Location = New System.Drawing.Point(356, 589)
198
+        Me.Label11.Name = "Label11"
199
+        Me.Label11.Size = New System.Drawing.Size(65, 12)
200
+        Me.Label11.TabIndex = 1427
201
+        Me.Label11.Text = "人事流水號"
202
+        Me.Label11.Visible = False
203
+        '
204
+        '全選_bt
205
+        '
206
+        Me.全選_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
207
+        Me.全選_bt.Location = New System.Drawing.Point(11, 394)
208
+        Me.全選_bt.Margin = New System.Windows.Forms.Padding(2)
209
+        Me.全選_bt.Name = "全選_bt"
210
+        Me.全選_bt.Size = New System.Drawing.Size(110, 43)
211
+        Me.全選_bt.TabIndex = 1428
212
+        Me.全選_bt.Text = "全選"
213
+        Me.全選_bt.UseVisualStyleBackColor = True
214
+        '
215
+        '取消全選_bt
216
+        '
217
+        Me.取消全選_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
218
+        Me.取消全選_bt.Location = New System.Drawing.Point(11, 441)
219
+        Me.取消全選_bt.Margin = New System.Windows.Forms.Padding(2)
220
+        Me.取消全選_bt.Name = "取消全選_bt"
221
+        Me.取消全選_bt.Size = New System.Drawing.Size(110, 43)
222
+        Me.取消全選_bt.TabIndex = 1429
223
+        Me.取消全選_bt.Text = "取消全選"
224
+        Me.取消全選_bt.UseVisualStyleBackColor = True
225
+        '
226
+        '匯入Excel_PBar
227
+        '
228
+        Me.匯入Excel_PBar.Location = New System.Drawing.Point(130, 673)
229
+        Me.匯入Excel_PBar.Name = "匯入Excel_PBar"
230
+        Me.匯入Excel_PBar.Size = New System.Drawing.Size(1229, 23)
231
+        Me.匯入Excel_PBar.Step = 1
232
+        Me.匯入Excel_PBar.TabIndex = 1430
233
+        '
234
+        '匯入進度_Label
235
+        '
236
+        Me.匯入進度_Label.AutoSize = True
237
+        Me.匯入進度_Label.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
238
+        Me.匯入進度_Label.ForeColor = System.Drawing.SystemColors.HotTrack
239
+        Me.匯入進度_Label.Location = New System.Drawing.Point(12, 676)
240
+        Me.匯入進度_Label.Name = "匯入進度_Label"
241
+        Me.匯入進度_Label.Size = New System.Drawing.Size(108, 17)
242
+        Me.匯入進度_Label.TabIndex = 1431
243
+        Me.匯入進度_Label.Text = "EXCEL 匯入進度 :"
244
+        '
245
+        '匯入EXCEL
246
+        '
247
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!)
248
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
249
+        Me.ClientSize = New System.Drawing.Size(1377, 704)
250
+        Me.Controls.Add(Me.匯入進度_Label)
251
+        Me.Controls.Add(Me.匯入Excel_PBar)
252
+        Me.Controls.Add(Me.紀錄選擇月份_LBox)
253
+        Me.Controls.Add(Me.紀錄Sheet年月_LBox)
254
+        Me.Controls.Add(Me.取消全選_bt)
255
+        Me.Controls.Add(Me.全選_bt)
256
+        Me.Controls.Add(Me.Label11)
257
+        Me.Controls.Add(Me.薪資帳號_tb)
258
+        Me.Controls.Add(Me.Label6)
259
+        Me.Controls.Add(Me.身分證_tb)
260
+        Me.Controls.Add(Me.Label5)
261
+        Me.Controls.Add(Me.人事流水號_tb)
262
+        Me.Controls.Add(Me.流水號_tb)
263
+        Me.Controls.Add(Me.選擇_TreeView)
264
+        Me.Controls.Add(Me.匯入EXCEL_bt)
265
+        Me.Controls.Add(Me.薪資匯入EXCEL_dgv)
266
+        Me.Name = "匯入EXCEL"
267
+        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
268
+        Me.Text = "匯入EXCEL"
269
+        CType(Me.薪資匯入EXCEL_dgv, System.ComponentModel.ISupportInitialize).EndInit()
270
+        Me.ResumeLayout(False)
271
+        Me.PerformLayout()
272
+
273
+    End Sub
274
+    Friend WithEvents 薪資匯入EXCEL_dgv As DataGridView
275
+    Friend WithEvents OpenFileDialog1 As OpenFileDialog
276
+    Friend WithEvents 選擇_TreeView As TreeView
277
+    Friend WithEvents 紀錄Sheet年月_LBox As ListBox
278
+    Friend WithEvents 匯入EXCEL_bt As Button
279
+    Friend WithEvents 紀錄選擇月份_LBox As ListBox
280
+    Friend WithEvents 流水號_tb As TextBox
281
+    Friend WithEvents 人事流水號_tb As TextBox
282
+    Friend WithEvents 身分證_tb As TextBox
283
+    Friend WithEvents Label5 As Label
284
+    Friend WithEvents 薪資帳號_tb As TextBox
285
+    Friend WithEvents Label6 As Label
286
+    Friend WithEvents Label11 As Label
287
+    Friend WithEvents 全選_bt As Button
288
+    Friend WithEvents 取消全選_bt As Button
289
+    Friend WithEvents 匯入Excel_PBar As ProgressBar
290
+    Friend WithEvents 匯入進度_Label As Label
291
+End Class

+ 123
- 0
YD-ERP-SYS/財務系統管理/匯入EXCEL.resx Прегледај датотеку

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

+ 299
- 0
YD-ERP-SYS/財務系統管理/匯入EXCEL.vb Прегледај датотеку

@@ -0,0 +1,299 @@
1
+
2
+Imports Excel = Microsoft.Office.Interop.Excel
3
+Public Class 匯入EXCEL
4
+    Dim app As Excel.Application
5
+    Dim book As Excel.Workbook
6
+    Dim sheet As Excel.Worksheet
7
+    Dim range As Excel.Range
8
+    Dim dtable As DataTable = New DataTable()
9
+    Dim OpenFileDialog As New OpenFileDialog
10
+    Dim ii As Integer = 1 : Dim 全選_index As Integer = 1 : Dim 取消全選_index As Integer = 1
11
+    Dim 首次開啟 As Boolean = False
12
+    Dim EDR As Integer = 0 : Dim ESTR As String : Dim EDR1 As Integer = 0
13
+
14
+    Private Sub 確認選擇月份()
15
+        紀錄Sheet年月_LBox.Items.Clear() : 紀錄選擇月份_LBox.Items.Clear()
16
+        For Each E_node As TreeNode In 選擇_TreeView.Nodes
17
+            If E_node.Checked = True Then
18
+                紀錄Sheet年月_LBox.Items.Add(E_node.Text)
19
+                紀錄選擇月份_LBox.Items.Add(ii)
20
+            End If
21
+            If E_node.Nodes.Count > 0 Then
22
+                SelCheckNode(E_node)
23
+            End If
24
+            ii = ii + 1
25
+        Next
26
+        ii = 1
27
+    End Sub
28
+    Private Sub SelCheckNode(ByVal Val_node As TreeNode)
29
+        For Each E_node As TreeNode In Val_node.Nodes
30
+            If E_node.Checked = True Then
31
+                紀錄Sheet年月_LBox.Items.Add(E_node.Text)
32
+                紀錄選擇月份_LBox.Items.Add(ii)
33
+            End If
34
+            If E_node.Nodes.Count > 0 Then
35
+                SelCheckNode(E_node)
36
+            End If
37
+            ii = ii + 1
38
+        Next
39
+    End Sub
40
+    Private Sub 匯入EXCEL_人事資料讀取(ByVal NoColumns As Integer)
41
+        ConnOpen() : SQL1 = "SELECT 流水號, 身分證, 舊編, 薪資帳號 FROM 人事資料表 WHERE (姓名 = N'" & Me.薪資匯入EXCEL_dgv(7, NoColumns).Value.ToString & "')"
42
+        CmdSet_For_dr()
43
+        dr.Read()
44
+        If Me.薪資匯入EXCEL_dgv(7, NoColumns).Value.ToString <> Nothing And dr.HasRows = False Then
45
+            人事流水號_tb.Text = ""
46
+            MessageBox.Show(Me.薪資匯入EXCEL_dgv(7, NoColumns).Value.ToString & " ,此人員不在人事資料中 !!!" + vbCrLf + "請追加人事資料", "重要訊息", MessageBoxButtons.OK, MessageBoxIcon.Warning)
47
+        ElseIf dr.HasRows = True Then
48
+            人事流水號_tb.Text = dr("流水號").ToString()
49
+        Else
50
+            人事流水號_tb.Text = ""
51
+        End If
52
+        If dr.HasRows = False Then
53
+            身分證_tb.Text = ""
54
+        Else
55
+            身分證_tb.Text = dr("身分證").ToString()
56
+        End If
57
+        If dr.HasRows = False Then
58
+            薪資帳號_tb.Text = ""
59
+        Else
60
+            薪資帳號_tb.Text = dr("薪資帳號").ToString()
61
+        End If
62
+        conn.Close()
63
+    End Sub
64
+    Private Sub 匯入_SQL_薪資轉帳表()
65
+        Dim 薪資轉帳資料存在判斷 As Boolean
66
+        匯入Excel_PBar.Maximum = 薪資匯入EXCEL_dgv.Rows.Count - 1
67
+        For k As Integer = 0 To 薪資匯入EXCEL_dgv.Rows.Count - 1 '--------------------自動取得DGV 欄位數
68
+            匯入EXCEL_人事資料讀取(k) ''--------------------由人事資料表讀出 (人事流水號, 身分證, 舊編, 薪資帳號)
69
+            薪資轉帳資料存在判斷 = 薪資轉帳表_資料重複判斷(k)
70
+            If 薪資轉帳資料存在判斷 = True Then
71
+                SQL_薪資轉帳表_流水號_最後一筆資料() '--------------------自動取得新流水號
72
+                If dr.Read() Then : EDR = Double.Parse(Strings.Right(dr("流水號").ToString, 9)) : Else : EDR = 0 : End If
73
+                conn.Close() : EDR += 1
74
+                If EDR < 10 Then : ESTR = "M" & "00000000" & EDR
75
+                ElseIf EDR > 9 And EDR < 100 Then : ESTR = "M" & "0000000" & EDR
76
+                ElseIf EDR > 99 And EDR < 1000 Then : ESTR = "M" & "000000" & EDR
77
+                ElseIf EDR > 999 And EDR < 10000 Then : ESTR = "M" & "00000" & EDR
78
+                ElseIf EDR > 9999 And EDR < 100000 Then : ESTR = "M" & "0000" & EDR
79
+                ElseIf EDR > 99999 And EDR < 100000 Then : ESTR = "M" & "000" & EDR
80
+                ElseIf EDR > 999999 And EDR < 1000000 Then : ESTR = "M" & "00" & EDR
81
+                ElseIf EDR > 9999999 And EDR < 10000000 Then : ESTR = "M" & "0" & EDR
82
+                ElseIf EDR > 99999999 Then : ESTR = "M" & EDR
83
+                End If : 流水號_tb.Text = ESTR
84
+                SQL_薪資轉帳表_匯入EXCEL_新增(k) '--------------------薪資轉帳表中寫入一筆資料
85
+            Else
86
+                MessageBox.Show(薪資匯入EXCEL_dgv(7, k).Value.ToString & ",此人員" & 薪資匯入EXCEL_dgv(8, k).Value.ToString & "薪資資料已存在", "匯入訊息", MessageBoxButtons.OK, MessageBoxIcon.Information)
87
+            End If
88
+            If 匯入Excel_PBar.Value < 匯入Excel_PBar.Maximum Then : 匯入Excel_PBar.Value += 匯入Excel_PBar.Step : End If
89
+        Next
90
+    End Sub
91
+    Private Function 薪資轉帳表_資料重複判斷(ByVal NoColumns As Integer) As Boolean
92
+        Dim Val_return As Boolean
93
+        ConnOpen()
94
+        SQL1 = "SELECT      薪資轉帳表.流水號, 人事資料表.姓名, 薪資轉帳表.結算日期, 薪資轉帳表.人事資料流水號
95
+                FROM        薪資轉帳表  LEFT OUTER JOIN
96
+                            人事資料表 ON 薪資轉帳表.人事資料流水號 = 人事資料表.流水號
97
+                WHERE      (薪資轉帳表.結算日期 NOT LIKE '')  
98
+                           AND (薪資轉帳表.結算日期 LIKE '" & 薪資匯入EXCEL_dgv(8, NoColumns).Value.ToString & "%" & "')
99
+                           AND (薪資轉帳表.人事資料流水號 LIKE '" & 人事流水號_tb.Text & "')
100
+               ORDER BY    薪資轉帳表.流水號"
101
+        'AND (薪資轉帳表.結算日期 LIKE '" & Format(匯入EXCEL_dgv(8, NoColumns + 1).Value.ToString, "yyyy/MM/dd") & "%" & "')
102
+        CmdSet_For_dr()
103
+        dr.Read()
104
+        If dr.HasRows = False Then
105
+            Val_return = True
106
+        ElseIf dr.HasRows = True Then
107
+            Val_return = False
108
+        End If
109
+        conn.Close()
110
+        Return Val_return
111
+    End Function
112
+
113
+    Private Sub 匯入EXCEL_Load(sender As Object, e As EventArgs) Handles MyBase.Load
114
+        匯入EXCEL_bt.Enabled = True
115
+        薪資匯入EXCEL_dgv.DataSource = Nothing
116
+        薪資匯入EXCEL_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
117
+        薪資匯入EXCEL_dgv.ColumnHeadersHeight = 40
118
+        薪資匯入EXCEL_dgv.AllowUserToAddRows = False
119
+        匯入Excel_PBar.Maximum = 100 : 匯入Excel_PBar.Minimum = 0 : 匯入Excel_PBar.Value = 0
120
+
121
+        OpenFileDialog1.FileName = ""
122
+        OpenFileDialog1.InitialDirectory = My.Computer.FileSystem.SpecialDirectories.Desktop
123
+
124
+        If (OpenFileDialog1.ShowDialog(Me) = System.Windows.Forms.DialogResult.OK) Then
125
+            Dim FileName As String = OpenFileDialog1.FileName
126
+
127
+            '在程式開始執行路徑取得 .xlsx
128
+            app = New Excel.Application()
129
+            app.DisplayAlerts = True
130
+            app.Visible = False
131
+            book = app.Workbooks.Open(FileName)
132
+            sheet = book.Sheets(2)
133
+            range = sheet.Cells(20, 10)
134
+            sheet.Activate()
135
+
136
+            Dim sh() As String
137
+            Dim i As Integer
138
+            i = -1
139
+            Dim Val_sheet As Excel.Worksheet
140
+            選擇_TreeView.Nodes.Clear()
141
+            For Each Val_sheet In book.Worksheets
142
+                '在這您還可以加入您的需要,例如s1.name的名子有那些字再計算,本例是計算所有的
143
+                i = i + 1
144
+                ReDim Preserve sh(i)
145
+                sh(i) = Val_sheet.Name
146
+                選擇_TreeView.Nodes.Add(sh(i))
147
+            Next
148
+            NAR(sheet) '關閉 Excel 工作表  
149
+            book.Close(False)
150
+            NAR(book) '關閉 Excel 工作簿  
151
+            app.Quit() '關閉 Excel 
152
+            NAR(app) ''關閉 Excel 應用程式 
153
+        End If
154
+    End Sub
155
+    Private Sub 匯入EXCEL_Closed(sender As Object, e As EventArgs) Handles MyBase.Closed
156
+        薪資匯入EXCEL_dgv.DataSource = Nothing : dtable.Clear()
157
+    End Sub
158
+    Private Sub NAR(ByVal o As Object)
159
+        Try
160
+            System.Runtime.InteropServices.Marshal.ReleaseComObject(o)
161
+        Catch
162
+        Finally
163
+            o = Nothing
164
+        End Try
165
+    End Sub
166
+    Private Sub 匯入EXCEL_bt_Click(sender As Object, e As EventArgs) Handles 匯入EXCEL_bt.Click
167
+        確認選擇月份()
168
+        dtable.Clear()
169
+        薪資匯入EXCEL_dgv.Columns.Clear()
170
+        If 首次開啟 = False Then
171
+            dtable.Clear()
172
+            薪資匯入EXCEL_dgv.Columns.Clear()
173
+            dtable.Columns.Add("編號", System.Type.GetType("System.Int32"))
174
+            dtable.Columns.Add("帳號", System.Type.GetType("System.String"))
175
+            dtable.Columns.Add("身份證字號", System.Type.GetType("System.String"))
176
+            dtable.Columns.Add("獎金", System.Type.GetType("System.Int32"))
177
+            dtable.Columns.Add("薪資", System.Type.GetType("System.Int32"))
178
+            dtable.Columns.Add("領現", System.Type.GetType("System.Int32"))
179
+            dtable.Columns.Add("合計", System.Type.GetType("System.Int32"))
180
+            dtable.Columns.Add("姓名", System.Type.GetType("System.String"))
181
+            dtable.Columns.Add("結算日期", System.Type.GetType("System.String"))
182
+            dtable.Columns.Add("給付方式", System.Type.GetType("System.String"))
183
+        End If
184
+        '   在程式開始執行路徑取得 .xlsx
185
+        Dim FileName As String = OpenFileDialog1.FileName
186
+        app = New Excel.Application()
187
+        app = CreateObject("Excel.Application")
188
+        app.DisplayAlerts = False
189
+        app.Visible = True
190
+        book = app.Workbooks.Open(FileName)
191
+
192
+        Dim dtrow As DataRow
193
+        Dim j As Integer = 0
194
+        For Each Items As Integer In 紀錄選擇月份_LBox.Items
195
+            sheet = book.Sheets(Items)
196
+            sheet.Activate()
197
+            Dim rowNo As Int32 = 4
198
+            Do
199
+                If sheet.Cells(rowNo, 1).Value = Nothing Then
200
+                    Do
201
+                        If sheet.Cells(rowNo + 1, 7).Value = Nothing Then
202
+                            Exit Do
203
+                        Else
204
+                            dtrow = dtable.NewRow()
205
+                            dtrow("姓名") = sheet.Cells(rowNo + 1, 7).Value.ToString
206
+                            If sheet.Cells(rowNo + 1, 6).Value <> Nothing Then
207
+                                dtrow("領現") = sheet.Cells(rowNo + 1, 6).Value
208
+                            Else
209
+                                dtrow("領現") = 0
210
+                            End If
211
+                            Dim str_a As String = (191100 + 紀錄Sheet年月_LBox.Items(j)).ToString
212
+                            dtrow("結算日期") = str_a.Substring(0, 4) & "/" & str_a.Substring(4, 2) & "/25"
213
+                            dtrow("給付方式") = "領現"
214
+                            dtable.Rows.Add(dtrow)
215
+                            rowNo = rowNo + 1
216
+                        End If
217
+                    Loop
218
+                    Exit Do
219
+                Else
220
+                    dtrow = dtable.NewRow()
221
+                    dtrow("編號") = sheet.Cells(rowNo, 1).Value
222
+                    dtrow("帳號") = sheet.Cells(rowNo, 2).Value.ToString
223
+                    dtrow("身份證字號") = sheet.Cells(rowNo, 3).Value.ToString
224
+                    dtrow("姓名") = sheet.Cells(rowNo, 7).Value.ToString
225
+                    If sheet.Cells(rowNo, 4).Value <> Nothing Then
226
+                        dtrow("獎金") = sheet.Cells(rowNo, 4).Value
227
+                    Else
228
+                        dtrow("獎金") = 0
229
+                    End If
230
+                    If sheet.Cells(rowNo, 5).Value <> Nothing Then
231
+                        dtrow("薪資") = sheet.Cells(rowNo, 5).Value
232
+                    Else
233
+                        dtrow("薪資") = 0
234
+                    End If
235
+                    If sheet.Cells(rowNo, 6).Value <> Nothing Then
236
+                        dtrow("合計") = sheet.Cells(rowNo, 6).Value
237
+                    Else
238
+                        dtrow("合計") = 0
239
+                    End If
240
+
241
+                    Dim str_a As String = (191100 + 紀錄Sheet年月_LBox.Items(j)).ToString
242
+                    dtrow("結算日期") = str_a.Substring(0, 4) & "/" & str_a.Substring(4, 2) & "/25"
243
+                    dtrow("給付方式") = "帳號匯款"
244
+                    dtable.Rows.Add(dtrow)
245
+                    rowNo = rowNo + 1
246
+                End If
247
+            Loop
248
+            j = j + 1
249
+            dtable.AcceptChanges()
250
+        Next
251
+        首次開啟 = True
252
+        薪資匯入EXCEL_dgv.DataSource = dtable
253
+        匯入_SQL_薪資轉帳表()
254
+        NAR(sheet) '關閉 Excel 工作表  
255
+        book.Close(False)
256
+        NAR(book) '關閉 Excel 工作簿  
257
+        app.Quit() '關閉 Excel 
258
+        NAR(app) ''關閉 Excel 應用程式 
259
+        MessageBox.Show("匯入完成 !!!", "匯入訊息", MessageBoxButtons.OK, MessageBoxIcon.Information)
260
+        匯入EXCEL_bt.Enabled = False
261
+        Me.Close()
262
+    End Sub
263
+    Private Sub 全選_bt_Click(sender As Object, e As EventArgs) Handles 全選_bt.Click
264
+        For Each E_node As TreeNode In 選擇_TreeView.Nodes
265
+            E_node.Checked = True
266
+            If E_node.Nodes.Count > 0 Then
267
+                SelAllCheck(E_node)
268
+            End If
269
+            全選_index = 全選_index + 1
270
+        Next
271
+    End Sub
272
+    Private Sub SelAllCheck(ByVal Val_node As TreeNode)
273
+        For Each E_node As TreeNode In Val_node.Nodes
274
+            E_node.Checked = True
275
+            If E_node.Nodes.Count > 0 Then
276
+                SelAllCheck(E_node)
277
+            End If
278
+            全選_index = 全選_index + 1
279
+        Next
280
+    End Sub
281
+    Private Sub 取消全選_bt_Click(sender As Object, e As EventArgs) Handles 取消全選_bt.Click
282
+        For Each E_node As TreeNode In 選擇_TreeView.Nodes
283
+            E_node.Checked = False
284
+            If E_node.Nodes.Count > 0 Then
285
+                CalAllCheck(E_node)
286
+            End If
287
+            取消全選_index = 取消全選_index + 1
288
+        Next
289
+    End Sub
290
+    Private Sub CalAllCheck(ByVal Val_node As TreeNode)
291
+        For Each E_node As TreeNode In Val_node.Nodes
292
+            E_node.Checked = False
293
+            If E_node.Nodes.Count > 0 Then
294
+                CalAllCheck(E_node)
295
+            End If
296
+            取消全選_index = 取消全選_index + 1
297
+        Next
298
+    End Sub
299
+End Class

+ 389
- 0
YD-ERP-SYS/財務系統管理/匯出EXCEL.Designer.vb Прегледај датотеку

@@ -0,0 +1,389 @@
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
2
+Partial Class 匯出EXCEL
3
+    Inherits System.Windows.Forms.Form
4
+
5
+    'Form 覆寫 Dispose 以清除元件清單。
6
+    <System.Diagnostics.DebuggerNonUserCode()>
7
+    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
8
+        Try
9
+            If disposing AndAlso components IsNot Nothing Then
10
+                components.Dispose()
11
+            End If
12
+        Finally
13
+            MyBase.Dispose(disposing)
14
+        End Try
15
+    End Sub
16
+
17
+    '為 Windows Form 設計工具的必要項
18
+    Private components As System.ComponentModel.IContainer
19
+
20
+    '注意: 以下為 Windows Form 設計工具所需的程序
21
+    '可以使用 Windows Form 設計工具進行修改。
22
+    '請勿使用程式碼編輯器進行修改。
23
+    <System.Diagnostics.DebuggerStepThrough()>
24
+    Private Sub InitializeComponent()
25
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
+        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
+        Me.匯出EXCEL_bt = New System.Windows.Forms.Button()
31
+        Me.SaveFileDialog1 = New System.Windows.Forms.SaveFileDialog()
32
+        Me.月份選擇_gb = New System.Windows.Forms.GroupBox()
33
+        Me.起始加一個月_bt = New System.Windows.Forms.Button()
34
+        Me.起始減一個月_bt = New System.Windows.Forms.Button()
35
+        Me.月選_起始_dtp = New System.Windows.Forms.DateTimePicker()
36
+        Me.月選_起始_tb = New System.Windows.Forms.TextBox()
37
+        Me.月選_起始年_cb = New System.Windows.Forms.ComboBox()
38
+        Me.月選_起始月_cb = New System.Windows.Forms.ComboBox()
39
+        Me.Label59 = New System.Windows.Forms.Label()
40
+        Me.GroupBox1 = New System.Windows.Forms.GroupBox()
41
+        Me.結束加一個月_bt = New System.Windows.Forms.Button()
42
+        Me.月選_結束年_cb = New System.Windows.Forms.ComboBox()
43
+        Me.月選_結束_dtp = New System.Windows.Forms.DateTimePicker()
44
+        Me.結束減一個月_bt = New System.Windows.Forms.Button()
45
+        Me.月選_結束_tb = New System.Windows.Forms.TextBox()
46
+        Me.月選_結束月_cb = New System.Windows.Forms.ComboBox()
47
+        Me.Label60 = New System.Windows.Forms.Label()
48
+        Me.計算月數_tb = New System.Windows.Forms.TextBox()
49
+        Me.顯示選擇月份_lb = New System.Windows.Forms.ListBox()
50
+        Me.薪資匯出_dgv = New System.Windows.Forms.DataGridView()
51
+        Me.民國年月_tb = New System.Windows.Forms.TextBox()
52
+        Me.薪轉Ex存檔名_tb = New System.Windows.Forms.TextBox()
53
+        Me.Label1 = New System.Windows.Forms.Label()
54
+        Me.月份選擇_gb.SuspendLayout()
55
+        Me.GroupBox1.SuspendLayout()
56
+        CType(Me.薪資匯出_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
57
+        Me.SuspendLayout()
58
+        '
59
+        '匯出EXCEL_bt
60
+        '
61
+        Me.匯出EXCEL_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
62
+        Me.匯出EXCEL_bt.Location = New System.Drawing.Point(11, 542)
63
+        Me.匯出EXCEL_bt.Margin = New System.Windows.Forms.Padding(2)
64
+        Me.匯出EXCEL_bt.Name = "匯出EXCEL_bt"
65
+        Me.匯出EXCEL_bt.Size = New System.Drawing.Size(178, 80)
66
+        Me.匯出EXCEL_bt.TabIndex = 15
67
+        Me.匯出EXCEL_bt.Text = "匯出" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "EXCEL"
68
+        Me.匯出EXCEL_bt.UseVisualStyleBackColor = True
69
+        '
70
+        '月份選擇_gb
71
+        '
72
+        Me.月份選擇_gb.Controls.Add(Me.起始加一個月_bt)
73
+        Me.月份選擇_gb.Controls.Add(Me.起始減一個月_bt)
74
+        Me.月份選擇_gb.Controls.Add(Me.月選_起始_dtp)
75
+        Me.月份選擇_gb.Controls.Add(Me.月選_起始_tb)
76
+        Me.月份選擇_gb.Controls.Add(Me.月選_起始年_cb)
77
+        Me.月份選擇_gb.Controls.Add(Me.月選_起始月_cb)
78
+        Me.月份選擇_gb.Controls.Add(Me.Label59)
79
+        Me.月份選擇_gb.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
80
+        Me.月份選擇_gb.Location = New System.Drawing.Point(12, 13)
81
+        Me.月份選擇_gb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
82
+        Me.月份選擇_gb.Name = "月份選擇_gb"
83
+        Me.月份選擇_gb.Padding = New System.Windows.Forms.Padding(3, 4, 3, 4)
84
+        Me.月份選擇_gb.Size = New System.Drawing.Size(179, 126)
85
+        Me.月份選擇_gb.TabIndex = 437
86
+        Me.月份選擇_gb.TabStop = False
87
+        Me.月份選擇_gb.Text = "起始月份"
88
+        '
89
+        '起始加一個月_bt
90
+        '
91
+        Me.起始加一個月_bt.Location = New System.Drawing.Point(91, 91)
92
+        Me.起始加一個月_bt.Name = "起始加一個月_bt"
93
+        Me.起始加一個月_bt.Size = New System.Drawing.Size(70, 25)
94
+        Me.起始加一個月_bt.TabIndex = 1188
95
+        Me.起始加一個月_bt.Text = "加一個月"
96
+        Me.起始加一個月_bt.UseVisualStyleBackColor = True
97
+        '
98
+        '起始減一個月_bt
99
+        '
100
+        Me.起始減一個月_bt.Location = New System.Drawing.Point(14, 91)
101
+        Me.起始減一個月_bt.Name = "起始減一個月_bt"
102
+        Me.起始減一個月_bt.Size = New System.Drawing.Size(70, 25)
103
+        Me.起始減一個月_bt.TabIndex = 1187
104
+        Me.起始減一個月_bt.Text = "減一個月"
105
+        Me.起始減一個月_bt.UseVisualStyleBackColor = True
106
+        '
107
+        '月選_起始_dtp
108
+        '
109
+        Me.月選_起始_dtp.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
110
+        Me.月選_起始_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
111
+        Me.月選_起始_dtp.Location = New System.Drawing.Point(13, 123)
112
+        Me.月選_起始_dtp.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
113
+        Me.月選_起始_dtp.Name = "月選_起始_dtp"
114
+        Me.月選_起始_dtp.Size = New System.Drawing.Size(147, 25)
115
+        Me.月選_起始_dtp.TabIndex = 1171
116
+        Me.月選_起始_dtp.Visible = False
117
+        '
118
+        '月選_起始_tb
119
+        '
120
+        Me.月選_起始_tb.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
121
+        Me.月選_起始_tb.Location = New System.Drawing.Point(14, 26)
122
+        Me.月選_起始_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
123
+        Me.月選_起始_tb.Name = "月選_起始_tb"
124
+        Me.月選_起始_tb.ReadOnly = True
125
+        Me.月選_起始_tb.Size = New System.Drawing.Size(146, 25)
126
+        Me.月選_起始_tb.TabIndex = 434
127
+        '
128
+        '月選_起始年_cb
129
+        '
130
+        Me.月選_起始年_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
131
+        Me.月選_起始年_cb.FormattingEnabled = True
132
+        Me.月選_起始年_cb.Items.AddRange(New Object() {"2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030"})
133
+        Me.月選_起始年_cb.Location = New System.Drawing.Point(14, 59)
134
+        Me.月選_起始年_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
135
+        Me.月選_起始年_cb.Name = "月選_起始年_cb"
136
+        Me.月選_起始年_cb.Size = New System.Drawing.Size(80, 25)
137
+        Me.月選_起始年_cb.TabIndex = 429
138
+        '
139
+        '月選_起始月_cb
140
+        '
141
+        Me.月選_起始月_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
142
+        Me.月選_起始月_cb.FormattingEnabled = True
143
+        Me.月選_起始月_cb.Items.AddRange(New Object() {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"})
144
+        Me.月選_起始月_cb.Location = New System.Drawing.Point(111, 59)
145
+        Me.月選_起始月_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
146
+        Me.月選_起始月_cb.Name = "月選_起始月_cb"
147
+        Me.月選_起始月_cb.Size = New System.Drawing.Size(50, 25)
148
+        Me.月選_起始月_cb.TabIndex = 428
149
+        '
150
+        'Label59
151
+        '
152
+        Me.Label59.AutoSize = True
153
+        Me.Label59.Location = New System.Drawing.Point(97, 63)
154
+        Me.Label59.Name = "Label59"
155
+        Me.Label59.Size = New System.Drawing.Size(13, 17)
156
+        Me.Label59.TabIndex = 430
157
+        Me.Label59.Text = "/"
158
+        '
159
+        'GroupBox1
160
+        '
161
+        Me.GroupBox1.Controls.Add(Me.結束加一個月_bt)
162
+        Me.GroupBox1.Controls.Add(Me.月選_結束年_cb)
163
+        Me.GroupBox1.Controls.Add(Me.月選_結束_dtp)
164
+        Me.GroupBox1.Controls.Add(Me.結束減一個月_bt)
165
+        Me.GroupBox1.Controls.Add(Me.月選_結束_tb)
166
+        Me.GroupBox1.Controls.Add(Me.月選_結束月_cb)
167
+        Me.GroupBox1.Controls.Add(Me.Label60)
168
+        Me.GroupBox1.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
169
+        Me.GroupBox1.Location = New System.Drawing.Point(12, 146)
170
+        Me.GroupBox1.Name = "GroupBox1"
171
+        Me.GroupBox1.Size = New System.Drawing.Size(179, 126)
172
+        Me.GroupBox1.TabIndex = 438
173
+        Me.GroupBox1.TabStop = False
174
+        Me.GroupBox1.Text = "結束月份"
175
+        '
176
+        '結束加一個月_bt
177
+        '
178
+        Me.結束加一個月_bt.Location = New System.Drawing.Point(91, 91)
179
+        Me.結束加一個月_bt.Name = "結束加一個月_bt"
180
+        Me.結束加一個月_bt.Size = New System.Drawing.Size(70, 25)
181
+        Me.結束加一個月_bt.TabIndex = 1186
182
+        Me.結束加一個月_bt.Text = "加一個月"
183
+        Me.結束加一個月_bt.UseVisualStyleBackColor = True
184
+        '
185
+        '月選_結束年_cb
186
+        '
187
+        Me.月選_結束年_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
188
+        Me.月選_結束年_cb.FormattingEnabled = True
189
+        Me.月選_結束年_cb.Items.AddRange(New Object() {"2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030"})
190
+        Me.月選_結束年_cb.Location = New System.Drawing.Point(14, 58)
191
+        Me.月選_結束年_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
192
+        Me.月選_結束年_cb.Name = "月選_結束年_cb"
193
+        Me.月選_結束年_cb.Size = New System.Drawing.Size(80, 25)
194
+        Me.月選_結束年_cb.TabIndex = 1183
195
+        '
196
+        '月選_結束_dtp
197
+        '
198
+        Me.月選_結束_dtp.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
199
+        Me.月選_結束_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
200
+        Me.月選_結束_dtp.Location = New System.Drawing.Point(14, 123)
201
+        Me.月選_結束_dtp.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
202
+        Me.月選_結束_dtp.Name = "月選_結束_dtp"
203
+        Me.月選_結束_dtp.Size = New System.Drawing.Size(146, 25)
204
+        Me.月選_結束_dtp.TabIndex = 1182
205
+        Me.月選_結束_dtp.Visible = False
206
+        '
207
+        '結束減一個月_bt
208
+        '
209
+        Me.結束減一個月_bt.Location = New System.Drawing.Point(14, 91)
210
+        Me.結束減一個月_bt.Name = "結束減一個月_bt"
211
+        Me.結束減一個月_bt.Size = New System.Drawing.Size(70, 25)
212
+        Me.結束減一個月_bt.TabIndex = 1185
213
+        Me.結束減一個月_bt.Text = "減一個月"
214
+        Me.結束減一個月_bt.UseVisualStyleBackColor = True
215
+        '
216
+        '月選_結束_tb
217
+        '
218
+        Me.月選_結束_tb.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
219
+        Me.月選_結束_tb.Location = New System.Drawing.Point(14, 25)
220
+        Me.月選_結束_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
221
+        Me.月選_結束_tb.Name = "月選_結束_tb"
222
+        Me.月選_結束_tb.ReadOnly = True
223
+        Me.月選_結束_tb.Size = New System.Drawing.Size(146, 25)
224
+        Me.月選_結束_tb.TabIndex = 1181
225
+        '
226
+        '月選_結束月_cb
227
+        '
228
+        Me.月選_結束月_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
229
+        Me.月選_結束月_cb.FormattingEnabled = True
230
+        Me.月選_結束月_cb.Items.AddRange(New Object() {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"})
231
+        Me.月選_結束月_cb.Location = New System.Drawing.Point(111, 58)
232
+        Me.月選_結束月_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
233
+        Me.月選_結束月_cb.Name = "月選_結束月_cb"
234
+        Me.月選_結束月_cb.Size = New System.Drawing.Size(50, 25)
235
+        Me.月選_結束月_cb.TabIndex = 1179
236
+        '
237
+        'Label60
238
+        '
239
+        Me.Label60.AutoSize = True
240
+        Me.Label60.Location = New System.Drawing.Point(98, 61)
241
+        Me.Label60.Name = "Label60"
242
+        Me.Label60.Size = New System.Drawing.Size(13, 17)
243
+        Me.Label60.TabIndex = 1184
244
+        Me.Label60.Text = "/"
245
+        '
246
+        '計算月數_tb
247
+        '
248
+        Me.計算月數_tb.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
249
+        Me.計算月數_tb.Location = New System.Drawing.Point(232, 469)
250
+        Me.計算月數_tb.Name = "計算月數_tb"
251
+        Me.計算月數_tb.Size = New System.Drawing.Size(100, 25)
252
+        Me.計算月數_tb.TabIndex = 1174
253
+        Me.計算月數_tb.Visible = False
254
+        '
255
+        '顯示選擇月份_lb
256
+        '
257
+        Me.顯示選擇月份_lb.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
258
+        Me.顯示選擇月份_lb.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
259
+        Me.顯示選擇月份_lb.FormattingEnabled = True
260
+        Me.顯示選擇月份_lb.ItemHeight = 17
261
+        Me.顯示選擇月份_lb.Location = New System.Drawing.Point(12, 312)
262
+        Me.顯示選擇月份_lb.Name = "顯示選擇月份_lb"
263
+        Me.顯示選擇月份_lb.Size = New System.Drawing.Size(177, 225)
264
+        Me.顯示選擇月份_lb.TabIndex = 1176
265
+        '
266
+        '薪資匯出_dgv
267
+        '
268
+        Me.薪資匯出_dgv.AllowUserToAddRows = False
269
+        Me.薪資匯出_dgv.AllowUserToDeleteRows = False
270
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
271
+        DataGridViewCellStyle1.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
272
+        Me.薪資匯出_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
273
+        Me.薪資匯出_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
274
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
275
+        Me.薪資匯出_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
276
+        DataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
277
+        DataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control
278
+        DataGridViewCellStyle2.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
279
+        DataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText
280
+        DataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight
281
+        DataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText
282
+        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
283
+        Me.薪資匯出_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle2
284
+        Me.薪資匯出_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
285
+        DataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
286
+        DataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window
287
+        DataGridViewCellStyle3.Font = New System.Drawing.Font("新細明體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
288
+        DataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText
289
+        DataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight
290
+        DataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText
291
+        DataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
292
+        Me.薪資匯出_dgv.DefaultCellStyle = DataGridViewCellStyle3
293
+        Me.薪資匯出_dgv.Location = New System.Drawing.Point(201, 13)
294
+        Me.薪資匯出_dgv.Name = "薪資匯出_dgv"
295
+        DataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
296
+        DataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control
297
+        DataGridViewCellStyle4.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
298
+        DataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText
299
+        DataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight
300
+        DataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText
301
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
302
+        Me.薪資匯出_dgv.RowHeadersDefaultCellStyle = DataGridViewCellStyle4
303
+        Me.薪資匯出_dgv.RowHeadersWidth = 5
304
+        DataGridViewCellStyle5.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
305
+        Me.薪資匯出_dgv.RowsDefaultCellStyle = DataGridViewCellStyle5
306
+        Me.薪資匯出_dgv.RowTemplate.Height = 24
307
+        Me.薪資匯出_dgv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect
308
+        Me.薪資匯出_dgv.Size = New System.Drawing.Size(1030, 609)
309
+        Me.薪資匯出_dgv.TabIndex = 1177
310
+        '
311
+        '民國年月_tb
312
+        '
313
+        Me.民國年月_tb.Location = New System.Drawing.Point(232, 500)
314
+        Me.民國年月_tb.Name = "民國年月_tb"
315
+        Me.民國年月_tb.Size = New System.Drawing.Size(100, 22)
316
+        Me.民國年月_tb.TabIndex = 1179
317
+        Me.民國年月_tb.Visible = False
318
+        '
319
+        '薪轉Ex存檔名_tb
320
+        '
321
+        Me.薪轉Ex存檔名_tb.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
322
+        Me.薪轉Ex存檔名_tb.Location = New System.Drawing.Point(72, 281)
323
+        Me.薪轉Ex存檔名_tb.Name = "薪轉Ex存檔名_tb"
324
+        Me.薪轉Ex存檔名_tb.Size = New System.Drawing.Size(117, 25)
325
+        Me.薪轉Ex存檔名_tb.TabIndex = 1180
326
+        '
327
+        'Label1
328
+        '
329
+        Me.Label1.AutoSize = True
330
+        Me.Label1.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
331
+        Me.Label1.ForeColor = System.Drawing.Color.Teal
332
+        Me.Label1.Location = New System.Drawing.Point(10, 284)
333
+        Me.Label1.Name = "Label1"
334
+        Me.Label1.Size = New System.Drawing.Size(60, 17)
335
+        Me.Label1.TabIndex = 1181
336
+        Me.Label1.Text = "資料年度"
337
+        '
338
+        '匯出EXCEL
339
+        '
340
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!)
341
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
342
+        Me.ClientSize = New System.Drawing.Size(1243, 627)
343
+        Me.Controls.Add(Me.Label1)
344
+        Me.Controls.Add(Me.薪轉Ex存檔名_tb)
345
+        Me.Controls.Add(Me.薪資匯出_dgv)
346
+        Me.Controls.Add(Me.顯示選擇月份_lb)
347
+        Me.Controls.Add(Me.計算月數_tb)
348
+        Me.Controls.Add(Me.GroupBox1)
349
+        Me.Controls.Add(Me.月份選擇_gb)
350
+        Me.Controls.Add(Me.匯出EXCEL_bt)
351
+        Me.Controls.Add(Me.民國年月_tb)
352
+        Me.Name = "匯出EXCEL"
353
+        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
354
+        Me.Text = "匯出EXCEL"
355
+        Me.月份選擇_gb.ResumeLayout(False)
356
+        Me.月份選擇_gb.PerformLayout()
357
+        Me.GroupBox1.ResumeLayout(False)
358
+        Me.GroupBox1.PerformLayout()
359
+        CType(Me.薪資匯出_dgv, System.ComponentModel.ISupportInitialize).EndInit()
360
+        Me.ResumeLayout(False)
361
+        Me.PerformLayout()
362
+
363
+    End Sub
364
+
365
+    Friend WithEvents 匯出EXCEL_bt As Button
366
+    Friend WithEvents SaveFileDialog1 As SaveFileDialog
367
+    Friend WithEvents 月份選擇_gb As GroupBox
368
+    Friend WithEvents 月選_起始_dtp As DateTimePicker
369
+    Friend WithEvents 月選_起始_tb As TextBox
370
+    Friend WithEvents 月選_起始年_cb As ComboBox
371
+    Friend WithEvents 月選_起始月_cb As ComboBox
372
+    Friend WithEvents Label59 As Label
373
+    Friend WithEvents GroupBox1 As GroupBox
374
+    Friend WithEvents 結束加一個月_bt As Button
375
+    Friend WithEvents 結束減一個月_bt As Button
376
+    Friend WithEvents 月選_結束年_cb As ComboBox
377
+    Friend WithEvents 月選_結束_dtp As DateTimePicker
378
+    Friend WithEvents 月選_結束_tb As TextBox
379
+    Friend WithEvents 月選_結束月_cb As ComboBox
380
+    Friend WithEvents Label60 As Label
381
+    Friend WithEvents 起始加一個月_bt As Button
382
+    Friend WithEvents 起始減一個月_bt As Button
383
+    Friend WithEvents 計算月數_tb As TextBox
384
+    Friend WithEvents 顯示選擇月份_lb As ListBox
385
+    Friend WithEvents 薪資匯出_dgv As DataGridView
386
+    Friend WithEvents 民國年月_tb As TextBox
387
+    Friend WithEvents 薪轉Ex存檔名_tb As TextBox
388
+    Friend WithEvents Label1 As Label
389
+End Class

+ 123
- 0
YD-ERP-SYS/財務系統管理/匯出EXCEL.resx Прегледај датотеку

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

+ 326
- 0
YD-ERP-SYS/財務系統管理/匯出EXCEL.vb Прегледај датотеку

@@ -0,0 +1,326 @@
1
+Imports System.Data.SqlClient
2
+Imports Microsoft.Office.Interop.Excel.XlUnderlineStyle
3
+Imports Microsoft.Office.Interop.Excel.Constants
4
+Imports Microsoft.Office.Interop.Excel.XlBordersIndex
5
+Imports Microsoft.Office.Interop.Excel.XlLineStyle
6
+Imports Microsoft.Office.Interop.Excel.XlBorderWeight
7
+Imports Microsoft.Office.Interop.Excel.XlThemeFont
8
+Imports Microsoft.Office.Interop.Excel.XlThemeColor
9
+Imports Microsoft.Office.Interop.Excel.XlWindowState
10
+Public Class 匯出EXCEL
11
+    Dim xlApp As Microsoft.Office.Interop.Excel.Application
12
+    Dim xlBook As Microsoft.Office.Interop.Excel.Workbook
13
+    Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
14
+    Dim misValue As Object = System.Reflection.Missing.Value
15
+    Dim 判斷月差結果 As Boolean
16
+    Dim Index_Row_Date As Date : Dim str01 As String = ""
17
+    ReadOnly ds1 As New DataSet
18
+    Private Sub 匯出EXCEL_Load(sender As Object, e As EventArgs) Handles MyBase.Load
19
+        匯出EXCEL_bt.Enabled = True
20
+        FormBorderStyle = FormBorderStyle.SizableToolWindow
21
+        月選_起始_dtp.Value = Today() : 月選_結束_dtp.Value = Today()
22
+        月選_起始月_cb.Text = DateAndTime.Month(Today) : 月選_結束月_cb.Text = DateAndTime.Month(Today)
23
+        月選_起始年_cb.Text = DateAndTime.Year(Today) : 月選_結束年_cb.Text = DateAndTime.Year(Today)
24
+    End Sub
25
+    Private Sub 匯出EXCEL_Close(sender As Object, e As EventArgs) Handles MyBase.Closed
26
+        薪資匯出_dgv.DataSource = Nothing : ds1.Clear() : 顯示選擇月份_lb.Items.Clear()
27
+    End Sub
28
+
29
+    Private Sub 匯出EXCEL_bt_Click(sender As Object, e As EventArgs) Handles 匯出EXCEL_bt.Click
30
+        判斷月差結果 = 判斷月差()
31
+        If 判斷月差結果 = True Then
32
+            薪資匯出SQL_to_DGV()
33
+            Dim DGV_Row_index1 As Integer = 0
34
+            Dim DGV_Row_index2 As Integer = 0
35
+            SaveFileDialog1.Filter = "Excel files (*.xlsx)|*.xlsx|CSV Files (*.csv)|*.csv|XLS Files (*.xls)|*xls"
36
+            SaveFileDialog1.FilterIndex = 1
37
+            SaveFileDialog1.InitialDirectory = My.Computer.FileSystem.SpecialDirectories.Desktop
38
+            SaveFileDialog1.FileName = "薪轉資料" + 薪轉Ex存檔名_tb.Text
39
+            If SaveFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
40
+                xlApp = CType(CreateObject("Excel.Application"), Microsoft.Office.Interop.Excel.Application)
41
+                xlApp.Visible = True
42
+                xlApp.DisplayAlerts = True
43
+                xlApp.Application.WindowState = xlMaximized
44
+                xlBook = xlApp.Workbooks.Add(misValue)
45
+
46
+                Dim twC = New System.Globalization.TaiwanCalendar()
47
+                Dim DTP3 As Date = 月選_結束_dtp.Value
48
+                Index_Row_Date = DTP3
49
+                民國年月_tb.Text = twC.GetYear(DTP3).ToString + DTP3.ToString("MM")
50
+                計算月數_tb.Text = DateDiff(DateInterval.Month, 月選_起始_dtp.Value, 月選_結束_dtp.Value)
51
+                For index_Conut As Integer = 0 To 計算月數_tb.Text
52
+                    顯示選擇月份_lb.Items.Add(民國年月_tb.Text)
53
+                    Dim Sheet_Row_index As Integer = 4
54
+                    xlSheet = NewMethod(xlBook)
55
+                    xlApp.Sheets(1).Name = 民國年月_tb.Text
56
+                    xlApp.Sheets(1).Select
57
+                    xlApp.Cells.NumberFormat = "@"   '----------遇到數字,強迫以文字來儲存
58
+                    xlBook.Activate() : xlSheet.Activate()
59
+                    xlSheet.Range("A1").Select()
60
+                    xlSheet.Cells(1, 1) = "雅邸家居國際有限公司" : xlSheet.Cells(2, 1) = twC.GetYear(Index_Row_Date).ToString & " 年  " & Index_Row_Date.ToString("MM") & "   月薪資轉帳"
61
+                    xlSheet.Cells(3, 1) = "編號" : xlSheet.Cells(3, 2) = "帳號" : xlSheet.Cells(3, 3) = "身份證字號" : xlSheet.Cells(3, 4) = "獎金"
62
+                    xlSheet.Cells(3, 5) = "薪資" : xlSheet.Cells(3, 6) = "合計" : xlSheet.Cells(3, 7) = "姓名"
63
+                    xlSheet.Range("D4:F1000").Select() : xlApp.Selection.NumberFormatLocal = "#,##0;[紅色]-#,##0"
64
+                    Dim DGV_Row_Date As String = 薪資匯出_dgv(9, DGV_Row_index1).Value.ToString()
65
+                    Dim YY As String = Index_Row_Date.ToString("yyyy") + Index_Row_Date.ToString("/MM") + "/25"
66
+                    Do While String.Compare(DGV_Row_Date, YY) = 0
67
+                        If String.Compare(薪資匯出_dgv(10, DGV_Row_index1).Value.ToString, "帳號匯款") = 0 Then
68
+                            xlSheet.Cells(Sheet_Row_index, 1) = 薪資匯出_dgv(1, DGV_Row_index1).Value.ToString
69
+                            xlSheet.Cells(Sheet_Row_index, 2) = 薪資匯出_dgv(2, DGV_Row_index1).Value.ToString
70
+                            xlSheet.Cells(Sheet_Row_index, 3) = 薪資匯出_dgv(3, DGV_Row_index1).Value.ToString
71
+                            xlSheet.Cells(Sheet_Row_index, 4) = 薪資匯出_dgv(4, DGV_Row_index1).Value.ToString
72
+                            xlSheet.Cells(Sheet_Row_index, 5) = 薪資匯出_dgv(5, DGV_Row_index1).Value.ToString
73
+                            xlSheet.Cells(Sheet_Row_index, 6) = "=SUM(D" & Sheet_Row_index & ": E" & Sheet_Row_index & ")"
74
+                            xlSheet.Cells(Sheet_Row_index, 7) = 薪資匯出_dgv(8, DGV_Row_index1).Value.ToString
75
+                            If DGV_Row_index1 < 薪資匯出_dgv.Rows.Count - 1 Then
76
+                                DGV_Row_index1 = DGV_Row_index1 + 1
77
+                                Sheet_Row_index = Sheet_Row_index + 1
78
+                            ElseIf DGV_Row_index1 = 薪資匯出_dgv.Rows.Count - 1 Then
79
+                                Exit Do
80
+                            End If
81
+                        Else
82
+                            If DGV_Row_index1 < 薪資匯出_dgv.Rows.Count - 1 Then
83
+                                DGV_Row_index1 = DGV_Row_index1 + 1
84
+                            ElseIf DGV_Row_index1 = 薪資匯出_dgv.Rows.Count - 1 Then
85
+                                Exit Do
86
+                            End If
87
+                        End If
88
+                        DGV_Row_Date = 薪資匯出_dgv(9, DGV_Row_index1).Value.ToString()
89
+                    Loop
90
+                    xlSheet.Cells(Sheet_Row_index, 3) = "合計:" : xlSheet.Cells(Sheet_Row_index + 1, 3) = "領現:"
91
+                    xlSheet.Cells(Sheet_Row_index, 4) = "=SUM(D4: D" & (Sheet_Row_index - 1) & ")"
92
+                    xlSheet.Cells(Sheet_Row_index, 5) = "=SUM(E4: E" & (Sheet_Row_index - 1) & ")"
93
+                    xlSheet.Cells(Sheet_Row_index, 6) = "=SUM(F4: F" & (Sheet_Row_index - 1) & ")"
94
+                    ' 儲存格 格線設定 
95
+                    xlSheet.Range("A1:G" & (Sheet_Row_index - 1).ToString).Select()
96
+                    xlApp.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : xlApp.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
97
+                    With xlApp.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
98
+                    With xlApp.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
99
+                    With xlApp.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
100
+                    With xlApp.Selection.Borders(xlEdgeRight) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
101
+                    With xlApp.Selection.Borders(xlInsideVertical) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
102
+                    With xlApp.Selection.Borders(xlInsideHorizontal) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
103
+
104
+                    xlSheet.Range("C" & Sheet_Row_index & ":F" & Sheet_Row_index).Select()
105
+                    xlApp.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : xlApp.Selection.Borders(xlDiagonalUp).LineStyle = xlNone : xlApp.Selection.Borders(xlEdgeLeft).LineStyle = xlNone
106
+                    With xlApp.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
107
+                    With xlApp.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
108
+                    xlApp.Selection.Borders(xlEdgeRight).LineStyle = xlNone : xlApp.Selection.Borders(xlInsideVertical).LineStyle = xlNone : xlApp.Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
109
+
110
+                    ' -------------------------------------------------------
111
+                    Dim Sheet_Row_index_暫存 As Integer = Sheet_Row_index
112
+                    Sheet_Row_index = Sheet_Row_index + 1
113
+                    Dim 判斷有無領現 As Boolean = False
114
+                    Dim ww As String = 薪資匯出_dgv(9, DGV_Row_index2).Value.ToString()
115
+                    Dim zz As String = Index_Row_Date.ToString("yyyy") + Index_Row_Date.ToString("/MM") + "/25"
116
+                    Do While String.Compare(ww, zz) = 0
117
+                        If String.Compare(薪資匯出_dgv(10, DGV_Row_index2).Value.ToString, "領現") = 0 Then
118
+                            判斷有無領現 = True
119
+                            xlSheet.Cells(Sheet_Row_index, 6) = 薪資匯出_dgv(6, DGV_Row_index2).Value.ToString
120
+                            xlSheet.Cells(Sheet_Row_index, 7) = 薪資匯出_dgv(8, DGV_Row_index2).Value.ToString
121
+                            If DGV_Row_index2 < 薪資匯出_dgv.Rows.Count - 1 Then
122
+                                DGV_Row_index2 = DGV_Row_index2 + 1
123
+                                Sheet_Row_index = Sheet_Row_index + 1
124
+                            ElseIf DGV_Row_index2 = 薪資匯出_dgv.Rows.Count - 1 Then
125
+                                Sheet_Row_index = Sheet_Row_index + 1
126
+                                Exit Do
127
+                            End If
128
+                        Else
129
+                            If DGV_Row_index2 < 薪資匯出_dgv.Rows.Count - 1 Then
130
+                                DGV_Row_index2 = DGV_Row_index2 + 1
131
+                            ElseIf DGV_Row_index2 = 薪資匯出_dgv.Rows.Count - 1 Then
132
+                                Exit Do
133
+                            End If
134
+                        End If
135
+                        ww = 薪資匯出_dgv(9, DGV_Row_index2).Value.ToString()
136
+                    Loop
137
+
138
+                    xlSheet.Cells(Sheet_Row_index, 6) = "=SUM(F" & Sheet_Row_index_暫存 & ": F" & Sheet_Row_index - 1 & ")"
139
+                    xlSheet.Cells(Sheet_Row_index, 3) = "共計:"
140
+                    '加底線
141
+                    xlSheet.Range("F" & Sheet_Row_index - 1 & ":F" & Sheet_Row_index - 1).Select()
142
+                    xlApp.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : xlApp.Selection.Borders(xlDiagonalUp).LineStyle = xlNone : xlApp.Selection.Borders(xlEdgeLeft).LineStyle = xlNone
143
+                    With xlApp.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
144
+                    xlApp.Selection.Borders(xlEdgeRight).LineStyle = xlNone : xlApp.Selection.Borders(xlInsideVertical).LineStyle = xlNone : xlApp.Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
145
+
146
+                    Index_Row_Date = DateAdd(DateInterval.Month, (index_Conut + 1) * (-1), DTP3)
147
+                    民國年月_tb.Text = twC.GetYear(Index_Row_Date).ToString + Index_Row_Date.ToString("MM")
148
+                    ' ----------------------------------
149
+                    '全選改變字體
150
+                    xlSheet.Cells.Select()
151
+                    With xlApp.Selection.Font : .Name = "微軟正黑體" : .Size = 14 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False
152
+                        .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
153
+                    End With
154
+                    ' 改變行寬 Columns("A") & Columns("H")
155
+                    xlSheet.Columns("A:A").Select : xlApp.Selection.ColumnWidth = 8.38
156
+                    xlSheet.Columns("B:B").Select : xlApp.Selection.ColumnWidth = 18
157
+                    xlSheet.Columns("C:C").Select : xlApp.Selection.ColumnWidth = 16
158
+                    xlSheet.Columns("D:D").Select : xlApp.Selection.ColumnWidth = 13
159
+                    xlSheet.Columns("E:E").Select : xlApp.Selection.ColumnWidth = 13
160
+                    xlSheet.Columns("F:F").Select : xlApp.Selection.ColumnWidth = 13
161
+                    xlSheet.Columns("G:G").Select : xlApp.Selection.ColumnWidth = 15
162
+                    ' ("A1到G1") 改變粗體
163
+                    xlSheet.Range("A1:G3").Select()
164
+                    xlApp.Selection.Font.Bold = True
165
+                    '全選改變列高
166
+                    xlSheet.Cells.Select()  '全選
167
+                    xlApp.Selection.RowHeight = 25  '改變列高
168
+                    xlSheet.Range("A1").Select()
169
+                    ' ("A1到G1")跨欄至中
170
+                    xlSheet.Range("A1:G1").Select()
171
+                    With xlApp.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
172
+                        .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
173
+                    End With : xlApp.Selection.Merge
174
+                    ' ("A2到G2")跨欄至中
175
+                    xlSheet.Range("A2:G2").Select()
176
+                    With xlApp.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
177
+                        .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
178
+                    End With : xlApp.Selection.Merge
179
+                    ' 儲存格顏色設定
180
+                    xlSheet.Range("A1:G1").Select()
181
+                    With xlApp.Selection.Interior : .Pattern = xlSolid : .PatternColorIndex = xlAutomatic : .ThemeColor = xlThemeColorAccent6 : .TintAndShade = 0.599993896298105 : .PatternTintAndShade = 0 : End With
182
+                    ' 儲存格顏色設定
183
+                    xlSheet.Range("A2:G2").Select()
184
+                    With xlApp.Selection.Interior : .Pattern = xlSolid : .PatternColorIndex = xlAutomatic : .Color = 16247773 : .TintAndShade = 0 : .PatternTintAndShade = 0 : End With
185
+
186
+                Next
187
+                xlApp.Sheets(CInt(計算月數_tb.Text) + 2).Delete
188
+                xlApp.Cells.Select()
189
+                xlApp.Application.WindowState = xlMinimized
190
+                xlSheet.SaveAs(SaveFileDialog1.FileName)
191
+                xlBook.Close()
192
+                xlApp.Quit()
193
+
194
+                releaseObject(xlApp)
195
+                releaseObject(xlBook)
196
+                releaseObject(xlSheet)
197
+
198
+                MessageBox.Show("存檔成功 !!!" & vbCrLf & "檔案儲存於 : " & SaveFileDialog1.FileName, "存檔資訊", MessageBoxButtons.OK, MessageBoxIcon.Information)
199
+            End If
200
+            'Me.Close()
201
+        Else
202
+            'MessageBox.Show("年/月 範圍選擇錯誤,請從新選擇", "範圍選擇提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
203
+        End If
204
+        匯出EXCEL_bt.Enabled = False
205
+    End Sub
206
+    Private Shared Function NewMethod(xlBook As Microsoft.Office.Interop.Excel.Workbook) As Microsoft.Office.Interop.Excel.Worksheet
207
+        Return CType(xlBook.Worksheets.Add, Microsoft.Office.Interop.Excel.Worksheet)
208
+    End Function
209
+    Private Sub releaseObject(ByVal obj As Object)
210
+        Try
211
+            System.Runtime.InteropServices.Marshal.ReleaseComObject(obj)
212
+            obj = Nothing
213
+        Catch ex As Exception
214
+            obj = Nothing
215
+        Finally
216
+            GC.Collect()
217
+        End Try
218
+    End Sub
219
+    Private Sub 月選_起始年_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 月選_起始年_cb.SelectedIndexChanged
220
+        DTP = (月選_起始年_cb.Text) & "/" & (月選_起始月_cb.Text) & "/01"
221
+        月選_起始_dtp.Value = DTP
222
+        月選_起始_tb.Text = Strings.Left(Strings.Format(月選_起始_dtp.Value, "yyyy/MM/dd"), 10)
223
+    End Sub
224
+    Private Sub 月選_起始月_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 月選_起始月_cb.SelectedIndexChanged
225
+        If 月選_起始年_cb.Text = "" Then
226
+            Exit Sub
227
+        Else
228
+            DTP = (月選_起始年_cb.Text) & "/" & (月選_起始月_cb.Text) & "/01"
229
+            月選_起始_dtp.Value = DTP
230
+            月選_起始_tb.Text = Strings.Left(Strings.Format(月選_起始_dtp.Value, "yyyy/MM/dd"), 10)
231
+        End If
232
+    End Sub
233
+    Private Sub 月選_結束年_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 月選_結束年_cb.SelectedIndexChanged
234
+        DTP = (月選_結束年_cb.Text) & "/" & (月選_結束月_cb.Text) & "/01"
235
+        月選_結束_dtp.Value = DTP
236
+        月選_結束_dtp.Value = 月選_結束_dtp.Value.AddMonths(1)
237
+        月選_結束_dtp.Value = 月選_結束_dtp.Value.AddDays(-1)
238
+        月選_結束_tb.Text = Strings.Left(Strings.Format(月選_結束_dtp.Value, "yyyy/MM/dd"), 10)
239
+    End Sub
240
+    Private Sub 月選_結束月_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 月選_結束月_cb.SelectedIndexChanged
241
+        If 月選_起始年_cb.Text = "" Then
242
+            Exit Sub
243
+        Else
244
+            DTP = (月選_結束年_cb.Text) & "/" & (月選_結束月_cb.Text) & "/01"
245
+            月選_結束_dtp.Value = DTP
246
+            月選_結束_dtp.Value = 月選_結束_dtp.Value.AddMonths(1)
247
+            月選_結束_dtp.Value = 月選_結束_dtp.Value.AddDays(-1)
248
+            月選_結束_tb.Text = Strings.Left(Strings.Format(月選_結束_dtp.Value, "yyyy/MM/dd"), 10)
249
+        End If
250
+    End Sub
251
+    Private Sub 結束減一個月_bt_Click(sender As Object, e As EventArgs) Handles 結束減一個月_bt.Click
252
+        If 月選_結束月_cb.Text <> "1" Then
253
+            月選_結束月_cb.Text = Val(月選_結束月_cb.Text) - 1
254
+        ElseIf 月選_結束月_cb.Text = "1" Then
255
+            月選_結束月_cb.Text = 12
256
+            月選_結束年_cb.Text = Val(月選_結束年_cb.Text) - 1
257
+        End If
258
+    End Sub
259
+    Private Sub 結束加一個月_bt_Click(sender As Object, e As EventArgs) Handles 結束加一個月_bt.Click
260
+        If 月選_結束月_cb.Text <> "12" Then
261
+            月選_結束月_cb.Text = Val(月選_結束月_cb.Text) + 1
262
+        ElseIf 月選_結束月_cb.Text = "12" Then
263
+            月選_結束月_cb.Text = 1
264
+            月選_結束年_cb.Text = Val(月選_結束年_cb.Text) + 1
265
+        End If
266
+    End Sub
267
+    Private Sub 起始減一個月_bt_Click(sender As Object, e As EventArgs) Handles 起始減一個月_bt.Click
268
+        If 月選_起始月_cb.Text <> "1" Then
269
+            月選_起始月_cb.Text = Val(月選_起始月_cb.Text) - 1
270
+        ElseIf 月選_起始月_cb.Text = "1" Then
271
+            月選_起始月_cb.Text = 12
272
+            月選_起始年_cb.Text = Val(月選_起始年_cb.Text) - 1
273
+        End If
274
+    End Sub
275
+    Private Sub 起始加一個月_bt_Click(sender As Object, e As EventArgs) Handles 起始加一個月_bt.Click
276
+        If 月選_起始月_cb.Text <> "12" Then
277
+            月選_起始月_cb.Text = Val(月選_起始月_cb.Text) + 1
278
+        ElseIf 月選_起始月_cb.Text = "12" Then
279
+            月選_起始月_cb.Text = 1
280
+            月選_起始年_cb.Text = Val(月選_起始年_cb.Text) + 1
281
+        End If
282
+    End Sub
283
+    Private Function 判斷月差() As Boolean
284
+        Dim 判斷結果 As Boolean
285
+        If DateDiff(DateInterval.Month, 月選_起始_dtp.Value, 月選_結束_dtp.Value) > 119 Then
286
+            月選_起始月_cb.Text = DateAndTime.Month(Today) : 月選_結束月_cb.Text = DateAndTime.Month(Today)
287
+            月選_起始年_cb.Text = DateAndTime.Year(Today) : 月選_結束年_cb.Text = DateAndTime.Year(Today)
288
+            判斷結果 = False
289
+            MsgBox("選擇範圍超過10年,請從新選擇", MsgBoxStyle.Information, "提示")
290
+        ElseIf DateDiff(DateInterval.Month, 月選_起始_dtp.Value, 月選_結束_dtp.Value) < 0 Then
291
+            月選_起始月_cb.Text = DateAndTime.Month(Today) : 月選_結束月_cb.Text = DateAndTime.Month(Today)
292
+            月選_起始年_cb.Text = DateAndTime.Year(Today) : 月選_結束年_cb.Text = DateAndTime.Year(Today)
293
+            判斷結果 = False
294
+            MsgBox("選擇範圍年分順序顛倒,請從新選擇", MsgBoxStyle.Information, "提示")
295
+        Else
296
+            判斷結果 = True
297
+        End If
298
+        Return 判斷結果
299
+    End Function
300
+
301
+    Private Sub 薪資匯出SQL_to_DGV()
302
+        薪資匯出_dgv.DataSource = Nothing : ds1.Clear()
303
+        薪資匯出_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
304
+        薪資匯出_dgv.ColumnHeadersHeight = 40 : 薪資匯出_dgv.AllowUserToAddRows = False
305
+        str01 = "" : Dim DTP3 As Date = 月選_結束_dtp.Value
306
+        計算月數_tb.Text = DateDiff(DateInterval.Month, 月選_起始_dtp.Value, 月選_結束_dtp.Value)
307
+        str01 = Strings.Left(Strings.Format(月選_結束_dtp.Value, "yyyy/MM/dd"), 7) + "/25"
308
+        薪資轉帳表_匯出EXCEL_月份清單(str01)
309
+        da.Fill(ds1) : 薪資匯出_dgv.DataSource = ds1.Tables(0) : conn.Close()
310
+        薪資匯出_dgv.Columns("獎金").DefaultCellStyle.Format = "#,##0.0"
311
+        薪資匯出_dgv.Columns("薪資").DefaultCellStyle.Format = "#,##0.0"
312
+        薪資匯出_dgv.Columns("薪資合計").DefaultCellStyle.Format = "#,##0.0"
313
+        薪資匯出_dgv.Columns("領現").DefaultCellStyle.Format = "#,##0.0"
314
+        For index_Conut As Integer = 0 To 計算月數_tb.Text
315
+            'ListBox1.Items.Add(str01)
316
+            Index_Row_Date = DateAdd(DateInterval.Month, (index_Conut + 1) * (-1), DTP3)
317
+            str01 = Strings.Left(Strings.Format(Index_Row_Date, "yyyy/MM/dd"), 7) + "/25"
318
+            薪資轉帳表_匯出EXCEL_月份清單(str01)
319
+            da.Fill(ds1) : 薪資匯出_dgv.DataSource = ds1.Tables(0) : conn.Close()
320
+        Next
321
+        薪資匯出_dgv.Columns(0).Visible = False : 薪資匯出_dgv.Columns(10).Visible = True : 薪資匯出_dgv.Columns(11).Visible = False
322
+        薪資匯出_dgv.Columns(0).ReadOnly = True : 薪資匯出_dgv.Columns(1).ReadOnly = True : 薪資匯出_dgv.Columns(2).ReadOnly = True : 薪資匯出_dgv.Columns(3).ReadOnly = True
323
+        薪資匯出_dgv.Columns(4).ReadOnly = True : 薪資匯出_dgv.Columns(5).ReadOnly = True : 薪資匯出_dgv.Columns(6).ReadOnly = True : 薪資匯出_dgv.Columns(7).ReadOnly = True
324
+        薪資匯出_dgv.Columns(8).ReadOnly = True : 薪資匯出_dgv.Columns(9).ReadOnly = True
325
+    End Sub
326
+End Class

+ 37
- 21
YD-ERP-SYS/財務系統管理/營運成本收支單 - 對帳表.Designer.vb Прегледај датотеку

@@ -23,7 +23,7 @@ Partial Class 營運成本收支單_對帳表
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25 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 27
         Me.未兌現支票1_tb = New System.Windows.Forms.TextBox()
28 28
         Me.Label13 = New System.Windows.Forms.Label()
29 29
         Me.未兌現支票_tb = New System.Windows.Forms.TextBox()
@@ -60,12 +60,13 @@ Partial Class 營運成本收支單_對帳表
60 60
         Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
61 61
         Me.重新整理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
62 62
         Me.ToolStripSeparator2 = New System.Windows.Forms.ToolStripSeparator()
63
-        Me.BBBToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
64 63
         Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
65 64
         Me.資料尚未存檔_lb = New System.Windows.Forms.Label()
66 65
         Me.關鍵字查詢_bt = New System.Windows.Forms.Button()
67 66
         Me.對帳記錄存檔_bt = New System.Windows.Forms.Button()
68 67
         Me.清除查詢資料_bt = New System.Windows.Forms.Button()
68
+        Me.匯出EXCEL_bt = New System.Windows.Forms.Button()
69
+        Me.BBBToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
69 70
         CType(Me.明細_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
70 71
         Me.ContextMenuStrip1.SuspendLayout()
71 72
         Me.SuspendLayout()
@@ -438,35 +439,28 @@ Partial Class 營運成本收支單_對帳表
438 439
         Me.明細_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
439 440
         Me.明細_dgv.Name = "明細_dgv"
440 441
         Me.明細_dgv.RowHeadersWidth = 5
441
-        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
442
-        Me.明細_dgv.RowsDefaultCellStyle = DataGridViewCellStyle2
442
+        DataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
443
+        Me.明細_dgv.RowsDefaultCellStyle = DataGridViewCellStyle1
443 444
         Me.明細_dgv.RowTemplate.Height = 24
444
-        Me.明細_dgv.Size = New System.Drawing.Size(1743, 544)
445
+        Me.明細_dgv.Size = New System.Drawing.Size(1868, 544)
445 446
         Me.明細_dgv.TabIndex = 1073
446 447
         '
447 448
         'ContextMenuStrip1
448 449
         '
449
-        Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.重新整理ToolStripMenuItem, Me.ToolStripSeparator2, Me.BBBToolStripMenuItem})
450
+        Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.重新整理ToolStripMenuItem, Me.ToolStripSeparator2})
450 451
         Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
451
-        Me.ContextMenuStrip1.Size = New System.Drawing.Size(147, 54)
452
+        Me.ContextMenuStrip1.Size = New System.Drawing.Size(123, 32)
452 453
         '
453 454
         '重新整理ToolStripMenuItem
454 455
         '
455 456
         Me.重新整理ToolStripMenuItem.Name = "重新整理ToolStripMenuItem"
456
-        Me.重新整理ToolStripMenuItem.Size = New System.Drawing.Size(146, 22)
457
+        Me.重新整理ToolStripMenuItem.Size = New System.Drawing.Size(122, 22)
457 458
         Me.重新整理ToolStripMenuItem.Text = "重新整理"
458 459
         '
459 460
         'ToolStripSeparator2
460 461
         '
461 462
         Me.ToolStripSeparator2.Name = "ToolStripSeparator2"
462
-        Me.ToolStripSeparator2.Size = New System.Drawing.Size(143, 6)
463
-        '
464
-        'BBBToolStripMenuItem
465
-        '
466
-        Me.BBBToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
467
-        Me.BBBToolStripMenuItem.Name = "BBBToolStripMenuItem"
468
-        Me.BBBToolStripMenuItem.Size = New System.Drawing.Size(146, 22)
469
-        Me.BBBToolStripMenuItem.Text = "列印成EXCEL"
463
+        Me.ToolStripSeparator2.Size = New System.Drawing.Size(119, 6)
470 464
         '
471 465
         'Timer1
472 466
         '
@@ -475,11 +469,11 @@ Partial Class 營運成本收支單_對帳表
475 469
         '資料尚未存檔_lb
476 470
         '
477 471
         Me.資料尚未存檔_lb.AutoSize = True
478
-        Me.資料尚未存檔_lb.Font = New System.Drawing.Font("微軟正黑體", 21.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
472
+        Me.資料尚未存檔_lb.Font = New System.Drawing.Font("微軟正黑體", 18.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
479 473
         Me.資料尚未存檔_lb.ForeColor = System.Drawing.Color.Red
480
-        Me.資料尚未存檔_lb.Location = New System.Drawing.Point(1473, 11)
474
+        Me.資料尚未存檔_lb.Location = New System.Drawing.Point(1592, 14)
481 475
         Me.資料尚未存檔_lb.Name = "資料尚未存檔_lb"
482
-        Me.資料尚未存檔_lb.Size = New System.Drawing.Size(331, 37)
476
+        Me.資料尚未存檔_lb.Size = New System.Drawing.Size(278, 31)
483 477
         Me.資料尚未存檔_lb.TabIndex = 1075
484 478
         Me.資料尚未存檔_lb.Text = "資    料    尚    未    存    檔"
485 479
         Me.資料尚未存檔_lb.Visible = False
@@ -512,12 +506,33 @@ Partial Class 營運成本收支單_對帳表
512 506
         Me.清除查詢資料_bt.Text = "清除查詢資料"
513 507
         Me.清除查詢資料_bt.UseVisualStyleBackColor = True
514 508
         '
509
+        '匯出EXCEL_bt
510
+        '
511
+        Me.匯出EXCEL_bt.AutoSize = True
512
+        Me.匯出EXCEL_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
513
+        Me.匯出EXCEL_bt.ForeColor = System.Drawing.Color.DarkRed
514
+        Me.匯出EXCEL_bt.Location = New System.Drawing.Point(1473, 4)
515
+        Me.匯出EXCEL_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
516
+        Me.匯出EXCEL_bt.Name = "匯出EXCEL_bt"
517
+        Me.匯出EXCEL_bt.Size = New System.Drawing.Size(113, 50)
518
+        Me.匯出EXCEL_bt.TabIndex = 1435
519
+        Me.匯出EXCEL_bt.Text = "匯出EXCEL"
520
+        Me.匯出EXCEL_bt.UseVisualStyleBackColor = True
521
+        '
522
+        'BBBToolStripMenuItem
523
+        '
524
+        Me.BBBToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
525
+        Me.BBBToolStripMenuItem.Name = "BBBToolStripMenuItem"
526
+        Me.BBBToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
527
+        Me.BBBToolStripMenuItem.Text = "列印成EXCEL"
528
+        '
515 529
         '營運成本收支單_對帳表
516 530
         '
517 531
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
518 532
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
519
-        Me.ClientSize = New System.Drawing.Size(1754, 611)
533
+        Me.ClientSize = New System.Drawing.Size(1879, 611)
520 534
         Me.ContextMenuStrip = Me.ContextMenuStrip1
535
+        Me.Controls.Add(Me.匯出EXCEL_bt)
521 536
         Me.Controls.Add(Me.清除查詢資料_bt)
522 537
         Me.Controls.Add(Me.對帳記錄存檔_bt)
523 538
         Me.Controls.Add(Me.關鍵字查詢_bt)
@@ -602,10 +617,11 @@ Partial Class 營運成本收支單_對帳表
602 617
     Friend WithEvents ContextMenuStrip1 As ContextMenuStrip
603 618
     Friend WithEvents 重新整理ToolStripMenuItem As ToolStripMenuItem
604 619
     Friend WithEvents ToolStripSeparator2 As ToolStripSeparator
605
-    Friend WithEvents BBBToolStripMenuItem As ToolStripMenuItem
606 620
     Friend WithEvents Timer1 As Timer
607 621
     Friend WithEvents 資料尚未存檔_lb As Label
608 622
     Friend WithEvents 關鍵字查詢_bt As Button
609 623
     Friend WithEvents 對帳記錄存檔_bt As Button
610 624
     Friend WithEvents 清除查詢資料_bt As Button
625
+    Friend WithEvents 匯出EXCEL_bt As Button
626
+    Friend WithEvents BBBToolStripMenuItem As ToolStripMenuItem
611 627
 End Class

+ 236
- 8
YD-ERP-SYS/財務系統管理/營運成本收支單 - 對帳表.vb Прегледај датотеку

@@ -1,12 +1,22 @@
1 1
 Option Strict Off
2
+Imports Microsoft.Office.Interop.Excel.XlUnderlineStyle
3
+Imports Microsoft.Office.Interop.Excel.Constants
4
+Imports Microsoft.Office.Interop.Excel.XlBordersIndex
5
+Imports Microsoft.Office.Interop.Excel.XlLineStyle
6
+Imports Microsoft.Office.Interop.Excel.XlBorderWeight
7
+Imports Microsoft.Office.Interop.Excel.XlThemeFont
8
+Imports Microsoft.Office.Interop.Excel.XlThemeColor
9
+Imports Microsoft.Office.Interop.Excel.XlWindowState
2 10
 Imports System.Data.SqlClient
3 11
 Public Class 營運成本收支單_對帳表
4 12
     ReadOnly conn1 As New SqlConnection
5 13
     ReadOnly cmd As New SqlCommand : ReadOnly cmd1 As New SqlCommand
6
-    'Dim dr As SqlDataReader
7
-    'ReadOnly da As New SqlDataAdapter
8 14
     ReadOnly ds As New DataSet
9
-    'PA20 = KKKJJ3 : PA19 = KKKJJ : PA18 = KKKJJ2 : PA17 = KKK3 : PA16 = KKK4
15
+    Dim N2 As Integer
16
+    Dim xlApp As Microsoft.Office.Interop.Excel.Application
17
+    Dim xlBook As Microsoft.Office.Interop.Excel.Workbook
18
+    Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
19
+    Dim 位置1 As String
10 20
     Private Sub Set_清單1()
11 21
         明細_dgv.DataSource = Nothing : ds.Clear()
12 22
         明細_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
@@ -57,8 +67,8 @@ Public Class 營運成本收支單_對帳表
57 67
         Next i
58 68
         損益1_tb.Text = Val(已兌現支票1_tb.Text) + Val(零用金1_tb.Text) + Val(現金1_tb.Text) - Val(支出1_tb.Text)
59 69
         If Val(損益1_tb.Text) > 0 Then : 損益1_tb.ForeColor = Color.Blue : Else : 損益1_tb.ForeColor = Color.Red : End If
60
-        支出1_tb.Text = Format(Val(支出1_tb.Text), "#,##0") : 損益1_tb.Text = Format(Val(損益1_tb.Text), "#,##0") : 現金1_tb.Text = Format(Val(現金1_tb.Text), "#,##0")
61
-        零用金1_tb.Text = Format(Val(零用金1_tb.Text), "#,##0") : 已兌現支票1_tb.Text = Format(Val(已兌現支票1_tb.Text), "#,##0") : 未兌現支票1_tb.Text = Format(Val(未兌現支票1_tb.Text), "#,##0")
70
+        支出1_tb.Text = Strings.Format(Val(支出1_tb.Text), "#,##0") : 損益1_tb.Text = Strings.Format(Val(損益1_tb.Text), "#,##0") : 現金1_tb.Text = Strings.Format(Val(現金1_tb.Text), "#,##0")
71
+        零用金1_tb.Text = Strings.Format(Val(零用金1_tb.Text), "#,##0") : 已兌現支票1_tb.Text = Strings.Format(Val(已兌現支票1_tb.Text), "#,##0") : 未兌現支票1_tb.Text =Strings. Format(Val(未兌現支票1_tb.Text), "#,##0")
62 72
     End Sub
63 73
     Private Sub ComboBox1下拉表單資料載入()
64 74
         conn.Close()
@@ -132,8 +142,8 @@ Public Class 營運成本收支單_對帳表
132 142
     End Sub
133 143
     Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 明細_dgv.CellClick
134 144
         If e.RowIndex = -1 Then : Else
135
-            收支單號_tb.Text = 明細_dgv.Rows(e.RowIndex).Cells("收支單號").Value
136 145
             Timer1.Enabled = True
146
+            收支單號_tb.Text = 明細_dgv.Rows(e.RowIndex).Cells("收支單號").Value
137 147
             總金額計算()
138 148
         End If
139 149
     End Sub
@@ -194,12 +204,230 @@ Public Class 營運成本收支單_對帳表
194 204
         MsgBox("待開發。")
195 205
         '列印_零用金支付明細.ShowDialog()
196 206
     End Sub
197
-
198
-
199 207
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles 關鍵字查詢_bt.Click
200 208
         PA = InputBox("請輸入要查詢的關鍵字。")
201 209
         PA18 = " AND (公帳控制表.支付單號 LIKE N'%" & PA & "%' OR 公帳控制表.申請人 LIKE N'%" & PA & "%' OR 公帳控制表.審核人 LIKE N'%" & PA &
202 210
                  "%' OR 公帳流水帳.明細 LIKE N'%" & PA & "%' OR 公帳控制表.備註 LIKE N'%" & PA & "%' OR 公帳流水帳.備註 LIKE N'%" & PA & "%')" : Set_清單1()
203 211
         PA18 = "" : PA = ""
204 212
     End Sub
213
+
214
+    '-----------------------------EXCEL--------------------------------------------------------------------------------------------------------------------------------------
215
+    Private Shared Function NewMethod(xlBook As Microsoft.Office.Interop.Excel.Workbook) As Microsoft.Office.Interop.Excel.Worksheet
216
+        Return CType(xlBook.Worksheets.Add, Microsoft.Office.Interop.Excel.Worksheet)
217
+    End Function
218
+    Private Sub 匯出EXCEL_bt_Click(sender As Object, e As EventArgs) Handles 匯出EXCEL_bt.Click
219
+        xlApp = CType(CreateObject("Excel.Application"), Microsoft.Office.Interop.Excel.Application)
220
+        xlApp.Visible = True
221
+        xlApp.DisplayAlerts = True
222
+        xlApp.Application.WindowState = xlMaximized
223
+        xlBook = xlApp.Workbooks.Add
224
+        xlSheet = NewMethod(xlBook)
225
+        xlBook.Activate()
226
+        xlSheet.Activate()
227
+
228
+        xlSheet.Cells(1, 1) = "雅邸家具有限公司-營運費用收支明細表"
229
+        xlSheet.Cells(2, 1) = "收支單號 "
230
+        xlSheet.Cells(2, 2) = "申請人"
231
+        xlSheet.Cells(2, 3) = "申請日期 "
232
+        xlSheet.Cells(2, 4) = "審核人"
233
+        xlSheet.Cells(2, 5) = "審核日期"
234
+        xlSheet.Cells(2, 6) = "項次"
235
+        xlSheet.Cells(2, 7) = "會計科目 "
236
+        xlSheet.Cells(2, 8) = "用途與內容"
237
+        xlSheet.Cells(2, 9) = "零用金"
238
+        xlSheet.Cells(2, 10) = "支票"
239
+        xlSheet.Cells(2, 11) = "現金"
240
+        xlSheet.Cells(2, 12) = "支出"
241
+
242
+        For i As Integer = 0 To 明細_dgv.Rows.Count - 1
243
+            xlSheet.Cells(i + 3, 1) = 明細_dgv.Rows(i).Cells("收支單號").Value
244
+            xlSheet.Cells(i + 3, 2) = 明細_dgv.Rows(i).Cells("申請人").Value
245
+            xlSheet.Cells(i + 3, 3) = 明細_dgv.Rows(i).Cells("申請日期").Value
246
+            xlSheet.Cells(i + 3, 4) = 明細_dgv.Rows(i).Cells("審核人").Value
247
+            xlSheet.Cells(i + 3, 5) = 明細_dgv.Rows(i).Cells("審核日期").Value
248
+            xlSheet.Cells(i + 3, 6) = 明細_dgv.Rows(i).Cells("項次").Value
249
+            xlSheet.Cells(i + 3, 7) = 明細_dgv.Rows(i).Cells("會計科目").Value
250
+            xlSheet.Cells(i + 3, 8) = 明細_dgv.Rows(i).Cells("用途與內容").Value
251
+            xlSheet.Cells(i + 3, 9) = 明細_dgv.Rows(i).Cells("零用金").Value
252
+            xlSheet.Cells(i + 3, 10) = 明細_dgv.Rows(i).Cells("支票").Value
253
+            xlSheet.Cells(i + 3, 11) = 明細_dgv.Rows(i).Cells("現金").Value
254
+            xlSheet.Cells(i + 3, 12) = 明細_dgv.Rows(i).Cells("支出").Value
255
+            N2 = i + 3
256
+        Next i
257
+
258
+        xlSheet.Cells(N2 + 1, 8) = "合計"
259
+        xlSheet.Cells(N2 + 1, 9) = "=SUM(I3:I" & N2 & ")"
260
+        xlSheet.Cells(N2 + 1, 10) = "=SUM(J3:J" & N2 & ")"
261
+        xlSheet.Cells(N2 + 1, 11) = "=SUM(K3:K" & N2 & ")"
262
+        xlSheet.Cells(N2 + 1, 12) = "=SUM(L3:L" & N2 & ")"
263
+
264
+        '--------------------------------------彙總-----------------------------
265
+        xlSheet.Cells(N2 + 2, 8) = "彙總"
266
+        xlSheet.Cells(N2 + 2, 9) = "=I" & N2 + 1 & "+J" & N2 + 1 & "+K" & N2 + 1 & "-L" & N2 + 1 & ""
267
+
268
+        BB(xlApp, xlSheet)
269
+        xlSheet.PageSetup.PrintArea = ""
270
+        xlApp.Cells.Select()
271
+        xlApp.Application.WindowState = xlMinimized
272
+        MsgBox("列印完成!!!")
273
+        'Me.Close()
274
+    End Sub
275
+    Private Sub BB(ByVal myExcel As Microsoft.Office.Interop.Excel.Application, ByVal xlSheet As Microsoft.Office.Interop.Excel.Worksheet)
276
+        xlSheet.Cells.Select()
277
+        With myExcel.Selection.Font
278
+            .Name = "微軟正黑體" : .Size = 10 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False
279
+            .Shadow = False : .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
280
+        End With
281
+
282
+        xlSheet.Columns("A:A").Select : myExcel.Selection.ColumnWidth = 15
283
+        xlSheet.Columns("B:B").Select : myExcel.Selection.ColumnWidth = 9
284
+        xlSheet.Columns("C:C").Select : myExcel.Selection.ColumnWidth = 9
285
+        xlSheet.Columns("D:D").Select : myExcel.Selection.ColumnWidth = 9
286
+        xlSheet.Columns("E:E").Select : myExcel.Selection.ColumnWidth = 9
287
+        xlSheet.Columns("F:F").Select : myExcel.Selection.ColumnWidth = 5
288
+        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False
289
+            .IndentLevel = 0 : .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
290
+        End With
291
+
292
+        xlSheet.Columns("G:G").Select : myExcel.Selection.ColumnWidth = 20
293
+        xlSheet.Columns("H:H").Select : myExcel.Selection.ColumnWidth = 35
294
+        With myExcel.Selection : .HorizontalAlignment = xlLeft : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False
295
+            .IndentLevel = 0 : .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
296
+        End With
297
+
298
+        xlSheet.Columns("I:L").Select : myExcel.Selection.ColumnWidth = 9 : myExcel.Selection.Style = "Comma"
299
+        myExcel.Selection.NumberFormatLocal = "_-* #,##0.0_-;-* #,##0.0_-;_-* ""-""??_-;_-@_-"
300
+        myExcel.Selection.NumberFormatLocal = "_-* #,##0_-;-* #,##0_-;_-* ""-""??_-;_-@_-"
301
+        xlSheet.Rows("1:1").Select : myExcel.Selection.RowHeight = 35
302
+        xlSheet.Rows("2:2").Select : myExcel.Selection.RowHeight = 30
303
+        With myExcel.Selection : .VerticalAlignment = xlTop : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0 : .ShrinkToFit = False
304
+            .ReadingOrder = xlContext : .MergeCells = False
305
+        End With
306
+
307
+        myExcel.Selection.AutoFilter
308
+        xlSheet.Rows("1:1").Select
309
+        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False
310
+            .IndentLevel = 0 : .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
311
+        End With
312
+
313
+        xlSheet.Range("A1:L1").Select()
314
+        With myExcel.Selection
315
+            .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
316
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
317
+        End With
318
+        myExcel.Selection.Merge
319
+        xlSheet.Rows("3:3").Select : myExcel.ActiveWindow.FreezePanes = True : xlSheet.Range("A1:L2").Select()
320
+        myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
321
+
322
+        With myExcel.Selection.Borders(xlEdgeLeft)
323
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin
324
+        End With
325
+
326
+        With myExcel.Selection.Borders(xlEdgeTop)
327
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin
328
+        End With
329
+
330
+        With myExcel.Selection.Borders(xlEdgeBottom)
331
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin
332
+        End With
333
+
334
+        With myExcel.Selection.Borders(xlEdgeRight)
335
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin
336
+        End With
337
+
338
+        With myExcel.Selection.Borders(xlInsideVertical)
339
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin
340
+        End With
341
+        With myExcel.Selection.Borders(xlInsideHorizontal)
342
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin
343
+        End With
344
+        myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
345
+
346
+        With myExcel.Selection.Borders(xlEdgeLeft)
347
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium
348
+        End With
349
+
350
+        With myExcel.Selection.Borders(xlEdgeTop)
351
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium
352
+        End With
353
+
354
+        With myExcel.Selection.Borders(xlEdgeBottom)
355
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium
356
+        End With
357
+        With myExcel.Selection.Borders(xlEdgeRight)
358
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium
359
+        End With
360
+        With myExcel.Selection.Borders(xlInsideVertical)
361
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin
362
+        End With
363
+        With myExcel.Selection.Borders(xlInsideHorizontal)
364
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin
365
+        End With
366
+        xlSheet.Range("A3:L" & N2).Select()
367
+        myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
368
+
369
+        With myExcel.Selection.Borders(xlEdgeLeft)
370
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin
371
+        End With
372
+        With myExcel.Selection.Borders(xlEdgeTop)
373
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin
374
+        End With
375
+        With myExcel.Selection.Borders(xlEdgeBottom)
376
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin
377
+        End With
378
+        With myExcel.Selection.Borders(xlEdgeRight)
379
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin
380
+        End With
381
+        With myExcel.Selection.Borders(xlInsideVertical)
382
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin
383
+        End With
384
+        With myExcel.Selection.Borders(xlInsideHorizontal)
385
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin
386
+        End With
387
+        myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone
388
+        myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
389
+        With myExcel.Selection.Borders(xlEdgeLeft)
390
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium
391
+        End With
392
+        With myExcel.Selection.Borders(xlEdgeTop)
393
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium
394
+        End With
395
+        With myExcel.Selection.Borders(xlEdgeBottom)
396
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium
397
+        End With
398
+        With myExcel.Selection.Borders(xlEdgeRight)
399
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium
400
+        End With
401
+        With myExcel.Selection.Borders(xlInsideVertical)
402
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin
403
+        End With
404
+        With myExcel.Selection.Borders(xlInsideHorizontal)
405
+            .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin
406
+        End With
407
+        xlSheet.Range("L2").Select() : myExcel.Selection.ClearContents
408
+        xlSheet.Range("L2").Select() : myExcel.Selection.ClearContents
409
+
410
+        xlSheet.Range("A2:L2").Select()
411
+        With myExcel.Selection
412
+            .HorizontalAlignment = xlCenter : .VerticalAlignment = xlTop : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
413
+            .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False
414
+        End With
415
+        With myExcel.Selection.Font
416
+            .Name = "微軟正黑體"
417
+            .Size = 14 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False : .Underline = xlUnderlineStyleNone
418
+            .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
419
+        End With
420
+        With myExcel.Selection.Font
421
+            .Name = "微軟正黑體" : .Size = 12 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False
422
+            .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
423
+        End With
424
+        With myExcel.Selection.Interior
425
+            .Pattern = xlSolid : .PatternColorIndex = xlAutomatic : .ThemeColor = xlThemeColorAccent6 : .TintAndShade = 0 : .PatternTintAndShade = 0
426
+        End With
427
+        xlSheet.Range("A1:L1").Select() : myExcel.Selection.Font.Size = 11
428
+        With myExcel.Selection.Font
429
+            .Name = "微軟正黑體" : .Size = 22 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False
430
+            .Shadow = False : .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone
431
+        End With
432
+    End Sub
205 433
 End Class

+ 709
- 0
YD-ERP-SYS/財務系統管理/薪資轉帳表.Designer.vb Прегледај датотеку

@@ -0,0 +1,709 @@
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
+Partial Class 薪資轉帳表
3
+    Inherits System.Windows.Forms.Form
4
+
5
+    'Form 覆寫 Dispose 以清除元件清單。
6
+    <System.Diagnostics.DebuggerNonUserCode()> _
7
+    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
8
+        Try
9
+            If disposing AndAlso components IsNot Nothing Then
10
+                components.Dispose()
11
+            End If
12
+        Finally
13
+            MyBase.Dispose(disposing)
14
+        End Try
15
+    End Sub
16
+
17
+    '為 Windows Form 設計工具的必要項
18
+    Private components As System.ComponentModel.IContainer
19
+
20
+    '注意: 以下為 Windows Form 設計工具所需的程序
21
+    '可以使用 Windows Form 設計工具進行修改。
22
+    '請勿使用程式碼編輯器進行修改。
23
+    <System.Diagnostics.DebuggerStepThrough()> _
24
+    Private Sub InitializeComponent()
25
+        Me.components = New System.ComponentModel.Container()
26
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(薪資轉帳表))
28
+        Me.薪資帳號_tb = New System.Windows.Forms.TextBox()
29
+        Me.狀態_lb = New System.Windows.Forms.Label()
30
+        Me.流水號_tb = New System.Windows.Forms.TextBox()
31
+        Me.刪除_bt = New System.Windows.Forms.Button()
32
+        Me.存檔_bt = New System.Windows.Forms.Button()
33
+        Me.新增準備_bt = New System.Windows.Forms.Button()
34
+        Me.領現_tb = New System.Windows.Forms.TextBox()
35
+        Me.薪資_tb = New System.Windows.Forms.TextBox()
36
+        Me.獎金_tb = New System.Windows.Forms.TextBox()
37
+        Me.身分證_tb = New System.Windows.Forms.TextBox()
38
+        Me.編號_tb = New System.Windows.Forms.TextBox()
39
+        Me.Label10 = New System.Windows.Forms.Label()
40
+        Me.Label8 = New System.Windows.Forms.Label()
41
+        Me.Label7 = New System.Windows.Forms.Label()
42
+        Me.Label6 = New System.Windows.Forms.Label()
43
+        Me.Label5 = New System.Windows.Forms.Label()
44
+        Me.Label3 = New System.Windows.Forms.Label()
45
+        Me.Label1 = New System.Windows.Forms.Label()
46
+        Me.薪轉_dgv = New System.Windows.Forms.DataGridView()
47
+        Me.給付方式_cb = New System.Windows.Forms.ComboBox()
48
+        Me.Label9 = New System.Windows.Forms.Label()
49
+        Me.薪資總金額_tb = New System.Windows.Forms.TextBox()
50
+        Me.領現總金額_tb = New System.Windows.Forms.TextBox()
51
+        Me.Label2 = New System.Windows.Forms.Label()
52
+        Me.Label4 = New System.Windows.Forms.Label()
53
+        Me.姓名_cb = New System.Windows.Forms.ComboBox()
54
+        Me.人事流水號_tb = New System.Windows.Forms.TextBox()
55
+        Me.Label11 = New System.Windows.Forms.Label()
56
+        Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
57
+        Me.重新整理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
58
+        Me.ToolStripSeparator3 = New System.Windows.Forms.ToolStripSeparator()
59
+        Me.新增準備ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
60
+        Me.存檔ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
61
+        Me.刪除ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
62
+        Me.上個月_bt = New System.Windows.Forms.Button()
63
+        Me.一般月_ch = New System.Windows.Forms.CheckBox()
64
+        Me.會計月_ch = New System.Windows.Forms.CheckBox()
65
+        Me.下個月_bt = New System.Windows.Forms.Button()
66
+        Me.Label12 = New System.Windows.Forms.Label()
67
+        Me.結束日期_dtp = New System.Windows.Forms.DateTimePicker()
68
+        Me.開始日期_dtp = New System.Windows.Forms.DateTimePicker()
69
+        Me.中間日期_dtp = New System.Windows.Forms.DateTimePicker()
70
+        Me.合計總金額_tb = New System.Windows.Forms.TextBox()
71
+        Me.Label13 = New System.Windows.Forms.Label()
72
+        Me.匯入EXCEL_bt = New System.Windows.Forms.Button()
73
+        Me.匯出EXCEL_bt = New System.Windows.Forms.Button()
74
+        Me.批量存檔_bt = New System.Windows.Forms.Button()
75
+        Me.Label14 = New System.Windows.Forms.Label()
76
+        Me.Label15 = New System.Windows.Forms.Label()
77
+        Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
78
+        CType(Me.薪轉_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
79
+        Me.ContextMenuStrip1.SuspendLayout()
80
+        Me.SuspendLayout()
81
+        '
82
+        '薪資帳號_tb
83
+        '
84
+        Me.薪資帳號_tb.Location = New System.Drawing.Point(837, 11)
85
+        Me.薪資帳號_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
86
+        Me.薪資帳號_tb.Name = "薪資帳號_tb"
87
+        Me.薪資帳號_tb.ReadOnly = True
88
+        Me.薪資帳號_tb.Size = New System.Drawing.Size(116, 23)
89
+        Me.薪資帳號_tb.TabIndex = 1046
90
+        '
91
+        '狀態_lb
92
+        '
93
+        Me.狀態_lb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
94
+        Me.狀態_lb.AutoSize = True
95
+        Me.狀態_lb.Font = New System.Drawing.Font("微軟正黑體", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
96
+        Me.狀態_lb.ForeColor = System.Drawing.Color.Red
97
+        Me.狀態_lb.Location = New System.Drawing.Point(1410, 18)
98
+        Me.狀態_lb.Name = "狀態_lb"
99
+        Me.狀態_lb.Size = New System.Drawing.Size(48, 48)
100
+        Me.狀態_lb.TabIndex = 1045
101
+        Me.狀態_lb.Text = "編輯" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "狀態"
102
+        '
103
+        '流水號_tb
104
+        '
105
+        Me.流水號_tb.Location = New System.Drawing.Point(126, 163)
106
+        Me.流水號_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
107
+        Me.流水號_tb.Name = "流水號_tb"
108
+        Me.流水號_tb.Size = New System.Drawing.Size(116, 23)
109
+        Me.流水號_tb.TabIndex = 1044
110
+        '
111
+        '刪除_bt
112
+        '
113
+        Me.刪除_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
114
+        Me.刪除_bt.AutoSize = True
115
+        Me.刪除_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
116
+        Me.刪除_bt.ForeColor = System.Drawing.Color.Red
117
+        Me.刪除_bt.Location = New System.Drawing.Point(1616, 11)
118
+        Me.刪除_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
119
+        Me.刪除_bt.Name = "刪除_bt"
120
+        Me.刪除_bt.Size = New System.Drawing.Size(77, 63)
121
+        Me.刪除_bt.TabIndex = 1043
122
+        Me.刪除_bt.Text = "刪除"
123
+        Me.刪除_bt.UseVisualStyleBackColor = True
124
+        '
125
+        '存檔_bt
126
+        '
127
+        Me.存檔_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
128
+        Me.存檔_bt.AutoSize = True
129
+        Me.存檔_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
130
+        Me.存檔_bt.ForeColor = System.Drawing.Color.Green
131
+        Me.存檔_bt.Location = New System.Drawing.Point(1537, 11)
132
+        Me.存檔_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
133
+        Me.存檔_bt.Name = "存檔_bt"
134
+        Me.存檔_bt.Size = New System.Drawing.Size(77, 63)
135
+        Me.存檔_bt.TabIndex = 1042
136
+        Me.存檔_bt.Text = "存檔"
137
+        Me.存檔_bt.UseVisualStyleBackColor = True
138
+        '
139
+        '新增準備_bt
140
+        '
141
+        Me.新增準備_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
142
+        Me.新增準備_bt.AutoSize = True
143
+        Me.新增準備_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
144
+        Me.新增準備_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
145
+        Me.新增準備_bt.Location = New System.Drawing.Point(1458, 11)
146
+        Me.新增準備_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
147
+        Me.新增準備_bt.Name = "新增準備_bt"
148
+        Me.新增準備_bt.Size = New System.Drawing.Size(77, 63)
149
+        Me.新增準備_bt.TabIndex = 1041
150
+        Me.新增準備_bt.Text = "新增" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "準備"
151
+        Me.新增準備_bt.UseVisualStyleBackColor = True
152
+        '
153
+        '領現_tb
154
+        '
155
+        Me.領現_tb.Location = New System.Drawing.Point(837, 41)
156
+        Me.領現_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
157
+        Me.領現_tb.Name = "領現_tb"
158
+        Me.領現_tb.Size = New System.Drawing.Size(116, 23)
159
+        Me.領現_tb.TabIndex = 1040
160
+        Me.領現_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
161
+        '
162
+        '薪資_tb
163
+        '
164
+        Me.薪資_tb.Location = New System.Drawing.Point(681, 41)
165
+        Me.薪資_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
166
+        Me.薪資_tb.Name = "薪資_tb"
167
+        Me.薪資_tb.Size = New System.Drawing.Size(116, 23)
168
+        Me.薪資_tb.TabIndex = 1038
169
+        Me.薪資_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
170
+        '
171
+        '獎金_tb
172
+        '
173
+        Me.獎金_tb.Location = New System.Drawing.Point(681, 11)
174
+        Me.獎金_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
175
+        Me.獎金_tb.Name = "獎金_tb"
176
+        Me.獎金_tb.Size = New System.Drawing.Size(116, 23)
177
+        Me.獎金_tb.TabIndex = 1037
178
+        Me.獎金_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
179
+        '
180
+        '身分證_tb
181
+        '
182
+        Me.身分證_tb.Location = New System.Drawing.Point(522, 11)
183
+        Me.身分證_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
184
+        Me.身分證_tb.Name = "身分證_tb"
185
+        Me.身分證_tb.ReadOnly = True
186
+        Me.身分證_tb.Size = New System.Drawing.Size(116, 23)
187
+        Me.身分證_tb.TabIndex = 1035
188
+        '
189
+        '編號_tb
190
+        '
191
+        Me.編號_tb.Location = New System.Drawing.Point(333, 11)
192
+        Me.編號_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
193
+        Me.編號_tb.Name = "編號_tb"
194
+        Me.編號_tb.ReadOnly = True
195
+        Me.編號_tb.Size = New System.Drawing.Size(116, 23)
196
+        Me.編號_tb.TabIndex = 1031
197
+        '
198
+        'Label10
199
+        '
200
+        Me.Label10.AutoSize = True
201
+        Me.Label10.Location = New System.Drawing.Point(801, 48)
202
+        Me.Label10.Name = "Label10"
203
+        Me.Label10.Size = New System.Drawing.Size(32, 16)
204
+        Me.Label10.TabIndex = 1030
205
+        Me.Label10.Text = "領現"
206
+        '
207
+        'Label8
208
+        '
209
+        Me.Label8.AutoSize = True
210
+        Me.Label8.ForeColor = System.Drawing.Color.Black
211
+        Me.Label8.Location = New System.Drawing.Point(643, 48)
212
+        Me.Label8.Name = "Label8"
213
+        Me.Label8.Size = New System.Drawing.Size(32, 16)
214
+        Me.Label8.TabIndex = 1028
215
+        Me.Label8.Text = "薪資"
216
+        '
217
+        'Label7
218
+        '
219
+        Me.Label7.AutoSize = True
220
+        Me.Label7.Location = New System.Drawing.Point(642, 16)
221
+        Me.Label7.Name = "Label7"
222
+        Me.Label7.Size = New System.Drawing.Size(32, 16)
223
+        Me.Label7.TabIndex = 1027
224
+        Me.Label7.Text = "獎金"
225
+        '
226
+        'Label6
227
+        '
228
+        Me.Label6.AutoSize = True
229
+        Me.Label6.Location = New System.Drawing.Point(801, 16)
230
+        Me.Label6.Name = "Label6"
231
+        Me.Label6.Size = New System.Drawing.Size(32, 16)
232
+        Me.Label6.TabIndex = 1026
233
+        Me.Label6.Text = "帳號"
234
+        '
235
+        'Label5
236
+        '
237
+        Me.Label5.AutoSize = True
238
+        Me.Label5.Location = New System.Drawing.Point(453, 16)
239
+        Me.Label5.Name = "Label5"
240
+        Me.Label5.Size = New System.Drawing.Size(56, 16)
241
+        Me.Label5.TabIndex = 1025
242
+        Me.Label5.Text = "身分證號"
243
+        '
244
+        'Label3
245
+        '
246
+        Me.Label3.AutoSize = True
247
+        Me.Label3.ForeColor = System.Drawing.Color.Red
248
+        Me.Label3.Location = New System.Drawing.Point(295, 46)
249
+        Me.Label3.Name = "Label3"
250
+        Me.Label3.Size = New System.Drawing.Size(32, 16)
251
+        Me.Label3.TabIndex = 1023
252
+        Me.Label3.Text = "姓名"
253
+        '
254
+        'Label1
255
+        '
256
+        Me.Label1.AutoSize = True
257
+        Me.Label1.Location = New System.Drawing.Point(295, 16)
258
+        Me.Label1.Name = "Label1"
259
+        Me.Label1.Size = New System.Drawing.Size(32, 16)
260
+        Me.Label1.TabIndex = 1021
261
+        Me.Label1.Text = "編號"
262
+        '
263
+        '薪轉_dgv
264
+        '
265
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
266
+        Me.薪轉_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
267
+        Me.薪轉_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
268
+            Or System.Windows.Forms.AnchorStyles.Left) _
269
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
270
+        Me.薪轉_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
271
+        Me.薪轉_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
272
+        Me.薪轉_dgv.Location = New System.Drawing.Point(14, 119)
273
+        Me.薪轉_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
274
+        Me.薪轉_dgv.Name = "薪轉_dgv"
275
+        Me.薪轉_dgv.RowHeadersWidth = 5
276
+        Me.薪轉_dgv.RowTemplate.Height = 24
277
+        Me.薪轉_dgv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect
278
+        Me.薪轉_dgv.Size = New System.Drawing.Size(1679, 868)
279
+        Me.薪轉_dgv.TabIndex = 1020
280
+        '
281
+        '給付方式_cb
282
+        '
283
+        Me.給付方式_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
284
+        Me.給付方式_cb.FormattingEnabled = True
285
+        Me.給付方式_cb.Items.AddRange(New Object() {"帳號匯款", "領現"})
286
+        Me.給付方式_cb.Location = New System.Drawing.Point(522, 42)
287
+        Me.給付方式_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
288
+        Me.給付方式_cb.Name = "給付方式_cb"
289
+        Me.給付方式_cb.Size = New System.Drawing.Size(116, 24)
290
+        Me.給付方式_cb.TabIndex = 1181
291
+        '
292
+        'Label9
293
+        '
294
+        Me.Label9.AutoSize = True
295
+        Me.Label9.ForeColor = System.Drawing.Color.Red
296
+        Me.Label9.Location = New System.Drawing.Point(453, 49)
297
+        Me.Label9.Name = "Label9"
298
+        Me.Label9.Size = New System.Drawing.Size(56, 16)
299
+        Me.Label9.TabIndex = 1180
300
+        Me.Label9.Text = "給付方式"
301
+        '
302
+        '薪資總金額_tb
303
+        '
304
+        Me.薪資總金額_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
305
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
306
+        Me.薪資總金額_tb.ForeColor = System.Drawing.Color.Blue
307
+        Me.薪資總金額_tb.Location = New System.Drawing.Point(80, 88)
308
+        Me.薪資總金額_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
309
+        Me.薪資總金額_tb.Name = "薪資總金額_tb"
310
+        Me.薪資總金額_tb.ReadOnly = True
311
+        Me.薪資總金額_tb.Size = New System.Drawing.Size(168, 23)
312
+        Me.薪資總金額_tb.TabIndex = 1419
313
+        Me.薪資總金額_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
314
+        '
315
+        '領現總金額_tb
316
+        '
317
+        Me.領現總金額_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
318
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
319
+        Me.領現總金額_tb.ForeColor = System.Drawing.Color.ForestGreen
320
+        Me.領現總金額_tb.Location = New System.Drawing.Point(322, 88)
321
+        Me.領現總金額_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
322
+        Me.領現總金額_tb.Name = "領現總金額_tb"
323
+        Me.領現總金額_tb.ReadOnly = True
324
+        Me.領現總金額_tb.Size = New System.Drawing.Size(168, 23)
325
+        Me.領現總金額_tb.TabIndex = 1418
326
+        Me.領現總金額_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
327
+        '
328
+        'Label2
329
+        '
330
+        Me.Label2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
331
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
332
+        Me.Label2.AutoSize = True
333
+        Me.Label2.ForeColor = System.Drawing.Color.ForestGreen
334
+        Me.Label2.Location = New System.Drawing.Point(252, 92)
335
+        Me.Label2.Name = "Label2"
336
+        Me.Label2.Size = New System.Drawing.Size(68, 16)
337
+        Me.Label2.TabIndex = 1417
338
+        Me.Label2.Text = "領現總金額"
339
+        '
340
+        'Label4
341
+        '
342
+        Me.Label4.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
343
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
344
+        Me.Label4.AutoSize = True
345
+        Me.Label4.ForeColor = System.Drawing.Color.Blue
346
+        Me.Label4.Location = New System.Drawing.Point(7, 92)
347
+        Me.Label4.Name = "Label4"
348
+        Me.Label4.Size = New System.Drawing.Size(71, 16)
349
+        Me.Label4.TabIndex = 1416
350
+        Me.Label4.Text = " 薪資總金額"
351
+        '
352
+        '姓名_cb
353
+        '
354
+        Me.姓名_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
355
+        Me.姓名_cb.FormattingEnabled = True
356
+        Me.姓名_cb.Location = New System.Drawing.Point(333, 42)
357
+        Me.姓名_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
358
+        Me.姓名_cb.Name = "姓名_cb"
359
+        Me.姓名_cb.Size = New System.Drawing.Size(116, 24)
360
+        Me.姓名_cb.TabIndex = 1420
361
+        '
362
+        '人事流水號_tb
363
+        '
364
+        Me.人事流水號_tb.Location = New System.Drawing.Point(1031, 11)
365
+        Me.人事流水號_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
366
+        Me.人事流水號_tb.Name = "人事流水號_tb"
367
+        Me.人事流水號_tb.ReadOnly = True
368
+        Me.人事流水號_tb.Size = New System.Drawing.Size(116, 23)
369
+        Me.人事流水號_tb.TabIndex = 1421
370
+        Me.人事流水號_tb.Visible = False
371
+        '
372
+        'Label11
373
+        '
374
+        Me.Label11.AutoSize = True
375
+        Me.Label11.Location = New System.Drawing.Point(957, 16)
376
+        Me.Label11.Name = "Label11"
377
+        Me.Label11.Size = New System.Drawing.Size(68, 16)
378
+        Me.Label11.TabIndex = 1422
379
+        Me.Label11.Text = "人事流水號"
380
+        Me.Label11.Visible = False
381
+        '
382
+        'ContextMenuStrip1
383
+        '
384
+        Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.重新整理ToolStripMenuItem, Me.ToolStripSeparator3, Me.新增準備ToolStripMenuItem, Me.存檔ToolStripMenuItem, Me.刪除ToolStripMenuItem})
385
+        Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
386
+        Me.ContextMenuStrip1.Size = New System.Drawing.Size(123, 98)
387
+        '
388
+        '重新整理ToolStripMenuItem
389
+        '
390
+        Me.重新整理ToolStripMenuItem.Name = "重新整理ToolStripMenuItem"
391
+        Me.重新整理ToolStripMenuItem.Size = New System.Drawing.Size(122, 22)
392
+        Me.重新整理ToolStripMenuItem.Text = "重新整理"
393
+        '
394
+        'ToolStripSeparator3
395
+        '
396
+        Me.ToolStripSeparator3.Name = "ToolStripSeparator3"
397
+        Me.ToolStripSeparator3.Size = New System.Drawing.Size(119, 6)
398
+        '
399
+        '新增準備ToolStripMenuItem
400
+        '
401
+        Me.新增準備ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
402
+        Me.新增準備ToolStripMenuItem.Name = "新增準備ToolStripMenuItem"
403
+        Me.新增準備ToolStripMenuItem.Size = New System.Drawing.Size(122, 22)
404
+        Me.新增準備ToolStripMenuItem.Text = "新增準備"
405
+        '
406
+        '存檔ToolStripMenuItem
407
+        '
408
+        Me.存檔ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
409
+        Me.存檔ToolStripMenuItem.Name = "存檔ToolStripMenuItem"
410
+        Me.存檔ToolStripMenuItem.Size = New System.Drawing.Size(122, 22)
411
+        Me.存檔ToolStripMenuItem.Text = "存檔"
412
+        '
413
+        '刪除ToolStripMenuItem
414
+        '
415
+        Me.刪除ToolStripMenuItem.ForeColor = System.Drawing.Color.Red
416
+        Me.刪除ToolStripMenuItem.Name = "刪除ToolStripMenuItem"
417
+        Me.刪除ToolStripMenuItem.Size = New System.Drawing.Size(122, 22)
418
+        Me.刪除ToolStripMenuItem.Text = "刪除"
419
+        '
420
+        '上個月_bt
421
+        '
422
+        Me.上個月_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
423
+        Me.上個月_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
424
+        Me.上個月_bt.Location = New System.Drawing.Point(148, 40)
425
+        Me.上個月_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
426
+        Me.上個月_bt.Name = "上個月_bt"
427
+        Me.上個月_bt.Size = New System.Drawing.Size(71, 31)
428
+        Me.上個月_bt.TabIndex = 1426
429
+        Me.上個月_bt.Text = "上個月"
430
+        Me.上個月_bt.UseVisualStyleBackColor = True
431
+        '
432
+        '一般月_ch
433
+        '
434
+        Me.一般月_ch.AutoSize = True
435
+        Me.一般月_ch.Location = New System.Drawing.Point(79, 45)
436
+        Me.一般月_ch.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
437
+        Me.一般月_ch.Name = "一般月_ch"
438
+        Me.一般月_ch.Size = New System.Drawing.Size(63, 20)
439
+        Me.一般月_ch.TabIndex = 1429
440
+        Me.一般月_ch.Text = "一般月"
441
+        Me.一般月_ch.UseVisualStyleBackColor = True
442
+        Me.一般月_ch.Visible = False
443
+        '
444
+        '會計月_ch
445
+        '
446
+        Me.會計月_ch.AutoSize = True
447
+        Me.會計月_ch.Checked = True
448
+        Me.會計月_ch.CheckState = System.Windows.Forms.CheckState.Checked
449
+        Me.會計月_ch.Location = New System.Drawing.Point(11, 45)
450
+        Me.會計月_ch.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
451
+        Me.會計月_ch.Name = "會計月_ch"
452
+        Me.會計月_ch.Size = New System.Drawing.Size(63, 20)
453
+        Me.會計月_ch.TabIndex = 1428
454
+        Me.會計月_ch.Text = "會計月"
455
+        Me.會計月_ch.UseVisualStyleBackColor = True
456
+        '
457
+        '下個月_bt
458
+        '
459
+        Me.下個月_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
460
+        Me.下個月_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
461
+        Me.下個月_bt.Location = New System.Drawing.Point(221, 40)
462
+        Me.下個月_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
463
+        Me.下個月_bt.Name = "下個月_bt"
464
+        Me.下個月_bt.Size = New System.Drawing.Size(71, 31)
465
+        Me.下個月_bt.TabIndex = 1427
466
+        Me.下個月_bt.Text = "下個月"
467
+        Me.下個月_bt.UseVisualStyleBackColor = True
468
+        '
469
+        'Label12
470
+        '
471
+        Me.Label12.AutoSize = True
472
+        Me.Label12.Location = New System.Drawing.Point(143, 17)
473
+        Me.Label12.Name = "Label12"
474
+        Me.Label12.Size = New System.Drawing.Size(20, 16)
475
+        Me.Label12.TabIndex = 1425
476
+        Me.Label12.Text = "到"
477
+        '
478
+        '結束日期_dtp
479
+        '
480
+        Me.結束日期_dtp.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
481
+        Me.結束日期_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
482
+        Me.結束日期_dtp.Location = New System.Drawing.Point(169, 12)
483
+        Me.結束日期_dtp.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
484
+        Me.結束日期_dtp.Name = "結束日期_dtp"
485
+        Me.結束日期_dtp.Size = New System.Drawing.Size(122, 23)
486
+        Me.結束日期_dtp.TabIndex = 1424
487
+        '
488
+        '開始日期_dtp
489
+        '
490
+        Me.開始日期_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
491
+        Me.開始日期_dtp.Location = New System.Drawing.Point(14, 12)
492
+        Me.開始日期_dtp.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
493
+        Me.開始日期_dtp.Name = "開始日期_dtp"
494
+        Me.開始日期_dtp.Size = New System.Drawing.Size(122, 23)
495
+        Me.開始日期_dtp.TabIndex = 1423
496
+        '
497
+        '中間日期_dtp
498
+        '
499
+        Me.中間日期_dtp.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
500
+        Me.中間日期_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
501
+        Me.中間日期_dtp.Location = New System.Drawing.Point(26, 163)
502
+        Me.中間日期_dtp.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
503
+        Me.中間日期_dtp.Name = "中間日期_dtp"
504
+        Me.中間日期_dtp.Size = New System.Drawing.Size(49, 23)
505
+        Me.中間日期_dtp.TabIndex = 1430
506
+        Me.中間日期_dtp.Visible = False
507
+        '
508
+        '合計總金額_tb
509
+        '
510
+        Me.合計總金額_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
511
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
512
+        Me.合計總金額_tb.ForeColor = System.Drawing.Color.Crimson
513
+        Me.合計總金額_tb.Location = New System.Drawing.Point(564, 88)
514
+        Me.合計總金額_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
515
+        Me.合計總金額_tb.Name = "合計總金額_tb"
516
+        Me.合計總金額_tb.ReadOnly = True
517
+        Me.合計總金額_tb.Size = New System.Drawing.Size(168, 23)
518
+        Me.合計總金額_tb.TabIndex = 1432
519
+        Me.合計總金額_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
520
+        '
521
+        'Label13
522
+        '
523
+        Me.Label13.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
524
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
525
+        Me.Label13.AutoSize = True
526
+        Me.Label13.ForeColor = System.Drawing.Color.Crimson
527
+        Me.Label13.Location = New System.Drawing.Point(494, 92)
528
+        Me.Label13.Name = "Label13"
529
+        Me.Label13.Size = New System.Drawing.Size(68, 16)
530
+        Me.Label13.TabIndex = 1431
531
+        Me.Label13.Text = "合計總金額"
532
+        '
533
+        '匯入EXCEL_bt
534
+        '
535
+        Me.匯入EXCEL_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
536
+        Me.匯入EXCEL_bt.AutoSize = True
537
+        Me.匯入EXCEL_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
538
+        Me.匯入EXCEL_bt.ForeColor = System.Drawing.Color.Black
539
+        Me.匯入EXCEL_bt.Location = New System.Drawing.Point(1326, 10)
540
+        Me.匯入EXCEL_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
541
+        Me.匯入EXCEL_bt.Name = "匯入EXCEL_bt"
542
+        Me.匯入EXCEL_bt.Size = New System.Drawing.Size(82, 64)
543
+        Me.匯入EXCEL_bt.TabIndex = 1433
544
+        Me.匯入EXCEL_bt.Text = "匯入EXCEL"
545
+        Me.匯入EXCEL_bt.UseVisualStyleBackColor = True
546
+        '
547
+        '匯出EXCEL_bt
548
+        '
549
+        Me.匯出EXCEL_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
550
+        Me.匯出EXCEL_bt.AutoSize = True
551
+        Me.匯出EXCEL_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
552
+        Me.匯出EXCEL_bt.ForeColor = System.Drawing.Color.Black
553
+        Me.匯出EXCEL_bt.Location = New System.Drawing.Point(1242, 10)
554
+        Me.匯出EXCEL_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
555
+        Me.匯出EXCEL_bt.Name = "匯出EXCEL_bt"
556
+        Me.匯出EXCEL_bt.Size = New System.Drawing.Size(82, 64)
557
+        Me.匯出EXCEL_bt.TabIndex = 1434
558
+        Me.匯出EXCEL_bt.Text = "匯出EXCEL"
559
+        Me.匯出EXCEL_bt.UseVisualStyleBackColor = True
560
+        '
561
+        '批量存檔_bt
562
+        '
563
+        Me.批量存檔_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
564
+        Me.批量存檔_bt.AutoSize = True
565
+        Me.批量存檔_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
566
+        Me.批量存檔_bt.ForeColor = System.Drawing.Color.Firebrick
567
+        Me.批量存檔_bt.Location = New System.Drawing.Point(1458, 88)
568
+        Me.批量存檔_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
569
+        Me.批量存檔_bt.Name = "批量存檔_bt"
570
+        Me.批量存檔_bt.Size = New System.Drawing.Size(235, 27)
571
+        Me.批量存檔_bt.TabIndex = 1435
572
+        Me.批量存檔_bt.Text = "批量存檔"
573
+        Me.批量存檔_bt.UseVisualStyleBackColor = True
574
+        '
575
+        'Label14
576
+        '
577
+        Me.Label14.AutoSize = True
578
+        Me.Label14.Location = New System.Drawing.Point(3, 67)
579
+        Me.Label14.Name = "Label14"
580
+        Me.Label14.Size = New System.Drawing.Size(1228, 16)
581
+        Me.Label14.TabIndex = 1436
582
+        Me.Label14.Text = resources.GetString("Label14.Text")
583
+        '
584
+        'Label15
585
+        '
586
+        Me.Label15.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
587
+        Me.Label15.AutoSize = True
588
+        Me.Label15.Location = New System.Drawing.Point(465, 67)
589
+        Me.Label15.Name = "Label15"
590
+        Me.Label15.Size = New System.Drawing.Size(1228, 16)
591
+        Me.Label15.TabIndex = 1437
592
+        Me.Label15.Text = resources.GetString("Label15.Text")
593
+        '
594
+        'Timer1
595
+        '
596
+        Me.Timer1.Interval = 500
597
+        '
598
+        '薪資轉帳表
599
+        '
600
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
601
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
602
+        Me.ClientSize = New System.Drawing.Size(1707, 1000)
603
+        Me.ContextMenuStrip = Me.ContextMenuStrip1
604
+        Me.Controls.Add(Me.批量存檔_bt)
605
+        Me.Controls.Add(Me.匯出EXCEL_bt)
606
+        Me.Controls.Add(Me.匯入EXCEL_bt)
607
+        Me.Controls.Add(Me.合計總金額_tb)
608
+        Me.Controls.Add(Me.Label13)
609
+        Me.Controls.Add(Me.中間日期_dtp)
610
+        Me.Controls.Add(Me.上個月_bt)
611
+        Me.Controls.Add(Me.一般月_ch)
612
+        Me.Controls.Add(Me.會計月_ch)
613
+        Me.Controls.Add(Me.下個月_bt)
614
+        Me.Controls.Add(Me.Label12)
615
+        Me.Controls.Add(Me.結束日期_dtp)
616
+        Me.Controls.Add(Me.開始日期_dtp)
617
+        Me.Controls.Add(Me.Label11)
618
+        Me.Controls.Add(Me.人事流水號_tb)
619
+        Me.Controls.Add(Me.姓名_cb)
620
+        Me.Controls.Add(Me.薪資總金額_tb)
621
+        Me.Controls.Add(Me.領現總金額_tb)
622
+        Me.Controls.Add(Me.Label2)
623
+        Me.Controls.Add(Me.Label4)
624
+        Me.Controls.Add(Me.給付方式_cb)
625
+        Me.Controls.Add(Me.Label9)
626
+        Me.Controls.Add(Me.薪資帳號_tb)
627
+        Me.Controls.Add(Me.狀態_lb)
628
+        Me.Controls.Add(Me.刪除_bt)
629
+        Me.Controls.Add(Me.存檔_bt)
630
+        Me.Controls.Add(Me.新增準備_bt)
631
+        Me.Controls.Add(Me.領現_tb)
632
+        Me.Controls.Add(Me.薪資_tb)
633
+        Me.Controls.Add(Me.獎金_tb)
634
+        Me.Controls.Add(Me.身分證_tb)
635
+        Me.Controls.Add(Me.編號_tb)
636
+        Me.Controls.Add(Me.Label10)
637
+        Me.Controls.Add(Me.Label8)
638
+        Me.Controls.Add(Me.Label7)
639
+        Me.Controls.Add(Me.Label6)
640
+        Me.Controls.Add(Me.Label5)
641
+        Me.Controls.Add(Me.Label3)
642
+        Me.Controls.Add(Me.Label1)
643
+        Me.Controls.Add(Me.流水號_tb)
644
+        Me.Controls.Add(Me.薪轉_dgv)
645
+        Me.Controls.Add(Me.Label14)
646
+        Me.Controls.Add(Me.Label15)
647
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
648
+        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow
649
+        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
650
+        Me.Name = "薪資轉帳表"
651
+        Me.Text = "薪資轉帳表"
652
+        CType(Me.薪轉_dgv, System.ComponentModel.ISupportInitialize).EndInit()
653
+        Me.ContextMenuStrip1.ResumeLayout(False)
654
+        Me.ResumeLayout(False)
655
+        Me.PerformLayout()
656
+
657
+    End Sub
658
+
659
+    Friend WithEvents 薪資帳號_tb As TextBox
660
+    Friend WithEvents 狀態_lb As Label
661
+    Friend WithEvents 流水號_tb As TextBox
662
+    Friend WithEvents 刪除_bt As Button
663
+    Friend WithEvents 存檔_bt As Button
664
+    Friend WithEvents 新增準備_bt As Button
665
+    Friend WithEvents 領現_tb As TextBox
666
+    Friend WithEvents 薪資_tb As TextBox
667
+    Friend WithEvents 獎金_tb As TextBox
668
+    Friend WithEvents 身分證_tb As TextBox
669
+    Friend WithEvents 編號_tb As TextBox
670
+    Friend WithEvents Label10 As Label
671
+    Friend WithEvents Label8 As Label
672
+    Friend WithEvents Label7 As Label
673
+    Friend WithEvents Label6 As Label
674
+    Friend WithEvents Label5 As Label
675
+    Friend WithEvents Label3 As Label
676
+    Friend WithEvents Label1 As Label
677
+    Friend WithEvents 薪轉_dgv As DataGridView
678
+    Friend WithEvents 給付方式_cb As ComboBox
679
+    Friend WithEvents Label9 As Label
680
+    Friend WithEvents 薪資總金額_tb As TextBox
681
+    Friend WithEvents 領現總金額_tb As TextBox
682
+    Friend WithEvents Label2 As Label
683
+    Friend WithEvents Label4 As Label
684
+    Friend WithEvents 姓名_cb As ComboBox
685
+    Friend WithEvents 人事流水號_tb As TextBox
686
+    Friend WithEvents Label11 As Label
687
+    Friend WithEvents ContextMenuStrip1 As ContextMenuStrip
688
+    Friend WithEvents 重新整理ToolStripMenuItem As ToolStripMenuItem
689
+    Friend WithEvents ToolStripSeparator3 As ToolStripSeparator
690
+    Friend WithEvents 新增準備ToolStripMenuItem As ToolStripMenuItem
691
+    Friend WithEvents 存檔ToolStripMenuItem As ToolStripMenuItem
692
+    Friend WithEvents 刪除ToolStripMenuItem As ToolStripMenuItem
693
+    Friend WithEvents 上個月_bt As Button
694
+    Friend WithEvents 一般月_ch As CheckBox
695
+    Friend WithEvents 會計月_ch As CheckBox
696
+    Friend WithEvents 下個月_bt As Button
697
+    Friend WithEvents Label12 As Label
698
+    Friend WithEvents 結束日期_dtp As DateTimePicker
699
+    Friend WithEvents 開始日期_dtp As DateTimePicker
700
+    Friend WithEvents 中間日期_dtp As DateTimePicker
701
+    Friend WithEvents 合計總金額_tb As TextBox
702
+    Friend WithEvents Label13 As Label
703
+    Friend WithEvents 匯入EXCEL_bt As Button
704
+    Friend WithEvents 匯出EXCEL_bt As Button
705
+    Friend WithEvents 批量存檔_bt As Button
706
+    Friend WithEvents Label14 As Label
707
+    Friend WithEvents Label15 As Label
708
+    Friend WithEvents Timer1 As Timer
709
+End Class

+ 135
- 0
YD-ERP-SYS/財務系統管理/薪資轉帳表.resx Прегледај датотеку

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

+ 274
- 0
YD-ERP-SYS/財務系統管理/薪資轉帳表.vb Прегледај датотеку

@@ -0,0 +1,274 @@
1
+Option Strict Off
2
+Public Class 薪資轉帳表
3
+    ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet : ReadOnly ds3 As New DataSet : ReadOnly ds4 As New DataSet
4
+    Dim 資料新增判斷 As Boolean : Dim 第一次開啟判斷 As Boolean = False : Dim EDR As Integer = 0 : Dim ESTR As String : Dim EDR1 As Integer = 0
5
+    Dim ESTR1 As String : Dim 首次開啟 As Boolean = False
6
+    Private Sub Set_清單()
7
+        薪轉_dgv.DataSource = Nothing : ds1.Clear()
8
+        薪轉_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
9
+        薪轉_dgv.ColumnHeadersHeight = 40
10
+        薪轉_dgv.AllowUserToAddRows = False
11
+
12
+        薪資轉帳表_月份清單()
13
+        da.Fill(ds1)
14
+        薪轉_dgv.DataSource = ds1.Tables(0)
15
+        conn.Close()
16
+
17
+        薪轉_dgv.Columns(10).Visible = False
18
+        薪轉_dgv.Columns(0).ReadOnly = True : 薪轉_dgv.Columns(1).ReadOnly = True : 薪轉_dgv.Columns(2).ReadOnly = True : 薪轉_dgv.Columns(3).ReadOnly = True
19
+        薪轉_dgv.Columns(4).ReadOnly = False : 薪轉_dgv.Columns(5).ReadOnly = False : 薪轉_dgv.Columns(6).ReadOnly = False : 薪轉_dgv.Columns(7).ReadOnly = False
20
+        薪轉_dgv.Columns(8).ReadOnly = False : 薪轉_dgv.Columns(9).ReadOnly = True
21
+        薪轉_dgv.Columns("獎金").DefaultCellStyle.Format = "#,##0.0"
22
+        薪轉_dgv.Columns("薪資").DefaultCellStyle.Format = "#,##0.0"
23
+        薪轉_dgv.Columns("領現合計").DefaultCellStyle.Format = "#,##0.0"
24
+        薪轉_dgv.Columns("薪資合計").DefaultCellStyle.Format = "#,##0.0"
25
+        薪轉_dgv.Columns("領現").DefaultCellStyle.Format = "#,##0.0"
26
+        '---------------------------------------欄位置中-----------------------------------------------------------'
27
+        薪轉_dgv.Columns("流水號").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
28
+        薪轉_dgv.Columns("流水號").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
29
+        薪轉_dgv.Columns("姓名").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
30
+        薪轉_dgv.Columns("姓名").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
31
+        薪轉_dgv.Columns("身分證").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
32
+        薪轉_dgv.Columns("身分證").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
33
+        薪轉_dgv.Columns("結算日期").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
34
+        薪轉_dgv.Columns("結算日期").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
35
+        薪轉_dgv.Columns("給付方式").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
36
+        薪轉_dgv.Columns("給付方式").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
37
+        薪轉_dgv.Columns("薪資帳號").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
38
+        薪轉_dgv.Columns("薪資帳號").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
39
+        薪轉_dgv.Columns("職務").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
40
+        薪轉_dgv.Columns("職務").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
41
+        薪轉_dgv.Columns("電話").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
42
+        薪轉_dgv.Columns("電話").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
43
+        薪轉_dgv.Columns("手機").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
44
+        薪轉_dgv.Columns("手機").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
45
+        '---------------------------------------欄位靠右-----------------------------------------------------------'
46
+        薪轉_dgv.Columns("獎金").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
47
+        薪轉_dgv.Columns("獎金").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
48
+        薪轉_dgv.Columns("薪資").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
49
+        薪轉_dgv.Columns("薪資").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
50
+        薪轉_dgv.Columns("領現").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
51
+        薪轉_dgv.Columns("領現").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
52
+        薪轉_dgv.Columns("薪資合計").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
53
+        薪轉_dgv.Columns("薪資合計").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
54
+        薪轉_dgv.Columns("領現合計").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
55
+        薪轉_dgv.Columns("領現合計").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
56
+        薪轉_dgv.EditMode = DataGridViewEditMode.EditOnEnter
57
+        Set_合記計算()
58
+    End Sub
59
+    Private Sub Set_合記計算()
60
+        薪資總金額_tb.Text = "0" : 領現總金額_tb.Text = "0" : 合計總金額_tb.Text = "0"
61
+        For i As Integer = 0 To 薪轉_dgv.Rows.Count - 1
62
+            薪轉_dgv("薪資合計", i).Value = 薪轉_dgv("獎金", i).Value + 薪轉_dgv("薪資", i).Value
63
+            薪資總金額_tb.Text = Val(薪資總金額_tb.Text) + 薪轉_dgv("薪資合計", i).Value
64
+            薪轉_dgv("領現合計", i).Value = 薪轉_dgv("領現", i).Value
65
+            領現總金額_tb.Text = Val(領現總金額_tb.Text) + 薪轉_dgv("領現合計", i).Value
66
+            合計總金額_tb.Text = Val(領現總金額_tb.Text) + Val(薪資總金額_tb.Text)
67
+        Next
68
+        薪資總金額_tb.Text = Format(Val(薪資總金額_tb.Text), "#,##0")
69
+        領現總金額_tb.Text = Format(Val(領現總金額_tb.Text), "#,##0")
70
+        合計總金額_tb.Text = Format(Val(合計總金額_tb.Text), "#,##0")
71
+    End Sub
72
+    Private Sub 日期格式()
73
+        If 會計月_ch.Checked = True Then
74
+            '-------------日期一----------------------------------------------------------------------------------------
75
+            DTP = Strings.Left(Format(開始日期_dtp.Value, "yyyy/MM/dd"), 8) & "01" : 開始日期_dtp.Value = DTP
76
+            開始日期_dtp.Value = 開始日期_dtp.Value.AddMonths(-1)
77
+            DTP = Strings.Left(Format(開始日期_dtp.Value, "yyyy/MM/dd"), 8) & "26" : 開始日期_dtp.Value = DTP
78
+            '-------------日期二----------------------------------------------------------------------------------------
79
+            DTP = Strings.Left(Format(結束日期_dtp.Value, "yyyy/MM/dd"), 8) & "25" : 結束日期_dtp.Value = DTP
80
+        Else
81
+            '-------------日期一----------------------------------------------------------------------------------------
82
+            開始日期_dtp.Value = 開始日期_dtp.Value.AddMonths(1)
83
+            DTP = Strings.Left(Format(開始日期_dtp.Value, "yyyy/MM/dd"), 8) & "01" : 開始日期_dtp.Value = DTP
84
+            '-------------日期二----------------------------------------------------------------------------------------
85
+            DTP = Strings.Left(Strings.Format(結束日期_dtp.Value, "yyyy/MM/dd"), 8) & "01" : 結束日期_dtp.Value = DTP
86
+            結束日期_dtp.Value = 結束日期_dtp.Value.AddMonths(1) : 結束日期_dtp.Value = 結束日期_dtp.Value.AddDays(-1)
87
+        End If
88
+    End Sub
89
+    Private Sub 薪資轉帳表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
90
+        Me.MdiParent = YD_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
91
+        狀態_lb.Visible = False
92
+        流水號_tb.Visible = False : 編號_tb.Enabled = False : 第一次開啟判斷 = True
93
+        If 第一次開啟判斷 = True Then
94
+            薪資轉帳表_姓名選擇()
95
+            While dr.Read()
96
+                姓名_cb.Items.Add(dr("姓名").ToString())
97
+            End While
98
+        End If
99
+        conn.Close()
100
+        首次開啟 = False : 日期格式() : Set_清單() : 首次開啟 = True '--------------------資料讀取
101
+    End Sub
102
+    Private Sub 薪資轉帳表_Closed(sender As Object, e As EventArgs) Handles MyBase.Closed
103
+        第一次開啟判斷 = False
104
+    End Sub
105
+    Private Sub 薪轉_dgv_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 薪轉_dgv.CellClick
106
+        If 首次開啟 = True Then
107
+            If e.RowIndex = -1 Then : Else
108
+                流水號_tb.Text = 薪轉_dgv(0, e.RowIndex).Value : 姓名_cb.Text = 薪轉_dgv(1, e.RowIndex).Value.ToString
109
+                身分證_tb.Text = 薪轉_dgv(2, e.RowIndex).Value.ToString : 結束日期_dtp.Value = 薪轉_dgv(3, e.RowIndex).Value.ToString
110
+                獎金_tb.Text = 薪轉_dgv(4, e.RowIndex).Value.ToString : 薪資_tb.Text = 薪轉_dgv(5, e.RowIndex).Value.ToString
111
+                領現_tb.Text = 薪轉_dgv(6, e.RowIndex).Value.ToString : 給付方式_cb.Text = 薪轉_dgv(9, e.RowIndex).Value.ToString
112
+                人事流水號_tb.Text = 薪轉_dgv(10, e.RowIndex).Value.ToString
113
+                獎金_tb.Text = Format(Val(獎金_tb.Text), "#,##0.0")
114
+                薪資_tb.Text = Format(Val(薪資_tb.Text), "#,##0.0")
115
+                領現_tb.Text = Format(Val(領現_tb.Text), "#,##0.0")
116
+
117
+            End If
118
+        End If
119
+    End Sub
120
+    Private Sub 薪轉_dgv_CellEndEdit(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 薪轉_dgv.CellEndEdit
121
+        薪資總金額_tb.Text = "0" : 領現總金額_tb.Text = "0" : 合計總金額_tb.Text = "0"
122
+        For i As Integer = 0 To 薪轉_dgv.Rows.Count - 1
123
+            薪轉_dgv("薪資合計", i).Value = 薪轉_dgv("獎金", i).Value + 薪轉_dgv("薪資", i).Value
124
+            薪資總金額_tb.Text = Val(薪資總金額_tb.Text) + 薪轉_dgv("薪資合計", i).Value
125
+            薪轉_dgv("領現合計", i).Value = 薪轉_dgv("領現", i).Value
126
+            領現總金額_tb.Text = Val(領現總金額_tb.Text) + 薪轉_dgv("領現合計", i).Value
127
+            合計總金額_tb.Text = Val(領現總金額_tb.Text) + Val(薪資總金額_tb.Text)
128
+        Next
129
+        薪資總金額_tb.Text = Format(Val(薪資總金額_tb.Text), "#,##0")
130
+        領現總金額_tb.Text = Format(Val(領現總金額_tb.Text), "#,##0")
131
+        合計總金額_tb.Text = Format(Val(合計總金額_tb.Text), "#,##0")
132
+    End Sub
133
+    Private Sub 新增準備_bt_Click(sender As Object, e As EventArgs) Handles 新增準備_bt.Click
134
+        Timer1.Enabled = True
135
+        流水號_tb.Text = "" : 獎金_tb.Text = "" : 薪資_tb.Text = "" : 領現_tb.Text = ""     '--------------------控件清空
136
+        資料新增判斷 = True '--------------------目前的編輯狀態
137
+        新增準備_bt.Enabled = False  '--------------------關閉點選控制功能
138
+        ': 刪除_bt.Enabled = False : 批量存檔_bt.Enabled = False
139
+        薪轉_dgv.Enabled = False '--------------------關閉DGV控件的點選控制功能
140
+
141
+        SQL_薪資轉帳表_流水號_最後一筆資料() '--------------------自動取得新流水號
142
+        If dr.Read() Then : EDR = Double.Parse(Strings.Right(dr("流水號").ToString, 9)) : Else : EDR = 0 : End If
143
+        conn.Close() : EDR += 1
144
+        If EDR < 10 Then : ESTR = "M" & "00000000" & EDR
145
+        ElseIf EDR > 9 And EDR < 100 Then : ESTR = "M" & "0000000" & EDR
146
+        ElseIf EDR > 99 And EDR < 1000 Then : ESTR = "M" & "000000" & EDR
147
+        ElseIf EDR > 999 And EDR < 10000 Then : ESTR = "M" & "00000" & EDR
148
+        ElseIf EDR > 9999 And EDR < 100000 Then : ESTR = "M" & "0000" & EDR
149
+        ElseIf EDR > 99999 And EDR < 100000 Then : ESTR = "M" & "000" & EDR
150
+        ElseIf EDR > 999999 And EDR < 1000000 Then : ESTR = "M" & "00" & EDR
151
+        ElseIf EDR > 9999999 And EDR < 10000000 Then : ESTR = "M" & "0" & EDR
152
+        ElseIf EDR > 99999999 Then : ESTR = "M" & EDR
153
+        End If : 流水號_tb.Text = ESTR
154
+
155
+        'Set_日期格式轉換() '--------------------到職日期格式傳換
156
+        SQL_薪資轉帳表_新增() '--------------------薪資轉帳表中寫入一筆資料
157
+        Set_清單() '--------------------資料修改後重新讀取清單
158
+    End Sub
159
+    Private Sub 存檔_bt_Click(sender As Object, e As EventArgs) Handles 存檔_bt.Click
160
+        If 流水號_tb.Text = "" Then '--------------------設定條件讓流水號控件不為空
161
+            MsgBox("沒有選擇要存檔的資料")
162
+        Else
163
+            If 姓名_cb.Text = "" Then
164
+                MsgBox("沒有名字難不成要撒錢,請填上他的名字")
165
+            Else
166
+                If 給付方式_cb.Text = "" Then
167
+                    MsgBox("還是選個給薪的方式巴")
168
+                Else
169
+                    資料新增判斷 = False '--------------------目前的編輯狀態
170
+                    狀態_lb.Visible = False
171
+                    薪轉_dgv.Enabled = True '--------------------開啟DGV控件的點選控制功能
172
+                    'Set_日期格式轉換() '--------------------到職日期格式傳換
173
+                    SQL_薪資轉帳表_修改() '--------------------資料修改
174
+                    Set_清單() '--------------------資料修改後重新讀取清單
175
+                    新增準備_bt.Enabled = True
176
+                End If
177
+            End If
178
+            Timer1.Enabled = False
179
+        End If
180
+    End Sub
181
+    Private Sub 刪除_bt_Click(sender As Object, e As EventArgs) Handles 刪除_bt.Click
182
+        If 流水號_tb.Text = "" Then '--------------------設定條件讓流水號控件不為空
183
+            MsgBox("沒有選擇要刪除的資料")
184
+        Else
185
+            Dim aa1 As MsgBoxResult = MsgBox("確定要執行刪除指令嗎?", MsgBoxStyle.OkCancel)
186
+            If aa1 = MsgBoxResult.Ok Then
187
+                SQL_薪資轉帳表_刪除() '--------------------資料刪除
188
+                Set_清單() '--------------------資料修改後重新讀取清單
189
+            End If
190
+        End If
191
+    End Sub
192
+    Private Sub 姓名_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 姓名_cb.SelectedIndexChanged
193
+        ConnOpen() : SQL1 = "SELECT 流水號 FROM 人事資料表 WHERE (姓名 = N'" & Me.姓名_cb.Text & "')"
194
+        CmdSet_For_dr()
195
+        dr.Read()
196
+        人事流水號_tb.Text = dr("流水號").ToString()
197
+        conn.Close()
198
+        ConnOpen() : SQL1 = "SELECT 身分證, 舊編, 薪資帳號 FROM 人事資料表 WHERE (姓名 = N'" & Me.姓名_cb.Text & "')"
199
+        CmdSet_For_dr()
200
+        dr.Read()
201
+        身分證_tb.Text = dr("身分證").ToString()
202
+        編號_tb.Text = dr("舊編").ToString()
203
+        薪資帳號_tb.Text = dr("薪資帳號").ToString()
204
+        conn.Close()
205
+    End Sub
206
+    Private Sub 開始日期_dtp_ValueChanged(sender As Object, e As EventArgs) Handles 開始日期_dtp.ValueChanged
207
+        Set_清單()
208
+    End Sub
209
+    Private Sub 結束日期_dtp_ValueChanged(sender As Object, e As EventArgs) Handles 結束日期_dtp.ValueChanged
210
+        Set_清單()
211
+    End Sub
212
+    Private Sub 會計月_CheckedChanged(sender As Object, e As EventArgs) Handles 會計月_ch.Click
213
+        會計月_ch.Checked = True : 一般月_ch.Checked = False : 日期格式()
214
+    End Sub
215
+    Private Sub 一般月_CheckedChanged(sender As Object, e As EventArgs) Handles 一般月_ch.Click
216
+        會計月_ch.Checked = False : 一般月_ch.Checked = True : 日期格式()
217
+    End Sub
218
+    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
219
+        If 狀態_lb.Visible = True Then : 狀態_lb.Visible = False : Else : 狀態_lb.Visible = True : End If
220
+    End Sub
221
+    Private Sub 上個月_bt_Click(sender As Object, e As EventArgs) Handles 上個月_bt.Click
222
+        If 會計月_ch.Checked = True Then
223
+            中間日期_dtp.Value = 中間日期_dtp.Value.AddMonths(-1)
224
+            開始日期_dtp.Value = 中間日期_dtp.Value
225
+            結束日期_dtp.Value = 中間日期_dtp.Value
226
+        Else
227
+            中間日期_dtp.Value = 中間日期_dtp.Value.AddMonths(-1)
228
+            開始日期_dtp.Value = 中間日期_dtp.Value.AddMonths(-1)
229
+            結束日期_dtp.Value = 中間日期_dtp.Value
230
+        End If
231
+        日期格式()
232
+    End Sub
233
+    Private Sub 下個月_bt_Click(sender As Object, e As EventArgs) Handles 下個月_bt.Click
234
+        If 會計月_ch.Checked = True Then
235
+            中間日期_dtp.Value = 中間日期_dtp.Value.AddMonths(1)
236
+            開始日期_dtp.Value = 中間日期_dtp.Value
237
+            結束日期_dtp.Value = 中間日期_dtp.Value
238
+        Else
239
+            中間日期_dtp.Value = 中間日期_dtp.Value.AddMonths(1)
240
+            開始日期_dtp.Value = 中間日期_dtp.Value.AddMonths(-1)
241
+            結束日期_dtp.Value = 中間日期_dtp.Value
242
+        End If
243
+        日期格式()
244
+    End Sub
245
+    Private Sub 重新整理ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 重新整理ToolStripMenuItem.Click
246
+        Set_清單()
247
+    End Sub
248
+    Private Sub 新增準備ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 新增準備ToolStripMenuItem.Click
249
+        新增準備_bt.PerformClick()
250
+    End Sub
251
+    Private Sub 存檔ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 存檔ToolStripMenuItem.Click
252
+        存檔_bt.PerformClick()
253
+    End Sub
254
+    Private Sub 刪除ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 刪除ToolStripMenuItem.Click
255
+        刪除_bt.PerformClick()
256
+    End Sub
257
+    Private Sub 匯入EXCEL_bt_Click(sender As Object, e As EventArgs) Handles 匯入EXCEL_bt.Click
258
+        PA = "" : 匯入EXCEL.ShowDialog() : 匯入EXCEL.BringToFront()
259
+    End Sub
260
+    Private Sub 匯出EXCEL_bt_Click(sender As Object, e As EventArgs) Handles 匯出EXCEL_bt.Click 
261
+        PA = "" : 匯出EXCEL.ShowDialog() : 匯出EXCEL.BringToFront()
262
+    End Sub
263
+    Private Sub 批量存檔_Click(sender As Object, e As EventArgs) Handles 批量存檔_bt.Click
264
+        For i As Integer = 0 To 薪轉_dgv.Rows.Count - 1
265
+            資料數 = 薪轉_dgv.Rows.Count : MyModule1.進度條() : YD_ERP_SYS.ToolStripProgressBar1.Value = 最終數
266
+            PA1 = 薪轉_dgv.Rows(i).Cells("流水號").Value : PA2 = 薪轉_dgv.Rows(i).Cells("姓名").Value.ToString : PA3 = 薪轉_dgv.Rows(i).Cells("身分證").Value.ToString
267
+            PA4 = 薪轉_dgv.Rows(i).Cells("結算日期").Value : PA5 = 薪轉_dgv.Rows(i).Cells("獎金").Value : PA6 = 薪轉_dgv.Rows(i).Cells("薪資").Value
268
+            PA7 = 薪轉_dgv.Rows(i).Cells("領現").Value.ToString : PA8 = 薪轉_dgv.Rows(i).Cells("薪資合計").Value : PA9 = 薪轉_dgv.Rows(i).Cells("領現合計").Value
269
+            PA10 = 薪轉_dgv.Rows(i).Cells("給付方式").Value : PA11 = 薪轉_dgv.Rows(i).Cells("薪資帳號").Value.ToString : PA12 = 薪轉_dgv.Rows(i).Cells("職務").Value
270
+            PA13 = 薪轉_dgv.Rows(i).Cells("電話").Value : PA14 = 薪轉_dgv.Rows(i).Cells("手機").Value : PA15 = 薪轉_dgv.Rows(i).Cells("流水號").Value
271
+            SQL_薪資轉帳表_批量存檔薪轉資料() : conn.Close()
272
+        Next : YD_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0 : MsgBox("批量存檔完成")
273
+    End Sub
274
+End Class

+ 173
- 48
YD-ERP-SYS/資料庫系統管理/系統使用者管理.Designer.vb Прегледај датотеку

@@ -22,7 +22,7 @@ Partial Class 系統使用者管理
22 22
     '請勿使用程式碼編輯器進行修改。
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25
-        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
25
+        Dim DataGridViewCellStyle20 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26 26
         Me.顯示密碼_bt = New System.Windows.Forms.Button()
27 27
         Me.修改_bt = New System.Windows.Forms.Button()
28 28
         Me.新增_bt = New System.Windows.Forms.Button()
@@ -87,6 +87,15 @@ Partial Class 系統使用者管理
87 87
         Me.Label8 = New System.Windows.Forms.Label()
88 88
         Me.Label7 = New System.Windows.Forms.Label()
89 89
         Me.Label6 = New System.Windows.Forms.Label()
90
+        Me.CheckBox38 = New System.Windows.Forms.CheckBox()
91
+        Me.CheckBox39 = New System.Windows.Forms.CheckBox()
92
+        Me.CheckBox40 = New System.Windows.Forms.CheckBox()
93
+        Me.CheckBox41 = New System.Windows.Forms.CheckBox()
94
+        Me.CheckBox42 = New System.Windows.Forms.CheckBox()
95
+        Me.CheckBox43 = New System.Windows.Forms.CheckBox()
96
+        Me.CheckBox44 = New System.Windows.Forms.CheckBox()
97
+        Me.CheckBox45 = New System.Windows.Forms.CheckBox()
98
+        Me.CheckBox46 = New System.Windows.Forms.CheckBox()
90 99
         CType(Me.使用者清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
91 100
         Me.Panel1.SuspendLayout()
92 101
         Me.SuspendLayout()
@@ -218,8 +227,8 @@ Partial Class 系統使用者管理
218 227
         '
219 228
         '使用者清單_dgv
220 229
         '
221
-        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
222
-        Me.使用者清單_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
230
+        DataGridViewCellStyle20.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
231
+        Me.使用者清單_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle20
223 232
         Me.使用者清單_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
224 233
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
225 234
         Me.使用者清單_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
@@ -272,7 +281,7 @@ Partial Class 系統使用者管理
272 281
         'CheckBox1
273 282
         '
274 283
         Me.CheckBox1.AutoSize = True
275
-        Me.CheckBox1.Location = New System.Drawing.Point(882, 7)
284
+        Me.CheckBox1.Location = New System.Drawing.Point(893, 7)
276 285
         Me.CheckBox1.Name = "CheckBox1"
277 286
         Me.CheckBox1.Size = New System.Drawing.Size(146, 20)
278 287
         Me.CheckBox1.TabIndex = 225
@@ -283,7 +292,7 @@ Partial Class 系統使用者管理
283 292
         '
284 293
         Me.CheckBox2.AutoSize = True
285 294
         Me.CheckBox2.ForeColor = System.Drawing.Color.Red
286
-        Me.CheckBox2.Location = New System.Drawing.Point(904, 33)
295
+        Me.CheckBox2.Location = New System.Drawing.Point(915, 33)
287 296
         Me.CheckBox2.Name = "CheckBox2"
288 297
         Me.CheckBox2.Size = New System.Drawing.Size(146, 20)
289 298
         Me.CheckBox2.TabIndex = 226
@@ -294,7 +303,7 @@ Partial Class 系統使用者管理
294 303
         '
295 304
         Me.CheckBox3.AutoSize = True
296 305
         Me.CheckBox3.ForeColor = System.Drawing.Color.Red
297
-        Me.CheckBox3.Location = New System.Drawing.Point(904, 59)
306
+        Me.CheckBox3.Location = New System.Drawing.Point(915, 59)
298 307
         Me.CheckBox3.Name = "CheckBox3"
299 308
         Me.CheckBox3.Size = New System.Drawing.Size(134, 20)
300 309
         Me.CheckBox3.TabIndex = 227
@@ -305,7 +314,7 @@ Partial Class 系統使用者管理
305 314
         '
306 315
         Me.CheckBox4.AutoSize = True
307 316
         Me.CheckBox4.ForeColor = System.Drawing.Color.Red
308
-        Me.CheckBox4.Location = New System.Drawing.Point(904, 85)
317
+        Me.CheckBox4.Location = New System.Drawing.Point(915, 85)
309 318
         Me.CheckBox4.Name = "CheckBox4"
310 319
         Me.CheckBox4.Size = New System.Drawing.Size(170, 20)
311 320
         Me.CheckBox4.TabIndex = 228
@@ -316,7 +325,7 @@ Partial Class 系統使用者管理
316 325
         '
317 326
         Me.CheckBox5.AutoSize = True
318 327
         Me.CheckBox5.ForeColor = System.Drawing.Color.Red
319
-        Me.CheckBox5.Location = New System.Drawing.Point(904, 111)
328
+        Me.CheckBox5.Location = New System.Drawing.Point(915, 111)
320 329
         Me.CheckBox5.Name = "CheckBox5"
321 330
         Me.CheckBox5.Size = New System.Drawing.Size(142, 20)
322 331
         Me.CheckBox5.TabIndex = 229
@@ -326,7 +335,7 @@ Partial Class 系統使用者管理
326 335
         'CheckBox6
327 336
         '
328 337
         Me.CheckBox6.AutoSize = True
329
-        Me.CheckBox6.Location = New System.Drawing.Point(663, 7)
338
+        Me.CheckBox6.Location = New System.Drawing.Point(674, 7)
330 339
         Me.CheckBox6.Name = "CheckBox6"
331 340
         Me.CheckBox6.Size = New System.Drawing.Size(134, 20)
332 341
         Me.CheckBox6.TabIndex = 230
@@ -337,7 +346,7 @@ Partial Class 系統使用者管理
337 346
         '
338 347
         Me.CheckBox7.AutoSize = True
339 348
         Me.CheckBox7.ForeColor = System.Drawing.Color.Red
340
-        Me.CheckBox7.Location = New System.Drawing.Point(685, 33)
349
+        Me.CheckBox7.Location = New System.Drawing.Point(696, 33)
341 350
         Me.CheckBox7.Name = "CheckBox7"
342 351
         Me.CheckBox7.Size = New System.Drawing.Size(122, 20)
343 352
         Me.CheckBox7.TabIndex = 231
@@ -348,7 +357,7 @@ Partial Class 系統使用者管理
348 357
         '
349 358
         Me.CheckBox8.AutoSize = True
350 359
         Me.CheckBox8.ForeColor = System.Drawing.Color.Red
351
-        Me.CheckBox8.Location = New System.Drawing.Point(685, 60)
360
+        Me.CheckBox8.Location = New System.Drawing.Point(696, 60)
352 361
         Me.CheckBox8.Name = "CheckBox8"
353 362
         Me.CheckBox8.Size = New System.Drawing.Size(134, 20)
354 363
         Me.CheckBox8.TabIndex = 232
@@ -359,7 +368,7 @@ Partial Class 系統使用者管理
359 368
         '
360 369
         Me.CheckBox9.AutoSize = True
361 370
         Me.CheckBox9.ForeColor = System.Drawing.Color.Red
362
-        Me.CheckBox9.Location = New System.Drawing.Point(685, 85)
371
+        Me.CheckBox9.Location = New System.Drawing.Point(696, 85)
363 372
         Me.CheckBox9.Name = "CheckBox9"
364 373
         Me.CheckBox9.Size = New System.Drawing.Size(110, 20)
365 374
         Me.CheckBox9.TabIndex = 233
@@ -370,7 +379,7 @@ Partial Class 系統使用者管理
370 379
         '
371 380
         Me.CheckBox10.AutoSize = True
372 381
         Me.CheckBox10.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(0, Byte), Integer))
373
-        Me.CheckBox10.Location = New System.Drawing.Point(685, 189)
382
+        Me.CheckBox10.Location = New System.Drawing.Point(696, 189)
374 383
         Me.CheckBox10.Name = "CheckBox10"
375 384
         Me.CheckBox10.Size = New System.Drawing.Size(134, 20)
376 385
         Me.CheckBox10.TabIndex = 234
@@ -381,7 +390,7 @@ Partial Class 系統使用者管理
381 390
         '
382 391
         Me.CheckBox11.AutoSize = True
383 392
         Me.CheckBox11.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(0, Byte), Integer))
384
-        Me.CheckBox11.Location = New System.Drawing.Point(685, 215)
393
+        Me.CheckBox11.Location = New System.Drawing.Point(696, 215)
385 394
         Me.CheckBox11.Name = "CheckBox11"
386 395
         Me.CheckBox11.Size = New System.Drawing.Size(187, 20)
387 396
         Me.CheckBox11.TabIndex = 235
@@ -392,7 +401,7 @@ Partial Class 系統使用者管理
392 401
         '
393 402
         Me.CheckBox12.AutoSize = True
394 403
         Me.CheckBox12.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(0, Byte), Integer))
395
-        Me.CheckBox12.Location = New System.Drawing.Point(685, 241)
404
+        Me.CheckBox12.Location = New System.Drawing.Point(696, 241)
396 405
         Me.CheckBox12.Name = "CheckBox12"
397 406
         Me.CheckBox12.Size = New System.Drawing.Size(146, 20)
398 407
         Me.CheckBox12.TabIndex = 236
@@ -403,7 +412,7 @@ Partial Class 系統使用者管理
403 412
         '
404 413
         Me.CheckBox13.AutoSize = True
405 414
         Me.CheckBox13.ForeColor = System.Drawing.Color.Olive
406
-        Me.CheckBox13.Location = New System.Drawing.Point(685, 267)
415
+        Me.CheckBox13.Location = New System.Drawing.Point(696, 267)
407 416
         Me.CheckBox13.Name = "CheckBox13"
408 417
         Me.CheckBox13.Size = New System.Drawing.Size(110, 20)
409 418
         Me.CheckBox13.TabIndex = 237
@@ -414,7 +423,7 @@ Partial Class 系統使用者管理
414 423
         '
415 424
         Me.CheckBox14.AutoSize = True
416 425
         Me.CheckBox14.ForeColor = System.Drawing.Color.Olive
417
-        Me.CheckBox14.Location = New System.Drawing.Point(685, 293)
426
+        Me.CheckBox14.Location = New System.Drawing.Point(696, 293)
418 427
         Me.CheckBox14.Name = "CheckBox14"
419 428
         Me.CheckBox14.Size = New System.Drawing.Size(146, 20)
420 429
         Me.CheckBox14.TabIndex = 238
@@ -424,7 +433,7 @@ Partial Class 系統使用者管理
424 433
         'CheckBox15
425 434
         '
426 435
         Me.CheckBox15.AutoSize = True
427
-        Me.CheckBox15.Location = New System.Drawing.Point(446, 7)
436
+        Me.CheckBox15.Location = New System.Drawing.Point(457, 7)
428 437
         Me.CheckBox15.Name = "CheckBox15"
429 438
         Me.CheckBox15.Size = New System.Drawing.Size(134, 20)
430 439
         Me.CheckBox15.TabIndex = 239
@@ -435,7 +444,7 @@ Partial Class 系統使用者管理
435 444
         '
436 445
         Me.CheckBox16.AutoSize = True
437 446
         Me.CheckBox16.ForeColor = System.Drawing.Color.Red
438
-        Me.CheckBox16.Location = New System.Drawing.Point(468, 33)
447
+        Me.CheckBox16.Location = New System.Drawing.Point(479, 33)
439 448
         Me.CheckBox16.Name = "CheckBox16"
440 449
         Me.CheckBox16.Size = New System.Drawing.Size(122, 20)
441 450
         Me.CheckBox16.TabIndex = 240
@@ -446,7 +455,7 @@ Partial Class 系統使用者管理
446 455
         '
447 456
         Me.CheckBox17.AutoSize = True
448 457
         Me.CheckBox17.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(0, Byte), Integer))
449
-        Me.CheckBox17.Location = New System.Drawing.Point(468, 85)
458
+        Me.CheckBox17.Location = New System.Drawing.Point(479, 85)
450 459
         Me.CheckBox17.Name = "CheckBox17"
451 460
         Me.CheckBox17.Size = New System.Drawing.Size(158, 20)
452 461
         Me.CheckBox17.TabIndex = 241
@@ -457,7 +466,7 @@ Partial Class 系統使用者管理
457 466
         '
458 467
         Me.CheckBox18.AutoSize = True
459 468
         Me.CheckBox18.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(0, Byte), Integer))
460
-        Me.CheckBox18.Location = New System.Drawing.Point(468, 111)
469
+        Me.CheckBox18.Location = New System.Drawing.Point(479, 111)
461 470
         Me.CheckBox18.Name = "CheckBox18"
462 471
         Me.CheckBox18.Size = New System.Drawing.Size(158, 20)
463 472
         Me.CheckBox18.TabIndex = 242
@@ -468,7 +477,7 @@ Partial Class 系統使用者管理
468 477
         '
469 478
         Me.CheckBox19.AutoSize = True
470 479
         Me.CheckBox19.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(0, Byte), Integer))
471
-        Me.CheckBox19.Location = New System.Drawing.Point(468, 137)
480
+        Me.CheckBox19.Location = New System.Drawing.Point(479, 137)
472 481
         Me.CheckBox19.Name = "CheckBox19"
473 482
         Me.CheckBox19.Size = New System.Drawing.Size(122, 20)
474 483
         Me.CheckBox19.TabIndex = 243
@@ -479,7 +488,7 @@ Partial Class 系統使用者管理
479 488
         '
480 489
         Me.CheckBox20.AutoSize = True
481 490
         Me.CheckBox20.ForeColor = System.Drawing.Color.Olive
482
-        Me.CheckBox20.Location = New System.Drawing.Point(468, 163)
491
+        Me.CheckBox20.Location = New System.Drawing.Point(479, 163)
483 492
         Me.CheckBox20.Name = "CheckBox20"
484 493
         Me.CheckBox20.Size = New System.Drawing.Size(134, 20)
485 494
         Me.CheckBox20.TabIndex = 244
@@ -490,7 +499,7 @@ Partial Class 系統使用者管理
490 499
         '
491 500
         Me.CheckBox21.AutoSize = True
492 501
         Me.CheckBox21.ForeColor = System.Drawing.Color.Olive
493
-        Me.CheckBox21.Location = New System.Drawing.Point(468, 189)
502
+        Me.CheckBox21.Location = New System.Drawing.Point(479, 189)
494 503
         Me.CheckBox21.Name = "CheckBox21"
495 504
         Me.CheckBox21.Size = New System.Drawing.Size(134, 20)
496 505
         Me.CheckBox21.TabIndex = 245
@@ -501,7 +510,7 @@ Partial Class 系統使用者管理
501 510
         '
502 511
         Me.CheckBox22.AutoSize = True
503 512
         Me.CheckBox22.ForeColor = System.Drawing.Color.Green
504
-        Me.CheckBox22.Location = New System.Drawing.Point(468, 215)
513
+        Me.CheckBox22.Location = New System.Drawing.Point(479, 215)
505 514
         Me.CheckBox22.Name = "CheckBox22"
506 515
         Me.CheckBox22.Size = New System.Drawing.Size(134, 20)
507 516
         Me.CheckBox22.TabIndex = 246
@@ -511,7 +520,7 @@ Partial Class 系統使用者管理
511 520
         'CheckBox23
512 521
         '
513 522
         Me.CheckBox23.AutoSize = True
514
-        Me.CheckBox23.Location = New System.Drawing.Point(228, 7)
523
+        Me.CheckBox23.Location = New System.Drawing.Point(239, 7)
515 524
         Me.CheckBox23.Name = "CheckBox23"
516 525
         Me.CheckBox23.Size = New System.Drawing.Size(134, 20)
517 526
         Me.CheckBox23.TabIndex = 247
@@ -522,7 +531,7 @@ Partial Class 系統使用者管理
522 531
         '
523 532
         Me.CheckBox24.AutoSize = True
524 533
         Me.CheckBox24.ForeColor = System.Drawing.Color.Red
525
-        Me.CheckBox24.Location = New System.Drawing.Point(250, 33)
534
+        Me.CheckBox24.Location = New System.Drawing.Point(261, 33)
526 535
         Me.CheckBox24.Name = "CheckBox24"
527 536
         Me.CheckBox24.Size = New System.Drawing.Size(122, 20)
528 537
         Me.CheckBox24.TabIndex = 248
@@ -533,7 +542,7 @@ Partial Class 系統使用者管理
533 542
         '
534 543
         Me.CheckBox25.AutoSize = True
535 544
         Me.CheckBox25.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(0, Byte), Integer))
536
-        Me.CheckBox25.Location = New System.Drawing.Point(250, 111)
545
+        Me.CheckBox25.Location = New System.Drawing.Point(261, 111)
537 546
         Me.CheckBox25.Name = "CheckBox25"
538 547
         Me.CheckBox25.Size = New System.Drawing.Size(122, 20)
539 548
         Me.CheckBox25.TabIndex = 249
@@ -544,7 +553,7 @@ Partial Class 系統使用者管理
544 553
         '
545 554
         Me.CheckBox26.AutoSize = True
546 555
         Me.CheckBox26.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(0, Byte), Integer))
547
-        Me.CheckBox26.Location = New System.Drawing.Point(250, 137)
556
+        Me.CheckBox26.Location = New System.Drawing.Point(261, 137)
548 557
         Me.CheckBox26.Name = "CheckBox26"
549 558
         Me.CheckBox26.Size = New System.Drawing.Size(122, 20)
550 559
         Me.CheckBox26.TabIndex = 250
@@ -555,7 +564,7 @@ Partial Class 系統使用者管理
555 564
         '
556 565
         Me.CheckBox27.AutoSize = True
557 566
         Me.CheckBox27.ForeColor = System.Drawing.Color.Olive
558
-        Me.CheckBox27.Location = New System.Drawing.Point(250, 189)
567
+        Me.CheckBox27.Location = New System.Drawing.Point(261, 189)
559 568
         Me.CheckBox27.Name = "CheckBox27"
560 569
         Me.CheckBox27.Size = New System.Drawing.Size(122, 20)
561 570
         Me.CheckBox27.TabIndex = 251
@@ -601,6 +610,15 @@ Partial Class 系統使用者管理
601 610
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
602 611
         Me.Panel1.AutoScroll = True
603 612
         Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
613
+        Me.Panel1.Controls.Add(Me.CheckBox46)
614
+        Me.Panel1.Controls.Add(Me.CheckBox45)
615
+        Me.Panel1.Controls.Add(Me.CheckBox44)
616
+        Me.Panel1.Controls.Add(Me.CheckBox43)
617
+        Me.Panel1.Controls.Add(Me.CheckBox42)
618
+        Me.Panel1.Controls.Add(Me.CheckBox41)
619
+        Me.Panel1.Controls.Add(Me.CheckBox40)
620
+        Me.Panel1.Controls.Add(Me.CheckBox39)
621
+        Me.Panel1.Controls.Add(Me.CheckBox38)
604 622
         Me.Panel1.Controls.Add(Me.CheckBox37)
605 623
         Me.Panel1.Controls.Add(Me.CheckBox36)
606 624
         Me.Panel1.Controls.Add(Me.CheckBox35)
@@ -656,7 +674,7 @@ Partial Class 系統使用者管理
656 674
         '
657 675
         Me.CheckBox37.AutoSize = True
658 676
         Me.CheckBox37.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(0, Byte), Integer))
659
-        Me.CheckBox37.Location = New System.Drawing.Point(272, 163)
677
+        Me.CheckBox37.Location = New System.Drawing.Point(283, 163)
660 678
         Me.CheckBox37.Name = "CheckBox37"
661 679
         Me.CheckBox37.Size = New System.Drawing.Size(158, 20)
662 680
         Me.CheckBox37.TabIndex = 270
@@ -667,7 +685,7 @@ Partial Class 系統使用者管理
667 685
         '
668 686
         Me.CheckBox36.AutoSize = True
669 687
         Me.CheckBox36.ForeColor = System.Drawing.Color.Red
670
-        Me.CheckBox36.Location = New System.Drawing.Point(709, 163)
688
+        Me.CheckBox36.Location = New System.Drawing.Point(720, 163)
671 689
         Me.CheckBox36.Name = "CheckBox36"
672 690
         Me.CheckBox36.Size = New System.Drawing.Size(110, 20)
673 691
         Me.CheckBox36.TabIndex = 269
@@ -678,7 +696,7 @@ Partial Class 系統使用者管理
678 696
         '
679 697
         Me.CheckBox35.AutoSize = True
680 698
         Me.CheckBox35.ForeColor = System.Drawing.Color.Red
681
-        Me.CheckBox35.Location = New System.Drawing.Point(709, 137)
699
+        Me.CheckBox35.Location = New System.Drawing.Point(720, 137)
682 700
         Me.CheckBox35.Name = "CheckBox35"
683 701
         Me.CheckBox35.Size = New System.Drawing.Size(110, 20)
684 702
         Me.CheckBox35.TabIndex = 268
@@ -689,7 +707,7 @@ Partial Class 系統使用者管理
689 707
         '
690 708
         Me.CheckBox34.AutoSize = True
691 709
         Me.CheckBox34.ForeColor = System.Drawing.Color.Red
692
-        Me.CheckBox34.Location = New System.Drawing.Point(685, 111)
710
+        Me.CheckBox34.Location = New System.Drawing.Point(696, 111)
693 711
         Me.CheckBox34.Name = "CheckBox34"
694 712
         Me.CheckBox34.Size = New System.Drawing.Size(110, 20)
695 713
         Me.CheckBox34.TabIndex = 267
@@ -700,7 +718,7 @@ Partial Class 系統使用者管理
700 718
         '
701 719
         Me.CheckBox33.AutoSize = True
702 720
         Me.CheckBox33.ForeColor = System.Drawing.Color.Red
703
-        Me.CheckBox33.Location = New System.Drawing.Point(468, 59)
721
+        Me.CheckBox33.Location = New System.Drawing.Point(479, 59)
704 722
         Me.CheckBox33.Name = "CheckBox33"
705 723
         Me.CheckBox33.Size = New System.Drawing.Size(122, 20)
706 724
         Me.CheckBox33.TabIndex = 266
@@ -711,7 +729,7 @@ Partial Class 系統使用者管理
711 729
         '
712 730
         Me.CheckBox32.AutoSize = True
713 731
         Me.CheckBox32.ForeColor = System.Drawing.Color.Red
714
-        Me.CheckBox32.Location = New System.Drawing.Point(250, 85)
732
+        Me.CheckBox32.Location = New System.Drawing.Point(261, 85)
715 733
         Me.CheckBox32.Name = "CheckBox32"
716 734
         Me.CheckBox32.Size = New System.Drawing.Size(122, 20)
717 735
         Me.CheckBox32.TabIndex = 265
@@ -722,7 +740,7 @@ Partial Class 系統使用者管理
722 740
         '
723 741
         Me.CheckBox31.AutoSize = True
724 742
         Me.CheckBox31.ForeColor = System.Drawing.Color.Red
725
-        Me.CheckBox31.Location = New System.Drawing.Point(250, 59)
743
+        Me.CheckBox31.Location = New System.Drawing.Point(261, 59)
726 744
         Me.CheckBox31.Name = "CheckBox31"
727 745
         Me.CheckBox31.Size = New System.Drawing.Size(122, 20)
728 746
         Me.CheckBox31.TabIndex = 264
@@ -732,7 +750,7 @@ Partial Class 系統使用者管理
732 750
         'Label14
733 751
         '
734 752
         Me.Label14.AutoSize = True
735
-        Me.Label14.Location = New System.Drawing.Point(872, 321)
753
+        Me.Label14.Location = New System.Drawing.Point(883, 321)
736 754
         Me.Label14.Name = "Label14"
737 755
         Me.Label14.Size = New System.Drawing.Size(212, 16)
738 756
         Me.Label14.TabIndex = 263
@@ -741,7 +759,7 @@ Partial Class 系統使用者管理
741 759
         'Label13
742 760
         '
743 761
         Me.Label13.AutoSize = True
744
-        Me.Label13.Location = New System.Drawing.Point(865, 1)
762
+        Me.Label13.Location = New System.Drawing.Point(876, 1)
745 763
         Me.Label13.Name = "Label13"
746 764
         Me.Label13.Size = New System.Drawing.Size(11, 608)
747 765
         Me.Label13.TabIndex = 262
@@ -751,7 +769,7 @@ Partial Class 系統使用者管理
751 769
         'Label12
752 770
         '
753 771
         Me.Label12.AutoSize = True
754
-        Me.Label12.Location = New System.Drawing.Point(654, 321)
772
+        Me.Label12.Location = New System.Drawing.Point(665, 321)
755 773
         Me.Label12.Name = "Label12"
756 774
         Me.Label12.Size = New System.Drawing.Size(212, 16)
757 775
         Me.Label12.TabIndex = 261
@@ -760,7 +778,7 @@ Partial Class 系統使用者管理
760 778
         'Label11
761 779
         '
762 780
         Me.Label11.AutoSize = True
763
-        Me.Label11.Location = New System.Drawing.Point(436, 321)
781
+        Me.Label11.Location = New System.Drawing.Point(447, 321)
764 782
         Me.Label11.Name = "Label11"
765 783
         Me.Label11.Size = New System.Drawing.Size(212, 16)
766 784
         Me.Label11.TabIndex = 260
@@ -769,7 +787,7 @@ Partial Class 系統使用者管理
769 787
         'Label10
770 788
         '
771 789
         Me.Label10.AutoSize = True
772
-        Me.Label10.Location = New System.Drawing.Point(646, -2)
790
+        Me.Label10.Location = New System.Drawing.Point(657, -2)
773 791
         Me.Label10.Name = "Label10"
774 792
         Me.Label10.Size = New System.Drawing.Size(11, 608)
775 793
         Me.Label10.TabIndex = 259
@@ -779,7 +797,7 @@ Partial Class 系統使用者管理
779 797
         'Label9
780 798
         '
781 799
         Me.Label9.AutoSize = True
782
-        Me.Label9.Location = New System.Drawing.Point(429, -2)
800
+        Me.Label9.Location = New System.Drawing.Point(440, -2)
783 801
         Me.Label9.Name = "Label9"
784 802
         Me.Label9.Size = New System.Drawing.Size(11, 608)
785 803
         Me.Label9.TabIndex = 258
@@ -789,7 +807,7 @@ Partial Class 系統使用者管理
789 807
         'Label8
790 808
         '
791 809
         Me.Label8.AutoSize = True
792
-        Me.Label8.Location = New System.Drawing.Point(218, 321)
810
+        Me.Label8.Location = New System.Drawing.Point(229, 321)
793 811
         Me.Label8.Name = "Label8"
794 812
         Me.Label8.Size = New System.Drawing.Size(212, 16)
795 813
         Me.Label8.TabIndex = 257
@@ -798,21 +816,119 @@ Partial Class 系統使用者管理
798 816
         'Label7
799 817
         '
800 818
         Me.Label7.AutoSize = True
801
-        Me.Label7.Location = New System.Drawing.Point(2, 321)
819
+        Me.Label7.Location = New System.Drawing.Point(0, 112)
802 820
         Me.Label7.Name = "Label7"
803
-        Me.Label7.Size = New System.Drawing.Size(212, 16)
821
+        Me.Label7.Size = New System.Drawing.Size(224, 16)
804 822
         Me.Label7.TabIndex = 256
805
-        Me.Label7.Text = "一一一一一一一一一一一一一一一一一"
823
+        Me.Label7.Text = "一一一一一一一一一一一一一一一一一"
806 824
         '
807 825
         'Label6
808 826
         '
809 827
         Me.Label6.AutoSize = True
810
-        Me.Label6.Location = New System.Drawing.Point(211, 3)
828
+        Me.Label6.Location = New System.Drawing.Point(222, 3)
811 829
         Me.Label6.Name = "Label6"
812 830
         Me.Label6.Size = New System.Drawing.Size(11, 608)
813 831
         Me.Label6.TabIndex = 255
814 832
         Me.Label6.Text = "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) &
815 833
     "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "I" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10)
834
+        '
835
+        'CheckBox38
836
+        '
837
+        Me.CheckBox38.AutoSize = True
838
+        Me.CheckBox38.Location = New System.Drawing.Point(9, 137)
839
+        Me.CheckBox38.Name = "CheckBox38"
840
+        Me.CheckBox38.Size = New System.Drawing.Size(134, 20)
841
+        Me.CheckBox38.TabIndex = 271
842
+        Me.CheckBox38.Text = "財務系統管理-CC38"
843
+        Me.CheckBox38.UseVisualStyleBackColor = True
844
+        '
845
+        'CheckBox39
846
+        '
847
+        Me.CheckBox39.AutoSize = True
848
+        Me.CheckBox39.ForeColor = System.Drawing.Color.Red
849
+        Me.CheckBox39.Location = New System.Drawing.Point(31, 163)
850
+        Me.CheckBox39.Name = "CheckBox39"
851
+        Me.CheckBox39.Size = New System.Drawing.Size(122, 20)
852
+        Me.CheckBox39.TabIndex = 272
853
+        Me.CheckBox39.Text = "薪資轉帳表-CC39"
854
+        Me.CheckBox39.UseVisualStyleBackColor = True
855
+        '
856
+        'CheckBox40
857
+        '
858
+        Me.CheckBox40.AutoSize = True
859
+        Me.CheckBox40.ForeColor = System.Drawing.Color.Red
860
+        Me.CheckBox40.Location = New System.Drawing.Point(31, 189)
861
+        Me.CheckBox40.Name = "CheckBox40"
862
+        Me.CheckBox40.Size = New System.Drawing.Size(170, 20)
863
+        Me.CheckBox40.TabIndex = 273
864
+        Me.CheckBox40.Text = "營運成本收支單申請-CC40"
865
+        Me.CheckBox40.UseVisualStyleBackColor = True
866
+        '
867
+        'CheckBox41
868
+        '
869
+        Me.CheckBox41.AutoSize = True
870
+        Me.CheckBox41.ForeColor = System.Drawing.Color.Red
871
+        Me.CheckBox41.Location = New System.Drawing.Point(31, 215)
872
+        Me.CheckBox41.Name = "CheckBox41"
873
+        Me.CheckBox41.Size = New System.Drawing.Size(170, 20)
874
+        Me.CheckBox41.TabIndex = 274
875
+        Me.CheckBox41.Text = "營運成本收支單審核-CC41"
876
+        Me.CheckBox41.UseVisualStyleBackColor = True
877
+        '
878
+        'CheckBox42
879
+        '
880
+        Me.CheckBox42.AutoSize = True
881
+        Me.CheckBox42.ForeColor = System.Drawing.Color.Red
882
+        Me.CheckBox42.Location = New System.Drawing.Point(31, 241)
883
+        Me.CheckBox42.Name = "CheckBox42"
884
+        Me.CheckBox42.Size = New System.Drawing.Size(182, 20)
885
+        Me.CheckBox42.TabIndex = 275
886
+        Me.CheckBox42.Text = "營運成本收支單一覽表-CC42"
887
+        Me.CheckBox42.UseVisualStyleBackColor = True
888
+        '
889
+        'CheckBox43
890
+        '
891
+        Me.CheckBox43.AutoSize = True
892
+        Me.CheckBox43.ForeColor = System.Drawing.Color.Red
893
+        Me.CheckBox43.Location = New System.Drawing.Point(31, 267)
894
+        Me.CheckBox43.Name = "CheckBox43"
895
+        Me.CheckBox43.Size = New System.Drawing.Size(193, 20)
896
+        Me.CheckBox43.TabIndex = 276
897
+        Me.CheckBox43.Text = "營運成本收支單 - 對帳表-CC43"
898
+        Me.CheckBox43.UseVisualStyleBackColor = True
899
+        '
900
+        'CheckBox44
901
+        '
902
+        Me.CheckBox44.AutoSize = True
903
+        Me.CheckBox44.ForeColor = System.Drawing.Color.Red
904
+        Me.CheckBox44.Location = New System.Drawing.Point(31, 293)
905
+        Me.CheckBox44.Name = "CheckBox44"
906
+        Me.CheckBox44.Size = New System.Drawing.Size(181, 20)
907
+        Me.CheckBox44.TabIndex = 277
908
+        Me.CheckBox44.Text = "營運成本收支 - 決算表-CC44"
909
+        Me.CheckBox44.UseVisualStyleBackColor = True
910
+        '
911
+        'CheckBox45
912
+        '
913
+        Me.CheckBox45.AutoSize = True
914
+        Me.CheckBox45.ForeColor = System.Drawing.Color.Red
915
+        Me.CheckBox45.Location = New System.Drawing.Point(31, 320)
916
+        Me.CheckBox45.Name = "CheckBox45"
917
+        Me.CheckBox45.Size = New System.Drawing.Size(110, 20)
918
+        Me.CheckBox45.TabIndex = 278
919
+        Me.CheckBox45.Text = "匯率管理-CC45"
920
+        Me.CheckBox45.UseVisualStyleBackColor = True
921
+        '
922
+        'CheckBox46
923
+        '
924
+        Me.CheckBox46.AutoSize = True
925
+        Me.CheckBox46.ForeColor = System.Drawing.Color.Red
926
+        Me.CheckBox46.Location = New System.Drawing.Point(31, 346)
927
+        Me.CheckBox46.Name = "CheckBox46"
928
+        Me.CheckBox46.Size = New System.Drawing.Size(134, 20)
929
+        Me.CheckBox46.TabIndex = 279
930
+        Me.CheckBox46.Text = "會計科目管理-CC46"
931
+        Me.CheckBox46.UseVisualStyleBackColor = True
816 932
         '
817 933
         '系統使用者管理
818 934
         '
@@ -913,4 +1029,13 @@ Partial Class 系統使用者管理
913 1029
     Friend WithEvents CheckBox34 As CheckBox
914 1030
     Friend WithEvents CheckBox36 As CheckBox
915 1031
     Friend WithEvents CheckBox37 As CheckBox
1032
+    Friend WithEvents CheckBox38 As CheckBox
1033
+    Friend WithEvents CheckBox43 As CheckBox
1034
+    Friend WithEvents CheckBox42 As CheckBox
1035
+    Friend WithEvents CheckBox41 As CheckBox
1036
+    Friend WithEvents CheckBox40 As CheckBox
1037
+    Friend WithEvents CheckBox39 As CheckBox
1038
+    Friend WithEvents CheckBox46 As CheckBox
1039
+    Friend WithEvents CheckBox45 As CheckBox
1040
+    Friend WithEvents CheckBox44 As CheckBox
916 1041
 End Class

+ 27
- 0
YD-ERP-SYS/資料庫系統管理/系統使用者管理.vb Прегледај датотеку

@@ -181,4 +181,31 @@ Public Class 系統使用者管理
181 181
     Private Sub CheckBox5_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox5.Click
182 182
         If CheckBox1.Checked = False Then : CheckBox1.Checked = True : End If
183 183
     End Sub
184
+
185
+
186
+    '*************************************************************************************************************************************
187
+    Private Sub CheckBox39_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox39.Click
188
+        If CheckBox38.Checked = False Then : CheckBox38.Checked = True : End If
189
+    End Sub
190
+    Private Sub CheckBox40_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox40.Click
191
+        If CheckBox38.Checked = False Then : CheckBox38.Checked = True : End If
192
+    End Sub
193
+    Private Sub CheckBox41_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox41.Click
194
+        If CheckBox38.Checked = False Then : CheckBox38.Checked = True : End If
195
+    End Sub
196
+    Private Sub CheckBox42_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox42.Click
197
+        If CheckBox38.Checked = False Then : CheckBox38.Checked = True : End If
198
+    End Sub
199
+    Private Sub CheckBox43_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox43.Click
200
+        If CheckBox38.Checked = False Then : CheckBox38.Checked = True : End If
201
+    End Sub
202
+    Private Sub CheckBox44_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox44.Click
203
+        If CheckBox38.Checked = False Then : CheckBox38.Checked = True : End If
204
+    End Sub
205
+    Private Sub CheckBox45_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox45.Click
206
+        If CheckBox38.Checked = False Then : CheckBox38.Checked = True : End If
207
+    End Sub
208
+    Private Sub CheckBox46_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox46.Click
209
+        If CheckBox38.Checked = False Then : CheckBox38.Checked = True : End If
210
+    End Sub
184 211
 End Class

Loading…
Откажи
Сачувај