B70340 3 years ago
parent
commit
a0bbe06b1c
39 changed files with 406 additions and 239 deletions
  1. BIN
      工巧明智能管理系統/.vs/我的系統/FileContentIndex/e113be2a-999a-406a-8410-76ed366adfe8.vsidx
  2. 0
    0
      工巧明智能管理系統/.vs/我的系統/FileContentIndex/read.lock
  3. BIN
      工巧明智能管理系統/.vs/我的系統/v16/.suo
  4. BIN
      工巧明智能管理系統/.vs/我的系統/v17/.suo
  5. 3
    5
      工巧明智能管理系統/我的系統/App.config
  6. 4
    4
      工巧明智能管理系統/我的系統/My Project/Application.Designer.vb
  7. 6
    6
      工巧明智能管理系統/我的系統/My Project/Resources.Designer.vb
  8. 2
    2
      工巧明智能管理系統/我的系統/My Project/Settings.Designer.vb
  9. 1
    1
      工巧明智能管理系統/我的系統/MyModule/SQL_休假與加班.vb
  10. 1
    1
      工巧明智能管理系統/我的系統/MyModule/全域變數.vb
  11. BIN
      工巧明智能管理系統/我的系統/bin/Debug/GCM-ERP-SYS.exe
  12. 3
    5
      工巧明智能管理系統/我的系統/bin/Debug/GCM-ERP-SYS.exe.config
  13. BIN
      工巧明智能管理系統/我的系統/bin/Debug/GCM-ERP-SYS.pdb
  14. 1
    1
      工巧明智能管理系統/我的系統/bin/Debug/GCM-ERP-SYS.xml
  15. 7
    0
      工巧明智能管理系統/我的系統/obj/x86/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.vb
  16. BIN
      工巧明智能管理系統/我的系統/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache
  17. BIN
      工巧明智能管理系統/我的系統/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  18. BIN
      工巧明智能管理系統/我的系統/obj/x86/Debug/GCM-ERP-SYS.exe
  19. BIN
      工巧明智能管理系統/我的系統/obj/x86/Debug/GCM-ERP-SYS.pdb
  20. 1
    1
      工巧明智能管理系統/我的系統/obj/x86/Debug/GCM-ERP-SYS.xml
  21. BIN
      工巧明智能管理系統/我的系統/obj/x86/Debug/TempPE/My Project.Resources.Designer.vb.dll
  22. BIN
      工巧明智能管理系統/我的系統/obj/x86/Debug/工巧明智能管理系統.vbproj.AssemblyReference.cache
  23. 1
    1
      工巧明智能管理系統/我的系統/obj/x86/Debug/工巧明智能管理系統.vbproj.CoreCompileInputs.cache
  24. 2
    1
      工巧明智能管理系統/我的系統/obj/x86/Debug/工巧明智能管理系統.vbproj.FileListAbsolute.txt
  25. BIN
      工巧明智能管理系統/我的系統/obj/x86/Debug/工巧明智能管理系統.vbproj.GenerateResource.cache
  26. BIN
      工巧明智能管理系統/我的系統/obj/x86/Debug/工巧明智能管理系統.vbproj.ResolveComReference.cache
  27. 0
    0
      工巧明智能管理系統/我的系統/obj/x86/Debug/工巧明智能管理系統.vbproj.SuggestedBindingRedirects.cache
  28. BIN
      工巧明智能管理系統/我的系統/obj/x86/Debug/工巧明智能管理系統.vbprojAssemblyReference.cache
  29. 4
    2
      工巧明智能管理系統/我的系統/工巧明智能管理系統.vbproj
  30. 105
    80
      工巧明智能管理系統/我的系統/財務系統管理/匯率修改.Designer.vb
  31. 31
    26
      工巧明智能管理系統/我的系統/財務系統管理/匯率修改.vb
  32. 7
    7
      工巧明智能管理系統/我的系統/財務系統管理/財務_對帳單.Designer.vb
  33. 13
    1
      工巧明智能管理系統/我的系統/財務系統管理/財務_對帳單.vb
  34. 39
    0
      工巧明智能管理系統/我的系統/財務系統管理/財務_收支單一覽表.Designer.vb
  35. 23
    10
      工巧明智能管理系統/我的系統/財務系統管理/財務_收支單一覽表.vb
  36. 49
    10
      工巧明智能管理系統/我的系統/財務系統管理/財務_收支單審核.Designer.vb
  37. 20
    7
      工巧明智能管理系統/我的系統/財務系統管理/財務_收支單審核.vb
  38. 56
    43
      工巧明智能管理系統/我的系統/財務系統管理/財務_收支單申請.Designer.vb
  39. 27
    25
      工巧明智能管理系統/我的系統/財務系統管理/財務_收支單申請.vb

BIN
工巧明智能管理系統/.vs/我的系統/FileContentIndex/e113be2a-999a-406a-8410-76ed366adfe8.vsidx View File


+ 0
- 0
工巧明智能管理系統/.vs/我的系統/FileContentIndex/read.lock View File


BIN
工巧明智能管理系統/.vs/我的系統/v16/.suo View File


BIN
工巧明智能管理系統/.vs/我的系統/v17/.suo View File


+ 3
- 5
工巧明智能管理系統/我的系統/App.config View File

@@ -3,12 +3,10 @@
3 3
     <configSections>
4 4
     </configSections>
5 5
     <connectionStrings>
6
-        <add name="工巧明智能管理系統.My.MySettings.資料庫1" connectionString="Data Source=VAIO-VAIO;Initial Catalog=我的資料庫;Integrated Security=True"
7
-            providerName="System.Data.SqlClient" />
8
-        <add name="工巧明智能管理系統.My.MySettings.資料庫2" connectionString="Data Source=192.168.3.192;Initial Catalog=我的資料庫;Persist Security Info=True;User ID=break;Password=0911274990"
9
-            providerName="System.Data.SqlClient" />
6
+        <add name="工巧明智能管理系統.My.MySettings.資料庫1" connectionString="Data Source=VAIO-VAIO;Initial Catalog=我的資料庫;Integrated Security=True" providerName="System.Data.SqlClient"/>
7
+        <add name="工巧明智能管理系統.My.MySettings.資料庫2" connectionString="Data Source=192.168.3.192;Initial Catalog=我的資料庫;Persist Security Info=True;User ID=break;Password=0911274990" providerName="System.Data.SqlClient"/>
10 8
     </connectionStrings>
11 9
     <startup>
12
-        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
10
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
13 11
     </startup>
14 12
 </configuration>

+ 4
- 4
工巧明智能管理系統/我的系統/My Project/Application.Designer.vb View File

@@ -3,7 +3,7 @@
3 3
 '     這段程式碼是由工具產生的。
4 4
 '     執行階段版本:4.0.30319.42000
5 5
 '
6
-'     對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
6
+'     對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
7 7
 '     變更將會遺失。
8 8
 ' </auto-generated>
9 9
 '------------------------------------------------------------------------------
@@ -14,9 +14,9 @@ Option Explicit On
14 14
 
15 15
 Namespace My
16 16
     
17
-    '注意:這是自動產生的檔案,請勿直接修改它。若要進行變更,
18
-    ' 或者您在這個檔案發生建置錯誤,請到專案設計工具
19
-    ' (移至專案屬性或者在 [方案總管] 中按兩下 [My Project] 節點),
17
+    '注意:這是自動產生的檔案,請勿直接修改它。若要進行變更,
18
+    ' 或者您在這個檔案發生建置錯誤請到專案設計工具
19
+    ' (移至專案屬性或者在 [方案總管] 中按兩下 [My Project] 節點)
20 20
     ' 然後在 [應用程式] 索引標籤上進行變更。
21 21
     '
22 22
     Partial Friend Class MyApplication

+ 6
- 6
工巧明智能管理系統/我的系統/My Project/Resources.Designer.vb View File

@@ -3,7 +3,7 @@
3 3
 '     這段程式碼是由工具產生的。
4 4
 '     執行階段版本:4.0.30319.42000
5 5
 '
6
-'     對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
6
+'     對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
7 7
 '     變更將會遺失。
8 8
 ' </auto-generated>
9 9
 '------------------------------------------------------------------------------
@@ -15,14 +15,14 @@ Imports System
15 15
 
16 16
 Namespace My.Resources
17 17
     
18
-    '這個類別是自動產生的,是利用 StronglyTypedResourceBuilder
18
+    '這個類別是自動產生的是利用 StronglyTypedResourceBuilder
19 19
     '類別透過 ResGen 或 Visual Studio 這類工具。
20
-    '若要加入或移除成員,請編輯您的 .ResX 檔,然後重新執行 ResGen
21
-    '(利用 /str 選項),或重建您的 VS 專案。
20
+    '若要加入或移除成員,請編輯您的 .ResX 檔,然後重新執行 ResGen
21
+    '(利用 /str 選項)或重建您的 VS 專案。
22 22
     '''<summary>
23 23
     '''  用於查詢當地語系化字串等的強類型資源類別。
24 24
     '''</summary>
25
-    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0"),  _
25
+    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0"),  _
26 26
      Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
27 27
      Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(),  _
28 28
      Global.Microsoft.VisualBasic.HideModuleNameAttribute()>  _
@@ -47,7 +47,7 @@ Namespace My.Resources
47 47
         End Property
48 48
         
49 49
         '''<summary>
50
-        '''  覆寫目前執行緒的 CurrentUICulture 屬性,對象是所有
50
+        '''  覆寫目前執行緒的 CurrentUICulture 屬性對象是所有
51 51
         '''  使用這個強類型資源類別的資源查閱。
52 52
         '''</summary>
53 53
         <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _

+ 2
- 2
工巧明智能管理系統/我的系統/My Project/Settings.Designer.vb View File

@@ -3,7 +3,7 @@
3 3
 '     這段程式碼是由工具產生的。
4 4
 '     執行階段版本:4.0.30319.42000
5 5
 '
6
-'     對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
6
+'     對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
7 7
 '     變更將會遺失。
8 8
 ' </auto-generated>
9 9
 '------------------------------------------------------------------------------
@@ -15,7 +15,7 @@ Option Explicit On
15 15
 Namespace My
16 16
     
17 17
     <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(),  _
18
-     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.8.0.0"),  _
18
+     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.2.0.0"),  _
19 19
      Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _
20 20
     Partial Friend NotInheritable Class MySettings
21 21
         Inherits Global.System.Configuration.ApplicationSettingsBase

+ 1
- 1
工巧明智能管理系統/我的系統/MyModule/SQL_休假與加班.vb View File

@@ -180,7 +180,7 @@
180 180
     End Sub
181 181
     Friend Sub SQL_申請刪除1()
182 182
         ConnOpen()
183
-        SQL1 = "DELETE FROM  人事請假單  WHERE 日期 LIKE '" & 到離職管理.特假日期_tb.Text & "' AND 員工編號 = " & 到離職管理.員工編號_tb.Text & ""
183
+        SQL1 = "DELETE FROM  人事請假單  WHERE 日期 LIKE '" & 到離職管理.特假日期_tb.Text & "' AND 員工編號 LIKE '" & 到離職管理.員工編號_tb.Text & "'"
184 184
         CmdSet_For_dr()
185 185
     End Sub
186 186
 End Module

+ 1
- 1
工巧明智能管理系統/我的系統/MyModule/全域變數.vb View File

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

BIN
工巧明智能管理系統/我的系統/bin/Debug/GCM-ERP-SYS.exe View File


+ 3
- 5
工巧明智能管理系統/我的系統/bin/Debug/GCM-ERP-SYS.exe.config View File

@@ -3,12 +3,10 @@
3 3
     <configSections>
4 4
     </configSections>
5 5
     <connectionStrings>
6
-        <add name="工巧明智能管理系統.My.MySettings.資料庫1" connectionString="Data Source=VAIO-VAIO;Initial Catalog=我的資料庫;Integrated Security=True"
7
-            providerName="System.Data.SqlClient" />
8
-        <add name="工巧明智能管理系統.My.MySettings.資料庫2" connectionString="Data Source=192.168.3.192;Initial Catalog=我的資料庫;Persist Security Info=True;User ID=break;Password=0911274990"
9
-            providerName="System.Data.SqlClient" />
6
+        <add name="工巧明智能管理系統.My.MySettings.資料庫1" connectionString="Data Source=VAIO-VAIO;Initial Catalog=我的資料庫;Integrated Security=True" providerName="System.Data.SqlClient"/>
7
+        <add name="工巧明智能管理系統.My.MySettings.資料庫2" connectionString="Data Source=192.168.3.192;Initial Catalog=我的資料庫;Persist Security Info=True;User ID=break;Password=0911274990" providerName="System.Data.SqlClient"/>
10 8
     </connectionStrings>
11 9
     <startup>
12
-        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
10
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
13 11
     </startup>
14 12
 </configuration>

BIN
工巧明智能管理系統/我的系統/bin/Debug/GCM-ERP-SYS.pdb View File


+ 1
- 1
工巧明智能管理系統/我的系統/bin/Debug/GCM-ERP-SYS.xml View File

@@ -18,7 +18,7 @@ GCM-ERP-SYS
18 18
 </member>
19 19
 <member name="P:工巧明智能管理系統.My.Resources.Resources.Culture">
20 20
 <summary>
21
-  覆寫目前執行緒的 CurrentUICulture 屬性,對象是所有
21
+  覆寫目前執行緒的 CurrentUICulture 屬性對象是所有
22 22
   使用這個強類型資源類別的資源查閱。
23 23
 </summary>
24 24
 </member>

+ 7
- 0
工巧明智能管理系統/我的系統/obj/x86/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.vb View File

@@ -0,0 +1,7 @@
1
+' <autogenerated/>
2
+            Option Strict Off
3
+            Option Explicit On
4
+
5
+            Imports System
6
+            Imports System.Reflection
7
+            <Assembly: Global.System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName:=".NET Framework 4.8")>

BIN
工巧明智能管理系統/我的系統/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache View File


BIN
工巧明智能管理系統/我的系統/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache View File


BIN
工巧明智能管理系統/我的系統/obj/x86/Debug/GCM-ERP-SYS.exe View File


BIN
工巧明智能管理系統/我的系統/obj/x86/Debug/GCM-ERP-SYS.pdb View File


+ 1
- 1
工巧明智能管理系統/我的系統/obj/x86/Debug/GCM-ERP-SYS.xml View File

@@ -18,7 +18,7 @@ GCM-ERP-SYS
18 18
 </member>
19 19
 <member name="P:工巧明智能管理系統.My.Resources.Resources.Culture">
20 20
 <summary>
21
-  覆寫目前執行緒的 CurrentUICulture 屬性,對象是所有
21
+  覆寫目前執行緒的 CurrentUICulture 屬性對象是所有
22 22
   使用這個強類型資源類別的資源查閱。
23 23
 </summary>
24 24
 </member>

BIN
工巧明智能管理系統/我的系統/obj/x86/Debug/TempPE/My Project.Resources.Designer.vb.dll View File


BIN
工巧明智能管理系統/我的系統/obj/x86/Debug/工巧明智能管理系統.vbproj.AssemblyReference.cache View File


+ 1
- 1
工巧明智能管理系統/我的系統/obj/x86/Debug/工巧明智能管理系統.vbproj.CoreCompileInputs.cache View File

@@ -1 +1 @@
1
-39707ed71c8a58ae11eebd743d665ed6579af55e
1
+463fc9866f628b2fd87289bb5757a1e238ad1f55

+ 2
- 1
工巧明智能管理系統/我的系統/obj/x86/Debug/工巧明智能管理系統.vbproj.FileListAbsolute.txt View File

@@ -718,4 +718,5 @@ D:\工巧明\GCM\GCM-ERP-SYS\工巧明智能管理系統\我的系統\obj\x86\De
718 718
 D:\工巧明\GCM\GCM-ERP-SYS\工巧明智能管理系統\我的系統\obj\x86\Debug\GCM-ERP-SYS.exe
719 719
 D:\工巧明\GCM\GCM-ERP-SYS\工巧明智能管理系統\我的系統\obj\x86\Debug\GCM-ERP-SYS.xml
720 720
 D:\工巧明\GCM\GCM-ERP-SYS\工巧明智能管理系統\我的系統\obj\x86\Debug\GCM-ERP-SYS.pdb
721
-D:\工巧明\GCM\GCM-ERP-SYS\工巧明智能管理系統\我的系統\obj\x86\Debug\工巧明智能管理系統.vbprojAssemblyReference.cache
721
+D:\工巧明\GCM\GCM-ERP-SYS\工巧明智能管理系統\我的系統\obj\x86\Debug\工巧明智能管理系統.vbproj.AssemblyReference.cache
722
+D:\工巧明\GCM\GCM-ERP-SYS\工巧明智能管理系統\我的系統\obj\x86\Debug\工巧明智能管理系統.vbproj.SuggestedBindingRedirects.cache

BIN
工巧明智能管理系統/我的系統/obj/x86/Debug/工巧明智能管理系統.vbproj.GenerateResource.cache View File


BIN
工巧明智能管理系統/我的系統/obj/x86/Debug/工巧明智能管理系統.vbproj.ResolveComReference.cache View File


+ 0
- 0
工巧明智能管理系統/我的系統/obj/x86/Debug/工巧明智能管理系統.vbproj.SuggestedBindingRedirects.cache View File


BIN
工巧明智能管理系統/我的系統/obj/x86/Debug/工巧明智能管理系統.vbprojAssemblyReference.cache View File


+ 4
- 2
工巧明智能管理系統/我的系統/工巧明智能管理系統.vbproj View File

@@ -1,5 +1,5 @@
1 1
 <?xml version="1.0" encoding="utf-8"?>
2
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 3
   <PropertyGroup>
4 4
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5 5
     <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
@@ -13,7 +13,7 @@
13 13
     <AssemblyName>GCM-ERP-SYS</AssemblyName>
14 14
     <FileAlignment>512</FileAlignment>
15 15
     <MyType>WindowsForms</MyType>
16
-    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
16
+    <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
17 17
     <TargetFrameworkProfile>
18 18
     </TargetFrameworkProfile>
19 19
     <IsWebBootstrapper>false</IsWebBootstrapper>
@@ -43,6 +43,7 @@
43 43
     <NoWarn>41999,42016,42017,42018,42019,42020,42021,42022,42032,42036</NoWarn>
44 44
     <WarningsAsErrors>
45 45
     </WarningsAsErrors>
46
+    <Prefer32Bit>false</Prefer32Bit>
46 47
   </PropertyGroup>
47 48
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
48 49
     <PlatformTarget>x86</PlatformTarget>
@@ -55,6 +56,7 @@
55 56
     <NoWarn>41999,42016,42017,42018,42019,42020,42021,42022,42032,42036</NoWarn>
56 57
     <WarningsAsErrors>
57 58
     </WarningsAsErrors>
59
+    <Prefer32Bit>false</Prefer32Bit>
58 60
   </PropertyGroup>
59 61
   <PropertyGroup>
60 62
     <OptionExplicit>On</OptionExplicit>

+ 105
- 80
工巧明智能管理系統/我的系統/財務系統管理/匯率修改.Designer.vb View File

@@ -22,25 +22,27 @@ Partial Class 匯率修改
22 22
     '請不要使用程式碼編輯器進行修改。
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25
-        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
-        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
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 28
         Me.Label1 = New System.Windows.Forms.Label()
29
-        Me.TextBox1 = New System.Windows.Forms.TextBox()
29
+        Me.人民幣中心_tb = New System.Windows.Forms.TextBox()
30 30
         Me.Button2 = New System.Windows.Forms.Button()
31 31
         Me.Button4 = New System.Windows.Forms.Button()
32 32
         Me.Button5 = New System.Windows.Forms.Button()
33 33
         Me.DataGridView4 = New System.Windows.Forms.DataGridView()
34 34
         Me.Label2 = New System.Windows.Forms.Label()
35 35
         Me.Label3 = New System.Windows.Forms.Label()
36
-        Me.TextBox2 = New System.Windows.Forms.TextBox()
37
-        Me.TextBox3 = New System.Windows.Forms.TextBox()
36
+        Me.人民幣買_tb = New System.Windows.Forms.TextBox()
37
+        Me.人民幣賣_tb = New System.Windows.Forms.TextBox()
38 38
         Me.DateTimePicker1 = New System.Windows.Forms.DateTimePicker()
39 39
         Me.CheckBox1 = New System.Windows.Forms.CheckBox()
40 40
         Me.TextBox4 = New System.Windows.Forms.TextBox()
41 41
         Me.TextBox5 = New System.Windows.Forms.TextBox()
42
-        Me.TextBox6 = New System.Windows.Forms.TextBox()
42
+        Me.美金中心_tb = New System.Windows.Forms.TextBox()
43 43
         Me.Label4 = New System.Windows.Forms.Label()
44
+        Me.印尼中心_tb = New System.Windows.Forms.TextBox()
45
+        Me.Label5 = New System.Windows.Forms.Label()
44 46
         CType(Me.DataGridView4, System.ComponentModel.ISupportInitialize).BeginInit()
45 47
         Me.SuspendLayout()
46 48
         '
@@ -48,26 +50,26 @@ Partial Class 匯率修改
48 50
         '
49 51
         Me.Label1.AutoSize = True
50 52
         Me.Label1.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
51
-        Me.Label1.Location = New System.Drawing.Point(13, 123)
53
+        Me.Label1.Location = New System.Drawing.Point(5, 98)
52 54
         Me.Label1.Name = "Label1"
53 55
         Me.Label1.Size = New System.Drawing.Size(73, 20)
54 56
         Me.Label1.TabIndex = 9
55 57
         Me.Label1.Text = "目前匯率"
56 58
         '
57
-        'TextBox1
59
+        '人民幣中心_tb
58 60
         '
59
-        Me.TextBox1.Enabled = False
60
-        Me.TextBox1.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
61
-        Me.TextBox1.Location = New System.Drawing.Point(92, 120)
62
-        Me.TextBox1.Name = "TextBox1"
63
-        Me.TextBox1.Size = New System.Drawing.Size(147, 29)
64
-        Me.TextBox1.TabIndex = 10
61
+        Me.人民幣中心_tb.Enabled = False
62
+        Me.人民幣中心_tb.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
63
+        Me.人民幣中心_tb.Location = New System.Drawing.Point(84, 95)
64
+        Me.人民幣中心_tb.Name = "人民幣中心_tb"
65
+        Me.人民幣中心_tb.Size = New System.Drawing.Size(147, 29)
66
+        Me.人民幣中心_tb.TabIndex = 10
65 67
         '
66 68
         'Button2
67 69
         '
68 70
         Me.Button2.Font = New System.Drawing.Font("微軟正黑體", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
69 71
         Me.Button2.ForeColor = System.Drawing.Color.DarkGreen
70
-        Me.Button2.Location = New System.Drawing.Point(12, 185)
72
+        Me.Button2.Location = New System.Drawing.Point(9, 190)
71 73
         Me.Button2.Name = "Button2"
72 74
         Me.Button2.Size = New System.Drawing.Size(101, 34)
73 75
         Me.Button2.TabIndex = 11
@@ -79,9 +81,9 @@ Partial Class 匯率修改
79 81
         Me.Button4.Enabled = False
80 82
         Me.Button4.Font = New System.Drawing.Font("微軟正黑體", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
81 83
         Me.Button4.ForeColor = System.Drawing.Color.Green
82
-        Me.Button4.Location = New System.Drawing.Point(119, 185)
84
+        Me.Button4.Location = New System.Drawing.Point(111, 190)
83 85
         Me.Button4.Name = "Button4"
84
-        Me.Button4.Size = New System.Drawing.Size(120, 74)
86
+        Me.Button4.Size = New System.Drawing.Size(120, 69)
85 87
         Me.Button4.TabIndex = 12
86 88
         Me.Button4.Text = "儲存修改"
87 89
         Me.Button4.UseVisualStyleBackColor = True
@@ -91,7 +93,7 @@ Partial Class 匯率修改
91 93
         Me.Button5.Enabled = False
92 94
         Me.Button5.Font = New System.Drawing.Font("微軟正黑體", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
93 95
         Me.Button5.ForeColor = System.Drawing.Color.Black
94
-        Me.Button5.Location = New System.Drawing.Point(12, 225)
96
+        Me.Button5.Location = New System.Drawing.Point(9, 225)
95 97
         Me.Button5.Name = "Button5"
96 98
         Me.Button5.Size = New System.Drawing.Size(101, 34)
97 99
         Me.Button5.TabIndex = 19
@@ -101,44 +103,44 @@ Partial Class 匯率修改
101 103
         'DataGridView4
102 104
         '
103 105
         Me.DataGridView4.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
104
-        DataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
105
-        DataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control
106
-        DataGridViewCellStyle4.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
107
-        DataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText
108
-        DataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight
109
-        DataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText
110
-        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
111
-        Me.DataGridView4.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle4
106
+        DataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
107
+        DataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control
108
+        DataGridViewCellStyle1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
109
+        DataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText
110
+        DataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight
111
+        DataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText
112
+        DataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
113
+        Me.DataGridView4.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle1
112 114
         Me.DataGridView4.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
113
-        DataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
114
-        DataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window
115
-        DataGridViewCellStyle5.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
116
-        DataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText
117
-        DataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight
118
-        DataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText
119
-        DataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
120
-        Me.DataGridView4.DefaultCellStyle = DataGridViewCellStyle5
121
-        Me.DataGridView4.Location = New System.Drawing.Point(245, 12)
115
+        DataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
116
+        DataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window
117
+        DataGridViewCellStyle2.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
118
+        DataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText
119
+        DataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight
120
+        DataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText
121
+        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
122
+        Me.DataGridView4.DefaultCellStyle = DataGridViewCellStyle2
123
+        Me.DataGridView4.Location = New System.Drawing.Point(235, 5)
122 124
         Me.DataGridView4.Name = "DataGridView4"
123
-        DataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
124
-        DataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control
125
-        DataGridViewCellStyle6.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
126
-        DataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText
127
-        DataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight
128
-        DataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText
129
-        DataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
130
-        Me.DataGridView4.RowHeadersDefaultCellStyle = DataGridViewCellStyle6
125
+        DataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
126
+        DataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control
127
+        DataGridViewCellStyle3.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
128
+        DataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText
129
+        DataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight
130
+        DataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText
131
+        DataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
132
+        Me.DataGridView4.RowHeadersDefaultCellStyle = DataGridViewCellStyle3
131 133
         Me.DataGridView4.RowHeadersWidth = 5
132 134
         Me.DataGridView4.RowTemplate.Height = 24
133 135
         Me.DataGridView4.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.[True]
134
-        Me.DataGridView4.Size = New System.Drawing.Size(410, 247)
136
+        Me.DataGridView4.Size = New System.Drawing.Size(530, 254)
135 137
         Me.DataGridView4.TabIndex = 39
136 138
         '
137 139
         'Label2
138 140
         '
139 141
         Me.Label2.AutoSize = True
140 142
         Me.Label2.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
141
-        Me.Label2.Location = New System.Drawing.Point(13, 53)
143
+        Me.Label2.Location = New System.Drawing.Point(5, 36)
142 144
         Me.Label2.Name = "Label2"
143 145
         Me.Label2.Size = New System.Drawing.Size(73, 20)
144 146
         Me.Label2.TabIndex = 40
@@ -148,35 +150,35 @@ Partial Class 匯率修改
148 150
         '
149 151
         Me.Label3.AutoSize = True
150 152
         Me.Label3.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
151
-        Me.Label3.Location = New System.Drawing.Point(13, 88)
153
+        Me.Label3.Location = New System.Drawing.Point(5, 67)
152 154
         Me.Label3.Name = "Label3"
153 155
         Me.Label3.Size = New System.Drawing.Size(73, 20)
154 156
         Me.Label3.TabIndex = 41
155 157
         Me.Label3.Text = "賣出匯率"
156 158
         '
157
-        'TextBox2
159
+        '人民幣買_tb
158 160
         '
159
-        Me.TextBox2.Enabled = False
160
-        Me.TextBox2.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
161
-        Me.TextBox2.Location = New System.Drawing.Point(92, 50)
162
-        Me.TextBox2.Name = "TextBox2"
163
-        Me.TextBox2.Size = New System.Drawing.Size(147, 29)
164
-        Me.TextBox2.TabIndex = 42
161
+        Me.人民幣買_tb.Enabled = False
162
+        Me.人民幣買_tb.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
163
+        Me.人民幣買_tb.Location = New System.Drawing.Point(84, 33)
164
+        Me.人民幣買_tb.Name = "人民幣買_tb"
165
+        Me.人民幣買_tb.Size = New System.Drawing.Size(147, 29)
166
+        Me.人民幣買_tb.TabIndex = 42
165 167
         '
166
-        'TextBox3
168
+        '人民幣賣_tb
167 169
         '
168
-        Me.TextBox3.Enabled = False
169
-        Me.TextBox3.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
170
-        Me.TextBox3.Location = New System.Drawing.Point(92, 85)
171
-        Me.TextBox3.Name = "TextBox3"
172
-        Me.TextBox3.Size = New System.Drawing.Size(147, 29)
173
-        Me.TextBox3.TabIndex = 43
170
+        Me.人民幣賣_tb.Enabled = False
171
+        Me.人民幣賣_tb.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
172
+        Me.人民幣賣_tb.Location = New System.Drawing.Point(84, 64)
173
+        Me.人民幣賣_tb.Name = "人民幣賣_tb"
174
+        Me.人民幣賣_tb.Size = New System.Drawing.Size(147, 29)
175
+        Me.人民幣賣_tb.TabIndex = 43
174 176
         '
175 177
         'DateTimePicker1
176 178
         '
177 179
         Me.DateTimePicker1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
178 180
         Me.DateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
179
-        Me.DateTimePicker1.Location = New System.Drawing.Point(17, 12)
181
+        Me.DateTimePicker1.Location = New System.Drawing.Point(9, 5)
180 182
         Me.DateTimePicker1.Name = "DateTimePicker1"
181 183
         Me.DateTimePicker1.Size = New System.Drawing.Size(120, 23)
182 184
         Me.DateTimePicker1.TabIndex = 44
@@ -184,7 +186,7 @@ Partial Class 匯率修改
184 186
         'CheckBox1
185 187
         '
186 188
         Me.CheckBox1.AutoSize = True
187
-        Me.CheckBox1.Location = New System.Drawing.Point(143, 18)
189
+        Me.CheckBox1.Location = New System.Drawing.Point(135, 11)
188 190
         Me.CheckBox1.Name = "CheckBox1"
189 191
         Me.CheckBox1.Size = New System.Drawing.Size(96, 16)
190 192
         Me.CheckBox1.TabIndex = 89
@@ -211,45 +213,66 @@ Partial Class 匯率修改
211 213
         Me.TextBox5.TabIndex = 91
212 214
         Me.TextBox5.Visible = False
213 215
         '
214
-        'TextBox6
216
+        '美金中心_tb
215 217
         '
216
-        Me.TextBox6.Enabled = False
217
-        Me.TextBox6.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
218
-        Me.TextBox6.Location = New System.Drawing.Point(92, 154)
219
-        Me.TextBox6.Name = "TextBox6"
220
-        Me.TextBox6.Size = New System.Drawing.Size(147, 29)
221
-        Me.TextBox6.TabIndex = 93
218
+        Me.美金中心_tb.Enabled = False
219
+        Me.美金中心_tb.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
220
+        Me.美金中心_tb.Location = New System.Drawing.Point(84, 126)
221
+        Me.美金中心_tb.Name = "美金中心_tb"
222
+        Me.美金中心_tb.Size = New System.Drawing.Size(147, 29)
223
+        Me.美金中心_tb.TabIndex = 93
222 224
         '
223 225
         'Label4
224 226
         '
225 227
         Me.Label4.AutoSize = True
226 228
         Me.Label4.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
227
-        Me.Label4.Location = New System.Drawing.Point(13, 157)
229
+        Me.Label4.Location = New System.Drawing.Point(5, 130)
228 230
         Me.Label4.Name = "Label4"
229 231
         Me.Label4.Size = New System.Drawing.Size(73, 20)
230 232
         Me.Label4.TabIndex = 92
231 233
         Me.Label4.Text = "美金匯率"
232 234
         '
235
+        '印尼中心_tb
236
+        '
237
+        Me.印尼中心_tb.Enabled = False
238
+        Me.印尼中心_tb.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
239
+        Me.印尼中心_tb.Location = New System.Drawing.Point(84, 157)
240
+        Me.印尼中心_tb.Name = "印尼中心_tb"
241
+        Me.印尼中心_tb.Size = New System.Drawing.Size(147, 29)
242
+        Me.印尼中心_tb.TabIndex = 95
243
+        '
244
+        'Label5
245
+        '
246
+        Me.Label5.AutoSize = True
247
+        Me.Label5.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
248
+        Me.Label5.Location = New System.Drawing.Point(5, 160)
249
+        Me.Label5.Name = "Label5"
250
+        Me.Label5.Size = New System.Drawing.Size(73, 20)
251
+        Me.Label5.TabIndex = 94
252
+        Me.Label5.Text = "印尼匯率"
253
+        '
233 254
         '匯率修改
234 255
         '
235 256
         Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!)
236 257
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
237
-        Me.ClientSize = New System.Drawing.Size(667, 265)
238
-        Me.Controls.Add(Me.TextBox6)
258
+        Me.ClientSize = New System.Drawing.Size(771, 265)
259
+        Me.Controls.Add(Me.印尼中心_tb)
260
+        Me.Controls.Add(Me.Label5)
261
+        Me.Controls.Add(Me.美金中心_tb)
239 262
         Me.Controls.Add(Me.Label4)
240 263
         Me.Controls.Add(Me.TextBox5)
241 264
         Me.Controls.Add(Me.TextBox4)
242 265
         Me.Controls.Add(Me.CheckBox1)
243 266
         Me.Controls.Add(Me.DateTimePicker1)
244
-        Me.Controls.Add(Me.TextBox3)
245
-        Me.Controls.Add(Me.TextBox2)
267
+        Me.Controls.Add(Me.人民幣賣_tb)
268
+        Me.Controls.Add(Me.人民幣買_tb)
246 269
         Me.Controls.Add(Me.Label3)
247 270
         Me.Controls.Add(Me.Label2)
248 271
         Me.Controls.Add(Me.DataGridView4)
249 272
         Me.Controls.Add(Me.Button5)
250 273
         Me.Controls.Add(Me.Button4)
251 274
         Me.Controls.Add(Me.Button2)
252
-        Me.Controls.Add(Me.TextBox1)
275
+        Me.Controls.Add(Me.人民幣中心_tb)
253 276
         Me.Controls.Add(Me.Label1)
254 277
         Me.Name = "匯率修改"
255 278
         Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
@@ -260,19 +283,21 @@ Partial Class 匯率修改
260 283
 
261 284
     End Sub
262 285
     Friend WithEvents Label1 As System.Windows.Forms.Label
263
-    Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
286
+    Friend WithEvents 人民幣中心_tb As System.Windows.Forms.TextBox
264 287
     Friend WithEvents Button2 As System.Windows.Forms.Button
265 288
     Friend WithEvents Button4 As System.Windows.Forms.Button
266 289
     Friend WithEvents Button5 As System.Windows.Forms.Button
267 290
     Friend WithEvents DataGridView4 As DataGridView
268 291
     Friend WithEvents Label2 As Label
269 292
     Friend WithEvents Label3 As Label
270
-    Friend WithEvents TextBox2 As TextBox
271
-    Friend WithEvents TextBox3 As TextBox
293
+    Friend WithEvents 人民幣買_tb As TextBox
294
+    Friend WithEvents 人民幣賣_tb As TextBox
272 295
     Friend WithEvents DateTimePicker1 As DateTimePicker
273 296
     Friend WithEvents CheckBox1 As CheckBox
274 297
     Friend WithEvents TextBox4 As TextBox
275 298
     Friend WithEvents TextBox5 As TextBox
276
-    Friend WithEvents TextBox6 As TextBox
299
+    Friend WithEvents 美金中心_tb As TextBox
277 300
     Friend WithEvents Label4 As Label
301
+    Friend WithEvents 印尼中心_tb As TextBox
302
+    Friend WithEvents Label5 As Label
278 303
 End Class

+ 31
- 26
工巧明智能管理系統/我的系統/財務系統管理/匯率修改.vb View File

@@ -8,7 +8,7 @@ Public Class 匯率修改
8 8
         DataGridView4.Columns(4).FillWeight = 60 : DataGridView4.Columns(5).FillWeight = 60
9 9
     End Sub
10 10
     Private Sub Set_日期()
11
-        TextBox4.Text = Format(DateTimePicker1.Value, "yyyy") : TextBox5.Text = Format(DateTimePicker1.Value, "MM")
11
+        TextBox4.Text = Strings.Left(Strings.Format(DateTimePicker1.Value, "yyyy/MM/dd"), 4) : TextBox5.Text = Strings.Mid(Strings.Format(DateTimePicker1.Value, "yyyy/MM/dd"), 6, 2)
12 12
     End Sub
13 13
     Private Sub Set_歷史匯率清單()
14 14
         DataGridView4.DataSource = Nothing : ds.Clear()
@@ -16,15 +16,14 @@ Public Class 匯率修改
16 16
         DataGridView4.ColumnHeadersHeight = 25
17 17
         DataGridView4.AllowUserToAddRows = False
18 18
         ConnOpen()
19
-        SQL1 = "SELECT 年, 月, 買進匯率, 賣出匯率, 中心匯率, 美金匯率 FROM 歷史匯率表 ORDER BY 年 DESC, 月 DESC"
19
+        SQL1 = "SELECT 年, 月, 買進匯率, 賣出匯率, 中心匯率, 美金匯率, 印尼匯率 FROM 歷史匯率表 ORDER BY 年 DESC, 月 DESC"
20 20
         CmdSet_For_DGV() : da.Fill(ds) : DataGridView4.DataSource = ds.Tables(0) : conn.Close()
21 21
     End Sub
22 22
     Private Sub DataGridView4_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView4.CellClick
23 23
         If e.RowIndex = -1 Then : Else
24
-            TextBox2.Text = DataGridView4(2, e.RowIndex).Value.ToString
25
-            TextBox3.Text = DataGridView4(3, e.RowIndex).Value.ToString
26
-            TextBox1.Text = DataGridView4(4, e.RowIndex).Value.ToString
27
-            TextBox6.Text = DataGridView4(5, e.RowIndex).Value.ToString
24
+            人民幣買_tb.Text = DataGridView4(2, e.RowIndex).Value.ToString : 人民幣賣_tb.Text = DataGridView4(3, e.RowIndex).Value.ToString
25
+            人民幣中心_tb.Text = DataGridView4(4, e.RowIndex).Value.ToString : 美金中心_tb.Text = DataGridView4(5, e.RowIndex).Value.ToString
26
+            印尼中心_tb.Text = DataGridView4(6, e.RowIndex).Value.ToString
28 27
         End If
29 28
     End Sub
30 29
     Private Sub Set_日期寫入()
@@ -34,13 +33,14 @@ Public Class 匯率修改
34 33
         CmdSet_For_dr()
35 34
         If dr.Read() Then
36 35
             ConnOpen()
37
-            SQL1 = "UPDATE 歷史匯率表 SET 買進匯率 = '" & TextBox2.Text & "', 賣出匯率 = '" & TextBox3.Text & "', 中心匯率 = '" & TextBox1.Text & "', 美金匯率 = '" & TextBox6.Text & "'  
38
-                   WHERE (年 LIKE '" & TextBox4.Text & "%') AND (月 LIKE '" & TextBox5.Text & "%')"
36
+            SQL1 = "UPDATE 歷史匯率表 SET 買進匯率 = '" & 人民幣買_tb.Text & "', 賣出匯率 = '" & 人民幣賣_tb.Text & "', 中心匯率 = '" & 人民幣中心_tb.Text & "', 
37
+                                          美金匯率 = '" & 美金中心_tb.Text & "', 印尼匯率 = '" & 印尼中心_tb.Text & "'  
38
+                    WHERE (年 LIKE '" & TextBox4.Text & "%') AND (月 LIKE '" & TextBox5.Text & "%')"
39 39
             CmdSet_For_dr() : conn.Close()
40 40
         Else
41 41
             ConnOpen()
42
-            SQL1 = "INSERT INTO 歷史匯率表 (年, 月, 買進匯率, 賣出匯率, 中心匯率, 美金匯率) VALUES ('" & TextBox4.Text & "','" & TextBox5.Text & "
43
-                          ','" & TextBox2.Text & "', '" & TextBox3.Text & "', '" & TextBox1.Text & "', '" & TextBox6.Text & "')"
42
+            SQL1 = "INSERT INTO 歷史匯率表 (年, 月, 買進匯率, 賣出匯率, 中心匯率, 美金匯率, 印尼匯率) VALUES ('" & TextBox4.Text & "',N'" & TextBox5.Text & " ',
43
+                    '" & 人民幣買_tb.Text & "', '" & 人民幣賣_tb.Text & "', '" & 人民幣中心_tb.Text & "', '" & 美金中心_tb.Text & "', '" & 印尼中心_tb.Text & "')"
44 44
             CmdSet_For_dr() : conn.Close()
45 45
         End If : conn.Close() : MsgBox("完成")
46 46
     End Sub
@@ -50,15 +50,17 @@ Public Class 匯率修改
50 50
         ConnOpen()
51 51
         SQL1 = "SELECT 匯率 FROM 匯率表 WHERE (對應 = '人民幣兌台幣')"
52 52
         CmdSet_For_dr()
53
-        If dr.Read() Then : TextBox1.Text = dr("匯率").ToString : End If
54
-        If TextBox1.Text = "" Then : TextBox1.Text = "0.00" : End If
53
+        If dr.Read() Then : 人民幣中心_tb.Text = dr("匯率").ToString : End If
54
+        If 人民幣中心_tb.Text = "" Then : 人民幣中心_tb.Text = "0.00" : End If
55 55
         conn.Close() : dr.Close()
56 56
 
57 57
         ConnOpen()
58
-        SQL1 = "SELECT 買進匯率, 賣出匯率, 美金匯率 FROM 歷史匯率表  WHERE (年 LIKE '" & TextBox4.Text & "%') AND (月 LIKE '" & TextBox5.Text & "%')"
58
+        SQL1 = "SELECT 買進匯率, 賣出匯率, 美金匯率, 印尼匯率 FROM 歷史匯率表  WHERE (年 LIKE '" & TextBox4.Text & "%') AND (月 LIKE '" & TextBox5.Text & "%')"
59 59
         CmdSet_For_dr()
60
-        If dr.Read() Then : TextBox2.Text = dr("買進匯率").ToString : TextBox3.Text = dr("賣出匯率").ToString : TextBox3.Text = dr("美金匯率").ToString : End If
61
-        If TextBox1.Text = "" Then : TextBox1.Text = "0.00" : End If
60
+        If dr.Read() Then
61
+            人民幣買_tb.Text = dr("買進匯率").ToString : 人民幣賣_tb.Text = dr("賣出匯率").ToString : 美金中心_tb.Text = dr("美金匯率").ToString : 印尼中心_tb.Text = dr("印尼匯率").ToString
62
+        End If
63
+        If 人民幣中心_tb.Text = "" Then : 人民幣中心_tb.Text = "0.00" : End If
62 64
         conn.Close() : dr.Close()
63 65
         Set_歷史匯率清單() : Set_grid() : Set_日期()
64 66
     End Sub
@@ -73,36 +75,39 @@ Public Class 匯率修改
73 75
         GCM_ERP_SYS.Timer1.Enabled = True
74 76
     End Sub
75 77
     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
76
-        TextBox1.Enabled = True : TextBox2.Enabled = True : TextBox3.Enabled = True : TextBox6.Enabled = True : Button4.Enabled = True : Button5.Enabled = True
78
+        人民幣中心_tb.Enabled = True : 人民幣買_tb.Enabled = True : 人民幣賣_tb.Enabled = True : 美金中心_tb.Enabled = True
79
+        Button4.Enabled = True : Button5.Enabled = True : 印尼中心_tb.Enabled = True
77 80
     End Sub
78 81
     Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
79
-        TextBox1.Enabled = False : TextBox2.Enabled = False : TextBox3.Enabled = False : TextBox6.Enabled = False : Button4.Enabled = False : Button5.Enabled = False
82
+        人民幣中心_tb.Enabled = False : 人民幣買_tb.Enabled = False : 人民幣賣_tb.Enabled = False : 美金中心_tb.Enabled = False
83
+        Button4.Enabled = False : Button5.Enabled = False : 印尼中心_tb.Enabled = False
80 84
     End Sub
81 85
     Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
82
-        If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Then
86
+        If 人民幣中心_tb.Text = "" Or 人民幣買_tb.Text = "" Or 人民幣賣_tb.Text = "" Then
83 87
             MsgBox("輸入資料有誤")
84 88
         Else
85 89
             If CheckBox1.Checked = False Then
86 90
                 DateTimePicker1.Value = Today
87 91
                 Set_日期寫入()
88 92
                 ConnOpen()
89
-                SQL1 = "UPDATE 匯率表 SET 匯率 = '" & TextBox1.Text & "' WHERE (對應 = '人民幣兌台幣')"
93
+                SQL1 = "UPDATE 匯率表 SET 匯率 = '" & 人民幣中心_tb.Text & "' WHERE (對應 = '人民幣兌台幣')"
90 94
                 CmdSet_For_dr() : conn.Close() : dr.Close()
91 95
             Else
92 96
                 Set_日期寫入()
93 97
             End If
94 98
         End If
95
-        TextBox1.Enabled = False : TextBox2.Enabled = False : TextBox3.Enabled = False : TextBox6.Enabled = False : Button4.Enabled = False : Button5.Enabled = False
99
+        人民幣中心_tb.Enabled = False : 人民幣買_tb.Enabled = False : 人民幣賣_tb.Enabled = False : 美金中心_tb.Enabled = False
100
+        Button4.Enabled = False : Button5.Enabled = False : 印尼中心_tb.Enabled = False
96 101
         Set_歷史匯率清單() : Set_grid() : Set_日期()
97 102
     End Sub
98
-    Private Sub TextBox2_TextChanged(sender As Object, e As EventArgs) Handles TextBox2.TextChanged
99
-        If TextBox2.Text <> "" And TextBox3.Text <> "" Then
100
-            TextBox1.Text = (Val(TextBox2.Text) + Val(TextBox3.Text)) / 2
103
+    Private Sub TextBox2_TextChanged(sender As Object, e As EventArgs) Handles 人民幣買_tb.TextChanged
104
+        If 人民幣買_tb.Text <> "" And 人民幣賣_tb.Text <> "" Then
105
+            人民幣中心_tb.Text = (Val(人民幣買_tb.Text) + Val(人民幣賣_tb.Text)) / 2
101 106
         End If
102 107
     End Sub
103
-    Private Sub TextBox3_TextChanged(sender As Object, e As EventArgs) Handles TextBox3.TextChanged
104
-        If TextBox2.Text <> "" And TextBox3.Text <> "" Then
105
-            TextBox1.Text = (Val(TextBox2.Text) + Val(TextBox3.Text)) / 2
108
+    Private Sub TextBox3_TextChanged(sender As Object, e As EventArgs) Handles 人民幣賣_tb.TextChanged
109
+        If 人民幣買_tb.Text <> "" And 人民幣賣_tb.Text <> "" Then
110
+            人民幣中心_tb.Text = (Val(人民幣買_tb.Text) + Val(人民幣賣_tb.Text)) / 2
106 111
         End If
107 112
     End Sub
108 113
 End Class

+ 7
- 7
工巧明智能管理系統/我的系統/財務系統管理/財務_對帳單.Designer.vb View File

@@ -1,9 +1,9 @@
1
-<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
2 2
 Partial Class 財務_對帳單
3 3
     Inherits System.Windows.Forms.Form
4 4
 
5 5
     'Form 覆寫 Dispose 以清除元件清單。
6
-    <System.Diagnostics.DebuggerNonUserCode()> _
6
+    <System.Diagnostics.DebuggerNonUserCode()>
7 7
     Protected Overrides Sub Dispose(ByVal disposing As Boolean)
8 8
         Try
9 9
             If disposing AndAlso components IsNot Nothing Then
@@ -20,10 +20,10 @@ Partial Class 財務_對帳單
20 20
     '注意: 以下為 Windows Form 設計工具所需的程序
21 21
     '可以使用 Windows Form 設計工具進行修改。
22 22
     '請勿使用程式碼編輯器進行修改。
23
-    <System.Diagnostics.DebuggerStepThrough()> _
23
+    <System.Diagnostics.DebuggerStepThrough()>
24 24
     Private Sub InitializeComponent()
25 25
         Me.components = New System.ComponentModel.Container()
26
-        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27 27
         Me.Label4 = New System.Windows.Forms.Label()
28 28
         Me.TextBox1 = New System.Windows.Forms.TextBox()
29 29
         Me.TextBox7 = New System.Windows.Forms.TextBox()
@@ -122,8 +122,8 @@ Partial Class 財務_對帳單
122 122
         Me.清單_dgv.Location = New System.Drawing.Point(7, 59)
123 123
         Me.清單_dgv.Name = "清單_dgv"
124 124
         Me.清單_dgv.RowHeadersWidth = 5
125
-        DataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
126
-        Me.清單_dgv.RowsDefaultCellStyle = DataGridViewCellStyle1
125
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
126
+        Me.清單_dgv.RowsDefaultCellStyle = DataGridViewCellStyle4
127 127
         Me.清單_dgv.RowTemplate.Height = 24
128 128
         Me.清單_dgv.Size = New System.Drawing.Size(1236, 522)
129 129
         Me.清單_dgv.TabIndex = 1006
@@ -542,11 +542,11 @@ Partial Class 財務_對帳單
542 542
         Me.Controls.Add(Me.TextBox1)
543 543
         Me.Controls.Add(Me.TextBox7)
544 544
         Me.Controls.Add(Me.Label9)
545
-        Me.Controls.Add(Me.清單_dgv)
546 545
         Me.Controls.Add(Me.Label62)
547 546
         Me.Controls.Add(Me.ComboBox2)
548 547
         Me.Controls.Add(Me.ComboBox1)
549 548
         Me.Controls.Add(Me.Label2)
549
+        Me.Controls.Add(Me.清單_dgv)
550 550
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
551 551
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
552 552
         Me.Name = "財務_對帳單"

+ 13
- 1
工巧明智能管理系統/我的系統/財務系統管理/財務_對帳單.vb View File

@@ -1,7 +1,7 @@
1 1
 Option Strict Off
2 2
 Public Class 財務_對帳單
3 3
     ReadOnly ds As New DataSet
4
-    Dim KKKJJ As String : Dim KKKJJ2 As String : Dim KKKJJ3 As String : Dim KKK3 As String : Dim KKK4 As String
4
+    Dim KKKJJ As String : Dim KKKJJ2 As String : Dim KKKJJ3 As String : Dim KKK3 As String : Dim KKK4 As String : Dim 匯率1 As Double
5 5
     Private Sub Set_清單1()
6 6
         清單_dgv.DataSource = Nothing : ds.Clear()
7 7
         清單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
@@ -85,6 +85,18 @@ Public Class 財務_對帳單
85 85
         While (dr.Read()) : ComboBox1.Items.Add(dr("年份")) : End While
86 86
         conn.Close()
87 87
     End Sub
88
+    'Private Sub 匯率()
89
+    '    ConnOpen()
90
+    '    SQL1 = "SELECT 中心匯率, 美金匯率, 印尼匯率 FROM 歷史匯率表 
91
+    '            WHERE (年 LIKE '" & ComboBox1.Text & "') AND 
92
+    '                  (月 LIKE '" & ComboBox2.Text & "')"
93
+    '    cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
94
+    '    If dr.Read() Then
95
+    '        人民幣匯率_tb.Text = dr("中心匯率").ToString : 美金匯率_tb.Text = dr("美金匯率").ToString : 印尼匯率_tb.Text = dr("印尼匯率").ToString : conn.Close() : dr.Close()
96
+    '    Else
97
+    '        conn.Close() : dr.Close() : 匯率修改.Close() : 匯率修改.Show() : 匯率修改.BringToFront()
98
+    '    End If
99
+    'End Sub
88 100
     Private Sub 營運成本收支單_對帳表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
89 101
         Me.MdiParent = GCM_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
90 102
         TextBox7.Text = "0" : TextBox2.Text = "0" : TextBox3.Text = "0" : TextBox9.Text = "0" : TextBox11.Text = "0" : TextBox13.Text = "0"

+ 39
- 0
工巧明智能管理系統/我的系統/財務系統管理/財務_收支單一覽表.Designer.vb View File

@@ -93,6 +93,9 @@ Partial Class 財務_收支單一覽表
93 93
         Me.全部_ch = New System.Windows.Forms.CheckBox()
94 94
         Me.含稅_ch = New System.Windows.Forms.CheckBox()
95 95
         Me.非稅_ch = New System.Windows.Forms.CheckBox()
96
+        Me.印尼匯率_tb = New System.Windows.Forms.TextBox()
97
+        Me.美金匯率_tb = New System.Windows.Forms.TextBox()
98
+        Me.人民幣匯率_tb = New System.Windows.Forms.TextBox()
96 99
         CType(Me.明細_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
97 100
         CType(Me.DataGridView4, System.ComponentModel.ISupportInitialize).BeginInit()
98 101
         CType(Me.彙總_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -768,12 +771,45 @@ Partial Class 財務_收支單一覽表
768 771
         Me.非稅_ch.Text = "非稅"
769 772
         Me.非稅_ch.UseVisualStyleBackColor = True
770 773
         '
774
+        '印尼匯率_tb
775
+        '
776
+        Me.印尼匯率_tb.Location = New System.Drawing.Point(578, 325)
777
+        Me.印尼匯率_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
778
+        Me.印尼匯率_tb.Name = "印尼匯率_tb"
779
+        Me.印尼匯率_tb.Size = New System.Drawing.Size(175, 23)
780
+        Me.印尼匯率_tb.TabIndex = 1188
781
+        Me.印尼匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
782
+        Me.印尼匯率_tb.Visible = False
783
+        '
784
+        '美金匯率_tb
785
+        '
786
+        Me.美金匯率_tb.Location = New System.Drawing.Point(578, 294)
787
+        Me.美金匯率_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
788
+        Me.美金匯率_tb.Name = "美金匯率_tb"
789
+        Me.美金匯率_tb.Size = New System.Drawing.Size(175, 23)
790
+        Me.美金匯率_tb.TabIndex = 1187
791
+        Me.美金匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
792
+        Me.美金匯率_tb.Visible = False
793
+        '
794
+        '人民幣匯率_tb
795
+        '
796
+        Me.人民幣匯率_tb.Location = New System.Drawing.Point(578, 263)
797
+        Me.人民幣匯率_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
798
+        Me.人民幣匯率_tb.Name = "人民幣匯率_tb"
799
+        Me.人民幣匯率_tb.Size = New System.Drawing.Size(175, 23)
800
+        Me.人民幣匯率_tb.TabIndex = 1186
801
+        Me.人民幣匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
802
+        Me.人民幣匯率_tb.Visible = False
803
+        '
771 804
         '財務_收支單一覽表
772 805
         '
773 806
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
774 807
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
775 808
         Me.ClientSize = New System.Drawing.Size(1331, 611)
776 809
         Me.ContextMenuStrip = Me.ContextMenuStrip1
810
+        Me.Controls.Add(Me.印尼匯率_tb)
811
+        Me.Controls.Add(Me.美金匯率_tb)
812
+        Me.Controls.Add(Me.人民幣匯率_tb)
777 813
         Me.Controls.Add(Me.非稅_ch)
778 814
         Me.Controls.Add(Me.含稅_ch)
779 815
         Me.Controls.Add(Me.全部_ch)
@@ -917,4 +953,7 @@ Partial Class 財務_收支單一覽表
917 953
     Friend WithEvents 全部_ch As CheckBox
918 954
     Friend WithEvents 含稅_ch As CheckBox
919 955
     Friend WithEvents 非稅_ch As CheckBox
956
+    Friend WithEvents 印尼匯率_tb As TextBox
957
+    Friend WithEvents 美金匯率_tb As TextBox
958
+    Friend WithEvents 人民幣匯率_tb As TextBox
920 959
 End Class

+ 23
- 10
工巧明智能管理系統/我的系統/財務系統管理/財務_收支單一覽表.vb View File

@@ -12,7 +12,7 @@ Imports Microsoft.Office.Interop.Excel.XlWindowState
12 12
 Imports Microsoft.Office.Interop.Excel
13 13
 Public Class 財務_收支單一覽表
14 14
     ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet
15
-    Dim DTP As String : Dim N1 As Integer : Dim N2 As Integer
15
+    Dim DTP As String : Dim N1 As Integer : Dim N2 As Integer : Dim 匯率1 As Double
16 16
     Dim xlApp As Application
17 17
     Dim xlBook As Workbook
18 18
     Dim xlSheet As Worksheet
@@ -95,9 +95,9 @@ Public Class 財務_收支單一覽表
95 95
                 ORDER BY    財務流水帳.項次"
96 96
         CmdSet_For_DGV() : da.Fill(ds) : 明細_dgv.DataSource = ds.Tables(0) : conn.Close()
97 97
 
98
-        明細_dgv.Columns(0).Visible = False : 明細_dgv.Columns(1).FillWeight = 80 : 明細_dgv.Columns(2).FillWeight = 300 : 明細_dgv.Columns(3).FillWeight = 350
99
-        明細_dgv.Columns(4).FillWeight = 160 : 明細_dgv.Columns(5).FillWeight = 160 : 明細_dgv.Columns(6).FillWeight = 160 : 明細_dgv.Columns(7).FillWeight = 160
100
-        明細_dgv.Columns(8).FillWeight = 140 : 明細_dgv.Columns(9).FillWeight = 140 : 明細_dgv.Columns(10).FillWeight = 140 : 明細_dgv.Columns(11).Visible = False
98
+        明細_dgv.Columns(0).Visible = False : 明細_dgv.Columns(1).FillWeight = 80 : 明細_dgv.Columns(2).FillWeight = 250 : 明細_dgv.Columns(3).FillWeight = 400
99
+        明細_dgv.Columns(4).Visible = False : 明細_dgv.Columns(5).FillWeight = 120 : 明細_dgv.Columns(6).FillWeight = 165 : 明細_dgv.Columns(7).FillWeight = 165
100
+        明細_dgv.Columns(8).FillWeight = 150 : 明細_dgv.Columns(9).FillWeight = 130 : 明細_dgv.Columns(10).FillWeight = 140 : 明細_dgv.Columns(11).Visible = False
101 101
         明細_dgv.Columns(12).Visible = False : 明細_dgv.Columns(13).FillWeight = 80
102 102
 
103 103
         明細_dgv.Columns(1).ReadOnly = True : 明細_dgv.Columns(2).ReadOnly = True : 明細_dgv.Columns(9).ReadOnly = True : 明細_dgv.Columns(10).ReadOnly = True
@@ -114,12 +114,13 @@ Public Class 財務_收支單一覽表
114 114
 
115 115
         現1_tb.Text = "0.00" : 出1_tb.Text = "0.00" : 合1_tb.Text = "0.00" : 零1_tb.Text = "0.00" : 支1_tb.Text = "0.00"
116 116
         零2_tb.Text = "0.00" : 支2_tb.Text = "0.00" : 現2_tb.Text = "0.00" : 出2_tb.Text = "0.00" : 合2_tb.Text = "0.00"
117
+        零3_tb.Text = "0.00" : 支3_tb.Text = "0.00" : 現3_tb.Text = "0.00" : 出3_tb.Text = "0.00" : 合3_tb.Text = "0.00"
117 118
         For i As Integer = 0 To 明細_dgv.Rows.Count - 1
118
-            If 明細_dgv.Rows(i).Cells("幣別").Value = "台幣現金" Then
119
-                現1_tb.Text = Val(現1_tb.Text) + 明細_dgv.Rows(i).Cells("現金").Value
120
-                出1_tb.Text = Val(出1_tb.Text) + 明細_dgv.Rows(i).Cells("支出").Value
121
-                零1_tb.Text = Val(零1_tb.Text) + 明細_dgv.Rows(i).Cells("零用金").Value
122
-                支1_tb.Text = Val(支1_tb.Text) + 明細_dgv.Rows(i).Cells("支票").Value
119
+            If 明細_dgv.Rows(i).Cells("幣別").Value = "台幣現金" Or 明細_dgv.Rows(i).Cells("幣別").Value = "印尼盾" Then
120
+                現1_tb.Text = Val(現1_tb.Text) + 明細_dgv.Rows(i).Cells("現金").Value * 明細_dgv.Rows(i).Cells("匯率").Value
121
+                出1_tb.Text = Val(出1_tb.Text) + 明細_dgv.Rows(i).Cells("支出").Value * 明細_dgv.Rows(i).Cells("匯率").Value
122
+                零1_tb.Text = Val(零1_tb.Text) + 明細_dgv.Rows(i).Cells("零用金").Value * 明細_dgv.Rows(i).Cells("匯率").Value
123
+                支1_tb.Text = Val(支1_tb.Text) + 明細_dgv.Rows(i).Cells("支票").Value * 明細_dgv.Rows(i).Cells("匯率").Value
123 124
             End If
124 125
             If 明細_dgv.Rows(i).Cells("幣別").Value = "人民幣現金" Then
125 126
                 現2_tb.Text = Val(現2_tb.Text) + 明細_dgv.Rows(i).Cells("現金").Value
@@ -166,10 +167,22 @@ Public Class 財務_收支單一覽表
166 167
             結束日期_dtp.Value = 結束日期_dtp.Value.AddMonths(1) : 結束日期_dtp.Value = 結束日期_dtp.Value.AddDays(-1)
167 168
         End If
168 169
     End Sub
170
+    Private Sub 匯率()
171
+        ConnOpen()
172
+        SQL1 = "SELECT 中心匯率, 美金匯率, 印尼匯率 FROM 歷史匯率表 
173
+                WHERE (年 LIKE '" & Strings.Left(Strings.Format(DateTimePicker1.Value, "yyyyMMdd"), 4) & "%') AND 
174
+                      (月 LIKE '" & Strings.Mid(Strings.Format(DateTimePicker1.Value, "yyyyMMdd"), 5, 2) & "%')"
175
+        cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
176
+        If dr.Read() Then
177
+            人民幣匯率_tb.Text = dr("中心匯率").ToString : 美金匯率_tb.Text = dr("美金匯率").ToString : 印尼匯率_tb.Text = dr("印尼匯率").ToString : conn.Close() : dr.Close()
178
+        Else
179
+            conn.Close() : dr.Close() : 匯率修改.Close() : 匯率修改.Show() : 匯率修改.BringToFront()
180
+        End If
181
+    End Sub
169 182
     Private Sub 營運費用支付單一覽表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
170 183
         Me.MdiParent = GCM_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
171 184
         DTP = Strings.Left(Strings.Format(Today(), "yyyy/MM/dd"), 8) & "01"
172
-        開始日期_dtp.Value = DTP : 結束日期_dtp.Value = Today()
185
+        匯率() : 開始日期_dtp.Value = DTP : 結束日期_dtp.Value = Today()
173 186
         日期格式() : 開始日期_dtp.Value = 開始日期_dtp.Value.AddMonths(-1) : 彙總_dgv.Visible = False : RadioButton1.Checked = True
174 187
     End Sub
175 188
     Dim 已超出 As Boolean

+ 49
- 10
工巧明智能管理系統/我的系統/財務系統管理/財務_收支單審核.Designer.vb View File

@@ -23,9 +23,9 @@ Partial Class 財務_收支單審核
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25 25
         Me.components = New System.ComponentModel.Container()
26
-        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29 29
         Me.Button2 = New System.Windows.Forms.Button()
30 30
         Me.Button1 = New System.Windows.Forms.Button()
31 31
         Me.明細_dgv = New System.Windows.Forms.DataGridView()
@@ -60,6 +60,9 @@ Partial Class 財務_收支單審核
60 60
         Me.Label19 = New System.Windows.Forms.Label()
61 61
         Me.PictureBox1 = New System.Windows.Forms.PictureBox()
62 62
         Me.DataGridView3 = New System.Windows.Forms.DataGridView()
63
+        Me.印尼匯率_tb = New System.Windows.Forms.TextBox()
64
+        Me.美金匯率_tb = New System.Windows.Forms.TextBox()
65
+        Me.人民幣匯率_tb = New System.Windows.Forms.TextBox()
63 66
         CType(Me.明細_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
64 67
         CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).BeginInit()
65 68
         Me.ContextMenuStrip1.SuspendLayout()
@@ -91,8 +94,8 @@ Partial Class 財務_收支單審核
91 94
         '
92 95
         '明細_dgv
93 96
         '
94
-        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
95
-        Me.明細_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
97
+        DataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
98
+        Me.明細_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4
96 99
         Me.明細_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
97 100
             Or System.Windows.Forms.AnchorStyles.Left) _
98 101
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -101,8 +104,8 @@ Partial Class 財務_收支單審核
101 104
         Me.明細_dgv.Location = New System.Drawing.Point(327, 55)
102 105
         Me.明細_dgv.Name = "明細_dgv"
103 106
         Me.明細_dgv.RowHeadersWidth = 5
104
-        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
105
-        Me.明細_dgv.RowsDefaultCellStyle = DataGridViewCellStyle2
107
+        DataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
108
+        Me.明細_dgv.RowsDefaultCellStyle = DataGridViewCellStyle5
106 109
         Me.明細_dgv.RowTemplate.Height = 24
107 110
         Me.明細_dgv.Size = New System.Drawing.Size(916, 549)
108 111
         Me.明細_dgv.TabIndex = 823
@@ -131,8 +134,8 @@ Partial Class 財務_收支單審核
131 134
         '
132 135
         'DataGridView2
133 136
         '
134
-        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
135
-        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
137
+        DataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
138
+        Me.DataGridView2.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle6
136 139
         Me.DataGridView2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
137 140
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
138 141
         Me.DataGridView2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
@@ -395,12 +398,45 @@ Partial Class 財務_收支單審核
395 398
         Me.DataGridView3.Size = New System.Drawing.Size(180, 47)
396 399
         Me.DataGridView3.TabIndex = 959
397 400
         '
401
+        '印尼匯率_tb
402
+        '
403
+        Me.印尼匯率_tb.Location = New System.Drawing.Point(892, 256)
404
+        Me.印尼匯率_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
405
+        Me.印尼匯率_tb.Name = "印尼匯率_tb"
406
+        Me.印尼匯率_tb.Size = New System.Drawing.Size(175, 23)
407
+        Me.印尼匯率_tb.TabIndex = 967
408
+        Me.印尼匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
409
+        Me.印尼匯率_tb.Visible = False
410
+        '
411
+        '美金匯率_tb
412
+        '
413
+        Me.美金匯率_tb.Location = New System.Drawing.Point(892, 225)
414
+        Me.美金匯率_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
415
+        Me.美金匯率_tb.Name = "美金匯率_tb"
416
+        Me.美金匯率_tb.Size = New System.Drawing.Size(175, 23)
417
+        Me.美金匯率_tb.TabIndex = 966
418
+        Me.美金匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
419
+        Me.美金匯率_tb.Visible = False
420
+        '
421
+        '人民幣匯率_tb
422
+        '
423
+        Me.人民幣匯率_tb.Location = New System.Drawing.Point(892, 194)
424
+        Me.人民幣匯率_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
425
+        Me.人民幣匯率_tb.Name = "人民幣匯率_tb"
426
+        Me.人民幣匯率_tb.Size = New System.Drawing.Size(175, 23)
427
+        Me.人民幣匯率_tb.TabIndex = 965
428
+        Me.人民幣匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
429
+        Me.人民幣匯率_tb.Visible = False
430
+        '
398 431
         '財務_收支單審核
399 432
         '
400 433
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
401 434
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
402 435
         Me.ClientSize = New System.Drawing.Size(1249, 611)
403 436
         Me.ContextMenuStrip = Me.ContextMenuStrip1
437
+        Me.Controls.Add(Me.印尼匯率_tb)
438
+        Me.Controls.Add(Me.美金匯率_tb)
439
+        Me.Controls.Add(Me.人民幣匯率_tb)
404 440
         Me.Controls.Add(Me.TextBox14)
405 441
         Me.Controls.Add(Me.TextBox13)
406 442
         Me.Controls.Add(Me.Label20)
@@ -425,11 +461,11 @@ Partial Class 財務_收支單審核
425 461
         Me.Controls.Add(Me.Label1)
426 462
         Me.Controls.Add(Me.Button2)
427 463
         Me.Controls.Add(Me.Button1)
428
-        Me.Controls.Add(Me.明細_dgv)
429 464
         Me.Controls.Add(Me.RadioButton2)
430 465
         Me.Controls.Add(Me.RadioButton1)
431 466
         Me.Controls.Add(Me.DataGridView2)
432 467
         Me.Controls.Add(Me.TextBox8)
468
+        Me.Controls.Add(Me.明細_dgv)
433 469
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
434 470
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
435 471
         Me.Name = "財務_收支單審核"
@@ -477,4 +513,7 @@ Partial Class 財務_收支單審核
477 513
     Friend WithEvents Label19 As Label
478 514
     Friend WithEvents PictureBox1 As PictureBox
479 515
     Friend WithEvents DataGridView3 As DataGridView
516
+    Friend WithEvents 印尼匯率_tb As TextBox
517
+    Friend WithEvents 美金匯率_tb As TextBox
518
+    Friend WithEvents 人民幣匯率_tb As TextBox
480 519
 End Class

+ 20
- 7
工巧明智能管理系統/我的系統/財務系統管理/財務_收支單審核.vb View File

@@ -4,7 +4,7 @@ Imports System.IO
4 4
 Public Class 財務_收支單審核
5 5
     ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet
6 6
     Private ReadOnly QQW(11) As String
7
-    Dim DTP As String : Dim WWEE As String : Private II As Integer
7
+    Dim DTP As String : Dim WWEE As String : Private II As Integer : Dim 匯率1 As Double
8 8
     Private Sub Set_清單1()
9 9
         DataGridView2.DataSource = Nothing : ds1.Clear()
10 10
         DataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
@@ -38,9 +38,9 @@ Public Class 財務_收支單審核
38 38
                 ORDER BY    財務流水帳.項次"
39 39
         CmdSet_For_DGV() : da.Fill(ds) : 明細_dgv.DataSource = ds.Tables(0) : conn.Close()
40 40
 
41
-        明細_dgv.Columns(0).Visible = False : 明細_dgv.Columns(1).FillWeight = 80 : 明細_dgv.Columns(2).FillWeight = 300 : 明細_dgv.Columns(3).FillWeight = 500
42
-        明細_dgv.Columns(4).FillWeight = 140 : 明細_dgv.Columns(5).FillWeight = 140 : 明細_dgv.Columns(6).FillWeight = 140 : 明細_dgv.Columns(7).FillWeight = 140
43
-        明細_dgv.Columns(8).FillWeight = 140 : 明細_dgv.Columns(9).FillWeight = 140 : 明細_dgv.Columns(10).FillWeight = 140 : 明細_dgv.Columns(11).Visible = False
41
+        明細_dgv.Columns(0).Visible = False : 明細_dgv.Columns(1).FillWeight = 80 : 明細_dgv.Columns(2).FillWeight = 250 : 明細_dgv.Columns(3).FillWeight = 400
42
+        明細_dgv.Columns(4).Visible = False : 明細_dgv.Columns(5).FillWeight = 120 : 明細_dgv.Columns(6).FillWeight = 165 : 明細_dgv.Columns(7).FillWeight = 165
43
+        明細_dgv.Columns(8).FillWeight = 150 : 明細_dgv.Columns(9).FillWeight = 130 : 明細_dgv.Columns(10).FillWeight = 140 : 明細_dgv.Columns(11).Visible = False
44 44
         明細_dgv.Columns(12).Visible = False : 明細_dgv.Columns(13).FillWeight = 80
45 45
 
46 46
         明細_dgv.Columns(1).ReadOnly = True : 明細_dgv.Columns(2).ReadOnly = True : 明細_dgv.Columns(9).ReadOnly = True : 明細_dgv.Columns(10).ReadOnly = True
@@ -58,8 +58,10 @@ Public Class 財務_收支單審核
58 58
 
59 59
         TextBox5.Text = "0" : TextBox2.Text = "0" : TextBox6.Text = "0" : TextBox7.Text = "0" : TextBox8.Text = "0"
60 60
         For i As Integer = 0 To 明細_dgv.Rows.Count - 1
61
-            TextBox5.Text = Val(TextBox5.Text) + 明細_dgv.Rows(i).Cells("現金").Value : TextBox2.Text = Val(TextBox2.Text) + 明細_dgv.Rows(i).Cells("支出").Value
62
-            TextBox7.Text = Val(TextBox7.Text) + 明細_dgv.Rows(i).Cells("零用金").Value : TextBox8.Text = Val(TextBox8.Text) + 明細_dgv.Rows(i).Cells("支票").Value
61
+            TextBox5.Text = Val(TextBox5.Text) + 明細_dgv.Rows(i).Cells("現金").Value * 明細_dgv.Rows(i).Cells("匯率").Value
62
+            TextBox2.Text = Val(TextBox2.Text) + 明細_dgv.Rows(i).Cells("支出").Value * 明細_dgv.Rows(i).Cells("匯率").Value
63
+            TextBox7.Text = Val(TextBox7.Text) + 明細_dgv.Rows(i).Cells("零用金").Value * 明細_dgv.Rows(i).Cells("匯率").Value
64
+            TextBox8.Text = Val(TextBox8.Text) + 明細_dgv.Rows(i).Cells("支票").Value * 明細_dgv.Rows(i).Cells("匯率").Value
63 65
         Next i
64 66
         TextBox6.Text = Val(TextBox7.Text) + Val(TextBox5.Text) - Val(TextBox2.Text)
65 67
         If Val(TextBox6.Text) > 0 Then : TextBox6.ForeColor = Color.Blue : Else : TextBox6.ForeColor = Color.Red : End If
@@ -122,10 +124,21 @@ Public Class 財務_收支單審核
122 124
     Public Sub Delay(ByRef Interval As Double)  'Interval单位为毫秒
123 125
         Dim time As DateTime = DateTime.Now : Dim Span As Double = Interval * 1234 : While ((DateTime.Now.Ticks - time.Ticks) < Span) : Application.DoEvents() : End While
124 126
     End Sub
127
+    Private Sub 匯率()
128
+        ConnOpen()
129
+        SQL1 = "SELECT 中心匯率, 美金匯率, 印尼匯率 FROM 歷史匯率表 
130
+                WHERE (年 LIKE '" & Strings.Left(Format(DateTimePicker1.Value, "yyyyMMdd"), 4) & "%') AND (月 LIKE '" & Strings.Mid(Format(DateTimePicker1.Value, "yyyyMMdd"), 5, 2) & "%')"
131
+        cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
132
+        If dr.Read() Then
133
+            人民幣匯率_tb.Text = dr("中心匯率").ToString : 美金匯率_tb.Text = dr("美金匯率").ToString : 印尼匯率_tb.Text = dr("印尼匯率").ToString : conn.Close() : dr.Close()
134
+        Else
135
+            conn.Close() : dr.Close() : 匯率修改.Close() : 匯率修改.Show() : 匯率修改.BringToFront()
136
+        End If
137
+    End Sub
125 138
     Private Sub 營運費用支付審核_Load(sender As Object, e As EventArgs) Handles MyBase.Load
126 139
         Me.MdiParent = GCM_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
127 140
         RadioButton1.Checked = True : DataGridView2.Visible = True
128
-        Set_清單1() : Set_清單()
141
+        匯率() : Set_清單1() : Set_清單()
129 142
     End Sub
130 143
     Private Sub DataGridView2_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView2.CellClick
131 144
         If e.RowIndex = -1 Then : Else

+ 56
- 43
工巧明智能管理系統/我的系統/財務系統管理/財務_收支單申請.Designer.vb View File

@@ -27,7 +27,7 @@ Partial Class 財務_收支單申請
27 27
         Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28 28
         Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29 29
         Me.ComboBox1 = New System.Windows.Forms.ComboBox()
30
-        Me.TextBox5 = New System.Windows.Forms.TextBox()
30
+        Me.收入_tb = New System.Windows.Forms.TextBox()
31 31
         Me.Label8 = New System.Windows.Forms.Label()
32 32
         Me.Label62 = New System.Windows.Forms.Label()
33 33
         Me.TextBox4 = New System.Windows.Forms.TextBox()
@@ -58,13 +58,13 @@ Partial Class 財務_收支單申請
58 58
         Me.Label4 = New System.Windows.Forms.Label()
59 59
         Me.DateTimePicker1 = New System.Windows.Forms.DateTimePicker()
60 60
         Me.CheckBox1 = New System.Windows.Forms.CheckBox()
61
-        Me.TextBox2 = New System.Windows.Forms.TextBox()
61
+        Me.支出_tb = New System.Windows.Forms.TextBox()
62 62
         Me.Label5 = New System.Windows.Forms.Label()
63 63
         Me.TextBox6 = New System.Windows.Forms.TextBox()
64 64
         Me.Label9 = New System.Windows.Forms.Label()
65
-        Me.TextBox7 = New System.Windows.Forms.TextBox()
65
+        Me.零用金_tb = New System.Windows.Forms.TextBox()
66 66
         Me.Label10 = New System.Windows.Forms.Label()
67
-        Me.TextBox8 = New System.Windows.Forms.TextBox()
67
+        Me.支票_tb = New System.Windows.Forms.TextBox()
68 68
         Me.Label11 = New System.Windows.Forms.Label()
69 69
         Me.RadioButton3 = New System.Windows.Forms.RadioButton()
70 70
         Me.DateTimePicker2 = New System.Windows.Forms.DateTimePicker()
@@ -79,6 +79,7 @@ Partial Class 財務_收支單申請
79 79
         Me.幣別_cb = New System.Windows.Forms.ComboBox()
80 80
         Me.人民幣匯率_tb = New System.Windows.Forms.TextBox()
81 81
         Me.美金匯率_tb = New System.Windows.Forms.TextBox()
82
+        Me.印尼匯率_tb = New System.Windows.Forms.TextBox()
82 83
         CType(Me.明細_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
83 84
         CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).BeginInit()
84 85
         Me.ContextMenuStrip1.SuspendLayout()
@@ -94,14 +95,14 @@ Partial Class 財務_收支單申請
94 95
         Me.ComboBox1.Size = New System.Drawing.Size(175, 24)
95 96
         Me.ComboBox1.TabIndex = 845
96 97
         '
97
-        'TextBox5
98
+        '收入_tb
98 99
         '
99
-        Me.TextBox5.Location = New System.Drawing.Point(672, 30)
100
-        Me.TextBox5.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
101
-        Me.TextBox5.Name = "TextBox5"
102
-        Me.TextBox5.Size = New System.Drawing.Size(113, 23)
103
-        Me.TextBox5.TabIndex = 844
104
-        Me.TextBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
100
+        Me.收入_tb.Location = New System.Drawing.Point(672, 30)
101
+        Me.收入_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
102
+        Me.收入_tb.Name = "收入_tb"
103
+        Me.收入_tb.Size = New System.Drawing.Size(113, 23)
104
+        Me.收入_tb.TabIndex = 844
105
+        Me.收入_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
105 106
         '
106 107
         'Label8
107 108
         '
@@ -110,7 +111,7 @@ Partial Class 財務_收支單申請
110 111
         Me.Label8.Name = "Label8"
111 112
         Me.Label8.Size = New System.Drawing.Size(32, 16)
112 113
         Me.Label8.TabIndex = 843
113
-        Me.Label8.Text = "現金"
114
+        Me.Label8.Text = "收入"
114 115
         '
115 116
         'Label62
116 117
         '
@@ -160,7 +161,7 @@ Partial Class 財務_收支單申請
160 161
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
161 162
         Me.明細_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
162 163
         Me.明細_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
163
-        Me.明細_dgv.Location = New System.Drawing.Point(328, 83)
164
+        Me.明細_dgv.Location = New System.Drawing.Point(328, 88)
164 165
         Me.明細_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
165 166
         Me.明細_dgv.Name = "明細_dgv"
166 167
         Me.明細_dgv.RowHeadersWidth = 5
@@ -369,14 +370,14 @@ Partial Class 財務_收支單申請
369 370
         Me.CheckBox1.Text = "補"
370 371
         Me.CheckBox1.UseVisualStyleBackColor = True
371 372
         '
372
-        'TextBox2
373
+        '支出_tb
373 374
         '
374
-        Me.TextBox2.Location = New System.Drawing.Point(821, 30)
375
-        Me.TextBox2.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
376
-        Me.TextBox2.Name = "TextBox2"
377
-        Me.TextBox2.Size = New System.Drawing.Size(113, 23)
378
-        Me.TextBox2.TabIndex = 881
379
-        Me.TextBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
375
+        Me.支出_tb.Location = New System.Drawing.Point(821, 30)
376
+        Me.支出_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
377
+        Me.支出_tb.Name = "支出_tb"
378
+        Me.支出_tb.Size = New System.Drawing.Size(113, 23)
379
+        Me.支出_tb.TabIndex = 881
380
+        Me.支出_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
380 381
         '
381 382
         'Label5
382 383
         '
@@ -406,14 +407,14 @@ Partial Class 財務_收支單申請
406 407
         Me.Label9.TabIndex = 882
407 408
         Me.Label9.Text = "現金餘額"
408 409
         '
409
-        'TextBox7
410
+        '零用金_tb
410 411
         '
411
-        Me.TextBox7.Location = New System.Drawing.Point(374, 30)
412
-        Me.TextBox7.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
413
-        Me.TextBox7.Name = "TextBox7"
414
-        Me.TextBox7.Size = New System.Drawing.Size(113, 23)
415
-        Me.TextBox7.TabIndex = 885
416
-        Me.TextBox7.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
412
+        Me.零用金_tb.Location = New System.Drawing.Point(374, 30)
413
+        Me.零用金_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
414
+        Me.零用金_tb.Name = "零用金_tb"
415
+        Me.零用金_tb.Size = New System.Drawing.Size(113, 23)
416
+        Me.零用金_tb.TabIndex = 885
417
+        Me.零用金_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
417 418
         '
418 419
         'Label10
419 420
         '
@@ -424,14 +425,14 @@ Partial Class 財務_收支單申請
424 425
         Me.Label10.TabIndex = 884
425 426
         Me.Label10.Text = "零用金"
426 427
         '
427
-        'TextBox8
428
+        '支票_tb
428 429
         '
429
-        Me.TextBox8.Location = New System.Drawing.Point(523, 30)
430
-        Me.TextBox8.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
431
-        Me.TextBox8.Name = "TextBox8"
432
-        Me.TextBox8.Size = New System.Drawing.Size(113, 23)
433
-        Me.TextBox8.TabIndex = 887
434
-        Me.TextBox8.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
430
+        Me.支票_tb.Location = New System.Drawing.Point(523, 30)
431
+        Me.支票_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
432
+        Me.支票_tb.Name = "支票_tb"
433
+        Me.支票_tb.Size = New System.Drawing.Size(113, 23)
434
+        Me.支票_tb.TabIndex = 887
435
+        Me.支票_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
435 436
         '
436 437
         'Label11
437 438
         '
@@ -543,7 +544,7 @@ Partial Class 財務_收支單申請
543 544
         Me.幣別_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
544 545
         Me.幣別_cb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
545 546
         Me.幣別_cb.FormattingEnabled = True
546
-        Me.幣別_cb.Items.AddRange(New Object() {"台幣現金", "人民幣現金", "美金"})
547
+        Me.幣別_cb.Items.AddRange(New Object() {"台幣現金", "人民幣現金", "美金", "印尼盾"})
547 548
         Me.幣別_cb.Location = New System.Drawing.Point(1118, 30)
548 549
         Me.幣別_cb.Name = "幣別_cb"
549 550
         Me.幣別_cb.Size = New System.Drawing.Size(119, 24)
@@ -569,12 +570,23 @@ Partial Class 財務_收支單申請
569 570
         Me.美金匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
570 571
         Me.美金匯率_tb.Visible = False
571 572
         '
573
+        '印尼匯率_tb
574
+        '
575
+        Me.印尼匯率_tb.Location = New System.Drawing.Point(892, 292)
576
+        Me.印尼匯率_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
577
+        Me.印尼匯率_tb.Name = "印尼匯率_tb"
578
+        Me.印尼匯率_tb.Size = New System.Drawing.Size(175, 23)
579
+        Me.印尼匯率_tb.TabIndex = 901
580
+        Me.印尼匯率_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
581
+        Me.印尼匯率_tb.Visible = False
582
+        '
572 583
         '財務_收支單申請
573 584
         '
574 585
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
575 586
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
576 587
         Me.ClientSize = New System.Drawing.Size(1249, 611)
577 588
         Me.ContextMenuStrip = Me.ContextMenuStrip1
589
+        Me.Controls.Add(Me.印尼匯率_tb)
578 590
         Me.Controls.Add(Me.美金匯率_tb)
579 591
         Me.Controls.Add(Me.人民幣匯率_tb)
580 592
         Me.Controls.Add(Me.幣別_cb)
@@ -588,20 +600,20 @@ Partial Class 財務_收支單申請
588 600
         Me.Controls.Add(Me.Button1)
589 601
         Me.Controls.Add(Me.DateTimePicker2)
590 602
         Me.Controls.Add(Me.RadioButton3)
591
-        Me.Controls.Add(Me.TextBox8)
603
+        Me.Controls.Add(Me.支票_tb)
592 604
         Me.Controls.Add(Me.Label11)
593
-        Me.Controls.Add(Me.TextBox7)
605
+        Me.Controls.Add(Me.零用金_tb)
594 606
         Me.Controls.Add(Me.Label10)
595 607
         Me.Controls.Add(Me.TextBox6)
596 608
         Me.Controls.Add(Me.Label9)
597
-        Me.Controls.Add(Me.TextBox2)
609
+        Me.Controls.Add(Me.支出_tb)
598 610
         Me.Controls.Add(Me.Label5)
599 611
         Me.Controls.Add(Me.CheckBox1)
600 612
         Me.Controls.Add(Me.Label4)
601 613
         Me.Controls.Add(Me.DateTimePicker1)
602 614
         Me.Controls.Add(Me.Button2)
603 615
         Me.Controls.Add(Me.ComboBox1)
604
-        Me.Controls.Add(Me.TextBox5)
616
+        Me.Controls.Add(Me.收入_tb)
605 617
         Me.Controls.Add(Me.Label8)
606 618
         Me.Controls.Add(Me.Label62)
607 619
         Me.Controls.Add(Me.TextBox4)
@@ -629,7 +641,7 @@ Partial Class 財務_收支單申請
629 641
     End Sub
630 642
 
631 643
     Friend WithEvents ComboBox1 As ComboBox
632
-    Friend WithEvents TextBox5 As TextBox
644
+    Friend WithEvents 收入_tb As TextBox
633 645
     Friend WithEvents Label8 As Label
634 646
     Friend WithEvents Label62 As Label
635 647
     Friend WithEvents TextBox4 As TextBox
@@ -659,13 +671,13 @@ Partial Class 財務_收支單申請
659 671
     Friend WithEvents Label4 As Label
660 672
     Friend WithEvents DateTimePicker1 As DateTimePicker
661 673
     Friend WithEvents CheckBox1 As CheckBox
662
-    Friend WithEvents TextBox2 As TextBox
674
+    Friend WithEvents 支出_tb As TextBox
663 675
     Friend WithEvents Label5 As Label
664 676
     Friend WithEvents TextBox6 As TextBox
665 677
     Friend WithEvents Label9 As Label
666
-    Friend WithEvents TextBox7 As TextBox
678
+    Friend WithEvents 零用金_tb As TextBox
667 679
     Friend WithEvents Label10 As Label
668
-    Friend WithEvents TextBox8 As TextBox
680
+    Friend WithEvents 支票_tb As TextBox
669 681
     Friend WithEvents Label11 As Label
670 682
     Friend WithEvents RadioButton3 As RadioButton
671 683
     Friend WithEvents DateTimePicker2 As DateTimePicker
@@ -681,4 +693,5 @@ Partial Class 財務_收支單申請
681 693
     Friend WithEvents 幣別_cb As ComboBox
682 694
     Friend WithEvents 人民幣匯率_tb As TextBox
683 695
     Friend WithEvents 美金匯率_tb As TextBox
696
+    Friend WithEvents 印尼匯率_tb As TextBox
684 697
 End Class

+ 27
- 25
工巧明智能管理系統/我的系統/財務系統管理/財務_收支單申請.vb View File

@@ -43,9 +43,9 @@ Public Class 財務_收支單申請
43 43
                 ORDER BY    財務流水帳.項次"
44 44
         CmdSet_For_DGV() : da.Fill(ds) : 明細_dgv.DataSource = ds.Tables(0) : conn.Close()
45 45
 
46
-        明細_dgv.Columns(0).Visible = False : 明細_dgv.Columns(1).FillWeight = 80 : 明細_dgv.Columns(2).FillWeight = 300 : 明細_dgv.Columns(3).FillWeight = 500
47
-        明細_dgv.Columns(4).FillWeight = 140 : 明細_dgv.Columns(5).FillWeight = 140 : 明細_dgv.Columns(6).FillWeight = 140 : 明細_dgv.Columns(7).FillWeight = 140
48
-        明細_dgv.Columns(8).FillWeight = 140 : 明細_dgv.Columns(9).FillWeight = 140 : 明細_dgv.Columns(10).FillWeight = 140 : 明細_dgv.Columns(11).Visible = False
46
+        明細_dgv.Columns(0).Visible = False : 明細_dgv.Columns(1).FillWeight = 80 : 明細_dgv.Columns(2).FillWeight = 250 : 明細_dgv.Columns(3).FillWeight = 400
47
+        明細_dgv.Columns(4).Visible = False : 明細_dgv.Columns(5).FillWeight = 120 : 明細_dgv.Columns(6).FillWeight = 165 : 明細_dgv.Columns(7).FillWeight = 165
48
+        明細_dgv.Columns(8).FillWeight = 150 : 明細_dgv.Columns(9).FillWeight = 130 : 明細_dgv.Columns(10).FillWeight = 140 : 明細_dgv.Columns(11).Visible = False
49 49
         明細_dgv.Columns(12).Visible = False : 明細_dgv.Columns(13).FillWeight = 80
50 50
 
51 51
         明細_dgv.Columns(1).ReadOnly = True : 明細_dgv.Columns(2).ReadOnly = True : 明細_dgv.Columns(9).ReadOnly = True : 明細_dgv.Columns(10).ReadOnly = True
@@ -61,15 +61,17 @@ Public Class 財務_收支單申請
61 61
         明細_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 明細_dgv.Columns(1).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
62 62
         明細_dgv.EditMode = DataGridViewEditMode.EditOnEnter
63 63
 
64
-        TextBox5.Text = "0.00" : TextBox2.Text = "0.00" : TextBox6.Text = "0.00" : TextBox7.Text = "0" : TextBox8.Text = "0.00"
64
+        收入_tb.Text = "0.00" : 支出_tb.Text = "0.00" : TextBox6.Text = "0.00" : 零用金_tb.Text = "0" : 支票_tb.Text = "0.00"
65 65
         For i As Integer = 0 To 明細_dgv.Rows.Count - 1
66
-            TextBox5.Text = Val(TextBox5.Text) + Val(明細_dgv.Rows(i).Cells("現金").Value) : TextBox2.Text = Val(TextBox2.Text) + Val(明細_dgv.Rows(i).Cells("支出").Value)
67
-            TextBox7.Text = Val(TextBox7.Text) + 明細_dgv.Rows(i).Cells("零用金").Value : TextBox8.Text = Val(TextBox8.Text) + 明細_dgv.Rows(i).Cells("支票").Value
66
+            收入_tb.Text = Val(收入_tb.Text) + Val(明細_dgv.Rows(i).Cells("現金").Value) * 明細_dgv.Rows(i).Cells("匯率").Value
67
+            支出_tb.Text = Val(支出_tb.Text) + Val(明細_dgv.Rows(i).Cells("支出").Value) * 明細_dgv.Rows(i).Cells("匯率").Value
68
+            零用金_tb.Text = Val(零用金_tb.Text) + 明細_dgv.Rows(i).Cells("零用金").Value * 明細_dgv.Rows(i).Cells("匯率").Value
69
+            支票_tb.Text = Val(支票_tb.Text) + 明細_dgv.Rows(i).Cells("支票").Value * 明細_dgv.Rows(i).Cells("匯率").Value
68 70
         Next i
69
-        TextBox6.Text = Val(TextBox7.Text) + Val(TextBox5.Text) - Val(TextBox2.Text)
71
+        TextBox6.Text = Val(零用金_tb.Text) + Val(收入_tb.Text) - Val(支出_tb.Text)
70 72
         If Val(TextBox6.Text) > 0 Then : TextBox6.ForeColor = Color.Blue : Else : TextBox6.ForeColor = Color.Red : End If
71
-        TextBox5.Text = Format(Val(TextBox5.Text), "#,##0.00") : TextBox2.Text = Format(Val(TextBox2.Text), "#,##0.00") : TextBox6.Text = Format(Val(TextBox6.Text), "#,##0.00")
72
-        TextBox7.Text = Format(Val(TextBox7.Text), "#,##0.00") : TextBox8.Text = Format(Val(TextBox8.Text), "#,##0.00")
73
+        收入_tb.Text = Format(Val(收入_tb.Text), "#,##0.00") : 支出_tb.Text = Format(Val(支出_tb.Text), "#,##0.00") : TextBox6.Text = Format(Val(TextBox6.Text), "#,##0.00")
74
+        零用金_tb.Text = Format(Val(零用金_tb.Text), "#,##0.00") : 支票_tb.Text = Format(Val(支票_tb.Text), "#,##0.00")
73 75
     End Sub
74 76
     Private Sub ComboBox1下拉表單資料載入()
75 77
         conn.Close()
@@ -96,11 +98,11 @@ Public Class 財務_收支單申請
96 98
     End Sub
97 99
     Private Sub 匯率()
98 100
         ConnOpen()
99
-        SQL1 = "SELECT 中心匯率, 美金匯率 FROM 歷史匯率表 
101
+        SQL1 = "SELECT 中心匯率, 美金匯率, 印尼匯率 FROM 歷史匯率表 
100 102
                 WHERE (年 LIKE '" & Strings.Left(Format(DateTimePicker1.Value, "yyyyMMdd"), 4) & "%') AND (月 LIKE '" & Strings.Mid(Format(DateTimePicker1.Value, "yyyyMMdd"), 5, 2) & "%')"
101 103
         cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
102 104
         If dr.Read() Then
103
-            人民幣匯率_tb.Text = dr("中心匯率").ToString : 美金匯率_tb.Text = dr("美金匯率").ToString : conn.Close() : dr.Close()
105
+            人民幣匯率_tb.Text = dr("中心匯率").ToString : 美金匯率_tb.Text = dr("美金匯率").ToString : 印尼匯率_tb.Text = dr("印尼匯率").ToString : conn.Close() : dr.Close()
104 106
         Else
105 107
             conn.Close() : dr.Close() : 匯率修改.Close() : 匯率修改.Show() : 匯率修改.BringToFront()
106 108
         End If
@@ -141,15 +143,17 @@ Public Class 財務_收支單申請
141 143
         If Label62.Visible = True Then : Label62.Visible = False : Else : Label62.Visible = True : End If
142 144
     End Sub
143 145
     Private Sub DataGridView1_CellContentCl(sender As Object, e As DataGridViewCellEventArgs) Handles 明細_dgv.CellEndEdit
144
-        TextBox5.Text = "0" : TextBox2.Text = "0" : TextBox6.Text = "0" : TextBox7.Text = "0" : TextBox8.Text = "0"
146
+        收入_tb.Text = "0" : 支出_tb.Text = "0" : TextBox6.Text = "0" : 零用金_tb.Text = "0" : 支票_tb.Text = "0"
145 147
         For i As Integer = 0 To 明細_dgv.Rows.Count - 1
146
-            TextBox5.Text = Val(TextBox5.Text) + 明細_dgv.Rows(i).Cells("現金").Value : TextBox2.Text = Val(TextBox2.Text) + 明細_dgv.Rows(i).Cells("支出").Value
147
-            TextBox7.Text = Val(TextBox7.Text) + 明細_dgv.Rows(i).Cells("零用金").Value : TextBox8.Text = Val(TextBox8.Text) + 明細_dgv.Rows(i).Cells("支票").Value
148
+            收入_tb.Text = Val(收入_tb.Text) + 明細_dgv.Rows(i).Cells("現金").Value * 明細_dgv.Rows(i).Cells("匯率").Value
149
+            支出_tb.Text = Val(支出_tb.Text) + 明細_dgv.Rows(i).Cells("支出").Value * 明細_dgv.Rows(i).Cells("匯率").Value
150
+            零用金_tb.Text = Val(零用金_tb.Text) + 明細_dgv.Rows(i).Cells("零用金").Value * 明細_dgv.Rows(i).Cells("匯率").Value
151
+            支票_tb.Text = Val(支票_tb.Text) + 明細_dgv.Rows(i).Cells("支票").Value * 明細_dgv.Rows(i).Cells("匯率").Value
148 152
         Next i
149
-        TextBox6.Text = Val(TextBox7.Text) + Val(TextBox5.Text) - Val(TextBox2.Text)
153
+        TextBox6.Text = Val(零用金_tb.Text) + Val(收入_tb.Text) - Val(支出_tb.Text)
150 154
         If Val(TextBox6.Text) > 0 Then : TextBox6.ForeColor = Color.Blue : Else : TextBox6.ForeColor = Color.Red : End If
151
-        TextBox5.Text = Format(Val(TextBox5.Text), "#,##0") : TextBox2.Text = Format(Val(TextBox2.Text), "#,##0") : TextBox6.Text = Format(Val(TextBox6.Text), "#,##0")
152
-        TextBox7.Text = Format(Val(TextBox7.Text), "#,##0") : TextBox8.Text = Format(Val(TextBox8.Text), "#,##0")
155
+        收入_tb.Text = Format(Val(收入_tb.Text), "#,##0") : 支出_tb.Text = Format(Val(支出_tb.Text), "#,##0") : TextBox6.Text = Format(Val(TextBox6.Text), "#,##0")
156
+        零用金_tb.Text = Format(Val(零用金_tb.Text), "#,##0") : 支票_tb.Text = Format(Val(支票_tb.Text), "#,##0")
153 157
         Dim EU As String
154 158
         EU = 明細_dgv("票期", e.RowIndex).Value.ToString
155 159
         If EU = "" Then
@@ -170,8 +174,8 @@ Public Class 財務_收支單申請
170 174
         End If
171 175
     End Sub
172 176
     Private Sub Set_切換格式()
173
-        明細_dgv.DataSource = Nothing : ds.Clear() : TextBox1.Text = "" : TextBox3.Text = "" : TextBox4.Text = "" : TextBox5.Text = "" : TextBox2.Text = "" : TextBox6.Text = ""
174
-        TextBox7.Text = "" : TextBox8.Text = "" : ComboBox1下拉表單資料載入() : Set_清單1()
177
+        明細_dgv.DataSource = Nothing : ds.Clear() : TextBox1.Text = "" : TextBox3.Text = "" : TextBox4.Text = "" : 收入_tb.Text = "" : 支出_tb.Text = "" : TextBox6.Text = ""
178
+        零用金_tb.Text = "" : 支票_tb.Text = "" : ComboBox1下拉表單資料載入() : Set_清單1()
175 179
     End Sub
176 180
     Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton1.Click
177 181
         RadioButton1.Checked = True : RadioButton2.Checked = False : RadioButton3.Checked = False : 申請完成ToolStripMenuItem.Enabled = True : 複製單據開單ToolStripMenuItem.Enabled = False
@@ -349,12 +353,10 @@ Public Class 財務_收支單申請
349 353
             End If
350 354
             ConnOpen()
351 355
 
352
-            If 幣別_cb.Text = "台幣現金" Then
353
-                匯率1 = 1
354
-            ElseIf 幣別_cb.Text = "人民幣現金" Then
355
-                匯率1 = 人民幣匯率_tb.Text
356
-            ElseIf 幣別_cb.Text = "美金" Then
357
-                匯率1 = 美金匯率_tb.Text
356
+            If 幣別_cb.Text = "台幣現金" Then : 匯率1 = 1
357
+            ElseIf 幣別_cb.Text = "人民幣現金" Then : 匯率1 = 人民幣匯率_tb.Text
358
+            ElseIf 幣別_cb.Text = "美金" Then : 匯率1 = 美金匯率_tb.Text
359
+            ElseIf 幣別_cb.Text = "印尼盾" Then : 匯率1 = 印尼匯率_tb.Text
358 360
             End If
359 361
 
360 362
             SQL1 = "INSERT INTO 財務流水帳 (流水號, 銀行, 日期, 類別, 收入, 支出, 明細, 人員, 支付單號, 項次, 會計, 出納, 現金, 備用金, 公帳, 支票, 

Loading…
Cancel
Save